[orca/gnome-2-28] Work on bgo#597159 - Orca does not provide access to the contents of Packagemanager's HTML container
- From: Joanmarie Diggs <joanied src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [orca/gnome-2-28] Work on bgo#597159 - Orca does not provide access to the contents of Packagemanager's HTML container
- Date: Sat, 14 Nov 2009 23:56:25 +0000 (UTC)
commit 7072ad4b880d35b6e020ca417e1ecc3e807a2622
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Thu Nov 5 19:46:38 2009 -0500
Work on bgo#597159 - Orca does not provide access to the contents of Packagemanager's HTML container.
Override _generateAvailability for the PM script's speech generator
so that stop saying "grayed" for all links.
.../apps/packagemanager/speech_generator.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/packagemanager/speech_generator.py b/src/orca/scripts/apps/packagemanager/speech_generator.py
index 9ffdb48..5d18348 100644
--- a/src/orca/scripts/apps/packagemanager/speech_generator.py
+++ b/src/orca/scripts/apps/packagemanager/speech_generator.py
@@ -74,3 +74,15 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
result.extend(speech_generator.SpeechGenerator.\
_generateColumnHeaderIfToggleAndNoText(self, obj, **args))
return result
+
+ def _generateAvailability(self, obj, **args):
+ """Returns an array of strings for use by speech and braille that
+ represent the grayed/sensitivity/availability state of the
+ object, but only if it is insensitive (i.e., grayed out and
+ inactive). Otherwise, and empty array will be returned.
+ """
+ result = []
+ if not self._script.isLink(obj):
+ result.extend(speech_generator.SpeechGenerator.\
+ _generateAvailability(self, obj, **args))
+ return result
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]