Fix menu bar problem in ms-windows theme engine on Windows 7

Patch from bug #591186. It won't have any effect in this branch as the
whole XP-and-later theming code is broken and disabled, but when/if
that is fixed, then this patch should help.
This commit is contained in:
Steffen Macke 2010-02-06 20:04:30 +02:00 committed by Tristan Van Berkom
parent 931ed06beb
commit 029b7b6361

View File

@ -698,8 +698,8 @@ setup_msw_rc_style (void)
GdkColor text_prelight; GdkColor text_prelight;
/* Prelight */ /* Prelight */
sys_color_to_gtk_color (XP_THEME_CLASS_TEXT, sys_color_to_gtk_color (get_windows_version () >= VISTA_VERSION ? XP_THEME_CLASS_MENU : XP_THEME_CLASS_TEXT,
get_windows_version () == VISTA_VERSION ? COLOR_MENUTEXT : COLOR_HIGHLIGHTTEXT, get_windows_version () >= VISTA_VERSION ? COLOR_MENUTEXT : COLOR_HIGHLIGHTTEXT,
&fg_prelight); &fg_prelight);
sys_color_to_gtk_color (XP_THEME_CLASS_TEXT, COLOR_HIGHLIGHT, &bg_prelight); sys_color_to_gtk_color (XP_THEME_CLASS_TEXT, COLOR_HIGHLIGHT, &bg_prelight);
sys_color_to_gtk_color (XP_THEME_CLASS_TEXT, COLOR_HIGHLIGHT, sys_color_to_gtk_color (XP_THEME_CLASS_TEXT, COLOR_HIGHLIGHT,