summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-08-24 11:33:46 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2018-08-24 11:34:34 -0300
commita9efc388858b5b15f71c459d5981b03442fb1787 (patch)
tree36a961a7095f6f78b81f759a39e91a77f153926a /src/bin/eolian_mono
parent4a808834d05d7553d24664de00c5a2d986f9793a (diff)
csharp: Fix event registration in constructor.
Summary: The binding user should be able to register to events inside the initialization callback given to the constructor. Fixes T7346 Reviewers: segfaultxavi, felipealmeida, vitor.sousa Reviewed By: segfaultxavi, vitor.sousa Subscribers: cedric, #reviewers, #committers, zmike Tags: #efl Maniphest Tasks: T7346 Differential Revision: https://phab.enlightenment.org/D6908
Diffstat (limited to 'src/bin/eolian_mono')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index ce90b4a..7b632da 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -198,11 +198,11 @@ struct klass
198 << scope_tab << scope_tab << "if(parent != null)\n" 198 << scope_tab << scope_tab << "if(parent != null)\n"
199 << scope_tab << scope_tab << scope_tab << "parent_ptr = parent.raw_handle;\n" 199 << scope_tab << scope_tab << scope_tab << "parent_ptr = parent.raw_handle;\n"
200 << scope_tab << scope_tab << "handle = efl.eo.Globals._efl_add_internal_start(\"file\", 0, klass, parent_ptr, 1, 0);\n" 200 << scope_tab << scope_tab << "handle = efl.eo.Globals._efl_add_internal_start(\"file\", 0, klass, parent_ptr, 1, 0);\n"
201 << scope_tab << scope_tab << "register_event_proxies();\n"
201 << scope_tab << scope_tab << "if (init_cb != null) {\n" 202 << scope_tab << scope_tab << "if (init_cb != null) {\n"
202 << scope_tab << scope_tab << scope_tab << "init_cb(this);\n" 203 << scope_tab << scope_tab << scope_tab << "init_cb(this);\n"
203 << scope_tab << scope_tab << "}\n" 204 << scope_tab << scope_tab << "}\n"
204 << scope_tab << scope_tab << "handle = efl.eo.Globals._efl_add_end(handle, 1, 0);\n" // replace handle with the actual final handle 205 << scope_tab << scope_tab << "handle = efl.eo.Globals._efl_add_end(handle, 1, 0);\n" // replace handle with the actual final handle
205 << scope_tab << scope_tab << "register_event_proxies();\n"
206 << scope_tab << scope_tab << "eina.Error.RaiseIfOccurred();\n" 206 << scope_tab << scope_tab << "eina.Error.RaiseIfOccurred();\n"
207 << scope_tab << "}\n" 207 << scope_tab << "}\n"
208 << (class_type == "class" ? "" : "*/") 208 << (class_type == "class" ? "" : "*/")
@@ -312,12 +312,12 @@ struct klass
312 << scope_tab << scope_tab << scope_tab << "}\n" 312 << scope_tab << scope_tab << scope_tab << "}\n"
313 << scope_tab << scope_tab << "}\n" 313 << scope_tab << scope_tab << "}\n"
314 << scope_tab << scope_tab << "handle = efl.eo.Globals.instantiate_start(klass, parent);\n" 314 << scope_tab << scope_tab << "handle = efl.eo.Globals.instantiate_start(klass, parent);\n"
315 << scope_tab << scope_tab << "register_event_proxies();\n"
315 << scope_tab << scope_tab << "if (init_cb != null) {\n" 316 << scope_tab << scope_tab << "if (init_cb != null) {\n"
316 << scope_tab << scope_tab << scope_tab << "init_cb(this);\n" 317 << scope_tab << scope_tab << scope_tab << "init_cb(this);\n"
317 << scope_tab << scope_tab << "}\n" 318 << scope_tab << scope_tab << "}\n"
318 << scope_tab << scope_tab << "handle = efl.eo.Globals.instantiate_end(handle);\n" 319 << scope_tab << scope_tab << "handle = efl.eo.Globals.instantiate_end(handle);\n"
319 << scope_tab << scope_tab << "efl.eo.Globals.data_set(this);\n" 320 << scope_tab << scope_tab << "efl.eo.Globals.data_set(this);\n"
320 << scope_tab << scope_tab << "register_event_proxies();\n"
321 << scope_tab << scope_tab << "eina.Error.RaiseIfOccurred();\n" 321 << scope_tab << scope_tab << "eina.Error.RaiseIfOccurred();\n"
322 << scope_tab << "}\n" 322 << scope_tab << "}\n"
323 << scope_tab << "///<summary>Destructor.</summary>\n" 323 << scope_tab << "///<summary>Destructor.</summary>\n"