Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : docs

Dir     : e17/docs/ewlbook/xml/widgets


Modified Files:
        other_widgets.xml 


Log Message:
- some fixups and corrections by deekray. Thanks.

===================================================================
RCS file: /cvsroot/enlightenment/e17/docs/ewlbook/xml/widgets/other_widgets.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- other_widgets.xml   13 Oct 2004 04:07:39 -0000      1.1
+++ other_widgets.xml   13 Oct 2004 15:34:34 -0000      1.2
@@ -25,8 +25,8 @@
                                 combo_change_cb, NULL);
     ewl_widget_show(combo);
 
-    Ewl_widget *item1 = ewl_menu_item_new(NULL, "foo");
-    ewl_container_child_append(EWL_CONTAINER(combo));
+    Ewl_Widget *item1 = ewl_menu_item_new(NULL, "foo");
+    ewl_container_child_append(EWL_CONTAINER(combo), item1);
     ewl_widget_show(item1);
  </programlisting>
 </example>
@@ -86,12 +86,12 @@
     ewl_object_alignment_set(EWL_OBJECT(dialog), EWL_FLAG_ALIGN_CENTER);
     ewl_widget_show(dialog);
 
-    o = ewl_dialog_set_button(EWL_STOCK_OK, EWL_RESPONSE_OK);
+    o = ewl_dialog_button_add(EWL_DIALOG(dialog),"OK", EWL_RESPONSE_OK);
     ewl_container_child_append(EWL_CONTAINER(dialog), o);
     ewl_callback_append(o, EWL_CALLBACK_CLICKED, dialog_clicked_cb, dialog);
     ewl_widget_show(o);
 
-    o = ewl_dialog_set_button(EWL_STOCK_CANCEL, EWL_RESPONSE_CANCEL);
+    o = ewl_dialog_button_left_add(EWL_DIALOG(dialog),"Cancel", EWL_RESPONSE_CANCEL);
     ewl_container_child_append(EWL_CONTAINER(dialog), o);
     ewl_callback_append(o, EWL_CALLBACK_CLICKED, dialog_clicked_cb, dialog);
     ewl_widget_show(o);
@@ -125,11 +125,12 @@
 </para>
 
 <para>
-Once the dialog is initialized we need to create any desired buttons. The
-buttons are created by calling <function>ewl_dialog_button_set()</function>
-this will create a button. The parameters are the label of the button and
-the response code to return from the button. There are several pre-defined
-labels, including:
+Once the dialog is initialized we need to create the desired buttons. The
+buttons are created by calling <function>ewl_dialog_button_add()</function>
+for the 'OK' button and <function>ewl_dialog_button_left_add()</function>
+for the 'Cancel' button. The parameters are the dialog, the label of the 
+button and the response code to return from the button. There are several 
+pre-defined labels available, including:
 <itemizedlist mark="bullet" spacing="compact">
  <listitem><para>EWL_STOCK_OK</para></listitem>
  <listitem><para>EWL_STOCK_APPLY</para></listitem>




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to