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)));
 




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to