mirror of
https://github.com/brl/mutter.git
synced 2025-08-07 09:04:41 +00:00
docs: Remove clutter_stage_get_default()
A lot of the example code in the cookbook and the API reference still uses the default stage — sometimes as if it were a non-default one, which once again demonstrates how the default stage was a flawed concept that just confused people.
This commit is contained in:
@@ -12,8 +12,9 @@ main (int argc, char **argv)
|
||||
return 1;
|
||||
|
||||
/* Get the default stage */
|
||||
stage = clutter_stage_get_default ();
|
||||
stage = clutter_stage_new ();
|
||||
clutter_stage_set_title (CLUTTER_STAGE (stage), "Sub-texture");
|
||||
g_signal_connect (stage, "destroy", G_CALLBACK (clutter_main_quit), NULL);
|
||||
|
||||
/* Create a new ClutterTexture that shows smiley.png */
|
||||
image = clutter_texture_new_from_file ("smiley.png", NULL);
|
||||
|
Reference in New Issue
Block a user