seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=3c8cf8d429f0ed621b51cbe2f700e376a6b92a07

commit 3c8cf8d429f0ed621b51cbe2f700e376a6b92a07
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Fri Jan 16 05:00:11 2015 +0900

    test_icon: Clean up icon standard sample.
    
    - Do not set unnecessary min size for the icons. Just follow list's item
    size naturally.
    - Do not free unnecessary list which was already freed by
    EINA_LIST_FREE.
    - Do not set align for the window resize object which is not required to
    be set.
    - Follow conventional way of pointer declaration.
---
 src/bin/test_icon.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/bin/test_icon.c b/src/bin/test_icon.c
index b98d133..0245111 100644
--- a/src/bin/test_icon.c
+++ b/src/bin/test_icon.c
@@ -149,7 +149,7 @@ static void
 _standard_list_populate(Evas_Object *list, Elm_Icon_Lookup_Order order)
 {
    Evas_Object *ic;
-   Eina_List* l;
+   Eina_List *l;
    const char *group;
    char name[128], *p;
 
@@ -170,13 +170,11 @@ _standard_list_populate(Evas_Object *list, 
Elm_Icon_Lookup_Order order)
                ic = elm_icon_add(list);
                elm_icon_order_lookup_set(ic, order);
                elm_icon_standard_set(ic, name);
-               evas_object_size_hint_min_set(ic, 32, 32);
                elm_list_item_append(list, name, ic, NULL, NULL, NULL);
            }
 
          eina_stringshare_del(group);
      }
-   eina_list_free(l);
    elm_list_go(list);
 }
 
@@ -192,13 +190,11 @@ test_icon_standard(void *data EINA_UNUSED, Evas_Object 
*obj EINA_UNUSED, void *e
 {
    Evas_Object *win, *li, *box, *hbox, *fr, *rd, *rdg;
 
-
    win = elm_win_util_standard_add("icon-test-std", "Icon Standard");
    elm_win_autodel_set(win, EINA_TRUE);
 
    box = elm_box_add(win);
    evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL);
    elm_win_resize_object_add(win, box);
    evas_object_show(box);
 

-- 


Reply via email to