summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg-crossfade.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-01-26 15:24:00 +0100
committerraveit65 <[email protected]>2018-01-27 10:48:10 +0100
commit44a8dae7f641fade55f700dd0f6ed2d059173a9d (patch)
treedb59121c372b8536fe14e43ce9788a7bffba858b /libmate-desktop/mate-bg-crossfade.c
parente4dd3db4095518e95fb0b3f088bdb90a06aa466c (diff)
downloadmate-desktop-44a8dae7f641fade55f700dd0f6ed2d059173a9d.tar.bz2
mate-desktop-44a8dae7f641fade55f700dd0f6ed2d059173a9d.tar.xz
building: remove < gtk+-3.22 bits and bump required gtk+ version
Diffstat (limited to 'libmate-desktop/mate-bg-crossfade.c')
-rw-r--r--libmate-desktop/mate-bg-crossfade.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/libmate-desktop/mate-bg-crossfade.c b/libmate-desktop/mate-bg-crossfade.c
index 8dac621..848727b 100644
--- a/libmate-desktop/mate-bg-crossfade.c
+++ b/libmate-desktop/mate-bg-crossfade.c
@@ -411,7 +411,6 @@ draw_background (MateBGCrossfade *fade)
if (fade->priv->widget != NULL) {
gtk_widget_queue_draw (fade->priv->widget);
} else if (gdk_window_get_window_type (fade->priv->window) != GDK_WINDOW_ROOT) {
-#if GTK_CHECK_VERSION (3, 22, 0)
cairo_t *cr;
cairo_region_t *region;
GdkDrawingContext *draw_context;
@@ -425,16 +424,6 @@ draw_background (MateBGCrossfade *fade)
cairo_paint (cr);
gdk_window_end_draw_frame (fade->priv->window, draw_context);
cairo_region_destroy (region);
-#else
- cairo_pattern_t *pattern;
-
- pattern =
- cairo_pattern_create_for_surface (fade->priv->fading_surface);
- gdk_window_set_background_pattern (fade->priv->window, pattern);
- cairo_pattern_destroy (pattern);
- gdk_window_invalidate_rect (fade->priv->window, NULL, FALSE);
- gdk_window_process_updates (fade->priv->window, FALSE);
-#endif
} else {
Display *xdisplay = GDK_WINDOW_XDISPLAY (fade->priv->window);
gdk_error_trap_push ();