fixes a typo
authorPeng Wu <alexepico@gmail.com>
Fri, 8 Feb 2013 03:17:27 +0000 (11:17 +0800)
committerPeng Wu <alexepico@gmail.com>
Fri, 8 Feb 2013 03:17:27 +0000 (11:17 +0800)
src/PYLibPinyin.cc
src/PYPConfig.cc

index 285e52c..0553ec2 100644 (file)
@@ -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)
 {
index 6a70539..f66b542 100644 (file)
@@ -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);