remove code related with

elm_list_item_disabled
elm_list_item_XXX
which was deprecated


SVN revision: 69109
This commit is contained in:
Jiyoun Park 2012-03-09 15:03:18 +00:00
parent 9157d75e0f
commit d16e5bf412
3 changed files with 2 additions and 166 deletions

View File

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

View File

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

View File

@ -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);
}