From fc3cdda6eb8181878d5c9cb438dd5d7613ef8f67 Mon Sep 17 00:00:00 2001 From: raster Date: Wed, 21 Mar 2012 10:41:42 +0000 Subject: [PATCH] [list] Opensource Merge (r69535) Subject: [E-devel] [Patch][elementary] elm_list.c - item_content_set() related. The Eina_Bool item->dummy_icon and item->dummy_end of Elm_List_Item indicate whether the content has REAL object or not. - "not" means.. if elm_object_item_part_content_set(); is called with NULL content, the Elm_List set the swallow part with rectangle which has alpha value 0 and the item->dummy_icon or item->dummy_end is set to EINA_TRUE. - But in the item_content_set(); it works the opposite way. So when content set with NULL value the flag should be EINA_TRUE. Change-Id: Ibfd12197a56d751592ca1261e8772c4f9ce954f9 git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69535 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_list.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 75d7e15..dd6e939 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1042,15 +1042,15 @@ _item_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content) { icon_p = &(item->icon); dummy = item->dummy_icon; - if (!content) item->dummy_icon = EINA_FALSE; - else item->dummy_icon = EINA_TRUE; + if (!content) item->dummy_icon = EINA_TRUE; + else item->dummy_icon = EINA_FALSE; } else if (!strcmp(part, "end")) { icon_p = &(item->end); dummy = item->dummy_end; - if (!content) item->dummy_end = EINA_FALSE; - else item->dummy_end = EINA_TRUE; + if (!content) item->dummy_end = EINA_TRUE; + else item->dummy_end = EINA_FALSE; } else return; -- 2.7.4