Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_tree.c 


Log Message:
Fix header hiding in the tree.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- ewl_tree.c  15 Mar 2006 04:03:48 -0000      1.32
+++ ewl_tree.c  30 Mar 2006 04:56:36 -0000      1.33
@@ -164,7 +164,6 @@
 void
 ewl_tree_headers_visible_set(Ewl_Tree *tree, unsigned int visible)
 {
-       unsigned short i;
        Ewl_Widget *button;
        Ewl_Widget *row;
 
@@ -177,14 +176,13 @@
        row = ecore_dlist_goto_first(EWL_CONTAINER(tree)->children);
        ecore_dlist_goto_first(EWL_CONTAINER(row)->children);
 
-       button = ecore_dlist_next(EWL_CONTAINER(row)->children);
-       for (i = 0; i < tree->ncols && button; i++) {
+       ewl_container_child_iterate_begin(EWL_CONTAINER(row));
+       while ((button = ewl_container_child_next(EWL_CONTAINER(row)))) {
                if ((visible) && (HIDDEN(button)))
                        ewl_widget_show(button);
                else if ((!visible) && (VISIBLE(button)))
                        ewl_widget_hide(button);
 
-               button = ecore_dlist_next(EWL_CONTAINER(row)->children);
        }
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to