diff options
| author | Peng Huang <shawn.p.huang@gmail.com> | 2010-04-24 15:31:13 +0800 |
|---|---|---|
| committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-04-24 15:31:13 +0800 |
| commit | c9d7cd3ce501e7134692c51b3ba42e2eb079b312 (patch) | |
| tree | 69d1262d03269153c0dfb6835a5f78ac3663ae45 /src/FallbackEditor.h | |
| parent | 0bb27ab4b07716102e7c86c103a88476e74335f1 (diff) | |
| download | ibus-libpinyin-c9d7cd3ce501e7134692c51b3ba42e2eb079b312.tar.gz ibus-libpinyin-c9d7cd3ce501e7134692c51b3ba42e2eb079b312.tar.xz ibus-libpinyin-c9d7cd3ce501e7134692c51b3ba42e2eb079b312.zip | |
Fix half and full punch problem
Diffstat (limited to 'src/FallbackEditor.h')
| -rw-r--r-- | src/FallbackEditor.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/FallbackEditor.h b/src/FallbackEditor.h index 799740f..de2a691 100644 --- a/src/FallbackEditor.h +++ b/src/FallbackEditor.h @@ -13,29 +13,30 @@ public: : Editor (props), m_quote (TRUE), m_double_quote (TRUE), - m_prev_commited_char (0) {} + m_prev_committed_char (0) {} gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers); void reset (void); + void setPrevCommittedChar (gunichar ch) { + m_prev_committed_char = ch; + } + private: void commit (gchar ch) { gchar str[2] = {ch, 0}; StaticText text (str); commitText (text); - m_prev_commited_char = ch; } void commit (gunichar ch) { Text text (ch); commitText (text); - m_prev_commited_char = ch; } void commit (const gchar *str) { StaticText text (str); commitText (text); - m_prev_commited_char = 0; } void commit (const String &str) { @@ -47,7 +48,7 @@ private: private: gboolean m_quote; gboolean m_double_quote; - gunichar m_prev_commited_char; + gunichar m_prev_committed_char; }; |
