Fix runtime ERR regarding WinType

WinType can only be set during construction, so SetWinType() should never
be called. Use the constructor parameter for this.
This commit is contained in:
Xavi Artigas 2019-04-04 13:17:30 +02:00
parent b55e5150c9
commit 169f569af6
3 changed files with 3 additions and 6 deletions

View File

@ -10,8 +10,7 @@ public class Example : Efl.Csharp.Application
protected override void OnInitialize(Eina.Array<System.String> args)
{
// Create a window and initialize it
var win = new Efl.Ui.Win(null);
win.SetWinType(Efl.Ui.WinType.Basic);
var win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
win.SetText("Focus example");
win.SetAutohide(true);
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {

View File

@ -60,8 +60,7 @@ public class Example : Efl.Csharp.Application
protected override void OnInitialize(Eina.Array<System.String> args)
{
// Create a window and initialize it
Efl.Ui.Win win = new Efl.Ui.Win(null);
win.SetWinType(Efl.Ui.WinType.Basic);
Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
win.SetText("Container demo");
win.SetAutohide(true);
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {

View File

@ -13,8 +13,7 @@ public class Example : Efl.Csharp.Application
protected override void OnInitialize(Eina.Array<System.String> args)
{
// Create a window and initialize it
Efl.Ui.Win win = new Efl.Ui.Win(null);
win.SetWinType(Efl.Ui.WinType.Basic);
Efl.Ui.Win win = new Efl.Ui.Win(null, winType: Efl.Ui.WinType.Basic);
win.SetText("Size Control");
win.SetAutohide(true);
win.VisibilityChangedEvt += (object sender, Efl.Gfx.IEntityVisibilityChangedEvt_Args e) => {