mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
docs: Fix the BindConstraint example
A constraint was created but not added to the actor.
This commit is contained in:
parent
00eb71b89a
commit
c65c0f08d8
@ -60,6 +60,7 @@
|
|||||||
* constraint = clutter_bind_constraint_new (rect[0], CLUTTER_BIND_X, 0.0);
|
* constraint = clutter_bind_constraint_new (rect[0], CLUTTER_BIND_X, 0.0);
|
||||||
* clutter_actor_add_constraint_with_name (rect[2], "blue-x", constraint);
|
* clutter_actor_add_constraint_with_name (rect[2], "blue-x", constraint);
|
||||||
* constraint = clutter_bind_constraint_new (rect[0], CLUTTER_BIND_Y, 0.0);
|
* constraint = clutter_bind_constraint_new (rect[0], CLUTTER_BIND_Y, 0.0);
|
||||||
|
* clutter_actor_add_constraint_with_name (rect[2], "blue-y", constraint);
|
||||||
* ]|
|
* ]|
|
||||||
*
|
*
|
||||||
* The following code animates the second and third rectangles to "expand"
|
* The following code animates the second and third rectangles to "expand"
|
||||||
|
Loading…
Reference in New Issue
Block a user