aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-03-04 10:59:09 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-03-15 15:39:12 +0100
commitb7a5a9298d73ec546fd73434d63e31e82ebc5bc7 (patch)
treed1ec8284965489ad8b92311193b5038e3cbfdf13
parentelm_widget_item_static_focus: delete adapter when deleted or unrealized (diff)
downloadefl-b7a5a9298d73ec546fd73434d63e31e82ebc5bc7.tar.gz
elm_widget_item_static_focus: fix fetching of the item
-rw-r--r--src/lib/elementary/elm_widget_item_static_focus.c3
1 files changed, 2 insertions, 1 deletions
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);