diff options
author | raveit65 <[email protected]> | 2017-08-09 17:16:10 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-12 22:01:34 +0200 |
commit | e4dc06ec2c72f536affda251c98a42dc8355ede3 (patch) | |
tree | fa7ac89c617521a1c4a6ce4d901f99ef2da4faed | |
parent | a134dcdcd6e4b6934c5e8f3cc66ac824d9914d5b (diff) | |
download | atril-e4dc06ec2c72f536affda251c98a42dc8355ede3.tar.bz2 atril-e4dc06ec2c72f536affda251c98a42dc8355ede3.tar.xz |
fix runtime warnings caused by previous HDPI commit
-rw-r--r-- | libview/ev-annotation-window.c | 2 | ||||
-rw-r--r-- | previewer/ev-previewer-window.c | 2 | ||||
-rw-r--r-- | shell/ev-window.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c index b352c2fd..a6c48d15 100644 --- a/libview/ev-annotation-window.c +++ b/libview/ev-annotation-window.c @@ -100,7 +100,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 59a3a27e..066655d9 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); } |