elementary/ctxpopup - just moved function position in code line.

SVN revision: 56977
This commit is contained in:
ChunEon Park 2011-02-13 04:15:52 +00:00
parent 6eabf29744
commit 01999d43f6
1 changed files with 22 additions and 22 deletions

View File

@ -932,6 +932,28 @@ _list_new(Evas_Object *obj)
elm_ctxpopup_horizontal_set(obj, wd->horizontal);
}
static void
_remove_items(Widget_Data *wd)
{
Eina_List *elist;
Elm_Ctxpopup_Item *item;
if (!wd->items)
return;
EINA_LIST_FOREACH(wd->items, elist, item)
{
if (item->label)
eina_stringshare_del(item->label);
if (item->icon)
evas_object_del(item->icon);
wd->items = eina_list_remove(wd->items, item);
free(item);
}
wd->items = NULL;
}
/**
* Add a new Ctxpopup object to the parent.
*
@ -1164,28 +1186,6 @@ elm_ctxpopup_hover_parent_get(const Evas_Object *obj)
return wd->hover_parent;
}
static void
_remove_items(Widget_Data *wd)
{
Eina_List *elist;
Elm_Ctxpopup_Item *item;
if (!wd->items)
return;
EINA_LIST_FOREACH(wd->items, elist, item)
{
if (item->label)
eina_stringshare_del(item->label);
if (item->icon)
evas_object_del(item->icon);
wd->items = eina_list_remove(wd->items, item);
free(item);
}
wd->items = NULL;
}
/**
* Clear all items in the given ctxpopup object.
*