|
From: <enl...@li...> - 2004-05-24 17:17:43
|
Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/test
Modified Files:
ewl_entry_test.c
Log Message:
An example of changing text color. Indicates when text has been altered in one
of the entries.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_entry_test.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_entry_test.c 30 Dec 2003 18:05:22 -0000 1.19
+++ ewl_entry_test.c 24 May 2004 17:17:36 -0000 1.20
@@ -39,8 +39,16 @@
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_set_text(EWL_ENTRY(entry[0]), "Play with me ?");
ewl_entry_set_text(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);
return;
w = NULL;
@@ -77,6 +85,8 @@
ewl_widget_show(entry_box);
entry[0] = ewl_entry_new("Play with me ?");
+ ewl_text_color_set(EWL_TEXT(EWL_ENTRY(entry[0])->text),
+ 255, 0, 0, 255);
ewl_object_set_padding(EWL_OBJECT(entry[0]), 5, 5, 5, 0);
ewl_container_append_child(EWL_CONTAINER(entry_box), entry[0]);
ewl_callback_append(entry[0], EWL_CALLBACK_VALUE_CHANGED,
@@ -84,6 +94,8 @@
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_object_set_padding(EWL_OBJECT(entry[1]), 5, 5, 0, 0);
ewl_container_append_child(EWL_CONTAINER(entry_box), entry[1]);
ewl_callback_append(entry[1], EWL_CALLBACK_VALUE_CHANGED,
|