[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 may_be_realized;
|
||||||
gboolean must_be_realized;
|
gboolean must_be_realized;
|
||||||
|
|
||||||
|
|
||||||
should_be_mapped = FALSE;
|
should_be_mapped = FALSE;
|
||||||
may_be_realized = TRUE;
|
may_be_realized = TRUE;
|
||||||
must_be_realized = FALSE;
|
must_be_realized = FALSE;
|
||||||
@ -832,8 +831,10 @@ clutter_actor_update_map_state (ClutterActor *self,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CLUTTER_ENABLE_DEBUG
|
||||||
/* check all invariants were kept */
|
/* check all invariants were kept */
|
||||||
clutter_actor_verify_map_state (self);
|
clutter_actor_verify_map_state (self);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user