actor: Disable the layout cycle warning with debug disabled

If Clutter has been configured with --enable-debug set to 'no' then we
hide most of the warnings.
This commit is contained in:
Emmanuele Bassi 2010-06-17 12:32:24 +01:00
parent 77c63e0237
commit c85d535a09

View File

@ -5090,6 +5090,7 @@ clutter_actor_queue_relayout (ClutterActor *self)
priv->needs_allocation)
return; /* save some cpu cycles */
#if CLUTTER_ENABLE_DEBUG
if (!(CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL) &&
(CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IN_RELAYOUT))
{
@ -5098,6 +5099,7 @@ clutter_actor_queue_relayout (ClutterActor *self)
"not recommended",
get_actor_debug_name (self));
}
#endif /* CLUTTER_ENABLE_DEBUG */
g_signal_emit (self, actor_signals[QUEUE_RELAYOUT], 0);
}