From: Gustavo Lima Chaves Date: Mon, 6 Dec 2010 12:45:41 +0000 (+0000) Subject: Mouse wheel events elm-propagated too. X-Git-Tag: v1.0.0~3645 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae99f9ef9f3e80f3182e3afc5bcfee2de84c9c9c;p=platform%2Fupstream%2Felementary.git Mouse wheel events elm-propagated too. SVN revision: 55324 --- diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 2e65538e4..f81dd43d1 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -241,6 +241,12 @@ _propagate_event(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *event_i event_flags = &(ev->event_flags); break; } + case EVAS_CALLBACK_MOUSE_WHEEL: + { + Evas_Event_Mouse_Wheel *ev = event_info; + event_flags = &(ev->event_flags); + break; + } default: break; } @@ -780,6 +786,9 @@ elm_widget_can_focus_set(Evas_Object *obj, Eina_Bool can_focus) evas_object_event_callback_add(obj, EVAS_CALLBACK_KEY_UP, _propagate_event, (void *)(long) EVAS_CALLBACK_KEY_UP); + evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_WHEEL, + _propagate_event, + (void *)(long)EVAS_CALLBACK_MOUSE_WHEEL); } else { @@ -787,6 +796,8 @@ elm_widget_can_focus_set(Evas_Object *obj, Eina_Bool can_focus) _propagate_event); evas_object_event_callback_del(obj, EVAS_CALLBACK_KEY_UP, _propagate_event); + evas_object_event_callback_del(obj, EVAS_CALLBACK_MOUSE_WHEEL, + _propagate_event); } }