stage: Move default title in Stage.init
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 3 Dec 2009 20:47:48 +0000 (20:47 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 3 Feb 2010 16:34:27 +0000 (16:34 +0000)
The default title should be set from within clutter_stage_init(); at
that point clutter_init() must have been called.

clutter/clutter-main.c
clutter/clutter-stage.c

index 81edc78..de877f8 100644 (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))
     {
index d976411..b164e50 100644 (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);
 }