From: Hyoyoung Chang Date: Wed, 30 May 2012 08:09:09 +0000 (+0000) Subject: elementary/genlist: clean up codes X-Git-Tag: v1.7.0~568 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=154a5aefd11e64442a7c84021ee916205b71c054;p=platform%2Fupstream%2Felementary.git elementary/genlist: clean up codes SVN revision: 71541 --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index f8f3343..b9210d4 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1846,14 +1846,15 @@ _item_mode_content_realize(Elm_Gen_Item *it, { const Eina_List *l; const char *key; + Evas_Object *ic; EINA_LIST_FOREACH(*source, l, key) { if (parts && fnmatch(parts, key, FNM_PERIOD)) continue; - Evas_Object *ic = it->itc->func.content_get - ((void *)it->base.data, WIDGET(it), l->data); + ic = it->itc->func.content_get + ((void *)it->base.data, WIDGET(it), key); if (ic) { @@ -1861,11 +1862,8 @@ _item_mode_content_realize(Elm_Gen_Item *it, edje_object_part_swallow(target, key, ic); evas_object_show(ic); elm_widget_sub_object_add(WIDGET(it), ic); - if (it->item->deco_it_view || it->wd->decorate_all_mode) - { - if (elm_widget_item_disabled_get(it)) - elm_widget_disabled_set(ic, EINA_TRUE); - } + if (elm_widget_item_disabled_get(it)) + elm_widget_disabled_set(ic, EINA_TRUE); } } }