elm genlist.c: Removed elm_object_item_content_set/unset, text_set hook.

SVN revision: 70153
This commit is contained in:
Daniel Juyung Seo 2012-04-12 15:35:09 +00:00
parent 48ad5b24b8
commit 316a8cd712
1 changed files with 0 additions and 31 deletions

View File

@ -137,7 +137,6 @@ static Eina_Bool _item_multi_select_up(Widget_Data *wd);
static Eina_Bool _item_multi_select_down(Widget_Data *wd);
static Eina_Bool _item_single_select_up(Widget_Data *wd);
static Eina_Bool _item_single_select_down(Widget_Data *wd);
static Evas_Object * _item_content_unset_hook(Elm_Gen_Item *it, const char *part);
static Eina_Bool _event_hook(Evas_Object *obj,
Evas_Object *src,
Evas_Callback_Type type,
@ -3637,24 +3636,6 @@ _item_content_get_hook(Elm_Gen_Item *it, const char *part)
return edje_object_part_swallow_get(VIEW(it), part);
}
static void
_item_content_set_hook(Elm_Gen_Item *it __UNUSED__,
const char *part __UNUSED__,
Evas_Object *content __UNUSED__)
{
WRN("genlist/gengrid do not support elm_object_item_part_content_set.\n"
"Use normal genlist/gengrid content_get callback model.");
}
static Evas_Object *
_item_content_unset_hook(Elm_Gen_Item *it __UNUSED__,
const char *part __UNUSED__)
{
WRN("genlist/gengrid do not support elm_object_item_part_content_set.\n"
"Use normal genlist/gengrid content_get callback model.");
return NULL;
}
static const char *
_item_text_get_hook(Elm_Gen_Item *it, const char *part)
{
@ -3662,15 +3643,6 @@ _item_text_get_hook(Elm_Gen_Item *it, const char *part)
return edje_object_part_text_get(VIEW(it), part);
}
static void
_item_text_set_hook(Elm_Object_Item *it __UNUSED__,
const char *part __UNUSED__,
const char *text __UNUSED__)
{
WRN("genlist/gengrid do not support elm_object_item_part_text_set.\n"
"Use normal genlist/gengrid text_get callback model.");
}
static void
_item_disable_hook(Elm_Object_Item *it)
{
@ -3760,10 +3732,7 @@ _elm_genlist_item_new(Widget_Data *wd,
it->func.func = func;
it->func.data = func_data;
elm_widget_item_content_get_hook_set(it, _item_content_get_hook);
elm_widget_item_content_set_hook_set(it, _item_content_set_hook);
elm_widget_item_content_unset_hook_set(it, _item_content_unset_hook);
elm_widget_item_text_get_hook_set(it, _item_text_get_hook);
elm_widget_item_text_set_hook_set(it, _item_text_set_hook);
elm_widget_item_disable_hook_set(it, _item_disable_hook);
elm_widget_item_del_pre_hook_set(it, _item_del_pre_hook);
elm_widget_item_signal_emit_hook_set(it, _item_signal_emit_hook);