Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests/tree2


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/bin/tests/tree2/ewl_tree2.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_tree2.c 5 Jan 2007 13:13:15 -0000       1.6
+++ ewl_tree2.c 6 Jan 2007 09:31:50 -0000       1.7
@@ -1263,11 +1263,15 @@
 tree2_test_data_expandable_get(void *data, unsigned int row)
 {
        Tree2_Test_Data *d;
+       int ret = FALSE;
 
        d = data;
 
+       if (d && d->rows[row % TREE2_DATA_ELEMENTS])
+               ret = d->rows[row % TREE2_DATA_ELEMENTS]->expandable;
+
        printf("Data %p row %d\n", d, row);
-       return (d ? (d->rows[row] ? d->rows[row]->expandable : FALSE) : FALSE);
+       return ret;
 }
 
 static void *



-------------------------------------------------------------------------
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

Reply via email to