From 782cc72e6700c4629af35a356551757f3951b059 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 3 Dec 2012 16:26:46 +0000 Subject: [PATCH] elm test_hoversel.c: Remove unset icons. SVN revision: 80080 --- src/bin/test_hoversel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/test_hoversel.c b/src/bin/test_hoversel.c index 7c227f6..ff6e726 100644 --- a/src/bin/test_hoversel.c +++ b/src/bin/test_hoversel.c @@ -26,6 +26,8 @@ typedef enum _api_state api_state; static void set_api_state(api_data *api) { + Evas_Object *icon; + const Eina_List *items = elm_box_children_get(api->box); if (!eina_list_count(items)) return; @@ -49,7 +51,8 @@ set_api_state(api_data *api) case HOVERSEL_ICON_UNSET: /* 3 */ elm_object_text_set(eina_list_nth(items, 5), "Label only"); - elm_object_part_content_unset(eina_list_nth(items, 5), "icon"); + icon = elm_object_part_content_unset(eina_list_nth(items, 5), "icon"); + evas_object_del(icon); break; case HOVERSEL_CLEAR_OPEN: /* 4 */ -- 2.7.4