All pastes #249046 Raw Edit

Someone

public text v1 · immutable
#249046 ·published 2006-11-15 10:34 UTC
rendered paste body
diff -NurdB at-spi-1.7.12/atk-bridge/bridge.c at-spi-1.7.12-patched/atk-bridge/bridge.c
--- at-spi-1.7.12/atk-bridge/bridge.c	2006-09-20 08:21:57.000000000 -0500
+++ at-spi-1.7.12-patched/atk-bridge/bridge.c	2006-11-15 05:32:49.000000000 -0500
@@ -353,10 +353,23 @@
 	  
 	  if (ev._major != CORBA_NO_EXCEPTION)
 	  {
+		  gchar *err_desc = NULL;
+		  const CORBA_char *id = CORBA_exception_id (&ev);
+
+		  if (strcmp(id, "IDL:Bonobo/GeneralError:1.0") == 0)
+		  {
+			  Bonobo_GeneralError* ge = CORBA_exception_value (&ev);
+			  err_desc = g_strdup_printf ("bonobo activation problem: %s",
+				  ge->description);
+		  }
+
 		  g_error ("Accessibility app error: exception during "
-			   "registry activation from id: %s\n",
-			   CORBA_exception_id (&ev));
+			   "registry activation from id: %s\n"
+			   "Error description: %s\n", id, err_desc == NULL ? "-" : err_desc);
+
 		  CORBA_exception_free (&ev);
+		  if (err_desc != NULL)
+			  g_free (err_desc);
 	  }
 	  
 	  if (registry_died && registry) {
diff -NurdB at-spi-1.7.12/cspi/spi_registry.c at-spi-1.7.12-patched/cspi/spi_registry.c
--- at-spi-1.7.12/cspi/spi_registry.c	2003-09-04 16:26:11.000000000 -0500
+++ at-spi-1.7.12-patched/cspi/spi_registry.c	2006-11-15 04:43:28.000000000 -0500
@@ -591,7 +591,7 @@
  *           as though a composing input method (such as XIM) were used.
  * @synth_type: a #AccessibleKeySynthType flag indicating whether @keyval
  *           is to be interpreted as a keysym rather than a keycode
- *           (CSPI_KEYSYM), or whether to synthesize
+ *           (SPI_KEY_SYM), or whether to synthesize
  *           SPI_KEY_PRESS, SPI_KEY_RELEASE, or both (SPI_KEY_PRESSRELEASE).
  *
  * Synthesize a keyboard event (as if a hardware keyboard event occurred in the
diff -NurdB at-spi-1.7.12/test/Makefile.am at-spi-1.7.12-patched/test/Makefile.am
--- at-spi-1.7.12/test/Makefile.am	2006-08-17 11:44:33.000000000 -0500
+++ at-spi-1.7.12-patched/test/Makefile.am	2006-11-15 05:33:19.000000000 -0500
@@ -42,6 +42,5 @@
 TESTS = test-simple
 
 TESTS_ENVIRONMENT =					\
-	LD_LIBRARY_PATH=$(top_builddir)/libspi/.libs/:$(top_builddir)/cspi/.libs/	\
-	PATH=$(top_builddir)/registryd/.libs
-
+	LD_LIBRARY_PATH=$(top_builddir)/libspi/.libs/:$(top_builddir)/cspi/.libs/:$(top_builddir)/atk-bridge/.libs/	\
+	PATH=$(top_builddir)/registryd/.libs:$(PATH)
diff -NurdB at-spi-1.7.12/test/test-simple.c at-spi-1.7.12-patched/test/test-simple.c
--- at-spi-1.7.12/test/test-simple.c	2005-11-02 13:01:24.000000000 -0500
+++ at-spi-1.7.12-patched/test/test-simple.c	2006-11-14 10:37:29.000000000 -0500
@@ -714,7 +714,7 @@
 	key_listener = SPI_createAccessibleKeystrokeListener (
 		key_listener_cb, &stroke);
 
-	test_keyset = SPI_createAccessibleKeySet (1, "=", NULL, NULL);
+	test_keyset = SPI_createAccessibleKeySet (1, "t", NULL, NULL);
 
 	g_assert (SPI_registerAccessibleKeystrokeListener (
 		key_listener,
@@ -725,11 +725,11 @@
 
 	for (i = 0; i < 3; i++) {
 		memset (&stroke, 0, sizeof (AccessibleKeystroke));
-		g_assert (SPI_generateKeyboardEvent ('=', NULL, SPI_KEY_SYM));
+		g_assert (SPI_generateKeyboardEvent ('t', NULL, SPI_KEY_SYM));
 		while (!(key_press_received))
 			g_main_context_iteration (NULL, TRUE);
 		fprintf (stderr, "p [%s]", stroke.keystring);
-	        g_assert (!strcmp (stroke.keystring, "="));
+	        g_assert (!strcmp (stroke.keystring, "t"));
 		while (!(key_release_received))
 			g_main_context_iteration (NULL, TRUE);
 		fprintf (stderr, "r [%s]", stroke.keystring);