[orca/gnome-3-14] Do not generate position in list for text block elements
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-14] Do not generate position in list for text block elements
- Date: Fri, 12 Sep 2014 19:39:46 +0000 (UTC)
commit b00ec2730dc83e570d813fa08feefc53cc525050
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 12 15:38:36 2014 -0400
Do not generate position in list for text block elements
.../scripts/toolkits/Gecko/speech_generator.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/speech_generator.py
b/src/orca/scripts/toolkits/Gecko/speech_generator.py
index c465a14..51a6738 100644
--- a/src/orca/scripts/toolkits/Gecko/speech_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/speech_generator.py
@@ -420,6 +420,9 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
return attribute.split(":")[1]
def _generatePositionInList(self, obj, **args):
+ if self._script.utilities.isTextBlockElement(obj):
+ return []
+
position = self.getAttribute(obj, "posinset")
total = self.getAttribute(obj, "setsize")
if position and total and not obj.getRole() in \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]