genlist: fix to return item style correctly.

Since the genlist items can be unrealized,
they own the tooltip strings in their item field.
Also, the tooltip string should be returned with it.

@fix
This commit is contained in:
ChunEon Park 2015-05-14 22:21:05 +09:00
parent 2ccbb06fea
commit b371af1d25
2 changed files with 7 additions and 0 deletions

View File

@ -7037,6 +7037,12 @@ elm_genlist_item_tooltip_style_get(const Elm_Object_Item *it)
return eo_do_ret(it, ret, elm_wdg_item_tooltip_style_get());
}
EOLIAN static const char *
_elm_genlist_item_elm_widget_item_tooltip_style_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
{
return it->tooltip.style;
}
EAPI Eina_Bool
elm_genlist_item_tooltip_window_mode_set(Elm_Object_Item *item,
Eina_Bool disable)

View File

@ -498,6 +498,7 @@ class Elm.Genlist_Item(Elm.Widget_Item)
Elm.Widget_Item.part_content.get;
Elm.Widget_Item.tooltip_text_set;
Elm.Widget_Item.tooltip_style.set;
Elm.Widget_Item.tooltip_style.get;
Elm.Widget_Item.tooltip_window_mode.set;
Elm.Widget_Item.tooltip_content_cb_set;
Elm.Widget_Item.tooltip_unset;