forked from enlightenment/efl
elm_widget: Fixed some codes about focus custom chain.
- When appending an object to the focus custom chain, event callback about deletion should be added. - When a widget is deleted, its focus custom chain should be managed correctly.
This commit is contained in:
parent
87b3d7d5b5
commit
cbb946ee99
|
@ -331,6 +331,7 @@ _elm_widget_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
|||
eina_stringshare_del(sd->style);
|
||||
if (sd->theme) elm_theme_free(sd->theme);
|
||||
_if_focused_revert(obj, EINA_TRUE);
|
||||
elm_widget_focus_custom_chain_unset(obj);
|
||||
eina_stringshare_del(sd->access_info);
|
||||
evas_object_smart_data_set(obj, NULL);
|
||||
}
|
||||
|
@ -1983,7 +1984,7 @@ _elm_widget_focus_custom_chain_append(Eo *obj, void *_pd, va_list *list)
|
|||
|
||||
if (!_elm_widget_focus_chain_manager_is(obj)) return;
|
||||
|
||||
evas_object_event_callback_del_full(child, EVAS_CALLBACK_DEL,
|
||||
evas_object_event_callback_add(child, EVAS_CALLBACK_DEL,
|
||||
_elm_object_focus_chain_del_cb, obj);
|
||||
|
||||
if (!relative_child)
|
||||
|
@ -2029,7 +2030,7 @@ _elm_widget_focus_custom_chain_prepend(Eo *obj, void *_pd, va_list *list)
|
|||
|
||||
if (!_elm_widget_focus_chain_manager_is(obj)) return;
|
||||
|
||||
evas_object_event_callback_del_full(child, EVAS_CALLBACK_DEL,
|
||||
evas_object_event_callback_add(child, EVAS_CALLBACK_DEL,
|
||||
_elm_object_focus_chain_del_cb, obj);
|
||||
|
||||
if (!relative_child)
|
||||
|
|
Loading…
Reference in New Issue