Enlightenment CVS committal Author : lok Project : e17 Module : proto
Dir : e17/proto/enhance/src/lib Modified Files: enhance.c enhance_widget.c enhance_widget.h Log Message: Added box_group support. =================================================================== RCS file: /cvs/e/e17/proto/enhance/src/lib/enhance.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- enhance.c 14 Aug 2006 20:09:17 -0000 1.21 +++ enhance.c 15 Aug 2006 17:30:05 -0000 1.22 @@ -773,6 +773,7 @@ packing->padding = 0; packing->expand = ETK_TRUE; packing->fill = ETK_TRUE; + packing->box_group = ETK_BOX_START; packing->left_attach = 0; packing->right_attach = 0; packing->top_attach = 0; @@ -792,7 +793,15 @@ variable = ETK_FALSE; \ } \ while(0) - +#define IF_PACK_TYPE_ASSIGN(value, variable) \ + do \ + { \ + if(!strcmp(value, "GTK_PACK_START")) \ + variable = ETK_BOX_START; \ + else if (!strcmp(value, "GTK_PACK_END")) \ + variable = ETK_BOX_END; \ + } \ + while (0) do { char *str = NULL; @@ -808,6 +817,8 @@ IF_TRUE_FALSE_ASSIGN(node->value, packing->expand); else if(!strcmp("fill", str)) IF_TRUE_FALSE_ASSIGN(node->value, packing->fill); + else if(!strcmp("pack_type", str)) + IF_PACK_TYPE_ASSIGN(node->value, packing->box_group); else if(!strcmp("left_attach", str)) packing->left_attach = atoi(node->value); else if(!strcmp("right_attach", str)) =================================================================== RCS file: /cvs/e/e17/proto/enhance/src/lib/enhance_widget.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- enhance_widget.c 15 Aug 2006 17:13:28 -0000 1.16 +++ enhance_widget.c 15 Aug 2006 17:30:05 -0000 1.17 @@ -977,7 +977,7 @@ padding = 0; } - etk_box_append(ETK_BOX(parent->wid), child->wid, ETK_BOX_START, + etk_box_append(ETK_BOX(parent->wid), child->wid, child->packing->box_group, fill_policy, padding); } =================================================================== RCS file: /cvs/e/e17/proto/enhance/src/lib/enhance_widget.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- enhance_widget.h 7 Feb 2006 00:34:32 -0000 1.1 +++ enhance_widget.h 15 Aug 2006 17:30:05 -0000 1.2 @@ -17,7 +17,8 @@ int padding; Etk_Bool expand; Etk_Bool fill; - + Etk_Box_Group box_group; + /* Table packing */ int left_attach; int right_attach; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs