elm_widget_item_static_focus: fix fetching of the item

This commit is contained in:
Marcel Hollerbach 2018-03-04 10:59:09 +01:00
parent 0b1d67e793
commit b7a5a9298d
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ _elm_widget_item_static_focus_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_W
{
if (!pd->adapter)
{
pd->adapter = efl_add(EFL_UI_FOCUS_COMPOSITION_ADAPTER_CLASS, wpd->view);
// parent has to stay the object, since this is used to get the item of a adapter
pd->adapter = efl_add(EFL_UI_FOCUS_COMPOSITION_ADAPTER_CLASS, obj);
efl_ui_focus_composition_adapter_canvas_object_set(pd->adapter, wpd->view);
efl_wref_add(pd->adapter, &pd->adapter);
efl_ui_focus_manager_calc_register(wpd->widget, pd->adapter, obj, NULL);