1998-03-06 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gmain.c (get_color): Make it use GdkColorContext correctly.
This commit is contained in:
Miguel de Icaza 1998-03-06 19:42:57 +00:00
parent b29aba8ae1
commit 5cf9dcb99e
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
1998-03-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmain.c (get_color): Make it use GdkColorContext correctly.
* gscreen.c (panel_create_filter): The filter control is now a
nice GnomeEntry. It does not work due to gmc trapping key events;
I'll look into it tomorrow.

View File

@ -54,7 +54,10 @@ get_color (char *cpp, GdkColor **colp)
new_color = g_new (GdkColor, 1);
gdk_color_parse (cpp, new_color);
new_color->pixel = gdk_color_context_get_pixel (mc_cc, new_color->red, new_color->green, new_color->blue, &status);
new_color->pixel = 0;
status = 0;
gdk_color_context_get_pixels (mc_cc, &new_color->red, &new_color->green, &new_color->blue, 1,
&new_color->pixel, &status);
*colp = new_color;
}