Use capi for inputmethod-manager instead of app control 31/135931/1
authorsungwook79.park <sungwook79.park@samsung.com>
Tue, 27 Jun 2017 10:23:34 +0000 (19:23 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Tue, 27 Jun 2017 10:23:34 +0000 (19:23 +0900)
Change-Id: I92f3689ce21d8cdf542ef97380cdf694d6fc5b60
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
im_setting_selector/input_method_setting_selector_ui.cpp
org.tizen.inputmethod-setting.xml

index 85d568faa3a8edf72bd7082eb82d0e664d1f30f7..c8aeb4328b2668b08368b44d8d9eb9993e0654ca 100644 (file)
@@ -20,7 +20,6 @@
 #include <efl_extension.h>
 #include <vector>
 #include <isf_control.h>
-#include <app_control.h>
 #include <algorithm>
 #include <tzplatform_config.h>
 #include <inputmethod_manager.h>
@@ -150,44 +149,10 @@ static void im_setting_selector_load_ime_info(void)
 }
 
 #ifndef _WEARABLE
-static void im_setting_selector_show_ime_list(void)
-{
-     int ret;
-     app_control_h app_control;
-     const char *app_id = "org.tizen.inputmethod-setting-list";
-     ret = app_control_create(&app_control);
-     if (ret != APP_CONTROL_ERROR_NONE) {
-         LOGD("app_control_create returned %d\n", ret);
-         return;
-     }
-
-     ret = app_control_set_operation(app_control, APP_CONTROL_OPERATION_DEFAULT);
-     if (ret != APP_CONTROL_ERROR_NONE) {
-         LOGD("app_control_set_operation returned %d\n", ret);
-         app_control_destroy(app_control);
-         return;
-     }
-
-     ret = app_control_set_app_id(app_control, app_id);
-     if (ret != APP_CONTROL_ERROR_NONE) {
-         LOGD("app_control_set_app_id returned %d\n", ret);
-         app_control_destroy(app_control);
-         return;
-     }
-
-     ret = app_control_send_launch_request(app_control, NULL, NULL);
-     if (ret != APP_CONTROL_ERROR_NONE) {
-         LOGD("app_control_send_launch_request returned %d, %s\n", ret, get_error_message(ret));
-         app_control_destroy(app_control);
-        return;
-     }
-     app_control_destroy(app_control);
-}
-
 static void im_setting_selector_select_keyboard_cb(void *data, Evas_Object *obj, void *event_info)
 {
     /* call input method list application*/
-    im_setting_selector_show_ime_list();
+    ime_manager_show_ime_list();
 }
 #endif
 
index c2d1a2ed7c28732663198daf567cbdc6927ef94c..a3b4491d3024142fca968c86eb989f454e56a2cc 100644 (file)
@@ -3,7 +3,7 @@
         <label>Keyboard setting</label>
         <author email="shoum.chen@samsung.com" href="www.samsung.com">Shuoming Chen</author>
         <description>Keyboard setting Application</description>
-        <ui-application appid="org.tizen.inputmethod-setting-list" launch_mode="group" exec="inputmethod-setting-list" hw-acceleration="use-GL" nodisplay="true" multiple="false" type="capp" taskmanage="false">
+        <ui-application appid="org.tizen.inputmethod-setting-list" launch_mode="caller" exec="inputmethod-setting-list" hw-acceleration="use-GL" nodisplay="true" multiple="false" type="capp" taskmanage="false">
             <category name="http://tizen.org/category/ime-list"/>
             <icon>org.tizen.inputmethod-setting-list.png</icon>
             <label>IME List</label>