csharp: Basic components for all tests without Ui.
Summary: Uiless tests use basic components. Make test terminate again. Reviewers: lauromoura, felipealmeida, segfaultxavi Reviewed By: segfaultxavi Subscribers: brunobelo, felipealmeida, lauromoura Differential Revision: https://phab.enlightenment.org/D9916
This commit is contained in:
parent
f161620f9f
commit
242ed076f3
|
@ -76,7 +76,7 @@ public class Example : Efl.Csharp.Application
|
|||
public static void Main()
|
||||
{
|
||||
var example = new Example();
|
||||
example.Launch();
|
||||
example.Launch(Efl.Csharp.Components.Basic);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -131,6 +131,6 @@ public class Example : Efl.Csharp.Application
|
|||
public static void Main()
|
||||
{
|
||||
var example = new Example();
|
||||
example.Launch();
|
||||
example.Launch(Efl.Csharp.Components.Basic);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,6 +80,6 @@ public class Example : Efl.Csharp.Application
|
|||
public static void Main()
|
||||
{
|
||||
var example = new Example();
|
||||
example.Launch();
|
||||
example.Launch(Efl.Csharp.Components.Basic);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,6 +70,6 @@ public class Example : Efl.Csharp.Application
|
|||
public static void Main()
|
||||
{
|
||||
var example = new Example();
|
||||
example.Launch();
|
||||
example.Launch(Efl.Csharp.Components.Basic);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,6 +64,6 @@ public class Example : Efl.Csharp.Application
|
|||
public static void Main()
|
||||
{
|
||||
var example = new Example();
|
||||
example.Launch();
|
||||
example.Launch(Efl.Csharp.Components.Basic);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,6 +67,6 @@ public class Example : Efl.Csharp.Application
|
|||
public static void Main()
|
||||
{
|
||||
var example = new Example();
|
||||
example.Launch();
|
||||
example.Launch(Efl.Csharp.Components.Basic);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,6 @@ public class Example : Efl.Csharp.Application
|
|||
public static void Main()
|
||||
{
|
||||
var example = new Example();
|
||||
example.Launch();
|
||||
example.Launch(Efl.Csharp.Components.Basic);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,14 @@ using System;
|
|||
|
||||
public class Example : Efl.Csharp.Application
|
||||
{
|
||||
// Callback to quit the application
|
||||
public static void QuitCb(object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e)
|
||||
{
|
||||
// Exit the EFL main loop
|
||||
if (e.arg == false)
|
||||
Efl.App.AppMain.Quit(0);
|
||||
}
|
||||
|
||||
protected override void OnInitialize(string[] args)
|
||||
{
|
||||
// Create a window and initialize it
|
||||
|
@ -14,6 +22,7 @@ public class Example : Efl.Csharp.Application
|
|||
// Window size must be explicitly set, otherwise it will be invisible
|
||||
// due to its lack of content.
|
||||
win.SetSize(new Eina.Size2D(360, 240));
|
||||
win.VisibilityChangedEvent += QuitCb;
|
||||
}
|
||||
|
||||
#if WIN32
|
||||
|
|
Loading…
Reference in New Issue