[clutter] actor: Move underallocation warning to diagnostic mode
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] actor: Move underallocation warning to diagnostic mode
- Date: Fri, 20 Jan 2012 12:09:23 +0000 (UTC)
commit 1afd3827c7c9e2e343ad0e8165d9d2ff4bd62b7f
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Fri Jan 20 12:04:48 2012 +0000
actor: Move underallocation warning to diagnostic mode
This should keep down the warning messages â at least for the time
being.
clutter/clutter-actor.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 7fa24c5..2cb6d9e 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]