cookbook: Use TESTS_DATA_DIR
authorEmmanuele Bassi <ebassi@linux.intel.com>
Sun, 18 Jul 2010 21:53:56 +0000 (22:53 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Sun, 18 Jul 2010 21:53:56 +0000 (22:53 +0100)
We need the correct location for redhand.png if we want to load it
in textures-reflection.

doc/cookbook/examples/textures-reflection.c

index 81cb30e..e94b40b 100644 (file)
@@ -84,7 +84,7 @@ main (int argc, char *argv[])
 
   texture = clutter_texture_new ();
   clutter_texture_set_from_file (CLUTTER_TEXTURE (texture),
-                                 "redhand.png",
+                                 TESTS_DATA_DIR "/redhand.png",
                                  &error);
   clutter_actor_add_constraint (texture, clutter_align_constraint_new (stage, CLUTTER_ALIGN_X_AXIS, 0.5));
   clutter_actor_add_constraint (texture, clutter_align_constraint_new (stage, CLUTTER_ALIGN_Y_AXIS, 0.2));