Enlightenment CVS committal

Author  : azundris
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore


Modified Files:
        ecore_events.c 


Log Message:
raster: please advise which semantics we'll stick with.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_events.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ecore_events.c      23 Sep 2003 08:09:29 -0000      1.2
+++ ecore_events.c      8 Oct 2003 15:04:54 -0000       1.3
@@ -32,11 +32,11 @@
  * structure that is specific to that event type, and a data pointer that is 
  * provided in this call as the @p data parameter.
  * 
- * When the callback @p func is called, it must return 1 or 0. If it returns
- * 1, It will keep being called as per normal, when events come into the event
- * queue. If it returns 0, it will be removed from the list of event handlers
- * and be destroyed. If this happens the event handler object returned is no
- * longer valid, and the handler will not be called again after it returns 0.
+ * When the callback @p func is called, it must return 1 or 0. If it returns 
+ * 1, It will keep being called as per normal, when events come into the event 
+ * queue. If it returns 0, it will be removed from the list of event handlers 
+ * and be destroyed. If this happens the event handler object returned is no 
+ * longer valid, and the handler will not be called again after it returns 0. 
  * 
  * @code
  * #include <Ecore.h>
@@ -433,7 +433,7 @@
                       if (eh->type == e->type)
                         {
                            if (!eh->func(eh->data, e->type, e->event))
-                             break;
+                             break;  /* 0 == "call no further handlers" */
                         }
                    }
               }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to