Move FlowLayout test into examples
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 2 May 2012 11:14:45 +0000 (12:14 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 2 May 2012 11:14:45 +0000 (12:14 +0100)
There's nothing really test-worthy in the ClutterFlowLayout interactive
test; it can be lifted pretty much as is, and placed into the examples.

clutter/clutter-flow-layout.c
examples/Makefile.am
examples/flow-layout.c [moved from tests/interactive/test-flow-layout.c with 95% similarity]
tests/interactive/Makefile.am

index 38f0fe6..94df4db 100644 (file)
  *   <graphic fileref="flow-layout.png" format="PNG"/>
  * </figure>
  *
+ * <informalexample>
+ *  <programlisting>
+ * <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../examples/flow-layout.c">
+ *   <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ * </xi:include>
+ *  </programlisting>
+ * </informalexample>
+ *
  * #ClutterFlowLayout is available since Clutter 1.2
  */
 
index 3f46d21..c85c3d5 100644 (file)
@@ -7,6 +7,7 @@ all_examples = \
        constraints \
        drag-action \
        drop-action \
+       flow-layout \
        threads
 
 if PIXBUF_TESTS
similarity index 95%
rename from tests/interactive/test-flow-layout.c
rename to examples/flow-layout.c
index 271c861..4f92e85 100644 (file)
@@ -67,8 +67,8 @@ static GOptionEntry entries[] = {
   { NULL }
 };
 
-G_MODULE_EXPORT int
-test_flow_layout_main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
 {
   ClutterActor *stage, *box;
   ClutterLayoutManager *layout;
@@ -152,9 +152,3 @@ test_flow_layout_main (int argc, char *argv[])
 
   return EXIT_SUCCESS;
 }
-
-G_MODULE_EXPORT const char *
-test_flow_layout_describe (void)
-{
-  return "FlowLayout layout manager example";
-}
index 3669c36..ba56ec2 100644 (file)
@@ -38,7 +38,6 @@ UNIT_TESTS = \
        test-cairo-clock.c \
        test-cairo-flowers.c \
        test-cogl-vertex-buffer.c \
-       test-flow-layout.c \
        test-box-layout.c \
        test-stage-sizing.c \
        test-scrolling.c \