From a8daaa8222c9b4aaf7e46b1bb13a2ce8097153f1 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 3 Dec 2009 20:47:48 +0000 Subject: [PATCH] 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. --- clutter/clutter-main.c | 2 -- clutter/clutter-stage.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 81edc7898..de877f82c 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -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)) { diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index d9764113a..b164e50c8 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -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); }