* clutter/clutter-container.[ch]: removed find_child_by_id method
from interface (and all implementations of it) since this functionality is now implemented using a global hash. * clutter/clutter-box.c: * clutter/clutter-group.c:
This commit is contained in:
@ -128,40 +128,6 @@ clutter_box_foreach (ClutterContainer *container,
|
||||
}
|
||||
}
|
||||
|
||||
static ClutterActor *
|
||||
clutter_box_find_child_by_id (ClutterContainer *container,
|
||||
guint child_id)
|
||||
{
|
||||
ClutterBox *self = CLUTTER_BOX (container);
|
||||
ClutterActor *actor = NULL;
|
||||
GList *l;
|
||||
|
||||
if (clutter_actor_get_id (CLUTTER_ACTOR (self)) == child_id)
|
||||
return CLUTTER_ACTOR (self);
|
||||
|
||||
for (l = self->children; l; l = l->next)
|
||||
{
|
||||
ClutterBoxChild *child = l->data;
|
||||
|
||||
if (clutter_actor_get_id (child->actor) == child_id)
|
||||
{
|
||||
actor = child->actor;
|
||||
break;
|
||||
}
|
||||
|
||||
if (CLUTTER_IS_CONTAINER (child->actor))
|
||||
{
|
||||
ClutterContainer *c = CLUTTER_CONTAINER (child->actor);
|
||||
|
||||
actor = clutter_container_find_child_by_id (c, child_id);
|
||||
if (actor)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return actor;
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_box_raise (ClutterContainer *container,
|
||||
ClutterActor *actor,
|
||||
@ -307,7 +273,6 @@ clutter_container_iface_init (ClutterContainerIface *iface)
|
||||
iface->add = clutter_box_add;
|
||||
iface->remove = clutter_box_remove;
|
||||
iface->foreach = clutter_box_foreach;
|
||||
iface->find_child_by_id = clutter_box_find_child_by_id;
|
||||
iface->raise = clutter_box_raise;
|
||||
iface->lower = clutter_box_lower;
|
||||
iface->sort_depth_order = clutter_box_sort_depth_order;
|
||||
|
Reference in New Issue
Block a user