Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_tree2.c 


Log Message:
- use states instead of groups to change the arrow on the tree headers

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- ewl_tree2.c 17 Dec 2006 08:57:29 -0000      1.40
+++ ewl_tree2.c 2 Jan 2007 17:31:44 -0000       1.41
@@ -493,7 +493,6 @@
 static void
 ewl_tree2_header_build(Ewl_Tree2 *tree, Ewl_Tree2_Column *col, void *mvc_data, 
int column)
 {
-       char *theme_str;
        Ewl_Widget *h, *c;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
@@ -518,17 +517,19 @@
        /* display the sort arrow if needed */
        if (col->model->sort)
        {
+               char *state_str;
+
                c = ewl_button_new();
                ewl_container_child_append(EWL_CONTAINER(h), c);
 
                if (col->sort == EWL_SORT_DIRECTION_ASCENDING)
-                       theme_str = "ascending";
+                       state_str = "ascending";
                else if (col->sort == EWL_SORT_DIRECTION_DESCENDING)
-                       theme_str = "descending";
+                       state_str = "descending";
                else
-                       theme_str = "blank";
+                       state_str = "default";
 
-               ewl_widget_appearance_set(c, theme_str);
+               ewl_widget_state_set(c, state_str, EWL_STATE_PERSISTENT);
                ewl_widget_internal_set(c, TRUE);
                ewl_object_fill_policy_set(EWL_OBJECT(c), EWL_FLAG_FILL_SHRINK);
                ewl_object_alignment_set(EWL_OBJECT(c), EWL_FLAG_ALIGN_RIGHT);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to