Connect to swipe signal in GNOME St

169 Views Asked by At

Trying to connect a StButton to a swipe signal, I get an error:

JS ERROR: Extension [email protected]: Error: No signal 'swipe' on object 'StButton

However, I can see the signal among Clutter Actions https://developer.gnome.org/clutter/stable/ClutterSwipeAction.html#ClutterSwipeAction.signals

Maybe it is not supported yet? O should I use another kind of StWidget to connecting to swipe signal?

1

There are 1 best solutions below

3
andy.holmes On

StWidget is a ClutterActor which has no swipe signal.

The signal you want to connect to is on a ClutterSwipeAction so you probably want to create a new one, connect to the swipe signal on that object, then add the action to the actor.