summaryrefslogtreecommitdiff
path: root/src/examples/theme_example_01.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-06-26 19:11:21 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-06-26 21:26:21 +0900
commitb927171ba2205fce75e95ea696c69bd20c70c885 (patch)
treeaf5a473a86f18381a5884759f0ddffbf9cf978e7 /src/examples/theme_example_01.c
parentf4d7ecaa95ae943a211575e55e365869eabe3a63 (diff)
examples: refactoring. use elm_win_util_standard_add() for normal cases. season 4.
now it's done :)
Diffstat (limited to 'src/examples/theme_example_01.c')
-rw-r--r--src/examples/theme_example_01.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/examples/theme_example_01.c b/src/examples/theme_example_01.c
index e848297..b8013d3 100644
--- a/src/examples/theme_example_01.c
+++ b/src/examples/theme_example_01.c
@@ -37,22 +37,17 @@ btn_style_click_cb(void *data, Evas_Object *btn, void *ev)
37EAPI_MAIN int 37EAPI_MAIN int
38elm_main(int argc, char *argv[]) 38elm_main(int argc, char *argv[])
39{ 39{
40 Evas_Object *win, *bg, *box, *btn; 40 Evas_Object *win, *box, *btn;
41 41
42 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 42 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
43 43
44 elm_theme_extension_add(NULL, "./theme_example.edj"); 44 elm_theme_extension_add(NULL, "./theme_example.edj");
45 45
46 win = elm_win_add(NULL, "Theme example", ELM_WIN_BASIC); 46 win = elm_win_util_standard_add("theme", "Theme example");
47 elm_win_autodel_set(win, EINA_TRUE); 47 elm_win_autodel_set(win, EINA_TRUE);
48 evas_object_resize(win, 300, 320); 48 evas_object_resize(win, 300, 320);
49 evas_object_show(win); 49 evas_object_show(win);
50 50
51 bg = elm_bg_add(win);
52 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
53 elm_win_resize_object_add(win, bg);
54 evas_object_show(bg);
55
56 box = elm_box_add(win); 51 box = elm_box_add(win);
57 evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 52 evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
58 elm_win_resize_object_add(win, box); 53 elm_win_resize_object_add(win, box);