csharp: Registering events when using Components.Basic.
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>
Wed, 11 Sep 2019 20:21:02 +0000 (17:21 -0300)
committerYeongjong Lee <yj34.lee@samsung.com>
Mon, 16 Sep 2019 01:23:00 +0000 (10:23 +0900)
Summary:
With `Components.Basic`, it isn't registering events,
while `Components.Ui` do with `elm_init`

Fixes T7770
Thanks @lauromoura

Test Plan: Look T7770

Reviewers: lauromoura, felipealmeida

Reviewed By: lauromoura

Subscribers: cedric, brunobelo, felipealmeida, #reviewers, lauromoura, #committers

Tags: #efl

Maniphest Tasks: T7770

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

src/bindings/mono/efl_mono/efl_all.cs
src/bindings/mono/efl_mono/efl_csharp_application.cs

index ba89a83..d7a0954 100644 (file)
@@ -13,6 +13,7 @@ static class UnsafeNativeMethods
 {
     private delegate void init_func_delegate();
     [DllImport(efl.Libs.Ecore)] public static extern void ecore_init();
+    [DllImport(efl.Libs.Ecore)] public static extern void ecore_init_ex(int argc, IntPtr argv);
     [DllImport(efl.Libs.Ecore)] public static extern void ecore_shutdown();
     // dotnet loads libraries from DllImport with RTLD_LOCAL. Due to the
     // way evas modules are built with meson, currently they do not link directly
@@ -54,6 +55,7 @@ public static class All
         Eina.Config.Init();
         Efl.Eo.Config.Init();
         ecore_init();
+        ecore_init_ex(0, IntPtr.Zero);
         evas_init();
         eldbus.Config.Init();
 
index badfea9..8ddfd0a 100644 (file)
@@ -46,6 +46,7 @@ public abstract class Application
         Eina.Config.Init();
         Efl.Eo.Config.Init();
         ecore_init();
+        ecore_init_ex(0, IntPtr.Zero);
         evas_init();
         eldbus.Config.Init();