[orca] Fix for BGO#615966 - Ignore the desktop when generating Braille
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for BGO#615966 - Ignore the desktop when generating Braille
- Date: Fri, 16 Apr 2010 17:39:41 +0000 (UTC)
commit 90239009edd9bb27a11679b75ed70cf9f2bd89f0
Author: Mike Gorse <mgorse novell com>
Date: Fri Apr 16 13:37:09 2010 -0400
Fix for BGO#615966 - Ignore the desktop when generating Braille
src/orca/braille_generator.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/braille_generator.py b/src/orca/braille_generator.py
index 8f721a2..27ff747 100644
--- a/src/orca/braille_generator.py
+++ b/src/orca/braille_generator.py
@@ -204,11 +204,13 @@ class BrailleGenerator(generator.Generator):
# page tab lists might be a nice thing to include. Logged
# as bugzilla bug 319751.]]]
#
- if (parent.getRole() != pyatspi.ROLE_FILLER) \
- and (parent.getRole() != pyatspi.ROLE_SECTION) \
- and (parent.getRole() != pyatspi.ROLE_SPLIT_PANE) \
+ role = parent.getRole()
+ if (role != pyatspi.ROLE_FILLER) \
+ and (role != pyatspi.ROLE_SECTION) \
+ and (role != pyatspi.ROLE_SPLIT_PANE) \
+ and (role != pyatspi.ROLE_DESKTOP_FRAME) \
and (not self._script.isLayoutOnly(parent)):
- args['role'] = parent.getRole()
+ args['role'] = role
parentResult = self.generate(parent, **args)
# [[[TODO: HACK - we've discovered oddness in hierarchies
# such as the gedit Edit->Preferences dialog. In this
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]