group: Use Actor.remove_all_children()
To implement the remove_all() method.
This commit is contained in:
parent
1979faee00
commit
4eaa899871
@ -52,6 +52,7 @@
|
|||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
|
||||||
#include "clutter-group.h"
|
#include "clutter-group.h"
|
||||||
|
|
||||||
#include "clutter-container.h"
|
#include "clutter-container.h"
|
||||||
@ -221,27 +222,14 @@ clutter_group_new (void)
|
|||||||
*
|
*
|
||||||
* Removes all children actors from the #ClutterGroup.
|
* Removes all children actors from the #ClutterGroup.
|
||||||
*
|
*
|
||||||
* Deprecated: 1.10: Use clutter_actor_get_children() and
|
* Deprecated: 1.10: Use clutter_actor_remove_all_children() instead.
|
||||||
* clutter_actor_remove_child() instead.
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
clutter_group_remove_all (ClutterGroup *self)
|
clutter_group_remove_all (ClutterGroup *self)
|
||||||
{
|
{
|
||||||
ClutterActor *actor;
|
|
||||||
GList *children;
|
|
||||||
|
|
||||||
g_return_if_fail (CLUTTER_IS_GROUP (self));
|
g_return_if_fail (CLUTTER_IS_GROUP (self));
|
||||||
|
|
||||||
actor = CLUTTER_ACTOR (self);
|
clutter_actor_remove_all_children (CLUTTER_ACTOR (self));
|
||||||
children = clutter_actor_get_children (actor);
|
|
||||||
|
|
||||||
while (children != NULL)
|
|
||||||
{
|
|
||||||
ClutterActor *child = children->data;
|
|
||||||
children = children->next;
|
|
||||||
|
|
||||||
clutter_actor_remove_child (actor, child);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user