forked from enlightenment/efl
fix elm_object_item_text_part_get for genlist and gengrid
SVN revision: 62323
This commit is contained in:
parent
49ab1fb009
commit
5bde9e619c
|
@ -1254,6 +1254,13 @@ _item_place(Elm_Gengrid_Item *item,
|
|||
}
|
||||
}
|
||||
|
||||
static const char *
|
||||
_item_label_hook(Elm_Gengrid_Item *it, const char *part)
|
||||
{
|
||||
if (!it->gic->func.label_get) return NULL;
|
||||
return edje_object_part_text_get(it->base.view, part);
|
||||
}
|
||||
|
||||
static Elm_Gengrid_Item *
|
||||
_item_create(Widget_Data *wd,
|
||||
const Elm_Gengrid_Item_Class *gic,
|
||||
|
@ -1272,6 +1279,7 @@ _item_create(Widget_Data *wd,
|
|||
item->func.func = func;
|
||||
item->func.data = func_data;
|
||||
item->mouse_cursor = NULL;
|
||||
elm_widget_item_text_get_hook_set(item, _item_label_hook);
|
||||
return item;
|
||||
}
|
||||
|
||||
|
|
|
@ -1657,6 +1657,13 @@ _item_cache_free(Item_Cache *itc)
|
|||
free(itc);
|
||||
}
|
||||
|
||||
static const char *
|
||||
_item_label_hook(Elm_Genlist_Item *it, const char *part)
|
||||
{
|
||||
if (!it->itc->func.label_get) return NULL;
|
||||
return edje_object_part_text_get(it->base.view, part);
|
||||
}
|
||||
|
||||
static void
|
||||
_item_label_realize(Elm_Genlist_Item *it,
|
||||
Evas_Object *target,
|
||||
|
@ -3054,6 +3061,7 @@ _item_new(Widget_Data *wd,
|
|||
it->func.data = func_data;
|
||||
it->mouse_cursor = NULL;
|
||||
it->expanded_depth = 0;
|
||||
elm_widget_item_text_get_hook_set(it, _item_label_hook);
|
||||
|
||||
if (it->parent)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue