[orca] Always ignore events from ROLE_FILLER
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Always ignore events from ROLE_FILLER
- Date: Wed, 18 Nov 2015 21:55:40 +0000 (UTC)
commit ed2cdc24460cf5af51acefa26eb4cf14b190355c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Nov 18 16:53:05 2015 -0500
Always ignore events from ROLE_FILLER
src/orca/event_manager.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index fd73f70..831083b 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -138,6 +138,7 @@ class EventManager:
# issue, but until we know for certain....
#name = event.source.name
state = event.source.getState()
+ role = event.source.getRole()
except:
msg = 'ERROR: %s from potentially-defunct source %s in app %s (%s, %s, %s)' % \
(event.type, event.source, event.host_application, event.detail1,
@@ -151,11 +152,12 @@ class EventManager:
debug.println(debug.LEVEL_INFO, msg)
return True
+ if role in [pyatspi.ROLE_FILLER]:
+ msg = 'INFO: Ignoring because events from this role are ignored'
+ debug.println(debug.LEVEL_INFO, msg)
+ return True
+
if event.type.startswith('object:state-changed:showing'):
- try:
- role = event.source.getRole()
- except:
- role = None
if role in [pyatspi.ROLE_IMAGE, pyatspi.ROLE_MENU_ITEM, pyatspi.ROLE_PARAGRAPH]:
msg = 'INFO: %s for %s in app %s. Who cares?' % \
(event.type, event.source, event.host_application)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]