[orca] Try to filter out more Thunderbird event spam
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Try to filter out more Thunderbird event spam
- Date: Fri, 6 Sep 2019 11:41:05 +0000 (UTC)
commit 966446e66dfc5cc003f17e4941124e0ec5155f5f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 6 13:38:10 2019 +0200
Try to filter out more Thunderbird event spam
If focus is on a folder and lots of mail comes in, we get two accessible
name change events (one for the row, one for the cell) for each and every
new message which came in. One. At. A. Time. These events are technically
not wrong, but they are really unfortunate.
src/orca/event_manager.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index 67cd06ee3..cbc513611 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -169,6 +169,8 @@ class EventManager:
if event.type.startswith('object:property-change:accessible-name'):
if role in [pyatspi.ROLE_CANVAS,
pyatspi.ROLE_ICON,
+ pyatspi.ROLE_TABLE_ROW, # Thunderbird spam
+ pyatspi.ROLE_TABLE_CELL, # Thunderbird spam
pyatspi.ROLE_MENU_ITEM]:
msg = 'EVENT MANAGER: Ignoring event type due to role'
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]