mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
[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:
parent
97431b4670
commit
96317854c8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user