seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=c1950dc0cff754d1fcb7974cc74c713eb1852570
commit c1950dc0cff754d1fcb7974cc74c713eb1852570 Author: Daniel Juyung Seo <[email protected]> Date: Fri Sep 5 00:08:10 2014 +0900 tooltip: Removed unnecessary casting and followed callback function conventions. --- src/lib/els_tooltip.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/els_tooltip.c b/src/lib/els_tooltip.c index a9880f0..46933a5 100644 --- a/src/lib/els_tooltip.c +++ b/src/lib/els_tooltip.c @@ -107,8 +107,12 @@ _elm_tooltip_obj_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EI } static void -_elm_tooltip_obj_mouse_move_cb(Elm_Tooltip *tt, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Evas_Event_Mouse_Move *ev) +_elm_tooltip_obj_mouse_move_cb(void *data, Evas *e EINA_UNUSED, + Evas_Object *obj EINA_UNUSED, void *event_info) { + Elm_Tooltip *tt = data; + Evas_Event_Mouse_Move *ev = event_info; + if (tt->mouse_x || tt->mouse_y) { if ((abs(ev->cur.output.x - tt->mouse_x) < 3) && @@ -164,8 +168,9 @@ _elm_tooltip_show(Elm_Tooltip *tt) //No movement of tooltip upon mouse move if orientation set if ((tt->orient <= ELM_TOOLTIP_ORIENT_NONE) || (tt->orient >= ELM_TOOLTIP_ORIENT_LAST)) { - evas_object_event_callback_add - (tt->eventarea, EVAS_CALLBACK_MOUSE_MOVE, (Evas_Object_Event_Cb)_elm_tooltip_obj_mouse_move_cb, tt); + evas_object_event_callback_add(tt->eventarea, + EVAS_CALLBACK_MOUSE_MOVE, + _elm_tooltip_obj_mouse_move_cb, tt); } } tt->changed_style = EINA_TRUE; --
