diff options
author | Peng Wu <alexepico@gmail.com> | 2018-06-15 11:52:36 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-06-15 11:52:36 +0800 |
commit | 1cc1fe8b7b7d70e611f3e74d56cca8f1c837ed4e (patch) | |
tree | 4afa5dc7bd79e0f45ee8ec0dd3ad0abec2a5bd18 /src/PYPPinyinEngine.cc | |
parent | 766a1322395e32286930a62b9f66033a0d8d637c (diff) | |
download | ibus-libpinyin-1cc1fe8b7b7d70e611f3e74d56cca8f1c837ed4e.tar.gz ibus-libpinyin-1cc1fe8b7b7d70e611f3e74d56cca8f1c837ed4e.tar.xz ibus-libpinyin-1cc1fe8b7b7d70e611f3e74d56cca8f1c837ed4e.zip |
use IBUS_BUILD_LUA_EXTENSION
Diffstat (limited to 'src/PYPPinyinEngine.cc')
-rw-r--r-- | src/PYPPinyinEngine.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc index ca118b5..324ebe3 100644 --- a/src/PYPPinyinEngine.cc +++ b/src/PYPPinyinEngine.cc @@ -37,6 +37,7 @@ #include "PYPFullPinyinEditor.h" #include "PYPDoublePinyinEditor.h" #include "PYFallbackEditor.h" +#include "PYPSuggestionEditor.h" using namespace PY; @@ -80,6 +81,9 @@ PinyinEngine::PinyinEngine (IBusEngine *engine) m_editors[MODE_STROKE].reset (new Editor (m_props, PinyinConfig::instance ())); #endif + m_editors[MODE_SUGGESTION].reset + (new SuggestionEditor (m_props, PinyinConfig::instance ())); + m_props.signalUpdateProperty ().connect (std::bind (&PinyinEngine::updateProperty, this, _1)); |