From 58cf68c8a91f84f814ffac24e556e167cbb8451d Mon Sep 17 00:00:00 2001 From: tasn Date: Mon, 16 Apr 2012 12:36:37 +0000 Subject: [PATCH] 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 --- lib/eobj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.7.4