diff options
| author | Peng Wu <alexepico@gmail.com> | 2019-12-19 14:59:53 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2019-12-19 14:59:53 +0800 |
| commit | 2b2fdb2a1d948eab46fdca289fd5f579af078ff8 (patch) | |
| tree | b90876b1a1d201b6f9aee12a863b483bd4c0dd5f /src | |
| parent | dca9d262c84ee234f2be75b8589d666aece3dd06 (diff) | |
fixes compact display style
Diffstat (limited to 'src')
| -rw-r--r-- | src/PYPBopomofoEditor.cc | 5 | ||||
| -rw-r--r-- | src/PYPDoublePinyinEditor.cc | 5 | ||||
| -rw-r--r-- | src/PYPFullPinyinEditor.cc | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc index 9e27dfa..dafc3cc 100644 --- a/src/PYPBopomofoEditor.cc +++ b/src/PYPBopomofoEditor.cc @@ -400,7 +400,10 @@ void BopomofoEditor::updateAuxiliaryText (void) { if (G_UNLIKELY (m_text.empty ())) { - hideAuxiliaryText (); + if (DISPLAY_STYLE_TRADITIONAL == m_config.displayStyle ()) + hideAuxiliaryText (); + if (DISPLAY_STYLE_COMPACT == m_config.displayStyle ()) + hidePreeditText (); return; } diff --git a/src/PYPDoublePinyinEditor.cc b/src/PYPDoublePinyinEditor.cc index f0cfd07..0e4b56c 100644 --- a/src/PYPDoublePinyinEditor.cc +++ b/src/PYPDoublePinyinEditor.cc @@ -121,7 +121,10 @@ void DoublePinyinEditor::updateAuxiliaryText (void) { if (G_UNLIKELY (m_text.empty ())) { - hideAuxiliaryText (); + if (DISPLAY_STYLE_TRADITIONAL == m_config.displayStyle ()) + hideAuxiliaryText (); + if (DISPLAY_STYLE_COMPACT == m_config.displayStyle ()) + hidePreeditText (); return; } diff --git a/src/PYPFullPinyinEditor.cc b/src/PYPFullPinyinEditor.cc index c8d930e..8fca7f9 100644 --- a/src/PYPFullPinyinEditor.cc +++ b/src/PYPFullPinyinEditor.cc @@ -87,7 +87,10 @@ void FullPinyinEditor::updateAuxiliaryText (void) { if (G_UNLIKELY (m_text.empty ())) { - hideAuxiliaryText (); + if (DISPLAY_STYLE_TRADITIONAL == m_config.displayStyle ()) + hideAuxiliaryText (); + if (DISPLAY_STYLE_COMPACT == m_config.displayStyle ()) + hidePreeditText (); return; } |
