summaryrefslogtreecommitdiff
path: root/applets/notification_area/system-tray/na-tray-manager.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-16 04:18:38 +0200
committerlukefromdc <[email protected]>2017-07-16 20:55:54 -0400
commit7bee2f870bcf850f68fdf8d8db4bd2e914ece143 (patch)
tree3eec98f92a396c40e0db2b1cfaf531489294492e /applets/notification_area/system-tray/na-tray-manager.c
parentcf46fb7f03d6ab0e106fa1cbfbf180fbbb9a5b75 (diff)
downloadmate-panel-7bee2f870bcf850f68fdf8d8db4bd2e914ece143.tar.bz2
mate-panel-7bee2f870bcf850f68fdf8d8db4bd2e914ece143.tar.xz
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'applets/notification_area/system-tray/na-tray-manager.c')
-rw-r--r--applets/notification_area/system-tray/na-tray-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/notification_area/system-tray/na-tray-manager.c b/applets/notification_area/system-tray/na-tray-manager.c
index 94d3003d..3886a10d 100644
--- a/applets/notification_area/system-tray/na-tray-manager.c
+++ b/applets/notification_area/system-tray/na-tray-manager.c
@@ -780,7 +780,7 @@ na_tray_manager_manage_screen_x11 (NaTrayManager *manager,
GDK_PROPERTY_CHANGE_MASK | GDK_STRUCTURE_MASK);
selection_atom_name = g_strdup_printf ("_NET_SYSTEM_TRAY_S%d",
- gdk_screen_get_number (screen));
+ gdk_x11_screen_get_screen_number (screen));
manager->selection_atom = gdk_atom_intern (selection_atom_name, FALSE);
g_free (selection_atom_name);
@@ -886,7 +886,7 @@ na_tray_manager_check_running_screen_x11 (GdkScreen *screen)
display = gdk_screen_get_display (screen);
selection_atom_name = g_strdup_printf ("_NET_SYSTEM_TRAY_S%d",
- gdk_screen_get_number (screen));
+ gdk_x11_screen_get_screen_number (screen));
selection_atom = gdk_x11_get_xatom_by_name_for_display (display,
selection_atom_name);
g_free (selection_atom_name);