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 | |
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')
-rw-r--r-- | applets/wncklet/showdesktop.c | 2 | ||||
-rw-r--r-- | applets/wncklet/wncklet.c | 3 |
2 files changed, 3 insertions, 2 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); 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); } |