From eb5c0b680240823dcf27b9d2b9f180f2df19e1b5 Mon Sep 17 00:00:00 2001 From: padraigo Date: Wed, 3 Dec 2003 14:12:36 +0000 Subject: [PATCH] 2003-12-03 Padraig O'Briain * atk-bridge.c: (atk_bridge_init): Create accessible application root object so that it is present when a context menu in an out-of-process applet is popped up. (spi_atk_bridge_do_registration): Create acceessible application root object only if it does not exist. This fixes bug #125834. git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@566 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- ChangeLog | 10 ++++++++++ atk-bridge/bridge.c | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96a30c4..715cc25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2003-12-03 Padraig O'Briain + + * atk-bridge.c: (atk_bridge_init): Create accessible application + root object so that it is present when a context menu in an + out-of-process applet is popped up. + (spi_atk_bridge_do_registration): Create acceessible application root + object only if it does not exist. + + This fixes bug #125834. + 2003-12-01 Bill Haneman Fix for bug #114926. Thanks to Michael Meeks for some of this patch. diff --git a/atk-bridge/bridge.c b/atk-bridge/bridge.c index 2adbe98..ddc298c 100644 --- a/atk-bridge/bridge.c +++ b/atk-bridge/bridge.c @@ -160,6 +160,8 @@ atk_bridge_init (gint *argc, gchar **argv[]) g_error ("Could not initialize Bonobo"); } + /* Create the accessible application server object */ + this_app = spi_application_new (atk_get_root ()); /* * We only want to enable the bridge for top level * applications, we detect bonobo components by seeing @@ -204,8 +206,8 @@ spi_atk_bridge_do_registration (void) bonobo_activate (); /* Create the accessible application server object */ - - this_app = spi_application_new (atk_get_root ()); + if (this_app == NULL) + this_app = spi_application_new (atk_get_root ()); DBG (1, g_message ("About to register application\n")); -- 2.7.4