forked from enlightenment/efl
elm_widget_item_static_focus: fix fetching of the item
This commit is contained in:
parent
0b1d67e793
commit
b7a5a9298d
|
@ -65,7 +65,8 @@ _elm_widget_item_static_focus_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_W
|
||||||
{
|
{
|
||||||
if (!pd->adapter)
|
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_ui_focus_composition_adapter_canvas_object_set(pd->adapter, wpd->view);
|
||||||
efl_wref_add(pd->adapter, &pd->adapter);
|
efl_wref_add(pd->adapter, &pd->adapter);
|
||||||
efl_ui_focus_manager_calc_register(wpd->widget, pd->adapter, obj, NULL);
|
efl_ui_focus_manager_calc_register(wpd->widget, pd->adapter, obj, NULL);
|
||||||
|
|
Loading…
Reference in New Issue