summaryrefslogtreecommitdiffstats
path: root/iw/checklist.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-01-09 19:57:17 +0000
committerJeremy Katz <katzj@redhat.com>2002-01-09 19:57:17 +0000
commita490490406be3c362aa1bc9f76078f4edace8258 (patch)
treed2001919f408ebb3bb63bbe4bc9bcc8cba4b2476 /iw/checklist.py
parenta21dd2c9dc6b0c9e7a6c19e3331031ea9b650e9b (diff)
downloadanaconda-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.py4
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