Skip to content

plugins/default: Handle skipped animations

We currently assume that the actor_animate() helper function returns a timeline. However Clutter may skip implicit animations and simple set properties directly, for example when the actor is hidden.

The returned timeline will be NULL in that case, and we abort when using it as instance parameter to g_signal_connect().

Fix this by only setting up a completed handler when we are actually animating, and complete the effect directly otherwise.

Merge request reports