elm_entry: rename some eo methods
authorMike Blumenkrantz <zmike@osg.samsung.com>
Thu, 15 Feb 2018 02:14:52 +0000 (21:14 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Thu, 5 Apr 2018 18:05:30 +0000 (03:05 +0900)
cursor_content -> textblock_cursor_content
cursor_geometry -> textblock_cursor_geometry

probably all cursor methods here should be renamed to something to
increase consistency

src/lib/elementary/elm_entry.c
src/lib/elementary/elm_entry.eo

index 7ed47a8..77e598c 100644 (file)
@@ -5961,7 +5961,7 @@ _elm_entry_select_region_get(Eo *obj, Elm_Entry_Data *sd, int *start, int *end)
 }
 
 EOLIAN static Eina_Bool
-_elm_entry_cursor_geometry_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
+_elm_entry_textblock_cursor_geometry_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
 {
    edje_object_part_text_cursor_geometry_get
      (sd->entry_edje, "elm.text", x, y, w, h);
@@ -6051,7 +6051,7 @@ _elm_entry_cursor_is_visible_format_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
 }
 
 EOLIAN static char*
-_elm_entry_cursor_content_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
+_elm_entry_textblock_cursor_content_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
 {
    return edje_object_part_text_cursor_content_get
             (sd->entry_edje, "elm.text", EDJE_CURSOR_MAIN);
index a976f7e..93f87e3 100644 (file)
@@ -470,7 +470,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
             return: Efl.Canvas.Object; [[Textblock object]]
          }
       }
-      @property cursor_geometry {
+      @property textblock_cursor_geometry {
          get {
             [[This function returns the geometry of the cursor.
 
@@ -478,6 +478,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
               or for example in the case of scrolled entry where you want to show the
               cursor.
             ]]
+            legacy: elm_entry_cursor_geometry_get;
             return: bool; [[$true on success, $false otherwise]]
          }
          values {
@@ -512,7 +513,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
             return: bool; [[$true if format node exists, $false otherwise]]
          }
       }
-      @property cursor_content {
+      @property textblock_cursor_content {
          get {
             [[Get the character pointed by the cursor at its current position.
 
@@ -521,6 +522,7 @@ class Elm.Entry (Efl.Ui.Layout, Elm.Interface_Scrollable, Efl.Ui.Clickable,
               Only the text is returned, any format that may exist will not be part
               of the return value. You must free the string when done with \@ref free.
             ]]
+            legacy: elm_entry_cursor_content_get;
             return: mstring @owned @warn_unused; [[Character]]
          }
       }