summaryrefslogtreecommitdiff
path: root/eel/eel-background.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 /eel/eel-background.c
parent6c51a333e80df22587df4d9e0e2789fd1289d728 (diff)
downloadcaja-17b3c0ca924ffcd4bd06fded98227eba626d4f0b.tar.bz2
caja-17b3c0ca924ffcd4bd06fded98227eba626d4f0b.tar.xz
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'eel/eel-background.c')
-rw-r--r--eel/eel-background.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/eel/eel-background.c b/eel/eel-background.c
index 76f47a69..b096650a 100644
--- a/eel/eel-background.c
+++ b/eel/eel-background.c
@@ -311,9 +311,13 @@ drawable_get_adjusted_size (EelBackground *self,
{
if (self->details->is_desktop)
{
+ gint sc_width, sc_height;
GdkScreen *screen = gtk_widget_get_screen (self->details->widget);
- *width = gdk_screen_get_width (screen);
- *height = gdk_screen_get_height (screen);
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &sc_width, &sc_height);
+ *width = sc_width;
+ *height = sc_height;
}
else
{