From 9b684e50d5aaa30d70d3a0204b26b3dfd2e7f14e Mon Sep 17 00:00:00 2001 From: discomfitor Date: Sat, 10 Sep 2011 15:54:43 +0000 Subject: [PATCH] add elm_object_item_data_get elm_object_item_data_set to wrap corresponding elm_widget_item calls git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63313 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/Elementary.h.in | 18 ++++++++++++++++++ src/lib/elm_main.c | 11 +++++++++++ 2 files changed, 29 insertions(+) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 0acf1b5..e1ee82f 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -1105,6 +1105,24 @@ extern "C" { #define elm_object_item_text_get(it) elm_object_item_text_part_get((it), NULL) /** + * Get the data associated with an object item + * @param it The object item + * @return The data associated with @p it + * + * @ingroup General + */ + EAPI void *elm_object_item_data_get(const Elm_Object_Item *it); + + /** + * Set the data associated with an object item + * @param it The object item + * @param data The data to be associated with @p it + * + * @ingroup General + */ + EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data); + + /** * @} */ diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index d5ad7a4..8b5c998 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -2115,3 +2115,14 @@ elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt) _elm_widget_item_access_info_set((Elm_Widget_Item *)it, txt); } +EAPI void * +elm_object_item_data_get(const Elm_Object_Item *it) +{ + return elm_widget_item_data_get(it); +} + +EAPI void +elm_object_item_data_set(Elm_Object_Item *it, void *data) +{ + elm_widget_item_data_set(it, data); +} -- 2.7.4