From: hermet Date: Sun, 13 Feb 2011 04:15:52 +0000 (+0000) Subject: elementary/ctxpopup - just moved function position in code line. X-Git-Tag: REL_F_I9500_20120323_1~17^2~3173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b486ab4ef08715e736d3be56d90f1a9fd9b3889;p=framework%2Fuifw%2Felementary.git elementary/ctxpopup - just moved function position in code line. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@56977 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index a3939c9..e98aedd 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -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. *