Move the easing modes test into the examples
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 2 May 2012 17:37:36 +0000 (18:37 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 2 May 2012 17:37:36 +0000 (18:37 +0100)
It's a pretty simple, self-contained example of how to use different
easing modes, as well as the implicit animations API.

examples/Makefile.am
examples/easing-modes.c [moved from tests/interactive/test-transitions.c with 97% similarity]
tests/interactive/Makefile.am

index c85c3d5..bf203bd 100644 (file)
@@ -7,6 +7,7 @@ all_examples = \
        constraints \
        drag-action \
        drop-action \
+       easing-modes \
        flow-layout \
        threads
 
similarity index 97%
rename from tests/interactive/test-transitions.c
rename to examples/easing-modes.c
index dd41c4f..5393e72 100644 (file)
@@ -1,5 +1,4 @@
 #include <stdlib.h>
-#include <gmodule.h>
 #include <clutter/clutter.h>
 
 /* all the easing modes provided by Clutter */
@@ -180,8 +179,8 @@ static GOptionEntry test_easing_entries[] = {
   { NULL }
 };
 
-G_MODULE_EXPORT int
-test_transitions_main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
 {
   ClutterActor *stage, *rect, *label;
   gchar *text;
@@ -233,9 +232,3 @@ test_transitions_main (int argc, char *argv[])
 
   return EXIT_SUCCESS;
 }
-
-G_MODULE_EXPORT const char *
-test_transitions_describe (void)
-{
-  return "Visualize all easing modes provided by Clutter";
-}
index ba56ec2..426d2ea 100644 (file)
@@ -47,7 +47,6 @@ UNIT_TESTS = \
        test-path-constraint.c \
        test-state-script.c \
        test-devices.c \
-       test-transitions.c \
        test-content.c \
        test-keyframe-transition.c \
        test-scroll-actor.c