summaryrefslogtreecommitdiff
path: root/mate-panel/panel-profile.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-profile.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-profile.c')
-rw-r--r--mate-panel/panel-profile.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c
index 41e1dba6..15cf114e 100644
--- a/mate-panel/panel-profile.c
+++ b/mate-panel/panel-profile.c
@@ -534,11 +534,7 @@ panel_profile_load_background (PanelToplevel *toplevel)
panel_widget = panel_toplevel_get_panel_widget (toplevel);
-#if GTK_CHECK_VERSION (3, 18, 0)
background = &panel_widget->toplevel->background;
-#else
- background = &panel_widget->background;
-#endif
background_type = panel_profile_get_background_type (toplevel);
get_background_color (toplevel, &color);
@@ -822,11 +818,8 @@ panel_profile_background_change_notify (GSettings *settings,
if (panel_widget == NULL)
return;
-#if GTK_CHECK_VERSION (3, 18, 0)
background = &panel_widget->toplevel->background;
-#else
- background = &panel_widget->background;
-#endif
+
if (!strcmp (key, "type")) {
PanelBackgroundType background_type;
background_type = g_settings_get_enum (settings, key);