On Wed, 2010-09-29 at 18:36 -0700, [email protected] wrote: > > 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").
> I don't understand what would cause this. Any ideas or suggestions? there are no guarantees on the order of the children defined using ClutterScript.; generally, it's the same order as the JSON description, but since ClutterScript might resolve object definitions at different times, it cannot guarantee that. if you want to arrange the paint order, use clutter_container_lower_child() and clutter_container_raise_child(). ciao, Emmanuele. -- Emmanuele Bassi, Open Source Software Engineer Intel Open Source Technology Center _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
