Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_colordialog.c ewl_colordialog.h Log Message: - cleanup/type checking =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_colordialog.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_colordialog.c 23 Oct 2005 16:05:37 -0000 1.15 +++ ewl_colordialog.c 23 Oct 2005 17:03:48 -0000 1.16 @@ -23,6 +23,7 @@ ewl_widget_destroy(EWL_WIDGET(cd)); cd = NULL; } + DRETURN_PTR(EWL_WIDGET(cd), DLEVEL_STABLE); } @@ -208,6 +209,7 @@ { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("cd", cd); + DCHECK_TYPE("cd", cd, "colordialog"); if (r) *r = cd->selected.r; if (g) *g = cd->selected.g; @@ -224,7 +226,9 @@ float h, s, v; DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("w", w); DCHECK_PARAM_PTR("user_data", user_data); + DCHECK_TYPE("w", w, "widget"); cd = user_data; if (ev_data) @@ -256,6 +260,7 @@ DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("w", w); DCHECK_PARAM_PTR("user_data", user_data); + DCHECK_TYPE("w", w, "widget"); cd = user_data; col.r = cd->selected.r; @@ -285,7 +290,9 @@ float h, s, v; DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("w", w); DCHECK_PARAM_PTR("user_data", user_data); + DCHECK_TYPE("w", w, "widget"); cd = user_data; col.r = cd->selected.r; @@ -315,7 +322,9 @@ float h, s, v; DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("w", w); DCHECK_PARAM_PTR("user_data", user_data); + DCHECK_TYPE("w", w, "widget"); cd = user_data; ewl_spectrum_rgb_to_hsv(cd->selected.r, cd->selected.g, cd->selected.b, @@ -342,7 +351,9 @@ float h, s, v; DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("w", w); DCHECK_PARAM_PTR("user_data", user_data); + DCHECK_TYPE("w", w, "widget"); cd = user_data; ewl_spectrum_rgb_to_hsv(cd->selected.r, cd->selected.g, cd->selected.b, @@ -369,7 +380,9 @@ float h, s, v; DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("w", w); DCHECK_PARAM_PTR("user_data", user_data); + DCHECK_TYPE("w", w, "widget"); cd = user_data; ewl_spectrum_rgb_to_hsv(cd->selected.r, cd->selected.g, cd->selected.b, @@ -390,8 +403,7 @@ void ewl_colordialog_color_valuechanged_cb(Ewl_Widget *w __UNUSED__, - void *ev_data __UNUSED__, - void *user_data) + void *ev_data, void *user_data) { Ewl_ColorDialog *cd; Ewl_Color_Set *col; @@ -439,7 +451,9 @@ Ewl_ColorDialog *cd; DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("w", w); DCHECK_PARAM_PTR("user_data", user_data); + DCHECK_TYPE("w", w, "widget"); cd = user_data; ewl_callback_call_with_event_data(EWL_WIDGET(cd), =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_colordialog.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_colordialog.h 20 Jun 2005 20:40:09 -0000 1.5 +++ ewl_colordialog.h 23 Oct 2005 17:03:48 -0000 1.6 @@ -31,7 +31,7 @@ }; Ewl_Widget *ewl_colordialog_new(int r, int g, int b); -int ewl_colordialog_init(Ewl_ColorDialog *cd, int r, int g, int b); +int ewl_colordialog_init(Ewl_ColorDialog *cd, int r, int g, int b); /* * Internal callbacks, override at your own risk. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs