Dear All, Hello.
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.
The attached patch is for this. Please review the patch and give any
feedbacks. Thanks.
Sincerely,
Shinwoo Kim.
Index: src/lib/elm_list.c
===================================================================
--- src/lib/elm_list.c (revision 69512)
+++ src/lib/elm_list.c (working copy)
@@ -1042,15 +1042,15 @@ _item_content_set(Elm_Object_Item *it, const char
{
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;
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel