Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_callback.c
Log Message:
Add unit tests for modification of callbacks during the middle of a callback
chain execution.
Fix callback position adjustment when a callback type is modified during
execution.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_callback.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- ewl_callback.c 12 Nov 2007 22:42:22 -0000 1.32
+++ ewl_callback.c 21 Nov 2007 06:41:04 -0000 1.33
@@ -218,7 +218,7 @@
w->callbacks[place].list[pos] = cb;
}
- if (pos < EWL_CALLBACK_POS(w, t))
+ if (pos <= EWL_CALLBACK_POS(w, t))
EWL_CALLBACK_POS(w, t)++;
DRETURN_INT(cb->id, DLEVEL_STABLE);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs