Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_callback.c
Log Message:
Add test for clearing callbacks with custom callbacks.
Fix clearing custom callbacks which broke with fix for del_type.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_callback.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- ewl_callback.c 3 Dec 2007 05:31:26 -0000 1.36
+++ ewl_callback.c 3 Dec 2007 05:41:11 -0000 1.37
@@ -621,8 +621,17 @@
DCHECK_PARAM_PTR(w);
DCHECK_TYPE(w, EWL_WIDGET_TYPE);
+ /*
+ * First clear out all standard callback types.
+ */
for (i = 0; i < EWL_CALLBACK_MAX; i++)
ewl_callback_del_type(w, i);
+
+ /*
+ * Finally clear out all custom callbacks.
+ */
+ while (EWL_CALLBACK_LEN(w, i))
+ ewl_callback_rm(w, i, EWL_CALLBACK_LEN(w, i) - 1);
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs