Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_paned.c ewl_tree2.c 


Log Message:
- make sure the rows get configured if we move something in the header
- the paned will now send an EWL_CALLBACK_VALUE_CHANGED when one of the
  grabbers is moved

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- ewl_paned.c 6 Jun 2006 21:40:33 -0000       1.34
+++ ewl_paned.c 14 Aug 2006 22:00:19 -0000      1.35
@@ -896,6 +896,9 @@
        /* place the grabber */
        layout->position_request(EWL_OBJECT(w), pos);
 
+       /* send a value_changed callback to signal something moved */
+       ewl_callback_call(EWL_WIDGET(p), EWL_CALLBACK_VALUE_CHANGED);
+
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ewl_tree2.c 14 Aug 2006 20:24:15 -0000      1.22
+++ ewl_tree2.c 14 Aug 2006 22:00:19 -0000      1.23
@@ -4,6 +4,8 @@
 #include "ewl_macros.h"
 
 static void ewl_tree2_cb_column_free(void *data);
+static void ewl_tree2_cb_header_changed(Ewl_Widget *w, void *ev, 
+                                                       void *data);
 
 /**
  * @return Returns NULL on failure, a new tree widget on success.
@@ -61,6 +63,8 @@
        ewl_widget_appearance_set(EWL_WIDGET(tree->header), "tree_header");
        ewl_object_fill_policy_set(EWL_OBJECT(tree->header), 
                                EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
+       ewl_callback_append(tree->header, EWL_CALLBACK_VALUE_CHANGED,
+                                       ewl_tree2_cb_header_changed, tree);
        ewl_widget_show(tree->header);
 
        tree->rows = ewl_vbox_new();
@@ -582,6 +586,21 @@
 
        c = data;
        ewl_tree2_column_destroy(c);
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+static void
+ewl_tree2_cb_header_changed(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, 
+                                                               void *data)
+{
+       Ewl_Tree2 *tree;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR("data", data);
+
+       tree = data;
+       ewl_widget_configure(EWL_WIDGET(tree->rows));
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }



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