Enlightenment CVS committal
Author : ningerso
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_tree2.c
Log Message:
Fix layout of rows in tree2 to respect column headers.
Use cells for iproved theming and clipping.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- ewl_tree2.c 14 Aug 2006 17:50:55 -0000 1.21
+++ ewl_tree2.c 14 Aug 2006 20:24:15 -0000 1.22
@@ -539,9 +539,17 @@
ecore_list_goto_first(tree->columns);
while((col = ecore_list_next(tree->columns)))
{
+ Ewl_Widget *cell;
Ewl_Widget *child;
void *val;
+ cell = ewl_cell_new();
+ ewl_object_fill_policy_set(EWL_OBJECT(cell),
+ EWL_FLAG_FILL_HSHRINK |
+ EWL_FLAG_FILL_HFILL);
+ ewl_container_child_append(EWL_CONTAINER(row), cell);
+ ewl_widget_show(cell);
+
val = col->model->fetch(tree->data, i, column);
if (!val)
{
@@ -553,7 +561,7 @@
child = col->view->construct();
col->view->assign(child, val);
}
- ewl_container_child_append(EWL_CONTAINER(row), child);
+ ewl_container_child_append(EWL_CONTAINER(cell), child);
ewl_widget_show(child);
column ++;
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs