diff options
author | Peng Wu <alexepico@gmail.com> | 2013-02-08 11:17:27 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-02-08 11:17:27 +0800 |
commit | 42206b463d1f14a68763b38f2b4835a5638fa845 (patch) | |
tree | 48be6509b75bcf8b64bbea7834a6d9561bff73ec /src | |
parent | 79529dea8225187a0ab1c0d4c87ad558760322d5 (diff) | |
download | ibus-libpinyin-42206b463d1f14a68763b38f2b4835a5638fa845.tar.gz ibus-libpinyin-42206b463d1f14a68763b38f2b4835a5638fa845.tar.xz ibus-libpinyin-42206b463d1f14a68763b38f2b4835a5638fa845.zip |
fixes a typo
Diffstat (limited to 'src')
-rw-r--r-- | src/PYLibPinyin.cc | 3 | ||||
-rw-r--r-- | src/PYPConfig.cc | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc index 285e52c..0553ec2 100644 --- a/src/PYLibPinyin.cc +++ b/src/PYLibPinyin.cc @@ -242,7 +242,7 @@ LibPinyinBackEnd::modified (void) gboolean LibPinyinBackEnd::importPinyinDictionary(const char * filename) { - /* user phrase library should be loaded here. */ + /* user phrase library should be already loaded here. */ FILE * dictfile = fopen(filename, "r"); if (NULL == dictfile) return FALSE; @@ -282,7 +282,6 @@ LibPinyinBackEnd::importPinyinDictionary(const char * filename) fclose(dictfile); } - gboolean LibPinyinBackEnd::clearPinyinUserData (const char * target) { diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc index 6a70539..f66b542 100644 --- a/src/PYPConfig.cc +++ b/src/PYPConfig.cc @@ -140,10 +140,10 @@ LibPinyinConfig::readDefaultValues (void) g_variant_iter_init (&iter, values); while (g_variant_iter_next (&iter, "{sv}", &name, &value)) { /* skip signals here. */ - if (0 == strcmp(CONFIG_CLEAR_USER_DATA, name)) + if (0 == strcmp(CONFIG_IMPORT_DICTIONARY, name)) continue; - if (0 == strcmp(CONFIG_IMPORT_DICTIONARY, name)) + if (0 == strcmp(CONFIG_CLEAR_USER_DATA, name)) continue; valueChanged (m_section, name, value); |