diff options
Diffstat (limited to 'src/ZYZPhoneticEditor.cc')
-rw-r--r-- | src/ZYZPhoneticEditor.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc index c01c3b8..4f036d8 100644 --- a/src/ZYZPhoneticEditor.cc +++ b/src/ZYZPhoneticEditor.cc @@ -362,6 +362,7 @@ PhoneticEditor::updateLookupTable (void) m_lookup_table.clear (); fillLookupTableByPage (); + updateLookupTableLabel (); if (m_lookup_table.size ()) { Editor::updateLookupTable (m_lookup_table, TRUE); } else { @@ -369,6 +370,19 @@ PhoneticEditor::updateLookupTable (void) } } +void +PhoneticEditor::updateLookupTableLabel (void) +{ + String labels = m_config.candidateKeys (); + + size_t len = MIN (labels.length (), m_config.pageSize ()); + for (size_t i = 0; i < len; ++i) { + String label = (gchar) labels[i]; + Text text (label); + m_lookup_table.setLabel (i, text); + } +} + gboolean PhoneticEditor::fillLookupTableByPage (void) { |