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



commit 0f9d08369b58bc30a14329742ae59ce217973d16
Author: Tiffany Ann Antopolski <tiffany antopolski gmail com>
Date:   Tue Jun 25 15:22:43 2013 -0400

    demos: Add Mallard page for colorutton.js

 platform-demos/C/colorbutton.js.page    |   39 +++++++++++++++++++++++++++++++
 platform-demos/C/samples/colorbutton.js |    2 +-
 platform-demos/Makefile.am              |    1 +
 3 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/colorbutton.js.page b/platform-demos/C/colorbutton.js.page
new file mode 100644
index 0000000..3245ef2
--- /dev/null
+++ b/platform-demos/C/colorbutton.js.page
@@ -0,0 +1,39 @@
+<?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="colorbutton.js">
+  <info>
+    <title type="text">ColorButton (JavaScript)</title>
+    <link type="guide" xref="beginner.js#color-selectors"/>
+    <revision version="0.1" 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 button to launch a color selection dialog</desc>
+  </info>
+
+  <title>ColorButton</title>
+  <media type="image" mime="image/png" src="media/colorbutton.png"/>
+  <p>This ColorButton launches a color selection dialog and prints in the terminal the RGB values of the 
color selected.</p>
+
+  <links type="sections" />
+  
+  <section id="code">
+  <title>Code used to generate this example</title>
+  <code mime="application/javascript" style="numbered"><xi:include href="samples/colorbutton.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.ColorButton.html";>GtkColorButton</link></p></item>
+    <item><p><link href="http://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html";>RGBA 
Colors</link></p></item>
+  </list>
+  </section>
+</page>
diff --git a/platform-demos/C/samples/colorbutton.js b/platform-demos/C/samples/colorbutton.js
index ce22759..fba64c9 100644
--- a/platform-demos/C/samples/colorbutton.js
+++ b/platform-demos/C/samples/colorbutton.js
@@ -33,7 +33,7 @@ const ColorbuttonExample = new Lang.Class ({
         // Create the application window
         this.window = new Gtk.ApplicationWindow ({ application: this.application,
                                                    window_position: Gtk.WindowPosition.CENTER,
-                                                   title: "Colorbutton Example",
+                                                   title: "ColorButton",
                                                    default_width: 150,
                                                    default_height: 50,
                                                    border_width: 10 });
diff --git a/platform-demos/Makefile.am b/platform-demos/Makefile.am
index dda79c6..3312fa9 100644
--- a/platform-demos/Makefile.am
+++ b/platform-demos/Makefile.am
@@ -318,6 +318,7 @@ HELP_FILES =                                \
        checkbutton.js.page             \
        checkbutton.py.page             \
        checkbutton.vala.page           \
+       colorbutton.js.page             \
        colorbutton.py.page             \
        colorbutton.vala.page           \
        comboboxtext.js.page            \


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