summaryrefslogtreecommitdiff
path: root/src/tests/ecore
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-21 15:33:55 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-21 19:13:39 +0100
commit078ccd1ca9d53421f0a378e77957abd0d11f3704 (patch)
tree21f1050a8806f17c600d4d3f663801c632b889ff /src/tests/ecore
parente4b98a243b0b5bc626c6601d4144ccd51d6000be (diff)
efl_loop / efl_app: make efl_app / efl_loop abstract
this is done inorder to ensure that noone ever thinks of creating theire own app/loop object. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7982
Diffstat (limited to 'src/tests/ecore')
-rw-r--r--src/tests/ecore/efl_app_test_loop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/ecore/efl_app_test_loop.c b/src/tests/ecore/efl_app_test_loop.c
index 0ab7bb6bdb..4325be2a9e 100644
--- a/src/tests/ecore/efl_app_test_loop.c
+++ b/src/tests/ecore/efl_app_test_loop.c
@@ -4,6 +4,7 @@
4 4
5#include <stdio.h> 5#include <stdio.h>
6#include <unistd.h> 6#include <unistd.h>
7#include "eo_internal.h"
7#define EFL_NOLEGACY_API_SUPPORT 8#define EFL_NOLEGACY_API_SUPPORT
8#include <Efl_Core.h> 9#include <Efl_Core.h>
9#include "efl_app_suite.h" 10#include "efl_app_suite.h"
@@ -65,13 +66,15 @@ loop_timer_tick(void *data, const Efl_Event *ev EINA_UNUSED)
65 efl_loop_iterate(data); 66 efl_loop_iterate(data);
66} 67}
67 68
69EFL_CLASS_SIMPLE_CLASS(efl_loop, "Efl.Loop", EFL_LOOP_CLASS)
70
68EFL_START_TEST(efl_app_test_efl_loop_concentric) 71EFL_START_TEST(efl_app_test_efl_loop_concentric)
69{ 72{
70 Eo *loop, *loop2, *timer, *timer2; 73 Eo *loop, *loop2, *timer, *timer2;
71 int exitcode; 74 int exitcode;
72 75
73 loop = efl_main_loop_get(); 76 loop = efl_main_loop_get();
74 loop2 = efl_add(EFL_LOOP_CLASS, loop); 77 loop2 = efl_add(efl_loop_realized_class_get(), loop);
75 efl_event_callback_add(loop, EFL_LOOP_EVENT_IDLE, loop_idle, loop2); 78 efl_event_callback_add(loop, EFL_LOOP_EVENT_IDLE, loop_idle, loop2);
76 efl_event_callback_add(loop, EFL_LOOP_EVENT_IDLE_ENTER, loop_idle_enter, NULL); 79 efl_event_callback_add(loop, EFL_LOOP_EVENT_IDLE_ENTER, loop_idle_enter, NULL);
77 timer = efl_add(EFL_LOOP_TIMER_CLASS, loop2, 80 timer = efl_add(EFL_LOOP_TIMER_CLASS, loop2,