Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/test
Modified Files:
ewl_textarea_test.c
Log Message:
Filled in some missing unrealize functions while tracking down a clipping bug
for the scrollpane.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_textarea_test.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_textarea_test.c 20 Oct 2003 05:05:48 -0000 1.10
+++ ewl_textarea_test.c 21 Oct 2003 05:48:06 -0000 1.11
@@ -64,6 +64,19 @@
}
void
+__configure_textarea(Ewl_Widget *w, void *ev_data, void *user_data)
+{
+ printf("Configuring textarea to (%d, %d), %d x %d\n",
+ ewl_object_get_current_x(EWL_OBJECT(w)),
+ ewl_object_get_current_y(EWL_OBJECT(w)),
+ ewl_object_get_current_w(EWL_OBJECT(w)),
+ ewl_object_get_current_h(EWL_OBJECT(w)));
+ return;
+ ev_data = NULL;
+ user_data = NULL;
+}
+
+void
__create_textarea_test_window(Ewl_Widget * w, void *ev_data, void *user_data)
{
Ewl_Widget *scrollpane;
@@ -89,10 +102,7 @@
* Create the main box for holding the widgets
*/
textarea_box = ewl_vbox_new();
- ewl_box_set_spacing(EWL_BOX(textarea_box), 10);
ewl_container_append_child(EWL_CONTAINER(textarea_win), textarea_box);
- ewl_object_set_fill_policy(EWL_OBJECT(textarea_box),
- EWL_FLAG_FILL_FILL | EWL_FLAG_FILL_SHRINK);
ewl_widget_show(textarea_box);
/*
@@ -108,6 +118,8 @@
textarea = ewl_textarea_new(long_text);
ewl_object_set_padding(EWL_OBJECT(textarea), 10, 10, 10, 10);
ewl_container_append_child(EWL_CONTAINER(scrollpane), textarea);
+ ewl_callback_append(textarea, EWL_CALLBACK_CONFIGURE,
+ __configure_textarea, NULL);
ewl_widget_show(textarea);
return;
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs