modules/atspi: zone support (under devel)

devs/stanluk/a11y
Lukasz Stanislawski 7 years ago
parent 2cba9b53a7
commit e102604b48
  1. 3
      src/modules/Makefile_atspi_accessibility.mk
  2. 50
      src/modules/atspi_accessibility/e_a11y_zone.c
  3. 4
      src/modules/atspi_accessibility/e_a11y_zone.h
  4. 8
      src/modules/atspi_accessibility/e_mod_main.c

@ -8,7 +8,8 @@ src_modules_atspi_accessibility_module_la_LIBADD = $(MOD_LIBS)
src_modules_atspi_accessibility_module_la_CPPFLAGS = $(MOD_CPPFLAGS)
src_modules_atspi_accessibility_module_la_LDFLAGS = $(MOD_LDFLAGS)
src_modules_atspi_accessibility_module_la_SOURCES = src/modules/atspi_accessibility/e_mod_main.c \
src/modules/atspi_accessibility/e_atspi_object.c
src/modules/atspi_accessibility/e_atspi_object.c \
src/modules/atspi_accessibility/e_a11y_zone.c
PHONIES += atspi_accessibility install-atspi_accessibility
atspi_accessibility: $(atspi_accessibilitypkg_LTLIBRARIES) $(atspi_accessibility_DATA)

@ -0,0 +1,50 @@
#include "e.h"
static int _zone_a11y_enable(E_Zone *zone)
{
return 0;
}
static int _zone_a11y_disable(E_Zone *zone)
{
return 0;
}
/* Initializate atspi-accessibility features of E_Zone objects */
int e_a11y_zones_init(void)
{
Eina_List *l;
E_Zone *zone;
if (!e_comp)
return -1;
EINA_LIST_FOREACH(e_comp->zones, l, zone)
{
_zone_a11y_enable(zone);
}
// register on zone add/remove events
return 0;
}
int e_a11y_zones_shutdown(void)
{
Eina_List *l;
E_Zone *zone;
if (!e_comp)
return -1;
EINA_LIST_FOREACH(e_comp->zones, l, zone)
{
_zone_a11y_disable(zone);
}
// unregister zone add/remove events
return 0;
}

@ -0,0 +1,4 @@
int e_a11y_zones_init(void)
int e_a11y_zones_shutdown(void)

@ -1,8 +1,16 @@
#include "e.h"
#include <Elementary.h>
E_API void *
e_modapi_init(E_Module *m)
{
// Ensure that elm is initialized.
elm_init(0, NULL);
// Ensure that atspi mode is on, despite current elm configuration.
elm_config_atspi_mode_set(EINA_TRUE);
return NULL;
}

Loading…
Cancel
Save