From a9353bb4b5cb68bb01a480bbb9a833630e8030ed Mon Sep 17 00:00:00 2001 From: Sungmin Kwak Date: Wed, 8 Apr 2015 20:18:36 +0900 Subject: [PATCH] Change the parameters of update_preedit_string() Change-Id: I7bbc61228ac2e84eae95ad57236721602e3086a4 --- include/inputmethod.h | 3 ++- src/inputmethod.cpp | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.34.1