[orca] Fix for bgo#590267 - Thunderbird's rendering of smileys as named paragraphs without accessible text
- From: Joanmarie Diggs <joanied src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#590267 - Thunderbird's rendering of smileys as named paragraphs without accessible text
- Date: Sat, 1 Aug 2009 07:18:49 +0000 (UTC)
commit f3ee23532d9cea859372f68dd300d212f1ab9d99
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Fri Jul 31 23:55:13 2009 -0400
Fix for bgo#590267 - Thunderbird's rendering of smileys as named paragraphs without accessible text causes Orca to speak the tutorial message inappropriately
src/orca/scripts/toolkits/Gecko/script.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 1a0abb8..9574d65 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -5678,6 +5678,15 @@ class Script(default.Script):
or self.isLabellingContents(obj, contents):
continue
+ # Thunderbird now does something goofy with smileys in
+ # email: exposes them as a nested paragraph with a name
+ # consisting of the punctuation used to create the smiley
+ # and an empty accessible text object. This causes us to
+ # speak tutorial info for each smiley. :-( type in text.
+ #
+ elif role == pyatspi.ROLE_PARAGRAPH and not len(string):
+ string = obj.name
+
# If it is a "useless" image (i.e. not a link, no associated
# text), ignore it, unless it's the only thing here.
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]