seoz pushed a commit to branch master.

commit e632f097ae2f5dad922b1e421873402d66cc7f89
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed Jun 26 11:02:44 2013 +0900

    list_example_02.c: remove box. box is not needed in this example.
---
 src/examples/list_example_02.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/src/examples/list_example_02.c b/src/examples/list_example_02.c
index d68cbeb..e6a430d 100644
--- a/src/examples/list_example_02.c
+++ b/src/examples/list_example_02.c
@@ -14,7 +14,7 @@
 EAPI_MAIN int
 elm_main(int argc, char **argv)
 {
-   Evas_Object *win, *bg, *bx, *li;
+   Evas_Object *win, *bg, *li;
    unsigned int i;
    static const char *lbl[] =
      {
@@ -38,17 +38,11 @@ elm_main(int argc, char **argv)
    evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_show(bg);
 
-   bx = elm_box_add(win);
-   evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   elm_win_resize_object_add(win, bx);
-   evas_object_show(bx);
-
    /* default */
    li = elm_list_add(win);
    evas_object_size_hint_weight_set(li, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   evas_object_size_hint_align_set(li, EVAS_HINT_FILL, EVAS_HINT_FILL);
-   elm_box_pack_end(bx, li);
+   elm_win_resize_object_add(win, li);
+
    for (i = 0; i < sizeof(lbl) / sizeof(lbl[0]); i++)
      elm_list_item_append(li, lbl[i], NULL, NULL, NULL, NULL);
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to