[orca] Treat redundant named frames as layout only
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Treat redundant named frames as layout only
- Date: Mon, 15 Jan 2018 15:15:39 +0000 (UTC)
commit 74604f4b0856cfddc08569414b176984c2e2f3f0
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jan 15 10:14:35 2018 -0500
Treat redundant named frames as layout only
src/orca/scripts/apps/soffice/script_utilities.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script_utilities.py
b/src/orca/scripts/apps/soffice/script_utilities.py
index efc83ef..3bb7ee3 100644
--- a/src/orca/scripts/apps/soffice/script_utilities.py
+++ b/src/orca/scripts/apps/soffice/script_utilities.py
@@ -261,6 +261,15 @@ class Utilities(script_utilities.Utilities):
if parentRole == pyatspi.ROLE_COMBO_BOX:
return True
+ if role == pyatspi.ROLE_FRAME and name:
+ try:
+ windowName = orca_state.activeWindow.name
+ except:
+ msg = "SOFFICE: Exception getting name of active window"
+ debug.println(debug.LEVEL_INFO, msg, True)
+ else:
+ return name == windowName
+
return super().isLayoutOnly(obj)
def isAnInputLine(self, obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]