summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2016-03-04 19:53:27 +0900
committerjk7744.park <jk7744.park@samsung.com>2016-03-04 19:53:27 +0900
commit7fa0985720f661113e7ffd70108150e983cd356b (patch)
tree85003b87b552cef49d8e2e6820f1aadceab84af2
parentc2aa914c8fb6df01525f4b0bd65820a44818994c (diff)
downloadinputmethod-7fa0985720f661113e7ffd70108150e983cd356b.tar.gz
inputmethod-7fa0985720f661113e7ffd70108150e983cd356b.tar.bz2
inputmethod-7fa0985720f661113e7ffd70108150e983cd356b.zip
-rw-r--r--packaging/capi-ui-inputmethod.spec2
-rw-r--r--src/inputmethod.cpp8
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);
}
}