eo: make the parent a optional constructor
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Sun, 19 Apr 2020 19:34:17 +0000 (21:34 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 9 Jun 2020 21:19:10 +0000 (06:19 +0900)
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

src/lib/eo/efl_object.eo
src/lib/evas/canvas/efl_canvas_object.eo

index 1bf1ea5..3446047 100644 (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.]]
index 21dd3df..64aad58 100644 (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;