hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=43b3b77e04d41cd6f8815030d5c4c2e1b0adc5f8
commit 43b3b77e04d41cd6f8815030d5c4c2e1b0adc5f8 Author: ChunEon Park <her...@hermet.pe.kr> Date: Mon Jan 26 13:27:46 2015 +0900 lib: add enventor_object_cursor_pos_set to public API Reviewers: Hermet Projects: #enventor Differential Revision: https://phab.enlightenment.org/D1894 --- src/lib/enventor_object.eo | 11 +++++++++++ src/lib/enventor_smart.c | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/src/lib/enventor_object.eo b/src/lib/enventor_object.eo index 1f34569..e924e42 100644 --- a/src/lib/enventor_object.eo +++ b/src/lib/enventor_object.eo @@ -274,6 +274,17 @@ class Enventor.Object (Elm_Widget, Efl.File) { @ingroup Enventor */ return: int; } + cursor_pos_set { + /*@ + @brief + @return + @warning + @see + @ingroup Enventor */ + params { + @in int position; /*@ ... */ + } + } select_none { /*@ @brief diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c index 0a363d6..5ae88ea 100644 --- a/src/lib/enventor_smart.c +++ b/src/lib/enventor_smart.c @@ -421,6 +421,14 @@ _enventor_object_cursor_pos_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) return elm_entry_cursor_pos_get(edit_entry_get(pd->ed)); } +EOLIAN static void +_enventor_object_cursor_pos_set(Eo *obj EINA_UNUSED, + Enventor_Object_Data *pd, + int position) +{ + elm_entry_cursor_pos_set(edit_entry_get(pd->ed), position); +} + EOLIAN static const char * _enventor_object_selection_get(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd) { --