Modify to return the proper error code 49/40949/1
authorSungmin Kwak <sungmin.kwak@samsung.com>
Tue, 21 Apr 2015 01:17:42 +0000 (10:17 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 10 Jun 2015 09:27:52 +0000 (18:27 +0900)
Change-Id: Ie0a98eb610a449650e9a1e800ef2bc14ef62ef39

src/inputmethod_manager.cpp

index 96f9029..3d91fe0 100644 (file)
 
 int ime_manager_show_ime_list(void)
 {
-    isf_control_show_ime_list();
-    return IME_MANAGER_ERROR_NONE;
+    int ret = isf_control_show_ime_list();
+    if (ret == 0)
+        return IME_MANAGER_ERROR_NONE;
+    else
+        return IME_MANAGER_ERROR_OPERATION_FAILED;
 }
 
 int ime_manager_show_ime_selector(void)
 {
-    isf_control_show_ime_selector();
-    return IME_MANAGER_ERROR_NONE;
+    int ret = isf_control_show_ime_selector();
+    if (ret == 0)
+        return IME_MANAGER_ERROR_NONE;
+    else
+        return IME_MANAGER_ERROR_OPERATION_FAILED;
 }
 
 int ime_manager_is_ime_enabled(const char *app_id, bool *enabled)