On Sun, 2010-07-11 at 10:56 +0100, Jan Jokela wrote: > Howdy, > > > I have a layout actor that allocates its children, and its children > are for example connected to the notify::width and notify::height > signals. >
If you can, it's probably best to implement the allocate function of the actor, rather than hooking into notify of width and height. Changing texture sizes (if you are using ClutterTextre actor) should certainly be done during allocation with clutter_actor_allocate, and this will avoid causing a allocation cycle warning. > > At width and height changes to the layout children, I do stuff like > adding/removing child actors, change texture sizes etc (in the > children). > The issue I'm having is I get Clutter Warnings that both the layout > actor and its children are currently inside an allocation cycle; > calling clutter_actor_queue_relayout() is not recommended. Adding and removing actors from the stage will cause a re-layout because any new children will need to be allocated for the first time and the parent actors of children removed need to be updated. One solution may be to just have the children hidden until they are needed. Regards, Thomas --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
