From 96317854c8ed385b2091ede209915e90e8a0044c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 10 Feb 2009 18:05:21 +0000 Subject: [PATCH] [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. --- clutter/clutter-behaviour.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clutter/clutter-behaviour.c b/clutter/clutter-behaviour.c index 6cb543fba..e507c5d9b 100644 --- a/clutter/clutter-behaviour.c +++ b/clutter/clutter-behaviour.c @@ -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);