From: hermet Date: Mon, 12 Sep 2011 09:22:36 +0000 (+0000) Subject: elementary/ctxpopup - minor changes. X-Git-Tag: REL_F_I9500_20120323_1~17^2~1812 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af8aa5730861ce0a6a9e648bb44e6c44b19c3dc6;p=framework%2Fuifw%2Felementary.git elementary/ctxpopup - minor changes. used elm_widget_item_del. and should be hidden when list is empty git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63345 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index ced1784..ac144ae 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -1351,15 +1351,19 @@ elm_ctxpopup_item_del(Elm_Object_Item *it) wd->items = eina_list_remove(wd->items, ctxpopup_it); - if (eina_list_count(wd->items) < 1) - wd->items = NULL; - wd->dir = ELM_CTXPOPUP_DIRECTION_DONT_KNOW; + elm_widget_item_del(ctxpopup_it); + + if (eina_list_count(wd->items) < 1) + { + evas_object_hide(ctxpopup_it->base.widget); + return; + } + if (wd->visible) _sizing_eval(ctxpopup_it->base.widget); - free(ctxpopup_it); } EAPI void