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/partition_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/partition_gui.py')
-rw-r--r-- | iw/partition_gui.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py index 6a82e1d1b..75b95f00e 100644 --- a/iw/partition_gui.py +++ b/iw/partition_gui.py @@ -448,13 +448,13 @@ class DiskTreeModel(gtk.TreeStore): iter = self.iter_children(iter) continue # get the next row. - success = self.iter_next(iter) + iter = self.iter_next(iter) # if there isn't a next row and we had a parent, go to the next # node after our parent - if not success and parent: - while not success and parent: + if not iter and parent: + while not iter and parent: + parent = self.iter_next(parent) iter = parent - success = self.iter_next(iter) if len(parentstack) > 0: parent = parentstack.pop() else: @@ -1373,15 +1373,14 @@ class AutoPartitionWindow(InstallWindow): allowdrives = [] model = self.drivelist.get_model() iter = model.get_iter_first() - next = 1 - while next: + while iter: val = model.get_value(iter, 0) drive = model.get_value(iter, 1) if val: allowdrives.append(drive) - next = model.iter_next(iter) + iter = model.iter_next(iter) if len(allowdrives) < 1: dlg = gtk.MessageDialog(self.parent, 0, gtk.MESSAGE_ERROR, |