summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-04-02 22:24:23 +0000
committerMike Fulbright <msf@redhat.com>2003-04-02 22:24:23 +0000
commit92032476ffcd6f3617a44af59cab9d0a9c5de51b (patch)
tree80df21bb91e547c8a0ac0eab4ee29254b54a7ae1 /iw
parentd9643215f697224e5647ea8f48bb06cace4cf139 (diff)
downloadanaconda-92032476ffcd6f3617a44af59cab9d0a9c5de51b.tar.gz
anaconda-92032476ffcd6f3617a44af59cab9d0a9c5de51b.tar.xz
anaconda-92032476ffcd6f3617a44af59cab9d0a9c5de51b.zip
fix for column sizing tweak bug #72868
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_gui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 64492d3df..260c1e6ef 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -381,7 +381,7 @@ class DiskTreeModel(gtk.TreeStore):
elif (kind == gobject.TYPE_STRING or
kind == gobject.TYPE_INT):
renderer = gtk.CellRendererText()
- propertyMapping = {'text': i}
+ propertyMapping = {'text': i}
# wire in the cells that we want only visible on leaf nodes to
# the special leaf node column.
@@ -398,6 +398,8 @@ class DiskTreeModel(gtk.TreeStore):
col = apply(gtk.TreeViewColumn, (title, renderer),
propertyMapping)
col.set_alignment(0.5)
+ if kind == gobject.TYPE_STRING or kind == gobject.TYPE_INT:
+ col.set_property('sizing', gtk.TREE_VIEW_COLUMN_AUTOSIZE)
self.columns.append(col)
i += 1