Currently we are using Clutter to generate GUI defined in JSON. We found
an issue when we retrieved the actors from children (such as "children" :
["item6", "item5", "item4", "item3", "item2", "item1"] ) using the
following code to get a copy of the children list, somehow the actor
orders in the list are not the same what we defined at JSON (for instance,
it turns out like "item1", "item3", "item5", "item6", "item4", "item2").
GList *actor_list =
clutter_container_get_children(CLUTTER_CONTAINER(self));
while (actor_list) {
ClutterActor *actor = CLUTTER_ACTOR(actor_list->data);
printf("actor id: %s\n",
clutter_scriptable_get_id(CLUTTER_SCRIPTABLE(actor)));
printf("actor name: %s\n", clutter_actor_get_name(actor));
actor_list = actor_list->next;
}
g_list_free(actor_list);
I don't understand what would cause this. Any ideas or suggestions?
Regards,
Shelley_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list