summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.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.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.c')
-rw-r--r--libmate-desktop/mate-bg.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index d4a9a71..e1d05db 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -844,25 +844,15 @@ draw_color_each_monitor (MateBG *bg,
GdkPixbuf *dest,
GdkScreen *screen)
{
-#if GTK_CHECK_VERSION (3, 22, 0)
GdkDisplay *display;
-#endif
GdkRectangle rect;
gint num_monitors;
int monitor;
-#if GTK_CHECK_VERSION (3, 22, 0)
display = gdk_screen_get_display (screen);
num_monitors = gdk_display_get_n_monitors (display);
-#else
- num_monitors = gdk_screen_get_n_monitors (screen);
-#endif
for (monitor = 0; monitor < num_monitors; monitor++) {
-#if GTK_CHECK_VERSION (3, 22, 0)
gdk_monitor_get_geometry (gdk_display_get_monitor (display, monitor), &rect);
-#else
- gdk_screen_get_monitor_geometry (screen, monitor, &rect);
-#endif
draw_color_area (bg, dest, &rect);
}
}
@@ -1033,25 +1023,17 @@ draw_each_monitor (MateBG *bg,
GdkPixbuf *dest,
GdkScreen *screen)
{
-#if GTK_CHECK_VERSION (3, 22, 0)
GdkDisplay *display;
display = gdk_screen_get_display (screen);
gint num_monitors = gdk_display_get_n_monitors (display);
-#else
- gint num_monitors = gdk_screen_get_n_monitors (screen);
-#endif
gint monitor = 0;
for (; monitor < num_monitors; monitor++) {
GdkRectangle rect;
GdkPixbuf *pixbuf;
-#if GTK_CHECK_VERSION (3, 22, 0)
gdk_monitor_get_geometry (gdk_display_get_monitor (display, monitor), &rect);
-#else
- gdk_screen_get_monitor_geometry (screen, monitor, &rect);
-#endif
pixbuf = get_pixbuf_for_size (bg, monitor, rect.width, rect.height);
if (pixbuf) {