diff options
author | Peng Wu <alexepico@gmail.com> | 2015-06-17 09:26:39 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-06-17 09:26:39 +0800 |
commit | df6f428187ff0e69660a70e9fe9e70f04f003144 (patch) | |
tree | 160ed68fbe5d1d7d27d79a841e4c6b49caa64426 /src | |
parent | e21aa4a6f06ac4c48788319ba130661277c2c2c0 (diff) | |
download | ibus-libpinyin-df6f428187ff0e69660a70e9fe9e70f04f003144.tar.gz ibus-libpinyin-df6f428187ff0e69660a70e9fe9e70f04f003144.tar.xz ibus-libpinyin-df6f428187ff0e69660a70e9fe9e70f04f003144.zip |
use pinyin_load_addon_phrase_library function
Diffstat (limited to 'src')
-rw-r--r-- | src/PYLibPinyin.cc | 7 |
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); |