summaryrefslogtreecommitdiff
path: root/src/ui/draw-workspace.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-27 23:29:02 +0300
committerraveit65 <[email protected]>2018-01-28 16:15:18 +0100
commit16de6ccd2906b93f79880612b31a12a1e53557c7 (patch)
treec1643f9e04908007ee58457f7532225a9f56d7bd /src/ui/draw-workspace.c
parent4525d9b629ed76df0bc7d9b10b52c990fa112351 (diff)
downloadmarco-16de6ccd2906b93f79880612b31a12a1e53557c7.tar.bz2
marco-16de6ccd2906b93f79880612b31a12a1e53557c7.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'src/ui/draw-workspace.c')
-rw-r--r--src/ui/draw-workspace.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ui/draw-workspace.c b/src/ui/draw-workspace.c
index bec502a5..e9838be1 100644
--- a/src/ui/draw-workspace.c
+++ b/src/ui/draw-workspace.c
@@ -65,7 +65,6 @@ get_window_rect (const WnckWindowDisplayInfo *win,
rect->height = height;
}
-#if GTK_CHECK_VERSION (3, 16, 0)
static void
get_background_color (GtkStyleContext *context,
GtkStateFlags state,
@@ -84,7 +83,6 @@ get_background_color (GtkStyleContext *context,
*color = *c;
gdk_rgba_free (c);
}
-#endif
static void
draw_window (GtkWidget *widget,
@@ -110,11 +108,8 @@ draw_window (GtkWidget *widget,
if (is_active)
meta_gtk_style_get_light_color (style, state, &color);
else
-#if GTK_CHECK_VERSION (3, 16, 0)
get_background_color (style, state, &color);
-#else
- gtk_style_context_get_background_color (style, state, &color);
-#endif
+
gdk_cairo_set_source_rgba (cr, &color);
cairo_rectangle (cr,