diff options
author | Peng Wu <alexepico@gmail.com> | 2011-10-08 10:37:40 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-22 12:23:13 +0800 |
commit | 4f6d9fdb5723b7d9141524dfcb3c049ee37a2ed7 (patch) | |
tree | e80ee12e95b43508233d5c3caee9d2f593700e49 /src/PYPPhoneticEditor.cc | |
parent | 4f1d32d049a3769fb09b43dc130353a1f1b8766b (diff) | |
download | ibus-libpinyin-4f6d9fdb5723b7d9141524dfcb3c049ee37a2ed7.tar.gz ibus-libpinyin-4f6d9fdb5723b7d9141524dfcb3c049ee37a2ed7.tar.xz ibus-libpinyin-4f6d9fdb5723b7d9141524dfcb3c049ee37a2ed7.zip |
fixes full editor
Diffstat (limited to 'src/PYPPhoneticEditor.cc')
-rw-r--r-- | src/PYPPhoneticEditor.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PYPPhoneticEditor.cc b/src/PYPPhoneticEditor.cc index 6fde250..14773a7 100644 --- a/src/PYPPhoneticEditor.cc +++ b/src/PYPPhoneticEditor.cc @@ -32,6 +32,7 @@ LibPinyinPhoneticEditor::LibPinyinPhoneticEditor (PinyinProperties &props, m_pinyin_len (0), m_lookup_table (m_config.pageSize ()) { + m_candidates = g_array_new(FALSE, TRUE, sizeof(phrase_token_t)); } gboolean @@ -281,6 +282,8 @@ LibPinyinPhoneticEditor::reset (void) void LibPinyinPhoneticEditor::update (void) { + guint pinyin_cursor = getPinyinCursor (); + pinyin_get_candidates (m_instance, pinyin_cursor, m_candidates); updateLookupTable (); updatePreeditText (); updateAuxiliaryText (); |