summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-08 11:17:27 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-08 11:17:27 +0800
commit42206b463d1f14a68763b38f2b4835a5638fa845 (patch)
tree48be6509b75bcf8b64bbea7834a6d9561bff73ec
parent79529dea8225187a0ab1c0d4c87ad558760322d5 (diff)
downloadibus-libpinyin-42206b463d1f14a68763b38f2b4835a5638fa845.tar.gz
ibus-libpinyin-42206b463d1f14a68763b38f2b4835a5638fa845.tar.xz
ibus-libpinyin-42206b463d1f14a68763b38f2b4835a5638fa845.zip
fixes a typo
-rw-r--r--src/PYLibPinyin.cc3
-rw-r--r--src/PYPConfig.cc4
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);