[layout] Implement ClutterBox::add
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 15 Sep 2009 22:20:51 +0000 (23:20 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 14 Oct 2009 10:31:29 +0000 (11:31 +0100)
commitaaae60e17837d6f0b330c04345f1e2c2be9f24b9
treed77ba148084af4e0f5e9d61cc1be8ae7fd36b9d1
parenta2086f1178fa3aed7fdc6f94d09efbc0e1bc2c11
[layout] Implement ClutterBox::add

The ClutterBox::add method is a simple wrapper around the Container
add_actor() method and the LayoutManager layout properties API. It
allows adding an actor to a Box and setting the layout properties in
one call.

If the LayoutManager used by the Box does not support layout properties
then the add() method short-circuits out.

Along with the varargs version of the method there's also a vector-based
variant, for language bindings to use.
clutter/clutter-box.c
clutter/clutter-box.h
doc/reference/clutter/clutter-sections.txt
tests/interactive/test-box.c