From 1afd3827c7c9e2e343ad0e8165d9d2ff4bd62b7f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 20 Jan 2012 12:04:48 +0000 Subject: [PATCH] actor: Move underallocation warning to diagnostic mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should keep down the warning messages — at least for the time being. --- clutter/clutter-actor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 7fa24c5e8..2cb6d9ed0 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -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);