[orca] Do not automatically present toggle-button state changes in LibreOffice



commit e08186af25f3024744634362494db75ddc3599c5
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Feb 3 08:22:12 2014 -0500

    Do not automatically present toggle-button state changes in LibreOffice

 src/orca/scripts/apps/soffice/script.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index f10458a..1eb076c 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -954,7 +954,9 @@ class Script(default.Script):
 
         obj = event.source
         role = obj.getRole()
-        if not role in [pyatspi.ROLE_TOGGLE_BUTTON, pyatspi.ROLE_PUSH_BUTTON]:
+        parentRole = obj.parent.getRole()
+        if not role in [pyatspi.ROLE_TOGGLE_BUTTON, pyatspi.ROLE_PUSH_BUTTON] \
+           or not parentRole == pyatspi.ROLE_TOOL_BAR:
             default.Script.onCheckedChanged(self, event)
             return
  


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]