diff options
author | Peng Wu <alexepico@gmail.com> | 2014-04-10 15:25:42 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-04-10 15:25:42 +0800 |
commit | 9fea44f3726e1cc606bc09c23c4fb9a0ffd0cbfb (patch) | |
tree | 8cf6e02879c40b07346327a8aff5386b221a2a2e /src | |
parent | e0862317264a4c117caee7e7151b7e4d9e9bcc65 (diff) | |
download | ibus-libpinyin-9fea44f3726e1cc606bc09c23c4fb9a0ffd0cbfb.tar.gz ibus-libpinyin-9fea44f3726e1cc606bc09c23c4fb9a0ffd0cbfb.tar.xz ibus-libpinyin-9fea44f3726e1cc606bc09c23c4fb9a0ffd0cbfb.zip |
use type pinyin_option_t
Diffstat (limited to 'src')
-rw-r--r-- | src/PYConfig.h | 6 | ||||
-rw-r--r-- | src/PYPConfig.cc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/PYConfig.h b/src/PYConfig.h index 8cfc148..6201a7f 100644 --- a/src/PYConfig.h +++ b/src/PYConfig.h @@ -41,7 +41,7 @@ protected: public: std::string dictionaries (void) const { return m_dictionaries; } - guint option (void) const { return m_option & m_option_mask; } + pinyin_option_t option (void) const { return m_option & m_option_mask; } guint orientation (void) const { return m_orientation; } guint pageSize (void) const { return m_page_size; } gboolean ctrlSwitch(void) const { return m_ctrl_switch; } @@ -84,8 +84,8 @@ private: protected: std::string m_section; std::string m_dictionaries; - guint m_option; - guint m_option_mask; + pinyin_option_t m_option; + pinyin_option_t m_option_mask; gint m_orientation; guint m_page_size; diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc index 7649f35..3174d67 100644 --- a/src/PYPConfig.cc +++ b/src/PYPConfig.cc @@ -55,7 +55,7 @@ const gchar * const CONFIG_ENTER_KEY = "EnterKey"; const gchar * const CONFIG_IMPORT_DICTIONARY = "ImportDictionary"; const gchar * const CONFIG_CLEAR_USER_DATA = "ClearUserData"; -const guint PINYIN_DEFAULT_OPTION = +const pinyin_option_t PINYIN_DEFAULT_OPTION = PINYIN_INCOMPLETE | CHEWING_INCOMPLETE| PINYIN_CORRECT_ALL| |