[orca] Try to handle error from mate-notification-daemon during window:create
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Try to handle error from mate-notification-daemon during window:create
- Date: Mon, 17 Jan 2022 13:47:51 +0000 (UTC)
commit df7f57a48a625c403149a4cba24b793a15889846
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jan 17 14:44:34 2022 +0100
Try to handle error from mate-notification-daemon during window:create
The notification-daemon script was using pyatspi's findAllDescendants()
utility rather than Orca's own which is more efficient and also handles
errors that pyatspi's utility fails to handle.
src/orca/scripts/apps/notification-daemon/script.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/apps/notification-daemon/script.py
b/src/orca/scripts/apps/notification-daemon/script.py
index 8f5bff876..8ea364d24 100644
--- a/src/orca/scripts/apps/notification-daemon/script.py
+++ b/src/orca/scripts/apps/notification-daemon/script.py
@@ -44,7 +44,7 @@ class Script(default.Script):
"""Callback for window:create accessibility events."""
hasRole = lambda x: x and x.getRole() == pyatspi.ROLE_LABEL
- allLabels = pyatspi.findAllDescendants(event.source, hasRole)
+ allLabels = self.utilities.findAllDescendants(event.source, hasRole)
texts = [self.utilities.displayedText(acc) for acc in allLabels]
text = '%s %s' % (messages.NOTIFICATION, ' '.join(texts))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]