mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
[actor] Conditionally verify the map state
The verify_map_state() internal method is conditionally compiled if we have CLUTTER_ENABLE_DEBUG set; for this reason, all calls to that method should be made conditional.
This commit is contained in:
parent
5bcde25cbb
commit
0acb98e987
@ -709,7 +709,6 @@ clutter_actor_update_map_state (ClutterActor *self,
|
||||
gboolean may_be_realized;
|
||||
gboolean must_be_realized;
|
||||
|
||||
|
||||
should_be_mapped = FALSE;
|
||||
may_be_realized = TRUE;
|
||||
must_be_realized = FALSE;
|
||||
@ -832,8 +831,10 @@ clutter_actor_update_map_state (ClutterActor *self,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CLUTTER_ENABLE_DEBUG
|
||||
/* check all invariants were kept */
|
||||
clutter_actor_verify_map_state (self);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user