From: tasn Date: Mon, 16 Apr 2012 12:36:37 +0000 (+0000) Subject: Eobj: Fixed eobj_event_callback_call to return a meaningful value. X-Git-Tag: submit/2.0alpha-wayland/20121127.222020~219 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58cf68c8a91f84f814ffac24e556e167cbb8451d;p=profile%2Fivi%2Feobj.git Eobj: Fixed eobj_event_callback_call to return a meaningful value. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@70226 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/lib/eobj.c b/lib/eobj.c index 0caa538..c0cf2b6 100644 --- a/lib/eobj.c +++ b/lib/eobj.c @@ -1197,6 +1197,7 @@ EAPI Eina_Bool eobj_event_callback_call(Eobj *obj, const Eobj_Event_Description *desc, const void *event_info) { + Eina_Bool ret = EINA_TRUE; Eobj_Callback_Description *cb; eobj_ref(obj); @@ -1210,6 +1211,7 @@ eobj_event_callback_call(Eobj *obj, const Eobj_Event_Description *desc, if (!cb->func((void *) cb->func_data, obj, desc, (void *) event_info)) { + ret = EINA_FALSE; break; } } @@ -1220,7 +1222,7 @@ eobj_event_callback_call(Eobj *obj, const Eobj_Event_Description *desc, _eobj_callbacks_clear(obj); eobj_unref(obj); - return EINA_TRUE; + return ret; } static Eina_Bool