bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ee092073a3c4ce79c582e4467fcce10e51f4696f

commit ee092073a3c4ce79c582e4467fcce10e51f4696f
Author: Marcel Hollerbach <[email protected]>
Date:   Sun Apr 19 21:34:17 2020 +0200

    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 <[email protected]>
    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;

-- 


Reply via email to