diff --git a/legacy/elementary/doc/examples.dox b/legacy/elementary/doc/examples.dox index ea894ca6d9..6fb1b51d4f 100644 --- a/legacy/elementary/doc/examples.dox +++ b/legacy/elementary/doc/examples.dox @@ -2520,7 +2520,7 @@ * * If you want to free this data, or handle that the way you need when the * item is deleted, set a callback function for that, with - * elm_list_item_del_cb_set(). + * elm_object_item_del_cb_set(). * * As you can see we check if @c it is not @c NULL after appending it. * If an error happens, we won't try to set a function for it. diff --git a/legacy/elementary/src/examples/list_example_03.c b/legacy/elementary/src/examples/list_example_03.c index 86cd8071ae..3875e20283 100644 --- a/legacy/elementary/src/examples/list_example_03.c +++ b/legacy/elementary/src/examples/list_example_03.c @@ -242,7 +242,7 @@ _disable_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__ selected_item = elm_list_selected_item_get(li); if (!selected_item) return; - elm_list_item_disabled_set(selected_item, EINA_TRUE); + elm_object_item_disabled_set(selected_item, EINA_TRUE); } EAPI_MAIN int diff --git a/legacy/elementary/src/lib/elm_list.c b/legacy/elementary/src/lib/elm_list.c index 6497dae6d0..f935c1f415 100644 --- a/legacy/elementary/src/lib/elm_list.c +++ b/legacy/elementary/src/lib/elm_list.c @@ -1989,167 +1989,3 @@ elm_list_item_next(const Elm_Object_Item *it) if (item->node->next) return item->node->next->data; else return NULL; } - -EINA_DEPRECATED EAPI void -elm_list_item_del(Elm_Object_Item *it) -{ - elm_object_item_del(it); -} - -EINA_DEPRECATED EAPI void -elm_list_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled) -{ - elm_object_item_disabled_set(it, disabled); -} - -EINA_DEPRECATED EAPI Eina_Bool -elm_list_item_disabled_get(const Elm_Object_Item *it) -{ - return elm_object_item_disabled_get(it); -} - -EINA_DEPRECATED EAPI void -elm_list_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb func) -{ - elm_object_item_del_cb_set(it, func); -} - -EINA_DEPRECATED EAPI void * -elm_list_item_data_get(const Elm_Object_Item *it) -{ - return elm_object_item_data_get(it); -} - -EINA_DEPRECATED EAPI Evas_Object * -elm_list_item_icon_get(const Elm_Object_Item *it) -{ - return _item_content_get(it, NULL); -} - -EINA_DEPRECATED EAPI void -elm_list_item_icon_set(Elm_Object_Item *it, Evas_Object *icon) -{ - _item_content_set(it, NULL, icon); -} - -EINA_DEPRECATED EAPI Evas_Object * -elm_list_item_end_get(const Elm_Object_Item *it) -{ - return _item_content_get(it, "end"); -} - -EINA_DEPRECATED EAPI void -elm_list_item_end_set(Elm_Object_Item *it, Evas_Object *end) -{ - _item_content_set(it, "end", end); -} - -EINA_DEPRECATED EAPI const char * -elm_list_item_label_get(const Elm_Object_Item *it) -{ - return _item_text_get(it, NULL); -} - -EINA_DEPRECATED EAPI void -elm_list_item_label_set(Elm_Object_Item *it, const char *text) -{ - _item_text_set(it, NULL, text); -} - -EINA_DEPRECATED EAPI void -elm_list_item_tooltip_text_set(Elm_Object_Item *it, const char *text) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); - elm_widget_item_tooltip_text_set(it, text); -} - -EINA_DEPRECATED EAPI void -elm_list_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); - elm_widget_item_tooltip_content_cb_set(it, func, data, del_cb); -} - -EINA_DEPRECATED EAPI void -elm_list_item_tooltip_unset(Elm_Object_Item *it) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); - elm_widget_item_tooltip_unset(it); -} - -EINA_DEPRECATED EAPI Eina_Bool -elm_list_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE); - return elm_widget_item_tooltip_window_mode_set(it, disable); -} - -EINA_DEPRECATED EAPI Eina_Bool -elm_list_item_tooltip_window_mode_get(const Elm_Object_Item *it) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE); - return elm_widget_item_tooltip_window_mode_get(it); -} - -EINA_DEPRECATED EAPI void -elm_list_item_tooltip_style_set(Elm_Object_Item *it, const char *style) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); - elm_widget_item_tooltip_style_set(it, style); -} - -EINA_DEPRECATED EAPI const char * -elm_list_item_tooltip_style_get(const Elm_Object_Item *it) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL); - return elm_widget_item_tooltip_style_get(it); -} - -EINA_DEPRECATED EAPI void -elm_list_item_cursor_set(Elm_Object_Item *it, const char *cursor) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); - elm_widget_item_cursor_set(it, cursor); -} - -EINA_DEPRECATED EAPI const char * -elm_list_item_cursor_get(const Elm_Object_Item *it) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL); - return elm_widget_item_cursor_get(it); -} - -EINA_DEPRECATED EAPI void -elm_list_item_cursor_unset(Elm_Object_Item *it) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); - elm_widget_item_cursor_unset(it); -} - -EINA_DEPRECATED EAPI void -elm_list_item_cursor_style_set(Elm_Object_Item *it, const char *style) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); - elm_widget_item_cursor_style_set(it, style); -} - -EINA_DEPRECATED EAPI const char * -elm_list_item_cursor_style_get(const Elm_Object_Item *it) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, NULL); - return elm_widget_item_cursor_style_get(it); -} - -EINA_DEPRECATED EAPI void -elm_list_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it); - elm_widget_item_cursor_engine_only_set(it, engine_only); -} - -EINA_DEPRECATED EAPI Eina_Bool -elm_list_item_cursor_engine_only_get(const Elm_Object_Item *it) -{ - ELM_LIST_ITEM_CHECK_DELETED_RETURN(it, EINA_FALSE); - return elm_widget_item_cursor_engine_only_get(it); -}