* @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
* @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.
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