diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2013-07-13 15:45:44 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2013-07-13 15:51:11 +0900 |
commit | acbf6034203cbfa0965226322db36e1350477e07 (patch) | |
tree | 13cc4bcd4fcdcf5e07973434e28e5db2b4d78ffb | |
parent | 6f6d903722e434b08807875090a7fe39899fb305 (diff) | |
download | elementary-acbf6034203cbfa0965226322db36e1350477e07.tar.gz |
elm_list.c: fixed elm_object_item_part_content_set bug with 'end' part in elm_list.
backport of 936a48c158ad1375ae7dd74236c1793c95393084.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/lib/elm_list.c | 7 |
3 files changed, 11 insertions, 1 deletions
@@ -827,3 +827,7 @@ 2013-06-13 Rafael Antognolli * Get the framespace from the theme. + +2013-07-13 Daniel Juyung Seo + + * Fix elm_object_item_part_content_set bug with end content in elm_list. @@ -158,6 +158,7 @@ Fixes: * Fix elm_transit image animation that last few frames are skipped. * FIx elm_transit to accept proxy object. * Fix a memory leak of elm_genlist - EINA_LIST_FREE should be used for returned value of elm_genlist_realized_items_get + * Fix elm_object_item_part_content_set bug with end content in elm_list. Changes since Elementary 1.0.0: ------------------------- diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 82dfb98a2..3a1b35278 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1236,7 +1236,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 * |