Always enable a11y

https://bugzilla.gnome.org/show_bug.cgi?id=678095
This commit is contained in:
Bastien Nocera
2012-06-14 12:57:09 +01:00
parent 22f0099a5d
commit de1eafb564
5 changed files with 16 additions and 199 deletions

View File

@ -18,10 +18,10 @@
#include <meta/main.h>
#include <meta/meta-plugin.h>
#include <meta/prefs.h>
#include <atk-bridge.h>
#include <telepathy-glib/debug.h>
#include <telepathy-glib/debug-sender.h>
#include "shell-a11y.h"
#include "shell-global.h"
#include "shell-global-private.h"
#include "shell-js.h"
@ -235,6 +235,20 @@ shell_perf_log_init (void)
NULL, NULL);
}
static void
shell_a11y_init (void)
{
if (clutter_get_accessibility_enabled () == FALSE)
{
g_warning ("Accessibility: clutter has no accessibility enabled"
" skipping the atk-bridge load");
}
else
{
atk_bridge_adaptor_init (NULL, NULL);
}
}
static void
default_log_handler (const char *log_domain,
GLogLevelFlags log_level,