Enlightenment CVS committal Author : jethomas Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_widget.c Log Message: Send the correct type of event data. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v retrieving revision 1.169 retrieving revision 1.170 diff -u -3 -r1.169 -r1.170 --- ewl_widget.c 4 Aug 2008 22:45:51 -0000 1.169 +++ ewl_widget.c 6 Aug 2008 00:01:33 -0000 1.170 @@ -3115,9 +3115,16 @@ x = e->base.x - (CURRENT_X(w) - INSET_LEFT(w)); y = e->base.y - (CURRENT_Y(w) - INSET_TOP(w)); if ((x > 0) && (x < CURRENT_W(w) + INSET_HORIZONTAL(w)) && - (y > 0) && (y < CURRENT_H(w) + INSET_VERTICAL(w))) { + (y > 0) && (y < CURRENT_H(w) + INSET_VERTICAL(w))) + { + Ewl_Event_Mouse_Down send; + send.base = e->base; + send.button = e->button; + send.clicks = 1; + ewl_callback_call_with_event_data(w, - EWL_CALLBACK_CLICKED, ev_data); + EWL_CALLBACK_CLICKED, &send); + } else ewl_embed_mouse_move_feed(ewl_embed_widget_find(w), ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs