From d6e46c7c2f7d0348dc75983a1094a3f5b0f6e618 Mon Sep 17 00:00:00 2001 From: SangHyeon Lee Date: Wed, 12 Apr 2017 14:14:15 +0900 Subject: [PATCH] genlist: add elm_win_auto_focus_enable check in focus highlight signal emit Change-Id: Idcf3786e9f30e33bc66dbeef971c05f335a1d9e6 Signed-off-by: SangHyeon Lee --- src/lib/elm_genlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 062bb98..384360a 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1841,7 +1841,7 @@ _elm_genlist_item_focus_update(Elm_Gen_Item *it) Evas_Object *obj = WIDGET(it); ELM_GENLIST_DATA_GET(obj, sd); - if (elm_widget_focus_highlight_enabled_get(obj)) + if (elm_widget_focus_highlight_enabled_get(obj) || _elm_config->win_auto_focus_enable) edje_object_signal_emit(VIEW(it), SIGNAL_FOCUSED, "elm"); focus_raise = edje_object_data_get(VIEW(it), "focusraise"); @@ -2857,7 +2857,7 @@ _elm_genlist_item_unfocused(Elm_Object_Item *eo_it) (eo_it != sd->focused_item)) return; - if (elm_widget_focus_highlight_enabled_get(obj)) + if (elm_widget_focus_highlight_enabled_get(obj) || _elm_config->win_auto_focus_enable) { ELM_GENLIST_ITEM_DATA_GET(sd->focused_item, focus_it); edje_object_signal_emit(VIEW(focus_it), SIGNAL_UNFOCUSED, "elm"); -- 2.7.4