[orca] Fix for bgo#618291 - Orca fails to present the title bar, status bar, and default button in braille
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#618291 - Orca fails to present the title bar, status bar, and default button in braille
- Date: Mon, 10 May 2010 18:16:32 +0000 (UTC)
commit d29e77d03d80c91331cec9238240d2b3c85f106a
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Mon May 10 14:15:29 2010 -0400
Fix for bgo#618291 - Orca fails to present the title bar, status bar, and default button in braille
src/orca/default.py | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/orca/default.py b/src/orca/default.py
index a6ab289..a13a5a9 100644
--- a/src/orca/default.py
+++ b/src/orca/default.py
@@ -2751,18 +2751,21 @@ class Script(script.Script):
# speak the status bar info immediately and then go looking
# for a default button.
#
- speech.speak(self.speechGenerator.generateStatusBar(frame))
+ msg = self.speechGenerator.generateStatusBar(frame)
+ if msg:
+ self.presentMessage(msg)
+
window = dialog or frame
if window:
- speech.speak(self.speechGenerator.generateDefaultButton(window))
+ msg = self.speechGenerator.generateDefaultButton(window)
+ if msg:
+ self.presentMessage(msg)
def presentTitle(self, inputEvent):
- """Speaks and brailles the title of the window with focus.
- """
+ """Speaks and brailles the title of the window with focus."""
- obj = orca_state.locusOfFocus
- self.updateBraille(obj)
- speech.speak(self.speechGenerator.generateTitle(obj))
+ self.presentMessage(self.speechGenerator.generateTitle(
+ orca_state.locusOfFocus))
def readCharAttributes(self, inputEvent=None):
"""Reads the attributes associated with the current text character.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]