evas_object_table: adjust to recent EFL_EVENT_DEL changes
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 29 May 2018 16:24:31 +0000 (12:24 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 1 Jun 2018 05:17:56 +0000 (14:17 +0900)
Summary:
EFL_EVENT_DEL is wrong here, as the callback uses a parent, which is
gone at the time of EFL_EVENT_DEL.

Reviewers: zmike, cedric, stefan_schmidt

Reviewed By: zmike

Subscribers: cedric, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6225

src/lib/evas/canvas/evas_object_table.c

index fde93ec..97ba008 100644 (file)
@@ -251,7 +251,7 @@ _evas_object_table_option_del(Evas_Object *o)
 }
 
 static void
-_on_child_del(void *data, const Efl_Event *event)
+_on_child_invalidate(void *data, const Efl_Event *event)
 {
    Evas_Object *table = data;
    evas_object_table_unpack(table, event->object);
@@ -267,7 +267,7 @@ _on_child_hints_changed(void *data, const Efl_Event *event EINA_UNUSED)
 }
 
 EFL_CALLBACKS_ARRAY_DEFINE(evas_object_table_callbacks,
-  { EFL_EVENT_DEL, _on_child_del },
+  { EFL_EVENT_INVALIDATE, _on_child_invalidate },
   { EFL_GFX_ENTITY_EVENT_CHANGE_SIZE_HINTS, _on_child_hints_changed }
 );