From: billh Date: Tue, 3 Aug 2004 08:49:53 +0000 (+0000) Subject: Fix for bug #147648. X-Git-Tag: AT_SPI2_CORE_0_1_3~568 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=011e85d24b5c82bc14bef1bfdcd490b64d14effd;p=platform%2Fupstream%2Fat-spi2-core.git Fix for bug #147648. git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@684 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- diff --git a/ChangeLog b/ChangeLog index 958ab07..380e101 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-09-03 Bill Haneman + + * 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 * registryd/deviceeventcontroller.c: diff --git a/NEWS b/NEWS index 53d84fa..0b858b2 100644 --- 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). diff --git a/cspi/spi_main.c b/cspi/spi_main.c index e179059..0b9ab88 100644 --- a/cspi/spi_main.c +++ b/cspi/spi_main.c @@ -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; } /**