[gtk+] visuals: add a visual demo for GtkLevelBar



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

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

 tests/visuals/Makefile.am  |    1 +
 tests/visuals/level-bar.ui |  148 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 149 insertions(+), 0 deletions(-)
---
diff --git a/tests/visuals/Makefile.am b/tests/visuals/Makefile.am
index ed8a887..538daef 100644
--- a/tests/visuals/Makefile.am
+++ b/tests/visuals/Makefile.am
@@ -25,6 +25,7 @@ visuals_SOURCES = visuals.c
 
 EXTRA_DIST = \
 	inline-toolbar.ui \
+	level-bar.ui \
 	linked-buttons-horizontal.ui \
 	linked-buttons-vertical.ui \
 	osd-toolbars.ui \
diff --git a/tests/visuals/level-bar.ui b/tests/visuals/level-bar.ui
new file mode 100644
index 0000000..1fa328b
--- /dev/null
+++ b/tests/visuals/level-bar.ui
@@ -0,0 +1,148 @@
+<?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="GtkLevelBar" id="str1">
+                <property name="visible">True</property>
+                <property name="hexpand">true</property>
+                <property name="value">0.09</property>
+                <offsets>
+                  <offset name="low" value="0.09"/>
+                  <offset name="high" value="0.65"/>
+                </offsets>
+              </object>
+            </child>
+            <child>
+              <object class="GtkLevelBar" id="str2">
+                <property name="visible">True</property>
+                <property name="hexpand">true</property>
+                <property name="value">0.20</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkLevelBar" id="str3">
+                <property name="visible">True</property>
+                <property name="hexpand">true</property>
+                <property name="value">0.5</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkLevelBar" 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="GtkLevelBar" 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="mode">discrete</property>
+                <offsets>
+                  <offset name="low" value="1.0"/>
+                  <offset name="high" value="4.0"/>
+                </offsets>
+              </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="GtkLevelBar" 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="GtkLevelBar" 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="GtkLevelBar" 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="GtkLevelBar" 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="GtkLevelBar" 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="mode">discrete</property>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



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