summaryrefslogtreecommitdiff
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-04-19 21:35:38 +0200
commit900fde0d6acf0749855386b43358b7d08291fcb0 (patch)
tree9f4ce68106c55ae6abd2e8c98454fe6339276d8b
parent4df0cd2f95ed2705703de14f07ee5801a5c61c80 (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
-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 890462ca7f..ba7d82ce0e 100644
--- a/src/lib/evas/canvas/efl_canvas_object.eo
+++ b/src/lib/evas/canvas/efl_canvas_object.eo
@@ -484,6 +484,9 @@ abstract Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.Entity,
484 } 484 }
485 } 485 }
486 } 486 }
487 constructors {
488 Efl.Object.parent;
489 }
487 implements { 490 implements {
488 Efl.Object.constructor; 491 Efl.Object.constructor;
489 Efl.Object.finalize; 492 Efl.Object.finalize;