[orca] Attempt to handle children-changed:add event flood from menus
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Attempt to handle children-changed:add event flood from menus
- Date: Sat, 11 Mar 2017 19:03:12 +0000 (UTC)
commit e9740d7221fcc7b090f5e33ddca8fd007aa3b3c7
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Mar 11 13:59:23 2017 -0500
Attempt to handle children-changed:add event flood from menus
src/orca/event_manager.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index 63088bd..89f767e 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -165,6 +165,14 @@ class EventManager:
debug.println(debug.LEVEL_INFO, msg, True)
return True
+
+ if event.type.startswith('object:children-changed:add'):
+ if role in [pyatspi.ROLE_MENU,
+ pyatspi.ROLE_MENU_ITEM]:
+ msg = 'EVENT MANAGER: Ignoring event type due to role'
+ debug.println(debug.LEVEL_INFO, msg, True)
+ return True
+
if event.type.startswith('object:state-changed:sensitive'):
if role in [pyatspi.ROLE_MENU_ITEM,
pyatspi.ROLE_CHECK_MENU_ITEM,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]