From: sungwook79.park Date: Tue, 27 Jun 2017 10:23:34 +0000 (+0900) Subject: Use capi for inputmethod-manager instead of app control X-Git-Tag: submit/tizen/20170621.072205~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b48274a52372c73b50a3bd1a921a239845c392e;p=platform%2Fcore%2Fuifw%2Finputmethod-setting.git Use capi for inputmethod-manager instead of app control Change-Id: I92f3689ce21d8cdf542ef97380cdf694d6fc5b60 Signed-off-by: sungwook79.park --- diff --git a/im_setting_selector/input_method_setting_selector_ui.cpp b/im_setting_selector/input_method_setting_selector_ui.cpp index 85d568f..c8aeb43 100644 --- a/im_setting_selector/input_method_setting_selector_ui.cpp +++ b/im_setting_selector/input_method_setting_selector_ui.cpp @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -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 diff --git a/org.tizen.inputmethod-setting.xml b/org.tizen.inputmethod-setting.xml index c2d1a2e..a3b4491 100644 --- a/org.tizen.inputmethod-setting.xml +++ b/org.tizen.inputmethod-setting.xml @@ -3,7 +3,7 @@ Shuoming Chen Keyboard setting Application - + org.tizen.inputmethod-setting-list.png