From 3085f124435df774eb52ffdeebfc7f611beeee47 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 2 Apr 2012 06:20:28 +0000 Subject: elm bin: Use convenient utility function elm_win_util_standard_add() instead of elm_win_add() + elm_bg_add(). This is for normal style (ELM_WIN_BASIC) window. SVN revision: 69848 --- src/bin/test_popup.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/bin/test_popup.c') diff --git a/src/bin/test_popup.c b/src/bin/test_popup.c index b4effe714..54ee314a9 100644 --- a/src/bin/test_popup.c +++ b/src/bin/test_popup.c @@ -271,17 +271,11 @@ void test_popup(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) { - Evas_Object *win, *bg, *list; + Evas_Object *win, *list; - win = elm_win_add(NULL, "popup", ELM_WIN_BASIC); - elm_win_title_set(win, "popup"); + win = elm_win_util_standard_add("popup", "Popup"); elm_win_autodel_set(win, EINA_TRUE); - bg = elm_bg_add(win); - elm_win_resize_object_add(win, bg); - evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_show(bg); - list = elm_list_add(win); elm_win_resize_object_add(win, list); elm_list_mode_set(list, ELM_LIST_LIMIT); -- cgit v1.2.1