[gtk+/wip/strength-bar: 2/2] visuals: add a visual demo for GtkStrengthBar



commit c5affecb0282aff47b1728c1598a6c09d40e8e90
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Jun 8 18:58:51 2012 -0400

    visuals: add a visual demo for GtkStrengthBar
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677892

 tests/visuals/Makefile.am     |    3 +-
 tests/visuals/strength-bar.ui |  142 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 144 insertions(+), 1 deletions(-)
---
diff --git a/tests/visuals/Makefile.am b/tests/visuals/Makefile.am
index ed8a887..c59f869 100644
--- a/tests/visuals/Makefile.am
+++ b/tests/visuals/Makefile.am
@@ -28,4 +28,5 @@ EXTRA_DIST = \
 	linked-buttons-horizontal.ui \
 	linked-buttons-vertical.ui \
 	osd-toolbars.ui \
-	primary-toolbar.ui
+	primary-toolbar.ui \
+	strength-bar.ui
diff --git a/tests/visuals/strength-bar.ui b/tests/visuals/strength-bar.ui
new file mode 100644
index 0000000..12e724a
--- /dev/null
+++ b/tests/visuals/strength-bar.ui
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="default_width">600</property>
+    <property name="default_height">600</property>
+    <child>
+      <object class="GtkBox" id="box1">
+        <property name="orientation">vertical</property>
+        <property name="spacing">12</property>
+        <property name="visible">True</property>
+        <property name="vexpand">True</property>
+        <property name="hexpand">True</property>
+        <child>
+          <object class="GtkGrid" id="grid1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="orientation">vertical</property>
+            <property name="row_spacing">12</property>
+            <child>
+              <object class="GtkLabel" id="label1">
+                <property name="visible">True</property>
+                <property name="label">Continuous values</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str1">
+                <property name="visible">True</property>
+                <property name="hexpand">true</property>
+                <property name="value">0.09</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str2">
+                <property name="visible">True</property>
+                <property name="hexpand">true</property>
+                <property name="value">0.20</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str3">
+                <property name="visible">True</property>
+                <property name="hexpand">true</property>
+                <property name="value">0.5</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str4">
+                <property name="visible">True</property>
+                <property name="hexpand">true</property>
+                <property name="value">1.0</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkLabel" id="label2">
+                <property name="visible">True</property>
+                <property name="label">Discrete values</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str1d">
+                <property name="visible">True</property>
+                <property name="hexpand">true</property>
+                <property name="value">2.8</property>
+                <property name="min_value">0.0</property>
+                <property name="max_value">5.0</property>
+                <property name="warning_value">1.5</property>
+                <property name="strong_value">4.0</property>
+                <property name="bar_style">discrete</property>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child>
+          <object class="GtkGrid" id="grid2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="orientation">horizontal</property>
+            <property name="column_spacing">12</property>
+            <property name="halign">center</property>
+            <child>
+              <object class="GtkLabel" id="label3">
+                <property name="visible">True</property>
+                <property name="label">Continuous values</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str5">
+                <property name="visible">True</property>
+                <property name="vexpand">true</property>
+                <property name="orientation">vertical</property>
+                <property name="value">0.09</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str6">
+                <property name="visible">True</property>
+                <property name="vexpand">true</property>
+                <property name="orientation">vertical</property>
+                <property name="value">0.2</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str7">
+                <property name="visible">True</property>
+                <property name="vexpand">true</property>
+                <property name="orientation">vertical</property>
+                <property name="value">0.5</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str8">
+                <property name="visible">True</property>
+                <property name="vexpand">true</property>
+                <property name="orientation">vertical</property>
+                <property name="value">1.0</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkLabel" id="label4">
+                <property name="visible">True</property>
+                <property name="label">Discrete values</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkStrengthBar" id="str2d">
+                <property name="visible">True</property>
+                <property name="vexpand">true</property>
+                <property name="orientation">vertical</property>
+                <property name="value">15.0</property>
+                <property name="min_value">10.0</property>
+                <property name="max_value">15.0</property>
+                <property name="bar_style">discrete</property>x
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



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