Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin
Modified Files:
ewl_tree2_test.c
Log Message:
- API breakage ewl_image_file_get -> ewl_image_file_path_get
- add ewl_image_file_path_set and ewl_image_file_key_set/get
- bit of work on tree2
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_tree2_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_tree2_test.c 6 Feb 2006 05:48:35 -0000 1.2
+++ ewl_tree2_test.c 6 Feb 2006 16:32:10 -0000 1.3
@@ -76,12 +76,12 @@
Ewl_Widget *l;
l = ewl_label_new();
-
if (column == 0)
ewl_label_text_set(EWL_LABEL(l), "Title");
+ else if (column == 1)
+ ewl_label_text_set(EWL_LABEL(l), "Image");
else
ewl_label_text_set(EWL_LABEL(l), "Button");
- ewl_callback_append(l, EWL_CALLBACK_CONFIGURE, ewl_widget_print, NULL);
ewl_widget_show(l);
return l;
@@ -105,6 +105,9 @@
if (column == 0)
val = d->rows[row]->text;
+
+ else if (column == 1)
+ val = d->rows[row]->image;
else if (column == 1)
val = d->rows[row];
@@ -192,7 +195,13 @@
ewl_view_assign_set(view, EWL_VIEW_ASSIGN(ewl_label_text_set));
ewl_tree2_column_append(EWL_TREE2(tree), model, view);
- /* create a view for the second column that has a custom widget */
+ /* create a view for the second column that just has an ewl image */
+ view = ewl_view_new();
+ ewl_view_constructor_set(view, ewl_image_new);
+ ewl_view_assign_set(view, EWL_VIEW_ASSIGN(ewl_image_file_path_set));
+ ewl_tree2_column_append(EWL_TREE2(tree), model, view);
+
+ /* create a view for the third column that has a custom widget */
view = ewl_view_new();
ewl_view_constructor_set(view, tree2_test_custom_new);
ewl_view_assign_set(view, tree2_test_custom_assign_set);
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs