From ee092073a3c4ce79c582e4467fcce10e51f4696f Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Sun, 19 Apr 2020 21:34:17 +0200 Subject: [PATCH] eo: make the parent a optional constructor this is needed in order to sanely bind parent calls to some objejcts, but not all. However, from the canvas structure up we *need* a parent, so we can fetch the evas from it. So declare it there a none optional Reviewed-by: Felipe Magno de Almeida Differential Revision: https://phab.enlightenment.org/D11734 --- src/lib/eo/efl_object.eo | 3 +++ src/lib/evas/canvas/efl_canvas_object.eo | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/lib/eo/efl_object.eo b/src/lib/eo/efl_object.eo index 1bf1ea5e58..34460473ef 100644 --- a/src/lib/eo/efl_object.eo +++ b/src/lib/eo/efl_object.eo @@ -432,6 +432,9 @@ abstract Efl.Object class.constructor; class.destructor; } + constructors { + .parent @optional; + } events { del @hot: void; [[Object is being deleted. See @.destructor.]] invalidate @hot: void; [[Object is being invalidated and losing its parent. See @.invalidate.]] diff --git a/src/lib/evas/canvas/efl_canvas_object.eo b/src/lib/evas/canvas/efl_canvas_object.eo index 21dd3df8ab..64aad581ea 100644 --- a/src/lib/evas/canvas/efl_canvas_object.eo +++ b/src/lib/evas/canvas/efl_canvas_object.eo @@ -483,6 +483,9 @@ abstract Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity, } } } + constructors { + Efl.Object.parent; + } implements { Efl.Object.constructor; Efl.Object.finalize;