[orca] Fix double-presentation of top-level Gtk+ alerts
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix double-presentation of top-level Gtk+ alerts
- Date: Tue, 1 Dec 2015 18:55:26 +0000 (UTC)
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]