[list] Opensource Merge (r69535)
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Mar 2012 10:41:42 +0000 (10:41 +0000)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 23 Mar 2012 05:52:41 +0000 (14:52 +0900)
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

index 75d7e15..dd6e939 100644 (file)
@@ -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;