diff options
author | Bruno da Silva Belo <brunodasilvabelo@gmail.com> | 2019-09-12 15:01:45 +0200 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2019-09-12 15:04:11 +0200 |
commit | 242ed076f3836f60bf84a32f2ded77879f3bd860 (patch) | |
tree | f35b0f06c6052f298a56dea987d5a0302b42528e | |
parent | f161620f9fec23a0027ddbea7c5de5ed20a53e8e (diff) |
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
-rw-r--r-- | reference/csharp/eina/src/eina_array.cs | 2 | ||||
-rw-r--r-- | reference/csharp/eina/src/eina_hash.cs | 2 | ||||
-rw-r--r-- | reference/csharp/eina/src/eina_iterator.cs | 2 | ||||
-rw-r--r-- | reference/csharp/eina/src/eina_list.cs | 2 | ||||
-rw-r--r-- | reference/csharp/eina/src/eina_log.cs | 2 | ||||
-rw-r--r-- | reference/csharp/eina/src/eina_value.cs | 2 | ||||
-rw-r--r-- | tutorial/csharp/eo-intro/src/eo_intro_main.cs | 2 | ||||
-rw-r--r-- | tutorial/csharp/hello-world/src/hello-world.cs | 9 |
8 files changed, 16 insertions, 7 deletions
diff --git a/reference/csharp/eina/src/eina_array.cs b/reference/csharp/eina/src/eina_array.cs index dffb394b..3864bded 100644 --- a/reference/csharp/eina/src/eina_array.cs +++ b/reference/csharp/eina/src/eina_array.cs | |||
@@ -76,7 +76,7 @@ public class Example : Efl.Csharp.Application | |||
76 | public static void Main() | 76 | public static void Main() |
77 | { | 77 | { |
78 | var example = new Example(); | 78 | var example = new Example(); |
79 | example.Launch(); | 79 | example.Launch(Efl.Csharp.Components.Basic); |
80 | } | 80 | } |
81 | } | 81 | } |
82 | 82 | ||
diff --git a/reference/csharp/eina/src/eina_hash.cs b/reference/csharp/eina/src/eina_hash.cs index 07b23199..ee8e6019 100644 --- a/reference/csharp/eina/src/eina_hash.cs +++ b/reference/csharp/eina/src/eina_hash.cs | |||
@@ -131,6 +131,6 @@ public class Example : Efl.Csharp.Application | |||
131 | public static void Main() | 131 | public static void Main() |
132 | { | 132 | { |
133 | var example = new Example(); | 133 | var example = new Example(); |
134 | example.Launch(); | 134 | example.Launch(Efl.Csharp.Components.Basic); |
135 | } | 135 | } |
136 | } | 136 | } |
diff --git a/reference/csharp/eina/src/eina_iterator.cs b/reference/csharp/eina/src/eina_iterator.cs index 498c3e5a..c8d29f8b 100644 --- a/reference/csharp/eina/src/eina_iterator.cs +++ b/reference/csharp/eina/src/eina_iterator.cs | |||
@@ -80,6 +80,6 @@ public class Example : Efl.Csharp.Application | |||
80 | public static void Main() | 80 | public static void Main() |
81 | { | 81 | { |
82 | var example = new Example(); | 82 | var example = new Example(); |
83 | example.Launch(); | 83 | example.Launch(Efl.Csharp.Components.Basic); |
84 | } | 84 | } |
85 | } | 85 | } |
diff --git a/reference/csharp/eina/src/eina_list.cs b/reference/csharp/eina/src/eina_list.cs index 059f4d79..8f2956be 100644 --- a/reference/csharp/eina/src/eina_list.cs +++ b/reference/csharp/eina/src/eina_list.cs | |||
@@ -70,6 +70,6 @@ public class Example : Efl.Csharp.Application | |||
70 | public static void Main() | 70 | public static void Main() |
71 | { | 71 | { |
72 | var example = new Example(); | 72 | var example = new Example(); |
73 | example.Launch(); | 73 | example.Launch(Efl.Csharp.Components.Basic); |
74 | } | 74 | } |
75 | } | 75 | } |
diff --git a/reference/csharp/eina/src/eina_log.cs b/reference/csharp/eina/src/eina_log.cs index f671c9af..159853dd 100644 --- a/reference/csharp/eina/src/eina_log.cs +++ b/reference/csharp/eina/src/eina_log.cs | |||
@@ -64,6 +64,6 @@ public class Example : Efl.Csharp.Application | |||
64 | public static void Main() | 64 | public static void Main() |
65 | { | 65 | { |
66 | var example = new Example(); | 66 | var example = new Example(); |
67 | example.Launch(); | 67 | example.Launch(Efl.Csharp.Components.Basic); |
68 | } | 68 | } |
69 | } | 69 | } |
diff --git a/reference/csharp/eina/src/eina_value.cs b/reference/csharp/eina/src/eina_value.cs index 328a9dad..3e82e2c7 100644 --- a/reference/csharp/eina/src/eina_value.cs +++ b/reference/csharp/eina/src/eina_value.cs | |||
@@ -67,6 +67,6 @@ public class Example : Efl.Csharp.Application | |||
67 | public static void Main() | 67 | public static void Main() |
68 | { | 68 | { |
69 | var example = new Example(); | 69 | var example = new Example(); |
70 | example.Launch(); | 70 | example.Launch(Efl.Csharp.Components.Basic); |
71 | } | 71 | } |
72 | } | 72 | } |
diff --git a/tutorial/csharp/eo-intro/src/eo_intro_main.cs b/tutorial/csharp/eo-intro/src/eo_intro_main.cs index a928b91f..b5ee7730 100644 --- a/tutorial/csharp/eo-intro/src/eo_intro_main.cs +++ b/tutorial/csharp/eo-intro/src/eo_intro_main.cs | |||
@@ -49,6 +49,6 @@ public class Example : Efl.Csharp.Application | |||
49 | public static void Main() | 49 | public static void Main() |
50 | { | 50 | { |
51 | var example = new Example(); | 51 | var example = new Example(); |
52 | example.Launch(); | 52 | example.Launch(Efl.Csharp.Components.Basic); |
53 | } | 53 | } |
54 | } | 54 | } |
diff --git a/tutorial/csharp/hello-world/src/hello-world.cs b/tutorial/csharp/hello-world/src/hello-world.cs index a7b04575..2eac0bfe 100644 --- a/tutorial/csharp/hello-world/src/hello-world.cs +++ b/tutorial/csharp/hello-world/src/hello-world.cs | |||
@@ -2,6 +2,14 @@ using System; | |||
2 | 2 | ||
3 | public class Example : Efl.Csharp.Application | 3 | public class Example : Efl.Csharp.Application |
4 | { | 4 | { |
5 | // Callback to quit the application | ||
6 | public static void QuitCb(object sender, Efl.Gfx.EntityVisibilityChangedEventArgs e) | ||
7 | { | ||
8 | // Exit the EFL main loop | ||
9 | if (e.arg == false) | ||
10 | Efl.App.AppMain.Quit(0); | ||
11 | } | ||
12 | |||
5 | protected override void OnInitialize(string[] args) | 13 | protected override void OnInitialize(string[] args) |
6 | { | 14 | { |
7 | // Create a window and initialize it | 15 | // Create a window and initialize it |
@@ -14,6 +22,7 @@ public class Example : Efl.Csharp.Application | |||
14 | // Window size must be explicitly set, otherwise it will be invisible | 22 | // Window size must be explicitly set, otherwise it will be invisible |
15 | // due to its lack of content. | 23 | // due to its lack of content. |
16 | win.SetSize(new Eina.Size2D(360, 240)); | 24 | win.SetSize(new Eina.Size2D(360, 240)); |
25 | win.VisibilityChangedEvent += QuitCb; | ||
17 | } | 26 | } |
18 | 27 | ||
19 | #if WIN32 | 28 | #if WIN32 |