[behaviour] Do not notify empty behaviours

If a behaviour does not have actors associated to it then it should
not invoke the ::alpha_notify() implementation.
This commit is contained in:
Emmanuele Bassi 2009-02-10 18:05:21 +00:00
parent 97431b4670
commit 96317854c8

View File

@ -531,6 +531,10 @@ notify_cb (GObject *object,
CLUTTER_NOTE (BEHAVIOUR, "notify::alpha");
/* no actors, we can stop right here */
if (behave->priv->actors == NULL)
return;
if (klass->alpha_notify)
{
gdouble alpha_value = clutter_alpha_get_alpha (behave->priv->alpha);