Enlightenment CVS committal Author : urandom Project : e17 Module : libs/etk
Dir : e17/libs/etk/src/bin Modified Files: etk_tree_test.c Log Message: fix a bug in the etk_argument added default per-theme colors and a function to obtain them =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_tree_test.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- etk_tree_test.c 29 Jan 2007 05:20:40 -0000 1.39 +++ etk_tree_test.c 1 Feb 2007 19:14:52 -0000 1.40 @@ -16,6 +16,7 @@ Etk_Tree_Col *col1, *col2, *col3, *col4, *col5; Etk_Tree_Row *row; Etk_Widget *statusbar; + Etk_Color c_warn, c_default2; char row_name[128]; const char *stock_key; int i; @@ -65,9 +66,12 @@ * the speed when you insert a lot of rows. It is not really important if you * insert only some thousands of rows (here, we insert 3000 rows) */ etk_tree_freeze(ETK_TREE(tree)); + c_warn = etk_theme_color_get(ETK_COLOR_WARNING_FG); + c_default2 = etk_theme_color_get(ETK_COLOR_DEFAULT2_FG); for (i = 0; i < 1000; i++) { - sprintf(row_name, "Row %d", (i * 3) + 1); + sprintf(row_name, "<font color=#%.2X%.2X%.2X%.2X>Row %d</font>", + c_warn.r, c_warn.g, c_warn.b, c_warn.a, (i * 3) + 1); stock_key = etk_stock_key_get(ETK_STOCK_PLACES_USER_HOME, ETK_STOCK_SMALL); row = etk_tree_row_append(ETK_TREE(tree), NULL, col1, etk_theme_icon_get(), stock_key, row_name, @@ -77,7 +81,8 @@ col5, ETK_FALSE, NULL); - sprintf(row_name, "Row %d", (i * 3) + 2); + sprintf(row_name, "<font color=#%.2X%.2X%.2X%.2X>Row %d</font>", + c_default2.r, c_default2.g, c_default2.b, c_default2.a, (i * 3) + 2); stock_key = etk_stock_key_get(ETK_STOCK_PLACES_FOLDER, ETK_STOCK_SMALL); row = etk_tree_row_append(ETK_TREE(tree), row, col1, etk_theme_icon_get(), stock_key, row_name, ------------------------------------------------------------------------- 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