Modified to call the language/accessibility_changed callback on the C# IME 11/317311/3
authorInhong Han <inhong1.han@samsung.com>
Mon, 9 Sep 2024 00:19:19 +0000 (09:19 +0900)
committerInhong Han <inhong1.han@samsung.com>
Mon, 9 Sep 2024 02:03:42 +0000 (11:03 +0900)
Change-Id: Ib58df6457f74499fc85e53280cf1181387f14a3f

src/sclcoreui-efl.cpp

index 34215a13bf2ebb41fa597d139747735cfc266b74..58f73aa33bdedd45a5ccf5db0c8afd66777aec71 100644 (file)
@@ -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