update docs for hello world to use simpler util win add call.

SVN revision: 64420
This commit is contained in:
Carsten Haitzler 2011-10-27 04:57:06 +00:00
parent e9a1d80e4a
commit d854811815
1 changed files with 2 additions and 10 deletions

View 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);