AT_SPI_CLIENT -> AT_SPI_REENTER_G_MAIN_LOOP
authorMike Gorse <mgorse@novell.com>
Fri, 9 Jul 2010 18:14:45 +0000 (14:14 -0400)
committerMike Gorse <mgorse@novell.com>
Fri, 9 Jul 2010 18:14:45 +0000 (14:14 -0400)
Rename AT_SPI_CLIENT since we may actually need to reenter the main loop for
more than just pyatspi (ie, UiaAtkBridge, since it sends key notifications
on a thread separate from the GLib main loop thread)
Continue to support AT_SPI_CLIENT for now, for backwards compatibility.

atk-adaptor/event.c

index 3babc2f..99804f5 100644 (file)
@@ -72,7 +72,8 @@ send_and_allow_reentry (DBusConnection * bus, DBusMessage * message)
   dbus_pending_call_set_notify (pending, set_reply, (void *) &closure, NULL);
   closure.loop = g_main_loop_new (NULL, FALSE);
 
-  if (getenv ("AT_SPI_CLIENT"))
+  /* TODO: Remove old AT_SPI_CLIENT name */
+  if (getenv ("AT_SPI_CLIENT") || getenv ("AT_SPI_REENTER_G_MAIN_LOOP"))
     {
       g_main_loop_run  (closure.loop);
     }