diff options
author | Konstantin Pugin <[email protected]> | 2014-06-20 00:04:13 +0700 |
---|---|---|
committer | Konstantin Pugin <[email protected]> | 2014-06-20 01:26:52 +0700 |
commit | a9d01e5afb6fd97d96f1b298e6e34d2dfa02f25c (patch) | |
tree | 4634f12585ec2259fb63b2743d16928c8b4dda86 /mate-panel/panel-widget.c | |
parent | f327306271032e7b8ef716655f91c58513792cde (diff) | |
download | mate-panel-a9d01e5afb6fd97d96f1b298e6e34d2dfa02f25c.tar.bz2 mate-panel-a9d01e5afb6fd97d96f1b298e6e34d2dfa02f25c.tar.xz |
Fix RGBA issues for GTK3
Diffstat (limited to 'mate-panel/panel-widget.c')
-rw-r--r-- | mate-panel/panel-widget.c | 4 |
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); |