summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-06-20 18:02:23 +0800
committerPeng Wu <alexepico@gmail.com>2018-06-20 18:02:23 +0800
commit02f6a064f70c3e51beec0faac437ae991b67d82d (patch)
tree7dc2d216a0b9c2f1270131a578fc3ce36d42e810
parentbe45838329507fd662914af816ff514f115dc5de (diff)
downloadibus-libpinyin-02f6a064f70c3e51beec0faac437ae991b67d82d.tar.gz
ibus-libpinyin-02f6a064f70c3e51beec0faac437ae991b67d82d.tar.xz
ibus-libpinyin-02f6a064f70c3e51beec0faac437ae991b67d82d.zip
fixes typo
-rw-r--r--src/PYPPinyinEngine.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc
index 311726a..488256a 100644
--- a/src/PYPPinyinEngine.cc
+++ b/src/PYPPinyinEngine.cc
@@ -57,12 +57,12 @@ PinyinEngine::PinyinEngine (IBusEngine *engine)
m_double_pinyin = PinyinConfig::instance ().doublePinyin ();
if (m_double_pinyin) {
- PhoneticEditor *editor = new DoublePinyinEditor
+ DoublePinyinEditor *editor = new DoublePinyinEditor
(m_props, PinyinConfig::instance ());
m_editors[MODE_INIT].reset (editor);
editor->setLuaPlugin (m_lua_plugin);
} else {
- PhoneticEditor *editor = new FullPinyinEditor
+ FullPinyinEditor *editor = new FullPinyinEditor
(m_props, PinyinConfig::instance ());
m_editors[MODE_INIT].reset (editor);
editor->setLuaPlugin (m_lua_plugin);
@@ -74,7 +74,11 @@ PinyinEngine::PinyinEngine (IBusEngine *engine)
(new RawEditor (m_props, PinyinConfig::instance ()));
#ifdef IBUS_BUILD_LUA_EXTENSION
- m_editors[MODE_EXTENSION].reset (new ExtEditor (m_props, PinyinConfig::instance ()));
+ {
+ ExtEditor *editor = new ExtEditor (m_props, PinyinConfig::instance ());
+ m_editors[MODE_EXTENSION].reset (editor);
+ editor->setLuaPlugin (m_lua_plugin);
+ }
#else
m_editors[MODE_EXTENSION].reset (new Editor (m_props, PinyinConfig::instance ()));
#endif
@@ -317,7 +321,7 @@ PinyinEngine::focusIn (void)
* or switch full/double pinyin when pinyin config is changed.*/
if (PinyinConfig::instance ().doublePinyin ()) {
if (!m_double_pinyin) {
- PhoneticEditor *editor = new DoublePinyinEditor
+ DoublePinyinEditor *editor = new DoublePinyinEditor
(m_props, PinyinConfig::instance ());
m_editors[MODE_INIT].reset (editor);
editor->setLuaPlugin (m_lua_plugin);
@@ -327,7 +331,7 @@ PinyinEngine::focusIn (void)
}
else {
if (m_double_pinyin) {
- PhoneticEditor *editor = new FullPinyinEditor
+ FullPinyinEditor *editor = new FullPinyinEditor
(m_props, PinyinConfig::instance ());
m_editors[MODE_INIT].reset (editor);
editor->setLuaPlugin (m_lua_plugin);