summaryrefslogtreecommitdiff
path: root/src/examples/dayselector_example.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-06-26 12:06:34 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-06-26 15:16:08 +0900
commit1f7d2efe339ccd742ccfad98da3667be4d2edece (patch)
tree94615ae5f7a885bddc112c9a9df7160e79ba8bc1 /src/examples/dayselector_example.c
parentc8d56d3c887d56cb86e7f9daca899035481bbc72 (diff)
examples: refactoring. use elm_win_util_standard_add() for normal cases.
Diffstat (limited to 'src/examples/dayselector_example.c')
-rw-r--r--src/examples/dayselector_example.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/examples/dayselector_example.c b/src/examples/dayselector_example.c
index 6c1e8ee..2269145 100644
--- a/src/examples/dayselector_example.c
+++ b/src/examples/dayselector_example.c
@@ -40,19 +40,13 @@ static void _changed_cb(void* data, Evas_Object* obj, void* event_info)
40EAPI_MAIN int 40EAPI_MAIN int
41elm_main(int argc, char **argv) 41elm_main(int argc, char **argv)
42{ 42{
43 Evas_Object *win, *bg, *bx, *dayselector; 43 Evas_Object *win, *bx, *dayselector;
44 44
45 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 45 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
46 46
47 win = elm_win_add(NULL, "dayselector", ELM_WIN_BASIC); 47 win = elm_win_util_standard_add("dayselector", "Dayselector Example");
48 elm_win_title_set(win, "Dayselector Example");
49 elm_win_autodel_set(win, EINA_TRUE); 48 elm_win_autodel_set(win, EINA_TRUE);
50 49
51 bg = elm_bg_add(win);
52 elm_win_resize_object_add(win, bg);
53 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
54 evas_object_show(bg);
55
56 bx = elm_box_add(win); 50 bx = elm_box_add(win);
57 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 51 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
58 elm_win_resize_object_add(win, bx); 52 elm_win_resize_object_add(win, bx);