actor: Add destroy_all_children()

There are times when we don't want to remove all children and count of
the reference count to drop to 0 to ensure destruction; there are cases,
such as managed environments, where it's preferable to ensure that the
children of an actor get actually destroyed.
This commit is contained in:
Emmanuele Bassi
2012-02-13 17:26:37 +00:00
parent 83119966a4
commit 3996ae4348
4 changed files with 56 additions and 1 deletions

View File

@ -493,6 +493,7 @@ void clutter_actor_replace_child
void clutter_actor_remove_child (ClutterActor *self,
ClutterActor *child);
void clutter_actor_remove_all_children (ClutterActor *self);
void clutter_actor_destroy_all_children (ClutterActor *self);
GList * clutter_actor_get_children (ClutterActor *self);
gint clutter_actor_get_n_children (ClutterActor *self);
ClutterActor * clutter_actor_get_child_at_index (ClutterActor *self,