From 45cbbd09a196d3143e25db3fe0ae7103388aae10 Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 29 Jan 2018 22:22:48 +0300 Subject: require GTK+ 3.22 and GLib 2.50 --- libview/ev-annotation-window.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libview/ev-annotation-window.c') diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c index e3c3783a..86ec6488 100644 --- a/libview/ev-annotation-window.c +++ b/libview/ev-annotation-window.c @@ -97,20 +97,13 @@ static gdouble get_screen_dpi (EvAnnotationWindow *window) { GdkScreen *screen; -#if GTK_CHECK_VERSION (3, 22, 0) GdkMonitor *monitor; GdkDisplay *display; -#else - gint monitor; -#endif screen = gtk_window_get_screen (GTK_WINDOW (window)); -#if GTK_CHECK_VERSION (3, 22, 0) display = gdk_screen_get_display (screen); monitor = gdk_display_get_primary_monitor (display); -#else - monitor = gdk_screen_get_primary_monitor (screen); -#endif + return ev_document_misc_get_screen_dpi (screen, monitor); } -- cgit v1.2.1