From d71077e9a40667cd64a1c2451051c740df6ea7f5 Mon Sep 17 00:00:00 2001 From: JinYong Park Date: Wed, 31 May 2017 16:40:02 +0900 Subject: [PATCH] popup: remove previous object when content set NULL Other widget removes previous object when set content NULL, but popup do nothing. Of course using content_unset is able to remove previous object, content_set(NULL) should be availalbe to remove that object for uniformity of the entire widget. @fix https://phab.enlightenment.org/D4885 Change-Id: I34d4f2be8ba04ac54c70b1f30d0c4a2478075eff Signed-off-by: Jinyong Park --- src/lib/elc_popup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c index 83b9ba1..147087c 100644 --- a/src/lib/elc_popup.c +++ b/src/lib/elc_popup.c @@ -1560,7 +1560,9 @@ _content_set(Evas_Object *obj, _list_del(sd); } + evas_object_del(sd->content); sd->content = content; + if (content) { if (!sd->scroll) -- 2.7.4