Skip to content


libview: avoid deprecated gdk_screen_get_monitor
Browse files Browse the repository at this point in the history ev-view-presentation

This was introduced again in previous commit.
  • Loading branch information
raveit65 committed Mar 26, 2018
1 parent c0cf2c6 commit b9dcc2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libview/ev-view-presentation.c
Expand Up @@ -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;
Expand Down

0 comments on commit b9dcc2a

Please sign in to comment.