Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_filelist_column.c 


Log Message:
Alternate loop to avoid using destroyed widgets.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_column.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_filelist_column.c       26 Apr 2006 04:27:58 -0000      1.6
+++ ewl_filelist_column.c       26 Apr 2006 04:44:39 -0000      1.7
@@ -118,16 +118,12 @@
 
                tree = ewl_widget_name_find(path);
                index = ewl_container_child_index_get(c, tree);
-               tree2 = ewl_container_child_get(c, index + 1);
-               ewl_widget_destroy(tree2);
 
-               /* Um, this code is fucked. using tree2 after you've
-                * destroyed it dosen't make sense. */
-               while(tree2 != NULL) 
-               {
-                       tree2 = ewl_container_child_get(c, index + 1);
+               /*
+                * Destroy columns following the current column.
+                */
+               while ((tree2 = ewl_container_child_get(c, index + 1))) 
                        ewl_widget_destroy(tree2);
-               }
        }
 
        list->tree = ewl_tree_new(1);




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

Reply via email to