[at-spi2-atk] Do not load if NO_AT_BRIDGEis set and non-zero
- From: Mike Gorse <mgorse src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [at-spi2-atk] Do not load if NO_AT_BRIDGEis set and non-zero
- Date: Wed, 28 Oct 2009 16:40:53 +0000 (UTC)
commit 57dab4183ae4e23d60a6b19cc269372616774a56
Author: Mike Gorse <mgorse novell com>
Date: Wed Oct 28 12:38:29 2009 -0400
Do not load if NO_AT_BRIDGEis set and non-zero
Abort loading the module if NO_AT_BRIDGE is set and non-0.
Ported from CORBA at-spi.
atk-adaptor/bridge.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index 5d04aee..361d52b 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -330,7 +330,12 @@ adaptor_init (gint *argc, gchar **argv[])
int
gtk_module_init (gint *argc, gchar **argv[])
{
- return adaptor_init (argc, argv);
+ const gchar *load_bridge = g_getenv ("NO_AT_BRIDGE");
+
+ if (!load_bridge || g_ascii_strtod (load_bridge, NULL) == 0)
+ {
+ return adaptor_init (argc, argv);
+ }
}
/*END------------------------------------------------------------------------*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]