summaryrefslogtreecommitdiff
path: root/src/tests/ecore
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-19 20:02:08 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-20 12:56:54 +0100
commit20ddd4c67906f69d4242aeb845eadda46ef636e8 (patch)
tree417388329c755356bcc8e1d0fbab49ec417886a5 /src/tests/ecore
parent7031a8cd7ec87177b4c9002506a81f3475645d6a (diff)
efl_app: introduce app_main for getting the app object
This brings in the possibility to receive the app object from bindings. With the app object you can listen to pause / args / terminate / resume events. fix T7509 Differential Revision: https://phab.enlightenment.org/D7480
Diffstat (limited to 'src/tests/ecore')
-rw-r--r--src/tests/ecore/efl_app_suite.c2
-rw-r--r--src/tests/ecore/efl_app_test_loop.c14
-rw-r--r--src/tests/ecore/efl_app_test_loop_timer.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/ecore/efl_app_suite.c b/src/tests/ecore/efl_app_suite.c
index 0767e83c0c..b3be09915a 100644
--- a/src/tests/ecore/efl_app_suite.c
+++ b/src/tests/ecore/efl_app_suite.c
@@ -17,7 +17,7 @@ EFL_START_TEST(efl_app_test_efl_build_version)
17 17
18 ecore_init(); 18 ecore_init();
19 19
20 app = efl_app_get(); 20 app = efl_app_main_get(EFL_APP_CLASS);
21 fail_if(!efl_isa(app, EFL_APP_CLASS)); 21 fail_if(!efl_isa(app, EFL_APP_CLASS));
22 22
23 efl_build_version_set(EFL_VERSION_MAJOR, EFL_VERSION_MINOR, 0, 0, NULL, EFL_BUILD_ID); 23 efl_build_version_set(EFL_VERSION_MAJOR, EFL_VERSION_MINOR, 0, 0, NULL, EFL_BUILD_ID);
diff --git a/src/tests/ecore/efl_app_test_loop.c b/src/tests/ecore/efl_app_test_loop.c
index f80fd7e3d5..f8e0b5548f 100644
--- a/src/tests/ecore/efl_app_test_loop.c
+++ b/src/tests/ecore/efl_app_test_loop.c
@@ -15,24 +15,24 @@ EFL_START_TEST(efl_app_test_efl_loop_register)
15 15
16 ecore_init(); 16 ecore_init();
17 17
18 t = efl_provider_find(efl_app_get(), EFL_LOOP_CLASS); 18 t = efl_provider_find(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_CLASS);
19 fail_if(!efl_isa(t, EFL_LOOP_CLASS)); 19 fail_if(!efl_isa(t, EFL_LOOP_CLASS));
20 fail_if(!efl_isa(t, EFL_APP_CLASS)); 20 fail_if(!efl_isa(t, EFL_APP_CLASS));
21 21
22 t = efl_provider_find(efl_app_get(), EFL_LOOP_TIMER_CLASS); 22 t = efl_provider_find(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS);
23 fail_if(t != NULL); 23 fail_if(t != NULL);
24 24
25 n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get(), 25 n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_main_get(EFL_APP_CLASS),
26 efl_loop_timer_interval_set(efl_added, 1.0)); 26 efl_loop_timer_interval_set(efl_added, 1.0));
27 efl_loop_register(efl_app_get(), EFL_LOOP_TIMER_CLASS, n); 27 efl_loop_register(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS, n);
28 28
29 t = efl_provider_find(efl_app_get(), EFL_LOOP_TIMER_CLASS); 29 t = efl_provider_find(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS);
30 fail_if(!efl_isa(t, EFL_LOOP_TIMER_CLASS)); 30 fail_if(!efl_isa(t, EFL_LOOP_TIMER_CLASS));
31 fail_if(t != n); 31 fail_if(t != n);
32 32
33 efl_loop_unregister(efl_app_get(), EFL_LOOP_TIMER_CLASS, n); 33 efl_loop_unregister(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS, n);
34 34
35 t = efl_provider_find(efl_app_get(), EFL_LOOP_TIMER_CLASS); 35 t = efl_provider_find(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS);
36 fail_if(t != NULL); 36 fail_if(t != NULL);
37 37
38 ecore_shutdown(); 38 ecore_shutdown();
diff --git a/src/tests/ecore/efl_app_test_loop_timer.c b/src/tests/ecore/efl_app_test_loop_timer.c
index f2d83256af..999c5f1743 100644
--- a/src/tests/ecore/efl_app_test_loop_timer.c
+++ b/src/tests/ecore/efl_app_test_loop_timer.c
@@ -66,7 +66,7 @@ EFL_END_TEST
66 66
67EFL_START_TEST(efl_app_test_loop_timer_invalid) 67EFL_START_TEST(efl_app_test_loop_timer_invalid)
68{ 68{
69 Efl_Object *t = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get()); 69 Efl_Object *t = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_main_get(EFL_APP_CLASS));
70 fail_if(t != NULL); 70 fail_if(t != NULL);
71} 71}
72EFL_END_TEST 72EFL_END_TEST