mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
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:
parent
77c63e0237
commit
c85d535a09
@ -5090,6 +5090,7 @@ clutter_actor_queue_relayout (ClutterActor *self)
|
|||||||
priv->needs_allocation)
|
priv->needs_allocation)
|
||||||
return; /* save some cpu cycles */
|
return; /* save some cpu cycles */
|
||||||
|
|
||||||
|
#if CLUTTER_ENABLE_DEBUG
|
||||||
if (!(CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL) &&
|
if (!(CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IS_TOPLEVEL) &&
|
||||||
(CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IN_RELAYOUT))
|
(CLUTTER_PRIVATE_FLAGS (self) & CLUTTER_ACTOR_IN_RELAYOUT))
|
||||||
{
|
{
|
||||||
@ -5098,6 +5099,7 @@ clutter_actor_queue_relayout (ClutterActor *self)
|
|||||||
"not recommended",
|
"not recommended",
|
||||||
get_actor_debug_name (self));
|
get_actor_debug_name (self));
|
||||||
}
|
}
|
||||||
|
#endif /* CLUTTER_ENABLE_DEBUG */
|
||||||
|
|
||||||
g_signal_emit (self, actor_signals[QUEUE_RELAYOUT], 0);
|
g_signal_emit (self, actor_signals[QUEUE_RELAYOUT], 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user