doc: fix clutter_init() usage in examples
authornobled <nobled@dreamwidth.org>
Tue, 22 Feb 2011 00:44:55 +0000 (00:44 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 28 Feb 2011 14:10:05 +0000 (14:10 +0000)
commitaece642adb22ed054d1d4bca99eeeeb0b4b80b83
treefeea5ca9aec04e16227bfc4cfd6a8ebc715d3f79
parenteb906d85ca0fb06f26fab9ea59dbd979d9b243cb
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
44 files changed:
doc/cookbook/examples/actors-composite-main.c
doc/cookbook/examples/animations-complex.c
doc/cookbook/examples/animations-looping-animator.c
doc/cookbook/examples/animations-looping-implicit.c
doc/cookbook/examples/animations-looping-state.c
doc/cookbook/examples/animations-moving-animator.c
doc/cookbook/examples/animations-moving-implicit.c
doc/cookbook/examples/animations-moving-state.c
doc/cookbook/examples/animations-path-circle.c
doc/cookbook/examples/animations-path-easing.c
doc/cookbook/examples/animations-path.c
doc/cookbook/examples/animations-reuse.c
doc/cookbook/examples/animations-rotating.c
doc/cookbook/examples/animations-scaling-zoom.c
doc/cookbook/examples/animations-scaling.c
doc/cookbook/examples/effects-built-in.c
doc/cookbook/examples/effects-custom-deform.c
doc/cookbook/examples/events-buttons-click.c
doc/cookbook/examples/events-buttons-lasso.c
doc/cookbook/examples/events-buttons.c
doc/cookbook/examples/events-mouse-scroll.c
doc/cookbook/examples/events-pointer-motion-crossing.c
doc/cookbook/examples/events-pointer-motion-scribbler.c
doc/cookbook/examples/events-pointer-motion-stacked.c
doc/cookbook/examples/events-pointer-motion.c
doc/cookbook/examples/layouts-bind-constraint-allocation.c
doc/cookbook/examples/layouts-bind-constraint-overlay.c
doc/cookbook/examples/layouts-bind-constraint-stage.c
doc/cookbook/examples/layouts-box-menu.c
doc/cookbook/examples/layouts-box-property-effects.c
doc/cookbook/examples/layouts-box.c
doc/cookbook/examples/layouts-stacking-diff-sized-actors.c
doc/cookbook/examples/layouts-stacking.c
doc/cookbook/examples/script-signals.c
doc/cookbook/examples/script-ui.c
doc/cookbook/examples/text-shadow.c
doc/cookbook/examples/textures-crossfade-cogl.c
doc/cookbook/examples/textures-crossfade-slideshow.c
doc/cookbook/examples/textures-crossfade.c
doc/cookbook/examples/textures-reflection.c
doc/cookbook/examples/textures-split-go.c
doc/cookbook/examples/textures-sub-texture.c
doc/cookbook/textures.xml
doc/reference/clutter/clutter-animation-tutorial.xml