Enlightenment CVS committal Author : rbdpngn Project : e17 Module : docs
Dir : e17/docs/ewlbook/translations/es/xml Modified Files: getting_started.es.xml widgets.es.xml Log Message: Updated the translated book to the entry API changes. =================================================================== RCS file: /cvsroot/enlightenment/e17/docs/ewlbook/translations/es/xml/getting_started.es.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- getting_started.es.xml 22 Aug 2004 17:52:10 -0000 1.1 +++ getting_started.es.xml 7 Sep 2004 13:16:18 -0000 1.2 @@ -239,7 +239,7 @@ Ewl_Widget *label = NULL; char buf[BUFSIZ]; - s = ewl_entry_get_text(EWL_ENTRY(w)); + s = ewl_entry_text_get(EWL_ENTRY(w)); label = (Ewl_Widget *)data; snprintf(buf, BUFSIZ, "Hello %s", s); @@ -337,7 +337,7 @@ Ewl_Widget *label = NULL; char buf[BUFSIZ]; - s = ewl_entry_get_text(EWL_ENTRY(w)); + s = ewl_entry_text_get(EWL_ENTRY(w)); label = (Ewl_Widget *)data; snprintf(buf, BUFSIZ, "Hello %s", s); @@ -354,7 +354,7 @@ </para> <para> -El texto que ha sido introducido es recuperado con una llamada a<function>ewl_entry_get_text()</function> +El texto que ha sido introducido es recuperado con una llamada a<function>ewl_entry_text_get()</function> pasando el widget de entrada desde el cual queremos recuperar el texto. Esto retornarña un puntero a la cadena de texto, es responsabilidad de la aplicación liberar este puntero. </para> =================================================================== RCS file: /cvsroot/enlightenment/e17/docs/ewlbook/translations/es/xml/widgets.es.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- widgets.es.xml 22 Aug 2004 17:52:10 -0000 1.1 +++ widgets.es.xml 7 Sep 2004 13:16:18 -0000 1.2 @@ -380,21 +380,21 @@ <title>callback de cambio de valor para Ewl_Entry</title> <programlisting role="C"> void entry_cb(Ewl_Widget *w, void *event, void *data) { - char *s = ewl_entry_get_text(EWL_ENTRY(w)); + char *s = ewl_entry_text_get(EWL_ENTRY(w)); printf("%s\n", s); - ewl_entry_set_text(EWL_ENTRY(w), "New Text"); + ewl_entry_text_set(EWL_ENTRY(w), "New Text"); } </programlisting> </example> Este callback captura el valor actual del widget entrada con la llamada a -<function>ewl_entry_get_text()</function> y entonces resetea el texto al valor "New Text" -llamando a <function>ewl_entry_set_text()</function>. +<function>ewl_entry_text_get()</function> y entonces resetea el texto al valor "New Text" +llamando a <function>ewl_entry_text_set()</function>. </para> <para> El objeto <literal>Ewl_Entry</literal> te permite configurarsi el texto es o no editable con una llamada a -<function>void ewl_entry_set_editable(Ewl_Entry *, unsigned int edit)</function> +<function>void ewl_entry_editable_set(Ewl_Entry *, unsigned int edit)</function> donde <literal>edit</literal> es 0 para ineditable y 1 para editable. </para> </sect1> ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs