elementary/ctxpopup - just moved function position in code line.
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 13 Feb 2011 04:15:52 +0000 (04:15 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 13 Feb 2011 04:15:52 +0000 (04:15 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@56977 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_ctxpopup.c

index a3939c9..e98aedd 100644 (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.
  *