From 7d237bcf01881a7eb99ac7271f35ba41b3a48595 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 17 Jan 2013 05:32:17 +0000 Subject: [PATCH] edje entry: cursor position and location will be passed when it's really changed in case of mouse down, move, and up event. SVN revision: 82922 --- ChangeLog | 5 +++++ NEWS | 1 + src/lib/edje/edje_entry.c | 13 +++++++------ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 882aae4b1c..65721caf1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-01-17 Jihoon Kim (jihoon) + + * Edje : cursor position and location will be passed when it's really changed + in case of mouse down, move, and up event + 2013-01-16 Carsten Haitzler (The Rasterman) * Fixed pixman image wrapping to handle allocated size instead diff --git a/NEWS b/NEWS index 853f0420d7..54e0fa38d9 100644 --- a/NEWS +++ b/NEWS @@ -77,6 +77,7 @@ Improvements: * Eina.h includes eina_alloca.h/alloca.h to define alloca() * Improved eina share del speed. * Upgrade liblinebreak to latest version of libunibreak. + * edje entry: cursor position and location will be passed when it's really changed in case of mouse down, move, and up event. Fixes: * Fix PPC (big endian) image codec bug. diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c index dbb592ba7d..c97d2b166f 100644 --- a/src/lib/edje/edje_entry.c +++ b/src/lib/edje/edje_entry.c @@ -1975,11 +1975,11 @@ _edje_part_mouse_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_ { _edje_emit(rp->edje, "cursor,changed", rp->part->name); _edje_emit(rp->edje, "cursor,changed,manual", rp->part->name); + + _edje_entry_imf_cursor_info_set(en); } evas_textblock_cursor_free(tc); - _edje_entry_imf_cursor_info_set(en); - _edje_entry_real_part_configure(rp); if (ev->button == 2) { @@ -2092,10 +2092,11 @@ _edje_part_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN { _edje_emit(rp->edje, "cursor,changed", rp->part->name); _edje_emit(rp->edje, "cursor,changed,manual", rp->part->name); + + _edje_entry_imf_cursor_info_set(en); } evas_textblock_cursor_free(tc); - _edje_entry_imf_cursor_info_set(en); _edje_entry_real_part_configure(rp); } @@ -2190,12 +2191,12 @@ _edje_part_mouse_move_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_ { _edje_emit(rp->edje, "cursor,changed", rp->part->name); _edje_emit(rp->edje, "cursor,changed,manual", rp->part->name); + + _edje_entry_imf_context_reset(rp); + _edje_entry_imf_cursor_info_set(en); } evas_textblock_cursor_free(tc); - _edje_entry_imf_context_reset(rp); - _edje_entry_imf_cursor_info_set(en); - _edje_entry_real_part_configure(rp); } }