From 7900ac4dc7fb204c9f8a957f20ec445ef19f655d Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Thu, 26 Aug 2010 17:07:21 +0100 Subject: [PATCH] cookbook: Added comments to script example Commented the ClutterScript example so it can be used inline as part of the recipe, rather than as an example in the appendix (it's too simple to warrant a separate appendix). --- doc/cookbook/examples/script-ui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/cookbook/examples/script-ui.c b/doc/cookbook/examples/script-ui.c index cc9a12148..e02036b42 100644 --- a/doc/cookbook/examples/script-ui.c +++ b/doc/cookbook/examples/script-ui.c @@ -11,6 +11,7 @@ main (int argc, char *argv[]) gchar *filename = "script-ui.json"; GError *error = NULL; + /* load a JSON file into the script */ clutter_script_load_from_file (ui, filename, &error); if (error != NULL) @@ -20,6 +21,7 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } + /* retrieve objects from the script */ ClutterActor *stage; clutter_script_get_objects (ui,