summaryrefslogtreecommitdiffstats
path: root/src/PYLibPinyin.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-06-17 09:26:39 +0800
committerPeng Wu <alexepico@gmail.com>2015-06-17 09:26:39 +0800
commitdf6f428187ff0e69660a70e9fe9e70f04f003144 (patch)
tree160ed68fbe5d1d7d27d79a841e4c6b49caa64426 /src/PYLibPinyin.cc
parente21aa4a6f06ac4c48788319ba130661277c2c2c0 (diff)
downloadibus-libpinyin-df6f428187ff0e69660a70e9fe9e70f04f003144.tar.gz
ibus-libpinyin-df6f428187ff0e69660a70e9fe9e70f04f003144.tar.xz
ibus-libpinyin-df6f428187ff0e69660a70e9fe9e70f04f003144.zip
use pinyin_load_addon_phrase_library function
Diffstat (limited to 'src/PYLibPinyin.cc')
-rw-r--r--src/PYLibPinyin.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc
index 9931cac..4d300a9 100644
--- a/src/PYLibPinyin.cc
+++ b/src/PYLibPinyin.cc
@@ -76,13 +76,10 @@ LibPinyinBackEnd::initPinyinContext (Config *config)
if (index <= 1)
continue;
- pinyin_load_phrase_library (context, index);
+ pinyin_load_addon_phrase_library (context, index);
}
g_strfreev (indices);
- /* load user phrase library. */
- pinyin_load_phrase_library (context, USER_DICTIONARY);
-
return context;
}
@@ -125,7 +122,7 @@ LibPinyinBackEnd::initChewingContext (Config *config)
if (index <= 1)
continue;
- pinyin_load_phrase_library (context, index);
+ pinyin_load_addon_phrase_library (context, index);
}
g_strfreev (indices);