Adapt examples to new App API

loop_main has been renamed to app_main.
devs/bu5hm4n/POC
Marcel Hollerbach 4 years ago
parent d74a4df994
commit a7c5ff510e
  1. 2
      apps/csharp/texteditor/src/texteditor_main.cs
  2. 2
      reference/csharp/core/src/core_event.cs
  3. 2
      reference/csharp/core/src/core_idler.cs
  4. 2
      reference/csharp/core/src/core_poll.cs
  5. 2
      tutorial/csharp/hello-gui/src/gui_main.cs
  6. 2
      tutorial/csharp/hello-world/src/hello-world.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;

@ -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

@ -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) => {

@ -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) => {

@ -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"

@ -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"

Loading…
Cancel
Save