From 10b38211e032738593dfe71176289c275956b476 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Thu, 7 Dec 2017 01:37:08 +0100 Subject: 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 --- applets/clock/clock.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'applets/clock/clock.c') diff --git a/applets/clock/clock.c b/applets/clock/clock.c index 622e3adf..0076c780 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -925,9 +925,8 @@ position_calendar_popup (ClockData *cd) monitors */ monitor.x = 0; monitor.y = 0; - - gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, - &monitor.width, &monitor.height); + monitor.width = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)); + monitor.height = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)); } /* Based on panel orientation, position the popup. -- cgit v1.2.1