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
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