From ffe4d9bbe231ff3140dfe97a8ca8ec2cc4b849c5 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 2 Sep 2010 11:50:52 +0000 Subject: [PATCH] Edje entry: Started using evas_textblock_cursor_geometry_get for cursor position instead of char_geometry_get. SVN revision: 51835 --- legacy/edje/src/lib/edje_entry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/edje/src/lib/edje_entry.c b/legacy/edje/src/lib/edje_entry.c index 32d9b3a0ea..21db651499 100644 --- a/legacy/edje/src/lib/edje_entry.c +++ b/legacy/edje/src/lib/edje_entry.c @@ -202,7 +202,7 @@ _curs_update_from_curs(Evas_Textblock_Cursor *c, Evas_Object *o __UNUSED__, Entr { Evas_Coord cx, cy, cw, ch; if (c != en->cursor) return; - evas_textblock_cursor_char_geometry_get(c, &cx, &cy, &cw, &ch); + evas_textblock_cursor_geometry_get(c, &cx, &cy, &cw, &ch, EVAS_TEXTBLOCK_CURSOR_UNDER); en->cx = cx + (cw / 2); en->cy = cy + (ch / 2); } @@ -1829,7 +1829,7 @@ _edje_entry_real_part_configure(Edje_Real_Part *rp) x = y = w = h = -1; xx = yy = ww = hh = -1; evas_object_geometry_get(rp->object, &x, &y, &w, &h); - evas_textblock_cursor_char_geometry_get(en->cursor, &xx, &yy, &ww, &hh); + evas_textblock_cursor_geometry_get(en->cursor, &xx, &yy, &ww, &hh, EVAS_TEXTBLOCK_CURSOR_UNDER); if (ww < 1) ww = 1; if (hh < 1) ww = 1; if (en->cursor_bg) @@ -2097,7 +2097,7 @@ _edje_entry_cursor_geometry_get(Edje_Real_Part *rp, Evas_Coord *cx, Evas_Coord * x = y = w = h = -1; xx = yy = ww = hh = -1; evas_object_geometry_get(rp->object, &x, &y, &w, &h); - evas_textblock_cursor_char_geometry_get(en->cursor, &xx, &yy, &ww, &hh); + evas_textblock_cursor_geometry_get(en->cursor, &xx, &yy, &ww, &hh, EVAS_TEXTBLOCK_CURSOR_UNDER); if (ww < 1) ww = 1; if (hh < 1) ww = 1; if (cx) *cx = x + xx;