Hello, EFL developers.
The cursor location information should be transferred when the position of
entry is changed.
For example, an entry can be moved by comformant, rotate event.
The transferred cursor location is used for letting candidate word window
move the appropriate position.
Would you please review this patch?
Index: edje_entry.c
===================================================================
--- edje_entry.c (revision 63239)
+++ edje_entry.c (working copy)
@@ -1447,6 +1447,17 @@ _edje_key_up_cb(void *data, Evas *e __UNUSED__, Ev
}
static void
+_edje_part_move_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj
__UNUSED__, void *event_info)
+{
+ Edje_Real_Part *rp = data;
+ Entry *en;
+ if (!rp) return;
+ en = rp->entry_data;
+ if (!en) return;
+ _edje_entry_imf_cursor_info_set(en);
+}
+
+static void
_edje_part_mouse_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj
__UNUSED__, void *event_info)
{
Evas_Coord cx, cy;
@@ -1877,6 +1888,8 @@ _edje_entry_real_part_init(Edje_Real_Part *rp)
rp->entry_data = en;
en->rp = rp;
+ evas_object_event_callback_add(rp->object, EVAS_CALLBACK_MOVE,
_edje_part_move_cb, rp);
+
evas_object_event_callback_add(rp->object, EVAS_CALLBACK_MOUSE_DOWN,
_edje_part_mouse_down_cb, rp);
evas_object_event_callback_add(rp->object, EVAS_CALLBACK_MOUSE_UP,
_edje_part_mouse_up_cb, rp);
evas_object_event_callback_add(rp->object, EVAS_CALLBACK_MOUSE_MOVE,
_edje_part_mouse_move_cb, rp);
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel