Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_container.c Log Message: Fixup child counting. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_container.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_container.c 23 Jun 2005 04:37:16 -0000 1.6 +++ ewl_container.c 23 Jun 2005 05:20:23 -0000 1.7 @@ -327,17 +327,19 @@ DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("c", c, 0); + /* + * Find the container where children are actually added. + */ + container = c; + while (container->redirect) container = container->redirect; + ecore_list_goto_first(c->children); while ((child = ecore_list_next(c->children))) { if (ewl_widget_internal_is(child)) continue; - count ++; + count++; } - container = c->redirect; - while (container->redirect) container = container->redirect; - count += ewl_container_child_count_get(container); - DRETURN_INT(count, DLEVEL_STABEL); } ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs