[orca/new-settings] Changed the regular dictionary for storing the pronunciations by the pronunciation_dict one
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Changed the regular dictionary for storing the pronunciations by the pronunciation_dict one
- Date: Wed, 27 Oct 2010 03:39:03 +0000 (UTC)
commit 099b7505b54aa6a1339a24f068d4a81829780f4a
Author: Juanje Ojeda <jojeda emergya es>
Date: Wed Oct 27 05:36:51 2010 +0200
Changed the regular dictionary for storing the pronunciations by
the pronunciation_dict one
src/orca/orca_gui_prefs.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index acf60ce..37e742d 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -2304,13 +2304,14 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
def getModelDict(self, model):
"""Get the list of values from a list[str,str] model
"""
- modelDict = {}
+ pronunciation_dict.pronunciation_dict = {}
currentIter = model.get_iter_first()
while currentIter is not None:
key, value = model.get(currentIter, ACTUAL, REPLACEMENT)
if key and value:
- modelDict[key] = value
+ pronunciation_dict.setPronunciation(key, value)
currentIter = model.iter_next(currentIter)
+ modelDict = pronunciation_dict.pronunciation_dict
return modelDict
def showGUI(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]