Skip to content
Browse files
libview: avoid deprecated gdk_screen_get_monitor ev-view-presentation

This was introduced again in previous commit.
  • Loading branch information
raveit65 committed Mar 26, 2018
1 parent c0cf2c6 commit b9dcc2af55184359ea4da1b8bc416ccbb057ee2c
Showing with 4 additions and 4 deletions.
  1. +4 −4 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;

0 comments on commit b9dcc2a

Please sign in to comment.