match the const changes to edje in elm entry. leaks waiting to happen
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 Jan 2012 11:43:25 +0000 (11:43 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 Jan 2012 11:43:25 +0000 (11:43 +0000)
in apps!

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@66746 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_entry.c
src/lib/elm_entry.h

index 886678f..595166b 100644 (file)
@@ -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;
index 5bd8290..6c814a9 100644 (file)
@@ -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.