seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=ca312ed09320a5959d5e4223a8ea068716bc1713
commit ca312ed09320a5959d5e4223a8ea068716bc1713 Author: SangHyeon Lee <sh10233....@samsung.com> Date: Mon Feb 23 17:57:01 2015 +0900 genlist/gengrid : Add upadating 'focus' state in item realized function. Summary: When an item is realized, select/disable/expand signal emission to the view object of an item was handled correctly,but there are no updating code for focus state. @fix Test Plan: tested by editing genlist/genlist item edc to react on elm,state,focused and move scroll signals to unrealized/realized item again. Reviewers: raster, seoz Reviewed By: seoz Subscribers: eunue Differential Revision: https://phab.enlightenment.org/D2024 --- src/lib/elm_gengrid.c | 3 +++ src/lib/elm_genlist.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 60e7fa5..0fcf37f 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -992,6 +992,9 @@ _item_realize(Elm_Gen_Item *it) edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm"); if (eo_do(eo_it, elm_wdg_item_disabled_get())) edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm"); + if (it == (Elm_Gen_Item *)sd->focused_item && + elm_widget_focus_highlight_enabled_get(WIDGET(it))) + edje_object_signal_emit(VIEW(it), "elm,state,focused", "elm"); } edje_object_message_signal_process(VIEW(it)); evas_object_show(VIEW(it)); diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 5a84d30..da02d8d 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1240,6 +1240,9 @@ _elm_genlist_item_state_update(Elm_Gen_Item *it, (it->deco_all_view, SIGNAL_EXPANDED, "elm"); } } + if (it == (Elm_Gen_Item *)GL_IT(it)->wsd->focused_item && + elm_widget_focus_highlight_enabled_get(WIDGET(it))) + edje_object_signal_emit(VIEW(it), SIGNAL_FOCUSED, "elm"); } static void --