[orca] Interim fix for bug #638063 - SayAll fails with certain pages in Firefox.
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Interim fix for bug #638063 - SayAll fails with certain pages in Firefox.
- Date: Sun, 26 Dec 2010 23:39:03 +0000 (UTC)
commit 4f2c875415dbf3b1335267d392c11cbcb4fcba7a
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sun Dec 26 18:38:03 2010 -0500
Interim fix for bug #638063 - SayAll fails with certain pages in Firefox.
src/orca/scripts/toolkits/Gecko/script.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 08045e4..2bbfd19 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -5294,7 +5294,13 @@ class Script(default.Script):
if not len(string) \
or self.utilities.isEntry(obj) \
or self.utilities.isPasswordText(obj):
- utterances.append(self.speechGenerator.generateSpeech(obj))
+ rv = self.speechGenerator.generateSpeech(obj)
+ # Crazy crap to make clump and friends happy until we can
+ # kill them. (They don't deal well with what the speech
+ # generator provides.)
+ for item in rv:
+ if isinstance(item, basestring):
+ utterances.append([item, self.getACSS(obj, item)])
else:
utterances.append([string, self.getACSS(obj, string)])
if speakRole and not role in doNotSpeakRoles:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]