hermet pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=a0001e5a66f1711b30d891321006ad6f4a3eaf6f
commit a0001e5a66f1711b30d891321006ad6f4a3eaf6f Author: woochan lee <[email protected]> Date: Tue Jun 23 08:30:21 2015 +0900 widget: Add a case that elm_layout is an item view object. Summary: The internal API "_elm_widget_item_highlight_in_theme()" look like for list item highlight. but it can use in another widget which has item view as elm_layout. In that case, ERR log will be printed. Reviewers: singh.amitesh, Hermet, woohyun Differential Revision: https://phab.enlightenment.org/D2736 --- src/lib/elm_widget.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 09cd815..6df8fde 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -150,7 +150,11 @@ _elm_widget_item_highlight_in_theme(Evas_Object *obj, Elm_Object_Item *eo_it) if (eo_isa(eo_it, ELM_WIDGET_ITEM_CLASS)) { Elm_Widget_Item_Data *it = eo_data_scope_get(eo_it, ELM_WIDGET_ITEM_CLASS); - str = edje_object_data_get(it->view, "focus_highlight"); + + if (eo_isa(it->view, ELM_LAYOUT_CLASS)) + str = edje_object_data_get(elm_layout_edje_get(it->view), "focus_highlight"); + else + str = edje_object_data_get(it->view, "focus_highlight"); } else str = edje_object_data_get(((Elm_Widget_Item_Data *)eo_it)->view, "focus_highlight"); --
