Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_tree2.c 


Log Message:
add a warning when a model is expandable, but no expansion_data_fetch is 
provided.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- ewl_tree2.c 14 Jan 2007 23:11:03 -0000      1.49
+++ ewl_tree2.c 15 Jan 2007 02:24:40 -0000      1.50
@@ -824,6 +824,12 @@
                        Ewl_Tree2_Branch_Cache *tmp;
                        int hidden = TRUE;
 
+                       if (!col->model->expansion_data)
+                       {
+                               DWARNING("In ewl_tree2_build_tree_rows, model 
expandable but without expansion_data_fetch cb.");
+                               DRETURN(DLEVEL_STABLE);
+                       }
+
                        tmp = NEW(Ewl_Tree2_Branch_Cache, 1);
                        tmp->data = col->model->expansion_data(curbranch->data, 
i);
                        tmp->row_count = 0;



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