summaryrefslogtreecommitdiff
path: root/libslab/shell-window.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-12 02:13:26 +0200
committerraveit65 <[email protected]>2017-08-15 17:20:58 +0200
commitfe782c673262e861334bb48265abf5075ff02680 (patch)
treecb268405284f379a0f24d7dde24fe09e241e35f3 /libslab/shell-window.c
parentb2c80db482ccba74a92e1bb588c9c0f4fcfc3f66 (diff)
downloadmate-control-center-fe782c673262e861334bb48265abf5075ff02680.tar.bz2
mate-control-center-fe782c673262e861334bb48265abf5075ff02680.tar.xz
libslab: avoid deprecated gdk_screen_width/height
Diffstat (limited to 'libslab/shell-window.c')
-rw-r--r--libslab/shell-window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libslab/shell-window.c b/libslab/shell-window.c
index 75201d58..0b6df1cb 100644
--- a/libslab/shell-window.c
+++ b/libslab/shell-window.c
@@ -113,8 +113,13 @@ shell_window_handle_size_request (GtkWidget * widget, GtkRequisition * requisiti
height = child_requisiton.height + 10;
if (height > requisition->height)
{
+ gint sc_height;
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (gdk_screen_get_default()),
+ NULL, NULL, NULL, &sc_height);
+
requisition->height =
- MIN (((gfloat) gdk_screen_height () * SIZING_HEIGHT_PERCENT), height);
+ MIN (((gfloat) sc_height * SIZING_HEIGHT_PERCENT), height);
}
}