diff options
author | Tae-Hwan Kim <the81.kim@samsung.com> | 2013-06-30 13:22:29 +0900 |
---|---|---|
committer | Tae-Hwan Kim <the81.kim@samsung.com> | 2013-06-30 13:23:18 +0900 |
commit | e86d1762b42ff53c5460fc1c9c16a7715121d537 (patch) | |
tree | 66f763cd6b73e34effb2b8a023303e725fae6a8c | |
parent | 359dc729bcae53822f47962ada202db8bdd14240 (diff) | |
download | efl-assist-e86d1762b42ff53c5460fc1c9c16a7715121d537.tar.gz efl-assist-e86d1762b42ff53c5460fc1c9c16a7715121d537.tar.bz2 efl-assist-e86d1762b42ff53c5460fc1c9c16a7715121d537.zip |
Fix build break
Change-Id: I1a7a6ab105334939d5c0921f6c4deb1acbc92fac
-rw-r--r-- | src/lib/efl_assist_events.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/efl_assist_events.c b/src/lib/efl_assist_events.c index f8696f5..fdf3359 100644 --- a/src/lib/efl_assist_events.c +++ b/src/lib/efl_assist_events.c @@ -280,6 +280,32 @@ _ea_event_mgr_new(Evas *e) return event_mgr; } +void +ea_event_mgr_clear(Ea_Event_Mgr *event_mgr) +{ + Ea_Object_Event *obj_event; + Ea_Event_Callback *callback; + Eina_List *l, *l2; + + //Remove Object Events + EINA_LIST_FOREACH(event_mgr->obj_events, l, obj_event) + { + evas_object_event_callback_del(obj_event->obj, EVAS_CALLBACK_DEL, + _ea_object_del_cb); + //Remove Callbacks + EINA_LIST_FOREACH(obj_event->callbacks, l2, callback) + free(callback); + obj_event->callbacks = eina_list_free(obj_event->callbacks); + + free(obj_event); + } + event_mgr->obj_events = eina_list_free(event_mgr->obj_events); + + evas_object_del(event_mgr->key_grab_rect); + + free(event_mgr); +} + EAPI void * ea_object_event_callback_del(Evas_Object *obj, Ea_Callback_Type type, Ea_Event_Cb func) { |