summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-04 21:51:42 +0300
committermonsta <[email protected]>2016-01-04 21:52:50 +0300
commitb7439ed573d6617729e9006248456ef6844b225e (patch)
tree9f3f9057766200f81df185dc2d74736dd5802cd6
parent041af0b217f2fb7493a03ff3831747a1927d777f (diff)
downloadmate-panel-b7439ed573d6617729e9006248456ef6844b225e.tar.bz2
mate-panel-b7439ed573d6617729e9006248456ef6844b225e.tar.xz
background: even less #if's
-rw-r--r--mate-panel/panel-background.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index 91d62be0..bfbc2bcd 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -1061,14 +1061,15 @@ panel_background_realized (PanelBackground *background,
#if GTK_CHECK_VERSION (3, 0, 0)
if (background->window)
-#else
- if (background->window && background->colormap && background->gc)
-#endif
return;
-#if GTK_CHECK_VERSION (3, 0, 0)
background->window = g_object_ref (window);
+
+ panel_background_prepare_css ();
#else
+ if (background->window && background->colormap && background->gc)
+ return;
+
if (!background->window)
background->window = g_object_ref (window);
@@ -1079,9 +1080,7 @@ panel_background_realized (PanelBackground *background,
if (!background->gc)
background->gc = gdk_gc_new (window);
#endif
-#if GTK_CHECK_VERSION(3, 0, 0)
- panel_background_prepare_css ();
-#endif
+
panel_background_prepare (background);
}