summaryrefslogtreecommitdiff
path: root/applets/notification_area/testtray.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/testtray.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/testtray.c')
-rw-r--r--applets/notification_area/testtray.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/notification_area/testtray.c b/applets/notification_area/testtray.c
index b2ce0fa2..cc36c02f 100644
--- a/applets/notification_area/testtray.c
+++ b/applets/notification_area/testtray.c
@@ -139,7 +139,7 @@ create_tray_on_screen (GdkScreen *screen,
"Override tray manager?");
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"There is already a tray manager running on screen %d.",
- gdk_screen_get_number (screen));
+ gdk_x11_screen_get_screen_number (screen));
gtk_window_set_screen (GTK_WINDOW (dialog), screen);
g_signal_connect (dialog, "response", G_CALLBACK (warning_dialog_response_cb), screen);
gtk_window_present (GTK_WINDOW (dialog));
@@ -149,7 +149,7 @@ create_tray_on_screen (GdkScreen *screen,
data = g_new0 (TrayData, 1);
data->screen = screen;
- data->screen_num = gdk_screen_get_number (screen);
+ data->screen_num = gdk_x11_screen_get_screen_number (screen);
data->window = window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_object_weak_ref (G_OBJECT (window), (GWeakNotify) maybe_quit, NULL);
@@ -274,7 +274,7 @@ main (int argc, char *argv[])
screen = gdk_display_get_default_screen (display);
create_tray_on_screen (screen, FALSE);
-
+
gtk_main ();
#ifdef PROVIDE_WATCHER_SERVICE