aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_multibuttonentry.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:07:58 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:07:58 +0000
commitb4308ab0892018db44d2949c3e3362e57482513a (patch)
treeff3a1eb96043745b04b9dd717d5656248332cce4 /legacy/elementary/src/bin/test_multibuttonentry.c
parentelementary/dayselector - pretty better. (diff)
downloadefl-b4308ab0892018db44d2949c3e3362e57482513a.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: 69845
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/bin/test_multibuttonentry.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/legacy/elementary/src/bin/test_multibuttonentry.c b/legacy/elementary/src/bin/test_multibuttonentry.c
index d530ae9993..d5d983cc12 100644
--- a/legacy/elementary/src/bin/test_multibuttonentry.c
+++ b/legacy/elementary/src/bin/test_multibuttonentry.c
@@ -199,19 +199,13 @@ test_multibuttonentry(void *data __UNUSED__,
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *sc, *bx;
+ Evas_Object *win, *sc, *bx;
Evas_Object *ly;
char buf[PATH_MAX];
- win = elm_win_add(NULL, "Multibuttonentry", ELM_WIN_BASIC);
- elm_win_title_set(win, "Multibuttonentry");
+ win = elm_win_util_standard_add("multibuttonentry", "MultiButtonEntry");
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);
-
ly = elm_layout_add(win);
snprintf(buf, sizeof(buf), "%s/objects/multibuttonentry.edj", elm_app_data_dir_get());
elm_layout_file_set(ly, buf, "multibuttonentry_test");