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:
parent
c760657903
commit
1afd3827c7
@ -7325,8 +7325,9 @@ clutter_actor_adjust_allocation (ClutterActor *self,
|
|||||||
|
|
||||||
#ifdef CLUTTER_ENABLE_DEBUG
|
#ifdef CLUTTER_ENABLE_DEBUG
|
||||||
/* warn about underallocations */
|
/* warn about underallocations */
|
||||||
if (floorf (min_width - alloc_width) > 0 ||
|
if (_clutter_diagnostic_enabled () &&
|
||||||
floorf (min_height - alloc_height) > 0)
|
(floorf (min_width - alloc_width) > 0 ||
|
||||||
|
floorf (min_height - alloc_height) > 0))
|
||||||
{
|
{
|
||||||
ClutterActor *parent = clutter_actor_get_parent (self);
|
ClutterActor *parent = clutter_actor_get_parent (self);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user