aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-03-19 15:38:26 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-03-19 15:38:26 -0700
commit1fcb33f422414cdd71d35b49b424b3292c11275a (patch)
tree1d3e7a17270d33c96a455aba12a6775025354164
parentevas: use efl_add_ref for the container, might consider using a parent later on. (diff)
downloadefl-1fcb33f422414cdd71d35b49b424b3292c11275a.tar.gz
elementary: make global object lifecycle depends on the main loop.
-rw-r--r--src/lib/elementary/efl_access.c2
-rw-r--r--src/lib/elementary/elm_config.c2
-rw-r--r--src/lib/elementary/elm_sys_notify.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_access.c b/src/lib/elementary/efl_access.c
index 91775950ec..f1fd0e95fd 100644
--- a/src/lib/elementary/efl_access.c
+++ b/src/lib/elementary/efl_access.c
@@ -647,7 +647,7 @@ EOLIAN Eo*
_efl_access_access_root_get(Eo *class EINA_UNUSED, void *pd EINA_UNUSED)
{
if (!root)
- root = efl_add(ELM_ATSPI_APP_OBJECT_CLASS, NULL);
+ root = efl_add(ELM_ATSPI_APP_OBJECT_CLASS, efl_main_loop_get());
return root;
}
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index ae760472ab..e7de3fc8aa 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -1665,7 +1665,7 @@ _efl_config_obj_del(Eo *obj EINA_UNUSED)
static void
_config_load(void)
{
- _efl_config_obj = efl_add(EFL_CONFIG_GLOBAL_CLASS, NULL);
+ _efl_config_obj = efl_add(EFL_CONFIG_GLOBAL_CLASS, efl_main_loop_get());
efl_loop_register(efl_main_loop_get(), EFL_CONFIG_INTERFACE, _efl_config_obj);
efl_loop_register(efl_main_loop_get(), EFL_CONFIG_GLOBAL_CLASS, _efl_config_obj);
efl_del_intercept_set(_efl_config_obj, _efl_config_obj_del);
diff --git a/src/lib/elementary/elm_sys_notify.c b/src/lib/elementary/elm_sys_notify.c
index 4d1db56af8..fb7c691f11 100644
--- a/src/lib/elementary/elm_sys_notify.c
+++ b/src/lib/elementary/elm_sys_notify.c
@@ -203,7 +203,7 @@ _elm_sys_notify_singleton_get(Eo *obj EINA_UNUSED,
void *sd EINA_UNUSED)
{
if (!_singleton)
- _singleton = efl_add(MY_CLASS, NULL);
+ _singleton = efl_add(MY_CLASS, efl_main_loop_get());
return _singleton;
}