orca r3845 - in branches/gnome-2-22: . src/orca



Author: wwalker
Date: Thu Apr 24 19:15:08 2008
New Revision: 3845
URL: http://svn.gnome.org/viewvc/orca?rev=3845&view=rev

Log:
Fix for bug #528797 - gnome-speech inappropriately uses g_return_if_fail


Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/orca/gnomespeechfactory.py

Modified: branches/gnome-2-22/src/orca/gnomespeechfactory.py
==============================================================================
--- branches/gnome-2-22/src/orca/gnomespeechfactory.py	(original)
+++ branches/gnome-2-22/src/orca/gnomespeechfactory.py	Thu Apr 24 19:15:08 2008
@@ -453,12 +453,16 @@
 
         speaker = _Speaker(s._narrow(GNOME.Speech.Speaker))
 
-        # Turn off punctuation if the speaker allows us to do so.  We
-        # do this because we want to handle spoken punctuation on our
-        # own.
+        # Turn off punctuation.  We do this because we want to handle
+        # spoken punctuation on our own.  Only do so if "punctuation mode" 
+        # is available (see # bug #528797).
         #
         try:
-            speaker.setParameterValue("punctuation mode", 0.0)
+            parameters = speaker.getSupportedParameters()
+            for parameter in parameters:
+                if parameter.name == "punctuation mode":
+                    speaker.setParameterValue("punctuation mode", 0.0)
+                    break
         except:
             pass
 



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