summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-19 21:34:17 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-06-09 10:29:23 +0200
commitee092073a3c4ce79c582e4467fcce10e51f4696f (patch)
tree2c64ec8eae60e7b024fa09748bad3d5bb0444f04 /src
parent4c2cbecc69c4c08ccacba7d2f6bef072addc3e33 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/efl_object.eo3
-rw-r--r--src/lib/evas/canvas/efl_canvas_object.eo3
2 files changed, 6 insertions, 0 deletions
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
432 class.constructor; 432 class.constructor;
433 class.destructor; 433 class.destructor;
434 } 434 }
435 constructors {
436 .parent @optional;
437 }
435 events { 438 events {
436 del @hot: void; [[Object is being deleted. See @.destructor.]] 439 del @hot: void; [[Object is being deleted. See @.destructor.]]
437 invalidate @hot: void; [[Object is being invalidated and losing its parent. See @.invalidate.]] 440 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,
483 } 483 }
484 } 484 }
485 } 485 }
486 constructors {
487 Efl.Object.parent;
488 }
486 implements { 489 implements {
487 Efl.Object.constructor; 490 Efl.Object.constructor;
488 Efl.Object.finalize; 491 Efl.Object.finalize;