From 5a2d0bb0144b36ec73f1e895e41cb73fe85d5ac2 Mon Sep 17 00:00:00 2001 From: Brad Taylor Date: Wed, 7 Jan 2009 14:46:10 +0000 Subject: =?UTF-8?q?Bug=20#565110=20=E2=80=93=20Add=20an=20env=20variable?= =?UTF-8?q?=20to=20disable=20Gail.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2009-01-07 Brad Taylor * gail.c: Bug #565110 – Add an env variable to disable Gail. svn path=/trunk/; revision=22072 --- modules/other/gail/ChangeLog | 5 +++++ modules/other/gail/gail.c | 11 +++++++++++ 2 files changed, 16 insertions(+) (limited to 'modules') diff --git a/modules/other/gail/ChangeLog b/modules/other/gail/ChangeLog index ebd67f97d..4c42ec56f 100644 --- a/modules/other/gail/ChangeLog +++ b/modules/other/gail/ChangeLog @@ -1,3 +1,8 @@ +2009-01-07 Brad Taylor + + * gail.c: + Bug #565110 – Add an env variable to disable Gail. + 2009-01-01 Matthias Clasen * === Released 2.15.0 === diff --git a/modules/other/gail/gail.c b/modules/other/gail/gail.c index 8964390c4..121818023 100644 --- a/modules/other/gail/gail.c +++ b/modules/other/gail/gail.c @@ -29,6 +29,7 @@ #include "gailfactory.h" #define GNOME_ACCESSIBILITY_ENV "GNOME_ACCESSIBILITY" +#define NO_GAIL_ENV "NO_GAIL" static gboolean gail_focus_watcher (GSignalInvocationHint *ihint, guint n_param_values, @@ -978,6 +979,16 @@ gnome_accessibility_module_shutdown (void) int gtk_module_init (gint *argc, char** argv[]) { + const char* env_no_gail; + gboolean no_gail = FALSE; + + env_no_gail = g_getenv (NO_GAIL_ENV); + if (env_no_gail) + no_gail = atoi (env_no_gail); + + if (no_gail) + return 0; + gail_accessibility_module_init (); return 0; -- cgit v1.2.1