summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-01-04 17:18:21 +0000
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-01-04 17:27:43 +0000
commitc26e759b9e074ae3d05f2b847ae08fd46bad7c11 (patch)
tree23eed54dd895a0170245b642e53d0986758dd3ed
parent76d8ff590aad4ac0c3fd56a02256dc6b38897053 (diff)
elm_widget_item_focus: use the correct parent
You need to use the parent here, otherwise the adapter will stay alive for too long.
-rw-r--r--src/lib/elementary/elm_widget_item_static_focus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_widget_item_static_focus.c b/src/lib/elementary/elm_widget_item_static_focus.c
index 8c56e0e154..21d2f99e2d 100644
--- a/src/lib/elementary/elm_widget_item_static_focus.c
+++ b/src/lib/elementary/elm_widget_item_static_focus.c
@@ -21,12 +21,13 @@ _elm_widget_item_static_focus_efl_ui_focus_object_prepare_logical(Eo *obj, Elm_W
21 efl_ui_focus_object_prepare_logical(efl_super(obj, ELM_WIDGET_ITEM_STATIC_FOCUS_CLASS)); 21 efl_ui_focus_object_prepare_logical(efl_super(obj, ELM_WIDGET_ITEM_STATIC_FOCUS_CLASS));
22 logical_child = efl_ui_focus_manager_request_subchild(wpd->widget, obj); 22 logical_child = efl_ui_focus_manager_request_subchild(wpd->widget, obj);
23 23
24
25 if (!logical_child) 24 if (!logical_child)
26 { 25 {
27 if (!pd->adapter) 26 if (!pd->adapter)
28 { 27 {
29 pd->adapter = efl_add(EFL_UI_FOCUS_COMPOSITION_ADAPTER_CLASS, obj, efl_ui_focus_composition_adapter_canvas_object_set(efl_added, wpd->view)); 28 pd->adapter = efl_add(EFL_UI_FOCUS_COMPOSITION_ADAPTER_CLASS, wpd->view,
29 efl_ui_focus_composition_adapter_canvas_object_set(efl_added, wpd->view)
30 );
30 efl_wref_add(pd->adapter, &pd->adapter); 31 efl_wref_add(pd->adapter, &pd->adapter);
31 efl_ui_focus_manager_calc_register(wpd->widget, pd->adapter, obj, NULL); 32 efl_ui_focus_manager_calc_register(wpd->widget, pd->adapter, obj, NULL);
32 } 33 }