fix a comment and use [model[iter][x]

This commit is contained in:
Nikos Kouremenos 2005-07-23 08:11:50 +00:00
parent 3228de29fe
commit fef07cf825
1 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ class AdvancedConfigurationWindow:
else: else:
iter = model.iter_children(parent_iter) iter = model.iter_children(parent_iter)
while iter: while iter:
if model.get_value(iter, 0) == name: if model[iter][0] == name:
break break
iter = model.iter_next(iter) iter = model.iter_next(iter)
return iter return iter
@ -131,16 +131,16 @@ class AdvancedConfigurationWindow:
str = self.entry.get_text() str = self.entry.get_text()
if str is None or str == '': if str is None or str == '':
return True # show all return True # show all
name = model.get_value(iter, 0) name = model[iter][0]
# If a child of the iter match, we return True # If a child of the iter matches, we return True
if model.iter_has_child(iter): if model.iter_has_child(iter):
iterC = model.iter_children(iter) iterC = model.iter_children(iter)
while iterC: while iterC:
nameC = model.get_value(iterC, 0) nameC = model[iterC][0]
if model.iter_has_child(iterC): if model.iter_has_child(iterC):
iterCC = model.iter_children(iterC) iterCC = model.iter_children(iterC)
while iterCC: while iterCC:
nameCC = model.get_value(iterCC, 0) nameCC = model[iterCC][0]
if nameCC.find(str) != -1: if nameCC.find(str) != -1:
return True return True
iterCC = model.iter_next(iterCC) iterCC = model.iter_next(iterCC)