[orca/gnome-2-30] Fix for bgo#617345 - getChildNodes() is returning a list of integers rather than accessibles if NODE



commit bf320a4c97e9aa8934025e09db08bcf252626c13
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Apr 30 23:20:48 2010 -0400

    Fix for bgo#617345 - getChildNodes() is returning a list of integers rather than accessibles if NODE_PARENT_OF relationship is present

 src/orca/default.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/default.py b/src/orca/default.py
index c352bc1..e05eeaf 100644
--- a/src/orca/default.py
+++ b/src/orca/default.py
@@ -7370,7 +7370,7 @@ class Script(script.Script):
                 if relation.getRelationType() == \
                         pyatspi.RELATION_NODE_PARENT_OF:
                     for target in range(relation.getNTargets()):
-                        nodes.append(target)
+                        nodes.append(relation.getTarget(target))
                     return nodes
         except:
             pass



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]