From c681b3a1b38a097d632784427225a19f1eddd82b Mon Sep 17 00:00:00 2001 From: Bruno da Silva Belo Date: Wed, 11 Sep 2019 17:21:02 -0300 Subject: [PATCH] csharp: Registering events when using Components.Basic. 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 | 2 ++ src/bindings/mono/efl_mono/efl_csharp_application.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/bindings/mono/efl_mono/efl_all.cs b/src/bindings/mono/efl_mono/efl_all.cs index e1f020746b..2eedc4d896 100644 --- a/src/bindings/mono/efl_mono/efl_all.cs +++ b/src/bindings/mono/efl_mono/efl_all.cs @@ -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(); diff --git a/src/bindings/mono/efl_mono/efl_csharp_application.cs b/src/bindings/mono/efl_mono/efl_csharp_application.cs index 93df6e7a3b..92714098c2 100644 --- a/src/bindings/mono/efl_mono/efl_csharp_application.cs +++ b/src/bindings/mono/efl_mono/efl_csharp_application.cs @@ -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();