summaryrefslogtreecommitdiffstats
path: root/src/PYPDoublePinyinEditor.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2019-12-19 14:59:39 +0800
committerPeng Wu <alexepico@gmail.com>2019-12-19 14:59:39 +0800
commitde84d3eb000e333d9bd4b1d6a3d40c9040ca8bad (patch)
tree811c24f376a6b53a436d2579d6dd9a77922b26f8 /src/PYPDoublePinyinEditor.cc
parent584cdae8db5b3b64063ce692f431b1945e1e13e4 (diff)
downloadibus-libpinyin-de84d3eb000e333d9bd4b1d6a3d40c9040ca8bad.tar.gz
ibus-libpinyin-de84d3eb000e333d9bd4b1d6a3d40c9040ca8bad.tar.xz
ibus-libpinyin-de84d3eb000e333d9bd4b1d6a3d40c9040ca8bad.zip
support display style option
Diffstat (limited to 'src/PYPDoublePinyinEditor.cc')
-rw-r--r--src/PYPDoublePinyinEditor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/PYPDoublePinyinEditor.cc b/src/PYPDoublePinyinEditor.cc
index db55b65..f0cfd07 100644
--- a/src/PYPDoublePinyinEditor.cc
+++ b/src/PYPDoublePinyinEditor.cc
@@ -137,5 +137,8 @@ DoublePinyinEditor::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);
}