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
devs/lauromoura/csharp-mvvm
Bruno da Silva Belo 3 years ago committed by Xavi Artigas
parent f161620f9f
commit 242ed076f3
  1. 2
      reference/csharp/eina/src/eina_array.cs
  2. 2
      reference/csharp/eina/src/eina_hash.cs
  3. 2
      reference/csharp/eina/src/eina_iterator.cs
  4. 2
      reference/csharp/eina/src/eina_list.cs
  5. 2
      reference/csharp/eina/src/eina_log.cs
  6. 2
      reference/csharp/eina/src/eina_value.cs
  7. 2
      tutorial/csharp/eo-intro/src/eo_intro_main.cs
  8. 9
      tutorial/csharp/hello-world/src/hello-world.cs

@ -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…
Cancel
Save