summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwoochan lee <wc0917.lee@samsung.com>2015-06-23 08:30:21 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-06-23 08:30:22 +0900
commita0001e5a66f1711b30d891321006ad6f4a3eaf6f (patch)
treef8def71b9df83ea52e0ccef967219156d17f6c2c
parent07701a04c2ee9edf50f5484201867d90486888b3 (diff)
downloadelementary-a0001e5a66f1711b30d891321006ad6f4a3eaf6f.tar.gz
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
-rw-r--r--src/lib/elm_widget.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 09cd81516..6df8fde03 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");