summaryrefslogtreecommitdiff
path: root/applets/notification_area/system-tray
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2017-12-07 01:37:08 +0100
committerraveit65 <[email protected]>2017-12-17 12:22:49 +0100
commit10b38211e032738593dfe71176289c275956b476 (patch)
tree26b8b3026ca845e790439449f720c5611747f9ec /applets/notification_area/system-tray
parent54a0b4dcb0b2462eea51cdbcbe8306f25e8e4cea (diff)
downloadmate-panel-10b38211e032738593dfe71176289c275956b476.tar.bz2
mate-panel-10b38211e032738593dfe71176289c275956b476.tar.xz
WidthOfScreen and HeightOfScreen implementation
This commit reverts: https://github.com/mate-desktop/mate-panel/commit/7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e And it applies an alternative to fix the deprecated functions: gdk_screen_get_width gdk_screen_get_height
Diffstat (limited to 'applets/notification_area/system-tray')
-rw-r--r--applets/notification_area/system-tray/fixedtip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/applets/notification_area/system-tray/fixedtip.c b/applets/notification_area/system-tray/fixedtip.c
index eca42a3f..d233424e 100644
--- a/applets/notification_area/system-tray/fixedtip.c
+++ b/applets/notification_area/system-tray/fixedtip.c
@@ -20,6 +20,7 @@
* 02110-1301, USA.
*/
+#include <gdk/gdkx.h>
#include "fixedtip.h"
/* Signals */
@@ -158,8 +159,8 @@ na_fixed_tip_position (NaFixedTip *fixedtip)
parent_width = gdk_window_get_width(parent_window);
parent_height = gdk_window_get_height(parent_window);
- gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
- &screen_width, &screen_height);
+ screen_width = WidthOfScreen (gdk_x11_screen_get_xscreen (screen));
+ screen_height = HeightOfScreen (gdk_x11_screen_get_xscreen (screen));
/* pad between panel and message window */
#define PAD 5