Adapt examples to new App API
loop_main has been renamed to app_main.
This commit is contained in:
parent
d74a4df994
commit
a7c5ff510e
|
@ -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…
Reference in New Issue