summaryrefslogtreecommitdiff
path: root/misc/orca/patches/patch-ab
blob: b78893a5d0f0b134e4ab2c4dcf7b4a1c198214d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-ab,v 1.2 2007/11/05 20:02:39 drochner Exp $

--- src/orca/orca_gui_prefs.py.orig	2007-10-13 02:42:18.000000000 +0200
+++ src/orca/orca_gui_prefs.py
@@ -2952,14 +2952,15 @@ class orcaSetupGUI(orca_glade.GladeWrapp
 
         enable = self.speechSupportCheckbutton.get_active()
         self.prefsDict["enableSpeech"] = enable
-        self.prefsDict["speechServerFactory"] = \
-            self.speechSystemsChoice.__name__
-        self.prefsDict["speechServerInfo"] = self.speechServersChoice.getInfo()
-        self.prefsDict["voices"] = {
-            settings.DEFAULT_VOICE   : acss.ACSS(self.defaultVoice),
-            settings.UPPERCASE_VOICE : acss.ACSS(self.uppercaseVoice),
-            settings.HYPERLINK_VOICE : acss.ACSS(self.hyperlinkVoice)
-        }
+	if enable:
+            self.prefsDict["speechServerFactory"] = \
+                self.speechSystemsChoice.__name__
+            self.prefsDict["speechServerInfo"] = self.speechServersChoice.getInfo()
+            self.prefsDict["voices"] = {
+                settings.DEFAULT_VOICE   : acss.ACSS(self.defaultVoice),
+                settings.UPPERCASE_VOICE : acss.ACSS(self.uppercaseVoice),
+                settings.HYPERLINK_VOICE : acss.ACSS(self.hyperlinkVoice)
+            }
 
         settings.setGKSUGrabDisabled(self.disableKeyGrabPref)