[orca] Fix for bug #627216 - Orca not brailling messages received via notify-osd



commit d3a64ec549e3e41b33069ad692a569424e30c730
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Thu Aug 19 13:49:16 2010 -0400

    Fix for bug #627216 - Orca not brailling messages received via notify-osd

 src/orca/scripts/apps/notify-osd/script.py |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/scripts/apps/notify-osd/script.py b/src/orca/scripts/apps/notify-osd/script.py
index 8709d25..c7fc49a 100644
--- a/src/orca/scripts/apps/notify-osd/script.py
+++ b/src/orca/scripts/apps/notify-osd/script.py
@@ -60,7 +60,8 @@ class Script(default.Script):
 
         if value >= 0:
             speech.speak(str(value), None, True)
-            
+            self.displayBrailleMessage("%s" % value,
+                                       flashTime=settings.brailleFlashTime)
 
     def onWindowCreate(self, event):
         """Called whenever a window is created in the notify-osd
@@ -76,20 +77,23 @@ class Script(default.Script):
             value = -1
             
         utterances = []
+        message = ""
         if value < 0:
             # Translators: This denotes a notification to the user of some sort.
             #
             utterances.append(_('Notification'))
             utterances.append(self.voices.get(settings.SYSTEM_VOICE))
-            utterances.append('%s %s' \
-                              % (event.source.name, event.source.description))
+            message = '%s %s' % (event.source.name, event.source.description)
+            utterances.append(message)
             utterances.append(self.voices.get(settings.DEFAULT_VOICE))
         else:
             # A gauge notification, e.g. the Ubuntu volume notification that
             # appears when you press the multimedia keys.
             #
-            utterances.append('%s %d' % (event.source.name, value))
+            message = '%s %d' % (event.source.name, value)
+            utterances.append(message)
             utterances.append(self.voices.get(settings.SYSTEM_VOICE))
         
         speech.speak(utterances, None, True)
+        self.displayBrailleMessage(message, flashTime=settings.brailleFlashTime)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]