From: raster Date: Thu, 27 Oct 2011 04:57:06 +0000 (+0000) Subject: update docs for hello world to use simpler util win add call. X-Git-Tag: REL_F_I9500_20120323_1~17^2~1480 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=126e52ca78275effd18109db14f941b4bba6f5a1;p=framework%2Fuifw%2Felementary.git update docs for hello world to use simpler util win add call. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64420 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 806ef10..e76b41c 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -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);