mirror of https://github.com/MidnightCommander/mc
1998-03-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmain.c (get_color): Make it use GdkColorContext correctly.
This commit is contained in:
parent
b29aba8ae1
commit
5cf9dcb99e
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue