From: <enl...@li...> - 2004-05-31 07:16:32
|
Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src Modified Files: ewl_tree.c Log Message: The start of some theming for the tree nodes. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_tree.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -3 -r1.37 -r1.38 --- ewl_tree.c 15 May 2004 07:29:05 -0000 1.37 +++ ewl_tree.c 31 May 2004 07:15:52 -0000 1.38 @@ -626,8 +626,8 @@ node = EWL_TREE_NODE(c); - if (!ecore_list_nodes(c->children)) - node->row = w; + if (ecore_list_nodes(c->children) > 1) + ewl_widget_set_state(EWL_WIDGET(c), "expandable"); if (node->expanded || w == node->row) { ewl_object_set_preferred_h(EWL_OBJECT(c), @@ -652,6 +652,9 @@ node = EWL_TREE_NODE(c); + if (ecore_list_nodes(c->children) < 2) + ewl_widget_set_state(EWL_WIDGET(c), "flat"); + ewl_object_set_preferred_h(EWL_OBJECT(c), PREFERRED_H(c) - ewl_object_get_preferred_h(EWL_OBJECT(w))); |