summaryrefslogtreecommitdiff
path: root/plugins/keyboard/delayed-dialog.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-17 01:03:08 +0200
committerraveit65 <[email protected]>2017-07-27 15:33:35 +0200
commit39fa8f54b18ee53030344cb7e2a898cb12f93d59 (patch)
treefa2059e28dc04dfdd4b5d3594edab2be88706a53 /plugins/keyboard/delayed-dialog.c
parentef85d5b77978fd6f9c927ab2b3638b07301eb657 (diff)
downloadmate-settings-daemon-39fa8f54b18ee53030344cb7e2a898cb12f93d59.tar.bz2
mate-settings-daemon-39fa8f54b18ee53030344cb7e2a898cb12f93d59.tar.xz
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'plugins/keyboard/delayed-dialog.c')
-rw-r--r--plugins/keyboard/delayed-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/keyboard/delayed-dialog.c b/plugins/keyboard/delayed-dialog.c
index 0027c04..c2e469e 100644
--- a/plugins/keyboard/delayed-dialog.c
+++ b/plugins/keyboard/delayed-dialog.c
@@ -53,7 +53,7 @@ msd_delayed_show_dialog (GtkWidget *dialog)
* it's an unknown out-of-process window.
*/
snprintf (selection_name, sizeof (selection_name), "WM_S%d",
- gdk_screen_get_number (screen));
+ gdk_x11_screen_get_screen_number (screen));
selection_atom = XInternAtom (xdisplay, selection_name, True);
if (selection_atom &&
XGetSelectionOwner (xdisplay, selection_atom) != None) {
@@ -112,7 +112,7 @@ message_filter (GdkXEvent *xevent, GdkEvent *event, gpointer data)
GtkWidget *dialog = l->data;
next = l->next;
- if (gdk_screen_get_number (gtk_widget_get_screen (dialog)) == screen) {
+ if (gdk_x11_screen_get_screen_number (gtk_widget_get_screen (dialog)) == screen) {
gtk_widget_show (dialog);
dialogs = g_slist_remove (dialogs, dialog);
}