diff --git a/clutter/clutter-action.h b/clutter/clutter-action.h index afeafd91c..d2e98db6d 100644 --- a/clutter/clutter-action.h +++ b/clutter/clutter-action.h @@ -96,6 +96,8 @@ ClutterAction *clutter_actor_get_action (ClutterActor *self, GList * clutter_actor_get_actions (ClutterActor *self); void clutter_actor_clear_actions (ClutterActor *self); +gboolean clutter_actor_has_actions (ClutterActor *self); + G_END_DECLS #endif /* __CLUTTER_ACTION_H__ */ diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 4af467c4d..60d0f861f 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -12493,6 +12493,25 @@ clutter_actor_has_constraints (ClutterActor *self) return self->priv->constraints != NULL; } +/** + * clutter_actor_has_actions: + * @self: A #ClutterActor + * + * Returns whether the actor has any actions applied. + * + * Return value: %TRUE if the actor has any actions, + * %FALSE otherwise + * + * Since: 1.10 + */ +gboolean +clutter_actor_has_actions (ClutterActor *self) +{ + g_return_val_if_fail (CLUTTER_IS_ACTOR (self), TRUE); + + return self->priv->actions != NULL; +} + gint _clutter_actor_get_n_children (ClutterActor *self) {