From 2e1638bc7bcdb0b3bc7d6664ac53f73e4683f2d6 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 9 Aug 2017 17:16:10 +0200 Subject: fix runtime warnings caused by previous HDPI commit --- previewer/ev-previewer-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'previewer') diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c index 45545fbf..2ec298bb 100644 --- a/previewer/ev-previewer-window.c +++ b/previewer/ev-previewer-window.c @@ -74,7 +74,7 @@ get_screen_dpi (EvPreviewerWindow *window) gint monitor; screen = gtk_window_get_screen (GTK_WINDOW (window)); - monitor = gdk_screen_get_monitor_at_window(screen, gtk_widget_get_window(GTK_WIDGET(GTK_WINDOW(window)))); + monitor = gdk_screen_get_primary_monitor (screen); return ev_document_misc_get_screen_dpi (screen, monitor); } -- cgit v1.2.1