bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b7a5a9298d73ec546fd73434d63e31e82ebc5bc7

commit b7a5a9298d73ec546fd73434d63e31e82ebc5bc7
Author: Marcel Hollerbach <[email protected]>
Date:   Sun Mar 4 10:59:09 2018 +0100

    elm_widget_item_static_focus: fix fetching of the item
---
 src/lib/elementary/elm_widget_item_static_focus.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_widget_item_static_focus.c 
b/src/lib/elementary/elm_widget_item_static_focus.c
index a5219e311b..637de012e3 100644
--- a/src/lib/elementary/elm_widget_item_static_focus.c
+++ b/src/lib/elementary/elm_widget_item_static_focus.c
@@ -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);

-- 


Reply via email to