From: Sungmin Kwak Date: Wed, 8 Apr 2015 11:18:36 +0000 (+0900) Subject: Change the parameters of update_preedit_string() X-Git-Tag: submit/tizen/20150612.024017~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9353bb4b5cb68bb01a480bbb9a833630e8030ed;p=platform%2Fcore%2Fapi%2Finputmethod.git Change the parameters of update_preedit_string() Change-Id: I7bbc61228ac2e84eae95ad57236721602e3086a4 --- diff --git a/include/inputmethod.h b/include/inputmethod.h index b63b187..f7d08ef 100644 --- a/include/inputmethod.h +++ b/include/inputmethod.h @@ -1405,7 +1405,8 @@ EXPORT_API int ime_hide_preedit_string(void); * * @param[in] str The UTF-8 string to be updated in preedit * @paran[in] attrs The Eina_List which has #ime_preedit_attribute lists; @a str can be composed of multiple - * string attributes: underline, highlight color and reversal color. The @a attrs will be released internally on success + * string attributes: underline, highlight color and reversal color. The @a attrs will be released internally + * on success and it can be NULL if no attributes to set * * @return 0 on success, otherwise a negative error value * @retval #IME_ERROR_NONE No error diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 309ef23..438293d 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -709,8 +709,7 @@ int ime_update_preedit_string(const char *str, Eina_List *attrs) } } - //g_core.update_preedit_string(-1, NULL, str, attrv); - g_core.update_preedit_string(-1, NULL, str); + g_core.update_preedit_string(-1, NULL, str, attrv); return IME_ERROR_NONE; }