Evas textblock: Deprecated evas_textblock_cursor_set_at_format.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 08:56:13 +0000 (08:56 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 11 Jul 2011 08:56:13 +0000 (08:56 +0000)
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.

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

src/lib/Evas.h
src/lib/canvas/evas_object_textblock.c

index 1b08429..11372ec 100644 (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.
index ef68c9c..dcd461d 100644 (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