From 0f6161518c8666bc931b2ae18ddb57b8aa0ac067 Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Mon, 21 Aug 2017 17:47:54 +0200 Subject: gtk 3.22: avoid deprecated gdk_screen_get_monitor... functions: avoid deprecated: gdk_screen_get_monitor_geometry gdk_screen_get_monitor_at_window --- mate-screenshot/src/screenshot-utils.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mate-screenshot/src/screenshot-utils.c') diff --git a/mate-screenshot/src/screenshot-utils.c b/mate-screenshot/src/screenshot-utils.c index 55239a5c..8001b502 100644 --- a/mate-screenshot/src/screenshot-utils.c +++ b/mate-screenshot/src/screenshot-utils.c @@ -603,7 +603,11 @@ make_region_with_monitors (GdkScreen *screen) { GdkRectangle rect; +#if GTK_CHECK_VERSION (3, 22, 0) + gdk_monitor_get_geometry (gdk_display_get_monitor (display, i), &rect); +#else gdk_screen_get_monitor_geometry (screen, i, &rect); +#endif cairo_region_union_rectangle (region, &rect); } -- cgit v1.2.1