Enlightenment CVS committal
Author : dj2
Project : e17
Module : docs
Dir : e17/docs/ewlbook/examples/hello_world
Modified Files:
main.c
Log Message:
sync EWL API changes
add some extra text in the widget packing section along with a diagram of
padding/insets for widgets
add the svg files for the image that i've made
===================================================================
RCS file: /cvsroot/enlightenment/e17/docs/ewlbook/examples/hello_world/main.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- main.c 13 Aug 2004 01:17:11 -0000 1.3
+++ main.c 18 Aug 2004 05:42:47 -0000 1.4
@@ -35,22 +35,22 @@
/* create the window */
win = ewl_window_new();
- ewl_window_set_title(EWL_WINDOW(win), "Hello world");
- ewl_window_set_class(EWL_WINDOW(win), "hello");
- ewl_window_set_name(EWL_WINDOW(win), "hello");
+ ewl_window_title_set(EWL_WINDOW(win), "Hello world");
+ ewl_window_class_set(EWL_WINDOW(win), "hello");
+ ewl_window_name_set(EWL_WINDOW(win), "hello");
ewl_object_size_request(EWL_OBJECT(win), 200, 50);
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
ewl_widget_show(win);
/* create the container */
box = ewl_vbox_new();
- ewl_container_append_child(EWL_CONTAINER(win), box);
+ ewl_container_child_append(EWL_CONTAINER(win), box);
ewl_object_fill_policy_set(EWL_OBJECT(box), EWL_FLAG_FILL_ALL);
ewl_widget_show(box);
/* create text label */
label = ewl_text_new(NULL);
- ewl_container_append_child(EWL_CONTAINER(box), label);
+ 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_color_set(EWL_TEXT(label), 255, 0, 0, 255);
@@ -59,7 +59,7 @@
/* create the entry */
o = ewl_entry_new("");
- ewl_container_append_child(EWL_CONTAINER(box), o);
+ 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_text_color_set(EWL_TEXT(EWL_ENTRY(o)->text), 0, 0, 0, 255);
-------------------------------------------------------
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