2002-05-09 Bill Haneman <bill.haneman@sun.com>
+ * cspi/spi_registry.c:
+ Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
+ which was uncovered by the recent key changes.
+
+2002-05-09 Bill Haneman <bill.haneman@sun.com>
+
* test/event-listener-test.c:
* test/Makefile.am:
Added new test, "event-listener-test";
{
key_set._buffer[i].keycode = keys->keycodes[i];
key_set._buffer[i].keysym = keys->keysyms[i];
- key_set._buffer[i].keystring = (keys->keystrings[i] != NULL) ?
- keys->keystrings[i] : CORBA_string_dup("");
+ if (keys->keystrings && keys->keystrings[i])
+ {
+ key_set._buffer[i].keystring = keys->keystrings[i];
+ }
+ else
+ {
+ key_set._buffer[i].keystring = CORBA_string_dup("");
+ }
}
}
else