diff options
author | ZenWalker <[email protected]> | 2017-08-21 17:47:54 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2017-08-21 17:47:54 +0200 |
commit | 0f6161518c8666bc931b2ae18ddb57b8aa0ac067 (patch) | |
tree | d58003c3d49013128ddcf70a30eb9c908abd23e5 /mate-screenshot | |
parent | b210e404823cb5b1fa5b74d700fa3f89c2ea71a2 (diff) | |
download | mate-utils-0f6161518c8666bc931b2ae18ddb57b8aa0ac067.tar.bz2 mate-utils-0f6161518c8666bc931b2ae18ddb57b8aa0ac067.tar.xz |
gtk 3.22: avoid deprecated gdk_screen_get_monitor... functions:
avoid deprecated:
gdk_screen_get_monitor_geometry
gdk_screen_get_monitor_at_window
Diffstat (limited to 'mate-screenshot')
-rw-r--r-- | mate-screenshot/src/screenshot-utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |