forked from enlightenment/efl
[access] shutdown access module explicitly
SVN revision: 83577
This commit is contained in:
parent
5decfb9f18
commit
2f5bb2b5cf
|
@ -80,6 +80,21 @@ _access_init(void)
|
|||
mapi = m->api;
|
||||
}
|
||||
|
||||
static void
|
||||
_access_shutdown(void)
|
||||
{
|
||||
Elm_Module *m;
|
||||
if (initted == 0) return;
|
||||
if (!(m = _elm_module_find_as("access/api"))) return;
|
||||
|
||||
m->shutdown_func(m);
|
||||
|
||||
initted = 0;
|
||||
|
||||
free(mapi);
|
||||
mapi = NULL;
|
||||
}
|
||||
|
||||
static Elm_Access_Item *
|
||||
_access_add_set(Elm_Access_Info *ac, int type)
|
||||
{
|
||||
|
@ -268,6 +283,12 @@ Eina_Bool _elm_access_read_mode_get()
|
|||
{
|
||||
return read_mode;
|
||||
}
|
||||
|
||||
void _elm_access_shutdown()
|
||||
{
|
||||
_access_shutdown();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------//
|
||||
EAPI void
|
||||
_elm_access_highlight_set(Evas_Object* obj)
|
||||
|
@ -420,6 +441,8 @@ _elm_access_read(Elm_Access_Info *ac, int type, const Evas_Object *obj)
|
|||
EAPI void
|
||||
_elm_access_say(const char *txt)
|
||||
{
|
||||
if (!_elm_config->access_mode) return;
|
||||
|
||||
_access_init();
|
||||
if (mapi)
|
||||
{
|
||||
|
|
|
@ -577,6 +577,8 @@ void _elm_config_access_set(Eina_Bool is_access)
|
|||
if (_elm_config->access_mode == is_access) return;
|
||||
_elm_config->access_mode = is_access;
|
||||
_elm_win_access(is_access);
|
||||
|
||||
if (!is_access) _elm_access_shutdown();
|
||||
}
|
||||
|
||||
Eina_Bool _elm_config_selection_unfocused_clear_get(void)
|
||||
|
|
|
@ -487,6 +487,7 @@ struct _Elm_Access_Info
|
|||
Evas_Object *part_object;
|
||||
};
|
||||
|
||||
void _elm_access_shutdown();
|
||||
void _elm_access_mouse_event_enabled_set(Eina_Bool enabled);
|
||||
/* elm_widget_focus_list_next_get();, elm_widget_focus_next_get();
|
||||
and elm_widget_focus_cycle(); use _elm_access_read_mode to use
|
||||
|
|
Loading…
Reference in New Issue