Enlightenment CVS committal Author : dj2 Project : e17 Module : docs
Dir : e17/docs/ewlbook/xml Modified Files: getting_started.xml Log Message: - fix some issues with the ewl book to keep in sync with ewl changes. Thanks to TongKe Xue for pointing these out =================================================================== RCS file: /cvsroot/enlightenment/e17/docs/ewlbook/xml/getting_started.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- getting_started.xml 13 Oct 2004 15:34:34 -0000 1.11 +++ getting_started.xml 17 Aug 2005 02:26:27 -0000 1.12 @@ -241,7 +241,7 @@ Ewl_Widget *label = NULL; char buf[BUFSIZ]; - s = ewl_entry_text_get(EWL_ENTRY(w)); + s = ewl_text_text_get(EWL_TEXT(w)); label = (Ewl_Widget *)data; snprintf(buf, BUFSIZ, "Hello %s", s); @@ -282,7 +282,7 @@ label = ewl_text_new(NULL); ewl_container_child_append(EWL_CONTAINER(box), label); ewl_object_alignment_set(EWL_OBJECT(label), EWL_FLAG_ALIGN_CENTER); - ewl_text_style_set(EWL_TEXT(label), "soft_shadow"); + ewl_text_styles_set(EWL_TEXT(label), EWL_TEXT_STYLE_SOFT_SHADOW); ewl_text_color_set(EWL_TEXT(label), 255, 0, 0, 255); ewl_text_text_set(EWL_TEXT(label), "hello"); ewl_widget_show(label); @@ -292,7 +292,7 @@ ewl_container_child_append(EWL_CONTAINER(box), o); ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_CENTER); ewl_object_padding_set(EWL_OBJECT(o), 5, 5, 5, 0); - ewl_entry_color_set(EWL_ENTRY(o), 0, 0, 0, 255); + ewl_text_color_set(EWL_TEXT(o), 0, 0, 0, 255); ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED, text_update_cb, label); ewl_widget_show(o); @@ -339,7 +339,7 @@ Ewl_Widget *label = NULL; char buf[BUFSIZ]; - s = ewl_entry_text_get(EWL_ENTRY(w)); + s = ewl_text_text_get(EWL_TEXT(w)); label = (Ewl_Widget *)data; snprintf(buf, BUFSIZ, "Hello %s", s); @@ -357,7 +357,7 @@ <para> The text that has been entered is retrieved with a call to -<function>ewl_entry_text_get()</function> passing the entry widget from which +<function>ewl_text_text_get()</function> passing the entry widget from which we want to retrieve the text. This will return a pointer to the text string, it is the applications responsibility to free this pointer. </para> @@ -420,7 +420,7 @@ label = ewl_text_new(NULL); ewl_container_child_append(EWL_CONTAINER(box), label); ewl_object_alignment_set(EWL_OBJECT(label), EWL_FLAG_ALIGN_CENTER); - ewl_text_style_set(EWL_TEXT(label), "soft_shadow"); + ewl_text_styles_set(EWL_TEXT(label), EWL_TEXT_STYLE_SOFT_SHADOW); ewl_text_color_set(EWL_TEXT(label), 255, 0, 0, 255); ewl_text_text_set(EWL_TEXT(label), "Hello"); ewl_widget_show(label); @@ -469,7 +469,7 @@ ewl_container_child_append(EWL_CONTAINER(box), o); ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_CENTER); ewl_object_padding_set(EWL_OBJECT(o), 5, 5, 5, 0); - ewl_entry_color_set(EWL_ENTRY(o), 0, 0, 0, 255); + ewl_text_color_set(EWL_ENTRY(o), 0, 0, 0, 255); ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED, text_update_cb, label); ewl_widget_show(o); </programlisting> ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs