update docs for hello world to use simpler util win add call.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 27 Oct 2011 04:57:06 +0000 (04:57 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 27 Oct 2011 04:57:06 +0000 (04:57 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64420 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Elementary.h.in

index 806ef10..e76b41c 100644 (file)
@@ -195,19 +195,11 @@ elm_main(int argc, char **argv)
 {
    Evas_Object *win, *bg, *box, *lab, *btn;
 
-   // new window - do the usual and give it a name, title and delete handler
-   win = elm_win_add(NULL, "hello", ELM_WIN_BASIC);
-   elm_win_title_set(win, "Hello");
+   // new window - do the usual and give it a name (hello) and title (Hello)
+   win = elm_win_util_standard_add("hello", "Hello");
    // when the user clicks "close" on a window there is a request to delete
    evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
 
-   // add a standard bg
-   bg = elm_bg_add(win);
-   // add object as a resize object for the window (controls window minimum
-   // size as well as gets resized if window is resized)
-   elm_win_resize_object_add(win, bg);
-   evas_object_show(bg);
-
    // add a box object - default is vertical. a box holds children in a row,
    // either horizontally or vertically. nothing more.
    box = elm_box_add(win);