diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-05-10 23:00:19 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-07-27 14:39:42 +0100 |
commit | 032a695332c6ec1359290a5fc49d30d397b1c245 (patch) | |
tree | 3db33620bcbe39457d6c65862b3c301eabd15bc5 | |
parent | gtk3: simplify code (diff) | |
download | core-032a695332c6ec1359290a5fc49d30d397b1c245.tar.gz core-032a695332c6ec1359290a5fc49d30d397b1c245.zip |
gtk3: fix colors for menubar and menu items
Change-Id: Iea44b34fbfc189c21267e095860c3bab3217bcfb
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index 11bf0c8d17c5..b948ac7ebea9 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -825,7 +825,7 @@ sal_Bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart case PART_MENU_SUBMENU_ARROW: context = mpMenuStyle; renderType = RENDER_ARROW; - additionalContext = mpMenuStyle; + renderWindowBackground = false; break; } break; @@ -1206,7 +1206,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) aStyleSet.SetMenuBarTextColor( aTextColor ); // menu items - gtk_style_context_get_color( mpMenuItemStyle, GTK_STATE_FLAG_NORMAL, &color ); + gtk_style_context_get_color( mpMenuStyle, GTK_STATE_FLAG_NORMAL, &color ); aTextColor = getColor( color ); aStyleSet.SetMenuTextColor( aTextColor ); @@ -1521,6 +1521,7 @@ GtkSalGraphics::GtkSalGraphics( GtkSalFrame *pFrame, GtkWidget *pWindow ) /* Menu bar */ getStyleContext(&mpMenuBarStyle, gtk_menu_bar_new()); + gtk_style_context_add_class(mpMenuBarStyle, GTK_STYLE_CLASS_MENU); /* Menu items in a menu bar */ path = gtk_widget_path_new(); |