diff options
author | Mike Fulbright <msf@redhat.com> | 2003-04-02 22:24:23 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-04-02 22:24:23 +0000 |
commit | 92032476ffcd6f3617a44af59cab9d0a9c5de51b (patch) | |
tree | 80df21bb91e547c8a0ac0eab4ee29254b54a7ae1 /iw | |
parent | d9643215f697224e5647ea8f48bb06cace4cf139 (diff) | |
download | anaconda-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.py | 4 |
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 |