diff options
author | ZenWalker <[email protected]> | 2017-08-07 02:56:30 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-08-12 22:16:28 -0400 |
commit | 17b3c0ca924ffcd4bd06fded98227eba626d4f0b (patch) | |
tree | 089be8a53def688e8dea11c48b00c16a34111d7f /eel/eel-gtk-extensions.c | |
parent | 6c51a333e80df22587df4d9e0e2789fd1289d728 (diff) | |
download | caja-17b3c0ca924ffcd4bd06fded98227eba626d4f0b.tar.bz2 caja-17b3c0ca924ffcd4bd06fded98227eba626d4f0b.tar.xz |
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'eel/eel-gtk-extensions.c')
-rw-r--r-- | eel/eel-gtk-extensions.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c index 800fe6cd..b9d870c5 100644 --- a/eel/eel-gtk-extensions.c +++ b/eel/eel-gtk-extensions.c @@ -168,8 +168,9 @@ eel_gtk_window_set_initial_geometry (GtkWindow *window, real_top = top; screen = gtk_window_get_screen (window); - screen_width = gdk_screen_get_width (screen); - screen_height = gdk_screen_get_height (screen); + + gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, + &screen_width, &screen_height); /* This is sub-optimal. GDK doesn't allow us to set win_gravity * to South/East types, which should be done if using negative |