[clutter] Move the easing modes test into the examples



commit c6b226e6c75e5f2e5d1dc3752e27198a8f337573
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Wed May 2 18:37:36 2012 +0100

    Move the easing modes test into the examples
    
    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                               |    1 +
 .../test-transitions.c => examples/easing-modes.c  |   11 ++---------
 tests/interactive/Makefile.am                      |    1 -
 3 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/examples/Makefile.am b/examples/Makefile.am
index c85c3d5..bf203bd 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -7,6 +7,7 @@ all_examples = \
 	constraints \
 	drag-action \
 	drop-action \
+	easing-modes \
 	flow-layout \
 	threads
 
diff --git a/tests/interactive/test-transitions.c b/examples/easing-modes.c
similarity index 97%
rename from tests/interactive/test-transitions.c
rename to examples/easing-modes.c
index dd41c4f..5393e72 100644
--- a/tests/interactive/test-transitions.c
+++ b/examples/easing-modes.c
@@ -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";
-}
diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am
index ba56ec2..426d2ea 100644
--- a/tests/interactive/Makefile.am
+++ b/tests/interactive/Makefile.am
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]