Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: main.c Log Message: Next step in the MVC API transition. This will break all existing users of tree2 and other MVC based widgets. Following this there will be one more significant break in the API for tree2 users. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -3 -r1.59 -r1.60 --- main.c 21 Mar 2007 03:22:54 -0000 1.59 +++ main.c 23 Mar 2007 22:06:30 -0000 1.60 @@ -61,7 +61,7 @@ unsigned int column); static void ewl_test_cb_test_selected(Ewl_Widget *w, void *ev, void *data); -static Ewl_Widget *cb_unit_test_headers(void *data, int column); +static Ewl_Widget *cb_unit_test_header_fetch(void *data, int column); static void *cb_unit_test_fetch(void *data, unsigned int row, unsigned int column); static int cb_unit_test_count(void *data); @@ -529,10 +529,8 @@ ewl_widget_name_set(o2, "unit_test_tree"); ewl_widget_show(o2); - view = ewl_view_new(); - ewl_view_constructor_set(view, ewl_label_new); - ewl_view_assign_set(view, EWL_VIEW_ASSIGN(ewl_label_text_set)); - ewl_view_header_fetch_set(view, cb_unit_test_headers); + view = ewl_view_clone(ewl_label_view_get()); + ewl_view_header_fetch_set(view, cb_unit_test_header_fetch); ewl_tree2_column_append(EWL_TREE2(o2), view, FALSE); ewl_tree2_column_append(EWL_TREE2(o2), view, FALSE); @@ -1104,7 +1102,7 @@ } static Ewl_Widget * -cb_unit_test_headers(void *data, int column) +cb_unit_test_header_fetch(void *data, int column) { Ewl_Widget *label; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs