From 623db3e838de960271afa186ec2350d4a2c20c00 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Thu, 6 Jun 2002 21:29:42 +0000 Subject: switch to get_iter_first(), fix bug calling setCurrent --- iw/xconfig_gui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'iw') diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py index 823fcdaee..3cd79770d 100644 --- a/iw/xconfig_gui.py +++ b/iw/xconfig_gui.py @@ -438,7 +438,7 @@ class MonitorWindow (InstallWindow): self.currentMonitor = monitorname parent = None - iter = self.monitorstore.get_iter_root() + iter = self.monitorstore.get_iter_first() next = 1 # iterate over the list, looking for the current monitor selection @@ -829,12 +829,12 @@ class XConfigWindow (InstallWindow): return 1 - def setCurrent(self, cardname, recenter=1): + def setCurrent(self, cardname, currentMem, recenter=1): self.ignoreEvents = 1 self.currentCard = cardname parent = None - iter = self.cardstore.get_iter_root() + iter = self.cardstore.get_iter_first() next = 1 # iterate over the list, looking for the current mouse selection while next: @@ -867,7 +867,7 @@ class XConfigWindow (InstallWindow): #--Some video cards don't return exact numbers, so do some hacks try: - vidRam = string.atoi (self.currentMem) + vidRam = string.atoi (currentMem) except: vidRam = 1024 -- cgit