summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-03-15 09:38:25 +0800
committerPeng Wu <alexepico@gmail.com>2013-03-15 09:38:25 +0800
commitee79a7dcfbf7a9d32802e5555eceeaf7db485bff (patch)
treea9f6e1f82e04af8c731b5aba9ba371f830567a60
parent331f4f497389679fa076cccf603c82b697b993d1 (diff)
downloadibus-libpinyin-ee79a7dcfbf7a9d32802e5555eceeaf7db485bff.tar.gz
change config key name
-rw-r--r--setup/main2.py4
-rw-r--r--src/PYPConfig.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/setup/main2.py b/setup/main2.py
index 3b6ea85..ecf3228 100644
--- a/setup/main2.py
+++ b/setup/main2.py
@@ -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("Dictionaries", "2;4;5;6;7;8;9;10;11;12;13"))
+ self.__dict_treeview.set_dictionaries(self.__get_value("EnabledDictionaries", "2;4;5;6;7;8;9;10;11;12;13"))
def __notified_dicts_cb(self, param, dialog):
- dialog.__set_value("Dictionaries", self.get_dictionaries())
+ dialog.__set_value("EnabledDictionaries", self.get_dictionaries())
# connect notify signal
self.__dict_treeview.connect("notify::dictionaries", __notified_dicts_cb, self)
diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc
index 9bf8b82..4925a48 100644
--- a/src/PYPConfig.cc
+++ b/src/PYPConfig.cc
@@ -46,7 +46,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 = "Dictionaries";
+const gchar * const CONFIG_DICTIONARIES = "EnabledDictionaries";
const gchar * const CONFIG_BOPOMOFO_KEYBOARD_MAPPING = "BopomofoKeyboardMapping";
const gchar * const CONFIG_SELECT_KEYS = "SelectKeys";
const gchar * const CONFIG_GUIDE_KEY = "GuideKey";