summaryrefslogtreecommitdiff
path: root/typing-break/drw-utils.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-06 02:01:47 +0200
committerraveit65 <[email protected]>2017-08-15 17:20:58 +0200
commit061f3780a3af6224a804d239f9b9dfc5c81873f6 (patch)
tree6bd01d58e8dcce0c51e015b1a441c25b9c5a6d9e /typing-break/drw-utils.c
parent930a86b399d43ab779d8b70e43e31e4ef453fb8e (diff)
downloadmate-control-center-061f3780a3af6224a804d239f9b9dfc5c81873f6.tar.bz2
mate-control-center-061f3780a3af6224a804d239f9b9dfc5c81873f6.tar.xz
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'typing-break/drw-utils.c')
-rw-r--r--typing-break/drw-utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/typing-break/drw-utils.c b/typing-break/drw-utils.c
index 974f47ac..53a6493f 100644
--- a/typing-break/drw-utils.c
+++ b/typing-break/drw-utils.c
@@ -124,8 +124,9 @@ set_pixmap_background (GtkWidget *window)
gtk_widget_realize (window);
screen = gtk_widget_get_screen (window);
- width = gdk_screen_get_width (screen);
- height = gdk_screen_get_height (screen);
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &width, &height);
tmp_pixbuf = gdk_pixbuf_get_from_window (gdk_screen_get_root_window (screen),
0,