Bug #565110 – Add an env variable to disable Gail.
2009-01-07 Brad Taylor <brad@getcoded.net> * gail.c: Bug #565110 – Add an env variable to disable Gail. svn path=/trunk/; revision=22072
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-01-07 Brad Taylor <brad@getcoded.net>
|
||||||
|
|
||||||
|
* gail.c:
|
||||||
|
Bug #565110 – Add an env variable to disable Gail.
|
||||||
|
|
||||||
2009-01-01 Matthias Clasen <mclasen@redhat.com>
|
2009-01-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* === Released 2.15.0 ===
|
* === Released 2.15.0 ===
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include "gailfactory.h"
|
#include "gailfactory.h"
|
||||||
|
|
||||||
#define GNOME_ACCESSIBILITY_ENV "GNOME_ACCESSIBILITY"
|
#define GNOME_ACCESSIBILITY_ENV "GNOME_ACCESSIBILITY"
|
||||||
|
#define NO_GAIL_ENV "NO_GAIL"
|
||||||
|
|
||||||
static gboolean gail_focus_watcher (GSignalInvocationHint *ihint,
|
static gboolean gail_focus_watcher (GSignalInvocationHint *ihint,
|
||||||
guint n_param_values,
|
guint n_param_values,
|
||||||
@ -978,6 +979,16 @@ gnome_accessibility_module_shutdown (void)
|
|||||||
int
|
int
|
||||||
gtk_module_init (gint *argc, char** argv[])
|
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 ();
|
gail_accessibility_module_init ();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user