summaryrefslogtreecommitdiff
path: root/src/bin/test_popup.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:20:28 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:20:28 +0000
commit3085f124435df774eb52ffdeebfc7f611beeee47 (patch)
tree49be23d780ea7e8f59be26fc00a72e78d6aa239c /src/bin/test_popup.c
parentf309fe2e6286e44e62b272ba25726bf32053be68 (diff)
downloadelementary-3085f124435df774eb52ffdeebfc7f611beeee47.tar.gz
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
Diffstat (limited to 'src/bin/test_popup.c')
-rw-r--r--src/bin/test_popup.c10
1 files changed, 2 insertions, 8 deletions
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);