aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_photo.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
commit7f2fc8ef80fbce254730f9823e356a9fdb215340 (patch)
tree7e339c26d0ebc9d662db18ff2a971a170572ce9f /legacy/elementary/src/bin/test_photo.c
parentRevert a wrong commit. Un-wanted files are committed together. (diff)
downloadefl-7f2fc8ef80fbce254730f9823e356a9fdb215340.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 'legacy/elementary/src/bin/test_photo.c')
-rw-r--r--legacy/elementary/src/bin/test_photo.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/legacy/elementary/src/bin/test_photo.c b/legacy/elementary/src/bin/test_photo.c
index 5276737d0a..5346b2e319 100644
--- a/legacy/elementary/src/bin/test_photo.c
+++ b/legacy/elementary/src/bin/test_photo.c
@@ -11,7 +11,7 @@ static void drag_start_cb(void *mydata, Evas_Object *obj, void *evdata);
void
test_photo(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *sc, *tb, *ph;
+ Evas_Object *win, *sc, *tb, *ph;
int i, j, n;
char buf[PATH_MAX];
const char *img[9] =
@@ -29,15 +29,9 @@ test_photo(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
elm_need_ethumb();
- win = elm_win_add(NULL, "photo", ELM_WIN_BASIC);
- elm_win_title_set(win, "Photo");
+ win = elm_win_util_standard_add("photo", "Photo");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);