stage: Move default title in Stage.init

The default title should be set from within clutter_stage_init(); at
that point clutter_init() must have been called.
This commit is contained in:
Emmanuele Bassi 2009-12-03 20:47:48 +00:00
parent 38f26634ee
commit a8daaa8222
2 changed files with 1 additions and 2 deletions

View File

@ -1568,8 +1568,6 @@ clutter_init_real (GError **error)
return CLUTTER_INIT_ERROR_INTERNAL;
}
clutter_stage_set_title (CLUTTER_STAGE (stage), g_get_prgname ());
clutter_actor_realize (stage);
if (!CLUTTER_ACTOR_IS_REALIZED (stage))
{

View File

@ -1190,6 +1190,7 @@ clutter_stage_init (ClutterStage *self)
priv->fog.z_far = 2.0;
clutter_actor_set_reactive (CLUTTER_ACTOR (self), TRUE);
clutter_stage_set_title (self, g_get_prgname ());
clutter_stage_set_key_focus (self, NULL);
}