From: Jihoon Kim Date: Thu, 19 Jan 2017 07:17:40 +0000 (+0900) Subject: Fix IME string translation issue X-Git-Tag: accepted/tizen/3.0/common/20170123.131859~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F111012%2F1;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Fix IME string translation issue Change-Id: I220872172c16c7e7591fcf344f347a39a1ce1220 Signed-off-by: Jihoon Kim --- diff --git a/src/sclcoreui-efl.cpp b/src/sclcoreui-efl.cpp index be6a4db..60e0eb2 100644 --- a/src/sclcoreui-efl.cpp +++ b/src/sclcoreui-efl.cpp @@ -138,7 +138,7 @@ void CSCLCoreUIEFL::set_keyboard_size_hints(SclSize portrait, SclSize landscape) #endif } -static void language_changed_cb(keynode_t *key, void* data) +static int language_changed_cb(void *event_info, void* data) { char clang[_POSIX_PATH_MAX] = {0}; char *vconf_str = vconf_get_str(VCONFKEY_LANGSET); @@ -155,6 +155,8 @@ static void language_changed_cb(keynode_t *key, void* data) callback->on_set_display_language(clang); } } + + return 0; } static void accessibility_changed_cb(keynode_t *key, void* data) @@ -452,7 +454,8 @@ int CSCLCoreUIEFL::create(void *data) ecore_x_icccm_name_class_set(elm_win_xwindow_get(main_window), "Virtual Keyboard", "ISF"); #endif - vconf_notify_key_changed(VCONFKEY_LANGSET, language_changed_cb, NULL); + appcore_set_event_callback(APPCORE_EVENT_LANG_CHANGE, language_changed_cb, NULL); + vconf_notify_key_changed(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, accessibility_changed_cb, NULL); /* Should we call these callback functions here? */ @@ -488,7 +491,8 @@ int CSCLCoreUIEFL::terminate(void *data) if (impl) impl->fini(); - vconf_ignore_key_changed(VCONFKEY_LANGSET, language_changed_cb); + appcore_set_event_callback(APPCORE_EVENT_LANG_CHANGE, NULL, NULL); + vconf_ignore_key_changed(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, accessibility_changed_cb); #ifndef WAYLAND