gtk+ r22072 - trunk/modules/other/gail
- From: btaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22072 - trunk/modules/other/gail
- Date: Wed, 7 Jan 2009 14:46:10 +0000 (UTC)
Author: btaylor
Date: Wed Jan 7 14:46:10 2009
New Revision: 22072
URL: http://svn.gnome.org/viewvc/gtk+?rev=22072&view=rev
Log:
2009-01-07 Brad Taylor <brad getcoded net>
* gail.c:
Bug #565110 â Add an env variable to disable Gail.
Modified:
trunk/modules/other/gail/ChangeLog
trunk/modules/other/gail/gail.c
Modified: trunk/modules/other/gail/gail.c
==============================================================================
--- trunk/modules/other/gail/gail.c (original)
+++ trunk/modules/other/gail/gail.c Wed Jan 7 14:46:10 2009
@@ -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 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]