forked from enlightenment/efl
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
This commit is contained in:
parent
f641925d6e
commit
4033c8f587
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue