efl_mono: Fix efl_add_internal_end call.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Fri, 25 May 2018 17:01:06 +0000 (10:01 -0700)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 1 Jun 2018 03:53:02 +0000 (12:53 +0900)
Summary:
It was missing setting the 'is_ref' parameter to 1 to mirror the
internal_start call.

Test Plan: make check

Reviewers: cedric

Subscribers: #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6193

Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
src/bin/eolian_mono/eolian/mono/klass.hh
src/bindings/mono/eo_mono/iwrapper.cs

index c25b1d8..ce90b4a 100644 (file)
@@ -201,7 +201,7 @@ struct klass
              << scope_tab << scope_tab << "if (init_cb != null) {\n"
              << scope_tab << scope_tab << scope_tab << "init_cb(this);\n"
              << scope_tab << scope_tab << "}\n"
-             << scope_tab << scope_tab << "handle = efl.eo.Globals._efl_add_end(handle, 0, 0);\n" // replace handle with the actual final handle
+             << scope_tab << scope_tab << "handle = efl.eo.Globals._efl_add_end(handle, 1, 0);\n" // replace handle with the actual final handle
              << scope_tab << scope_tab << "register_event_proxies();\n"
              << scope_tab << scope_tab << "eina.Error.RaiseIfOccurred();\n"
              << scope_tab << "}\n"
index d25ffec..8e15b76 100644 (file)
@@ -106,7 +106,7 @@ public class Globals {
 
     public static IntPtr instantiate_end(IntPtr eo) {
         eina.Log.Debug("efl_add_internal_start returned");
-        eo = efl.eo.Globals._efl_add_end(eo, 0, 0);
+        eo = efl.eo.Globals._efl_add_end(eo, 1, 0);
         eina.Log.Debug("efl_add_end returned");
         return eo;
     }