[stage] Chain up ::show before showing the implementation

When showing a Stage for the first time we end up realizing the stage
implementation before realizing the wrapper. This leads to segmentation
faults or errors coming from the backend because we're fumbling the
state and realization sequence.
This commit is contained in:
Emmanuele Bassi 2009-05-11 12:43:37 +01:00
parent 9582fddb24
commit d19f6feb45

View File

@ -312,11 +312,11 @@ clutter_stage_show (ClutterActor *self)
{ {
ClutterStagePrivate *priv = CLUTTER_STAGE (self)->priv; ClutterStagePrivate *priv = CLUTTER_STAGE (self)->priv;
CLUTTER_ACTOR_CLASS (clutter_stage_parent_class)->show (self);
g_assert (priv->impl != NULL); g_assert (priv->impl != NULL);
clutter_actor_show (priv->impl); clutter_actor_show (priv->impl);
CLUTTER_ACTOR_CLASS (clutter_stage_parent_class)->show (self);
} }
static void static void
@ -324,10 +324,10 @@ clutter_stage_hide (ClutterActor *self)
{ {
ClutterStagePrivate *priv = CLUTTER_STAGE (self)->priv; ClutterStagePrivate *priv = CLUTTER_STAGE (self)->priv;
CLUTTER_ACTOR_CLASS (clutter_stage_parent_class)->hide (self);
g_assert (priv->impl != NULL); g_assert (priv->impl != NULL);
clutter_actor_hide (priv->impl); clutter_actor_hide (priv->impl);
CLUTTER_ACTOR_CLASS (clutter_stage_parent_class)->hide (self);
} }
static void static void