summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-10-19 16:05:30 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-10-19 16:32:51 -0700
commit93c570b5ddcabb1b84c3cf7eacd3af2a96672053 (patch)
tree3746c6b5f33833a490cea24c91dcab269ea9e5a2 /src/lib/evas
parentdad34967dfc5d1a29bb1ffe1060039d8ee4f2ffe (diff)
evas: propagate object data to evas_object_inform_call_hide instead of fetching it again.
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_object_inform.c3
-rw-r--r--src/lib/evas/canvas/evas_object_main.c2
-rw-r--r--src/lib/evas/include/evas_private.h2
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
14} 14}
15 15
16void 16void
17evas_object_inform_call_hide(Evas_Object *eo_obj) 17evas_object_inform_call_hide(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
18{ 18{
19 Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
20 int event_id = _evas_object_event_new(); 19 int event_id = _evas_object_event_new();
21 20
22 evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_HIDE, NULL, event_id, EFL_GFX_EVENT_HIDE); 21 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)
2077 */ 2077 */
2078 } 2078 }
2079 evas_object_update_bounding_box(eo_obj, obj, NULL); 2079 evas_object_update_bounding_box(eo_obj, obj, NULL);
2080 evas_object_inform_call_hide(eo_obj); 2080 evas_object_inform_call_hide(eo_obj, obj);
2081} 2081}
2082 2082
2083EOLIAN static void 2083EOLIAN 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);
1741void evas_event_callback_all_del(Evas *e); 1741void evas_event_callback_all_del(Evas *e);
1742void evas_event_callback_cleanup(Evas *e); 1742void evas_event_callback_cleanup(Evas *e);
1743void evas_object_inform_call_show(Evas_Object *obj, Evas_Object_Protected_Data *pd); 1743void evas_object_inform_call_show(Evas_Object *obj, Evas_Object_Protected_Data *pd);
1744void evas_object_inform_call_hide(Evas_Object *obj); 1744void evas_object_inform_call_hide(Evas_Object *obj, Evas_Object_Protected_Data *pd);
1745void evas_object_inform_call_move(Evas_Object *obj, Evas_Object_Protected_Data *pd); 1745void evas_object_inform_call_move(Evas_Object *obj, Evas_Object_Protected_Data *pd);
1746void evas_object_inform_call_resize(Evas_Object *obj); 1746void evas_object_inform_call_resize(Evas_Object *obj);
1747void evas_object_inform_call_restack(Evas_Object *obj); 1747void evas_object_inform_call_restack(Evas_Object *obj);