elm_layout: call the super for calling the events and methods
this simplifies the code
This commit is contained in:
parent
1639a9e6bf
commit
fce2e7fdb0
|
@ -397,18 +397,15 @@ _efl_ui_layout_elm_widget_on_focus_update(Eo *obj, Efl_Ui_Layout_Data *_pd EINA_
|
|||
{
|
||||
elm_layout_signal_emit(obj, "elm,action,focus", "elm");
|
||||
evas_object_focus_set(wd->resize_obj, EINA_TRUE);
|
||||
efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_FOCUSED, NULL);
|
||||
if (_elm_config->atspi_mode && !elm_widget_child_can_focus_get(obj))
|
||||
efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
elm_layout_signal_emit(obj, "elm,action,unfocus", "elm");
|
||||
evas_object_focus_set(wd->resize_obj, EINA_FALSE);
|
||||
efl_event_callback_legacy_call(obj, EFL_UI_WIDGET_EVENT_UNFOCUSED, NULL);
|
||||
if (_elm_config->atspi_mode && !elm_widget_child_can_focus_get(obj))
|
||||
efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_FOCUSED, EINA_FALSE);
|
||||
}
|
||||
|
||||
efl_ui_widget_on_focus_update(efl_super(obj, MY_CLASS), item);
|
||||
|
||||
if (efl_isa(wd->resize_obj, EDJE_OBJECT_CLASS))
|
||||
edje_object_message_signal_process(wd->resize_obj);
|
||||
|
||||
|
|
Loading…
Reference in New Issue