diff --git a/legacy/elementary/src/lib/elm_entry.c b/legacy/elementary/src/lib/elm_entry.c index 886678fde1..595166b7fe 100644 --- a/legacy/elementary/src/lib/elm_entry.c +++ b/legacy/elementary/src/lib/elm_entry.c @@ -2792,7 +2792,7 @@ elm_entry_cursor_is_visible_format_get(const Evas_Object *obj) return edje_object_part_text_cursor_is_visible_format_get(wd->ent, "elm.text", EDJE_CURSOR_MAIN); } -EAPI const char * +EAPI char * elm_entry_cursor_content_get(const Evas_Object *obj) { ELM_CHECK_WIDTYPE(obj, widtype) NULL; diff --git a/legacy/elementary/src/lib/elm_entry.h b/legacy/elementary/src/lib/elm_entry.h index 5bd8290d72..6c814a9fcd 100644 --- a/legacy/elementary/src/lib/elm_entry.h +++ b/legacy/elementary/src/lib/elm_entry.h @@ -668,12 +668,12 @@ EAPI Eina_Bool elm_entry_cursor_is_visible_format_get(const Evas_Object * This function returns a string with the utf8 character stored at the * current cursor position. * Only the text is returned, any format that may exist will not be part - * of the return value. + * of the return value. You must free the string when done with free(). * * @param obj The entry object * @return The text pointed by the cursors. */ -EAPI const char *elm_entry_cursor_content_get(const Evas_Object *obj); +EAPI char *elm_entry_cursor_content_get(const Evas_Object *obj); /** * This function returns the geometry of the cursor.