[clutter/clutter-1.14] Add default handler for ClutterSwipeAction::swipe



commit 67eb8eaf36264071ba4cefe9bac7d82bd4d2460a
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Wed Dec 26 13:56:19 2012 +0100

    Add default handler for ClutterSwipeAction::swipe
    
    So code that still uses the deprecated ::swept keeps working
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690735

 clutter/clutter-swipe-action.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-swipe-action.c b/clutter/clutter-swipe-action.c
index bfcb525..0b0886b 100644
--- a/clutter/clutter-swipe-action.c
+++ b/clutter/clutter-swipe-action.c
@@ -169,6 +169,15 @@ gesture_end (ClutterGestureAction *action,
     g_signal_emit (action, swipe_signals[SWEPT], 0, actor, direction);
 }
 
+/* XXX:2.0 remove */
+static gboolean
+clutter_swipe_action_real_swipe (ClutterSwipeAction    *action,
+                                 ClutterActor          *actor,
+                                 ClutterSwipeDirection  direction)
+{
+  return TRUE;
+}
+
 static void
 clutter_swipe_action_class_init (ClutterSwipeActionClass *klass)
 {
@@ -181,6 +190,9 @@ clutter_swipe_action_class_init (ClutterSwipeActionClass *klass)
   gesture_class->gesture_progress = gesture_progress;
   gesture_class->gesture_end = gesture_end;
 
+  /* XXX:2.0 remove */
+  klass->swipe = clutter_swipe_action_real_swipe;
+
   /**
    * ClutterSwipeAction::swept:
    * @action: the #ClutterSwipeAction that emitted the signal



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