[PATCH 03/12] Fix usage of GtkLevelBar in glade.
David Shea
dshea at redhat.com
Fri Oct 4 18:28:09 UTC 2013
Update the interface-requires to the version of Gtk that introduced
GtkLevelBar (3.6). Remove redundant properties. Change the value of the
"orientation" property to the format that gladeui expects.
---
pyanaconda/ui/gui/spokes/password.glade | 13 ++++---------
pyanaconda/ui/gui/spokes/user.glade | 9 +++------
2 files changed, 7 insertions(+), 15 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/password.glade b/pyanaconda/ui/gui/spokes/password.glade
index 37942eb..3ad5055 100644
--- a/pyanaconda/ui/gui/spokes/password.glade
+++ b/pyanaconda/ui/gui/spokes/password.glade
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <!-- interface-requires gtk+ 3.0 -->
+ <!-- interface-requires gtk+ 3.6 -->
<!-- interface-requires AnacondaWidgets 1.0 -->
<object class="AnacondaSpokeWindow" id="passwordWindow">
<property name="startup_id">filler</property>
@@ -134,15 +134,10 @@
<object class="GtkLevelBar" id="password_bar">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="spacing">2</property>
- <property name="mode">GTK_LEVEL_BAR_MODE_DISCRETE</property>
- <property name="min-value">0</property>
- <property name="max-value">4</property>
- <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
- <property name="value">2</property>
- <property name="halign">fill</property>
<property name="valign">center</property>
+ <property name="value">2</property>
+ <property name="max_value">4</property>
+ <property name="mode">discrete</property>
</object>
<packing>
<property name="expand">True</property>
diff --git a/pyanaconda/ui/gui/spokes/user.glade b/pyanaconda/ui/gui/spokes/user.glade
index c979efa..d2f701f 100644
--- a/pyanaconda/ui/gui/spokes/user.glade
+++ b/pyanaconda/ui/gui/spokes/user.glade
@@ -236,13 +236,10 @@
<object class="GtkLevelBar" id="password_bar">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="mode">GTK_LEVEL_BAR_MODE_DISCRETE</property>
- <property name="min-value">0</property>
- <property name="max-value">4</property>
- <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
- <property name="value">2</property>
- <property name="halign">fill</property>
<property name="valign">center</property>
+ <property name="value">2</property>
+ <property name="max_value">4</property>
+ <property name="mode">discrete</property>
</object>
<packing>
<property name="expand">True</property>
--
1.8.3.1
More information about the anaconda-patches
mailing list