From: Enlightenment C. <no...@cv...> - 2007-01-07 20:47:18
|
Enlightenment CVS committal Author : titan Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/lib Modified Files: ewl_tree2.c Log Message: Check to make sure there is a header fetch callback before setting up the header. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -3 -r1.44 -r1.45 --- ewl_tree2.c 6 Jan 2007 09:31:51 -0000 1.44 +++ ewl_tree2.c 8 Jan 2007 02:47:15 -0000 1.45 @@ -512,6 +512,12 @@ DCHECK_PARAM_PTR("col", col); DCHECK_TYPE("tree", tree, EWL_TREE2_TYPE); + if (!col->view->header_fetch) + { + DWARNING("Missing header_fetch callback."); + DRETURN(DLEVEL_STABLE); + } + h = ewl_hbox_new(); ewl_container_child_append(EWL_CONTAINER(tree->header), h); ewl_widget_appearance_set(h, "header"); |