From ce1585714dc46f26f46f4af1dbecc90377e0dd40 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 2 Jan 2012 11:43:25 +0000 Subject: [PATCH] match the const changes to edje in elm entry. leaks waiting to happen in apps! SVN revision: 66746 --- legacy/elementary/src/lib/elm_entry.c | 2 +- legacy/elementary/src/lib/elm_entry.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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.