[orca] Ignore (for now) text-attributes-changed signals from LibreOffice
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Ignore (for now) text-attributes-changed signals from LibreOffice
- Date: Wed, 13 Nov 2013 05:34:41 +0000 (UTC)
commit e62b45bb90544fa3aa5cb3b5935af0e3005a10fc
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Nov 13 00:29:33 2013 -0500
Ignore (for now) text-attributes-changed signals from LibreOffice
LibreOffice emits this signal nearly every time text is typed,
even though the text attributes haven't changed:
https://bugs.freedesktop.org/show_bug.cgi?id=71556
LibreOffice fails to emit this signal the main time we are looking
for it, namely to present that a misspelled word was typed:
https://bugs.freedesktop.org/show_bug.cgi?id=71558
Useless signals are useless.
src/orca/scripts/apps/soffice/script.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index ab68491..d2b9078 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -973,6 +973,20 @@ class Script(default.Script):
if weToggledIt:
speech.speak(self.speechGenerator.generateSpeech(obj))
+ def onTextAttributesChanged(self, event):
+ """Callback for object:text-attributes-changed accessibility events."""
+
+ # LibreOffice emits this signal nearly every time text is typed,
+ # even though the text attributes haven't changed:
+ # https://bugs.freedesktop.org/show_bug.cgi?id=71556
+
+ # LibreOffice fails to emit this signal the main time we are looking
+ # for it, namely to present that a misspelled word was typed:
+ # https://bugs.freedesktop.org/show_bug.cgi?id=71558
+
+ # Useless signals are useless.
+ pass
+
def getTextLineAtCaret(self, obj, offset=None):
"""Gets the line of text where the caret is. Overridden here to
handle combo boxes who have a text object with a caret offset
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]