summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}