2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
authormarcm <marcm@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Sun, 23 Dec 2001 02:14:37 +0000 (02:14 +0000)
committermarcm <marcm@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Sun, 23 Dec 2001 02:14:37 +0000 (02:14 +0000)
* at-bridge/bridge.c: Added registration for separate
"Atktext:text-changed::insert" and "AtkText:text-changed::delete"
signals.  If either of the first two parameters to the generic
bridge signal handler are ints, they are passed on as event
details.  This allows an AT to determine what text was inserted.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@192 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
at-bridge/bridge.c

index 40ea54a..71a25d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-12-22  Marc Mulcahy  <marc.mulcahy@sun.com>
+
+       * at-bridge/bridge.c: Added registration for separate
+       "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
+       signals.  If either of the first two parameters to the generic
+       bridge signal handler are ints, they are passed on as event
+       details.  This allows an AT to determine what text was inserted.
+
 2001-12-21  Bill Haneman <bill.haneman@sun.com>
 
        * registryd/deviceeventcontroller.c:
index 82f5959..53c3d87 100644 (file)
@@ -416,6 +416,7 @@ spi_atk_bridge_signal_listener (GSignalInvocationHint *signal_hint,
   GObject *gobject;
   GSignalQuery signal_query;
   const gchar *name;
+  gint detail1 = 0, detail2 = 0;
 #ifdef SPI_BRIDGE_DEBUG
   gchar *s, *s2;
 #endif
@@ -432,8 +433,12 @@ spi_atk_bridge_signal_listener (GSignalInvocationHint *signal_hint,
 #endif
 
   gobject = g_value_get_object (param_values + 0);
-
-  spi_atk_emit_eventv (gobject, 0, 0, "object:%s", name);
+  if (G_VALUE_TYPE (param_values + 1) == G_TYPE_INT)
+    detail1 = g_value_get_int (param_values + 1);
+  if (G_VALUE_TYPE (param_values + 2) == G_TYPE_INT)
+    detail2 = g_value_get_int (param_values + 2);
+  
+  spi_atk_emit_eventv (gobject, detail1, detail2, "object:%s", name);
 
   return TRUE;
 }