summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-04-17 08:24:25 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-21 12:13:12 +0200
commitef3281c924533e083fab9f71e3d459e7087a7da1 (patch)
treedaf09bcdc02817b18c8c97186fd2d171e25e34f8
parentc9e62e957b271baf8267830aaa9972e9818bdd34 (diff)
ui.relative_layout: replace evas_object_event_callback_xxx with efl_event_callback_xxx
remove legacy function Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8630
-rw-r--r--src/lib/elementary/efl_ui_relative_layout.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_relative_layout.c b/src/lib/elementary/efl_ui_relative_layout.c
index fa47d7591c..66bedb87ef 100644
--- a/src/lib/elementary/efl_ui_relative_layout.c
+++ b/src/lib/elementary/efl_ui_relative_layout.c
@@ -446,10 +446,9 @@ _hash_child_init_foreach_cb(const Eina_Hash *hash, const void *key EINA_UNUSED,
446} 446}
447 447
448static void 448static void
449_on_size_hints_changed(void *data EINA_UNUSED, Evas *e EINA_UNUSED, 449_efl_ui_relative_layout_hints_changed_cb(void *data EINA_UNUSED, const Efl_Event *ev)
450 Evas_Object *obj, void *event_info EINA_UNUSED)
451{ 450{
452 efl_pack_layout_request(obj); 451 efl_pack_layout_request(ev->object);
453} 452}
454 453
455EOLIAN static void 454EOLIAN static void
@@ -490,7 +489,8 @@ _efl_ui_relative_layout_efl_gfx_entity_position_set(Eo *obj, Efl_Ui_Relative_Lay
490EOLIAN static void 489EOLIAN static void
491_efl_ui_relative_layout_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Relative_Layout_Data *pd EINA_UNUSED) 490_efl_ui_relative_layout_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Relative_Layout_Data *pd EINA_UNUSED)
492{ 491{
493 evas_object_event_callback_add(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _on_size_hints_changed, NULL); 492 efl_event_callback_add(obj, EFL_GFX_ENTITY_EVENT_HINTS_CHANGED,
493 _efl_ui_relative_layout_hints_changed_cb, NULL);
494 efl_canvas_group_add(efl_super(obj, MY_CLASS)); 494 efl_canvas_group_add(efl_super(obj, MY_CLASS));
495 495
496 elm_widget_highlight_ignore_set(obj, EINA_TRUE); 496 elm_widget_highlight_ignore_set(obj, EINA_TRUE);
@@ -514,6 +514,8 @@ _efl_ui_relative_layout_efl_object_constructor(Eo *obj, Efl_Ui_Relative_Layout_D
514EOLIAN static void 514EOLIAN static void
515_efl_ui_relative_layout_efl_object_destructor(Eo *obj, Efl_Ui_Relative_Layout_Data *pd) 515_efl_ui_relative_layout_efl_object_destructor(Eo *obj, Efl_Ui_Relative_Layout_Data *pd)
516{ 516{
517 efl_event_callback_del(obj, EFL_GFX_ENTITY_EVENT_HINTS_CHANGED,
518 _efl_ui_relative_layout_hints_changed_cb, NULL);
517 eina_hash_free(pd->children); 519 eina_hash_free(pd->children);
518 efl_destructor(efl_super(obj, MY_CLASS)); 520 efl_destructor(efl_super(obj, MY_CLASS));
519} 521}