Enlightenment CVS committal
Author : moom16
Project : e17
Module : proto
Dir : e17/proto/etk/src/bin
Modified Files:
etk_tree_test.c
Log Message:
* [Tree] Fix the row expanding and collapsing
* [Tree] Add cells with an icon and a text
* [Stock] Change the stock icons
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/bin/etk_tree_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- etk_tree_test.c 7 Oct 2005 22:34:43 -0000 1.4
+++ etk_tree_test.c 8 Oct 2005 14:43:36 -0000 1.5
@@ -42,7 +42,7 @@
etk_table_attach_defaults(ETK_TABLE(table), tree, 0, 0, 1, 1);
etk_tree_mode_set(ETK_TREE(tree), ETK_TREE_MODE_TREE);
- col1 = etk_tree_col_new(ETK_TREE(tree), "Column 1", ETK_TREE_COL_TEXT);
+ col1 = etk_tree_col_new(ETK_TREE(tree), "Column 1", ETK_TREE_COL_ICON_TEXT);
col2 = etk_tree_col_new(ETK_TREE(tree), "Column 2", ETK_TREE_COL_INT);
col3 = etk_tree_col_new(ETK_TREE(tree), "Column 3", ETK_TREE_COL_IMAGE);
etk_tree_build(ETK_TREE(tree));
@@ -50,9 +50,12 @@
etk_tree_freeze(ETK_TREE(tree));
for (i = 0; i < 1000; i++)
{
- row = etk_tree_append(ETK_TREE(tree), col1, "Row1", col2, 1, col3,
PACKAGE_DATA_DIR "/images/1star.png", NULL);
- row = etk_tree_append_to_row(row, col1, "Row2", col2, 2, col3,
PACKAGE_DATA_DIR "/images/2stars.png", NULL);
- etk_tree_append_to_row(row, col1, "Row3", col2, 3, col3,
PACKAGE_DATA_DIR "/images/3stars.png", NULL);
+ row = etk_tree_append(ETK_TREE(tree), col1, PACKAGE_DATA_DIR
"/images/open.png", "Row1",
+ col2, 1, col3, PACKAGE_DATA_DIR "/images/1star.png", NULL);
+ row = etk_tree_append_to_row(row, col1, PACKAGE_DATA_DIR
"/images/open.png", "Row2",
+ col2, 2, col3, PACKAGE_DATA_DIR "/images/2stars.png", NULL);
+ etk_tree_append_to_row(row, col1, PACKAGE_DATA_DIR "/images/open.png",
"Row3",
+ col2, 3, col3, PACKAGE_DATA_DIR "/images/3stars.png", NULL);
}
etk_tree_thaw(ETK_TREE(tree));
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs