[orca] Last of the work on bgo#557009 - Orca should provide access to Empathy



commit 5e4c1f29c1e6962a140d2a931eaeff56597171f7
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Apr 30 23:35:53 2010 -0400

    Last of the work on bgo#557009 - Orca should provide access to Empathy
    
    This fixes the incorrect child count for expanded buddy-list nodes.

 src/orca/scripts/apps/empathy/script.py |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/empathy/script.py b/src/orca/scripts/apps/empathy/script.py
index 4ac93d1..11e191a 100644
--- a/src/orca/scripts/apps/empathy/script.py
+++ b/src/orca/scripts/apps/empathy/script.py
@@ -98,6 +98,25 @@ class Script(default.Script):
 
         self.chat.setAppPreferences(prefs)
 
+    def getChildNodes(self, obj):
+        """Gets all of the children that have RELATION_NODE_CHILD_OF pointing
+        to this expanded table cell.
+
+        Arguments:
+        -obj: the Accessible Object
+
+        Returns: a list of all the child nodes
+        """
+
+        reportedNodes = default.Script.getChildNodes(self, obj)
+        actualNodes = []
+        for node in reportedNodes:
+            child = self.getRealActiveDescendant(node)
+            if child and child.name:
+                actualNodes.append(child)
+
+        return actualNodes
+
     def onTextInserted(self, event):
         """Called whenever text is added to an object."""
 



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