[orca] Treat the combobox name as the label when there is no displayed label
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Treat the combobox name as the label when there is no displayed label
- Date: Mon, 31 Jul 2017 18:03:11 +0000 (UTC)
commit a598a0424ad9c5531a213fddb1988aef091668ef
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Jul 31 14:02:24 2017 -0400
Treat the combobox name as the label when there is no displayed label
src/orca/scripts/apps/soffice/speech_generator.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/speech_generator.py
b/src/orca/scripts/apps/soffice/speech_generator.py
index a4453c3..ce849bb 100644
--- a/src/orca/scripts/apps/soffice/speech_generator.py
+++ b/src/orca/scripts/apps/soffice/speech_generator.py
@@ -129,7 +129,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
# TODO - JD: This should be the behavior by default because many
# toolkits use the label for the name.
result = []
- label = self._script.utilities.displayedLabel(obj)
+ label = self._script.utilities.displayedLabel(obj) or obj.name
if label:
result.append(label)
result.extend(self.voice(speech_generator.DEFAULT))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]