diff options
author | 2011-08-01 01:50:08 +0000 | |
---|---|---|
committer | 2011-08-01 01:50:08 +0000 | |
commit | 73aa6573245632b27203fef2da72dcd321d767a5 (patch) | |
tree | ddf5f3edbd314005ac6b9b6f12d2987d1016ff32 | |
parent | iw/mirrorselect-sync_gui.py: update for the new treeview model (diff) | |
download | anaconda-73aa6573245632b27203fef2da72dcd321d767a5.tar.gz anaconda-73aa6573245632b27203fef2da72dcd321d767a5.tar.bz2 anaconda-73aa6573245632b27203fef2da72dcd321d767a5.zip |
iw/mirrorselect*_gui.py: pass around self.xml
-rw-r--r-- | iw/mirrorselect-sync_gui.py | 2 | ||||
-rw-r--r-- | iw/mirrorselect_gui.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/iw/mirrorselect-sync_gui.py b/iw/mirrorselect-sync_gui.py index 64c28af..9d07d53 100644 --- a/iw/mirrorselect-sync_gui.py +++ b/iw/mirrorselect-sync_gui.py @@ -69,7 +69,7 @@ class MirrorselectSyncWindow(InstallWindow): mirrors_parsed = ms.parseMirrors(mirrorsf) self.mirrors = ms.mirrorList(mirrors_parsed, "rsync") - ms.addMirrors(self.mirrors, mirrors_parsed) + ms.addMirrors(self.mirrors, mirrors_parsed, self.xml) self.buttons = ms.buttons return self.align diff --git a/iw/mirrorselect_gui.py b/iw/mirrorselect_gui.py index 2769144..417efb2 100644 --- a/iw/mirrorselect_gui.py +++ b/iw/mirrorselect_gui.py @@ -68,11 +68,11 @@ class MirrorselectWindow(InstallWindow): mirrors_parsed = self.parseMirrors(mirrorsf) self.mirrors = self.mirrorList(mirrors_parsed, "http+ftp") - self.addMirrors(self.mirrors, mirrors_parsed) + self.addMirrors(self.mirrors, mirrors_parsed, self.xml) return self.align - def addMirrors(self, mirror_list, mirror_data): + def addMirrors(self, mirror_list, mirror_data, xml): (regions, countries, mirrors) = mirror_list self.treestore = gtk.TreeStore(gtk.Widget, str, str, str) for region in regions: @@ -100,7 +100,7 @@ class MirrorselectWindow(InstallWindow): name_column.add_attribute(text_cell, "text", 1) ipv4_column.add_attribute(text_cell, "text", 2) ipv6_column.add_attribute(text_cell, "text", 3) - treeview.set_search_column(1) + xml.treeview.set_search_column(1) self.xml.get_widget("mirrors_viewport").add(treeview) |