Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_tree2.c Log Message: - break the configure into two functions =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- ewl_tree2.c 15 Aug 2006 17:54:56 -0000 1.24 +++ ewl_tree2.c 20 Aug 2006 19:00:52 -0000 1.25 @@ -3,6 +3,7 @@ #include "ewl_debug.h" #include "ewl_macros.h" +static void ewl_tree2_build_tree(Ewl_Tree2 *tree); static void ewl_tree2_cb_column_free(void *data); static void ewl_tree2_cb_header_changed(Ewl_Widget *w, void *ev, void *data); @@ -483,8 +484,7 @@ void *data __UNUSED__) { Ewl_Tree2 *tree; - Ewl_Tree2_Column *col; - int column = 0, rows = 0, i, size; + int size; DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("w", w); @@ -509,6 +509,22 @@ if (!ewl_tree2_dirty_get(tree)) DRETURN(DLEVEL_STABLE); + ewl_tree2_build_tree(tree); + ewl_tree2_dirty_set(tree, FALSE); + + DLEAVE_FUNCTION(DLEVEL_STABLE); +} + +static void +ewl_tree2_build_tree(Ewl_Tree2 *tree) +{ + Ewl_Tree2_Column *col; + int column = 0, rows = 0, i; + + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("tree", tree); + DCHECK_TYPE("tree", tree, EWL_TREE2_TYPE); + /* setup the headers */ ewl_container_reset(EWL_CONTAINER(tree->header)); ecore_list_goto_first(tree->columns); @@ -576,8 +592,6 @@ column ++; } } - - ewl_tree2_dirty_set(tree, FALSE); DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------------------------- 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