Fix virtual function prototype mismatch
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 7 Mar 2017 13:18:07 +0000 (22:18 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 7 Mar 2017 13:28:16 +0000 (22:28 +0900)
Change-Id: I7fc97baf72df5be8c0dd434ad2e21f0b6ac82523

src/inputmethod.cpp

index 5972929..4ff94c6 100644 (file)
@@ -53,7 +53,7 @@ class CCoreEventCallback : public ISCLCoreEventCallback
     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(sclu32 disabled);
-    void on_set_layout(Ecore_IMF_Input_Panel_Layout layout);
+    void on_set_layout(sclu32 layout);
     void on_reset_input_context(sclint ic, const sclchar *uuid);
     void on_process_key_event(scim::KeyEvent &key, sclu32 *ret);
     void on_set_display_language(const sclchar *language);
@@ -287,10 +287,10 @@ void CCoreEventCallback::on_set_return_key_disable(sclu32 disabled)
     }
 }
 
-void CCoreEventCallback::on_set_layout(Ecore_IMF_Input_Panel_Layout layout)
+void CCoreEventCallback::on_set_layout(sclu32 layout)
 {
     if (g_event_callback.layout_set) {
-        g_event_callback.layout_set(layout, g_event_callback.layout_set_user_data);
+        g_event_callback.layout_set(static_cast<Ecore_IMF_Input_Panel_Layout>(layout), g_event_callback.layout_set_user_data);
     }
 }