[orca] Handle more event floods from LibreOffice and gnome-shell
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle more event floods from LibreOffice and gnome-shell
- Date: Tue, 1 Sep 2015 15:32:30 +0000 (UTC)
commit c1c007bf7bc2628dc75f96c36590944e09373b3d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Sep 1 11:30:13 2015 -0400
Handle more event floods from LibreOffice and gnome-shell
src/orca/event_manager.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index 048cae9..cb1a1d1 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -145,7 +145,7 @@ class EventManager:
role = event.source.getRole()
except:
role = None
- if role == pyatspi.ROLE_MENU_ITEM:
+ 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)
debug.println(debug.LEVEL_INFO, msg)
@@ -219,7 +219,8 @@ class EventManager:
elif isinstance(e, input_event.BrailleEvent):
data = "'%s'" % repr(e.event)
elif not debug.eventDebugFilter or debug.eventDebugFilter.match(e.type):
- data = "%s (%s,%s,%s)" % (e.source, e.detail1, e.detail2, e.any_data)
+ data = "%s (%s,%s,%s) from %s" % \
+ (e.source, e.detail1, e.detail2, e.any_data, e.host_application)
else:
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]