elementary/elm_object_item - expose elm_object_item_del().
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 9 Jan 2012 10:48:06 +0000 (10:48 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 9 Jan 2012 10:48:06 +0000 (10:48 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@66992 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_list.h
src/lib/elm_main.c
src/lib/elm_object_item.h

index 647e13b..920c7f0 100644 (file)
@@ -704,7 +704,7 @@ EAPI void                         elm_list_item_show(Elm_List_Item *item);
 EAPI void                         elm_list_item_bring_in(Elm_List_Item *item);
 
 /**
- * Delete them item from the list.
+ * Delete the item from the list.
  *
  * @param item The item of list to be deleted.
  *
index eea8745..9d12f3e 100644 (file)
@@ -2134,6 +2134,11 @@ EAPI void elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb)
    _elm_widget_item_del_cb_set((Elm_Widget_Item *) it, del_cb);
 }
 
+EAPI void elm_object_item_del(Elm_Object_Item *it)
+{
+   _elm_widget_item_del((Elm_Widget_Item *) it);
+}
+
 EAPI void
 elm_object_item_tooltip_text_set(Elm_Object_Item *item, const char *text)
 {
index c3eac84..f7911be 100644 (file)
@@ -180,10 +180,14 @@ EAPI Eina_Bool                    elm_object_item_disabled_get(const Elm_Object_
  */
 EAPI void                         elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb);
 
-
-// XXX: One more API is to be added.
-//EAPI void                       elm_object_item_del(Elm_Object_Item *it);
-
+/**
+ * Delete the given item.
+ *
+ * @param it The item to be deleted.
+ *
+ * @ingroup General
+ */
+EAPI void                       elm_object_item_del(Elm_Object_Item *it);
 
 /**
  * Set the text to be shown in a given object item's tooltips.