aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Stanislawski <lukasz.stanislawski@gmail.com>2019-02-13 23:43:53 +0100
committerLukasz Stanislawski <lukasz.stanislawski@gmail.com>2019-02-13 23:43:53 +0100
commite18d8dd2ac345fd5ace76d6bf511a979339078f8 (patch)
tree42315a45a4ecd9c8c14dba1ce89927822b1ffc2f
parentefl_access: add Elm.Access.Provider class (diff)
downloadefl-e18d8dd2ac345fd5ace76d6bf511a979339078f8.tar.gz
efl_access: refactor Elm.Atspi.App.Object class
-rw-r--r--src/lib/elementary/elm_atspi_app_object.c5
-rw-r--r--src/lib/elementary/elm_main.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/elementary/elm_atspi_app_object.c b/src/lib/elementary/elm_atspi_app_object.c
index 3f4261df57..622c7d834a 100644
--- a/src/lib/elementary/elm_atspi_app_object.c
+++ b/src/lib/elementary/elm_atspi_app_object.c
@@ -48,9 +48,8 @@ _elm_atspi_app_object_efl_access_object_access_children_get(const Eo *obj EINA_U
EINA_LIST_FOREACH(_elm_win_list, l, win)
{
- if (!efl_isa(win, EFL_ACCESS_OBJECT_MIXIN))
- continue;
- accs = eina_list_append(accs, win);
+ Efl_Access_Object *access = efl_access_object_query(EFL_ACCESS_OBJECT_MIXIN, win);
+ if (access) accs = eina_list_append(accs, access);
}
return accs;
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index 58b2d850ec..7fe03fe638 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -428,7 +428,10 @@ elm_init(int argc, char **argv)
ELM_CNP_EVENT_SELECTION_CHANGED = ecore_event_type_new();
if (_elm_config->atspi_mode != ELM_ATSPI_MODE_OFF)
- _elm_atspi_bridge_init();
+ {
+ _elm_access_init();
+ _elm_atspi_bridge_init();
+ }
if (!_elm_config->web_backend)
_elm_config->web_backend = eina_stringshare_add("none");
if (!_elm_web_init(_elm_config->web_backend))
@@ -1207,7 +1210,10 @@ elm_quicklaunch_fork(int argc,
if (setsid() < 0) perror("could not setsid");
if (chdir(cwd) != 0) perror("could not chdir");
if (_elm_config->atspi_mode != ELM_ATSPI_MODE_OFF)
- _elm_atspi_bridge_init();
+ {
+ _elm_access_init();
+ _elm_atspi_bridge_init();
+ }
if (qre_main)
{