Put bind-constraint back into the interactive tests

The bind-constraint.c example still uses clutter_actor_animate(), and
it'd require some serious reworking to move it to
ClutterPropertyTransition or to implicit animations.
This commit is contained in:
Emmanuele Bassi 2012-05-08 10:51:14 +01:00
parent 4fef7eb689
commit 5ad1ec7cca
3 changed files with 10 additions and 4 deletions

View File

@ -2,7 +2,6 @@ include $(top_srcdir)/build/autotools/Makefile.am.silent
all_examples = \
basic-actor \
bind-constraint \
canvas \
constraints \
drag-action \

View File

@ -49,7 +49,8 @@ UNIT_TESTS = \
test-devices.c \
test-content.c \
test-keyframe-transition.c \
test-scroll-actor.c
test-scroll-actor.c \
test-bind-constraint.c
if X11_TESTS
UNIT_TESTS += test-pixmap.c

View File

@ -154,8 +154,14 @@ on_button_release (ClutterActor *actor,
return TRUE;
}
int
main (int argc, char *argv[])
G_MODULE_EXPORT const char *
test_bind_constraint_describe (void)
{
return "Demonstrate the usage of ClutterBindConstraint";
}
G_MODULE_EXPORT int
test_bind_constraint_main (int argc, char *argv[])
{
ClutterActor *stage, *rect;
ClutterConstraint *constraint;