summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-09 17:16:10 +0200
committerraveit65 <[email protected]>2017-08-15 15:31:51 +0200
commit2e1638bc7bcdb0b3bc7d6664ac53f73e4683f2d6 (patch)
treec2004456ad887a872b8f17cf875e7f0fd318e463
parentc75f49d323a17d244e3363c2fc9152bc275c5fb2 (diff)
downloadatril-2e1638bc7bcdb0b3bc7d6664ac53f73e4683f2d6.tar.bz2
atril-2e1638bc7bcdb0b3bc7d6664ac53f73e4683f2d6.tar.xz
fix runtime warnings caused by previous HDPI commit
-rw-r--r--libview/ev-annotation-window.c2
-rw-r--r--previewer/ev-previewer-window.c2
-rw-r--r--shell/ev-window.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index dac7f8d4..847e8750 100644
--- a/libview/ev-annotation-window.c
+++ b/libview/ev-annotation-window.c
@@ -102,7 +102,7 @@ get_screen_dpi (EvAnnotationWindow *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);
}
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);
}
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 88cfa5f7..25845430 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -387,7 +387,7 @@ get_screen_dpi (EvWindow *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);
}