diff options
author | Daniel Hirt <hirt.danny@gmail.com> | 2017-06-20 15:31:08 +0300 |
---|---|---|
committer | Daniel Hirt <hirt.danny@gmail.com> | 2017-06-21 11:29:34 +0300 |
commit | ec02b5f3fb2b35f03315ab10230ff2e95a1b2401 (patch) | |
tree | 1a054e6d4d63ec3ca1fc99e0ce9db7abb8f5a754 | |
parent | 40e97c65896d2e8888bcbaaf0b6a0a6d279a5e4a (diff) | |
download | efl-ec02b5f3fb2b35f03315ab10230ff2e95a1b2401.tar.gz |
Ui text: fix cursor api call
This widget doesn't have a text part.
-rw-r--r-- | src/lib/elementary/efl_ui_text.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c index 60bfe93b4f..dd2fcadedd 100644 --- a/src/lib/elementary/efl_ui_text.c +++ b/src/lib/elementary/efl_ui_text.c @@ -1208,8 +1208,11 @@ _efl_ui_text_elm_widget_on_focus_region(Eo *obj EINA_UNUSED, Efl_Ui_Text_Data *s { Evas_Coord edje_x, edje_y, elm_x, elm_y; - edje_object_part_text_cursor_geometry_get - (sd->entry_edje, "elm.text", x, y, w, h); + efl_text_cursor_geometry_get(obj, + efl_text_cursor_get(obj, EFL_TEXT_CURSOR_GET_MAIN), + EFL_TEXT_CURSOR_TYPE_BEFORE, + x, y, w, h, + NULL, NULL, NULL, NULL); if (sd->single_line) { |