cedric pushed a commit to branch master.

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

commit 93c570b5ddcabb1b84c3cf7eacd3af2a96672053
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Thu Oct 19 16:05:30 2017 -0700

    evas: propagate object data to evas_object_inform_call_hide instead of 
fetching it again.
---
 src/lib/evas/canvas/evas_object_inform.c | 3 +--
 src/lib/evas/canvas/evas_object_main.c   | 2 +-
 src/lib/evas/include/evas_private.h      | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/lib/evas/canvas/evas_object_inform.c 
b/src/lib/evas/canvas/evas_object_inform.c
index 86a5f6cee0..cf180b14e0 100644
--- a/src/lib/evas/canvas/evas_object_inform.c
+++ b/src/lib/evas/canvas/evas_object_inform.c
@@ -14,9 +14,8 @@ evas_object_inform_call_show(Evas_Object *eo_obj, 
Evas_Object_Protected_Data *ob
 }
 
 void
-evas_object_inform_call_hide(Evas_Object *eo_obj)
+evas_object_inform_call_hide(Evas_Object *eo_obj, Evas_Object_Protected_Data 
*obj)
 {
-   Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, 
EFL_CANVAS_OBJECT_CLASS);
    int event_id = _evas_object_event_new();
 
    evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_HIDE, NULL, 
event_id, EFL_GFX_EVENT_HIDE);
diff --git a/src/lib/evas/canvas/evas_object_main.c 
b/src/lib/evas/canvas/evas_object_main.c
index f4565ed7e3..323bc9041a 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -2077,7 +2077,7 @@ _hide(Evas_Object *eo_obj, Evas_Object_Protected_Data 
*obj)
  */
      }
    evas_object_update_bounding_box(eo_obj, obj, NULL);
-   evas_object_inform_call_hide(eo_obj);
+   evas_object_inform_call_hide(eo_obj, obj);
 }
 
 EOLIAN static void
diff --git a/src/lib/evas/include/evas_private.h 
b/src/lib/evas/include/evas_private.h
index 7fecfef916..9f82a55a42 100644
--- a/src/lib/evas/include/evas_private.h
+++ b/src/lib/evas/include/evas_private.h
@@ -1741,7 +1741,7 @@ void evas_object_event_callback_cleanup(Evas_Object *obj);
 void evas_event_callback_all_del(Evas *e);
 void evas_event_callback_cleanup(Evas *e);
 void evas_object_inform_call_show(Evas_Object *obj, Evas_Object_Protected_Data 
*pd);
-void evas_object_inform_call_hide(Evas_Object *obj);
+void evas_object_inform_call_hide(Evas_Object *obj, Evas_Object_Protected_Data 
*pd);
 void evas_object_inform_call_move(Evas_Object *obj, Evas_Object_Protected_Data 
*pd);
 void evas_object_inform_call_resize(Evas_Object *obj);
 void evas_object_inform_call_restack(Evas_Object *obj);

-- 


Reply via email to