summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-20 16:28:15 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-20 16:28:15 +0100
commit0cdc2deae97987b185bf64baccdc7a656a5f8f49 (patch)
tree252002adfff4833d7ef6e41697dc08aa27413788
parentd74a4df9946b69f769cd0ad40d4414c90d19a515 (diff)
csharp: update APIdevs/bu5hm4n/syntax-update
loop_main has been renamed to app_main.
-rw-r--r--apps/csharp/texteditor/src/texteditor_main.cs2
-rw-r--r--reference/csharp/core/src/core_event.cs2
-rw-r--r--reference/csharp/core/src/core_idler.cs2
-rw-r--r--reference/csharp/core/src/core_poll.cs2
-rw-r--r--tutorial/csharp/hello-gui/src/gui_main.cs2
-rw-r--r--tutorial/csharp/hello-world/src/hello-world.cs2
6 files changed, 6 insertions, 6 deletions
diff --git a/apps/csharp/texteditor/src/texteditor_main.cs b/apps/csharp/texteditor/src/texteditor_main.cs
index d9d63efb..69e95bf4 100644
--- a/apps/csharp/texteditor/src/texteditor_main.cs
+++ b/apps/csharp/texteditor/src/texteditor_main.cs
@@ -157,7 +157,7 @@ public class TextEditor
157 public TextEditor() 157 public TextEditor()
158 { 158 {
159 // Create a window and initialize it 159 // Create a window and initialize it
160 win = new Efl.Ui.Win(Efl.App.GetLoopMain(), (Efl.Ui.Win ewin) => { 160 win = new Efl.Ui.Win(Efl.App.AppMain, (Efl.Ui.Win ewin) => {
161 ewin.SetText("Text Editor"); 161 ewin.SetText("Text Editor");
162 ewin.SetAutohide(true); 162 ewin.SetAutohide(true);
163 ewin.HideEvt += GUIQuitCb; 163 ewin.HideEvt += GUIQuitCb;
diff --git a/reference/csharp/core/src/core_event.cs b/reference/csharp/core/src/core_event.cs
index 385357fb..20f38b7b 100644
--- a/reference/csharp/core/src/core_event.cs
+++ b/reference/csharp/core/src/core_event.cs
@@ -24,7 +24,7 @@ public class Example
24 Efl.All.Init(); 24 Efl.All.Init();
25 25
26 // Retrieve the application's main loop 26 // Retrieve the application's main loop
27 var mainloop = Efl.App.GetLoopMain(); 27 var mainloop = Efl.App.AppMain;
28 mainloop.SetName("Mainloop"); 28 mainloop.SetName("Mainloop");
29 29
30 // This event gets triggered continuously 30 // This event gets triggered continuously
diff --git a/reference/csharp/core/src/core_idler.cs b/reference/csharp/core/src/core_idler.cs
index c25b31f1..85c5f456 100644
--- a/reference/csharp/core/src/core_idler.cs
+++ b/reference/csharp/core/src/core_idler.cs
@@ -20,7 +20,7 @@ public class Example
20 Efl.All.Init(); 20 Efl.All.Init();
21 21
22 // Retrieve the application's main loop 22 // Retrieve the application's main loop
23 var mainloop = Efl.App.GetLoopMain(); 23 var mainloop = Efl.App.AppMain;
24 24
25 // Register to all Idle events 25 // Register to all Idle events
26 mainloop.IdleEnterEvt += (object sender, EventArgs e) => { 26 mainloop.IdleEnterEvt += (object sender, EventArgs e) => {
diff --git a/reference/csharp/core/src/core_poll.cs b/reference/csharp/core/src/core_poll.cs
index 6caf5c3f..6c7c16ab 100644
--- a/reference/csharp/core/src/core_poll.cs
+++ b/reference/csharp/core/src/core_poll.cs
@@ -19,7 +19,7 @@ public class Example
19 Efl.All.Init(); 19 Efl.All.Init();
20 20
21 // Retrieve the application's main loop 21 // Retrieve the application's main loop
22 var mainloop = Efl.App.GetLoopMain(); 22 var mainloop = Efl.App.AppMain;
23 23
24 // Register to all Poll events 24 // Register to all Poll events
25 mainloop.PollLowEvt += (object sender, EventArgs e) => { 25 mainloop.PollLowEvt += (object sender, EventArgs e) => {
diff --git a/tutorial/csharp/hello-gui/src/gui_main.cs b/tutorial/csharp/hello-gui/src/gui_main.cs
index f4aa4dcd..c5d13e2c 100644
--- a/tutorial/csharp/hello-gui/src/gui_main.cs
+++ b/tutorial/csharp/hello-gui/src/gui_main.cs
@@ -18,7 +18,7 @@ public class Example
18 Efl.All.Init(Efl.Components.Ui); 18 Efl.All.Init(Efl.Components.Ui);
19 19
20 // Create a window and initialize it 20 // Create a window and initialize it
21 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.GetLoopMain(), (Efl.Ui.Win ewin) => { 21 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain, (Efl.Ui.Win ewin) => {
22 // Set the window's title 22 // Set the window's title
23 ewin.SetText("Hello World"); 23 ewin.SetText("Hello World");
24 // Request that the window is automatically hidden when the "close" 24 // Request that the window is automatically hidden when the "close"
diff --git a/tutorial/csharp/hello-world/src/hello-world.cs b/tutorial/csharp/hello-world/src/hello-world.cs
index 15b358c2..123b7994 100644
--- a/tutorial/csharp/hello-world/src/hello-world.cs
+++ b/tutorial/csharp/hello-world/src/hello-world.cs
@@ -11,7 +11,7 @@ public class Example
11 Efl.All.Init(Efl.Components.Ui); 11 Efl.All.Init(Efl.Components.Ui);
12 12
13 // Create a window and initialize it 13 // Create a window and initialize it
14 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.GetLoopMain(), (Efl.Ui.Win ewin) => { 14 Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain, (Efl.Ui.Win ewin) => {
15 // Set the window's title 15 // Set the window's title
16 ewin.SetText("Hello World"); 16 ewin.SetText("Hello World");
17 // Request that the window is automatically hidden when the "close" 17 // Request that the window is automatically hidden when the "close"