[gtk+/wip/strength-bar] visuals: add a visual demo for GtkStrengthBar
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/strength-bar] visuals: add a visual demo for GtkStrengthBar
- Date: Fri, 8 Jun 2012 22:59:09 +0000 (UTC)
commit 5c4bf892ee199711a3013f06ad9850c86e24f97c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Jun 8 18:58:51 2012 -0400
visuals: add a visual demo for GtkStrengthBar
tests/visuals/Makefile.am | 3 +-
tests/visuals/strength-bar.ui | 121 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 123 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..6dbbb2a
--- /dev/null
+++ b/tests/visuals/strength-bar.ui
@@ -0,0 +1,121 @@
+<?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">Automatic blocks</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStrengthBar" id="str1">
+ <property name="visible">True</property>
+ <property name="hexpand">true</property>
+ <property name="fraction">0.2</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStrengthBar" id="str2">
+ <property name="visible">True</property>
+ <property name="hexpand">true</property>
+ <property name="fraction">0.5</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStrengthBar" id="str3">
+ <property name="visible">True</property>
+ <property name="hexpand">true</property>
+ <property name="fraction">0.8</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label2">
+ <property name="visible">True</property>
+ <property name="label">Fixed blocks</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStrengthBar" id="str4">
+ <property name="visible">True</property>
+ <property name="hexpand">true</property>
+ <property name="fraction">0.5</property>
+ <property name="num_blocks">6</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">Automatic blocks</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="fraction">0.2</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="fraction">0.5</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="fraction">0.8</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label4">
+ <property name="visible">True</property>
+ <property name="label">Fixed blocks</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="fraction">0.5</property>
+ <property name="num_blocks">6</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]