[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:
Emmanuele Bassi 2009-05-11 12:43:56 +01:00
parent 5bcde25cbb
commit 0acb98e987

View File

@ -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