mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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 ();
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user