From 69f50424ba5be49c4b31543df7bd7970361d4753 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 10 Oct 2013 15:48:29 +0800 Subject: support setContentType method --- src/PYPPinyinEngine.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/PYPPinyinEngine.h') diff --git a/src/PYPPinyinEngine.h b/src/PYPPinyinEngine.h index a7e0e12..9954569 100644 --- a/src/PYPPinyinEngine.h +++ b/src/PYPPinyinEngine.h @@ -35,6 +35,9 @@ public: gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers); void focusIn (void); void focusOut (void); +#if IBUS_CHECK_VERSION (1, 5, 4) + void setContentType (guint purpose, guint hints); +#endif void reset (void); void enable (void); void disable (void); @@ -56,6 +59,10 @@ private: private: PinyinProperties m_props; +#if IBUS_CHECK_VERSION (1, 5, 4) + IBusInputPurpose m_input_purpose; +#endif + guint m_prev_pressed_key; enum { -- cgit