actor: Move underallocation warning to diagnostic mode

This should keep down the warning messages — at least for the time
being.
This commit is contained in:
Emmanuele Bassi 2012-01-20 12:04:48 +00:00
parent c760657903
commit 1afd3827c7

View File

@ -7325,8 +7325,9 @@ clutter_actor_adjust_allocation (ClutterActor *self,
#ifdef CLUTTER_ENABLE_DEBUG
/* warn about underallocations */
if (floorf (min_width - alloc_width) > 0 ||
floorf (min_height - alloc_height) > 0)
if (_clutter_diagnostic_enabled () &&
(floorf (min_width - alloc_width) > 0 ||
floorf (min_height - alloc_height) > 0))
{
ClutterActor *parent = clutter_actor_get_parent (self);