Eobj: Fixed eobj_event_callback_call to return a meaningful value.
authortasn <tasn>
Mon, 16 Apr 2012 12:36:37 +0000 (12:36 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 16 Apr 2012 12:36:37 +0000 (12:36 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@70226 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

lib/eobj.c

index 0caa538..c0cf2b6 100644 (file)
@@ -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