2008-05-01 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-behaviour.c:
	(clutter_behaviour_remove_all): Disconnect the ::destroy
	handler when removing all actors, to match the behaviour
	of clutter_behaviour_remove().
This commit is contained in:
Emmanuele Bassi 2008-05-01 09:28:41 +00:00
parent f72af9926d
commit 21c0c41e51
2 changed files with 18 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2008-05-01 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour.c:
(clutter_behaviour_remove_all): Disconnect the ::destroy
handler when removing all actors, to match the behaviour
of clutter_behaviour_remove().
2008-05-01 Matthew Allum <mallum@openedhand.com> 2008-05-01 Matthew Allum <mallum@openedhand.com>
* clutter/glx/clutter-glx-texture-pixmap.c: * clutter/glx/clutter-glx-texture-pixmap.c:

View File

@ -652,6 +652,9 @@ clutter_behaviour_remove_all (ClutterBehaviour *behave)
ClutterActor *actor = l->data; ClutterActor *actor = l->data;
g_signal_emit (behave, behave_signals[REMOVED], 0, actor); g_signal_emit (behave, behave_signals[REMOVED], 0, actor);
g_signal_handlers_disconnect_by_func (actor,
G_CALLBACK (remove_actor_on_destroy),
behave);
g_object_unref (actor); g_object_unref (actor);
} }