[gnome-shell] [ShellApp] Fix handler signature for workspace switch



commit d705c1bb5277712ee84e197ae68e4b98cd34f6f5
Author: Colin Walters <walters verbum org>
Date:   Thu Oct 15 13:52:17 2009 -0400

    [ShellApp] Fix handler signature for workspace switch
    
    This was causing crashes or undefined behavior.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=598227

 src/shell-app.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index 6ce0983..bc87a12 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -243,8 +243,13 @@ shell_app_on_unmanaged (MetaWindow      *window,
 }
 
 static void
-shell_app_on_ws_switch (ShellApp   *self)
+shell_app_on_ws_switch (MetaScreen         *screen,
+                        int                 from,
+                        int                 to,
+                        MetaMotionDirection direction,
+                        gpointer            data)
 {
+  ShellApp *self = SHELL_APP (data);
   self->window_sort_stale = TRUE;
   g_signal_emit (self, shell_app_signals[WINDOWS_CHANGED], 0);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]