clutter_bin_layout_new() requires you to set the x and y align as you
create the layout; but if you subsequently try to use
clutter_container_add_actor() on the layout's container (e.g. a
ClutterBox), expecting the default alignment to be applied, you get:

"Clutter-WARNING **: The actor 'ClutterBox' is currently inside an
allocation cycle".

(The layout does align the child as expected, though.)

The only way I've found to avoid this is to set the x-align and y-align
before adding the child (e.g. with clutter_layout_manager_child_set(),
though it seems a bit wrong to set properties before the child is
added); or use clutter_bin_layout_add() (to which you have to pass 2
alignment arguments anyway).

So is it OK to ignore this warning?

If not, and the only way to avoid the warning is to set the alignment
properties during the child add, perhaps clutter_bin_layout_new()
doesn't need any parameters (as you're going to have to set them as each
child is added anyway).

Or is there some way to fix the warning when adding an actor without
property setting (e.g. with clutter_container_add_actor())? (I don't
know enough about Clutter internals yet to work out how to do this.)

Thanks.
Elliot
-- 
Elliot Smith
Intel Open Source Technology Centre

---------------------------------------------------------------------
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

Reply via email to