[orca] More work on empathy support.



commit af70157643847ec9951b3df67a7b46559dda944c
Author: Joanmarie Diggs <Joanmarie Diggs gmail com>
Date:   Sun Apr 11 15:13:25 2010 -0400

    More work on empathy support.

 src/orca/scripts/apps/empathy/script.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/empathy/script.py b/src/orca/scripts/apps/empathy/script.py
index 4bf4db7..d9875e4 100644
--- a/src/orca/scripts/apps/empathy/script.py
+++ b/src/orca/scripts/apps/empathy/script.py
@@ -25,6 +25,8 @@ __date__      = "$Date$"
 __copyright__ = "Copyright (c) 2010 Joanmarie Diggs."
 __license__   = "LGPL"
 
+import pyatspi
+
 import orca.chat as chat
 import orca.default as default
 
@@ -39,12 +41,19 @@ class Script(default.Script):
     def __init__(self, app):
         """Creates a new script for the given application."""
 
+        # So we can take an educated guess at identifying the buddy list.
+        #
+        self._buddyListAncestries = [[pyatspi.ROLE_TREE_TABLE,
+                                      pyatspi.ROLE_SCROLL_PANE,
+                                      pyatspi.ROLE_FILLER,
+                                      pyatspi.ROLE_FRAME]]
+
         default.Script.__init__(self, app)
 
     def getChat(self):
         """Returns the 'chat' class for this script."""
 
-        return chat.Chat(self, [])
+        return chat.Chat(self, self._buddyListAncestries)
 
     def setupInputEventHandlers(self):
         """Defines InputEventHandler fields for this script that can be



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