From ea8c83b1ff600567fcdff7e97e2fe01ccc5b38d5 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Thu, 14 May 2015 22:21:05 +0900 Subject: [PATCH] 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 Conflicts: src/lib/elm_genlist_item.eo Change-Id: Ied9a9b2f861970bd06374d06032a1d43b7511e68 origin: upstream --- src/lib/elm_genlist.c | 6 ++++++ src/lib/elm_genlist_item.eo | 1 + 2 files changed, 7 insertions(+) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 016ca31..8e95473 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -7003,6 +7003,12 @@ elm_genlist_item_tooltip_style_get(const Elm_Object_Item *it) return eo_do(it, 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) diff --git a/src/lib/elm_genlist_item.eo b/src/lib/elm_genlist_item.eo index 80984ab..c3d3b2a 100644 --- a/src/lib/elm_genlist_item.eo +++ b/src/lib/elm_genlist_item.eo @@ -500,6 +500,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; -- 2.7.4