Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_box.c
Log Message:
reduce code depth
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_box.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -3 -r1.50 -r1.51
--- ewl_box.c 24 Jan 2008 00:51:22 -0000 1.50
+++ ewl_box.c 15 Feb 2008 23:30:03 -0000 1.51
@@ -558,13 +558,14 @@
i = 0;
ecore_dlist_first_goto(EWL_CONTAINER(w)->children);
while ((child = ecore_dlist_next(EWL_CONTAINER(w)->children))) {
- if (VISIBLE(child)) {
- i++;
- if (i == num)
- *fill_size += remainder;
- ewl_object_place(child, x, y, width, height);
- *fill += *fill_size + b->spacing;
- }
+ if (!VISIBLE(child))
+ continue;
+
+ i++;
+ if (i == num)
+ *fill_size += remainder;
+ ewl_object_place(child, x, y, width, height);
+ *fill += *fill_size + b->spacing;
}
DLEAVE_FUNCTION(DLEVEL_STABLE);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs