}
/**
-* @function InputMethodEventSetInputHintSetCb
-* @description Callback for ime_run to Set input hint event callback function.
+* @function InputMethodEventSetUnsetInputHintSetCb
+* @description Callback for ime_run to Set and Unset input hint event callback function.
* @parameter NA
* @return NA
*/
-static void InputMethodEventSetInputHintSetCb()
+static void InputMethodEventSetUnsetInputHintSetCb()
{
g_bCallbackCalled = true;
- FPRINTF("[Line : %d][%s] InputMethodEventSetInputHintSetCb Callback called\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] InputMethodEventSetUnsetInputHintSetCb Callback called\\n", __LINE__, API_NAMESPACE);
Evas_Object *hWindow = NULL;
hWindow = CreateNormalWin();
if(!hWindow)
{
- FPRINTF("[Line : %d][%s] CreateNormalWin() called from InputMethodEventSetInputHintSetCb callback is failed to create window\\n", __LINE__, API_NAMESPACE);
+ FPRINTF("[Line : %d][%s] CreateNormalWin() called from InputMethodEventSetUnsetInputHintSetCb callback is failed to create window\\n", __LINE__, API_NAMESPACE);
g_bSupportAPIFailed = true;
return;
}
g_nRet = ime_event_set_input_hint_set_cb(IMEInputHintSetCb, NULL);
PRINT_RESULT_NORETURN(IME_ERROR_NONE, g_nRet, "ime_event_set_input_hint_set_cb", InputGetError(g_nRet));
+ g_nRetUnset = ime_event_unset_input_hint_set_cb();
+ PRINT_RESULT_NORETURN(IME_ERROR_NONE, g_nRetUnset, "ime_event_unset_input_hint_set_cb", InputGetError(g_nRetUnset));
+
elm_entry_single_line_set(hEntry, EINA_TRUE);
evas_object_del(hWindow);
elm_exit();
}
-/**
-* @function InputMethodEventUnsetInputHintSetCb
-* @description Callback for ime_run to Unset input hint event callback function.
-* @parameter NA
-* @return NA
-*/
-static void InputMethodEventUnsetInputHintSetCb()
-{
- g_bCallbackCalled = true;
- FPRINTF("[Line : %d][%s] InputMethodEventUnsetInputHintSetCb callback called\\n", __LINE__, API_NAMESPACE);
-
- g_nRet = ime_event_unset_input_hint_set_cb();
- PRINT_RESULT_NORETURN(IME_ERROR_NONE, g_nRet, "ime_event_unset_input_hint_set_cb", InputGetError(g_nRet));
- elm_exit();
-}
-
/**
* @function InputMethodUpdatePreeditCursorCb
* @description Callback for ime_run to call preedit cursor function.
{
START_TEST;
- g_nRet = -1;
+ g_nRet = -1;g_nRetUnset = -1;
g_bCallbackCalled = false;
g_bSupportAPIFailed = false;
- int nRet = ime_run(&basic_callback, (void *)InputMethodEventSetInputHintSetCb);
+ int nRet = ime_run(&basic_callback, (void *)InputMethodEventSetUnsetInputHintSetCb);
PRINT_RESULT(IME_ERROR_NONE, nRet, "ime_run", InputGetError(nRet));
- PRINT_RESULT(true, g_bCallbackCalled, "ime_event_set_input_hint_set_cb", "Callback not invoked");
- PRINT_RESULT(false, g_bSupportAPIFailed, "ime_event_set_input_hint_set_cb", "Support APIs caled inside callback failed");
+ PRINT_RESULT(true, g_bCallbackCalled, "InputMethodEventSetUnsetInputHintSetCb", "Callback not invoked");
+ PRINT_RESULT(false, g_bSupportAPIFailed, "InputMethodEventSetUnsetInputHintSetCb", "Support APIs caled inside callback failed");
PRINT_RESULT(IME_ERROR_NONE, g_nRet, "ime_event_set_input_hint_set_cb", InputGetError(g_nRet));
+ PRINT_RESULT(IME_ERROR_NONE, g_nRetUnset, "ime_event_unset_input_hint_set_cb", InputGetError(g_nRetUnset));
-
- nRet = ime_run(&basic_callback, (void *)InputMethodEventUnsetInputHintSetCb);
-
- PRINT_RESULT(IME_ERROR_NONE, nRet, "ime_run", InputGetError(nRet));
- PRINT_RESULT(true, g_bCallbackCalled, "ime_event_unset_input_hint_set_cb", "Callback not invoked");
- PRINT_RESULT(IME_ERROR_NONE, g_nRet, "ime_event_unset_input_hint_set_cb", InputGetError(g_nRet));
return 0;
}