[gnome-devel-docs] demos: Add Mallard page for buttonbox.js



commit bb11554be201c307981b546f41fb438d1d7a0593
Author: Tiffany Ann Antopolski <tiffany antopolski gmail com>
Date:   Tue Jun 25 14:50:32 2013 -0400

    demos: Add Mallard page for buttonbox.js

 platform-demos/C/buttonbox.js.page                 |   44 ++++++++++++++++++++
 .../{buttonboxexample.js => samples/buttonbox.js}  |    4 +-
 platform-demos/Makefile.am                         |    2 +
 3 files changed, 47 insertions(+), 3 deletions(-)
---
diff --git a/platform-demos/C/buttonbox.js.page b/platform-demos/C/buttonbox.js.page
new file mode 100644
index 0000000..512055b
--- /dev/null
+++ b/platform-demos/C/buttonbox.js.page
@@ -0,0 +1,44 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<page xmlns="http://projectmallard.org/1.0/";
+      xmlns:xi="http://www.w3.org/2001/XInclude";
+      type="guide" style="task"
+      id="buttonbox.js">
+  <info>
+    <title type="text">ButtonBox (JavaScript)</title>
+    <link type="guide" xref="beginner.js#layout"/>
+    <link type="seealso" xref="button.js"/>
+    <revision version="0.2" date="2013-06-25" status="review"/>
+
+    <credit type="author copyright">
+      <name>Meg Ford</name>
+      <email>megford gnome org</email>
+      <years>2013</years>
+    </credit>
+
+    <desc>A container for arranging buttons</desc>
+  </info>
+
+  <title>ButtonBox</title>
+
+  <media type="image" mime="image/png" src="media/buttonbox_calculator.png"/>
+  <p>A calculator - the buttons are enclosed in horizontal ButtonBoxes.</p>
+
+  <links type="section" />
+
+  <section id="code">
+    <title>Code used to generate this example</title>
+    <code mime="application/javascript" style="numbered"><xi:include href="samples/buttonbox.js" 
parse="text"><xi:fallback/></xi:include></code>
+  </section>
+
+  <section id="references">
+    <title>API References</title>
+    <p>In this sample we used the following:</p>
+    <list>
+      <item><p><link 
href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.ButtonBox.html";>GtkButtonBox</link></p></item>
+      <item><p><link 
href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Box.html";>GtkBox</link></p></item>
+      <item><p><link 
href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html";>GtkButton</link></p></item>
+      <item><p><link 
href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Entry.html";>GtkEntry</link></p></item>
+      <item><p><link 
href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html";>GtkGrid</link></p></item>
+    </list>
+  </section>
+</page>
diff --git a/platform-demos/C/buttonboxexample.js b/platform-demos/C/samples/buttonbox.js
similarity index 99%
rename from platform-demos/C/buttonboxexample.js
rename to platform-demos/C/samples/buttonbox.js
index f8321a7..b3499fb 100644
--- a/platform-demos/C/buttonboxexample.js
+++ b/platform-demos/C/samples/buttonbox.js
@@ -9,7 +9,7 @@ const ButtonBoxExample = new Lang.Class ({
 
     // Create the application itthis
     _init: function () {
-        this.application = new Gtk.Application({ application_id: 'org.example.jscrolledwindow' });
+        this.application = new Gtk.Application({ application_id: 'org.example.jsbuttonbox' });
 
         // Connect 'activate' and 'startup' signals to the callback functions
         this.application.connect('activate', Lang.bind(this, this._onActivate));
@@ -178,5 +178,3 @@ const ButtonBoxExample = new Lang.Class ({
 // Run the application
 let app = new ButtonBoxExample();
 app.application.run (ARGV);
-        
-
diff --git a/platform-demos/Makefile.am b/platform-demos/Makefile.am
index c331fc4..cb2e82c 100644
--- a/platform-demos/Makefile.am
+++ b/platform-demos/Makefile.am
@@ -35,6 +35,7 @@ demo_sources =        \
        samples/button.js                       \
        samples/button.py                       \
        samples/button.vala                     \
+       samples/buttonbox.js                    \
        samples/buttonbox.py                    \
        samples/checkbutton.c                   \
        samples/checkbutton.js                  \
@@ -310,6 +311,7 @@ HELP_FILES =                                \
        button.js.page                  \
        button.py.page                  \
        button.vala.page                \
+       buttonbox.js.page               \
        buttonbox.py.page               \
        c.page                          \
        checkbutton.c.page              \


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