mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
Bug #953 - Actors are not hidden before unrealized or disposed (Tommi Komulainen) * clutter/clutter-actor.c: (clutter_actor_unrealize): Hide a visible actor when unrealizing it. (clutter_actor_dispose): Make sure to unrealize an actor when disposing it.
This commit is contained in:
parent
15d9581dce
commit
e3de3f196b
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
||||
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
Bug #953 - Actors are not hidden before unrealized or
|
||||
disposed (Tommi Komulainen)
|
||||
|
||||
* clutter/clutter-actor.c:
|
||||
(clutter_actor_unrealize): Hide a visible actor when unrealizing
|
||||
it.
|
||||
|
||||
(clutter_actor_dispose): Make sure to unrealize an actor when
|
||||
disposing it.
|
||||
|
||||
2008-06-13 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-actor.c:
|
||||
|
@ -582,6 +582,12 @@ clutter_actor_unrealize (ClutterActor *self)
|
||||
if (!CLUTTER_ACTOR_IS_REALIZED (self))
|
||||
return;
|
||||
|
||||
/* unrealizing also means hiding a visible actor, exactly
|
||||
* like showing implies realization if called on an unrealized
|
||||
* actor. this keeps the flags in sync.
|
||||
*/
|
||||
clutter_actor_hide (self);
|
||||
|
||||
CLUTTER_ACTOR_UNSET_FLAGS (self, CLUTTER_ACTOR_REALIZED);
|
||||
|
||||
g_signal_emit (self, actor_signals[UNREALIZE], 0);
|
||||
@ -1870,6 +1876,8 @@ clutter_actor_dispose (GObject *object)
|
||||
priv->parent_actor = NULL;
|
||||
}
|
||||
|
||||
clutter_actor_unrealize (self);
|
||||
|
||||
destroy_shader_data (self);
|
||||
|
||||
g_signal_emit (self, actor_signals[DESTROY], 0);
|
||||
|
Loading…
Reference in New Issue
Block a user