fix bad func protocype - it returned a duplicated string, not internal.

SVN revision: 66745
This commit is contained in:
Carsten Haitzler 2012-01-02 11:32:06 +00:00
parent a5638a0a65
commit 545390e173
5 changed files with 14 additions and 4 deletions

View File

@ -247,3 +247,10 @@
2011-12-19 Cedric Bail
* Check existence of group at compile time also.
2012-01-02 Carsten Haitzler (The Rasterman)
* Fix prototype for edje_object_part_text_cursor_content_get()
as it returned a strduped string and not an internal one, so
this just formalizes its existing behavior correctly.

View File

@ -2757,12 +2757,15 @@ EAPI Eina_Bool edje_object_part_text_cursor_is_visible_format_get(const E
/**
* @brief Returns the content (char) at the cursor position.
* @see evas_textblock_cursor_content_get
*
* You must free the return (if not NULL) after you are done with it.
*
* @param obj A valid Evas_Object handle
* @param part The part name
* @param cur The cursor to use
* @return The character string pointed to (may be a multi-byte utf8 sequence) terminated by a nul byte.
*/
EAPI const char *edje_object_part_text_cursor_content_get (const Evas_Object *obj, const char *part, Edje_Cursor cur);
EAPI char *edje_object_part_text_cursor_content_get (const Evas_Object *obj, const char *part, Edje_Cursor cur);
/**
* @brief Sets the cursor position to the given value

View File

@ -2783,7 +2783,7 @@ _edje_entry_cursor_is_visible_format_get(Edje_Real_Part *rp, Edje_Cursor cur)
return evas_textblock_cursor_format_is_visible_get(c);
}
const char *
char *
_edje_entry_cursor_content_get(Edje_Real_Part *rp, Edje_Cursor cur)
{
static char *s = NULL;

View File

@ -1915,7 +1915,7 @@ void _edje_entry_cursor_line_end(Edje_Real_Part *rp, Edje_Cursor cur);
Eina_Bool _edje_entry_cursor_coord_set(Edje_Real_Part *rp, Edje_Cursor cur, int x, int y);
Eina_Bool _edje_entry_cursor_is_format_get(Edje_Real_Part *rp, Edje_Cursor cur);
Eina_Bool _edje_entry_cursor_is_visible_format_get(Edje_Real_Part *rp, Edje_Cursor cur);
const char *_edje_entry_cursor_content_get(Edje_Real_Part *rp, Edje_Cursor cur);
char *_edje_entry_cursor_content_get(Edje_Real_Part *rp, Edje_Cursor cur);
void _edje_entry_cursor_pos_set(Edje_Real_Part *rp, Edje_Cursor cur, int pos);
int _edje_entry_cursor_pos_get(Edje_Real_Part *rp, Edje_Cursor cur);
void _edje_entry_input_panel_layout_set(Edje_Real_Part *rp, Edje_Input_Panel_Layout layout);

View File

@ -1675,7 +1675,7 @@ edje_object_part_text_cursor_is_visible_format_get(const Evas_Object *obj, const
return 0;
}
EAPI const char *
EAPI char *
edje_object_part_text_cursor_content_get(const Evas_Object *obj, const char *part, Edje_Cursor cur)
{
Edje *ed;