Fix for bug #147648.
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 3 Aug 2004 08:49:53 +0000 (08:49 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 3 Aug 2004 08:49:53 +0000 (08:49 +0000)
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@684 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
NEWS
cspi/spi_main.c

index 958ab07..380e101 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-03 Bill Haneman <bill.haneman@sun.com>
+
+       * cspi/spi_main.c:
+       (SPI_init): Return error code '2' if the activated
+       registry cannot be pinged. Fixes bug #147648.
+       
 2004-07-28 Bill Haneman <bill.haneman@sun.com>
 
        * registryd/deviceeventcontroller.c:
diff --git a/NEWS b/NEWS
index 53d84fa..0b858b2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,16 @@
+What's new in at-spi-1.5.4: 
+
+* Registration failure at SPI_init is now detected and
+  an error code is returned to the caller (bug #147648).
+
+* We now use polling as our default for detecting mouse
+  button changes (this was formerly our fallback method);
+  this prevents conflict with Xstroke.
+  [a better long-term fix requires the Xevie extension]
+
+
+============
+
 What's new in at-spi-1.5.3: 
 
 * New role EMBEDDED (bug #144415).
index e179059..0b9ab88 100644 (file)
@@ -365,7 +365,7 @@ static gboolean SPI_inited = FALSE;
  *
  * Connects to the accessibility registry and initializes the SPI.
  *
- * Returns: 0 on success, otherwise an integer error code.
+ * Returns: 0 on success, otherwise an integer error code.  
  **/
 int
 SPI_init (void)
@@ -382,8 +382,13 @@ SPI_init (void)
   registry = cspi_init ();
 
   g_atexit (cspi_cleanup);
-  
-  return 0;
+
+  /* fprintf (stderr, "registry=%x\n", (int) registry); */
+
+  if ((registry != CORBA_OBJECT_NIL) && (cspi_ping (registry)))
+      return 0;
+  else
+      return 2;
 }
 
 /**