diff options
author | Pablo Barciela <[email protected]> | 2017-12-04 01:01:52 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-12-16 20:04:18 +0100 |
commit | 2fea2c846689d3810def93e6e0e6eeb01c2ef718 (patch) | |
tree | 3ec5bb043842bbc5e6e9e504a4b4adc2ef22aecf /src/caja-desktop-window.c | |
parent | c6b81f64c4c4212e414c04e584380774d6ac83ca (diff) | |
download | caja-2fea2c846689d3810def93e6e0e6eeb01c2ef718.tar.bz2 caja-2fea2c846689d3810def93e6e0e6eeb01c2ef718.tar.xz |
WidthOfScreen and HeightOfScreen implementation
This commit reverts:
https://github.com/mate-desktop/caja/commit/4c130e22b98bbc1a85747adac3b582e45d34514e
https://github.com/mate-desktop/caja/commit/ac12e6d16f4a51b3327d013781e72cfec17f3624
https://github.com/mate-desktop/caja/commit/17b3c0ca924ffcd4bd06fded98227eba626d4f0b
https://github.com/mate-desktop/caja/commit/42c8d2c3373c25d6e321be6950997c0d7ce44279
And it applies an alternative to fix the deprecated functions:
gdk_screen_get_width
gdk_screen_get_height
gdk_screen_width
gdk_screen_height
Diffstat (limited to 'src/caja-desktop-window.c')
-rw-r--r-- | src/caja-desktop-window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index 3bb72095..a0a71a27 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; - gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, - &width_request, &height_request); + width_request = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)); + height_request = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)); 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; - gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, - &width_request, &height_request); + width_request = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)); + height_request = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)); window = CAJA_DESKTOP_WINDOW (gtk_widget_new (caja_desktop_window_get_type(), |