seoz pushed a commit to branch elementary-1.7.
commit acbf6034203cbfa0965226322db36e1350477e07
Author: Daniel Juyung Seo <[email protected]>
Date: Sat Jul 13 15:45:44 2013 +0900
elm_list.c: fixed elm_object_item_part_content_set bug with 'end' part in
elm_list.
backport of 936a48c158ad1375ae7dd74236c1793c95393084.
---
ChangeLog | 4 ++++
NEWS | 1 +
src/lib/elm_list.c | 7 ++++++-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 3862714..b1bac10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/NEWS b/NEWS
index a21771f..5d84f19 100644
--- a/NEWS
+++ b/NEWS
@@ -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 82dfb98..3a1b352 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 *
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk