bu5hm4n pushed a commit to branch master.

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

commit fce2e7fdb0e99a074adc5d82882c9439fb928bce
Author: Marcel Hollerbach <[email protected]>
Date:   Mon Nov 20 21:12:34 2017 +0100

    elm_layout: call the super for calling the events and methods
    
    this simplifies the code
---
 src/lib/elementary/efl_ui_layout.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/lib/elementary/efl_ui_layout.c 
b/src/lib/elementary/efl_ui_layout.c
index e82ef5f19c..be0e5c9642 100644
--- a/src/lib/elementary/efl_ui_layout.c
+++ b/src/lib/elementary/efl_ui_layout.c
@@ -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);
 

-- 


Reply via email to