Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/test
Modified Files:
ewl_entry_test.c
Log Message:
- Large ewl_entry/ewl_text change. The Etox is now in the entry and the text
is a uneditable wrapper around entry.
- entry contains all of the text ops that used to be in text.
- There are a bunch of issues with this currently that need to be worked out.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_entry_test.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- ewl_entry_test.c 21 Sep 2004 02:55:06 -0000 1.26
+++ ewl_entry_test.c 5 Oct 2004 23:34:52 -0000 1.27
@@ -39,16 +39,12 @@
void
__set_entry_text(Ewl_Widget * w, void *ev_data, void *user_data)
{
- ewl_text_color_set(EWL_TEXT(EWL_ENTRY(entry[0])->text),
- 0, 0, 0, 255);
- ewl_text_color_set(EWL_TEXT(EWL_ENTRY(entry[1])->text),
- 0, 0, 0, 255);
+ ewl_entry_color_set(EWL_ENTRY(entry[0]), 0, 0, 0, 255);
+ ewl_entry_color_set(EWL_ENTRY(entry[1]), 0, 0, 0, 255);
ewl_entry_text_set(EWL_ENTRY(entry[0]), "Play with me ?");
ewl_entry_text_set(EWL_ENTRY(entry[1]), "E W L ! ! !");
- ewl_text_color_set(EWL_TEXT(EWL_ENTRY(entry[0])->text),
- 255, 0, 0, 255);
- ewl_text_color_set(EWL_TEXT(EWL_ENTRY(entry[1])->text),
- 255, 0, 0, 255);
+ ewl_entry_color_set(EWL_ENTRY(entry[0]), 255, 0, 0, 255);
+ ewl_entry_color_set(EWL_ENTRY(entry[1]), 255, 0, 0, 255);
return;
w = NULL;
@@ -85,8 +81,7 @@
ewl_widget_show(entry_box);
entry[0] = ewl_entry_multiline_new("Play with me ?");
- ewl_text_color_set(EWL_TEXT(EWL_ENTRY(entry[0])->text),
- 255, 0, 0, 255);
+ ewl_entry_color_set(EWL_ENTRY(entry[0]), 255, 0, 0, 255);
ewl_object_padding_set(EWL_OBJECT(entry[0]), 5, 5, 5, 0);
ewl_container_child_append(EWL_CONTAINER(entry_box), entry[0]);
ewl_callback_append(entry[0], EWL_CALLBACK_VALUE_CHANGED,
@@ -94,8 +89,7 @@
ewl_widget_show(entry[0]);
entry[1] = ewl_entry_new("E W L ! ! !");
- ewl_text_color_set(EWL_TEXT(EWL_ENTRY(entry[1])->text),
- 255, 0, 0, 255);
+ ewl_entry_color_set(EWL_ENTRY(entry[1]), 255, 0, 0, 255);
ewl_object_padding_set(EWL_OBJECT(entry[1]), 5, 5, 0, 0);
ewl_container_child_append(EWL_CONTAINER(entry_box), entry[1]);
ewl_callback_append(entry[1], EWL_CALLBACK_VALUE_CHANGED,
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs