summaryrefslogtreecommitdiff
path: root/src/tests/elementary/suite_helpers.c
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/elementary/suite_helpers.c
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/elementary/suite_helpers.c')
-rw-r--r--src/tests/elementary/suite_helpers.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/elementary/suite_helpers.c b/src/tests/elementary/suite_helpers.c
index 4352b65408..fe2976e48b 100644
--- a/src/tests/elementary/suite_helpers.c
+++ b/src/tests/elementary/suite_helpers.c
@@ -4,6 +4,7 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#include <Efl_Ui.h> 5#include <Efl_Ui.h>
6#include <check.h> 6#include <check.h>
7#include "eo_internal.h"
7#include "../efl_check.h" 8#include "../efl_check.h"
8#include "elm_widget.h" 9#include "elm_widget.h"
9 10
@@ -170,6 +171,8 @@ _ui_win_hide(void *data EINA_UNUSED, const Efl_Event *ev)
170 efl_key_data_set(ev->object, "timer", NULL); 171 efl_key_data_set(ev->object, "timer", NULL);
171} 172}
172 173
174EFL_CLASS_SIMPLE_CLASS(efl_loop, "Efl.Loop", EFL_LOOP_CLASS)
175
173static Evas_Object * 176static Evas_Object *
174_elm_suite_win_create() 177_elm_suite_win_create()
175{ 178{
@@ -181,7 +184,7 @@ _elm_suite_win_create()
181 else 184 else
182 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC)); 185 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC));
183 if (!buffer) return win; 186 if (!buffer) return win;
184 loop = efl_add(EFL_LOOP_CLASS, win); 187 loop = efl_add(efl_loop_realized_class_get(), win);
185 timer = efl_add(EFL_LOOP_TIMER_CLASS, loop, 188 timer = efl_add(EFL_LOOP_TIMER_CLASS, loop,
186 efl_loop_timer_interval_set(efl_added, BUFFER_RENDER_INTERVAL), 189 efl_loop_timer_interval_set(efl_added, BUFFER_RENDER_INTERVAL),
187 efl_event_freeze(efl_added), 190 efl_event_freeze(efl_added),