summaryrefslogtreecommitdiff
path: root/applets/fish
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-07 20:33:08 +0200
committerlukefromdc <[email protected]>2017-08-13 14:34:57 -0400
commit7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e (patch)
treeb463e4d5b37eaf2e9c34b8b536c2164a6aab5a5b /applets/fish
parent8a8ca9c24c7b4d9bec8666dd9a17c5541106bd7e (diff)
downloadmate-panel-7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e.tar.bz2
mate-panel-7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e.tar.xz
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'applets/fish')
-rw-r--r--applets/fish/fish.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/fish/fish.c b/applets/fish/fish.c
index f434f8a5..95faf402 100644
--- a/applets/fish/fish.c
+++ b/applets/fish/fish.c
@@ -856,8 +856,8 @@ static void display_fortune_dialog(FishApplet* fish)
screen = gtk_widget_get_screen (GTK_WIDGET (fish));
- screen_width = gdk_screen_get_width (screen);
- screen_height = gdk_screen_get_height (screen);
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &screen_width, &screen_height);
gtk_window_set_default_size (GTK_WINDOW (fish->fortune_dialog),
MIN (600, screen_width * 0.9),