From: Marcel Hollerbach Date: Sun, 19 Apr 2020 19:34:17 +0000 (+0200) Subject: eo: make the parent a optional constructor X-Git-Tag: submit/tizen/20200609.215559~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6f34b22cca15d1c09dcc5f7b57f82ccd230167f;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/lib/eo/efl_object.eo b/src/lib/eo/efl_object.eo index 1bf1ea5..3446047 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 21dd3df..64aad58 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;