Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_tree.c ewl_tree.h 


Log Message:
- resize the columns when the tree headers get resized

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- ewl_tree.c  14 Aug 2006 04:33:13 -0000      1.39
+++ ewl_tree.c  15 Aug 2006 01:03:59 -0000      1.40
@@ -90,6 +90,8 @@
        }
 
        ewl_container_child_append(EWL_CONTAINER(tree), header);
+       ewl_callback_append(header, EWL_CALLBACK_VALUE_CHANGED,
+                                       ewl_tree_header_change_cb, tree);
        ewl_widget_appearance_set(EWL_WIDGET(header), "tree_header");
        ewl_widget_show(header);
        tree->header = header;
@@ -1411,6 +1413,28 @@
        DCHECK_PARAM_PTR("user_data", user_data);
 
        ewl_widget_configure(user_data);
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+/**
+ * @internal
+ * @param w: UNUSED
+ * @param ev: UNUSED
+ * @param data: The tree
+ * @return Returns no value
+ * @brief Callback for when the header grabbers are moved
+ */
+void
+ewl_tree_header_change_cb(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, 
+                                                               void *data)
+{
+       Ewl_Tree *tree;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+
+       tree = data;
+       ewl_widget_configure(tree->scrollarea);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_tree.h  15 Mar 2006 04:03:48 -0000      1.19
+++ ewl_tree.h  15 Aug 2006 01:03:59 -0000      1.20
@@ -128,6 +128,7 @@
 void ewl_tree_node_resize_cb(Ewl_Container *c, Ewl_Widget *w, int size,
                                                     Ewl_Orientation o);
 
+void ewl_tree_header_change_cb(Ewl_Widget *w, void *ev, void *data);
 void ewl_tree_row_select_cb(Ewl_Widget *w, void *ev_data, void *user_data);
 void ewl_tree_row_hide_cb(Ewl_Widget *w, void *ev_data, void *user_data);
 void ewl_tree_configure_cb(Ewl_Widget *w, void *ev_data, void *user_data);



-------------------------------------------------------------------------
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
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to