From 0be1bd917ac00a4553bc6d3ace836aed44cd99a4 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sun, 14 Feb 2016 11:22:11 +0100 Subject: GTK+-3.0 workspace-switcher: Remove switching workspace on scroll events This is now done by WnckPager itself. And it fixes a build warning. taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=8a8c60f --- applets/wncklet/workspace-switcher.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'applets') diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c index b2c62483..07a9cf2d 100644 --- a/applets/wncklet/workspace-switcher.c +++ b/applets/wncklet/workspace-switcher.c @@ -250,6 +250,7 @@ static void applet_change_background(MatePanelApplet* applet, MatePanelAppletBac #endif } +#if !GTK_CHECK_VERSION (3, 0, 0) static gboolean applet_scroll(MatePanelApplet* applet, GdkEventScroll* event, PagerData* pager) { GdkScrollDirection absolute_direction; @@ -353,6 +354,7 @@ static gboolean applet_scroll(MatePanelApplet* applet, GdkEventScroll* event, Pa return TRUE; } +#endif static void destroy_pager(GtkWidget* widget, PagerData* pager) { @@ -577,7 +579,9 @@ gboolean workspace_switcher_applet_fill(MatePanelApplet* applet) g_signal_connect(G_OBJECT(pager->applet), "realize", G_CALLBACK(applet_realized), pager); g_signal_connect(G_OBJECT(pager->applet), "unrealize", G_CALLBACK(applet_unrealized), pager); g_signal_connect(G_OBJECT(pager->applet), "change_orient", G_CALLBACK(applet_change_orient), pager); +#if !GTK_CHECK_VERSION (3, 0, 0) g_signal_connect(G_OBJECT(pager->applet), "scroll-event", G_CALLBACK(applet_scroll), pager); +#endif g_signal_connect(G_OBJECT(pager->applet), "change_background", G_CALLBACK(applet_change_background), pager); gtk_widget_show(pager->applet); -- cgit v1.2.1