summaryrefslogtreecommitdiff
path: root/libview/ev-view-presentation.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-19 01:40:38 +0200
committerraveit65 <[email protected]>2017-08-20 17:00:09 +0200
commitd9fffe2dc0e33d6777099c18635b7b75f54d3d35 (patch)
tree534278c6d1090d27cb6fe05f9ab73078cb15df2b /libview/ev-view-presentation.c
parent4650fb05e46e144be986a11a666a47add39b3799 (diff)
downloadatril-d9fffe2dc0e33d6777099c18635b7b75f54d3d35.tar.bz2
atril-d9fffe2dc0e33d6777099c18635b7b75f54d3d35.tar.xz
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'libview/ev-view-presentation.c')
-rw-r--r--libview/ev-view-presentation.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 74ce60ee..40dea3ea 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -720,12 +720,16 @@ ev_view_presentation_goto_window_send_key_event (EvViewPresentation *pview,
{
GdkEventKey *new_event;
GdkScreen *screen;
+ gint sc_width;
+ gint sc_height;
/* Move goto window off screen */
screen = gtk_widget_get_screen (GTK_WIDGET (pview));
- gtk_window_move (GTK_WINDOW (pview->goto_window),
- gdk_screen_get_width (screen) + 1,
- gdk_screen_get_height (screen) + 1);
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &sc_width, &sc_height);
+
+ gtk_window_move (GTK_WINDOW (pview->goto_window), sc_width + 1, sc_height + 1);
gtk_widget_show (pview->goto_window);
new_event = (GdkEventKey *) gdk_event_copy (event);