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.
+
/**
* @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
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;
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);
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;