Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_tree2.c
Log Message:
- make the tree header display again
- couple formatting changes
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_tree2.c 20 Apr 2006 04:08:58 -0000 1.16
+++ ewl_tree2.c 21 Apr 2006 02:07:21 -0000 1.17
@@ -259,6 +259,9 @@
DCHECK_PARAM_PTR("tree", tree);
DCHECK_TYPE("tree", tree, EWL_TREE2_TYPE);
+ if (tree->headers_visible == visible)
+ DRETURN(DLEVEL_STABLE);
+
tree->headers_visible = !!visible;
if (!tree->headers_visible)
@@ -416,7 +419,10 @@
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("tree2", tree2);
DCHECK_TYPE("tree2", tree2, EWL_TREE2_TYPE);
-
+
+ if (tree2->dirty == dirty)
+ DRETURN(DLEVEL_STABLE);
+
tree2->dirty = !!dirty;
DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -455,7 +461,8 @@
}
void
-ewl_tree2_cb_configure(Ewl_Widget *w, void *ev __UNUSED__, void *data
__UNUSED__)
+ewl_tree2_cb_configure(Ewl_Widget *w, void *ev __UNUSED__,
+ void *data __UNUSED__)
{
Ewl_Tree2 *tree;
Ewl_Tree2_Column *col;
@@ -473,10 +480,12 @@
CURRENT_H(tree));
/* if the tree isn't dirty we're done */
- if (!ewl_tree2_dirty_get(tree)) DRETURN(DLEVEL_STABLE);
+ if (!ewl_tree2_dirty_get(tree))
+ DRETURN(DLEVEL_STABLE);
/* setup the headers */
ewl_container_reset(EWL_CONTAINER(tree->header));
+ ecore_list_goto_first(tree->columns);
while ((col = ecore_list_next(tree->columns)))
{
ewl_container_child_append(EWL_CONTAINER(tree->header),
-------------------------------------------------------
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