Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_row.c
Log Message:
A possibly more useful default header layout.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_row.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewl_row.c 15 Nov 2003 20:24:12 -0000 1.20
+++ ewl_row.c 16 Nov 2003 04:58:59 -0000 1.21
@@ -181,7 +181,7 @@
* Attempt to divvy up remaining space equally among
* remaining children.
*/
- portion = MIN(ewl_object_get_preferred_w(child),
+ portion = MAX(ewl_object_get_preferred_w(child),
remains / nodes);
ewl_object_request_position(child, x, CURRENT_Y(w));
ewl_object_request_w(child, portion);
@@ -190,11 +190,11 @@
x = ewl_object_get_current_x(child) +
ewl_object_get_current_w(child);
- remains = CURRENT_X(w) + CURRENT_W(w) - x;
+ remains -= CURRENT_W(child);
nodes--;
}
- if (remains > 0 &&(child = ewd_list_goto_last(c->children)))
+ if (remains > 0 && (child = ewd_list_goto_last(c->children)))
ewl_object_request_w(child,
ewl_object_get_current_w(child) +
remains);
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs