From: Inhong Han Date: Mon, 9 Sep 2024 00:19:19 +0000 (+0900) Subject: Modified to call the language/accessibility_changed callback on the C# IME X-Git-Tag: accepted/tizen/unified/20240909.154237~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F317311%2F3;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Modified to call the language/accessibility_changed callback on the C# IME Change-Id: Ib58df6457f74499fc85e53280cf1181387f14a3f --- diff --git a/src/sclcoreui-efl.cpp b/src/sclcoreui-efl.cpp index 34215a1..58f73aa 100644 --- a/src/sclcoreui-efl.cpp +++ b/src/sclcoreui-efl.cpp @@ -70,6 +70,9 @@ static void delete_render_pre_timer() using namespace scl; +static void language_changed_cb(keynode_t *key, void* data); +static void accessibility_changed_cb(keynode_t *key, void* data); + CSCLCoreUIEFL::CSCLCoreUIEFL() { m_initialized = FALSE; @@ -106,6 +109,9 @@ sclboolean CSCLCoreUIEFL::init() g_websocket.init(); #endif + vconf_notify_key_changed(VCONFKEY_LANGSET, language_changed_cb, NULL); + vconf_notify_key_changed(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, accessibility_changed_cb, NULL); + return TRUE; } @@ -116,6 +122,9 @@ void CSCLCoreUIEFL::fini() #ifdef WEBSOCKET g_websocket.exit(); #endif + + vconf_ignore_key_changed(VCONFKEY_LANGSET, language_changed_cb); + vconf_ignore_key_changed(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, accessibility_changed_cb); } sclwindow CSCLCoreUIEFL::get_main_window() @@ -485,10 +494,6 @@ sclboolean CSCLCoreUIEFL::create_main_window() set_keyboard_size_hints(portrait, landscape); #ifdef WAYLAND - vconf_notify_key_changed(VCONFKEY_LANGSET, language_changed_cb, NULL); - - vconf_notify_key_changed(VCONFKEY_SETAPPL_ACCESSIBILITY_TTS, accessibility_changed_cb, NULL); - evas_object_smart_callback_add(main_window, "wm,rotation,changed", win_rotation_changed_cb, this); evas_object_show(main_window); #else