summaryrefslogtreecommitdiff
path: root/mate-panel/panel-separator.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-31 09:46:08 +0300
committermonsta <[email protected]>2018-01-31 09:46:08 +0300
commitab7987701bcea97e4326fecd161c3137080f6077 (patch)
tree3e49c11405cc69fab4b8a10ba4342cf70078d22a /mate-panel/panel-separator.c
parentf553591e0562fd7b4bba0fe6a6182bc0b3747a34 (diff)
downloadmate-panel-ab7987701bcea97e4326fecd161c3137080f6077.tar.bz2
mate-panel-ab7987701bcea97e4326fecd161c3137080f6077.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'mate-panel/panel-separator.c')
-rw-r--r--mate-panel/panel-separator.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/mate-panel/panel-separator.c b/mate-panel/panel-separator.c
index 5982196a..ce6e6454 100644
--- a/mate-panel/panel-separator.c
+++ b/mate-panel/panel-separator.c
@@ -154,11 +154,8 @@ 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;
@@ -192,9 +189,7 @@ panel_separator_class_init (PanelSeparatorClass *klass)
widget_class->size_allocate = panel_separator_size_allocate;
widget_class->parent_set = panel_separator_parent_set;
-#if GTK_CHECK_VERSION (3, 20, 0)
gtk_widget_class_set_css_name (widget_class, "PanelSeparator");
-#endif
g_type_class_add_private (klass, sizeof (PanelSeparator));
}
@@ -279,9 +274,5 @@ panel_separator_create (PanelToplevel *toplevel,
void
panel_separator_change_background (PanelSeparator *separator)
{
-#if GTK_CHECK_VERSION (3, 18, 0)
panel_background_apply_css(&separator->priv->panel->toplevel->background, GTK_WIDGET(separator));
-#else
- panel_background_apply_css(&separator->priv->panel->background, GTK_WIDGET(separator));
-#endif
}