mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
clutter/swipe-action: Remove deprecated swept signal/vfunc
Also update the test to use swipe signal instead. Nothing seems to use the signal from GNOME Shell side though Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3379>
This commit is contained in:

committed by
Marge Bot

parent
d311ff4a67
commit
81c75b3157
@ -17,7 +17,7 @@ const char *
|
||||
test_swipe_action_describe (void);
|
||||
|
||||
static void
|
||||
swept_cb (ClutterSwipeAction *action,
|
||||
swipe_cb (ClutterSwipeAction *action,
|
||||
ClutterActor *actor,
|
||||
ClutterSwipeDirection direction,
|
||||
gpointer data_)
|
||||
@ -75,7 +75,7 @@ swept_cb (ClutterSwipeAction *action,
|
||||
g_free (old_str);
|
||||
}
|
||||
|
||||
g_print ("swept: '%s': %s\n", clutter_actor_get_name (actor), direction_str);
|
||||
g_print ("swipe: '%s': %s\n", clutter_actor_get_name (actor), direction_str);
|
||||
|
||||
g_free (direction_str);
|
||||
}
|
||||
@ -95,7 +95,7 @@ attach_action (ClutterActor *actor, guint axis)
|
||||
|
||||
action = g_object_new (CLUTTER_TYPE_SWIPE_ACTION, NULL);
|
||||
clutter_actor_add_action (actor, action);
|
||||
g_signal_connect (action, "swept", G_CALLBACK (swept_cb), GUINT_TO_POINTER (axis));
|
||||
g_signal_connect (action, "swipe", G_CALLBACK (swipe_cb), GUINT_TO_POINTER (axis));
|
||||
g_signal_connect (action, "gesture-cancel", G_CALLBACK (gesture_cancel_cb), NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user