Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/bin


Modified Files:
        ewl_entry_test.c 


Log Message:
- create a separate theme for the cursor
- make sure the btree has a starting context

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_entry_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_entry_test.c    3 Oct 2005 06:43:07 -0000       1.4
+++ ewl_entry_test.c    2 Nov 2005 21:41:44 -0000       1.5
@@ -1,7 +1,7 @@
 #include "ewl_test.h"
 
 static Ewl_Widget *entry_button;
-static Ewl_Widget *entry[2];
+static Ewl_Widget *entry[3];
 
 static void
 __destroy_entry_test_window(Ewl_Widget * w, void *ev_data __UNUSED__,
@@ -25,6 +25,10 @@
        s = ewl_text_text_get(EWL_TEXT(entry[1]));
        printf("Second entry covers: %s\n", s);
        FREE(s);
+
+       s = ewl_text_text_get(EWL_TEXT(entry[2]));
+       printf("Third entry covers: %s\n", s);
+       FREE(s);
 }
 
 static void
@@ -33,20 +37,21 @@
 {
        ewl_text_color_set(EWL_TEXT(entry[0]), 0, 0, 0, 255);
        ewl_text_color_set(EWL_TEXT(entry[1]), 0, 0, 0, 255);
+       ewl_text_color_set(EWL_TEXT(entry[2]), 0, 0, 0, 255);
+
        ewl_text_text_set(EWL_TEXT(entry[0]), "Play with me ?");
        ewl_text_text_set(EWL_TEXT(entry[1]), "E W L ! ! !");
-       ewl_text_color_set(EWL_TEXT(entry[0]), 255, 0, 0, 255);
-       ewl_text_color_set(EWL_TEXT(entry[1]), 255, 0, 0, 255);
+       ewl_text_text_set(EWL_TEXT(entry[2]), NULL);
 }
 
 void
 __create_entry_test_window(Ewl_Widget *w, void *ev_data __UNUSED__, 
                                                void *user_data __UNUSED__)
 {
-       Ewl_Widget     *entry_win;
-       Ewl_Widget     *entry_box;
-       Ewl_Widget     *button_hbox;
-       Ewl_Widget     *button[2];
+       Ewl_Widget *entry_win;
+       Ewl_Widget *entry_box;
+       Ewl_Widget *button_hbox;
+       Ewl_Widget *button[2];
 
        entry_button = w;
 
@@ -79,8 +84,6 @@
        ewl_text_color_set(EWL_TEXT(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,
-                           __fetch_entry_text, NULL);
        ewl_widget_show(entry[0]);
 
        entry[1] = ewl_entry_new();
@@ -88,10 +91,13 @@
        ewl_text_color_set(EWL_TEXT(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,
-                           __fetch_entry_text, NULL);
        ewl_widget_show(entry[1]);
 
+       entry[2] = ewl_entry_new();
+       ewl_object_padding_set(EWL_OBJECT(entry[2]), 5, 5, 0, 0);
+       ewl_container_child_append(EWL_CONTAINER(entry_box), entry[2]);
+       ewl_widget_show(entry[2]);
+
        button_hbox = ewl_hbox_new();
        ewl_object_alignment_set(EWL_OBJECT(button_hbox), 
EWL_FLAG_ALIGN_CENTER);
        ewl_container_child_append(EWL_CONTAINER(entry_box), button_hbox);




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to