diff options
author | Peng Wu <alexepico@gmail.com> | 2019-12-19 14:59:39 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2019-12-19 14:59:39 +0800 |
commit | de84d3eb000e333d9bd4b1d6a3d40c9040ca8bad (patch) | |
tree | 811c24f376a6b53a436d2579d6dd9a77922b26f8 /src/PYPBopomofoEditor.cc | |
parent | 584cdae8db5b3b64063ce692f431b1945e1e13e4 (diff) | |
download | ibus-libpinyin-de84d3eb000e333d9bd4b1d6a3d40c9040ca8bad.tar.gz ibus-libpinyin-de84d3eb000e333d9bd4b1d6a3d40c9040ca8bad.tar.xz ibus-libpinyin-de84d3eb000e333d9bd4b1d6a3d40c9040ca8bad.zip |
support display style option
Diffstat (limited to 'src/PYPBopomofoEditor.cc')
-rw-r--r-- | src/PYPBopomofoEditor.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc index 55eb130..9e27dfa 100644 --- a/src/PYPBopomofoEditor.cc +++ b/src/PYPBopomofoEditor.cc @@ -342,6 +342,9 @@ BopomofoEditor::commit (const gchar *str) void BopomofoEditor::updatePreeditText () { + if (DISPLAY_STYLE_COMPACT == m_config.displayStyle ()) + return; + guint num = 0; pinyin_get_n_candidate (m_instance, &num); @@ -413,6 +416,9 @@ BopomofoEditor::updateAuxiliaryText (void) m_buffer << p; StaticText text (m_buffer); - Editor::updateAuxiliaryText (text, TRUE); + if (DISPLAY_STYLE_TRADITIONAL == m_config.displayStyle ()) + Editor::updateAuxiliaryText (text, TRUE); + if (DISPLAY_STYLE_COMPACT == m_config.displayStyle ()) + Editor::updatePreeditText (text, 0, TRUE); } |