From 95b0cc73afbcdd02a1db0481fb96b74bb60611d7 Mon Sep 17 00:00:00 2001 From: Myungjae Lee Date: Thu, 19 May 2011 21:22:44 +0900 Subject: [PATCH] [entry] fixed cursor_changed signal emission bug when cursor is not really changed --- src/lib/edje_entry.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 88e3a06..6f3f629 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -3502,6 +3502,10 @@ _edje_entry_cursor_pos_set(Edje_Real_Part *rp, Edje_Cursor cur, int pos) Entry *en = rp->entry_data; Evas_Textblock_Cursor *c = _cursor_get(rp, cur); if (!c) return; + /* Abort if cursor position didn't really change */ + if (evas_textblock_cursor_pos_get(c) == pos) + return; + evas_textblock_cursor_pos_set(c, pos); _curs_update_from_curs(c, rp->object, rp->entry_data); _sel_update(c, rp->object, rp->entry_data); -- 2.7.4