Change the parameters of update_preedit_string() 37/40937/1
authorSungmin Kwak <sungmin.kwak@samsung.com>
Wed, 8 Apr 2015 11:18:36 +0000 (20:18 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 10 Jun 2015 09:12:39 +0000 (18:12 +0900)
Change-Id: I7bbc61228ac2e84eae95ad57236721602e3086a4

include/inputmethod.h
src/inputmethod.cpp

index b63b187..f7d08ef 100644 (file)
@@ -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
index 309ef23..438293d 100644 (file)
@@ -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;
 }