cookbook: Use TESTS_DATA_DIR

We need the correct location for redhand.png if we want to load it
in textures-reflection.
This commit is contained in:
Emmanuele Bassi 2010-07-18 22:53:56 +01:00
parent dc19e26073
commit 5865d2a4b3

View 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));