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:
Bruno da Silva Belo 2019-09-12 15:01:45 +02:00 committed by Xavi Artigas
parent f161620f9f
commit 242ed076f3
8 changed files with 16 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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