Enlightenment CVS committal Author : lordchaos Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_calendar.c ewl_datepicker.c ewl_iconbox.c Log Message: Modified iconbox/calendar/datepicker tests to work properly. Moved printf -> DWARNING for same C99 correctness fixes (no decs inside code body) Fix for datepicker to kill calendar window on main widget destroy =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_calendar.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_calendar.c 10 Jul 2005 13:23:38 -0000 1.3 +++ ewl_calendar.c 11 Jul 2005 01:33:59 -0000 1.4 @@ -231,7 +231,7 @@ } if (!ewl_calendar_init(ib)) { - printf("Failed calendar init...\n"); + DWARNING("Failed calendar init...\n"); FREE(ib); ib = NULL; } =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_datepicker.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ewl_datepicker.c 10 Jul 2005 09:09:32 -0000 1.1 +++ ewl_datepicker.c 11 Jul 2005 01:33:59 -0000 1.2 @@ -20,7 +20,7 @@ } if (!ewl_datepicker_init(ib)) { - printf("Failed datepicker init...\n"); + DWARNING("Failed datepicker init...\n"); FREE(ib); ib = NULL; } @@ -42,6 +42,13 @@ } void +ewl_datepicker_destroy_cb (Ewl_Widget *w, void *ev_data, void *user_data) { + Ewl_DatePicker* dp = EWL_DATEPICKER(w); + ewl_widget_destroy(dp->calendar_window); + ewl_widget_destroy(dp->calendar); +} + +void ewl_datepicker_dropdown(Ewl_Widget *w, void *ev_data, void *user_data) { Ewl_DatePicker *dp = EWL_DATEPICKER(w); @@ -110,6 +117,7 @@ ewl_widget_hide(dp->calendar_window);*/ ewl_callback_append(EWL_WIDGET(dp->calendar), EWL_CALLBACK_VALUE_CHANGED, ewl_datepicker_value_changed_cb, dp); + ewl_callback_append(EWL_WIDGET(dp), EWL_CALLBACK_DESTROY, ewl_datepicker_destroy_cb, dp); ewl_callback_call(EWL_WIDGET(dp->calendar), EWL_CALLBACK_VALUE_CHANGED); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ewl_iconbox.c 10 Jul 2005 12:39:00 -0000 1.1 +++ ewl_iconbox.c 11 Jul 2005 01:33:59 -0000 1.2 @@ -26,7 +26,7 @@ } if (!ewl_iconbox_init(ib)) { - printf("Failed iconbox init...\n"); + DWARNING("Failed iconbox init...\n"); FREE(ib); ib = NULL; } @@ -40,12 +40,12 @@ icon = NEW(Ewl_IconBox_Icon, 1); if (!icon) { - printf("Failed to init icon..\n"); + DWARNING("Failed to init icon..\n"); DRETURN_PTR(NULL, DLEVEL_STABLE); } if (!ewl_iconbox_icon_init(icon)) { - printf("Failed iconbox init...\n"); + DWARNING("Failed iconbox init...\n"); FREE(icon); icon = NULL; } ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs