mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 14:53:03 +00:00
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
This commit is contained in:
parent
36c15cd23c
commit
2eb525fe08
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user