doc: fix clutter_init() usage in examples
Make sure users get the idea that clutter_init() has a return value that needs to be checked. These were fixed via sed magic: sed -i -s -e "s/clutter_init (.*)/\ if (& != CLUTTER_INIT_SUCCESS)\n return 1/"\ doc/*/*/*.{c,xml} doc/*/*.xml http://bugzilla.clutter-project.org/show_bug.cgi?id=2574
This commit is contained in:
@ -106,10 +106,11 @@ main (int argc, char *argv[])
|
||||
ClutterActor *texture;
|
||||
ClutterTimeline *timeline;
|
||||
|
||||
clutter_init_with_args (&argc, &argv,
|
||||
" - Crossfade", entries,
|
||||
NULL,
|
||||
NULL);
|
||||
if (clutter_init_with_args (&argc, &argv,
|
||||
" - Crossfade", entries,
|
||||
NULL,
|
||||
NULL) != CLUTTER_INIT_SUCCESS)
|
||||
return 1;
|
||||
|
||||
if (source == NULL || target == NULL)
|
||||
return print_usage_and_exit (argv[0], EXIT_FAILURE);
|
||||
|
Reference in New Issue
Block a user