From 2b486ab4ef08715e736d3be56d90f1a9fd9b3889 Mon Sep 17 00:00:00 2001 From: hermet Date: Sun, 13 Feb 2011 04:15:52 +0000 Subject: [PATCH] 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 --- src/lib/elc_ctxpopup.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) 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. * -- 2.7.4