diff options
author | Matt Wilson <msw@redhat.com> | 2002-07-18 04:20:41 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-07-18 04:20:41 +0000 |
commit | e335604bbd1d16908532a83f68c7b18742d3fc8e (patch) | |
tree | db9d0355a92d1f1c96aae2e206af1ead909748e0 /iw/xconfig_gui.py | |
parent | d7ea4fdef8e40a025a828e621fccae366e318502 (diff) | |
download | anaconda-e335604bbd1d16908532a83f68c7b18742d3fc8e.tar.gz anaconda-e335604bbd1d16908532a83f68c7b18742d3fc8e.tar.xz anaconda-e335604bbd1d16908532a83f68c7b18742d3fc8e.zip |
new iter_next API
Diffstat (limited to 'iw/xconfig_gui.py')
-rw-r--r-- | iw/xconfig_gui.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py index e0f34e91e..6e00cadea 100644 --- a/iw/xconfig_gui.py +++ b/iw/xconfig_gui.py @@ -461,10 +461,9 @@ class MonitorWindow (InstallWindow): parent = None iter = self.monitorstore.get_iter_first() - next = 1 # iterate over the list, looking for the current monitor selection - while next: + while iter: # if this is a parent node, get the first child and iter over them if self.monitorstore.iter_has_child(iter): parent = iter @@ -485,12 +484,12 @@ class MonitorWindow (InstallWindow): 0.0, 0.5) break # get the next row. - next = self.monitorstore.iter_next(iter) + iter = self.monitorstore.iter_next(iter) # if there isn't a next row and we had a parent, go to the node # after the parent we've just gotten the children of. - if not next and parent: - next = self.monitorstore.iter_next(parent) + if not iter and parent: + parent = self.monitorstore.iter_next(parent) iter = parent # set sync rates @@ -887,11 +886,11 @@ class XConfigWindow (InstallWindow): 0.0, 0.5) break # get the next row. - next = self.cardstore.iter_next(iter) + iter = self.cardstore.iter_next(iter) # if there isn't a next row and we had a parent, go to the node # after the parent we've just gotten the children of. - if not next and parent: - next = self.cardstore.iter_next(parent) + if not iter and parent: + parent = self.cardstore.iter_next(parent) iter = parent #--Some video cards don't return exact numbers, so do some hacks |