Revert "change config key name"
authorPeng Wu <alexepico@gmail.com>
Sun, 21 Apr 2013 04:24:36 +0000 (12:24 +0800)
committerPeng Wu <alexepico@gmail.com>
Sun, 21 Apr 2013 04:24:36 +0000 (12:24 +0800)
This reverts commit ee79a7dcfbf7a9d32802e5555eceeaf7db485bff.

setup/main2.py
src/PYPConfig.cc

index ecf3228..3b6ea85 100644 (file)
@@ -343,10 +343,10 @@ class PreferencesDialog:
         # dictionary tree view
         self.__dict_treeview = self.__builder.get_object("Dictionaries")
         self.__dict_treeview.show()
-        self.__dict_treeview.set_dictionaries(self.__get_value("EnabledDictionaries", "2;4;5;6;7;8;9;10;11;12;13"))
+        self.__dict_treeview.set_dictionaries(self.__get_value("Dictionaries", "2;4;5;6;7;8;9;10;11;12;13"))
 
         def __notified_dicts_cb(self, param, dialog):
-            dialog.__set_value("EnabledDictionaries", self.get_dictionaries())
+            dialog.__set_value("Dictionaries", self.get_dictionaries())
 
         # connect notify signal
         self.__dict_treeview.connect("notify::dictionaries", __notified_dicts_cb, self)
index 0632ea8..197f3b6 100644 (file)
@@ -45,7 +45,7 @@ const gchar * const CONFIG_INIT_FULL                 = "InitFull";
 const gchar * const CONFIG_INIT_FULL_PUNCT           = "InitFullPunct";
 const gchar * const CONFIG_INIT_SIMP_CHINESE         = "InitSimplifiedChinese";
 const gchar * const CONFIG_SPECIAL_PHRASES           = "SpecialPhrases";
-const gchar * const CONFIG_DICTIONARIES              = "EnabledDictionaries";
+const gchar * const CONFIG_DICTIONARIES              = "Dictionaries";
 const gchar * const CONFIG_BOPOMOFO_KEYBOARD_MAPPING = "BopomofoKeyboardMapping";
 const gchar * const CONFIG_SELECT_KEYS               = "SelectKeys";
 const gchar * const CONFIG_GUIDE_KEY                 = "GuideKey";