summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-03-24 23:42:05 -0400
committerraveit65 <[email protected]>2016-03-25 11:01:42 +0100
commit78790736f054ac2539e090ceea0e2f324dac075e (patch)
treeaf45583aeb7405ef95a00669b07e5bfb0ca19460
parentda9c05196c082312c18cb74fd21e1a4534d56f53 (diff)
downloadmate-panel-78790736f054ac2539e090ceea0e2f324dac075e.tar.bz2
mate-panel-78790736f054ac2539e090ceea0e2f324dac075e.tar.xz
Gtk3.18/3.20-move background handling toplevel
panel-separator.c
-rw-r--r--mate-panel/panel-separator.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mate-panel/panel-separator.c b/mate-panel/panel-separator.c
index ff0cac37..93b58293 100644
--- a/mate-panel/panel-separator.c
+++ b/mate-panel/panel-separator.c
@@ -220,9 +220,11 @@ panel_separator_size_allocate (GtkWidget *widget,
old_allocation.width == allocation->width &&
old_allocation.height == allocation->height)
return;
-
+#if GTK_CHECK_VERSION (3, 18, 0)
+ background = &PANEL_SEPARATOR (widget)->priv->panel->toplevel->background;
+#else
background = &PANEL_SEPARATOR (widget)->priv->panel->background;
-
+#endif
if (background->type == PANEL_BACK_NONE ||
(background->type == PANEL_BACK_COLOR && !background->has_alpha))
return;
@@ -348,7 +350,9 @@ panel_separator_create (PanelToplevel *toplevel,
void
panel_separator_change_background (PanelSeparator *separator)
{
-#if GTK_CHECK_VERSION (3, 0, 0)
+#if GTK_CHECK_VERSION (3, 18, 0)
+ panel_background_apply_css(&separator->priv->panel->toplevel->background, GTK_WIDGET(separator));
+#elif GTK_CHECK_VERSION (3, 0, 0)
panel_background_apply_css(&separator->priv->panel->background, GTK_WIDGET(separator));
#else
panel_background_change_background_on_widget(&separator->priv->panel->background, GTK_WIDGET(separator));