Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_attach.c ewl_enums.h Log Message: - fix attach of widget or color - change TYPE_COLOR to TYPE_OTHER so it makes sense =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_attach.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_attach.c 3 Oct 2005 06:43:06 -0000 1.3 +++ ewl_attach.c 6 Oct 2005 03:49:52 -0000 1.4 @@ -72,7 +72,7 @@ Ewl_Attach *attach; attach = ewl_attach_new(t, EWL_ATTACH_DATA_TYPE_WIDGET, (void *)data); - if (!attach) + if (attach) ewl_attach_list_add(w->attach, w, attach); } else @@ -94,8 +94,8 @@ { Ewl_Attach *attach; - attach = ewl_attach_new(t, EWL_ATTACH_DATA_TYPE_COLOR, data); - if (!attach) + attach = ewl_attach_new(t, EWL_ATTACH_DATA_TYPE_OTHER, data); + if (attach) ewl_attach_list_add(w->attach, w, attach); } else @@ -382,7 +382,7 @@ /* XXX should we clean up _WIDGET in here? */ if ((attach->type == EWL_ATTACH_DATA_TYPE_TEXT) - || (attach->type == EWL_ATTACH_DATA_TYPE_COLOR)) + || (attach->type == EWL_ATTACH_DATA_TYPE_OTHER)) IF_FREE(attach->data); IF_FREE(attach); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_enums.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- ewl_enums.h 28 Sep 2005 20:32:18 -0000 1.12 +++ ewl_enums.h 6 Oct 2005 03:49:52 -0000 1.13 @@ -336,7 +336,7 @@ { EWL_ATTACH_DATA_TYPE_TEXT, EWL_ATTACH_DATA_TYPE_WIDGET, - EWL_ATTACH_DATA_TYPE_COLOR + EWL_ATTACH_DATA_TYPE_OTHER }; typedef enum Ewl_Attach_Data_Type Ewl_Attach_Data_Type; ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs