Evas textblock: Deprecated evas_textblock_cursor_set_at_format.

This was a duplicate of evas_textblock_cursor_at_format_set.
The only difference is the name, and this one doesn't conform to the naming
conventions.

SVN revision: 61231
This commit is contained in:
Tom Hacohen 2011-07-11 08:56:13 +00:00
parent 06a85ddbdf
commit 8fe3776f8a
2 changed files with 4 additions and 5 deletions

View File

@ -7439,8 +7439,9 @@ EAPI void evas_textblock_node_format_remove_pair(Evas_Ob
*
* @param cur the cursor to update.
* @param n the format node to update according.
* @deprecated duplicate of evas_textblock_cursor_at_format_set
*/
EAPI void evas_textblock_cursor_set_at_format(Evas_Textblock_Cursor *cur, const Evas_Object_Textblock_Node_Format *n) EINA_ARG_NONNULL(1, 2);
EINA_DEPRECATED EAPI void evas_textblock_cursor_set_at_format(Evas_Textblock_Cursor *cur, const Evas_Object_Textblock_Node_Format *n) EINA_ARG_NONNULL(1, 2);
/**
* Return the format node at the position pointed by cur.

View File

@ -5404,7 +5404,7 @@ evas_textblock_node_format_remove_pair(Evas_Object *obj,
eina_ustrbuf_remove(n->text_node->unicode, ind, ind + 1);
if (format && _IS_PARAGRAPH_SEPARATOR(o, format))
{
evas_textblock_cursor_set_at_format(&cur, n);
evas_textblock_cursor_at_format_set(&cur, n);
_evas_textblock_cursor_nodes_merge(&cur);
}
_evas_textblock_cursors_update_offset(&cur, n->text_node, ind, -1);
@ -5522,9 +5522,7 @@ evas_textblock_cursor_paragraph_prev(Evas_Textblock_Cursor *cur)
EAPI void
evas_textblock_cursor_set_at_format(Evas_Textblock_Cursor *cur, const Evas_Object_Textblock_Node_Format *n)
{
if (!cur || !n) return;
cur->node = n->text_node;
cur->pos = _evas_textblock_node_format_pos_get(n);
evas_textblock_cursor_at_format_set(cur, n);
}
EAPI Eina_Bool