[orca] Fix for bgo#619473 - Orca is not presenting incoming chatroom messages with Pidgin 2.7.0
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#619473 - Orca is not presenting incoming chatroom messages with Pidgin 2.7.0
- Date: Mon, 24 May 2010 01:19:38 +0000 (UTC)
commit e0dcadec8c9547a7140e0bdd93d588d014d655ca
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sun May 23 21:18:19 2010 -0400
Fix for bgo#619473 - Orca is not presenting incoming chatroom messages with Pidgin 2.7.0
src/orca/scripts/apps/pidgin/script.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/pidgin/script.py b/src/orca/scripts/apps/pidgin/script.py
index 79cb840..03b7e41 100644
--- a/src/orca/scripts/apps/pidgin/script.py
+++ b/src/orca/scripts/apps/pidgin/script.py
@@ -724,6 +724,15 @@ class Script(default.Script):
#
allTextFields = self.utilities.descendantsWithRole(
chatRoomTab, pyatspi.ROLE_TEXT, False)
+
+ # Pidgin 2.7 includes a Find text object, hidden by default.
+ # We can identify (and eliminate) it by STATE_SINGLE_LINE.
+ #
+ allTextFields = \
+ filter(lambda o:
+ not o.getState().contains(pyatspi.STATE_SINGLE_LINE),
+ allTextFields)
+
index = len(allTextFields) - 2
if index >= 0:
self.chatAreas[chatRoomTab] = allTextFields[index]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]