docs: Don't use clutter_stage_get_default()
authorElliot Smith <elliot.smith@intel.com>
Mon, 31 Jan 2011 12:18:58 +0000 (12:18 +0000)
committerElliot Smith <elliot.smith@intel.com>
Mon, 31 Jan 2011 12:18:58 +0000 (12:18 +0000)
clutter_stage_get_new() is the recommended way to
get a stage instance, so use that instead.

doc/cookbook/examples/actors-composite-main.c

index a54efbe..2df5fa9 100644 (file)
@@ -34,7 +34,7 @@ main (int   argc,
 
   clutter_init (&argc, &argv);
 
-  stage = clutter_stage_get_default ();
+  stage = clutter_stage_new ();
   clutter_actor_set_size (stage, 400, 400);
   clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
   g_signal_connect (stage, "destroy", G_CALLBACK (clutter_main_quit), NULL);