elm_list.c: fixed elm_object_item_part_content_set bug with 'end' part in elm_list.

This commit is contained in:
Daniel Juyung Seo 2013-07-13 15:45:44 +09:00
parent d659ee012e
commit a0605b196c
3 changed files with 11 additions and 1 deletions

View File

@ -1499,3 +1499,7 @@
2013-07-12 Guilherme Íscaro
* Add elm_dayselector_wekdays_names_set/get
2013-07-13 Daniel Juyung Seo
* Fix elm_object_item_part_content_set bug with end content in elm_list.

View File

@ -260,6 +260,7 @@ Fixes:
* Fix crash of elm_notify when timeout is zero.
* Fix Segfault in elementary file_selector_example when closed
* Fix Showing multiple popups in Entry.
* Fix elm_object_item_part_content_set bug with end content in elm_list.
Removals:

View File

@ -1348,7 +1348,12 @@ _item_content_set_hook(Elm_Object_Item *it,
*icon_p = content;
if (VIEW(item))
edje_object_part_swallow(VIEW(item), "elm.swallow.icon", content);
{
if (!strcmp(part, "start"))
edje_object_part_swallow(VIEW(item), "elm.swallow.icon", content);
else
edje_object_part_swallow(VIEW(item), "elm.swallow.end", content);
}
}
static Evas_Object *