Enlightenment CVS committal Author : doursse Project : e17 Module : proto
Dir : e17/proto/epdf/src/bin Modified Files: epdf_ewl_test.c Log Message: use the same ewl_view for both list and tree =================================================================== RCS file: /cvs/e/e17/proto/epdf/src/bin/epdf_ewl_test.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- epdf_ewl_test.c 15 Jan 2007 03:17:02 -0000 1.5 +++ epdf_ewl_test.c 12 Feb 2007 14:03:38 -0000 1.6 @@ -174,6 +174,11 @@ ewl_container_child_append (EWL_CONTAINER (hbox), vbox); ewl_widget_show (vbox); + /* view for both the list and the tree (if the index exists) */ + view = ewl_view_new(); + ewl_view_constructor_set (view, ewl_label_new); + ewl_view_assign_set (view, EWL_VIEW_ASSIGN (_label_text_set)); + if (index) { Ewl_Model *model; Ewl_View *view; @@ -202,9 +207,6 @@ ewl_mvc_data_set (EWL_MVC (tree), data); /* view */ - view = ewl_view_new(); - ewl_view_constructor_set (view, ewl_label_new); - ewl_view_assign_set (view, EWL_VIEW_ASSIGN (_label_text_set)); ewl_tree2_column_append (EWL_TREE2(tree), model, view); /* we attach and show */ @@ -227,9 +229,6 @@ } model = ewl_model_ecore_list_get(); - view = ewl_view_new(); - ewl_view_constructor_set (view, ewl_label_new); - ewl_view_assign_set (view, EWL_VIEW_ASSIGN (_label_text_set)); list = ewl_list_new (); ewl_mvc_model_set(EWL_MVC(list), model); ------------------------------------------------------------------------- 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