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)
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)
150 if (eo_isa(eo_it, ELM_WIDGET_ITEM_CLASS)) 150 if (eo_isa(eo_it, ELM_WIDGET_ITEM_CLASS))
151 { 151 {
152 Elm_Widget_Item_Data *it = eo_data_scope_get(eo_it, ELM_WIDGET_ITEM_CLASS); 152 Elm_Widget_Item_Data *it = eo_data_scope_get(eo_it, ELM_WIDGET_ITEM_CLASS);
153 str = edje_object_data_get(it->view, "focus_highlight"); 153
154 if (eo_isa(it->view, ELM_LAYOUT_CLASS))
155 str = edje_object_data_get(elm_layout_edje_get(it->view), "focus_highlight");
156 else
157 str = edje_object_data_get(it->view, "focus_highlight");
154 } 158 }
155 else 159 else
156 str = edje_object_data_get(((Elm_Widget_Item_Data *)eo_it)->view, "focus_highlight"); 160 str = edje_object_data_get(((Elm_Widget_Item_Data *)eo_it)->view, "focus_highlight");