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:
- add a few more rows to this test to cause a warning to be triggered
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/tree2/ewl_tree2.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- ewl_tree2.c 11 Sep 2007 00:49:12 -0000 1.24
+++ ewl_tree2.c 11 Sep 2007 03:53:28 -0000 1.25
@@ -1109,7 +1109,7 @@
dt[1]->subdata = calloc(1, sizeof(Tree2_Test_Data));
dt[1]->subdata->count = 1;
- dt[1]->subdata->rows = calloc(1, sizeof(Tree2_Test_Row_Data *));
+ dt[1]->subdata->rows = calloc(dt[1]->subdata->count,
sizeof(Tree2_Test_Row_Data *));
dt[1]->subdata->rows[0] = calloc(1, sizeof(Tree2_Test_Row_Data));
dt[1]->subdata->rows[0]->image =
strdup(PACKAGE_DATA_DIR"/ewl/images/e-logo.png");
dt[1]->subdata->rows[0]->text = strdup("The First Subrow");
@@ -1120,14 +1120,26 @@
dt[2]->expandable = 1;
dt[2]->subdata = calloc(1, sizeof(Tree2_Test_Data));
- dt[2]->subdata->count = 2;
- dt[2]->subdata->rows = calloc(2, sizeof(Tree2_Test_Row_Data *));
+ dt[2]->subdata->count = 6;
+ dt[2]->subdata->rows = calloc(dt[2]->subdata->count,
sizeof(Tree2_Test_Row_Data *));
dt[2]->subdata->rows[0] = calloc(1, sizeof(Tree2_Test_Row_Data));
dt[2]->subdata->rows[0]->image =
strdup(PACKAGE_DATA_DIR"/ewl/images/e-logo.png");
dt[2]->subdata->rows[0]->text = strdup("Squee.");
dt[2]->subdata->rows[1] = calloc(1, sizeof(Tree2_Test_Row_Data));
dt[2]->subdata->rows[1]->image =
strdup(PACKAGE_DATA_DIR"/ewl/images/e-logo.png");
dt[2]->subdata->rows[1]->text = strdup("Splat");
+ dt[2]->subdata->rows[2] = calloc(1, sizeof(Tree2_Test_Row_Data));
+ dt[2]->subdata->rows[2]->image =
strdup(PACKAGE_DATA_DIR"/ewl/images/e-logo.png");
+ dt[2]->subdata->rows[2]->text = strdup("Squee.");
+ dt[2]->subdata->rows[3] = calloc(1, sizeof(Tree2_Test_Row_Data));
+ dt[2]->subdata->rows[3]->image =
strdup(PACKAGE_DATA_DIR"/ewl/images/e-logo.png");
+ dt[2]->subdata->rows[3]->text = strdup("Splat");
+ dt[2]->subdata->rows[4] = calloc(1, sizeof(Tree2_Test_Row_Data));
+ dt[2]->subdata->rows[4]->image =
strdup(PACKAGE_DATA_DIR"/ewl/images/e-logo.png");
+ dt[2]->subdata->rows[4]->text = strdup("Squee.");
+ dt[2]->subdata->rows[5] = calloc(1, sizeof(Tree2_Test_Row_Data));
+ dt[2]->subdata->rows[5]->image =
strdup(PACKAGE_DATA_DIR"/ewl/images/e-logo.png");
+ dt[2]->subdata->rows[5]->text = strdup("Splat");
dt[3] = calloc(1, sizeof(Tree2_Test_Row_Data));
dt[3]->image = strdup(PACKAGE_DATA_DIR"/ewl/images/End.png");
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs