mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
[actor] Be more explicit when warning about invariants
The "catch all" warning for a the mapped invariant violation is too generic: it doesn't tell you why the invariant was broken in case we are trying to map an unparented actor - e.g. through a Clone.
This commit is contained in:
parent
f8a964b422
commit
9cda8d130f
@ -789,8 +789,14 @@ clutter_actor_update_map_state (ClutterActor *self,
|
||||
|
||||
if (change == MAP_STATE_MAKE_MAPPED && !should_be_mapped)
|
||||
{
|
||||
g_warning ("Attempting to map a child that does not "
|
||||
"meet the necessary invariants");
|
||||
if (parent == NULL)
|
||||
g_warning ("Attempting to map a child that does not "
|
||||
"meet the necessary invariants: the actor "
|
||||
"has no parent");
|
||||
else
|
||||
g_warning ("Attempting to map a child that does not "
|
||||
"meet the necessary invariants: the actor "
|
||||
"is parented to an unmapped actor");
|
||||
}
|
||||
|
||||
/* If in reparent, we temporarily suspend unmap and unrealize.
|
||||
|
Loading…
Reference in New Issue
Block a user