diff options
author | ZenWalker <[email protected]> | 2017-08-14 03:29:29 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-08-22 02:16:22 -0400 |
commit | 57d3c8f702887516504c54c398d40e7343e93138 (patch) | |
tree | 579bb0b0fc5790dd8a69d76e8b74f868e1653e42 /applets/clock | |
parent | 4a25da504204639cee268d0fac1516f03d2fe6bb (diff) | |
download | mate-panel-57d3c8f702887516504c54c398d40e7343e93138.tar.bz2 mate-panel-57d3c8f702887516504c54c398d40e7343e93138.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
gdk_screen_get_monitor_at_point
Diffstat (limited to 'applets/clock')
-rw-r--r-- | applets/clock/clock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c index c765b7ef..f52ce88b 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -909,7 +909,11 @@ position_calendar_popup (ClockData *cd) n = gdk_screen_get_n_monitors (screen); #endif for (i = 0; i < n; i++) { +#if GTK_CHECK_VERSION (3, 22, 0) + gdk_monitor_get_geometry (gdk_display_get_monitor (display, i), &monitor); +#else gdk_screen_get_monitor_geometry (screen, i, &monitor); +#endif if (x >= monitor.x && x <= monitor.x + monitor.width && y >= monitor.y && y <= monitor.y + monitor.height) { found_monitor = TRUE; |