Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : docs

Dir     : e17/docs/ewlbook/xml


Modified Files:
        appendix-ewl_media_example.xml widgets.xml 


Log Message:
- api sync
- convert tabs to spaces
- add Spanish translation by Rotxa <[EMAIL PROTECTED]>

===================================================================
RCS file: /cvsroot/enlightenment/e17/docs/ewlbook/xml/appendix-ewl_media_example.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- appendix-ewl_media_example.xml      18 Aug 2004 05:42:49 -0000      1.4
+++ appendix-ewl_media_example.xml      22 Aug 2004 17:52:10 -0000      1.5
@@ -73,7 +73,7 @@
     ewl_widget_hide(fd_win);
     file = (char *)event;
     if (file) 
-       ewl_media_media_set(EWL_MEDIA(video), file);
+        ewl_media_media_set(EWL_MEDIA(video), file);
 }
 
 void open_cb(Ewl_Widget *w, void *event, void *data ) {
@@ -81,7 +81,7 @@
 
     if (fd_win) {
         ewl_widget_show(fd_win);
-           return;
+        return;
     }
 
     fd_win = ewl_window_new();
@@ -89,7 +89,7 @@
     ewl_window_class_set(EWL_WINDOW(fd_win), "EWL_Media_Open");
     ewl_window_name_set(EWL_WINDOW(fd_win), "EWL_Media_Open");
     ewl_callback_append(fd_win, EWL_CALLBACK_DELETE_WINDOW, 
-                                   fd_win_del_cb, NULL);
+                                            fd_win_del_cb, NULL);
     ewl_widget_show(fd_win);
 
     fd = ewl_filedialog_new(EWL_FILEDIALOG_TYPE_OPEN);
@@ -102,13 +102,13 @@
     Ewl_Event_Key_Up *e = (Ewl_Event_Key_Up *)event;
 
     if (!strcmp(e-&gt;keyname, "p"))
-       ewl_media_play_set(EWL_MEDIA(video), 1);
+        ewl_media_play_set(EWL_MEDIA(video), 1);
 
     else if (!strcmp(e-&gt;keyname, "s"))
-       ewl_media_play_set(EWL_MEDIA(video), 0);
+        ewl_media_play_set(EWL_MEDIA(video), 0);
 
     else if (!strcmp(e-&gt;keyname, "q"))
-       del_cb(w, event, data);
+        del_cb(w, event, data);
 }
 
 int main(int argc, char ** argv) {
@@ -122,7 +122,7 @@
     }
 
     if (argc &gt; 1)
-       file = argv[1];
+        file = argv[1];
 
     win = ewl_window_new();
     ewl_window_title_set(EWL_WINDOW(win), "EWL Media test");
@@ -154,7 +154,7 @@
     /* box to contain contols and scrollers */
     controls = ewl_vbox_new();
     ewl_object_fill_policy_set(EWL_OBJECT(controls), 
-               EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
+                EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
     ewl_container_child_append(EWL_CONTAINER(b), controls);
     ewl_widget_show(controls);
 
@@ -165,14 +165,14 @@
 
     {
         Control controls [] = {
-                   { "play", play_cb },
-                   { "stop", stop_cb },
-                   { "rewind", rew_cb },
-                   { "fast forward", ff_cb },
-                   { "open", open_cb },
-                   { NULL, NULL }
-               };
-       int i;
+            { "play", play_cb },
+            { "stop", stop_cb },
+            { "rewind", rew_cb },
+            { "fast forward", ff_cb },
+            { "open", open_cb },
+            { NULL, NULL }
+        };
+        int i;
 
         for(i = 0; controls[i].name != NULL; i++) {
             o = ewl_button_with_stock_new(controls[i].name);
@@ -191,7 +191,7 @@
     seeker = ewl_seeker_new(EWL_ORIENTATION_HORIZONTAL);
     ewl_container_child_append(EWL_CONTAINER(b), seeker);
     ewl_object_fill_policy_set(EWL_OBJECT(seeker), 
-                    EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
+                        EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
     ewl_seeker_value_set(EWL_SEEKER(seeker), 0.0);
     ewl_seeker_range_set(EWL_SEEKER(seeker), 0.0);
     ewl_seeker_step_set(EWL_SEEKER(seeker), 1.0);
===================================================================
RCS file: /cvsroot/enlightenment/e17/docs/ewlbook/xml/widgets.xml,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- widgets.xml 18 Aug 2004 05:42:49 -0000      1.10
+++ widgets.xml 22 Aug 2004 17:52:10 -0000      1.11
@@ -41,10 +41,10 @@
 <para>
 The functions to manipulate the boxes include:
 <itemizedlist mark="bullet" spacing="compact">
- <listitem><para><function>void ewl_box_set_orientation(Ewl_Box *, 
Ewl_Orientation)</function></para></listitem>
- <listitem><para><function>Ewl_Orientation ewl_box_get_orientation(Ewl_Box 
*)</function></para></listitem>
- <listitem><para><function>void ewl_box_set_spacing(Ewl_Box *, 
int)</function></para></listitem>
- <listitem><para><function>void ewl_box_set_homogeneous(Ewl_Box *, 
int)</function></para></listitem>
+ <listitem><para><function>void ewl_box_orientation_set(Ewl_Box *, 
Ewl_Orientation)</function></para></listitem>
+ <listitem><para><function>Ewl_Orientation ewl_box_orientation_get(Ewl_Box 
*)</function></para></listitem>
+ <listitem><para><function>void ewl_box_spacing_set(Ewl_Box *, 
int)</function></para></listitem>
+ <listitem><para><function>void ewl_box_homogeneous_set(Ewl_Box *, 
int)</function></para></listitem>
 </itemizedlist>
 
 The <literal>Ewl_Orientation</literal> flag can be one of:
@@ -55,8 +55,8 @@
 </para>
 
 <para>
-The <function>ewl_box_set_spacing()</function> will set the amount of spacing between 
the
-items in the box to the given value. While the 
<function>ewl_box_set_homogeneous()</function>
+The <function>ewl_box_spacing_set()</function> will set the amount of spacing between 
the
+items in the box to the given value. While the 
<function>ewl_box_homogeneous_set()</function>
 will set the box to give all items in it the same size if this is set to true, 
otherwise
 they will have their required size.
 </para>
@@ -116,8 +116,8 @@
 The label on a button can be manipulated after the button has been created through
 the two calls:
 <itemizedlist mark="bullet" spacing="compact">
- <listitem><para><function>char *ewl_button_get_label(EwlButton 
*)</function></para></listitem>
- <listitem><para><function>void ewl_button_set_label(EwlButton *, char 
*)</function></para></listitem>
+ <listitem><para><function>char *ewl_button_label_get(EwlButton 
*)</function></para></listitem>
+ <listitem><para><function>void ewl_button_label_set(EwlButton *, char 
*)</function></para></listitem>
 </itemizedlist>
 </para>
 </sect1>
@@ -157,10 +157,10 @@
  <title>Button Callback</title>
  <programlisting role="C">
 void checkbutton_cb(Ewl_Widget *w, void *event, void *data) {
-       if (ewl_checkbutton_is_checked(EWL_CHECKBUTTON(w)))
-           printf("checked\n");
-       else
-               printf("Not checked\n");
+    if (ewl_checkbutton_is_checked(EWL_CHECKBUTTON(w)))
+        printf("checked\n");
+    else
+        printf("Not checked\n");
 }
  </programlisting>
 </example>
@@ -192,7 +192,7 @@
  <programlisting role="C">
     Ewl_Widget *combo = ewl_combo_new("combo box");
     ewl_callback_append(combo, EWL_CALLBACK_VALUE_CHANGED, 
-                                           combo_change_cb, NULL);
+                                combo_change_cb, NULL);
     ewl_widget_show(combo);
 
     Ewl_widget *item1 = ewl_menu_item_new(NULL, "foo");
@@ -334,9 +334,9 @@
     int d = EWL_BUTTON_STOCK(w)->response_id;
 
     if (d == EWL_RESPONSE_OK)
-       printf("OK\n");
+        printf("OK\n");
     else if (d == EWL_RESPONSE_CANCEL)
-       printf("CANCEL\n");
+        printf("CANCEL\n");
 
     ewl_widget_destroy(EWL_WIDGET(data));
 }
@@ -448,7 +448,7 @@
   <programlisting role="C">
    Ewl_Widget *filedialog = ewl_filedialog_new(EWL_FILEDIALOG_TYPE_OPEN);
    ewl_callback_append(filedialog, EWL_CALLBACK_VALUE_CHANGED, 
-                                                       open_file_cb, NULL);
+                            open_file_cb, NULL);
    ewl_widget_show(filedialog);
   </programlisting>
  </example>
@@ -497,8 +497,8 @@
 <example>
 <title>Ewl_Image</title>
 <programlisting>
-       Ewl_Widget *i = ewl_image_new("/usr/foo/img.png", NULL);
-       ewl_widget_show(i);
+    Ewl_Widget *i = ewl_image_new("/usr/foo/img.png", NULL);
+    ewl_widget_show(i);
 </programlisting>
 </example>
 The <function>ewl_image_new()</function> function takes two parameters, the
@@ -542,8 +542,8 @@
 <sect1 id="sec-EwlPassword">
 <title>ewl_password</title>
 <para>
-The <literal>ewl_password</literal> widget provides similar functionality to
-the <literal>ewl_text</literal> widget, except that any text entered will
+The <literal>Ewl_Password</literal> widget provides similar functionality to
+the <literal>Ewl_Text</literal> widget, except that any text entered will
 not be displayed, instead a configurable obscuring character will be
 displayed.
 </para>
@@ -900,7 +900,7 @@
     char buf[512];
     int h, m;
     double s;
-                           
+                
     ewl_media_position_time_get(EWL_MEDIA(video), &amp;h, &amp;m, &amp;s);
     snprintf(buf, sizeof(buf), "%02i:%02i:%02.0f", h, m, s);
 }




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to