From 5865d2a4b393a86180a36505419f2502433ccc00 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 18 Jul 2010 22:53:56 +0100 Subject: [PATCH] cookbook: Use TESTS_DATA_DIR We need the correct location for redhand.png if we want to load it in textures-reflection. --- doc/cookbook/examples/textures-reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/cookbook/examples/textures-reflection.c b/doc/cookbook/examples/textures-reflection.c index 81cb30e7f..e94b40b4f 100644 --- a/doc/cookbook/examples/textures-reflection.c +++ b/doc/cookbook/examples/textures-reflection.c @@ -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));