summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-29 11:09:34 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-29 11:09:34 +0000
commit6733c92556a10aec76a4cfe20b846c4f68d39df4 (patch)
tree8dfc6f37884b73c1656d8cda331f083a9375dfe2 /legacy/elementary
parent3d15654faaab6c4d7e181a2ea3d36515788fa462 (diff)
elm genlist: Fixed _item_content_set_hook. Use _item_content_unset_hook internally.
SVN revision: 69742
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/lib/elm_genlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c
index 0fc3e33ad8..6a1aaffc4b 100644
--- a/legacy/elementary/src/lib/elm_genlist.c
+++ b/legacy/elementary/src/lib/elm_genlist.c
@@ -136,6 +136,7 @@ static Eina_Bool _item_multi_select_up(Widget_Data *wd);
136static Eina_Bool _item_multi_select_down(Widget_Data *wd); 136static Eina_Bool _item_multi_select_down(Widget_Data *wd);
137static Eina_Bool _item_single_select_up(Widget_Data *wd); 137static Eina_Bool _item_single_select_up(Widget_Data *wd);
138static Eina_Bool _item_single_select_down(Widget_Data *wd); 138static Eina_Bool _item_single_select_down(Widget_Data *wd);
139static Evas_Object * _item_content_unset_hook(Elm_Gen_Item *it, const char *part);
139static Eina_Bool _event_hook(Evas_Object *obj, 140static Eina_Bool _event_hook(Evas_Object *obj,
140 Evas_Object *src, 141 Evas_Object *src,
141 Evas_Callback_Type type, 142 Evas_Callback_Type type,
@@ -3589,7 +3590,7 @@ _item_content_set_hook(Elm_Gen_Item *it, const char *part, Evas_Object *content)
3589 if (content && part) 3590 if (content && part)
3590 { 3591 {
3591 if (eina_list_data_find(it->content_objs, content)) return; 3592 if (eina_list_data_find(it->content_objs, content)) return;
3592 prev_obj = edje_object_part_swallow_get(VIEW(it), part); 3593 prev_obj = _item_content_unset_hook(it, part);
3593 if (prev_obj) evas_object_del(prev_obj); 3594 if (prev_obj) evas_object_del(prev_obj);
3594 it->content_objs = eina_list_append(it->content_objs, content); 3595 it->content_objs = eina_list_append(it->content_objs, content);
3595 edje_object_part_swallow(VIEW(it), part, content); 3596 edje_object_part_swallow(VIEW(it), part, content);