From 8b19c5c74a277a692a271895144925d855c2499b Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 17 Jun 2002 20:55:10 +0000 Subject: make things work with new pygtk2 --- iw/account_gui.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'iw/account_gui.py') diff --git a/iw/account_gui.py b/iw/account_gui.py index 6800303d5..7fa05f38c 100644 --- a/iw/account_gui.py +++ b/iw/account_gui.py @@ -102,11 +102,10 @@ class AccountWindow (InstallWindow): def getSelectedIter(self): selection = self.userlist.get_selection() - rc = selection.get_selected() - if rc is None: + (model, iter) = selection.get_selected() + if iter is None: return None - model, iter = rc return iter def getSelectedData(self): @@ -279,12 +278,10 @@ class AccountWindow (InstallWindow): def deleteUser(self, *args): selection = self.userlist.get_selection() - rc = selection.get_selected() - if rc is None: + (model, iter) = selection.get_selected() + if iter is None: return - model, iter = rc - accountName = self.userstore.get_value(iter, 0) del self.passwords[accountName] -- cgit