summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am2
-rw-r--r--src/ZYZZhuyinEditor.cc14
2 files changed, 7 insertions, 9 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 996584c..25fc2a3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -37,6 +37,7 @@ ibus_engine_libzhuyin_c_sources = \
ZYEnhancedText.cc \
ZYZEnhancedEditor.cc \
ZYZPhoneticEditor.cc \
+ ZYZZhuyinEditor.cc \
ZYSymbols.cc \
ZYZBuiltinSymbolSection.cc \
ZYZPhoneticSection.cc \
@@ -56,6 +57,7 @@ ibus_engine_libzhuyin_h_sources = \
ZYEnhancedText.h \
ZYZEnhancedEditor.h \
ZYZPhoneticEditor.h \
+ ZYZZhuyinEditor.h \
ZYSymbols.h \
ZYZSymbolSection.h \
ZYZBuiltinSymbolSection.h \
diff --git a/src/ZYZZhuyinEditor.cc b/src/ZYZZhuyinEditor.cc
index 5892918..20671c8 100644
--- a/src/ZYZZhuyinEditor.cc
+++ b/src/ZYZZhuyinEditor.cc
@@ -20,8 +20,12 @@
*/
#include "ZYZZhuyinEditor.h"
+#include <assert.h>
#include "ZYConfig.h"
#include "ZYLibZhuyin.h"
+#include "ZYZhuyinProperties.h"
+#include "ZYTradSimpConverter.h"
+#include "ZYEnhancedText.h"
using namespace ZY;
@@ -133,7 +137,7 @@ ZhuyinEditor::updatePreeditText (void)
char sym = section[i];
gchar ** symbols = NULL;
/* append bopomofo symbol except for DaChen26. */
- assert (zhuyin_in_chewing_keyboard (m_instance, sym, symbols));
+ assert (zhuyin_in_chewing_keyboard (m_instance, sym, &symbols));
assert (NULL != symbols[0]);
m_preedit_text += symbols[0];
g_strfreev (symbols);
@@ -167,11 +171,3 @@ ZhuyinEditor::updatePreeditText (void)
Editor::updatePreeditText (preedit_text, cursor, TRUE);
return;
}
-
-void
-ZhuyinEditor::update (void)
-{
- updateLookupTable ();
- updatePreeditText ();
- updateAuxiliaryText ();
-}