Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_grid.c Log Message: save some loops =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_grid.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- ewl_grid.c 16 Aug 2006 18:57:41 -0000 1.27 +++ ewl_grid.c 17 Aug 2006 18:33:04 -0000 1.28 @@ -900,7 +900,6 @@ int c_w = 0, c_h = 0; /* child width/height */ int c_x = 0, c_y = 0; /* child x/y coordinate */ int col, row; - int i = 0; void (*go_next)(Ewl_Grid *g, int *c, int *r); DENTER_FUNCTION(DLEVEL_STABLE); @@ -931,17 +930,18 @@ while ((child = ecore_dlist_next(EWL_CONTAINER(w)->children))) { c = (Ewl_Grid_Child *)ewl_widget_data_get(child, (void *) g); if (c) { - c_h = c_w = 0; /* * calculate the geometry of the fixed widgets */ /* calculate child widgets width */ - for (i = c->start_col; i <= c->end_col; i++) - c_w += g->col_size[i].current_size; + c_w = g->col_size[c->end_col].current_pos + - g->col_size[c->start_col].current_pos + + g->col_size[c->end_col].current_size; /* calculate child widgets height */ - for (i = c->start_row; i <= c->end_row; i++) - c_h += g->row_size[i].current_size; + c_h = g->row_size[c->end_row].current_pos + - g->row_size[c->start_row].current_pos + + g->row_size[c->end_row].current_size; /* calculate child widgets x coordinate */ c_x = g->col_size[c->start_col].current_pos; ------------------------------------------------------------------------- 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