Re-introduce removed GestureAction method

The get_threshold_tigger_egde() method was renamed to fix the typo, but
it obviously broke the ABI. To be fair, nobody in the whole of Debian
was using the symbol, apparently, so it's not like we broke existing
code. Still, it's not nice to break ABI without bumping soname, so let's
put the old symbol back in — obviously, deprecated — as a wrapper to the
newly added one.
This commit is contained in:
Emmanuele Bassi 2014-09-03 14:16:31 +01:00
parent 98b64fec33
commit b3b2af7677
3 changed files with 24 additions and 2 deletions

View File

@ -1270,7 +1270,7 @@ clutter_gesture_action_set_threshold_trigger_edge (ClutterGestureAction *ac
*
* Return value: the edge trigger
*
* Since: 1.18
* Since: 1.20
*/
ClutterGestureTriggerEdge
clutter_gesture_action_get_threshold_trigger_edge (ClutterGestureAction *action)
@ -1281,6 +1281,25 @@ clutter_gesture_action_get_threshold_trigger_edge (ClutterGestureAction *action)
return action->priv->edge;
}
/**
* clutter_gesture_action_get_threshold_trigger_egde:
* @action: a #ClutterGestureAction
*
* Retrieves the edge trigger of the gesture @action, as set using
* clutter_gesture_action_set_threshold_trigger_edge().
*
* Return value: the edge trigger
*
* Since: 1.18
*
* Deprecated: 1.20: Use clutter_gesture_action_get_threshold_trigger_edge() instead.
*/
ClutterGestureTriggerEdge
clutter_gesture_action_get_threshold_trigger_egde (ClutterGestureAction *action)
{
return clutter_gesture_action_get_threshold_trigger_edge (action);
}
/**
* clutter_gesture_action_set_threshold_trigger_distance:
* @action: a #ClutterGestureAction

View File

@ -159,7 +159,9 @@ void clutter_gesture_action_cancel (ClutterGestu
CLUTTER_AVAILABLE_IN_1_18
void clutter_gesture_action_set_threshold_trigger_edge (ClutterGestureAction *action,
ClutterGestureTriggerEdge edge);
CLUTTER_AVAILABLE_IN_1_18
CLUTTER_DEPRECATED_IN_1_20_FOR(clutter_gesture_action_get_threshold_trigger_edge)
ClutterGestureTriggerEdge clutter_gesture_action_get_threshold_trigger_egde (ClutterGestureAction *action);
CLUTTER_AVAILABLE_IN_1_20
ClutterGestureTriggerEdge clutter_gesture_action_get_threshold_trigger_edge (ClutterGestureAction *action);
CLUTTER_AVAILABLE_IN_1_18

View File

@ -3019,6 +3019,7 @@ CLUTTER_TYPE_GESTURE_ACTION
<SUBSECTION Private>
ClutterGestureActionPrivate
clutter_gesture_action_get_type
clutter_gesture_action_get_threshold_trigger_egde
</SECTION>
<SECTION>