diff options
author | ZenWalker <[email protected]> | 2017-07-16 04:18:38 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-07-16 20:55:54 -0400 |
commit | 7bee2f870bcf850f68fdf8d8db4bd2e914ece143 (patch) | |
tree | 3eec98f92a396c40e0db2b1cfaf531489294492e /applets/wncklet/wncklet.c | |
parent | cf46fb7f03d6ab0e106fa1cbfbf180fbbb9a5b75 (diff) | |
download | mate-panel-7bee2f870bcf850f68fdf8d8db4bd2e914ece143.tar.bz2 mate-panel-7bee2f870bcf850f68fdf8d8db4bd2e914ece143.tar.xz |
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'applets/wncklet/wncklet.c')
-rw-r--r-- | applets/wncklet/wncklet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applets/wncklet/wncklet.c b/applets/wncklet/wncklet.c index d9b9fd47..7ad3c0a1 100644 --- a/applets/wncklet/wncklet.c +++ b/applets/wncklet/wncklet.c @@ -30,6 +30,7 @@ #include <glib/gi18n.h> #include <gtk/gtk.h> +#include <gdk/gdkx.h> #define WNCK_I_KNOW_THIS_IS_UNSTABLE #include <libwnck/libwnck.h> @@ -99,7 +100,7 @@ WnckScreen* wncklet_get_screen(GtkWidget* applet) if (!gtk_widget_has_screen(applet)) return wnck_screen_get_default(); - screen_num = gdk_screen_get_number(gtk_widget_get_screen(applet)); + screen_num = gdk_x11_screen_get_screen_number(gtk_widget_get_screen(applet)); return wnck_screen_get(screen_num); } |