Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : docs

Dir     : e17/docs/ewlbook/xml/widgets


Modified Files:
        other_widgets.xml 


Log Message:
Update documentation to latest EWL API.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/docs/ewlbook/xml/widgets/other_widgets.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- other_widgets.xml   15 Mar 2005 00:59:49 -0000      1.4
+++ other_widgets.xml   3 Oct 2005 18:55:33 -0000       1.5
@@ -75,7 +75,8 @@
     Ewl_Widget *dialog = NULL;
     Ewl_Widget *o = NULL;
 
-    o = ewl_text_new("a dialog eh");
+    o = ewl_text_new();
+    ewl_text_text_set(EWL_TEXT(o), "a dialog eh");
     ewl_object_alignment_set(EWL_OBJECT(o),
     EWL_FLAG_ALIGN_CENTER);
     ewl_widget_show(o);
@@ -389,7 +390,8 @@
 <example>
 <title>Ewl_Image</title>
 <programlisting>
-    Ewl_Widget *i = ewl_image_new("/usr/foo/img.png", NULL);
+    Ewl_Widget *i = ewl_image_new();
+    ewl_image_file_set(EWL_IMAGE(i), "/usr/foo/img.png", NULL);
     ewl_widget_show(i);
 </programlisting>
 </example>
@@ -413,7 +415,8 @@
 <example id="sec-EwlTextCode">
 <title>Ewl_Text code</title>
 <programlisting role="C">
-    Ewl_Widget *text = ewl_text_new("text");
+    Ewl_Widget *text = ewl_text_new();
+    ewl_text_text_set(EWL_TEXT(text), "text");
     ewl_widget_show(text);
 </programlisting>
 </example>




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to