Comment 9 for bug 986886

Revision history for this message
Stephen M. Webb (bregma) wrote :

The documented API for determining how to classify a gesture in GEIS is geis_frame_is_class() (see http://developer.ubuntu.com/api/ubuntu-12.04/cplusplus/utouch-geis/group__geis__v2__gesture.html#gad656ce0e800967d5e532269cb02e2190).

The documented API for determining how to classify a gesture in GEISv1 was the gesture_type argument passed to the GeisGestureCallback function (see http://developer.ubuntu.com/api/ubuntu-12.04/cplusplus/utouch-geis/group__geis__v1__subscription.html#ga26f24308473a842e39e8afa51adb4dfa).

The attribute GEIS_GESTURE_ATTRIBUTE_GESTURE_NAME was never documented or intended as the method to classify a gesture. It is inadequate for performing that function in GEISv2, since a given gesture frame may be classified more than one way. The code would function better using one of the documented APIs instead.