Fix bug language and return key type callback does not work 89/226589/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 4 Mar 2020 04:53:56 +0000 (13:53 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 4 Mar 2020 04:53:56 +0000 (13:53 +0900)
Change-Id: Ideac9f802eb5247aeea39efb93c8829f54d1197f
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
inputmethod/src/inputmethod.cpp

index a9800c9..f7b6710 100644 (file)
@@ -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);
     }
 }