2008-05-28 Mark Doffman <mark.doffman@codethink.co.uk>
[platform/core/uifw/at-spi2-atk.git] / pyatspi / utils.py
index 5f2bf4b..48aa94b 100644 (file)
@@ -258,7 +258,7 @@ def _findAllDescendants(acc, pred, matches):
       if pred(child): matches.append(child)
     except Exception:
       pass
-    findAllDescendants(child, pred, matches)
+    _findAllDescendants(child, pred, matches)
   
 def findAncestor(acc, pred):
   '''
@@ -450,7 +450,7 @@ class StateSet(object):
     @param states: State(s) to add
     @type states: Accessibility.StateType
     '''
-    map(self.impl._this().add, state)
+    map(self.impl._this().add, states)
     
   def remove(self, state):
     '''