2003-12-03 Padraig O'Briain <padraig.obriain@sun.com>
authorpadraigo <padraigo@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 3 Dec 2003 14:12:36 +0000 (14:12 +0000)
committerpadraigo <padraigo@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 3 Dec 2003 14:12:36 +0000 (14:12 +0000)
* 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
atk-bridge/bridge.c

index 96a30c4..715cc25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2003-12-03  Padraig O'Briain <padraig.obriain@sun.com>
+
+       * 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 <billh@gnome.org>
 
        Fix for bug #114926.  Thanks to Michael Meeks for some of this patch.
index 2adbe98..ddc298c 100644 (file)
@@ -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"));