diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-01-03 19:06:58 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-01-03 19:06:58 -0300 |
commit | 4a0073d6f644808c0eba594aa4ac11e1728ad7c5 (patch) | |
tree | c6aac58cb34ff9055b270e6adc05478913d3d5dc | |
parent | 0fe34fce6cd445d192958bc475733a6966819662 (diff) | |
download | efl-devs/lauromoura/app_poc.tar.gz |
efl-csharp: Trying to pass arguments to the loop argumentsdevs/lauromoura/app_poc
-rw-r--r-- | src/bindings/mono/efl_mono/efl_csharp_application.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bindings/mono/efl_mono/efl_csharp_application.cs b/src/bindings/mono/efl_mono/efl_csharp_application.cs index 603c134eca..8d2ef2fc5a 100644 --- a/src/bindings/mono/efl_mono/efl_csharp_application.cs +++ b/src/bindings/mono/efl_mono/efl_csharp_application.cs @@ -100,12 +100,16 @@ namespace Efl { /// This function initializices everything in EFL and runs your application. /// This call will result in a call to args /// </summary> - public void launch(Efl.Csharp.Components components=Components.Ui) { + public void launch(string[] argv=null, Efl.Csharp.Components components=Components.Ui) { Init(components); Efl.App app = Efl.App.AppMain; app.ArgumentsEvt += (object sender, LoopArgumentsEvt_Args evt) => { args(evt.arg); }; + if (argv != null) + // Does not seem to be being passed to the callback. + foreach (var arg in argv) + app.AppendArg(arg); app.PauseEvt += (object sender, EventArgs e) => { pause(); }; |