efl_mono: Fix efl_add_internal_end call.

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>
This commit is contained in:
Lauro Moura 2018-05-25 10:01:06 -07:00 committed by Cedric BAIL
parent 7d4c5f5d7c
commit a8b7833a48
2 changed files with 2 additions and 2 deletions

View 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"

View 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;
}