mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 00:14:09 +00:00

Add clutter_actor_has_allocation(), a method meant to be used when deciding whether to call clutter_actor_get_allocation_box() or any of its wrappers. The get_allocation_box() method will, in case the allocation is invalid, perform a costly re-allocation cycle to ensure that the returned box is valid. The has_allocation() method is meant to be used if we have an actor calling get_allocation_box() from outside the place where the allocation is always guaranteed to be valid. Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>