Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_tree.c
Log Message:
Adjust the width of the row in a node for the expansion point.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_tree.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ewl_tree.c 23 Feb 2006 04:27:42 -0000 1.30
+++ ewl_tree.c 23 Feb 2006 04:46:48 -0000 1.31
@@ -1024,7 +1024,7 @@
Ewl_Tree_Node *node;
Ewl_Container *c;
Ewl_Object *child;
- int x, y;
+ int x, y, hw = 0;
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("w", w);
@@ -1047,7 +1047,8 @@
ewl_object_geometry_request(EWL_OBJECT(node->handle),
CURRENT_X(w), CURRENT_Y(w), CURRENT_W(w),
CURRENT_H(w));
- x += ewl_object_current_w_get(EWL_OBJECT(node->handle));
+ hw = ewl_object_current_w_get(EWL_OBJECT(node->handle));
+ x += hw;
}
/*
@@ -1055,7 +1056,7 @@
*/
while ((child = ecore_dlist_next(c->children))) {
if (VISIBLE(child) && EWL_WIDGET(child) != node->handle) {
- ewl_object_geometry_request(child, x, y, CURRENT_W(w),
+ ewl_object_geometry_request(child, x, y, CURRENT_W(w) -
hw,
ewl_object_preferred_h_get(child));
y += ewl_object_current_h_get(child);
}
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs