elementary/index - deprecated APIs

elm_index_item_data_set()
elm_index_item_data_get()



SVN revision: 66661
This commit is contained in:
ChunEon Park 2011-12-30 05:12:54 +00:00
parent 6f07cf3ea0
commit 4bb1f9830c
2 changed files with 6 additions and 6 deletions

View File

@ -23391,10 +23391,11 @@ extern "C" {
* @return The data associated with @p it
*
* @see elm_index_item_data_set()
* @deprecated Use elm_object_item_data_get() instead
*
* @ingroup Index
*/
EAPI void *elm_index_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
EINA_DEPRECATED EAPI void *elm_index_item_data_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
/**
* Set the data associated with a given index widget item
@ -23407,9 +23408,10 @@ extern "C" {
* @warning The old data pointer won't be touched by this function, so
* the user had better to free that old data himself/herself.
*
* @deprecated Use elm_object_item_data_set() instead
* @ingroup Index
*/
EAPI void elm_index_item_data_set(Elm_Object_Item *it, const void *data) EINA_ARG_NONNULL(1);
EINA_DEPRECATED EAPI void elm_index_item_data_set(Elm_Object_Item *it, const void *data) EINA_ARG_NONNULL(1);
/**
* Set the function to be called when a given index widget item is freed.

View File

@ -799,15 +799,13 @@ elm_index_item_go(Evas_Object *obj, int level __UNUSED__)
EAPI void *
elm_index_item_data_get(const Elm_Object_Item *it)
{
ELM_OBJ_ITEM_CHECK_OR_RETURN(it, NULL);
return elm_widget_item_data_get(it);
return elm_object_item_data_get(it);
}
EAPI void
elm_index_item_data_set(Elm_Object_Item *it, const void *data)
{
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
elm_widget_item_data_set(it, data);
elm_object_item_data_set(it, (void *) data);
}
EAPI void