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 683090 - gesture-action: Add API for cancelling a gesture
gesture-action: Add API for cancelling a gesture
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2012-08-31 10:52 UTC by Tomeu Vizoso
Modified: 2012-09-03 08:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gesture-action: Add API for cancelling a gesture (3.07 KB, patch)
2012-08-31 10:52 UTC, Tomeu Vizoso
needs-work Details | Review
gesture-action: Add API for cancelling a gesture (3.58 KB, patch)
2012-08-31 16:24 UTC, Tomeu Vizoso
none Details | Review
gesture-action: Add API for cancelling a gesture (9.18 KB, patch)
2012-08-31 16:56 UTC, Tomeu Vizoso
committed Details | Review

Description Tomeu Vizoso 2012-08-31 10:52:27 UTC
and getters for sequences and devices of current points. It can be
used for accepting and rejecting sequences for system-wide gestures.
Comment 1 Tomeu Vizoso 2012-08-31 10:52:29 UTC
Created attachment 223034 [details] [review]
gesture-action: Add API for cancelling a gesture
Comment 2 Emmanuele Bassi (:ebassi) 2012-08-31 16:12:00 UTC
Review of attachment 223034 [details] [review]:

the API looks generally okay.

::: clutter/clutter-gesture-action.c
@@ +685,3 @@
 }
+
+guint

missing documentation.

@@ +693,3 @@
+}
+
+ClutterEventSequence *

missing documentation, and line break between arguments.

@@ +703,3 @@
+
+ClutterInputDevice *
+clutter_gesture_action_get_device (ClutterGestureAction *action, guint device)

missing documentation and line break between arguments.

@@ +711,3 @@
+}
+
+void

missing documentation.

::: clutter/clutter-gesture-action.h
@@ +119,3 @@
                                                                  gfloat               *release_y);
 
+guint           clutter_gesture_action_get_n_current_points     (ClutterGestureAction *action);

missing CLUTTER_AVAILABLE_IN_1_12 annotation.

@@ +121,3 @@
+guint           clutter_gesture_action_get_n_current_points     (ClutterGestureAction *action);
+
+ClutterEventSequence * clutter_gesture_action_get_sequence      (ClutterGestureAction *action,

missing CLUTTER_AVAILABLE_IN_1_12 annotation, and the header should be reformatted to fit everything inside columns.

@@ +124,3 @@
+                                                                 guint                 device);
+
+ClutterInputDevice * clutter_gesture_action_get_device          (ClutterGestureAction *action,

missing CLUTTER_AVAILABLE_IN_1_12 annotation.

@@ +127,3 @@
+                                                                 guint                 device);
+
+void            clutter_gesture_action_cancel                   (ClutterGestureAction *action);

missing CLUTTER_AVAILABLE_IN_1_12 annotation.
Comment 3 Tomeu Vizoso 2012-08-31 16:24:50 UTC
Created attachment 223084 [details] [review]
gesture-action: Add API for cancelling a gesture

and getters for sequences and devices of current points. It can be
used for accepting and rejecting sequences for system-wide gestures.
Comment 4 Tomeu Vizoso 2012-08-31 16:25:59 UTC
Sorry, didn't realized I had a review already, what I just attached is only rebased to current master.
Comment 5 Tomeu Vizoso 2012-08-31 16:42:26 UTC
Comment on attachment 223084 [details] [review]
gesture-action: Add API for cancelling a gesture

Please disregard
Comment 6 Tomeu Vizoso 2012-08-31 16:56:16 UTC
Created attachment 223093 [details] [review]
gesture-action: Add API for cancelling a gesture

and getters for sequences and devices of current points. It can be
used for accepting and rejecting sequences for system-wide gestures.
Comment 7 Emmanuele Bassi (:ebassi) 2012-09-03 07:54:30 UTC
Review of attachment 223093 [details] [review]:

looks good to me. you can add the annotations before pushing to master.

::: clutter/clutter-gesture-action.c
@@ +830,3 @@
+ * Retrieves the #ClutterEventSequence of a touch point.
+ *
+ * Return value: the #ClutterEventSequence of a touch point.

you probably want to add (transfer none), to be on the safe side.

@@ +851,3 @@
+ * Retrieves the #ClutterInputDevice of a touch point.
+ *
+ * Return value: the #ClutterInputDevice of a touch point.

add (transfer none), same as above.
Comment 8 Tomeu Vizoso 2012-09-03 08:28:50 UTC
The following fixes have been pushed: