summaryrefslogtreecommitdiff
path: root/mate-panel/panel-widget.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-06-25 11:25:28 +0200
committerStefano Karapetsas <[email protected]>2014-06-25 11:25:28 +0200
commite5beb2fdfe1a8b1ca103a8fa0a4afdaf3946aa90 (patch)
tree4634f12585ec2259fb63b2743d16928c8b4dda86 /mate-panel/panel-widget.c
parentf327306271032e7b8ef716655f91c58513792cde (diff)
parenta9d01e5afb6fd97d96f1b298e6e34d2dfa02f25c (diff)
downloadmate-panel-e5beb2fdfe1a8b1ca103a8fa0a4afdaf3946aa90.tar.bz2
mate-panel-e5beb2fdfe1a8b1ca103a8fa0a4afdaf3946aa90.tar.xz
Merge pull request #209 from rilian-la-te/fix_rgba_all
Fix rgba all
Diffstat (limited to 'mate-panel/panel-widget.c')
-rw-r--r--mate-panel/panel-widget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index 15d22bdc..2f402da7 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -1662,6 +1662,8 @@ panel_widget_style_set (GtkWidget *widget, GtkStyle *previous_style)
#if GTK_CHECK_VERSION (3, 0, 0)
context = gtk_widget_get_style_context (widget);
state = gtk_widget_get_state_flags (widget);
+ gtk_style_context_add_class(context,"gnome-panel-menu-bar");
+ gtk_style_context_add_class(context,"mate-panel-menu-bar");
gtk_style_context_get_background_color (context, state, &bg_color);
gtk_style_context_get (context, state, "background-image", &bg_image, NULL);
@@ -1749,11 +1751,11 @@ panel_widget_realize (GtkWidget *widget)
#if !GTK_CHECK_VERSION (3, 0, 0)
style = gtk_widget_get_style (widget);
state = gtk_widget_get_state (widget);
-#endif
/* For auto-hidden panels with a colored background, we need native
* windows to avoid some uglyness on unhide */
gdk_window_ensure_native (window);
+#endif
#if GTK_CHECK_VERSION (3, 0, 0)
panel_widget_set_background_default_style (widget);