* atk-bridge/bridge.c (atk_bridge_init): don't register
if we're in a bonobo-component, rather than a bonobo app.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@251
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2002-03-13 Michael Meeks <michael@ximian.com>
+
+ * atk-bridge/bridge.c (atk_bridge_init): don't register
+ if we're in a bonobo-component, rather than a bonobo app.
+
2002-03-13 Michael Meeks <michael@ximian.com>
* atk-bridge/bridge.c (gtk_module_init): split
#include "accessible.h"
#include "application.h"
+#include <bonobo-activation/bonobo-activation-register.h>
+
#undef SPI_BRIDGE_DEBUG
static CORBA_Environment ev;
g_error ("Could not initialize Bonobo");
}
+ /*
+ * We only want to enable the bridge for top level
+ * applications, we detect bonobo components by seeing
+ * if they were activated with the intention of extracting
+ * an impl. by IID - very solid.
+ */
+ if (bonobo_activation_iid_get ())
+ return 0;
+
CORBA_exception_init(&ev);
registry = bonobo_activation_activate_from_id (