From ae18521fb436cd585fd705b5893b82867addf932 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 4 Mar 2020 13:53:56 +0900 Subject: [PATCH] Fix bug language and return key type callback does not work Change-Id: Ideac9f802eb5247aeea39efb93c8829f54d1197f Signed-off-by: Jihoon Kim --- inputmethod/src/inputmethod.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inputmethod/src/inputmethod.cpp b/inputmethod/src/inputmethod.cpp index a9800c9..f7b6710 100644 --- a/inputmethod/src/inputmethod.cpp +++ b/inputmethod/src/inputmethod.cpp @@ -47,11 +47,11 @@ class CCoreEventCallback : public ISCLCoreEventCallback void on_ise_show(sclint ic, const int degree, Ise_Context &context); void on_ise_hide(sclint ic, const sclchar *ic_uuid); void on_get_geometry(sclu32 *pos_x, sclu32 *pos_y, sclu32 *width, sclu32 *height); - void on_set_language(Ecore_IMF_Input_Panel_Lang language); + void on_set_language(sclu32 language); void on_set_imdata(sclchar *buf, sclu32 len); 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_type(sclu32 type); void on_set_return_key_disable(sclu32 disabled); void on_set_layout(sclu32 layout); void on_reset_input_context(sclint ic, const sclchar *uuid); @@ -259,10 +259,10 @@ void CCoreEventCallback::on_get_geometry(sclu32 *pos_x, sclu32 *pos_y, sclu32 *w *height = geometry_height; } -void CCoreEventCallback::on_set_language(Ecore_IMF_Input_Panel_Lang language) +void CCoreEventCallback::on_set_language(sclu32 language) { if (g_event_callback.language_set) { - g_event_callback.language_set(language, g_event_callback.language_set_user_data); + g_event_callback.language_set((Ecore_IMF_Input_Panel_Lang)language, g_event_callback.language_set_user_data); } } @@ -287,10 +287,10 @@ void CCoreEventCallback::on_get_language_locale(sclint ic, sclchar **locale) } } -void CCoreEventCallback::on_set_return_key_type(Ecore_IMF_Input_Panel_Return_Key_Type type) +void CCoreEventCallback::on_set_return_key_type(sclu32 type) { if (g_event_callback.return_key_type_set) { - g_event_callback.return_key_type_set(type, g_event_callback.return_key_type_set_user_data); + g_event_callback.return_key_type_set((Ecore_IMF_Input_Panel_Return_Key_Type)type, g_event_callback.return_key_type_set_user_data); } } -- 2.34.1