diff options
-rw-r--r-- | packaging/capi-ui-inputmethod.spec | 2 | ||||
-rw-r--r-- | src/inputmethod.cpp | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/packaging/capi-ui-inputmethod.spec b/packaging/capi-ui-inputmethod.spec index 5c7e2be..a0a946d 100644 --- a/packaging/capi-ui-inputmethod.spec +++ b/packaging/capi-ui-inputmethod.spec @@ -1,6 +1,6 @@ Name: capi-ui-inputmethod Summary: Input Method Library -Version: 0.0.4 +Version: 0.0.5 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 14963c2..9c02a03 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -47,7 +47,7 @@ class CCoreEventCallback : public ISCLCoreEventCallback void on_get_imdata(sclchar **buf, sclu32 *len); void on_get_language_locale(sclint ic, sclchar **locale); void on_set_return_key_type(Ecore_IMF_Input_Panel_Return_Key_Type type); - void on_set_return_key_disable(bool disabled); + void on_set_return_key_disable(sclu32 disabled); void on_set_layout(Ecore_IMF_Input_Panel_Layout layout); void on_reset_input_context(sclint ic, const sclchar *uuid); void on_process_key_event(scim::KeyEvent &key, sclu32 *ret); @@ -252,10 +252,12 @@ void CCoreEventCallback::on_set_return_key_type(Ecore_IMF_Input_Panel_Return_Key } } -void CCoreEventCallback::on_set_return_key_disable(bool disabled) +void CCoreEventCallback::on_set_return_key_disable(sclu32 disabled) { + bool return_key_disabled = !!disabled; + if (g_event_callback.return_key_state_set) { - g_event_callback.return_key_state_set(disabled, g_event_callback.return_key_state_set_user_data); + g_event_callback.return_key_state_set(return_key_disabled, g_event_callback.return_key_state_set_user_data); } } |