From: Daniel Juyung Seo Date: Tue, 23 Oct 2012 06:03:55 +0000 (+0000) Subject: elm notify_example_01.c: Refactoring. X-Git-Tag: submit/efl/20131021.015827~1613 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a888d04a4b048cf226bd3c0da799babf3685f4f;p=platform%2Fupstream%2Felementary.git elm notify_example_01.c: Refactoring. SVN revision: 78352 --- diff --git a/src/examples/notify_example_01.c b/src/examples/notify_example_01.c index 28456f8..4082e39 100644 --- a/src/examples/notify_example_01.c +++ b/src/examples/notify_example_01.c @@ -10,20 +10,13 @@ elm_main(int argc, char **argv) { Evas_Object *win, *bg, *bx, *notify, *content; - win = elm_win_add(NULL, "notify", ELM_WIN_BASIC); - elm_win_title_set(win, "Notify"); + win = elm_win_util_standard_add("notify", "Notify"); elm_win_autodel_set(win, EINA_TRUE); elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); - bg = elm_bg_add(win); - evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_win_resize_object_add(win, bg); - evas_object_show(bg); - bx = elm_box_add(win); elm_box_horizontal_set(bx, EINA_FALSE); evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_win_resize_object_add(win, bx); evas_object_show(bx);