diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-01-09 19:57:17 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-01-09 19:57:17 +0000 |
commit | a490490406be3c362aa1bc9f76078f4edace8258 (patch) | |
tree | d2001919f408ebb3bb63bbe4bc9bcc8cba4b2476 /iw/checklist.py | |
parent | a21dd2c9dc6b0c9e7a6c19e3331031ea9b650e9b (diff) | |
download | anaconda-a490490406be3c362aa1bc9f76078f4edace8258.tar.gz anaconda-a490490406be3c362aa1bc9f76078f4edace8258.tar.xz anaconda-a490490406be3c362aa1bc9f76078f4edace8258.zip |
use a TreeStore instead of a ListStore to work around silly sort refresh bug
Diffstat (limited to 'iw/checklist.py')
-rw-r--r-- | iw/checklist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iw/checklist.py b/iw/checklist.py index 20dcb513b..b3c0bec27 100644 --- a/iw/checklist.py +++ b/iw/checklist.py @@ -24,7 +24,7 @@ class CheckList (gtk.TreeView): # XXX need to handle the multicolumn case better still.... def __init__ (self, columns = 1): - self.store = gtk.ListStore(gobject.TYPE_BOOLEAN, + self.store = gtk.TreeStore(gobject.TYPE_BOOLEAN, gobject.TYPE_STRING, gobject.TYPE_STRING) gtk.TreeView.__init__ (self, self.store) @@ -63,7 +63,7 @@ class CheckList (gtk.TreeView): init_value: initial state of the indicator""" textList = ("",) + textList - iter = self.store.append() + iter = self.store.append(None) self.store.set_value(iter, 0, init_value) # add the text for the number of columns we have |