After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724242 - Gesture actions fixes
Gesture actions fixes
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks: 697896
 
 
Reported: 2014-02-12 16:47 UTC by Bastien Nocera
Modified: 2014-02-13 17:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GestureActions: Set threshold-trigger-edge at right time (2.95 KB, patch)
2014-02-12 16:47 UTC, Bastien Nocera
accepted-commit_now Details | Review
GestureActions: Add per-action thresholds (14.15 KB, patch)
2014-02-12 16:47 UTC, Bastien Nocera
accepted-commit_now Details | Review
GestureActions: Set threshold-trigger-edge at right time (7.36 KB, patch)
2014-02-13 17:37 UTC, Bastien Nocera
committed Details | Review
GestureActions: Add per-action thresholds (14.15 KB, patch)
2014-02-13 17:40 UTC, Bastien Nocera
accepted-commit_now Details | Review
GestureActions: Add per-action thresholds (14.19 KB, patch)
2014-02-13 17:51 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2014-02-12 16:47:35 UTC
Make them work! :)

The first patch makes them actually trigger as we configured it,
the second patch makes it more flexible.
Comment 1 Bastien Nocera 2014-02-12 16:47:43 UTC
Created attachment 268934 [details] [review]
GestureActions: Set threshold-trigger-edge at right time

It was set during the _init(), and swiftly overridden with the
default value in construct. Do it in constructed() instead.
Comment 2 Bastien Nocera 2014-02-12 16:47:50 UTC
Created attachment 268935 [details] [review]
GestureActions: Add per-action thresholds

Instead of relying on the dnd drag threshold, add per-action
horizontal and vertical thresholds. Use them in the swipe action
as well.
Comment 3 Emmanuele Bassi (:ebassi) 2014-02-13 17:14:10 UTC
Review of attachment 268934 [details] [review]:

looks good.

other GestureAction sub-classes need to be ported to the same pattern; if you could amend the patch it'd be good for me, but a new commit is fine as well.
Comment 4 Emmanuele Bassi (:ebassi) 2014-02-13 17:17:38 UTC
Review of attachment 268935 [details] [review]:

looks okay, with one minor detail.

if you could fix it before pushing it, it would be stellar.

::: clutter/clutter-gesture-action.c
@@ +1306,3 @@
+ * clutter_gesture_action_get_threshold_trigger_distance:
+ * @action: a #ClutterGestureAction
+{

needs the (out) (allow-none) annotations.

@@ +1307,3 @@
+ * @action: a #ClutterGestureAction
+ * @x: The return location for the horizontal distance, or %NULL
+{

needs the (out) (allow-none) annotations.
Comment 5 Bastien Nocera 2014-02-13 17:37:40 UTC
Created attachment 269044 [details] [review]
GestureActions: Set threshold-trigger-edge at right time

It was set during the _init(), and swiftly overridden with the
default value in construct. Do it in constructed() instead.
Comment 6 Bastien Nocera 2014-02-13 17:40:10 UTC
Created attachment 269045 [details] [review]
GestureActions: Add per-action thresholds

Instead of relying on the dnd drag threshold, add per-action
horizontal and vertical thresholds. Use them in the swipe action
as well.
Comment 7 Emmanuele Bassi (:ebassi) 2014-02-13 17:47:33 UTC
Review of attachment 269044 [details] [review]:

looks good.
Comment 8 Emmanuele Bassi (:ebassi) 2014-02-13 17:48:43 UTC
Review of attachment 269045 [details] [review]:

still missing the (out)(allow-none) annotations for the getter function, but looks good.
Comment 9 Bastien Nocera 2014-02-13 17:51:48 UTC
Created attachment 269050 [details] [review]
GestureActions: Add per-action thresholds

Instead of relying on the dnd drag threshold, add per-action
horizontal and vertical thresholds. Use them in the swipe action
as well.
Comment 10 Bastien Nocera 2014-02-13 17:55:10 UTC
Attachment 269044 [details] pushed as 54e2657 - GestureActions: Set threshold-trigger-edge at right time
Attachment 269050 [details] pushed as 32b3d27 - GestureActions: Add per-action thresholds