mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Fix menuitem rendering in Vista
svn path=/trunk/; revision=17614
This commit is contained in:
parent
2bb4433af7
commit
cb47788d27
@ -1,3 +1,8 @@
|
||||
2007-04-19 Cody Russell <bratsche@gnome.org>
|
||||
|
||||
* modules/engines/ms-windows/msw_style.c: Fix menuitem rendering
|
||||
for Windows Vista. (#392015, Hiroyuki Yamamoto)
|
||||
|
||||
2007-04-19 Dominic Lachowicz <domlachowicz@gmail.com>
|
||||
|
||||
* modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in
|
||||
|
@ -1717,13 +1717,9 @@ draw_menu_item(GdkWindow* window, GtkWidget* widget, GtkStyle* style,
|
||||
HDC dc;
|
||||
RECT rect;
|
||||
|
||||
if ( xp_theme_is_active() ) {
|
||||
return xp_theme_draw( window, XP_THEME_ELEMENT_MENU_ITEM, style,
|
||||
x, y, width, height, state_type, area );
|
||||
}
|
||||
|
||||
if( (parent = gtk_widget_get_parent(widget))
|
||||
&& GTK_IS_MENU_BAR(parent) )
|
||||
&& GTK_IS_MENU_BAR(parent)
|
||||
&& !xp_theme_is_active() )
|
||||
{
|
||||
bar = GTK_MENU_SHELL(parent);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user