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
This commit is contained in:
SangHyeon Lee 2015-02-23 17:57:01 +09:00 committed by Daniel Juyung Seo
parent fb104a22ee
commit 594fe0c8a1
2 changed files with 6 additions and 0 deletions

View File

@ -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));

View File

@ -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