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:
parent
dc19e26073
commit
5865d2a4b3
@ -84,7 +84,7 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
texture = clutter_texture_new ();
|
texture = clutter_texture_new ();
|
||||||
clutter_texture_set_from_file (CLUTTER_TEXTURE (texture),
|
clutter_texture_set_from_file (CLUTTER_TEXTURE (texture),
|
||||||
"redhand.png",
|
TESTS_DATA_DIR "/redhand.png",
|
||||||
&error);
|
&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_X_AXIS, 0.5));
|
||||||
clutter_actor_add_constraint (texture, clutter_align_constraint_new (stage, CLUTTER_ALIGN_Y_AXIS, 0.2));
|
clutter_actor_add_constraint (texture, clutter_align_constraint_new (stage, CLUTTER_ALIGN_Y_AXIS, 0.2));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user