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");



-------------------------------------------------------------------------
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

Reply via email to