summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-05-10 23:00:19 -0400
committerMichael Meeks <michael.meeks@suse.com>2012-07-27 14:39:42 +0100
commit032a695332c6ec1359290a5fc49d30d397b1c245 (patch)
tree3db33620bcbe39457d6c65862b3c301eabd15bc5 /vcl/unx
parentb2e5a674c41d892471636209ff39ffe3533f46e4 (diff)
gtk3: fix colors for menubar and menu items
Change-Id: Iea44b34fbfc189c21267e095860c3bab3217bcfb
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx5
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();