summaryrefslogtreecommitdiff
path: root/src/examples/notify_example_01.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-10-23 06:03:55 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-10-23 06:03:55 +0000
commit1a888d04a4b048cf226bd3c0da799babf3685f4f (patch)
tree065aee5167299ea31c32f0b4539fdaf03d2d202e /src/examples/notify_example_01.c
parent5d99cf3804b6fec5003f8f770f858f08b912eebc (diff)
elm notify_example_01.c: Refactoring.
SVN revision: 78352
Diffstat (limited to 'src/examples/notify_example_01.c')
-rw-r--r--src/examples/notify_example_01.c9
1 files changed, 1 insertions, 8 deletions
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)
10{ 10{
11 Evas_Object *win, *bg, *bx, *notify, *content; 11 Evas_Object *win, *bg, *bx, *notify, *content;
12 12
13 win = elm_win_add(NULL, "notify", ELM_WIN_BASIC); 13 win = elm_win_util_standard_add("notify", "Notify");
14 elm_win_title_set(win, "Notify");
15 elm_win_autodel_set(win, EINA_TRUE); 14 elm_win_autodel_set(win, EINA_TRUE);
16 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 15 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
17 16
18 bg = elm_bg_add(win);
19 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
20 elm_win_resize_object_add(win, bg);
21 evas_object_show(bg);
22
23 bx = elm_box_add(win); 17 bx = elm_box_add(win);
24 elm_box_horizontal_set(bx, EINA_FALSE); 18 elm_box_horizontal_set(bx, EINA_FALSE);
25 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 19 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
26 evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL);
27 elm_win_resize_object_add(win, bx); 20 elm_win_resize_object_add(win, bx);
28 evas_object_show(bx); 21 evas_object_show(bx);
29 22