summaryrefslogtreecommitdiff
path: root/src/bindings/mono/efl_mono/efl_csharp_application.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/efl_mono/efl_csharp_application.cs')
-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 };