summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--iw/checklist.py4
-rw-r--r--iw/package_gui.py3
2 files changed, 4 insertions, 3 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
diff --git a/iw/package_gui.py b/iw/package_gui.py
index 636fd4781..78b1287ed 100644
--- a/iw/package_gui.py
+++ b/iw/package_gui.py
@@ -248,6 +248,7 @@ class IndividualPackageSelectionWindow (InstallWindow):
packages = []
self.packageTreeView.set_model(self.packageGroupStore)
+ self.packageTreeView.expand_all()
else:
# cache the full package list
if not self.allPkgs:
@@ -501,7 +502,7 @@ class PackageSelectionWindow (InstallWindow):
class PackageCheckList(checklist.CheckList):
def __init__(self, columns = 2):
- self.store = gtk.ListStore(gobject.TYPE_BOOLEAN,
+ self.store = gtk.TreeStore(gobject.TYPE_BOOLEAN,
gobject.TYPE_STRING, gobject.TYPE_INT)
gtk.TreeView.__init__ (self, self.store)