summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-03-25 09:04:46 +0200
committerraveit65 <[email protected]>2018-03-26 13:49:10 +0200
commit0c160a1beb9291ebce9f01e165a208b751fb1b91 (patch)
tree6939aa3bc30f57278787594a859694cc90b6be78 /libview
parent557d371972b4410765afb303ab6ec82720e0e86b (diff)
downloadatril-0c160a1beb9291ebce9f01e165a208b751fb1b91.tar.bz2
atril-0c160a1beb9291ebce9f01e165a208b751fb1b91.tar.xz
libview: avoid deprecated gdk_screen_get_monitor
....in ev-view-presentation This was introduced again in previous commit.
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view-presentation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 31a473ae..1916da86 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -1233,12 +1233,12 @@ ev_view_presentation_motion_notify_event (GtkWidget *widget,
static void
ev_view_presentation_update_monitor_geometry (EvViewPresentation *pview)
{
- GdkScreen *screen = gtk_widget_get_screen (GTK_WIDGET (pview));
+ GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (pview));
GdkRectangle monitor;
- gint monitor_num;
+ GdkMonitor *monitor_num;
- monitor_num = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (GTK_WIDGET (pview)));
- gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor);
+ monitor_num = gdk_display_get_monitor_at_window (display, gtk_widget_get_window (GTK_WIDGET (pview)));
+ gdk_monitor_get_geometry (monitor_num, &monitor);
pview->monitor_width = monitor.width;
pview->monitor_height = monitor.height;
}