diff options
author | ZenWalker <[email protected]> | 2017-08-07 20:33:08 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-08-13 14:34:57 -0400 |
commit | 7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e (patch) | |
tree | b463e4d5b37eaf2e9c34b8b536c2164a6aab5a5b /applets/notification_area/system-tray | |
parent | 8a8ca9c24c7b4d9bec8666dd9a17c5541106bd7e (diff) | |
download | mate-panel-7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e.tar.bz2 mate-panel-7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e.tar.xz |
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'applets/notification_area/system-tray')
-rw-r--r-- | applets/notification_area/system-tray/fixedtip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/notification_area/system-tray/fixedtip.c b/applets/notification_area/system-tray/fixedtip.c index 6356de9b..eca42a3f 100644 --- a/applets/notification_area/system-tray/fixedtip.c +++ b/applets/notification_area/system-tray/fixedtip.c @@ -158,8 +158,8 @@ na_fixed_tip_position (NaFixedTip *fixedtip) parent_width = gdk_window_get_width(parent_window); parent_height = gdk_window_get_height(parent_window); - 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); /* pad between panel and message window */ #define PAD 5 |