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 <felipe@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D11734
This commit is contained in:
Marcel Hollerbach 2020-04-19 21:34:17 +02:00
parent 4c2cbecc69
commit ee092073a3
2 changed files with 6 additions and 0 deletions

View File

@ -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.]]

View File

@ -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;