diff options
Diffstat (limited to 'previewer/ev-previewer-window.c')
-rw-r--r-- | previewer/ev-previewer-window.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c index 9200dd5e..8d9852f2 100644 --- a/previewer/ev-previewer-window.c +++ b/previewer/ev-previewer-window.c @@ -71,20 +71,13 @@ static gdouble get_screen_dpi (EvPreviewerWindow *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); } |