Move FlowLayout test into examples

There's nothing really test-worthy in the ClutterFlowLayout interactive
test; it can be lifted pretty much as is, and placed into the examples.
This commit is contained in:
Emmanuele Bassi 2012-05-02 12:14:45 +01:00
parent b8f6ed184d
commit 46409b4043
4 changed files with 11 additions and 9 deletions

View File

@ -56,6 +56,14 @@
* <graphic fileref="flow-layout.png" format="PNG"/> * <graphic fileref="flow-layout.png" format="PNG"/>
* </figure> * </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 * #ClutterFlowLayout is available since Clutter 1.2
*/ */

View File

@ -7,6 +7,7 @@ all_examples = \
constraints \ constraints \
drag-action \ drag-action \
drop-action \ drop-action \
flow-layout \
threads threads
if PIXBUF_TESTS if PIXBUF_TESTS

View File

@ -67,8 +67,8 @@ static GOptionEntry entries[] = {
{ NULL } { NULL }
}; };
G_MODULE_EXPORT int int
test_flow_layout_main (int argc, char *argv[]) main (int argc, char *argv[])
{ {
ClutterActor *stage, *box; ClutterActor *stage, *box;
ClutterLayoutManager *layout; ClutterLayoutManager *layout;
@ -152,9 +152,3 @@ test_flow_layout_main (int argc, char *argv[])
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
G_MODULE_EXPORT const char *
test_flow_layout_describe (void)
{
return "FlowLayout layout manager example";
}

View File

@ -38,7 +38,6 @@ UNIT_TESTS = \
test-cairo-clock.c \ test-cairo-clock.c \
test-cairo-flowers.c \ test-cairo-flowers.c \
test-cogl-vertex-buffer.c \ test-cogl-vertex-buffer.c \
test-flow-layout.c \
test-box-layout.c \ test-box-layout.c \
test-stage-sizing.c \ test-stage-sizing.c \
test-scrolling.c \ test-scrolling.c \