[gnome-devel-docs] demos: Add mallard page for tooltip.js



commit e4d3def0328aebb531d6fc61b8852339acd7f54d
Author: Tiffany Ann Antopolski <tiffany antopolski gmail com>
Date:   Tue Jun 25 15:10:18 2013 -0400

    demos: Add mallard page for tooltip.js
    
    - fixed tooltip.png
    - also fixed window title in tooltip.vala

 platform-demos/C/media/tooltip.png    |  Bin 176834 -> 19973 bytes
 platform-demos/C/samples/tooltip.vala |    2 +-
 platform-demos/C/tooltip.js.page      |   41 +++++++++++++++++++++++++++++++++
 platform-demos/Makefile.am            |    1 +
 4 files changed, 43 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/media/tooltip.png b/platform-demos/C/media/tooltip.png
index a25944d..028eca9 100644
Binary files a/platform-demos/C/media/tooltip.png and b/platform-demos/C/media/tooltip.png differ
diff --git a/platform-demos/C/samples/tooltip.vala b/platform-demos/C/samples/tooltip.vala
index 1d8dd92..0401ec2 100644
--- a/platform-demos/C/samples/tooltip.vala
+++ b/platform-demos/C/samples/tooltip.vala
@@ -11,7 +11,7 @@ class MyWindow : Gtk.ApplicationWindow {
 
        /* Contstructor */
        internal MyWindow (MyApplication app) {
-               Object (application: app, title: "Toolbar Example");
+               Object (application: app, title: "Toolbar with Tooltips Example");
 
                this.set_default_size (400, 200);
                var grid = new Gtk.Grid ();
diff --git a/platform-demos/C/tooltip.js.page b/platform-demos/C/tooltip.js.page
new file mode 100644
index 0000000..e212fec
--- /dev/null
+++ b/platform-demos/C/tooltip.js.page
@@ -0,0 +1,41 @@
+<?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="tooltip.js">
+  <info>
+  <title type="text">Tooltip (JavaScript)</title>
+    <link type="guide" xref="beginner.js#misc"/>
+    <link type="seealso" xref="toolbar.js"/>
+    <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>Add tips to your widgets</desc>
+  </info>
+
+  <title>Tooltip</title>
+  <media type="image" mime="image/png" src="media/tooltip.png"/>
+  <p>A toolbar with a tooltip (with an image) for a button.</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/tooltip.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.Tooltip.html";>GtkTooltip</link></p></item>
+      <item><p><link 
href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Toolbar.html";>GtkToolbar</link></p></item>
+      <item><p><link 
href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Widget.html";>GtkWidget</link></p></item>
+      <item><p><link href="http://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html";>Stock 
Items</link></p></item>
+    </list>
+  </section>
+</page>
diff --git a/platform-demos/Makefile.am b/platform-demos/Makefile.am
index cb2e82c..dda79c6 100644
--- a/platform-demos/Makefile.am
+++ b/platform-demos/Makefile.am
@@ -453,6 +453,7 @@ HELP_FILES =                                \
        toolbar.vala.page               \
        toolbar_builder.py.page         \
        toolbar_builder.vala.page       \
+       tooltip.js.page                 \
        tooltip.py.page                 \
        tooltip.vala.page               \
        treeview_advanced_liststore.py.page     \


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