summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-widget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index 4830cdc8..54bbceb3 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -1650,10 +1650,11 @@ panel_widget_set_background_default_style (GtkWidget *widget)
background = &PANEL_WIDGET (widget)->background;
#if GTK_CHECK_VERSION (3, 19, 0)
gtk_style_context_add_class(context,GTK_STYLE_CLASS_BACKGROUND);
+#else
+ panel_background_apply_css (&PANEL_WIDGET (widget)->background, widget);
#endif
gtk_style_context_add_class(context,"gnome-panel-menu-bar");
- gtk_style_context_add_class(context,"mate-panel-menu-bar");
- panel_background_apply_css (&PANEL_WIDGET (widget)->background, widget);
+ gtk_style_context_add_class(context,"mate-panel-menu-bar");
gtk_style_context_get (context, state,
"background-color", &bg_color,