summaryrefslogtreecommitdiff
path: root/src/caja-desktop-window.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-07 02:56:30 +0200
committerlukefromdc <[email protected]>2017-08-12 22:16:28 -0400
commit17b3c0ca924ffcd4bd06fded98227eba626d4f0b (patch)
tree089be8a53def688e8dea11c48b00c16a34111d7f /src/caja-desktop-window.c
parent6c51a333e80df22587df4d9e0e2789fd1289d728 (diff)
downloadcaja-17b3c0ca924ffcd4bd06fded98227eba626d4f0b.tar.bz2
caja-17b3c0ca924ffcd4bd06fded98227eba626d4f0b.tar.xz
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'src/caja-desktop-window.c')
-rw-r--r--src/caja-desktop-window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c
index 0d2a9f7f..3bb72095 100644
--- a/src/caja-desktop-window.c
+++ b/src/caja-desktop-window.c
@@ -115,8 +115,8 @@ caja_desktop_window_screen_size_changed (GdkScreen *screen,
{
int width_request, height_request;
- width_request = gdk_screen_get_width (screen);
- height_request = gdk_screen_get_height (screen);
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &width_request, &height_request);
g_object_set (window,
"width_request", width_request,
@@ -131,8 +131,8 @@ caja_desktop_window_new (CajaApplication *application,
CajaDesktopWindow *window;
int width_request, height_request;
- width_request = gdk_screen_get_width (screen);
- height_request = gdk_screen_get_height (screen);
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &width_request, &height_request);
window = CAJA_DESKTOP_WINDOW
(gtk_widget_new (caja_desktop_window_get_type(),