GNOME Bugzilla – Bug 698668
A few improvements to ClutterGestureAction
Last modified: 2013-04-23 16:40:21 UTC
Here are a few tiny improvements to ClutterGestureAction, the biggest one being to expose a property.
Created attachment 242247 [details] [review] Fix typo
Created attachment 242248 [details] [review] Expose n-touch-points property
Created attachment 242249 [details] [review] Avoid shadowing time() function
Review of attachment 242247 [details] [review]: LGTM
Review of attachment 242248 [details] [review]: ::: clutter/clutter-gesture-action.c @@ +606,3 @@ + */ + gesture_props[PROP_N_TOUCH_POINTS] = + g_param_spec_int ("n-touch-points", should this be a uint instead? @@ +973,3 @@ priv->requested_nb_points = nb_points; + g_object_notify_by_pspec (G_OBJECT (action), we usually notify after all the side effects of a property have been settled, so I'd move this at the end of the function.
Review of attachment 242249 [details] [review]: looks good.
Comment on attachment 242248 [details] [review] Expose n-touch-points property Since the functions exposing that property use gint, we stick to gint. Otherwise the notify() has been moved to the end of the function.
Pushed to ALL THE BRANCHES.