diff options
author | raveit65 <[email protected]> | 2018-03-25 09:04:46 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-26 15:36:24 +0200 |
commit | b9dcc2af55184359ea4da1b8bc416ccbb057ee2c (patch) | |
tree | dd80a0412e49134b7e5ce0a234bc47e48bddc6f5 | |
parent | c0cf2c68246f48c54c34becc8e8b0d1f4b6f128f (diff) | |
download | atril-b9dcc2af55184359ea4da1b8bc416ccbb057ee2c.tar.bz2 atril-b9dcc2af55184359ea4da1b8bc416ccbb057ee2c.tar.xz |
libview: avoid deprecated gdk_screen_get_monitor
....in ev-view-presentation
This was introduced again in previous commit.
-rw-r--r-- | libview/ev-view-presentation.c | 8 |
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; } |