GNOME Bugzilla – Bug 647460
typo in msw_style.c?
Last modified: 2011-11-10 18:11:31 UTC
In Gtk+ 2.24.4 sources, we have what looks like a typo compared to older versions of Gtk+ in function setup_system_styles, when setting up fg colors. This is tentatively fixed by the below patch: --- modules/engines/ms-windows/msw_style.c.old +++ modules/engines/ms-windows/msw_style.c @@ -849,7 +849,7 @@ setup_system_styles (GtkStyle *style) sys_color_to_gtk_color (XP_THEME_CLASS_TEXT, COLOR_GRAYTEXT, &style->fg[GTK_STATE_INSENSITIVE]); sys_color_to_gtk_color (XP_THEME_CLASS_BUTTON, COLOR_BTNTEXT, - &style->bg[GTK_STATE_ACTIVE]); + &style->fg[GTK_STATE_ACTIVE]); sys_color_to_gtk_color (XP_THEME_CLASS_WINDOW, COLOR_WINDOWTEXT, &style->fg[GTK_STATE_PRELIGHT]); Thanks in advance for reviewing it and applying it if relevant. Arno