summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-03 19:06:58 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-03 19:06:58 -0300
commit4a0073d6f644808c0eba594aa4ac11e1728ad7c5 (patch)
treec6aac58cb34ff9055b270e6adc05478913d3d5dc
parent0fe34fce6cd445d192958bc475733a6966819662 (diff)
efl-csharp: Trying to pass arguments to the loop argumentsdevs/lauromoura/app_poc
-rw-r--r--src/bindings/mono/efl_mono/efl_csharp_application.cs6
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 {
100 /// This function initializices everything in EFL and runs your application. 100 /// This function initializices everything in EFL and runs your application.
101 /// This call will result in a call to args 101 /// This call will result in a call to args
102 /// </summary> 102 /// </summary>
103 public void launch(Efl.Csharp.Components components=Components.Ui) { 103 public void launch(string[] argv=null, Efl.Csharp.Components components=Components.Ui) {
104 Init(components); 104 Init(components);
105 Efl.App app = Efl.App.AppMain; 105 Efl.App app = Efl.App.AppMain;
106 app.ArgumentsEvt += (object sender, LoopArgumentsEvt_Args evt) => { 106 app.ArgumentsEvt += (object sender, LoopArgumentsEvt_Args evt) => {
107 args(evt.arg); 107 args(evt.arg);
108 }; 108 };
109 if (argv != null)
110 // Does not seem to be being passed to the callback.
111 foreach (var arg in argv)
112 app.AppendArg(arg);
109 app.PauseEvt += (object sender, EventArgs e) => { 113 app.PauseEvt += (object sender, EventArgs e) => {
110 pause(); 114 pause();
111 }; 115 };