actor: Fix has_constraints() and has_actions()

When we changed the MetaGroup to handle internal effects, we updated
has_effects(), but forgot to fix the equivalent has_constrains() and
has_actions() method.

Now, if we clear the constraints or the actions on an actor, and we
call has_constraints() or has_actions(), we get an false positive.
This commit is contained in:
Emmanuele Bassi 2013-06-12 09:51:10 +01:00
parent e1fe999db0
commit cbf0199804

View File

@ -17295,7 +17295,10 @@ clutter_actor_has_constraints (ClutterActor *self)
{
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
return self->priv->constraints != NULL;
if (self->priv->constraints == NULL)
return FALSE;
return _clutter_meta_group_has_metas_no_internal (self->priv->constraints);
}
/**
@ -17314,7 +17317,10 @@ clutter_actor_has_actions (ClutterActor *self)
{
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
return self->priv->actions != NULL;
if (self->priv->actions == NULL)
return FALSE;
return _clutter_meta_group_has_metas_no_internal (self->priv->actions);
}
/**