[clutter] docs: XInclude the bin layout example
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] docs: XInclude the bin layout example
- Date: Fri, 27 Apr 2012 11:34:41 +0000 (UTC)
commit 26d366a3a5d1a0294adac71d4bede4f507d052e0
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Thu Mar 29 17:20:45 2012 +0100
docs: XInclude the bin layout example
clutter/clutter-bin-layout.c | 32 +++-----------------------------
1 files changed, 3 insertions(+), 29 deletions(-)
---
diff --git a/clutter/clutter-bin-layout.c b/clutter/clutter-bin-layout.c
index 12a8502..11dd0a6 100644
--- a/clutter/clutter-bin-layout.c
+++ b/clutter/clutter-bin-layout.c
@@ -51,36 +51,10 @@
*
* <example id="example-clutter-bin-layout">
* <title>How to pack actors inside a BinLayout</title>
- * <para>The following code shows how to build a composite actor with
- * a texture and a background, and add controls overlayed on top. The
- * background is set to fill the whole allocation, whilst the texture
- * is centered; there is a control in the top right corner and a label
- * in the bottom, filling out the whole allocated width.</para>
* <programlisting>
- * ClutterLayoutManager *manager;
- * ClutterActor *box;
- *
- * /* create the layout first */
- * layout = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_CENTER,
- * CLUTTER_BIN_ALIGNMENT_CENTER);
- * box = clutter_box_new (layout); /* then the container */
- *
- * /* we can use the layout object to add actors */
- * clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (layout), background,
- * CLUTTER_BIN_ALIGNMENT_FILL,
- * CLUTTER_BIN_ALIGNMENT_FILL);
- * clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (layout), icon,
- * CLUTTER_BIN_ALIGNMENT_CENTER,
- * CLUTTER_BIN_ALIGNMENT_CENTER);
- *
- * /* align to the bottom left */
- * clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (layout), label,
- * CLUTTER_BIN_ALIGNMENT_START,
- * CLUTTER_BIN_ALIGNMENT_END);
- * /* align to the top right */
- * clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (layout), button,
- * CLUTTER_BIN_ALIGNMENT_END,
- * CLUTTER_BIN_ALIGNMENT_START);
+ * <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../tests/interactive/test-bin-layout.c">
+ * <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
+ * </xi:include>
* </programlisting>
* </example>
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]