bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/tools/examples.git/commit/?id=a7c5ff510ec94f4b00ebfcf91c911dc0d3fedbbb

commit a7c5ff510ec94f4b00ebfcf91c911dc0d3fedbbb
Author: Marcel Hollerbach <[email protected]>
Date:   Thu Dec 20 16:28:15 2018 +0100

    Adapt examples to new App API
    
    loop_main has been renamed to app_main.
---
 apps/csharp/texteditor/src/texteditor_main.cs  | 2 +-
 reference/csharp/core/src/core_event.cs        | 2 +-
 reference/csharp/core/src/core_idler.cs        | 2 +-
 reference/csharp/core/src/core_poll.cs         | 2 +-
 tutorial/csharp/hello-gui/src/gui_main.cs      | 2 +-
 tutorial/csharp/hello-world/src/hello-world.cs | 2 +-
 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
     public TextEditor()
     {
         // Create a window and initialize it
-        win = new Efl.Ui.Win(Efl.App.GetLoopMain(), (Efl.Ui.Win ewin) => {
+        win = new Efl.Ui.Win(Efl.App.AppMain, (Efl.Ui.Win ewin) => {
             ewin.SetText("Text Editor");
             ewin.SetAutohide(true);
             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
         Efl.All.Init();
 
         // Retrieve the application's main loop
-        var mainloop = Efl.App.GetLoopMain();
+        var mainloop = Efl.App.AppMain;
         mainloop.SetName("Mainloop");
 
         // 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
         Efl.All.Init();
 
         // Retrieve the application's main loop
-        var mainloop = Efl.App.GetLoopMain();
+        var mainloop = Efl.App.AppMain;
 
         // Register to all Idle events
         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
         Efl.All.Init();
 
         // Retrieve the application's main loop
-        var mainloop = Efl.App.GetLoopMain();
+        var mainloop = Efl.App.AppMain;
 
         // Register to all Poll events
         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
         Efl.All.Init(Efl.Components.Ui);
 
         // Create a window and initialize it
-        Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.GetLoopMain(), (Efl.Ui.Win 
ewin) => {
+        Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain, (Efl.Ui.Win ewin) => {
             // Set the window's title
             ewin.SetText("Hello World");
             // 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
         Efl.All.Init(Efl.Components.Ui);
 
         // Create a window and initialize it
-        Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.GetLoopMain(), (Efl.Ui.Win 
ewin) => {
+        Efl.Ui.Win win = new Efl.Ui.Win(Efl.App.AppMain, (Efl.Ui.Win ewin) => {
             // Set the window's title
             ewin.SetText("Hello World");
             // Request that the window is automatically hidden when the "close"

-- 


Reply via email to