summaryrefslogtreecommitdiff
path: root/src/examples/calendar_example_06.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/calendar_example_06.c
parentc8d56d3c887d56cb86e7f9daca899035481bbc72 (diff)
examples: refactoring. use elm_win_util_standard_add() for normal cases.
Diffstat (limited to 'src/examples/calendar_example_06.c')
-rw-r--r--src/examples/calendar_example_06.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/examples/calendar_example_06.c b/src/examples/calendar_example_06.c
index 192aed3..ce9d278 100644
--- a/src/examples/calendar_example_06.c
+++ b/src/examples/calendar_example_06.c
@@ -23,7 +23,7 @@ _btn_clear_cb(void *data, Evas_Object *btn, void *ev)
23EAPI_MAIN int 23EAPI_MAIN int
24elm_main(int argc, char **argv) 24elm_main(int argc, char **argv)
25{ 25{
26 Evas_Object *win, *bg, *bt, *bx, *cal; 26 Evas_Object *win, *bt, *bx, *cal;
27 Elm_Calendar_Mark *mark; 27 Elm_Calendar_Mark *mark;
28 struct tm selected_time; 28 struct tm selected_time;
29 time_t current_time; 29 time_t current_time;
@@ -35,16 +35,10 @@ elm_main(int argc, char **argv)
35 /* months since Jan, in the range 0 to 11 */ 35 /* months since Jan, in the range 0 to 11 */
36 christmas.tm_mon = 11; 36 christmas.tm_mon = 11;
37 37
38 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC); 38 win = elm_win_util_standard_add("calendar", "Calendar Marks Example");
39 elm_win_title_set(win, "Calendar Marks Example");
40 elm_win_autodel_set(win, EINA_TRUE); 39 elm_win_autodel_set(win, EINA_TRUE);
41 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 40 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
42 41
43 bg = elm_bg_add(win);
44 elm_win_resize_object_add(win, bg);
45 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
46 evas_object_show(bg);
47
48 bx = elm_box_add(win); 42 bx = elm_box_add(win);
49 elm_win_resize_object_add(win, bx); 43 elm_win_resize_object_add(win, bx);
50 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 44 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);