From 78790736f054ac2539e090ceea0e2f324dac075e Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Thu, 24 Mar 2016 23:42:05 -0400 Subject: Gtk3.18/3.20-move background handling toplevel panel-separator.c --- mate-panel/panel-separator.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mate-panel/panel-separator.c') 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)); -- cgit v1.2.1