Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin
Modified Files:
ewl_entry_test.c
Log Message:
- if we set the text to "" then textblock returns a width of 0. EWL dosen't
like that.
- a couple more ewl_text_display calls moved to ewl_widget_configure calls
- convert some spaces to tabs
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_entry_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_entry_test.c 21 Nov 2005 03:55:47 -0000 1.6
+++ ewl_entry_test.c 22 Nov 2005 16:09:59 -0000 1.7
@@ -9,7 +9,7 @@
{
ewl_widget_destroy(w);
ewl_callback_append(entry_button, EWL_CALLBACK_CLICKED,
- __create_entry_test_window, NULL);
+ __create_entry_test_window, NULL);
}
static void
@@ -51,7 +51,7 @@
{
Ewl_Widget *entry_win;
Ewl_Widget *entry_box;
- Ewl_Widget *button_hbox;
+ Ewl_Widget *button_hbox, *o;
Ewl_Widget *button[2];
entry_button = w;
@@ -65,7 +65,7 @@
ewl_callback_del(w, EWL_CALLBACK_CLICKED,
__create_entry_test_window);
ewl_callback_append(entry_win, EWL_CALLBACK_DELETE_WINDOW,
- __destroy_entry_test_window, NULL);
+ __destroy_entry_test_window, NULL);
} else
ewl_callback_append(entry_win, EWL_CALLBACK_DELETE_WINDOW,
__close_main_window, NULL);
@@ -109,15 +109,25 @@
ewl_button_label_set(EWL_BUTTON(button[0]), "Fetch text");
ewl_container_child_append(EWL_CONTAINER(button_hbox), button[0]);
ewl_callback_append(button[0], EWL_CALLBACK_CLICKED,
- __fetch_entry_text, NULL);
+ __fetch_entry_text, NULL);
ewl_widget_show(button[0]);
button[1] = ewl_button_new();
ewl_button_label_set(EWL_BUTTON(button[1]), "Set Text");
ewl_container_child_append(EWL_CONTAINER(button_hbox), button[1]);
ewl_callback_append(button[1], EWL_CALLBACK_CLICKED,
- __set_entry_text, NULL);
+ __set_entry_text, NULL);
ewl_widget_show(button[1]);
+
+ o = ewl_label_new();
+ ewl_label_text_set(EWL_LABEL(o), "Text insert \"\"");
+ ewl_container_child_append(EWL_CONTAINER(button_hbox), o);
+ ewl_widget_show(o);
+
+ o = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(o), "");
+ ewl_container_child_append(EWL_CONTAINER(button_hbox), o);
+ ewl_widget_show(o);
}
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs