diff options
author | monsta <[email protected]> | 2018-01-29 22:22:48 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-01-31 09:55:09 +0100 |
commit | 45cbbd09a196d3143e25db3fe0ae7103388aae10 (patch) | |
tree | 2d8e302296e4b3d292db479f24f92d9f7065788b /libview/ev-view-presentation.c | |
parent | 32575e23107333add227eaa0501ae3cfe6d4fd8a (diff) | |
download | atril-45cbbd09a196d3143e25db3fe0ae7103388aae10.tar.bz2 atril-45cbbd09a196d3143e25db3fe0ae7103388aae10.tar.xz |
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'libview/ev-view-presentation.c')
-rw-r--r-- | libview/ev-view-presentation.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c index f52dff8b..72df922d 100644 --- a/libview/ev-view-presentation.c +++ b/libview/ev-view-presentation.c @@ -1210,23 +1210,13 @@ static gboolean init_presentation (GtkWidget *widget) { EvViewPresentation *pview = EV_VIEW_PRESENTATION (widget); -#if GTK_CHECK_VERSION (3, 22, 0) GdkDisplay *display = gtk_widget_get_display (widget); GdkRectangle monitor; GdkMonitor *monitor_num; -#else - GdkScreen *screen = gtk_widget_get_screen (widget); - GdkRectangle monitor; - gint monitor_num; -#endif -#if GTK_CHECK_VERSION (3, 22, 0) monitor_num = gdk_display_get_monitor_at_window (display, gtk_widget_get_window (widget)); gdk_monitor_get_geometry (monitor_num, &monitor); -#else - monitor_num = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (widget)); - gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); -#endif + pview->monitor_width = monitor.width; pview->monitor_height = monitor.height; |