Adapt examples to new App API

loop_main has been renamed to app_main.
This commit is contained in:
Marcel Hollerbach 2018-12-20 16:28:15 +01:00
parent d74a4df994
commit a7c5ff510e
6 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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