Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin/tests


Modified Files:
        ewl_combo.c 


Log Message:
- add a callback on the entry

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/tests/ewl_combo.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_combo.c 13 Mar 2006 22:26:07 -0000      1.8
+++ ewl_combo.c 14 Mar 2006 05:42:37 -0000      1.9
@@ -18,6 +18,7 @@
                                                unsigned int col);
 static int combo_test_data_count_get(void *data);
 static void combo_cb_add(Ewl_Widget *w, void *ev, void *data);
+static void combo_cb_entry_changed(Ewl_Widget *w, void *ev, void *data);
 
 static Ewl_Widget *combo_test_data_editable_header_fetch(void *data, int col);
 static Ewl_Widget *combo_test_editable_new(void);
@@ -231,6 +232,8 @@
        o = ewl_entry_new();
        ewl_text_text_set(EWL_TEXT(o), val);
        ewl_container_child_append(EWL_CONTAINER(w), o);
+       ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED, 
+                               combo_cb_entry_changed, NULL);
        ewl_widget_show(o);
 
        return w;
@@ -262,5 +265,12 @@
        ewl_widget_show(o);
 }
 
+static void
+combo_cb_entry_changed(Ewl_Widget *w, void *ev __UNUSED__, 
+                                       void *data __UNUSED__)
+{
+       printf("value changed to (%s)\n", ewl_text_text_get(EWL_TEXT(w)));
+}
+
 
 




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to