summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-02-07 18:02:21 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-02-07 18:05:00 +0100
commit9e3707f0b41e09d6171a26631bdb77dc84889e52 (patch)
tree0eefc6ae8791554b0381279997ce4b100b3e7c2d /src
parent0f32bb90476703f81fd08800eda0a0d89321f80f (diff)
efl: Change non required constructors to @optional.
Summary: These constructors aren't checked for in the finalize step of the initialization and may be given the @optional tag. For C# this means they can be ommitted from the constructor call. This also adds `Efl.Ui.View.model` as a constructor of `Efl.Composite_Model` as the finalizer checks for it. Fixes T7673 Test Plan: make check Reviewers: segfaultxavi, zmike, bu5hm4n, cedric, felipealmeida Reviewed By: segfaultxavi, cedric Tags: #efl, #do_not_merge Maniphest Tasks: T7673 Differential Revision: https://phab.enlightenment.org/D7855
Diffstat (limited to '')
-rw-r--r--src/lib/ecore/efl_composite_model.eo3
-rw-r--r--src/lib/ecore/efl_view_model.eo2
-rw-r--r--src/lib/elementary/efl_ui_widget.eo2
-rw-r--r--src/lib/elementary/efl_ui_widget_factory.eo4
-rw-r--r--src/lib/elementary/efl_ui_win.eo6
-rw-r--r--src/lib/elementary/elm_glview.eo2
-rw-r--r--src/lib/elementary/elm_view_form.eo2
-rw-r--r--src/lib/elementary/elm_view_list.eo2
8 files changed, 12 insertions, 11 deletions
diff --git a/src/lib/ecore/efl_composite_model.eo b/src/lib/ecore/efl_composite_model.eo
index 58cc3c3e2c..b1b3cc7ef5 100644
--- a/src/lib/ecore/efl_composite_model.eo
+++ b/src/lib/ecore/efl_composite_model.eo
@@ -31,6 +31,7 @@ class Efl.Composite_Model extends Efl.Loop_Model implements Efl.Ui.View
31 Efl.Model.child_del; 31 Efl.Model.child_del;
32 } 32 }
33 constructors { 33 constructors {
34 .index; 34 .index @optional;
35 Efl.Ui.View.model;
35 } 36 }
36} 37}
diff --git a/src/lib/ecore/efl_view_model.eo b/src/lib/ecore/efl_view_model.eo
index d362e88021..349a5a4e77 100644
--- a/src/lib/ecore/efl_view_model.eo
+++ b/src/lib/ecore/efl_view_model.eo
@@ -99,6 +99,6 @@ class Efl.View_Model extends Efl.Composite_Model
99 Efl.Model.property { set; get; } 99 Efl.Model.property { set; get; }
100 } 100 }
101 constructors { 101 constructors {
102 Efl.View_Model.children_bind; 102 Efl.View_Model.children_bind @optional;
103 } 103 }
104} 104}
diff --git a/src/lib/elementary/efl_ui_widget.eo b/src/lib/elementary/efl_ui_widget.eo
index 98d357d472..a66458c1d2 100644
--- a/src/lib/elementary/efl_ui_widget.eo
+++ b/src/lib/elementary/efl_ui_widget.eo
@@ -595,7 +595,7 @@ abstract Efl.Ui.Widget extends Efl.Canvas.Group implements Efl.Access.Object,
595 Efl.Part.part_get; [[Returns @Efl.Ui.Widget_Part.]] 595 Efl.Part.part_get; [[Returns @Efl.Ui.Widget_Part.]]
596 } 596 }
597 constructors { 597 constructors {
598 .style; 598 .style @optional;
599 } 599 }
600 events { 600 events {
601 moved: Efl.Object; [[Called when widget moved]] 601 moved: Efl.Object; [[Called when widget moved]]
diff --git a/src/lib/elementary/efl_ui_widget_factory.eo b/src/lib/elementary/efl_ui_widget_factory.eo
index 3652010735..63eb3c28db 100644
--- a/src/lib/elementary/efl_ui_widget_factory.eo
+++ b/src/lib/elementary/efl_ui_widget_factory.eo
@@ -23,6 +23,6 @@ class Efl.Ui.Widget_Factory extends Efl.Loop_Consumer implements Efl.Ui.Factory
23 Efl.Ui.Model.Connect.connect; 23 Efl.Ui.Model.Connect.connect;
24 } 24 }
25 constructors { 25 constructors {
26 .item_class; 26 .item_class @optional;
27 } 27 }
28} \ No newline at end of file 28}
diff --git a/src/lib/elementary/efl_ui_win.eo b/src/lib/elementary/efl_ui_win.eo
index 148eaeb805..fc2d52fd52 100644
--- a/src/lib/elementary/efl_ui_win.eo
+++ b/src/lib/elementary/efl_ui_win.eo
@@ -872,9 +872,9 @@ class Efl.Ui.Win extends Efl.Ui.Widget implements Efl.Canvas.Scene, Efl.Access.W
872 Efl.Part.part_get; 872 Efl.Part.part_get;
873 } 873 }
874 constructors { 874 constructors {
875 .win_name; 875 .win_name @optional;
876 .win_type; 876 .win_type @optional;
877 .accel_preference; 877 .accel_preference @optional;
878 } 878 }
879 events { 879 events {
880 delete,request: void; [[Called when the window receives a delete request]] 880 delete,request: void; [[Called when the window receives a delete request]]
diff --git a/src/lib/elementary/elm_glview.eo b/src/lib/elementary/elm_glview.eo
index faa03f2691..73b8bf83c2 100644
--- a/src/lib/elementary/elm_glview.eo
+++ b/src/lib/elementary/elm_glview.eo
@@ -229,6 +229,6 @@ class Elm.Glview extends Efl.Ui.Widget implements Efl.Gfx.View, Efl.Ui.Legacy
229 ]] 229 ]]
230 } 230 }
231 constructors { 231 constructors {
232 .version_constructor; 232 .version_constructor @optional;
233 } 233 }
234} 234}
diff --git a/src/lib/elementary/elm_view_form.eo b/src/lib/elementary/elm_view_form.eo
index a6bf4cc6df..ce32cecce8 100644
--- a/src/lib/elementary/elm_view_form.eo
+++ b/src/lib/elementary/elm_view_form.eo
@@ -26,6 +26,6 @@ class Elm.View.Form extends Efl.Object
26 Efl.Object.destructor; 26 Efl.Object.destructor;
27 } 27 }
28 constructors { 28 constructors {
29 .model_set; 29 .model_set @optional;
30 } 30 }
31} 31}
diff --git a/src/lib/elementary/elm_view_list.eo b/src/lib/elementary/elm_view_list.eo
index 7a8e777b4d..932b5863f6 100644
--- a/src/lib/elementary/elm_view_list.eo
+++ b/src/lib/elementary/elm_view_list.eo
@@ -60,6 +60,6 @@ class Elm.View.List extends Efl.Object
60 Efl.Object.destructor; 60 Efl.Object.destructor;
61 } 61 }
62 constructors { 62 constructors {
63 .genlist_set; 63 .genlist_set @optional;
64 } 64 }
65} 65}