summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-10-27 04:57:06 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-10-27 04:57:06 +0000
commitd854811815432ac839a7d739e8e483f8a9adaeee (patch)
tree66b94cb80ac68339e7f24845624ea15496790fe0 /legacy
parente9a1d80e4ac7a53e19bbc55e4c72d49999757040 (diff)
update docs for hello world to use simpler util win add call.
SVN revision: 64420
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/Elementary.h.in12
1 files changed, 2 insertions, 10 deletions
diff --git a/legacy/elementary/src/lib/Elementary.h.in b/legacy/elementary/src/lib/Elementary.h.in
index 806ef107f2..e76b41c6e3 100644
--- a/legacy/elementary/src/lib/Elementary.h.in
+++ b/legacy/elementary/src/lib/Elementary.h.in
@@ -195,19 +195,11 @@ elm_main(int argc, char **argv)
195{ 195{
196 Evas_Object *win, *bg, *box, *lab, *btn; 196 Evas_Object *win, *bg, *box, *lab, *btn;
197 197
198 // new window - do the usual and give it a name, title and delete handler 198 // new window - do the usual and give it a name (hello) and title (Hello)
199 win = elm_win_add(NULL, "hello", ELM_WIN_BASIC); 199 win = elm_win_util_standard_add("hello", "Hello");
200 elm_win_title_set(win, "Hello");
201 // when the user clicks "close" on a window there is a request to delete 200 // when the user clicks "close" on a window there is a request to delete
202 evas_object_smart_callback_add(win, "delete,request", on_done, NULL); 201 evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
203 202
204 // add a standard bg
205 bg = elm_bg_add(win);
206 // add object as a resize object for the window (controls window minimum
207 // size as well as gets resized if window is resized)
208 elm_win_resize_object_add(win, bg);
209 evas_object_show(bg);
210
211 // add a box object - default is vertical. a box holds children in a row, 203 // add a box object - default is vertical. a box holds children in a row,
212 // either horizontally or vertically. nothing more. 204 // either horizontally or vertically. nothing more.
213 box = elm_box_add(win); 205 box = elm_box_add(win);