summaryrefslogtreecommitdiff
path: root/applets/wncklet/showdesktop.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/wncklet/showdesktop.c
parentcf46fb7f03d6ab0e106fa1cbfbf180fbbb9a5b75 (diff)
downloadmate-panel-7bee2f870bcf850f68fdf8d8db4bd2e914ece143.tar.bz2
mate-panel-7bee2f870bcf850f68fdf8d8db4bd2e914ece143.tar.xz
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'applets/wncklet/showdesktop.c')
-rw-r--r--applets/wncklet/showdesktop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index a9aebb10..59d537cf 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -361,7 +361,7 @@ static void show_desktop_applet_realized(MatePanelApplet* applet, gpointer data)
g_signal_handlers_disconnect_by_func(sdd->icon_theme, theme_changed_callback, sdd);
screen = gtk_widget_get_screen(sdd->applet);
- sdd->wnck_screen = wnck_screen_get(gdk_screen_get_number (screen));
+ sdd->wnck_screen = wnck_screen_get(gdk_x11_screen_get_screen_number (screen));
if (sdd->wnck_screen != NULL)
wncklet_connect_while_alive(sdd->wnck_screen, "showing_desktop_changed", G_CALLBACK(show_desktop_changed_callback), sdd, sdd->applet);