Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_tree2.c Log Message: - make sure we mod the data in the test case as you can set the number of rows in the test - cause the expansion test to fail as it needs to check if the row is expanded - if we find an expanded row make sure we don't lose the current row as you can have sub rows of sub rows - increment the current row number before checking if we're at the end of our array =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -3 -r1.43 -r1.44 --- ewl_tree2.c 5 Jan 2007 21:07:49 -0000 1.43 +++ ewl_tree2.c 6 Jan 2007 09:31:51 -0000 1.44 @@ -641,10 +641,13 @@ col = ecore_list_goto_first(tree->columns); if (col && col->model->expandable && - col->model->expandable(mvc_data, i)) { - curbranch = NEW(Ewl_Tree2_Branch_Cache, 1); - curbranch->parent = head; + col->model->expandable(mvc_data, i) && 0 /* check if row is expanded */) { + Ewl_Tree2_Branch_Cache *tmp; + tmp = NEW(Ewl_Tree2_Branch_Cache, 1); + tmp->parent = curbranch; + + curbranch = tmp; printf("Expandable row %d found\n", i); } @@ -658,15 +661,16 @@ ewl_container_child_append(EWL_CONTAINER(p), row); i++; + subi++; + /* * Finished the rows at this level? Jump back up a level. */ - if (subi > curbranch->row_count) { + if (subi >= curbranch->row_count) { curbranch = curbranch->parent; if (curbranch) subi = curbranch->relative_row; } - subi++; } DLEAVE_FUNCTION(DLEVEL_STABLE); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs