[orca] Fix double-presentation of top-level Gtk+ alerts



commit 1532029c3eb8635588ead965f52a7a24d225ce99
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Dec 1 13:53:04 2015 -0500

    Fix double-presentation of top-level Gtk+ alerts

 src/orca/scripts/toolkits/gtk/script.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/gtk/script.py b/src/orca/scripts/toolkits/gtk/script.py
index 7e16a42..4445056 100644
--- a/src/orca/scripts/toolkits/gtk/script.py
+++ b/src/orca/scripts/toolkits/gtk/script.py
@@ -214,6 +214,8 @@ class Script(default.Script):
         obj = event.source
         if self.utilities._isNonModalPopOver(obj) \
            or obj.getRole() in [pyatspi.ROLE_ALERT, pyatspi.ROLE_INFO_BAR]:
+            if obj.parent and obj.parent.getRole() == pyatspi.ROLE_APPLICATION:
+                return
             self.presentObject(event.source)
             return
 


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