1 2002-11-25 Bill Haneman <bill.haneman@sun.com>
3 Workarounds and fixes for mouse event/XKB interaction.
5 * registryd/registry.c:
6 (spi_keycodes_contain, spi_dec_init_keycode_list):
8 (spi_dec_set_unlatch_pending):
9 Split the method that tells XKB to expect an
10 unlatch (and revert it) out of the rest of the
11 event handling code. This method is called by the
12 two mouse event handlers (the poll and the filter).
13 (spi_dec_update_and_emit, spi_dec_mouse_check):
14 New methods split from spi_dec_poll_mouse_moved.
15 The second one is now called from inside the filterFn
16 when an XKB delatch event is received, to determine
17 whether to revert the delatch or not.
18 (spi_poll_mouse_moved): Refactor; also we can now
19 properly handle the case where multiple button states
20 have changed between polling cycles and we didn't get
21 notified due to another client's grab.
23 Synchronize the server while handling an XKB notification.
24 Ugly, but apparently necessary to avoid nasty races.
25 Check the mouse state on receipt of an XKB latch change,
26 to decide whether to revert the latch or not. (Latches are
27 reverted if there is an immediately preceding mouse button
28 event that a client has consumed, in which case we don't want
29 the user to see the side-effect of the event).
30 (spi_device_event_controller_forward_mouse_event):
31 Check for modifier events and fire before resetting mouse_mask_state,
32 prevents losing modifier events.
34 (impl_generate_keyboard_event):
35 If we've just generated a keyboard event for a non-shift key,
36 we don't want to revert the pending XKB latch.
37 Otherwise, check the modifier state (via a call to
38 spi_dev_mouse_check) and set the relatch mask to
39 that state before returning.
41 2002-11-24 Bill Haneman <bill.haneman@sun.com>
44 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
47 * atk-bridge/bridge.c:
48 (spi_atk_register_event_listeners):
49 Don't re-register for ATK events if the registry has died
50 and the app needs to re-register; the ATK listeners are in
51 process and doing so will cause duplicate emission.
53 * registryd/deviceeventcontroller.c:
54 (spi_poll_mouse_moved):
55 Reformat the source, detect and emit multiple button-change
56 events (i.e. if multiple buttons have changed between poll
58 Add code to detect mouse-down events even when the pointer
59 is grabbed; workaround for GOK bug 98420.
60 (spi_controller_register_with_devices):
61 Call XTestGrabControl with 'impervious' flag set to True,
62 allows us to synthesize events and query the pointer even during
63 an active grab by another client.
64 (spi_device_event_controller_forward_mouse_event):
65 Set the mouse_mask_state to the mouse_button_state from
66 the intercepted event, to synchronize the grab listener with
69 2002-11-20 Bill Haneman <bill.haneman@sun.com>
71 * cspi/spi_accessible.c:
72 (AccessibleRole_getName):
73 Added necessary strings for making this (deprecated)
74 method work with the new role types.
75 (init_role_table, role_table):
76 Added definition of SPI_ROLE_APPLICATION.
78 * libspi/spi-roletypes.h:
79 Added SPI_ROLE_APPLICATION.
81 * idl/Accessibility_Role.idl:
82 Added ROLE_APPLICATION.
84 * docs/reference/cspi/at-spi-cspi-decl.txt:
85 Added SPI_ROLE_APPLICATION to docs.
87 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
89 * cspi/spi_accessible.c
90 (cspi_init_role_table): Do not write beyond end of role_table.
91 (Accessible_getRole): Use correct type for value returned by
92 Accessibility_Accessible_getRole().
94 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
95 beyond end of role_table. (This fixes bug #98269)
97 * libspi/application.c: Add include file spi-private.h for
98 definition of spi_init_any_nil.
100 2002-11-19 Bill Haneman <bill.haneman@sun.com>
104 * libspi/spi-private.h:
105 Added DGB() macro, and extern int _dbg declaration.
107 * registryd/registry.c:
108 (definitions) storage for _dbg.
110 Get environment variable "AT_SPI_DEBUG".
111 (spi_registry_set_debug):
112 New method, to initialize _dbg value.
113 (spi_listener_struct_new, spi_registry_object_finalize):
114 (notify_listeners_cb):
115 Changed fprintfs to use DBG and g_warning().
117 * registryd/deviceeventcontroller.c:
118 (_deregister_keygrab, spi_controller_register_device_listener):
119 Changed debug/warning messages to use DBG macro.
123 Changed warning messages to use DBG macro and g_warning().
125 * atk-bridge/bridge.c:
126 (atk_bridge_init, spi_atk_bridge_get_registry):
127 (spi_atk_bridge_exit_func):
128 (spi_atk_bridge_property_event_listener):
129 Changed status, warning, and error messages to use
130 g_warning, g_message, and DBG macros.
133 Read the state of the AT_SPI_DEBUG environment variable
134 and set a local '_dbg' accordingly.
136 2002-11-19 Bill Haneman <bill.haneman@sun.com>
138 FIXES for 98836, 98842, other bugs.
141 Revved to 1.1.4, interface-age=4, binary-age=4.
143 * registryd/deviceeventcontroller.c:
145 Fixed crasher bug in last_mouse_pos initialization.
147 * registryd/registry.c:
148 (desktop_add_application, desktop_remove_application):
149 Added (and then commented out) some support for
150 object context marshalling. [TODO]
152 * atk-bridge/bridge.c:
153 (spi_atk_bridge_event_context_create):
154 Commented out object context creation until it can
155 be properly tested and debugged.
157 * registryd/registry.c:
158 (impl_registry_notify_event):
159 Fixed crasher bug, we were calling
160 spi_re_entrant_list_foreach () with an empty list.
162 2002-11-18 Bill Haneman <bill.haneman@sun.com>
164 * idl/Accessibility_Action.idl:
165 * idl/Accessibility_Component.idl:
166 * idl/Accessibility_Desktop.idl:
167 * idl/Accessibility_Event.idl:
168 * idl/Accessibility_Hyperlink.idl:
169 * idl/Accessibility_Image.idl:
170 * idl/Accessibility_Relation.idl:
171 * idl/Accessibility_Selection.idl:
172 * idl/Accessibility_State.idl:
173 * idl/Accessibility_Value.idl:
174 Updated unimplemented slot count to minimum of
175 four for all interfaces, for ABI freeze.
177 * idl/Accessibility_EditableText.idl:
178 * idl/Accessibility_Text.idl:
179 Updated unimplemented slot count to six
182 * idl/Accessibility_Registry.idl:
183 Updated unimplemented slot count to six
184 (also for DeviceEventController),
187 * idl/Accessibility_Table.idl:
188 Updated unimplemented slot count to eight,
191 * idl/Accessibility_Event.idl:
192 Added CORBA_any "any_data" member to Event struct.
194 * idl/Accessibility_Event.idl:
195 Added CORBA_any "any_data" member to Event struct.
197 * atk-bridge/bridge.c:
199 atk_signal_text_changed, atk_signal_child_changed,
200 signal ids queried from gtype system.
201 (AtkBridgeEventContextType): New enum.
202 (AtkBridgeEventContextData): New struct.
203 (AtkBridgeEventContext): New struct.
204 (atk_bridge_init_event_type_consts):
205 New method, initializes type contants for comparison
206 prior to emit_eventv.
207 (atk_bridge_event_context_init): New method,
208 initializes a CORBA_any from an AtkBridgeEventContext.
209 (atk_bridge_focus_tracker): Call spi_init_any_nil to
210 initialize the event.any_data struct.
211 (spi_atk_bridge_event_context_create): New method,
212 creates an AtkBridgeEventContext from signal/event info.
213 (spi_atk_bridge_event_context_free): New method.
214 (spi_atk_emit_eventv): Changed to take an
215 AtkBridgeEventContext parameter. We now initialize
216 the event.any_data member prior to notifying the
217 Registry, via the AtkBridgeEventContext.
218 (spi_atk_bridge_property_event_listener):
219 (spi_atk_bridge_state_event_listener):
220 Match emit_eventv signature.
221 (spi_atk_bridge_object_event_listener):
222 Match emit_eventv signature, and create an
223 event context from the event details.
224 Free the event context afterwards.
225 (spi_atk_bridge_window_event_listener):
226 Create an event context, pass it to the
230 (AccessibleEvent_getContextString):
231 (AccessibleEvent_getContextObject):
232 New methods, allow query of AccessibleEvent objects
233 for more context details (via the "any_data" member
234 of the Event struct, above).
237 Definitions for AccessibleEvent_getContextString
238 and AccessibleEvent_getContextObject.
240 * cspi/spi_listener.h:
241 (InternalEvent): New struct.
244 (AccessibleEvent_getContextString):
245 (AccessibleEvent_getContextObject):
246 Implementations of new methods, for obtaining
247 additional context information from some event types.
249 * cspi/spi_registry.c:
250 (SPI_registerGlobalEventListener):
251 Added mention of active-descendant-changed event in docs.
253 * cspi/cspi-bonobo-listener.c:
255 Marshal the any into the AccessibleEvent via
258 * libspi/spi-private.h:
259 #include <orbit/orbit.h>
261 (spi_init_any_string):
262 (spi_init_any_object):
263 New convenience function declarations.
267 (spi_init_any_string):
268 (spi_init_any_object):
269 New convenience function implementations.
271 * registryd/deviceeventcontroller.c:
272 (spi_poll_dec_mouse_moved):
273 (spi_device_event_controller_forward_mous_event):
274 Initialize any_data member of event.
275 (spi_deregister_controller_device_listener):
276 Fix incorrect param pass which was preventing deregistration.
278 * registryd/registry.c:
279 (desktop_add_application):
280 (desktop_remove_application):
281 Add object data to event's any_data before dispatch.
283 Fix for error messages from GAIL.
285 * test/event-listener-test.c:
286 Test new ContextString and "any_data" API:
287 (report_text_event): New method query and output context string.
288 (main): register a new text listener with report_text_event
291 2002-11-19 Darren Kenny <darren.kenny@sun.com>
293 Fixes for bugs 98127 and 97914.
294 * cspi/spi-roletypes.h:
295 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
297 * cspi/spi-statetypes.h:
298 Added SPI_STATE_MANAGES_DESCENDANTS
300 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
301 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
302 * cspi/spi_accessible.c:
303 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
304 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
305 Accessibility_STATE_MANAGES_DESCENDANTS
306 * libspi/accessible.c:
307 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
308 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
309 As requested by Bill, I also cleaned up the alignment.
311 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
312 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
314 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
315 Accessibility_STATE_MANAGES_DESCENDANTS
316 * docs/reference/cspi/tmpl/spi_accessible.sgml:
317 Document changes reflecting modifications to roles.
318 * docs/reference/cspi/tmpl/spi_relation.sgml:
319 Document changes reflecting modifications to relations.
320 * docs/reference/cspi/tmpl/spi_stateset.sgml:
321 Document changes reflecting modifications to states.
323 2002-11-17 Bill Haneman <bill.haneman@sun.com>
326 Revved to 1.1.3, interface-age=3, binary-age=3.
330 Removed accessx-gui from the tests, since we have a nice
331 keyboard accessibility capplet now :-)
333 * test/keysynth-demo.c:
334 (increment_scan): removed do-nothing default: case,
337 * test/visual-bell.c:
338 (main) : removed do-nothing default: case,
342 (AccessibleAction_getKeyBinding_):
343 Documented keybinding string format.
347 (AccessibleText_getAttributes):
348 Documented the text attribute string format.
349 It's changed to use semicolon delimiters also,
350 to prevent clashes with CSS attributes, but the old
351 trick of looking for ", " strings will still work
352 (as unreliably as ever). Fix for bug related to 97916.
355 Include <cspi/bonobo/cspi-bonobo-listener.h>
357 (SPI_freeAccessibleKeySet):
358 (AccessibleKeystrokeListener_addCallback):
359 (AccessibleKeystrokeListener_removeCallback):
360 Modify to use AccessibleDeviceListener API internally,
361 instead of AccessibleKeystrokeListener.
363 * idl/Accessibility_Event.idl:
364 Added two more empty slots to EventListener (for a total of four).
366 * idl/Accessibility_Accessible.idl:
367 Added four empty slots to Accessible interface.
369 2002-11-15 Bill Haneman <bill.haneman@sun.com>
371 * idl/Accessibility_Registry.idl:
372 (KeyEventType, EventType):
373 Marked KeyEventType as deprecated; it duplicates
374 functionality of EventType, which has been extended to
375 include Mouse-button events.
376 (KeyEventTypeSeq): defined in terms of EventType.
377 (registerDeviceEventListener, deregisterDeviceEventListener):
378 New methods, for managing listeners to device events,
379 which potentially may consume them.
382 Added definition for AccessibleDeviceListener.
384 * cspi/spi-listener.h:
385 (enum AccessibleDeviceEventType):
386 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
387 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
388 for backwards compat.
389 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
390 and typedef'd AccessibleKeystroke to it for back-compat.
391 (AccessibleDeviceListenerCB):
392 New function prototype typedef.
395 (AccessibleDeviceEventMask): New typedef.
396 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
397 (AccessibleKeyMaskType):
398 Set equivalent to AccessibleModifierMaskType for back-compat.
399 (SPI_createAccessibleKeystrokeListener):
400 (AccessibleKeystrokeListener_unref):
401 Deprecated in favor of equivalent (better-named) new API below..
402 keystroke listeners are like all device listeners.
403 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
404 New API names for old features :-).
405 (AccessibleDeviceListener_addCallback):
406 (AccessibleDeviceListener_removeCallback):
407 (SPI_registerDeviceEventListener):
408 (SPI_deregisterDeviceEventListener):
412 (SPI_createAccessibleKeystrokeListener):
413 Use new preferred API, cspi_device_listener_new() and
414 cspi_device_listener_add_cb().
415 (AccessibleKeystrokeListener_removeCallback):
416 Use new preferred API, cspi_device_listener_remove_cb().
417 (AccessibleKeystrokeListener_unref):
418 Use new preferred API, cspi_device_listener_unref().
419 (SPI_createAccessibleDeviceListener):
420 (AccessibleDeviceListener_addCallback):
421 (AccessibleDeviceListener_removeCallback):
422 Implementation of new API.
424 * cspi/spi_registry.c:
425 (SPI_registerDeviceEventListener):
426 (SPI_deregisterDeviceEventListener):
427 Implementation of new API. Fixed memory leak and removed need to
428 allocate EventTypeSeq (thanks Michael for catching this).
429 Squashed a wayward CORBA_exception_free that shouldn't get called.
431 * cspi/bonobo/cspi-bonobo-listener.c:
433 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
434 (cspi_key_event): renamed to cspi_device_event().
435 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
436 Extended to handle mouse button events as well as key events.
437 (CSpiKeystrokeListener):
438 Class superceded by CSpiDeviceListener.
439 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
440 These internal APIs changed to "*device_listener" from "*keystroke_listener".
442 * cspi/bonobo/cspi-bonobo-listener.h:
443 (CSpiKeystrokeListener):
444 Class superceded by CSpiDeviceListener.
445 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
446 These internal APIs changed to "*device_listener" from "*keystroke_listener".
448 * libspi/Makefile.am:
449 Replaced keystrokelistener.h and keystrokelistener.c
450 with devicelistener.h and devicelistener.c; keystrokelisener.h
451 stub retained for back-compat.
453 * libspi/keystrokelistener.c:
457 Replaced inclusion of keystrokelistener.h with devicelistener.h.
459 * registryd/deviceeventcontroller.c:
460 (DEControllerListener): Added Accessibility_EventTypeSeq member.
461 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
462 (DEControllerPrivateData): Added xkb settings data.
463 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
464 button release events (which can't be captured via XGrabButton).
465 Don't dispatch via the 'normal' event mechanism if the device event was
467 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
468 Handle the typeseq data in its new location (see above).
469 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
470 New methods, for "generic" device listeners.
471 (spi_controller_register_device_listener):
472 Now handle mouse event listeners as well as key listeners.
473 (spi_controller_notify_mouselisteners):
475 (spi_device_event_controller_forward_mouse_event):
476 Now we notify mouse device listeners as well as generating the
477 non-consumable "mouse:" events.
479 We must check and restore the XKB
480 modifier map if we consume the event, since the act of triggering
481 a mouse event will normally reset the XKB latch. This is required for
483 (spi_controller_register_with_devices):
484 Load the XKB settings when registering, and register for XKB
486 (spi_key_eventtype_seq_contains_event):
487 Renamed spi_eventtype_seq_contains_event, since it's used
488 internally for all device event types now.
489 (spi_key_event_matches_listener):
490 Uses spi_eventtype_seq_contains_event now.
491 (spi_device_event_controller_object_finalize):
492 Free the private data and the XkbKeyboard struct.
493 (impl_register_device_listener, impl_deregister_device_listener):
494 Implementation of new IDL.
495 (spi_deregister_controller_device_listener):
497 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
498 More efficient implementation, we don't have to create a new
499 XkbControls structure every time we query.
500 (spi_device_event_controller_class_init):
501 Initialize the epv entries for the new IDL. Assign the
502 "spi-dec-private" quark.
503 (spi_device_event_controller_init):
504 Initialize the private data.
505 (spi_device_event_controller_forward_key_event):
506 Removed a bogus CORBA_exception_free() call.
508 * registryd/deviceeventcontroller.h:
509 Replaced inclusion of keystrokelistener.h with
512 * test/event-listener-test.c:
513 (report_mouse_event):
516 Added mouse-event device listener.
518 * test/test-simple.c:
519 (create_test_window):
520 Fixed regression (we were instantiating a GtkRange,
521 which is now an abstract class). Also fixed to match
522 existing AtkRole names, this seems to have changed in ATK
523 awhile ago; too late now I think, and the new
524 mechanism is at least elegant and consistent with the
525 glib enum "nick" APIs.
527 2002-11-15 Darren Kenny <darren.kenny@sun.com>
529 * idl/Accessibility_Relation.idl:
530 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
531 RELATION_EMBEDS,RELATION_EMBEDDED_BY
532 * idl/Accessibility_Role.idl:
533 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
534 * idl/Accessibility_State.idl:
535 add STATE_MANAGES_DESCENDANTS
536 * test/event-listener-test.c:
537 Added a listener for active-descendant events.
539 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
541 * atk-bridge/bridge.c
542 (atk_bridge_init): If application is Bonobo component wait until top
543 level is added before registering
544 (spi_atk_bridge_do_registration): New function which contains code,
545 formerly in atk_bridge_init, to do application registration.
546 (spi_atk_bridge_toplevel_added): Signal called when top level
547 added to Bonobo component
549 This fixes bug #83134.
551 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
553 * registryd/deviceeventcontroller.c
554 Fixed compilation error caused by calling gettimeofday()
557 2002-10-18 Bill Haneman <bill.haneman@sun.com>
562 Added template for HAVE_XKB.
565 Changes to check for XKB, and to set the HAVE_XKB #define if it
569 ()impl_notify_event): Make failure to get event source name
572 * registryd/deviceeventcontroller.c:
573 (#include): include X11/XKBlib.h.
574 (DEControllerPrivateData) : New struct.
575 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
577 (dec_synth_keycode_press) (dec_synth_keycode_release):
578 New methods; split the key synthesis code into these methods.
579 They check XKB settings before determining the "time" values to
580 pass to Xtest; this fixes bug #95828.
581 (impl_generate_keyboard_event): Changed to use methods above,
582 instead of callng Xtest directly.
583 (spi_device_event_controller_init): Initialize new privae struct s
585 (spi_device_event_controllr_object_finalize):
586 Free the (new) private data.
588 * registryd/deviceeventcontroller.h:
589 Add new gpointer to end of struct data.
591 2002-10-16 Bill Haneman <bill.haneman@sun.com>
594 Incremented revision to 1.1.2, SONAME is still '.so', library
595 extensions are ".so.0.0.2".
597 * registryd/deviceeventcontroller.c:
598 FIXES FOR #93592 and #95940.
599 (statics): renamed mouse_button_state to mouse_mask_state,
600 added key_modifier_mask.
601 (spi_dec_poll_mouse_moved):
602 Added key modifier checks, and emit "keyboard:modifiers"
603 events when the key modifiers currently in use change.
604 Also generate "mouse:abs" events periodically, even if the mouse
605 is stationary (should we?).
606 Alternatively we could generate "mouse:abs" events for either all
607 mouse movements, or every 'nth' mouse movement, or at the
608 beginning and end of every "active" mouse period.
610 * test/event-listener-test.c:
611 (main): Added listener for "keyboard:modifiers" events.
613 2002-10-15 Bill Haneman <bill.haneman@sun.com>
616 Added key mask #defines for mouse buttons; e.g.
617 SPI_KEYMASK_BUTTON1, etc.
620 Incremented dependency on ATK to version 1.1.0. (This dependency
621 is probably premature but will soon be real enough).
623 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
625 * libspi/hyperlink.[ch]
626 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
627 (get_hyperlink_from_servant): Check object is AtkHyperlink not
630 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
635 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
637 * registryd/deviceeventcontroller.c
638 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
639 events to be ignored.
640 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
641 keyboard_mode so that XAllowEvents() can be called.
645 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
647 * cspi/spi-accessible.c: Correct names of roles returned by
648 AccessibleRole_getName(). Fixes bug #95055.
650 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
652 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
655 * registryd/registry.c
656 (desktop_remove_application: Write diagnostic message to stderr for
659 (impl_accessibility_registry_deregister_global_event_listener):
660 Correct size of lists array. This addresses bug #94555).
662 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
664 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
667 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
669 * registryd/Makefile: Add CLEANFILES so that .server file is removed
672 * registryd/registry.c (impl_registry_notify_event): Remove
673 unnecessary call to parser_event_type().
675 * docs/reference/cspi/tmpl/spi_component.sgml:
676 Add reference to SPI_LAYER_WINDOW.
678 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
680 * registryd/registry.c
681 (desktop_add_application): Remove leak.
682 (desktop_remove_application): Remove leak.
683 (parser_event_type): Remove leak.
685 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
687 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
688 bogus call to CORBA_string_dup(). Also removed unnecessary
689 g_string_dup/g_free calls.
691 2002-09-13 Bill Haneman <bill.haneman@sun.com>
693 * registryd/deviceeventcontroller.c:
694 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
696 * test/event-listener-test.c:
697 main: commented out three redundant listeners, to reduce output
698 noise. (They still are potentially useful for testing).
701 2002-09-13 Michael Meeks <michael@ximian.com>
703 * Update all the copyrights to include Ximian.
705 2002-09-06 Mark McLoughlin <mark@skynet.ie>
707 * cspi/spi.h: add SPI_LAYER_WINDOW.
709 * cspi/spi_component.c: (AccessibleComponent_getLayer):
710 add Accessibility_LAYER_WINDOW case.
712 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
714 * libspi/component.c: (impl_accessibility_component_get_layer):
715 add ATK_LAYER_WINDOW case.
717 2002-08-28 Bill Haneman <bill.haneman@sun.com>
719 * configure.in: incremented micro version.
721 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
723 2002-08-20 Bill Haneman <bill.haneman@sun.com>
726 Clarified and reworded our commit policy.
729 Started an API "todo" addition list for 2.2.
733 Free char pointer from atk_text_get_selection, which was being leaked.
735 2002-08-19 Bill Haneman <bill.haneman@sun.com>
738 Small revision to author acknowledgement.
740 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
742 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
743 If signal has detail add it to the type of the event.
746 2002-08-12 Michael Meeks <michael@ximian.com>
748 * test/test-simple.c (global_listener_cb): bin bogosity.
749 (test_keylisteners): disable, still doesn't work reliably,
750 certainly not on my system anyway.
752 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
753 don't leak a reference on the DEC. This round-trip
754 fetching of the DEC per keystroke sucks, it should be
757 * cspi/spi-private.h,
758 * cspi/cspi-lowlevel.h,
759 * cspi/bonobo/cspi-bonobo-listener.[ch],
760 * cspi/bonobo/cspi-bonobo.c: get the copyright
761 notices better - there is still a large amount of
762 work in at-spi falsely attributed solely to Sun.
764 * cspi/spi_main.c (cspi_object_ref): kill bogus
765 hash lookup, just increment the ref.
766 (SPI_freeString): make explicit the fact that we
767 handle NULL strings just fine.
768 (report_leaked_ref): obey coding standards.
769 (cspi_object_hash, cspi_object_equal): kill retval.
770 (cspi_object_release): only release if not on loan.
771 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
772 (cspi_object_borrow, cspi_object_return): impl.
774 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
775 use cspi_object_borrow / return.
777 2002-08-12 Darren Kenny <darren.kenny@sun.com>
779 * cspi/bonobo/cspi-bonobo-listener.c:
781 Don't call cspi_oject_new() because this is creating a new Accessible
782 every single time that an event is fired. This causes ATs like at-poke
783 to nolonger recognise the source of the event and thus ignore it.
784 Re-use the object from the cache, ref it and then unref it after the
785 listeners have been called.
787 2002-08-06 Darren Kenny <darren.kenny@sun.com>
789 * test/event-listener-test.c:
790 Added command-line options to disable mouse events (m) and
793 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
795 * configure.in: Update required versions of ATK, GTK+ and GAIL
797 * cspi-1.0.pc.in: Add dependency for X include files
800 * cspi/bonobo/Makefile.am:
801 Add $(X_CFLAGS) so that X include files
802 are picked up even if not in standard place (bug #71686)
804 2002-06-25 Bill Haneman <bill.haneman@sun.com>
806 * registryd/deviceeventcontroller.c: fix for 84261
807 (spi_dec_mouse_moved):
808 Added test of mouse button mask, so that we can detect mouse
809 button release. Unfortunately we can't otherwise detect mouse
810 button release events without consuming the mouse press event,
811 because of the way XGrabButton works. This means that our mouse
812 release events have a latency dependent on the polling period
813 while the mouse button is down. At least in this case we only
814 have to poll while the button is down, and not at other times.
815 If the button masks don't match with what the last press event
816 reported, we report the appropriate button release event.
817 (spi_dec_ungrab_mouse):
818 New method (not yet called).
819 (spi_device_event_controller_forward_mouse_event):
820 New method, sends mouse press event from GdkFilter.
821 (spi_dec_init_mouse_listener):
822 Added code to call XGrabButton, redirecting mouse button events to
823 the root window and our Gdk event loop.
825 Added code to filter mouse button events, and reordered.
827 * test/event-listener-test.c:
829 Added registration for mouse events of type "mouse:button".
831 2002-06-25 Bill Haneman <bill.haneman@sun.com>
833 * registryd/deviceeventcontroller.c: partial fix for 84261
834 (spi_dec_poll_mouse_idle):
835 New method, a timeout which checks to see if the mouse
837 (spi_dec_poll_mouse_moving):
838 A timeout to be called when mouse motion is underway.
839 (spi_dec_poll_mouse_moved):
840 A method which fires an event if the mouse has moved, and reports
841 whether or not it did so.
842 (spi_dec_init_mouse_listener):
843 A method which sets up the timeouts above.
844 (spi_device_event_controller_new):
845 Now calls spi_dec_init_mouse_listener.
847 * registryd/registry.c:
849 Now we initialize the device event controller when the registry is
850 initialized, instead of waiting until a client has requested a key
851 event notification; this is because we need the event controller
852 for mouse events, but the mouse event registration API is a
853 "registry" call and doesn't explicitly call the
854 deviceeventcontroller.
855 We now report mouse motion events with a 100 ms idle latency and
856 a 20 ms granularity when motion is in progress.
858 * test/event-listener-test.c:
860 We now register the "detail listener" for events of type
861 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
862 delivered only for the first mouse event received, and thereafter
863 "mouse:abs" events are delivered.)
865 * cspi/spi_registry.c:
866 DOCS: Documented the above mouse event typestrings.
868 2002-06-21 Bill Haneman <bill.haneman@sun.com>
870 Happy Summer Solstice...
872 * registryd/deviceeventcontroller.c: [fix for bug 84100]
873 (spi_controller_notify_keylisteners):
874 Changes to remove a listener from the listener list, freeing its
875 open keygrabs, if a notification to that listener fails. This
876 means that although a dead listener can continue to hold a passive
877 keygrab, a maximum of one dispatch to such a listener can fail
878 before the listener is removed from the list, thus the keygrab
879 will be released on the next occurrence.
881 (spi_notify_keylisteners):
882 Renamed to spi_controller_notify_keylisteners, as the controller
883 instance must now be passed as an argument.
884 The copied 'notify' GList is now a list of DEControllerKeyListener
885 objects, since we need more than just the CORBA reference if a
886 notify fails and we need to deregister the listener.
887 (impl_notify_listeners_sync):
888 (impl_notify_listeners_async):
889 (spi_device_event_controller_forward_key_event):
890 Modify use of notify_keylisteners in accordance with above
892 (spi_deregister_controller_key_listener):
893 New method introduced by refactoring, from
894 impl_deregister_keystroke_listener.
895 (impl_deregister_keystroke_listener):
896 Call spi_deregister_controller_key_listener.
897 (spi_key_listener_clone):
898 New method to copy a key listner without doing a 'ref' on the
899 remote object instance; used to create a notifier list.
900 (spi_key_listener_data_free):
901 New method, frees data without unreffing the source.
903 (spi_key_listener_clone_free): new method.
904 (spi_key_listener_free):
905 refactored to call spi_key_listener_data_free.
907 2002-06-20 Bill Haneman <bill.haneman@sun.com>
909 * registryd/registry.c: [fix for bug 86048]
910 (notify_listeners_cb):
911 Clear CORBA system exceptions which occur when notifying
912 listeners, before returning to the source of the original event,
913 since the event source doesn't care if the relayed notify failed.
914 In other words, don't complain to the atk-bridge if the registry
915 could not notify all its listeners, that's no fault of the
916 application and thus should not appear to be an error from the
917 application's perspective.
919 * cspi/spi_main.c: [fix for bug 85980]
921 Replaced use of bonobo_object_dup_ref with call to the wrapper
922 method, csou_dup_ref (); this silences a compiler warning and
923 provided more portability.
925 Ping the registry before return, and restart if necessary.
927 * cspi/bonobo/cspi-bonobo.c:
931 Fixed this method to return an object reference, as it should have
934 * cspi/cspi-lowlevel.h:
935 Added internal definition for cspi_ping() and fixed
936 return type of cspi_dup_ref().
939 2002-06-19 Bill Haneman <bill.haneman@sun.com>
941 * atk-bridge/bridge.c: [fix for bug 85305]
942 (spi_atk_bridge_register_application):
943 New method where the initial application registry calls have been
944 moved; it allows an application to re-register in response to
945 certain error conditions (such as a registry restart, see below).
947 Moved some initialization code to the method
948 spi_atk_bridge_get_registry, below.
949 (spi_atk_bridge_get_registry):
950 New, private accessor function for the Accessibility_Registry
951 instance. If the registry has not been started before, or has
952 died (as detected by failure of a CORBA exception), it is
953 restarted before return, and spi_atk_bridge_register_application
954 is called again to register with the new bridge instance.
955 (spi_atk_emit_eventv):
956 Set registry_died on error; use spi_atk_bridge_get_registry () to
959 * registryd/registry.c:
960 (impl_accessibility_registry_register_global_event_listener):
961 Set listener's event_type_quark to etype.minor instead of
962 etype.major (fix for bug 84856).
964 * test/event-listener-test.c:
965 (report_detail_event):
966 Change the output string so that user/tester can tell that the
967 'detail listener' was called instead of the 'generic listener'.
969 2002-06-18 Bill Haneman <bill.haneman@sun.com>
971 Fixes for bugs 84900, 84908, 84897, 84898.
976 Revved version to 1.1.0
977 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
978 version is going to HEAD which will be used for gnome-2-0-1 and later.)
980 * idl/Accessibility_Registry.idl:
981 (EventListener::notifyEvent):
982 Removed 'oneway' directive after extensive consulation with
983 ORBit2 team and others. This means also that unref() of the event
984 source can and should be done synchronously after emission, rather
985 than remotely in the client, after servicing the notify call on
988 NOTE: This change speeds up listener performance considerably, but
989 introduces new latency on the application side. We may want to
990 add an event queue to the atk-bridge.
992 * atk-bridge/bridge.c:
993 (spi_atk_bridge_focus_tracker):
994 Do a local unref() on the event source after emission.
996 * registryd/registry.c:
997 (desktop_remove_application):
998 Do an unref() on the event source after emission.
999 (desktop_add_application):
1000 Do an unref() on the event source after emission.
1001 (notify_listeners_cb):
1002 When relaying an event, don't automatically add the event source
1003 to the local object cache, just CORBA_dup it instead. Likewise,
1004 if this method reenters, release the ref rather than calling
1006 (impl_registry_notify_event):
1007 No longer call remote unref() on the event source after dispatch.
1009 * libspi/eventlistener.c:
1010 (impl_accessible_event_notify_event):
1011 Removed remote unref ()
1013 * cspi/bonobo/cspi-bonobo-listener.c:
1015 We now call cspi_object_new() instead of cspi_object_add() on
1016 receipt of an event; thus we only have an implicit object ref
1017 while the cspi_event method is being executed. If we need to keep
1018 a reference to the object, the listener must call ref() on the
1019 object. Thus also we don't need to call cspi_object_unref() after
1020 invoking the listener callbacks in this method.
1024 New internal API for creating a new cspi object, without adding it
1025 to the object cache.
1027 Now uses cspi_object_new() to create the cspi object instance.
1029 Now checks to see if the object is in the internal object cache,
1030 and adds it if necessary before incrementing its refcount (note
1031 that new objects are added with a refcount of 1).
1032 (report_leaked_ref):
1033 New method which gives some information on leaked object instances
1034 if leak detection is turned on.
1036 * test/event-listener-test.c:
1037 (timing_test_event):
1038 New method, used for testing event delivery timing for special
1039 events of type "object:test". It reports elapsed time and
1040 events/sec every 500 events.
1042 Added a new listener, 'test listener', to check timing of event
1043 receipt as noted above.
1045 Added some timing output here also, reports elapsed time every 100
1048 * test/stress-test.c:
1049 Emit events of type "object:test", for use with "event-listener-test".
1051 * test/test-simple.c:
1052 (global_listener_cb):
1053 Call Accessible_ref() on the event source before calling
1054 validate_accessible, since the validation process does pointer
1055 comparisons on the event source, meaning that the event source
1056 needs to be added to the local object cache first. Any use of
1057 such pointer comparisons between Accessible objects requires that
1058 the caller hold an explicit reference to those objects.
1059 We also must therefore call Accessible_unref() when leaving this method.
1061 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1063 * registryd/deviceeventcontroller.c:
1064 (spi_controller_update_key_grabs):
1065 Fix for #84735, subsequent keygrab listeners not informed of
1066 registration failure.
1069 (spi_base_construct):
1070 Add an assertion on construct, to make sure the GObject passed in
1071 is really a GObject.
1073 Explicitly initialize object->gobj pointer to NULL;
1075 * cspi/bonobo/cspi-bonobo-listener.c:
1076 (cspi_object_add_ref):
1077 New method, can specify whether to dup-ref a bonobo object passed
1078 in if it's newly added to the object cache.
1080 Now calls cspi_object_add_ref with second param of "FALSE". This
1081 prevents us from doing a pointless dup-ref followed by
1082 release-unref for all those cases where the object is already in
1083 our object cache (fix for #85205).
1085 * atk-bridge/bridge.c:
1086 (spi_atk_bridge_idle_init):
1087 Removed this method, we don't need to initialize in an idle
1090 Changed to call spi_atk_register_event_listeners directly, not via an
1091 idle handler. (fix for #81139)
1092 (gnome_accessibility_module_shutdown):
1093 Removed conditional around deregistration of listeners, since we
1094 don't use the idle handler and thus have always registered when
1096 (spi_init_keystroke_from_atk_key_event):
1097 Changed references to Accessibility_KEY_PRESSED to
1098 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1100 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1102 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1107 * test/stress-test.c:
1110 (may have been an incomplete commit yesterday?)
1112 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1115 Added target for new stress-test.
1117 * test/stress-test.c:
1118 New test, sends 1000 focus notifies in quick succession.
1120 * test/key-listener-test.c:
1121 Now we report whether a keylistener registration
1122 request succeeded or failed.
1124 * test/event-listener-test.c:
1125 Uncommented some listeners which are now implemented.
1128 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1130 * registryd/deviceeventcontroller.c:
1131 (spi_controller_update_key_grabs):
1132 Fix for #82509, lack of failure notification when
1133 ALL_WINDOWS keygrabs fail due to XGrabKey
1134 failure: we synchronize the server when
1135 registering a passive grab, to make sure we get the
1136 error message before the call returns.
1138 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1140 * test/test-simple.c:
1142 Removed #ifdef KEY_IMPL_WORKS guards.
1143 (test_keylisteners):
1144 Removed #ifdef KEY_IMPL_WORKS guards.
1145 Fixed bug which was causing a hang waiting for a
1146 "press" event (which was already overwritten by a "release"
1147 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1149 Added code to set globals 'key_press_received' and
1150 'key_release_received'.
1153 Added section "1.1 API Proposed Additions" which
1154 lists API additions desired for at-spi-1.1 (only one so far).
1155 Updated TODO list a little.
1157 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1159 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1162 * configure.in: Revved to 1.0.0.
1164 * idl/Accessibility_Registry.idl:
1165 (registerKeystrokeListener):
1166 Added boolean return value.
1168 * registryd/registry.c:
1169 (notify_listeners_cb): Minor fix to debug output.
1171 * registryd/Accessibility_Registry.server.in.in:
1172 Revved version number in OAFIID to 1.0.
1174 * registryd/registryd.c:
1176 Use new OAFIID version.
1178 * cspi/bonobo/cspi-bonobo.c:
1180 Use new OAFIID version.
1186 * atk-bridge/bridge.c:
1188 Use new OAFIID version.
1190 * registryd/deviceeventcontroller.c:
1191 (impl_register_keystroke_listener):
1192 Added CORBA_boolean return value.
1193 (spi_controller_register_device_listener):
1194 Added gboolean return value.
1195 (spi_controller_register_global_keygrabs):
1196 Added gboolean return value.
1197 (spi_key_set_contains_key):
1198 Added implementation for many more control keys,
1199 for instance F1-F12, arrow keys, End, Home, Page_Up,
1201 [TODO: some still not implemented].
1203 * text/screen-review-test.c:
1204 (text_chunk_pad_string):
1205 New function: it provides mapping between coordinate
1206 positions of text chunks and character positions in the
1207 screen-review-line output string.
1208 (text_chunk_to_string):
1209 New function, calls text_chunk_pad_string with various
1210 pad/delimiter characters. Pushbuttons are delimited with
1211 square brackets, Frames with vertical 'pipe' lines, and
1212 other text with double quotes.
1213 (text_chunk_list_to_string):
1214 Calls new function text_chunk_to_string.
1215 (toplevel_composite):
1216 New function to composite layers CANVAS through
1217 POPUP in each toplevel (other layers are composited
1218 across toplevels, i.e. BACKGROUND and OVERLAY).
1219 (review_buffer_composite):
1220 Revise to use new methods.
1226 2002-05-31 Laszlo Peter <laca@sun.com>
1228 * configure.in: add the Xtst libdir to the runpath on Solaris,
1229 since it's not in the default library search path.
1231 2002-05-29 jacob berkman <jacob@ximian.com>
1233 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
1235 2002-05-29 Bill Haneman <bill.haneman@sun.com>
1237 * test/screen-review-test.c:
1238 (text_chunk_pad_string):
1239 Added method, which pads the string according to the
1240 text bounds of the chunk. It also takes a 3-character
1241 string as a param which indicates the characters to be
1242 used for start, padding, and end delimitation of the chunk.
1243 (text_chunk_to_string):
1244 Changed to use text_chunk_pad_string.
1246 * configure.in: Fixed bug in AC_OUTPUT that was
1247 causing path substitution in Accessibility_Registry.server
1250 2002-05-23 Bill Haneman <bill.haneman@sun.com>
1252 * text/screen-review-test.c:
1253 (guess_string_clip):
1254 New method which attempts a best-guess at clipping
1255 text from components (like Java labels) which don't
1256 actually implement AccessibleText. This inaccurate
1257 clip is based on the assumption that the label is
1258 justified left-and-right, and monospaced.
1259 (text_chunk_get_clipped_string):
1260 We now call guess_string_clip() for text-containing
1261 components that don't implement AccessibleText.
1263 * test/screen-review-test.c:
1264 (review_buffer_get_text_chunk):
1265 We now pull "name" from labels if they do not implement
1266 AccessibleText (i.e. for Java labels).
1267 (get_screen_review_line_at):
1268 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
1271 Replaceded AC_OUTPUT target
1272 registryd/Accessibility_Registry.server with
1273 registryd/Accessibility_Registry.server.in.
1275 * registryd/Accessibility_Registry.server.in:
1276 Removed (this is now a Makefile target).
1278 * registryd/Accessibility_Registry.server.in.in:
1279 Added (source for target above). We now use $(libexecdir) as
1280 prefix for the executable at-spi-registryd.
1282 * registry/Makefile.am:
1283 Now install at-spi-registryd into $(libexecdir), and build .server
1284 file with path (see above).
1286 2002-05-22 Bill Haneman <bill.haneman@sun.com>
1288 * test/screen-review-test.c:
1289 (text_chunk_get_clipped_string):
1290 We now check to see if words fall within clip bounds
1291 before resorting to character-by-character clip bounds testing.
1293 * TODO: Added a section for "2.2 Proposed API Additions".
1295 2002-05-21 Bill Haneman <bill.haneman@sun.com>
1297 * test/screen-review-test.c:
1299 Added a screen review benchmarking and test program to test
1302 * cspi/spi_accessible.c:
1304 Made some of the debug strings passed to cspi_check_ev a
1305 little more specific.
1307 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
1309 * test/screen-review-test.c: Fix crashes in debug statements
1311 2002-05-20 Bill Haneman <bill.haneman@sun.com>
1313 * test/screen-review-test.c: Added this file.
1315 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1317 * atk-bridge/bridge.c: changed "object:state-change" to
1318 "object:state-changed" to match docs.
1320 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1322 * atk-bridge/bridge.c: Hooked up state-change event details.
1324 2002-05-11 Bill Haneman <bill.haneman@sun.com>
1326 * registryd/registry.c:
1327 Fixed quarking bug in event string parsing; now events with
1328 detail parameters get matched correctly to listeners.
1331 * util/idl/Magnifier.idl: remove.
1333 * util/*.[ch]: Remove.
1334 Magnification utilities and IDL are now in module gnome-mag.
1336 2002-05-10 Bill Haneman <bill.haneman@sun.com>
1338 * registryd/deviceeventcontroller.c:
1339 Fixed bug in grab key conversion which was causing keycode grabs
1340 to be converted to AnyKey grabs.
1343 updated NEWS file to reflect recent spin-off of gnome-mag.
1345 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
1347 * cspi/spi_accessible.c: Added exception checks. Fixed completely
1348 busted AccessibleStateSet_compare. Removed redundant casts.
1350 * cspi/spi-action.c: Removed redundant casts.
1352 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
1354 * cspi/spi_component.c: Fixed typos and casting error.
1356 * cspi/spi_editabletext.c: Removed redundant casts.
1358 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
1360 * cspi/spi_hypertext.c: Eliminated redundant casts.
1362 * cspi/spi_image.c: Eliminated redundant casts.
1364 * cspi/spi_registry.c: Eliminated redundant casts.
1365 SPI_deregisterGlobalEventListenerAll () removed retval variable.
1366 * cspi/spi_selection.c: Removed redundant casts.
1367 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
1368 handling. Screen geometry and text offsets were being returned as 0
1369 on error which is technically valid-- changed these to return -1.
1370 Added marshaller for text boundary types to fix bug with boundary
1371 types being passed incorrectly to atk.
1373 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1376 * cspi/spi_registry.c:
1377 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
1378 which was uncovered by the recent key changes.
1380 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1382 * test/event-listener-test.c:
1384 Added new test, "event-listener-test";
1385 this code does two things; it benchmarks traversal time
1386 for the accessible hierarchy for the first running accessible
1387 app, and it connects listeners for all supported event types.
1388 It is thus useful as an example event listener and for
1389 diagnostics/debugging of event generation.
1391 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1394 Removed unnecessary dependency on libutil.
1397 Revved micro version: 0.13.1
1399 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1402 Removed util/Makefile from targets.
1405 Removed util subdir from SUBDIRS (temporarily,
1406 pending removal of magnifier-only code
1410 #ifdef-ed out magnifier dependencies, since
1411 magnifier IDL, headers, and binary now live in
1412 module gnome-mag and we don't want at-spi to depend
1413 on gnome-mag. A magnifier demo which can run alongside
1414 simple-at is forthcoming in the gnome-mag module.
1416 NOTE: Split magnifier binary, IDL, and magnification
1417 activation code from at-spi into module gnome-mag.
1419 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
1421 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
1422 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
1424 2002-05-03 Bill Haneman <bill.haneman@sun.com>
1427 Revved to version 0.13.0
1429 * idl/Accessibility_Registry.idl:
1430 Changed definition of KeySet from sequence of longs to sequence of
1431 KeyDefinitions, and added KeyDefinition struct.
1432 Required for fix to bug 80616.
1434 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
1435 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
1436 to use new definition (see above).
1438 * registryd/deviceeventcontroller.c: handle_keygrab(),
1439 spi_keyset_contains_key():
1440 Changed to make use of new struct; this allows matching based on
1441 string key-name, for instance "Tab". This also allows matching of
1442 composed characters, non-alphanumeric characters in a way that
1443 doesn't involve dependencies on X keysym codes directly, etc.
1445 * test/key-listener-test.c:
1446 Added test for Alt-Tab key using "string" specification of keyset,
1447 and modified one of the tests to use a keycode-based keyset.
1448 Thus this test both tests and demonstrates the creation and use of
1449 keysets of three forms: specified via keycode array,
1450 keysym array, and string array. (The string case only contains a
1451 single string, i.e. a string array of length 1).
1454 Turned on PRINT_TREE option by default. Also fixed a
1455 string-freeing bug in the PRINT_TREE code.
1456 Added a listener to window:minimize events.
1458 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
1460 * atk-bridge/bridge.c:
1461 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
1462 for window:activate and window:deactiveate
1463 (atk_bridge_property_event_listener atk_bridge_signal_listener
1464 atk_bridge_window_event_listener) Tidy debug code
1466 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
1468 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
1469 Fixed handling for NULL return value from ATK.
1471 * libspi/action.c libspi/component.c libspi/editabletext.
1472 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
1473 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
1474 Removed redundant casts.
1476 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
1477 Fixed off by one bug.
1479 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
1480 function not present in idl)
1482 2002-05-02 jacob berkman <jacob@ximian.com>
1484 * atk-bridge/Makefile.am: make atk-bridge a real module
1486 2002-04-26 Radek Doulik <rodo@ximian.com>
1488 * libspi/stateset.c (spi_init_state_type_tables): fix size of
1489 atk_state_types table
1491 2002-04-22 jacob berkman <jacob@ximian.com>
1494 * libspi/Makefile.am: add deps on the built files to help
1495 automake, and don't version the ORBit typelib
1497 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
1499 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
1500 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
1501 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
1502 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
1503 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
1504 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
1505 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
1506 libspi/accessible.h libspi/accessible.h libspi/base.h
1507 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
1508 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
1509 libspi/relation.h libspi/remoteobject.h libspi/selection.h
1510 libspi/spi-private.h libspi/statetset.h libspi/table.h
1511 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
1512 util/mag_client.h util/mag_control.c util/mag_image.c
1513 util/mag_image.h util/magnifier.c util/magnifier.h:
1514 Add missing file headers; standardize existing ones
1516 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
1518 * atk-bridge/bridge.c: Added window event support.
1520 2002-04-18 Michael Meeks <michael@ximian.com>
1522 * libspi/relation.c (impl_getNTargets): impl.
1523 (impl_getTarget): impl.
1525 * libspi/Makefile.am: fix stateset install.
1527 2002-04-17 Bill Haneman <bill.haneman@sun.com>
1530 Started putting useful info in this file.
1532 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
1534 * atk-bridge/bridge.c:
1535 Propagate state-changed notifications to ATs
1537 * cspi/spi_registry.c: update docs to reflect actual behavior of
1538 state-change events.
1540 2002-04-17 Bill Haneman <bill.haneman@sun.com>
1543 Incremented version to 0.12.1
1545 * util/mag_client.h:
1546 Add missing declaration for magnifier_exit,
1547 used by mag_control.c - Forte compiler didn't like
1548 the implicit redeclaration of the function :-(
1551 2002-04-16 Bill Haneman <bill.haneman@sun.com>
1554 Revved version to 0.12 due to API change (see below).
1556 * cspi/spi-roletypes.h:
1557 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
1558 definition from the inline docs, and added docs
1559 for SPI_ROLE_LAST_DEFINED.
1562 * cspi/spi_streamablecontent.c:
1563 Added missing seek_type parameter to
1564 (so far unused) method,
1565 AccessibleStreamableContent_seek().
1566 [ RT approval JodyG. ]
1569 Fixed docs for SPI_createAccessibleKeystrokeListener.
1571 * cspi/spi_registry.c:
1572 Fixed docs for SPI_KEYSET_ALL_KEYS.
1574 * docs/reference/cspi/at-spi-cspi-sections.txt:
1575 Added a number of missing APIs to SECTIONS.
1577 2002-04-16 Bill Haneman <bill.haneman@sun.com>
1579 * registryd/Makefile.am:
1581 * cspi/bonobo/Makefile.am:
1582 Add $(X_LIBS) to makefiles.
1584 2002-04-15 Bill Haneman <bill.haneman@sun.com>
1587 Revved version to 0.11.
1589 * libspi/component.c:
1590 Added implementation for grabFocus.
1592 * idl/Accessibility_Component.idl
1593 (Accessibility_Component_grabFocus):
1594 Made this method return boolean to indicate success or failure, to
1595 be consistent with cspi and the corresponding ATK method.
1597 * idl/Accessibility_Selection.idl
1598 (Accessibility_Selection_selectAll) :
1599 Made these methods return boolean to indicate success or
1600 failure, to be consistent with cspi and the corresponding ATK methods.
1602 * idl/Accessibility_EditableText.idl
1603 (Accessibility_EditableText_setTextContents,
1604 Accessibility_EditableText_insertText,
1605 Accessibility_EditableText_cutText,
1606 Accessibility_EditableText_deleteText,
1607 Accessibility_EditableText_pasteText):
1608 Made these methods return boolean to indicate
1611 * cspi/spi_editabletext.c:
1612 Made these methods return booleans.
1614 * libspi/selection.c:
1615 * libspi/component.c:
1616 * libspi/editabletext.c:
1617 Connected the boolean returns from ATK
1618 to the server-side code referenced above.
1620 2002-04-14 Bill Haneman <bill.haneman@sun.com>
1622 * idl/Accessibility_Table.idl: Added missing methods,
1623 Accessibility_Table_addRowSelection,
1624 Accessibility_Table_addColumnSelection,
1625 Accessibility_Table_removeRowSelection,
1626 Accessibility_Table_removeColumnSelection.
1629 Added C wrappers for above IDL:
1630 AccessibleTable_addRowSelection,
1631 AccessibleTable_addColumnSelection,
1632 AccessibleTable_removeRowSelection,
1633 AccessibleTable_removeColumnSelection.
1636 Added server-side implementation code for IDL above, connecting
1637 to pre-existing ATK api.
1639 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
1641 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
1643 * libspi/accessible.c: Added implementation fo
1644 Accessibility_Accessible_get_state.
1646 * libspi/libspi.h: Added stateset.h to the list of includes.
1648 * libspi/stateset.c: Fixed broken implementation.
1650 2002-04-13 Bill Haneman <bill.haneman@sun.com>
1653 Added implementation code for Accessibility_Magnifier_exit ().
1655 * util/mag_control.c:
1656 Added test code for above method; you can
1657 now kill an existing magnifier via
1658 ./mag_control q, from the util directory.
1660 * test/key-listener-test.c:
1662 Added a new test, for our key listener API.
1664 2002-04-11 Bill Haneman <bill.haneman@sun.com>
1666 * test/app.c, test/keysynth-demo.c:
1668 Replace use of snprintf with g_snprintf.
1669 (fix for bugzilla 78249)
1671 2002-03-27 Michael Meeks <michael@ximian.com>
1675 * util/Makefile.am (INCLUDES): fix.
1676 (DONT_DIST_SOURCE): don't distribute the
1679 * libspi/Makefile.am (dist-hook): ditto.
1681 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
1683 * libspi/hypertext.c:
1684 Fix warnings when yelp is used with atk-bridge
1686 2002-03-21 Michael Meeks <michael@ximian.com>
1688 * libspi/application.c (spi_application_new):
1689 use spi_accessible_construct so we use the AtkObject
1692 2002-03-19 Michael Meeks <michael@ximian.com>
1694 * registryd/registry.c (desktop_remove_application),
1695 (desktop_add_application): clean coding style.
1697 * registryd/desktop.c (spi_desktop_remove_application),
1698 (spi_desktop_add_application): kill re-enterency hazards.
1699 (spi_desktop_dispose): remove bogus redundant cast
1700 obscuring bug; fix bug too.
1701 (spi_desktop_init): make the desktop object immortal.
1703 2002-03-16 Bill Haneman <bill.haneman@sun.com>
1706 Added a #define-guarded tree-traversal step
1707 when enumerating the apps (diagnostic tool).
1709 2002-03-15 Bill Haneman <bill.haneman@sun.com>
1711 * idl/Accessibility_Role.idl:
1712 Added ROLE_DRAWING_AREA which seemed to be missing from the
1715 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1717 * cspi/spi-roletypes.h cspi/spi_accessible.c
1718 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
1721 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
1722 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
1723 AT when applications are added and removed from the desktop. This
1724 reverts the previous broken implementation using the backing
1725 AtkObject for the SpiDesktop.
1727 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1729 * registryd/desktop.c: emit the "children-changed::add" and
1730 "children-changed::remove" signals on the backing ATK object for
1731 the desktop so AT can tell when applications are started and shut
1734 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1736 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
1738 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1740 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
1742 * cspi/spi_accessible.c: Implemented c bindings for stateset support
1744 * cspi/state-types.h: synched with IDL and ATK
1746 2002-03-13 Bill Haneman <bill.haneman@sun.com>
1748 * libspi/accessible.c
1749 (impl_accessibility_accessible_get_child_at_index):
1750 Change return value for g_return_if_fail ()
1751 to CORBA_OBJECT_NIL instead of "0" (!)
1753 * registryd/Makefile.am:
1754 * registryd/Accessibility_Register.server.in:
1755 Changed name of executable, "registryd",
1756 to something more informative:
1759 2002-03-13 Michael Meeks <michael@ximian.com>
1761 * atk-bridge/bridge.c (atk_bridge_init): don't register
1762 if we're in a bonobo-component, rather than a bonobo app.
1764 2002-03-13 Michael Meeks <michael@ximian.com>
1766 * atk-bridge/bridge.c (gtk_module_init): split
1767 out body to (atk_bridge_init): here, since otherwise
1768 we get symbol conflicts and oddness when invoked
1769 from (gnome_accessibility_module_init): here (upd.)
1771 2002-03-11 Bill Haneman <bill.haneman@sun.com>
1774 New file. Explicitly allow "build sheriff" putbacks provided
1775 they are tested on Solaris.
1777 * docs/reference/cspi/Makefile.am:
1778 Added '-' to the "cp" command for index.sgml.
1779 ("patch by thomasvs, soon coming to a GUADEC near you")
1782 Incremented version number (0.9.0) for new release.
1783 Changed macro that checks for popt, to better detect
1784 obsolete versions of popt.
1787 Added X_LIBS to AC_SUBST, for applications
1788 that call Xlib API directly.
1791 2002-03-07 Bill Haneman <bill.haneman@sun.com>
1794 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
1797 Fix regression caused by hard-coding major
1798 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
1801 * test/test-simple.c (test_editable_text),
1802 (test_test): revert previous change (error was
1803 a regression in gail which is now fixed).
1805 2002-03-04 Michael Meeks <michael@ximian.com>
1807 * test/test-simple.c (test_editable_text),
1808 (test_text): pass G_MAXINT instead of '-1' for
1809 whole string - is this a good thing !?
1811 * cspi/spi_accessible.c
1812 (Accessible_getRelationSet): fix crasher bug
1813 overwriting the end of the array.
1815 * test/test-simple.c (validate_accessible): free,
1816 not g_free returned relation set.
1818 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
1820 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
1821 implemented stateset support
1823 * idl/Accessibility_State.idl: Made necessary changes to
1824 the IDL to support state sets.
1826 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1828 * registryd/deviceeventcontroller.c:
1829 Added implementation for generateMouseEvent.
1831 * cspi/spi_registry.c:
1832 Connected new implementation for generateMouseEvent
1835 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1838 Incremented revision (but no change in public API
1839 outside of 'utils', which are not installed public yet.)
1841 * libspi/component.c:
1842 Changed to use atk_component API for layers and
1843 mdi_zorder, instead of deprecated atk_object API.
1845 Magnification Utility Enhancements:
1848 Added implementation of createZoomRegion, clearAllZoomRegions,
1849 resizeZoomRegion. Added new commandline argument
1850 "--no-initial-region". Note that clearAllZoomRegions doesn't
1851 unmap the old '0' region as it should (yet), and the other
1852 methods only work when creating/resizing a single region,
1853 which is "region 0".
1854 (Code for multiple region support will be added later.)
1857 Now we raise the magnifier window each time it's refreshed;
1858 this will help keep it on top.
1860 * util/mag_client.h:
1861 Added simple wrappers for above, used by mag_control.
1862 For general use, it's recommended to use the bonobo magnifier
1863 control API directly instead of using these wrappers.
1866 Moved ZoomRegionData from magnifier.c to this file.
1868 * util/mag_control.c:
1869 Added some code to exercise new IDL implementations.
1871 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
1873 * libspi/text.c: Provide implementation for getAttributes.
1875 2002-02-04 Bill Haneman <bill.haneman@sun.com>
1878 Incremented revision.
1880 * test/test-simple.c:
1881 Replaced use of deprecated g_main_iteration with
1882 g_main_context_iteration.
1884 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
1887 Incremented revision for desktop alpha 2.
1889 2002-01-28 Mark McLoughlin <mark@skynet.ie>
1891 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
1894 * test/simple-at.c: include netinet/in.h.
1896 2002-01-24 Mark McLoughlin <mark@skynet.ie>
1898 * cspi/spi_accessible.c: (Accessible_getRelationSet):
1899 use NULL, not CORBA_OBJECT_NIL.
1901 * libspi/accessible.c:
1902 (impl_accessibility_accessible_get_relation_set):
1903 allocate the sequence correctly.
1905 * libspi/remoteobject.h: kill spi_remote_object_new.
1907 * test/test-simple.c: (validate_accessible): add code
1908 to test relation sets, now all we need is to figure
1909 out how to excercise this code path :/
1911 2002-01-18 Michael Meeks <michael@ximian.com>
1913 * test/test-simple.c
1914 (key_listener_cb): consume the key.
1915 (test_keylisteners): update.
1916 (main): wait for any pending unrefs on events.
1918 * registryd/deviceeventcontroller.c
1919 (spi_controller_update_key_grabs): only re-issue the
1920 grab on a key release.
1921 (spi_device_event_controller_forward_key_event):
1922 refresh the keygrabs before we notify the listeners,
1923 to reduce the X ungrab / re-grab race.
1924 (spi_controller_register_with_devices): remove
1925 XSelectInput - we do that with the gdk_window_ call.
1926 (_spi_controller_device_error_handler): return a value.
1927 s/GDK_DISPLAY/spi_get_display/
1929 2002-01-17 Michael Meeks <michael@ximian.com>
1931 * registryd/deviceeventcontroller.c
1932 (_deregister_keygrab): don't blow out the later
1935 * test/test-simple.c (test_keylisteners): do a
1936 more intelligent validation.
1938 2002-01-14 Michael Meeks <michael@ximian.com>
1940 * atk-bridge/bridge.c
1941 (gnome_accessibility_module_init),
1942 (gnome_accessibility_module_shutdown): impl.
1943 (gtk_module_init): protect vs. double inits.
1944 (add_signal_listener): impl.
1945 (spi_atk_bridge_state_event_listener): kill
1946 (deregister_application): split out of
1947 (spi_atk_bridge_exit_func): here.
1949 2002-01-18 Bill Haneman <bill.haneman@sun.com>
1952 Added caret tracking when using magnifier, and
1953 now use text bounds for focus tracking of text elements, rather than
1954 the component bounds - this is helpful for short text fields in long
1955 table cells, at high magnification.
1957 2002-01-16 Bill Haneman <bill.haneman@sun.com>
1959 * registryd/deviceeventcontroller.c:
1960 Regression fix for keylistener de-registration; global keygrabs
1961 were not being released when deregisterKeystrokeListener was
1962 called in cspi, since
1963 Accessibility_DeviceEventController_deregisterKeystrokeListener
1964 was called with a zero-length keyset. That is because the cspi
1965 method, SPI_deregisterKeystrokeListener, does not take a keyset
1966 parameter but instead should remove all the key grabs held be a
1968 The code in impl_deregister_keystroke_listener was changed to copy
1969 the keylist from the listener instance previously registered with
1970 the DeviceEventController before releasing the grabs.
1972 * registryd/registry.c:
1973 * registryd/deviceeventcontroller.c:
1974 * libspi/spi-private.h:
1976 Changed spelling of "re-enterant" to "re-entrant" globally.
1978 2002-01-16 Bill Haneman <bill.haneman@sun.com>
1980 * test/test-simple.c:
1981 Changed key listeners test - the test was slightly mis-using the
1982 (admittedly poorly documented) SPI_generateKeyboardEvent API.
1983 It now uses '=' as the key event listened to and generated,
1984 relying on a keysym match rather than assuming that keycode 33
1985 is always equal to keysym '!'.
1987 2002-01-15 Bill Haneman <bill.haneman@sun.com>
1990 Changed simple-at to use a specific keyset, rather than
1991 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
1992 manager, desktop, etc.
1994 2002-01-11 Bill Haneman <bill.haneman@sun.com>
1996 * registryd/deviceeventcontroller.c:
1997 Replaced standard X error handler with a special handler that
1998 is non-fatal for failed keygrabs. This works around
1999 problems with keygrab clashes sometimes observed on
2001 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2002 mouse handling code as yet).
2004 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2007 Incremented revision for desktop alpha release.
2010 Fixed a couple of the more glaring errors (still not
2013 2002-01-11 Michael Meeks <michael@ximian.com>
2015 * registryd/deviceeventcontroller.c
2016 (spi_device_event_controller_forward_key_event): kill
2017 XUngrabKey / XKeyGrab race.
2018 (spi_controller_grab_keyboard): rename to
2019 (spi_controller_update_key_grabs): this, and deal
2020 with incremental adding / removing grabs more
2022 (_register_keygrab): ensure we're not pending a remove.
2023 (spi_grab_mask_free): impl.
2024 (spi_controller_register_global_keygrabs): split out
2026 (handle_keygrab): impl.
2027 (_deregister_keygrab): impl.
2028 (spi_controller_deregister_global_keygrabs): impl.
2029 (spi_controller_update_key_grabs): re-issue the grab if
2030 we just recieved a notification.
2032 * test/test-simple.c (key_listener_cb): remove debug.
2034 * registryd/deviceeventcontroller.c
2035 (spi_controller_register_device_listener): after
2036 registering a global keygrab, actualy register it !
2037 don't wait for a timeout; doh !
2039 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2040 to make it more readable / manipulable.
2041 s/grabmask/grab_mask/ s/refcount/ref_count/
2042 s/keyval/key_val/ s/modmask/mod_mask
2044 2002-01-08 Michael Meeks <michael@ximian.com>
2046 * registryd/deviceeventcontroller.c
2047 (spi_controller_register_with_devices): use gdk calls to
2049 (global_filter_fn): implement the filter.
2050 (spi_device_event_controller_check_key_event): rename to
2051 (spi_device_event_controller_forward_key_event): this & upd.
2052 (spi_get_display): replace with GDK_DISPLAY.
2054 * registryd/deviceeventcontroller.c
2055 (spi_controller_deregister_device_listener): unroll into
2056 (impl_deregister_keystroke_listener): here to simplify.
2057 (spi_controller_register_global_keygrabs): split cut and
2058 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2059 (spi_controller_deregister_device_listener): remove.
2060 (impl_register_mouse_listener): remove, no mouse listener
2061 support in at-spi-1.0
2063 * registryd/registry.c
2064 (_device_event_controller_hook): kill.
2065 (spi_registry_init): upd.
2067 * registryd/deviceeventcontroller.c
2068 (spi_device_event_controller_class_init): upd.
2069 (spi_check_key_event): merge into.
2070 (spi_device_event_controller_check_key_event):
2071 here and kill strange static ev init, don't leak
2072 the x_event - nor dynamicaly allocate it.
2074 * registryd/registry-main.c (main): re-direct
2075 timeout to remove strange vtable mess.
2077 * registryd/deviceeventcontroller.c
2078 (remove_listener_cb): impl.
2079 (spi_controller_deregister_device_listener):
2080 fix re-enterancy hazard.
2082 2002-01-07 Michael Meeks <michael@ximian.com>
2084 * registryd/deviceeventcontroller.c
2085 (spi_device_event_controller_new): upd.
2086 (impl_notify_listeners_sync): upd. debug.
2087 (spi_notify_keylisteners): fix re-enterancy hazards,
2088 prettify, remove O(n*n) iteration.
2089 (spi_controller_grab_keyboard): fix iteration.
2090 (spi_check_key_event): re-format to suit coding style.
2091 Clean all the warnings - we're warning free.
2093 * registryd/deviceeventcontroller.h:
2094 * registryd/registry.h: make mutualy referential with
2095 typesafe forward references instead of (!) void pointer
2098 2002-01-11 Michael Meeks <michael@ximian.com>
2100 * cspi/spi_accessible.c (role_names): add a role name
2101 to sync this array with the enum; and make the regression
2104 2002-01-10 Michael Meeks <michael@ximian.com>
2106 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2107 allow expansion of enumeration & kill warning.
2109 * test/test-simple.c (key_listener_cb): impl.
2110 (test_keylisteners): impl.
2112 * cspi/spi-listener.h: make listener signatures const
2113 on the provided (const) events.
2115 * test/keysynth-demo.c: upd. to const events.
2117 * test/simple-at.c: ditto.
2119 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2122 Rev the version to 0.5 (the previous tarball was named 0.4,
2123 even though the micro number was 3), so we need to rev upwards
2124 again for beta2/"desktop-alpha"
2127 Checked in a demo script, which requires editing before use!
2128 Proceed with caution.
2131 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2133 * cspi/spi_accessible.c:
2134 Add a couple of missing enum initializations, and fix some enum
2137 * cspi/spi_registry.c:
2138 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2140 * docs/reference/cspi/at-spi-cspi-sections.txt:
2141 Remove/fix a couple of broken document references.
2144 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2145 as Alt-Control to listen for commands, since on some systems
2146 Control-Alt may already be grabbed.
2148 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2151 Update version number to 0.4 for Beta2.
2153 * libspi/accessible.c, libspi/accessible.h:
2154 Expose spi_accessible_construct, to enable libgail-gnome
2155 construction from spi_accessible subtype.
2157 * utils/magnifier.c:
2158 Workaround for bug in some non-gnome-compliant window managers
2159 which made magnifier resize improperly.
2161 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2163 * libspi/accessible.c: (spi_accessible_new) :
2164 Move the test for SPI_IS_REMOTE_OBJECT to
2165 spi_accessible_new_return, fixing a bug and compile time warning.
2167 2002-01-08 Michael Meeks <michael@ximian.com>
2169 * registryd/registry.c (parse_event_type): remove strndup.
2171 * libspi/Makefile.am (libspi_la_SOURCES): remove
2172 sources already included in the headers section.
2174 * libspi/util.c: add.
2176 * libspi/spi-private.h: add.
2178 * registryd/registry.c: update to moved list iterators.
2180 2002-01-05 Michael Meeks <michael@ximian.com>
2182 * test/simple-at.c (main): upd. auto-module set to atk-bridge
2184 * test/test-simple.c (main): ditto.
2186 2002-01-04 Michael Meeks <michael@ximian.com>
2188 * libspi/accessible.c (spi_accessible_new): remove 2nd,
2189 redundant construct.
2191 * registryd/registry.c
2192 (get_listener_list): impl.
2193 (impl_accessibility_registry_register_global_event_listener):
2194 re-impl. to simplify using ~, remove dodgy const cast off.
2195 (parse_event_type): constify.
2196 (impl_accessibility_registry_deregister_global_event_listener_all):
2197 re-write, more efficiency and simplicity, kill re-enterancy
2199 (compare_listener_corbaref, compare_corba_objects),
2200 (compare_listener_quarks): define out.
2201 (impl_accessibility_registry_deregister_global_event_listener):
2202 re-write for effiency, and nail re-enterancy hazard.
2203 (impl_accessibility_registry_get_desktop_list): impl.
2204 (re_enterant_list_delete_link): impl.
2205 (re_enterant_list_foreach): impl.
2206 (remove_listener_cb): impl.
2207 (_registry_notify_listeners): kill.
2208 (notify_listeners_cb): impl.
2210 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
2211 (SPI_getDesktopList): impl.
2213 * test/test-simple.c (test_desktop): test the methods.
2215 2002-01-03 Michael Meeks <michael@ximian.com>
2217 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
2218 keystrings since we free them
2219 (SPI_freeAccessibleKeySet): in here.
2221 * libspi/accessible.c (spi_accessible_new): kill warning,
2222 wonder what is going on with the constructor here.
2224 2002-03-01 Bill Haneman <bill.haneman@sun.com>
2226 * libspi/accessible.c (spi_accessible_new ()) :
2227 Added check to see if AtkObject is an SpiRemoteObject before
2228 creating an SpiAccessible.
2230 2002-05-01 Bill Haneman <bill.haneman@sun.com>
2232 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
2233 Enable keygrabs using the Control modifier, now that they are
2234 working properly (they were previously disabled).
2237 Change the command keygrab for this demo to "Control+Alt", so as
2238 to conflict with fewer other key commands on the system; this
2239 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
2241 Removed a pointlessly-chatty keylistener for unshifted keys
2242 (shifted keys are still reported).
2244 2002-02-01 Bill Haneman <bill.haneman@sun.com>
2246 * libspi/remoteobject.h:
2247 * libspi/remoteobject.c:
2248 Added definitions for special AtkObject subtype, required for
2249 support of remote components (specifically, used by BonoboControl
2250 accessibility implementation).
2252 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
2254 * cspi/spi.h: synched relation types with ATK
2256 * cspi/spi_accessible.c: Added implementations of
2257 AcccessibleRelation_* methods
2259 * idl/Accessibility_Relation.idl: added getRelationTypeName
2260 method. Synched known relation types with ATK. Allowed for
2261 relation type extension with the RELATION_EXTENDED type.
2263 * libspi/relation.c: Provided implementations for
2264 AccessibleRelation methods.
2266 2002-01-01 Bill Haneman <bill.haneman@sun.com>
2268 API tweaks for today's API 'freeze'.
2271 Added placeholder functions to allow future compatible expansion
2272 of the IDL interfaces.
2274 * idl/Accessibility_Registry.idl:
2275 Changed generateKeyEvent to generateKeyboardEvent. Changed
2276 signature of this method to accept an optional keystring in
2277 parameter (for complex text input synthesis) and changed use of
2278 simple 'boolean' parameter in registerKeystrokeListener to a
2279 struct, EventListenerMode.
2281 * cspi/spi_accessible.c:
2283 * cspi/spi_streamablecontent.c:
2284 Added references to AccessibleStreamableContent interface, and
2285 definition and implementation of AccessibleStreamableContent
2288 * cspi/spi_registry.c:
2290 Changed generateKeyEvent API to generateKeyboardEvent,
2291 taking a new (optional) keystring parameter to support complex
2296 Renamed directory (to better reflect its actual purpose, bridging
2297 from at-spi to ATK). The .so module is also now named
2300 * idl/Accessibility_Hypertext.idl:
2301 * libspi/accessible.c:
2302 * libspi/hypertext.h:
2303 * libspi/hypertext.c:
2304 Changed Accessibility_Hypertext to *not* derive from
2307 * cspi/spi_registry.c:
2308 Added list of legal event type names for 'window' events, which
2309 completes the registry event API.
2311 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
2313 * at-bridge/bridge.c: Added registration for separate
2314 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
2315 signals. If either of the first two parameters to the generic
2316 bridge signal handler are ints, they are passed on as event
2317 details. This allows an AT to determine what text was inserted.
2319 2001-12-21 Bill Haneman <bill.haneman@sun.com>
2321 * registryd/deviceeventcontroller.c:
2322 Fixed regressions in generateKeyEvent caused by the removal of
2323 gdk_init from registryd; we now use pure X calls to connect to the
2324 display, which makes sense because deviceeventcontroller already
2325 uses a fair bit of X API (should eventually be migrated to a
2326 'portability layer').
2328 * registryd/desktop.c:
2329 Fixed minor regression in spi_desktop_init, changed the way the
2330 desktop name is being set to work with new spi_base API
2331 (gobject-based, rather than AtkObject-based).
2333 * registryd/Makefile.am:
2334 Minor revision of makefile to use XTST_LIBS variable rather than
2335 hard-wiring the Xtst LD_ADD element.
2337 * test/keysynth-demo.c:
2338 Tweaked an output message; added initialization of the
2339 'keystrings' member of the "switch listener" key_set.
2341 * libspi/relation.c:
2342 Squashed compile-time warning.
2344 * libspi/accessible.c:
2345 Cosmetic and formatting fixes, renamed a static method.
2347 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
2349 * libspi/accessible.c
2351 * libspi/application.c
2354 * libspi/component.c
2355 * libspi/editabletext.c
2356 * libspi/hyperlink.c
2357 * libspi/hypertext.c
2359 * libspi/selection.c
2363 * registryd/desktop.c:
2364 Changed SpiBase to contain a GObject pointer rather than an AtkObject
2366 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2368 * idl/Accessibility_Registry.idl:
2369 Added boolean member 'is_text' to DeviceEvent. This is for the
2370 use of key events, and helps prevent ambiguity between composed
2371 key strings and keysym names, since both may potentially be
2372 returned in the 'event_string' member.
2374 * at-bridge/bridge.c:
2375 * registryd/deviceeventcontroller.c:
2376 Use the 'is_text' member when notifying device event listeners.
2377 Knon issue: composed characters are not dealt with correctly by
2378 the global key listener implementation yet.
2380 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2382 * at-bridge/bridge.c:
2383 Namespaced local static methods to spi_atk_bridge_* where
2384 previously named bridge_*, and spi_* elsewhere.
2386 * at-bridge/bridge.c:
2387 * cspi/bonobo/cspi-bonobo-listener.c:
2388 Added demarshalling/conversion for string member of
2389 Accessibility_DeviceEvent to AccessibleKeystroke.
2391 * registryd/deviceeventcontroller.c:
2392 Added code to fill the Accessibility_DeviceEvent key string value
2393 member for global key events (i.e. from XGrabKey), to match
2394 behavior of Accessibility_DeviceEvent from the toolkit key events
2395 from the bridge. Fixed timestamp in global key event notifications.
2398 Added printout of key event's string value to
2399 report_ordinary_key_event, for demo/debugging purposes.
2401 2001-12-15 Bill Haneman <bill.haneman@sun.com>
2403 * idl/Accessibility_Registry.idl:
2404 Removed Accessibility_KeyStroke structure in favor of generic
2405 Accessibility_DeviceEvent structure.
2406 Changed Accessibility_ControllerEventMask from a struct to an
2409 * at-bridge/bridge.c:
2410 Changed APIs to use DeviceEvent structure as above, and removed
2411 bogus casting between these event structures.
2413 * cspi/spi-listener.h:
2414 Added keystring member of AccessibleKeystroke structure, to enable
2415 matching on event "names" rather than only hardware codes and
2419 Added keystrings member of AccessibleKeySet struct, to allow
2420 matching on event names (as above).
2421 Added declarations for SPI_createAccessibleKeySet and
2422 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
2423 event modmasks directly as unsigned ints rather than structs with
2424 refcounts, in the DeviceEventController methods.
2426 * cspi/spi_registry.c:
2427 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
2429 * cspi/spi-roletypes.h:
2430 Added documentation of newly added SPI Roles.
2432 * cspi/bonobo/cspi-bonobo-listener.c:
2433 Changes in support of API changes above.
2435 * libspi/accessible.c:
2436 Converted APIs to use DeviceEvent structure (see IDL changes
2439 * registryd/deviceeventcontroller.c:
2440 Added DEControllerGrabMask structure to track keygrabs not only by
2441 modmask but by keyset as well; this allows us to do "global"
2442 (i.e. X) keygrabs on a per-key or keyset basis rather than always
2443 grabbing on AnyKey and then filtering after-the-fact.
2444 Bugfixes for event filtration mean that we don't get false matches
2445 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
2447 * registryd/deviceeventcontroller.c:
2448 Namespaced a number of static methods to use spi_ prefix. Major
2449 revision to internals of global (i.e. X) key grabs.
2451 * registryd/deviceeventcontroller.h:
2452 Removed keymask_list and added keygrabs_list to
2453 SpiDeviceEventController struct.
2456 Added use of SPI_createAccessibleKeySet API when creating a
2457 listener for only one key. Attach a listener to "shift spacebar
2458 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
2459 X key event names to SPI key event names, so that listeners are
2460 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
2462 * test/keysynth-demo.c:
2463 Changed (incorrect) use of X key event names (KeyPressed,
2464 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
2467 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2469 * libspi/accessible.c:
2470 Convert all AtkRole enumerations to Accessibility_Role enums when
2471 getting a role from an AtkObject.
2473 * cspi/spi_accessible.c:
2474 Complete the conversion of Accessibility_Role enums at runtime to
2475 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
2476 role enums correctly match those given in spi-roletypes.h.
2477 Re-synchronize the local names list for AccessibleRole_getName ().
2478 AccessibleRole_getName is now deprecated, since it duplicates the
2479 more reliable Accessible_getRoleName.
2480 Added some role types from Accessibility_Role.idl.
2482 * idl/Accessibility_Role.idl:
2483 Added some role types used by AtkRole.
2485 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2488 * cspi/spi_registry.c:
2490 * cspi/cspi-bonobo-listener.c:
2491 Namespaced all methods that did not begin with an "SPI_" or
2492 "Accessible" prefix to "SPI_".
2495 Homogenized internal function namespace to "cspi_" for statics.
2498 Patched tests to use the new CSPI API.
2500 * docs/reference/cspi/at-spi-cspi-sections.txt:
2501 Updated docs to reflect namespace changes, and added a number of
2502 methods to the documentation.
2504 * registryd/registry.c:
2505 Changed use of strings and string hashes in listener event
2506 matching and parse_event_string to use GQuark, which is guaranteed
2509 * registryd/registry.h:
2510 Squashed annoying warning.
2512 * idl/Accessibility_Role.idl:
2513 Extended range of available Accessibility_Role values.
2515 * cspi/spi_accessible.c:
2516 Re-ordered role names.
2518 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2520 * idl/Accessibility_Value.idl:
2521 Revert use of union back to CORBA_double, since the double type is
2522 more efficient and can contain the other types without loss of
2525 * idl/Accessibility_Accessible.idl:
2526 Added method Accessibility:Accessible:getRoleName, to complement
2527 Accessibility:Accessible:getRole.
2529 * cspi/spi_accessible.c:
2531 Added C binding for above, Accessible_getRoleName (), and changed
2532 signature of Accessible_getRole () to return an AccessibleRole.
2534 * cspi/spi-roletypes.h:
2535 Changed AccessibleRole_getName to return a char * instead of a
2536 const char *. This method is now at least temporarily deprecated
2537 in favor of asking Accessibles for their RoleNames directly.
2540 Revert to match Accessibility_Value.idl;
2544 Change signature of AccessibleValue methods to use double rather
2548 * cspi/spi_accessible.c:
2549 Changed Accessible_getRole to return an AccessibleRole enum rather
2550 than a UTF-8 string. The UTF-8 string can still be obtained via
2551 AccessibleRole_getName ().
2553 * test/test-simple.c:
2554 Add test_action. Small fixup to match API change to Accessible_getRole.
2557 Bugfix for get_action_from_servant ().
2559 2001-12-11 Michael Meeks <michael@ximian.com>
2561 * libspi/libspi.h: remove registry.h and
2562 desktop.h, deviceeventcontroller.h
2564 * libspi/Makefile.am: remove registry.[ch],
2565 desktop.[ch], deviceeventcontroller.[ch]
2567 * registryd/Makefile.am: add registry.[ch],
2568 desktop.[ch], rename registryd.c to registry-main.c.
2569 add deviceeventcontroller.[ch]
2571 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2574 Replace setenv() call with putenv ().
2576 * libspi/component.c:
2577 Bugfix in AccessibleComponent_getExtents (),
2580 2001-12-11 Michael Meeks <michael@ximian.com>
2582 * libspi/image.c (impl_getImageExtents): impl.
2583 (spi_image_class_init): upd.
2586 (AccessibleImage_getImageDescription): fix daft bug
2589 * test/test-simple.c (global_listener_cb): update
2590 to only quit if not --poke
2591 (main): catch --poke.
2592 (validate_accessible): upd. dumping, call test_image
2595 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
2598 * idl/Accessibility.idl: update all IDL includes.
2600 * idl/*.idl - rename to namespace - this sucks, blame
2601 mjs' bad decision for oafd.
2603 * test/test-simple.c (create_test_window): add more tests.
2604 (create_tree): split this out.
2605 (validate_accessible): bugfix.
2607 2001-12-11 Michael Meeks <michael@ximian.com>
2609 * cspi/bonobo/cspi-bonobo-listener.c:
2610 (cspi_kestroke_listener_unref),
2611 (cspi_event_listener_unref): impl. undoing previous
2612 homenous environment - for Bill.
2614 * cspi/spi_table.c (long_seq_to_array): use
2617 * cspi/spi_main.c: split out all bonoboish bits into
2620 * cspi/spi-impl.h: upd. typedefs.
2622 * cspi/spi_registry.c: update to lowlevel API,
2623 return booleans to indicate success in some places.
2625 * cspi/spi_event.c: update to lowlevel API.
2627 * cspi/bonobo/Makefile.am: add.
2629 * cspi/bonobo/cspi-lowlevel.h: add
2631 * cspi/bonobo/cspi-bonobo.c: add
2633 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
2635 * cspi/Makefile.am: remove spi-listener-impl.[ch],
2636 (SUBDIRS): add bonobo, link in the libs.
2638 * cspi/spi-util.c: kill this file.
2640 * TODO: merge in my bits.
2642 2001-12-11 Michael Meeks <michael@ximian.com>
2644 * test/test-simple.c (test_value, test_table, main):
2645 remove unused variables causing warnings.
2647 * configure.in: cleanup checks - require gail.
2649 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2652 Changed Value interface to use SValue (scalars) rather than
2653 assuming all values are floats. This allows floats, doubles,
2654 longs, shorts, and unsigned values to be manipulated.
2655 Introduced Accessibility:SValue union.
2658 Updated to use new API above, and to work correctly with GValues
2659 of different types in AtkValue.
2662 Updated to use new API above. cspi's API is as yet unchanged.
2665 Updated the Value revision action item.
2667 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2669 * test/test-simple.c:
2670 Added test_table (GtkTreeView widget in test window to follow).
2671 Un-commented test_value, added GtkRange widget.
2672 Added GtkTreeView widget with GtkListStore. It passes regression
2673 test but leaks one SPI object for some reason.
2676 Fixed bug in impl__set_currentValue.
2678 2001-12-10 Michael Meeks <michael@ximian.com>
2680 * cspi/spi_text.c: audit for exception handling,
2681 tolerating NULL object references safely etc.
2683 * cspi/spi_value.c: ditto.
2685 * cspi/spi_table.c (AccessibleTable_getSummary),
2686 (AccessibleTable_getAccessibleAt),
2687 (AccessibleTable_getRowHeader),
2688 (AccessibleTable_getColumnHeader),
2689 (AccessibleTable_getCaption): fix bugs hidden by
2691 (long_seq_to_array): impl.
2692 (AccessibleTable_getSelectedRows),
2693 (AccessibleTable_getSelectedColumns): use it.
2695 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2698 Added a TODO list (rough and short for now).
2700 * cspi/spi_hyperlink.c:
2701 * cspi/spi_hypertext.c:
2702 Fixed macro name typos, and remove use of obsolete macro in
2703 AccessibleHyperlink_getLink.
2705 * cspi/spi_action.c:
2706 * cspi/spi_accessible.c:
2707 * cspi/spi_application.c:
2708 * cspi/spi_component.c:
2709 * cspi/spi_selection.c:
2712 Documentation fixes (removed return values from ref/unref methods).
2714 2001-12-10 Michael Meeks <michael@ximian.com>
2716 * cspi/spi_action.c: audit for exception handling,
2717 tolerating NULL object references safely etc.
2719 * cspi/spi_accessible.c: ditto.
2721 * cspi/spi_component.c: ditto.
2723 * cspi/spi_editabletext.c: ditto.
2725 * cspi/spi_hyperlink.c: ditto.
2727 * cspi/spi_hypertext.c: ditto.
2729 * cspi/spi_image.c: ditto.
2731 * cspi/spi_selection.c: ditto.
2733 2001-12-10 Michael Meeks <michael@ximian.com>
2735 * configure.in: use cspi/libspi.pc.in instead.
2737 * Makefile.am (pkgconfig_DATA): upd. to match.
2739 * test/simple-at.c (report_focus_event): kill hacks around
2740 bad return values, use putenv not setenv
2742 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
2743 fire ChildGone - I killed it.
2745 * libspi/component.c
2746 (impl_accessibility_component_get_extents): remove
2749 * idl/Accessible.idl: kill ChildGone exception.
2751 * cspi/*.[ch]: kill int return from ref / unref.
2753 * cspi/spi_main.c (cspi_object_add_check): fold into
2754 (cspi_object_add): here.
2756 * cspi/spi_component.c (AccessibleComponent_getExtents):
2757 handle exceptions elegantly.
2759 * cspi/spi-private.h (cspi_check_ev_return),
2760 (cspi_return_if_fail): impl.
2762 * cspi/spi_accessible.c: use extensively.
2763 (AccessibleStateSet_equals): add direct compare check.
2765 * cspi/spi_selection.c: tolerate NULL objs, and check
2766 exceptions before return.
2768 * cspi/spi-util.c (cspi_warn_ev): rename to
2769 (cspi_check_ev): this & don't pass ev in; no point.
2771 2001-12-10 Michael Meeks <michael@ximian.com>
2773 * test/test-simple.c: use putenv not setenv
2774 (get_environment_vars): more chatty if you're not using
2777 * test/simple-at.c: do the setenv so more people see the
2780 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2782 * libspi/registry.c:
2783 Changed check of CORBA_environment on notification to be a warning
2784 instead of an error for the moment, since we can recover from this
2785 error when caused by a queued notification from a dead app.
2788 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
2789 used by all current implementors of AtkValue), and coerce to
2790 CORBA_float. (Proper general case fix may require change to Value.idl).
2792 2001-12-09 Bill Haneman <bill.haneman@sun.com>
2796 * cspi/spi_accessible.c:
2797 Documentation fixes: added user_data params to documentation for
2798 listeners and callbacks.
2800 * cspi/spi_accessible.c:
2801 Changed AccessibleStateSet_compare to return a
2802 StateSet rather than return the difference set into a third parameter.
2805 2001-12-09 Bill Haneman <bill.haneman@sun.com>
2808 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
2809 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
2813 Remove subdirectory po from SUBDIRS for now.
2815 * at-bridge/bridge.c:
2816 Beefed up a couple of debug printouts.
2817 One-line fix for signal notification name formatting.
2819 * libspi/accessible.c:
2820 Added assertion to spi_accessible_new ().
2822 * libspi/application.c:
2823 Put #ifdef qualifiers around a printf.
2826 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
2828 * registryd/Makefile.am:
2830 Replaces use of XML_I18N_MERGE_SERVER_RULE with
2831 INTLTOOL_SERVER_RULE macro.
2834 Added an event listener for several ATK signals, for
2835 testing and debugging. Removed a few g_warnings.
2836 Added test output if focussed item implements the Value interface.
2838 * test/test-simple.c:
2839 Added test_value () function (known not to pass at the moment, so
2840 not actually called yet.
2842 2001-12-08 Michael Meeks <michael@ximian.com>
2844 * at-bridge/bridge.c (bridge_focus_tracker),
2845 (emit_eventv): fix the same ref. leak.
2846 (register_atk_event_listeners): don't leak.
2848 * cspi/spi-listener-impl.c (cspi_event): more
2849 protection from client code.
2851 * test/test-simple.c (test_desktop): unref the app.
2853 * test/Makefile.am: upd. TESTS.
2855 * at-bridge/bridge.c (bridge_exit_func): release the registry.
2857 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
2859 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
2861 * cspi/spi_registry.c: constify in strings.
2862 (deregisterGlobalEventListenerAll): don't release the ref.
2864 * cspi/spi.h: start removing redundant / conflicting
2865 gtkdoc comments, making the API readable at a glance :-)
2867 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
2869 * test/keysynth-demo.c (keysynth_exit, main): upd.
2871 * test/simple-at.c (main, simple_at_exit): upd.
2873 * test/test-simple.c (unutterable_horror): kill.
2874 (utterable_normal_derefs): kill.
2875 (main): upd & do a setenv before gtk_init, so that we
2876 can use memprof - and to save the pain of remembering
2877 this, if we're running under memprof - don't exit.
2879 * cspi/spi_main.c (SPI_exit): return exit status
2881 (SPI_event_quit): impl.
2882 (SPI_event_main): simplify.
2883 (cspi_is_gnome_app): kill.
2884 (SPI_init): kill isGNOMEapp arg.
2886 * at-bridge/bridge.c (register_atk_event_listeners):
2887 re-instate the unref.
2888 (bridge_exit_func): don't re-activate the registry,
2889 protect vs. theoretical re-entry, use the
2890 AT_BRIDGE_SHUTDOWN env. var to determine whether to
2891 assert a clean shutdown - for regression tests.
2893 2001-12-08 Abel Cheung <maddog@linux.org.hk>
2895 * configure.in: Comment out dummy i18n support for now,
2896 otherwise it fails to build.
2897 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
2898 EXTRA_DIST. They are missing in tarball.
2900 2001-12-07 Michael Meeks <michael@ximian.com>
2902 * util/magnifier.c: kill bonobo activation reg. race.
2904 * libspi/component.c
2905 (impl_accessibility_component_get_extents): make it match
2908 * libspi/registry.c (_registry_notify_listeners):
2909 re-remove X headers & reconcile conflicts.
2910 (spi_listener_struct_free): bad conflict resolve.
2911 (impl_accessibility_registry_register_application):
2912 more bad merging fixed.
2913 (impl_accessibility_registry_deregister_application): ditto.
2914 (spi_registry_new): ditto.
2915 (spi_registry_init): don't have an applications field.
2917 [ merge fixups2 branch to here ]
2918 2001-12-07 Michael Meeks <michael@ximian.com>
2920 * test/simple-at.c (report_focus_event),
2921 (report_focussed_accessible): remove g_warning debug.
2923 2001-12-07 Michael Meeks <michael@ximian.com>
2925 * test/test-simple.c (validate_tree): comment out some checks.
2926 (test_desktop): app now not registered idly - horay.
2928 2001-12-07 Michael Meeks <michael@ximian.com>
2930 * cspi/spi_registry.c
2931 (registerAccessibleKeystrokeListener): clean, stop it leaking
2932 great swathes of memory, and device event controller references.
2933 ensure we always pass valid sequences.
2934 (deregisterAccessibleKeystrokeListener): ditto.
2935 (generateKeyEvent): upd.
2937 * at-bridge/bridge.c (bridge_key_listener): handle
2938 registry dead exception gracefully.
2939 (bridge_focus_tracker, emit_eventv): free ev.
2941 * test/simple-at.c (report_focus_event): fix polarity.
2943 * libspi/application.c (notify_listeners): kill the ev
2944 argument, and make sure we init the ev we use.
2945 (spi_application_object_event_listener): split out a chunk
2946 (get_atk_object_ref): here & fixup.
2947 (reverse_lookup_name_for_toolkit_event): make const.
2948 (spi_application_toolkit_event_listener): fixup, kill leaks
2951 * at-bridge/bridge.c (register_atk_event_listeners):
2952 don't unref the noop object - causes grief.
2954 * libspi/registry.c: remove the X headers.
2955 turn off the debug churn.
2957 * libspi/accessible.c (spi_accessible_new_return): only
2958 release the ref if we are supposed to [doh]
2960 * test/simple-at.c (report_button_press, report_focus_event):
2961 guard vs. unexpected exit.
2963 * at-bridge/bridge.c (gtk_module_init): prune printf.
2964 (bridge_exit_func): fix app unref.
2966 * libspi/Makefile.am: don't install registry or desktop.h
2968 * libspi/*.h: update includes.
2970 * libspi/application.h: don't include ourself, or
2971 other redundant headers.
2973 2001-12-06 Michael Meeks <michael@ximian.com>
2975 * libspi/accessible.c
2976 (get_accessible_from_servant): impl.
2977 Upd. all CORBA impl.s to use it killing cut and paste.
2979 * cspi/spi_main.c (cspi_cleanup): guard vs. double
2981 (SPI_init): register atexit cleanup handler here.
2983 2001-12-06 Michael Meeks <michael@ximian.com>
2985 * at-bridge/bridge.c (gtk_module_init): g_error on
2986 activation exception
2988 2001-12-06 Michael Meeks <michael@ximian.com>
2990 * at-bridge/bridge.c (gtk_module_init): some sort of
2991 confusing merge clash - reverted.
2992 (bridge_idle_init): ditto.
2994 * test/test-simple.c (main, utterable_normal_derefs):
2995 merge from Bill - somehow not committed.
2997 2001-12-06 Michael Meeks <michael@ximian.com>
2999 * libspi/value.c (spi_value_class_init): upd.
3000 (spi_value_finalize): kill.
3002 * libspi/table.c (spi_table_finalize): kill.
3003 (spi_table_interface_new): upd.
3004 (spi_table_class_init): upd.
3005 (get_table_from_servant): impl.
3006 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3008 * libspi/selection.c (spi_selection_finalize): kill.
3009 (spi_selection_interface_new): upd.
3010 (spi_selection_class_init): upd.
3011 (get_selection_from_servant): impl.
3012 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3014 * libspi/relation.c (spi_relation_finalize): kill.
3015 (spi_relation_class_init, spi_relation_new): upd
3017 * libspi/image.c (spi_image_finalize): kill.
3018 (spi_image_class_init): upd.
3019 (spi_image_interface_new): upd.
3020 (get_image_from_servant): impl.
3021 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3023 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3024 (spi_hyperlink_finalize): kill.
3025 (spi_hyperlink_new): upd.
3026 (get_hyperlink_from_servant): impl.
3027 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3029 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3030 (spi_hypertext_finalize): kill.
3031 (spi_hypertext_class_init): upd.
3032 (get_hypertext_from_servant): impl.
3033 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3035 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3036 (spi_editable_text_interface_new): upd.
3037 (get_editable_text_from_servant): impl.
3038 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3040 * libspi/text.c (get_text_from_servant): impl.
3041 All impls - update to use it killing more cut and paste,
3042 also fix bad string returns on duff args ( a somewhat
3043 impossible case to handle - but hey ).
3044 (spi_text_construct): impl.
3045 (spi_text_interface_new): upd.
3046 (spi_text_object_finalize): kill.
3048 * libspi/component.c
3049 (accessibility_component_object_finalize): kill.
3050 (spi_component_class_init): upd.
3051 (get_component_from_servant): impl. helper to kill cut & paste.
3052 (impl_accessibility_component_contains):
3053 (impl_accessibility_component_get_accessible_at_point):
3054 (impl_accessibility_component_get_position):
3055 (impl_accessibility_component_get_extents):
3056 (impl_accessibility_component_get_mdi_z_order):
3057 (impl_accessibility_component_get_layer):
3058 (spi_component_interface_new): upd.
3060 * libspi/action.c (spi_action_finalize): kill.
3061 (spi_action_class_init): upd. inherit from SpiObject.
3062 (spi_action_interface_new): upd.
3063 (get_action_from_servant): impl. helper to reduce cut & paste.
3064 (impl_getKeyBinding, impl_getName, impl_doAction),
3065 (impl_getDescription): Use it everywhere.
3067 * cspi/spi_main.c (get_live_refs): a pointer hash.
3068 (spi_object_hash, spi_object_equal): comment out.
3069 There are issues with CORBA object hashing that need
3072 * libspi/application.c (spi_application_init),
3073 (spi_application_new): upd.
3075 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3076 (spi_accessible_class_init): upd.
3077 s/accessible/object/ in epv methods.
3079 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3081 * at-bridge/bridge.c:
3082 Reorder the bridge initialization into the bridge gtk_module_init,
3083 an immediate call to bridge_register_app, and an idle_add for
3084 register_atk_event_listeners (the only code that *must* wait until
3085 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3086 the activation, creates the application's Accessible object, and
3087 queues the bridge_idle_init function. Restored call to
3088 Accessibility_Registry_deregisterApplication().
3089 Prior to making this call we obtain a new reference to the
3090 registry, which is a temporary hack that helps us handle apps that
3091 shut down the bonobo mainloop before we get there.
3093 * libspi/registry.c:
3094 Fix string leakage in debug block, and don't segv if a an app
3095 dies before its event notifications have been propagated.
3098 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3099 as stopgap measure until we get proper exception handling when
3100 objects die during or before interrogation.
3104 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3105 Also changed default value of is_gnome_app to TRUE.
3108 * test/keysynth-demo.c:
3109 Changed use of SPI_init and SPI_event_main to reflect API change above.
3112 Made report_focus_event check the warning value from getName
3113 before reporting on focussed accessible; simplifies handling of
3114 notifications from dead objects.
3116 * test/test-simple.c: (Changes not in this patch since source is
3119 2001-12-05 Michael Meeks <michael@ximian.com>
3121 * registryd/registryd.c (main): protect against
3122 bonobo-activation startup race condition.
3124 * cspi/spi_main.c (cspi_object_add_check): cope
3125 with the exception elegantly.
3127 * idl/Accessible.idl: decl. ChildGone
3129 * libspi/desktop.c (spi_desktop_dispose): impl.
3130 (spi_desktop_class_init): upd.
3131 (spi_desktop_add_application),
3132 (spi_desktop_remove_application),
3133 (abnormal_application_termination): impl.
3134 (impl_desktop_get_child_at_index): re-impl.
3137 (impl_accessibility_registry_deregister_application),
3138 (impl_accessibility_registry_register_application):
3139 kill excessive debug clutter.
3141 * test/test-simple.c (test_misc): test some NULL
3142 tolerance. (main): upd.
3144 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3145 implements no interfaces - so let's not crash.
3147 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3149 * libspi/accessible.c (spi_accessible_new_return): impl.
3150 helper to calm the cut and paste, to cope with
3151 NULL AtkObjects effectively and efficiently, and to kill
3152 the referencing bugs.
3154 * libspi/table.c (impl_getAccessibleAt),
3155 (impl_getRowHeader, impl_getColumnHeader): upd.
3157 * libspi/hyperlink.c (impl_getObject): upd.
3159 * libspi/accessible.c
3160 (impl_accessibility_accessible_get_child_at_index): upd.
3162 * libspi/component.c
3163 (impl_accessibility_component_get_accessible_at_point): upd.
3165 * test/test-simple.c (test_editable_text, test_text): impl.
3168 * cspi/spi_editabletext.c
3169 (AccessibleEditableText_insertText): constify.
3171 * test/test-simple.c (focus_me): make more robust.
3173 * libspi/accessible.c: remove some printfs in methods that
3174 we test and work fine, so we can get a clean tree dump.
3176 * test/test-simple.c (validate_accessible),
3177 (validate_tree): make tree dumping pretty too.
3179 * at-bridge/bridge.c (bridge_signal_listener): upd. so
3180 it builds without debug on.
3182 * test/test-simple.c (validate_accessible): fix the most
3185 * cspi/spi_main.c (spi_object_release): leave the nicely
3186 blanked memory around if in debug mode.
3188 * cspi/spi-listener-impl.c (cspi_event): use add_check.
3190 [committed to fixups2]
3191 2001-12-05 Michael Meeks <michael@ximian.com>
3193 * libspi/editabletext.c
3194 (spi_editable_text_class_init): g_type_class_peek_parent,
3195 not interface peek - so we finalize cleanly.
3197 * libspi/accessible.c (spi_accessible_new): kill debug.
3199 * test/test-simple.c (validate_accessible): fix ref.
3200 leak, print strings before freeing them; sigh, comment a
3201 chunk out due to strangeness.
3202 (validate_tree): unref the child after use.
3204 * cspi/spi_component.c (AccessibleComponent_getLayer):
3205 add missing break statement, switch on zlayer not the
3206 uninitialized retval.
3208 * cspi/spi_main.c (cspi_object_add): add assert, local ref
3209 before (possibly re-entering) remote unref.
3211 * test/simple-at.c (main): unref the desktop.
3213 * cspi/spi_accessible.c (cspi_accessible_is_a): move
3216 * cspi/spi_main.c (cspi_accessible_is_a): here to
3217 isolate bonobo API usage more.
3219 * libspi/registry.c (impl_accessibility_registry_register_application):
3220 prune bogus comment.
3222 2001-12-04 Michael Meeks <michael@ximian.com>
3224 * test/test-simple.c (validate_tree): upd.
3225 IndexInParent check to make it more lucid.
3226 (validate_accessible): dump the tree.
3228 * libspi/accessible.c (de_register_public_ref),
3229 (get_public_refs): impl.
3230 (spi_accessible_new): make more efficient & intuitive.
3231 Now IndexInParent check works.
3233 2001-12-04 Michael Meeks <michael@ximian.com>
3235 * cspi/spi-util.h: remove.
3237 * cspi/spi.h: move SPI_freeString here
3239 * libspi/component.c (impl_accessibility_component_get_layer):
3241 (impl_accessibility_component_get_mdi_z_order): ditto,
3242 return -1 on error - is this ok ?
3244 * test/test-simple.c (test_application): impl.
3246 * cspi/spi_accessible.c (Accessible_getApplication),
3247 (Accessible_isApplication): impl.
3249 * libspi/registry.c (spi_listener_struct_free): release
3250 the CORBA reference too.
3252 * libspi/accessible.c
3253 (impl_accessibility_accessible_get_parent): fix ref leak.
3255 * libspi/registry.c (spi_registry_new): make the registry
3256 immortal - we don't want it to go away ever.
3258 * libspi/application.c
3259 (spi_accessible_application_finalize): impl. cleanup.
3261 * cspi/spi_registry.c
3262 (deregisterGlobalEventListenerAll),
3263 (deregisterGlobalEventListener),
3264 (deregisterAccessibleKeystrokeListener): fix ref leak.
3266 * cspi/spi_main.c (SPI_init): remove redundant ref.
3268 * test/test-simple.c (unutterable_horror): impl. to force a
3273 (impl_accessibility_registry_deregister_application): release
3274 the application when we de-register it.
3276 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
3277 until we have the infastructure to get it right.
3279 2001-12-03 Michael Meeks <michael@ximian.com>
3281 * libspi/Makefile.am: only build eventlistener.[ch]
3283 * libspi/accessible.c
3284 (impl_accessibility_accessible_get_child_at_index): don't leak.
3286 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
3287 before we hit the idle handler.
3289 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
3290 debugging than exit.
3292 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
3294 * libspi/listener.c (impl_notify_event): check source
3295 not NIL before unref.
3297 * libspi/registry.c (impl_registry_notify_event): ditto.
3299 * libspi/eventlistener.c
3300 (impl_accessible_event_notify_event): unref the source.
3302 * libspi/accessibleeventlistener.c
3303 (impl_accessible_event_notify_event): unref the source.
3305 * idl/Event.idl: remove 'hash_id' attribute - of no
3308 * libspi/application.c (notify_listeners): upd list
3310 (spi_application_object_event_listener),
3311 (spi_application_toolkit_event_listener): upd to do correct
3315 (_registry_notify_listeners): update.
3316 (parse_event_type): this method also leaks like a sieve.
3317 (impl_accessibility_registry_deregister_global_event_listener):
3318 fix ETYPE_WINDOW case.
3320 * libspi/application.c
3321 (impl_accessibility_application_register_object_event_listener):
3324 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
3326 * libspi/hypertext.c (impl_getLink): ditto.
3328 * cspi/spi_main.c (cspi_object_add): remove
3329 bogus CORBA_Object_duplicate.
3331 * cspi/spi-listener-impl.c (cspi_event): dup/ref
3334 * cspi/spi_accessible.c
3335 (Accessible_getRelationSet): fix leak / referencing issue.
3337 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
3338 (cspi_object_add, cspi_object_unref): upd.
3339 (spi_object_release, get_live_refs): impl.
3340 (cspi_cleanup): simplify.
3342 * *.[ch]: s/boolean/SpiBoolean/
3344 * cspi/spi_accessible.c (role_names): actualy order so it
3345 corresponds with the enum !
3347 * test/test-simple.c (test_roles): check some role strings
3348 vs. enums to detect offset errors.
3350 2001-12-01 Michael Meeks <michael@ximian.com>
3352 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
3354 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
3356 (Accessible_getChildAtIndex): use cspi_add_check so we
3357 check the ev before using a (possibly) invalid value.
3359 * libspi/accessible.c
3360 (impl_accessibility_accessible_get_parent): don't segv
3363 * at-bridge/bridge.c (gtk_module_init): upd.
3364 (bridge_property_event_listener): don't leak strings
3366 (bridge_state_event_listener),
3367 (bridge_property_event_listener): don't use a static
3368 buffer in case of recursive event emission &
3369 re-enterancy - split out the swathe of cut and paste
3371 (emit_eventv): and fix 2 ref leaks here & comply to the
3373 (bridge_register_app): rename to
3374 (bridge_idle_init): this and kill arg parsing, split
3375 various inits & bonobo-activation registration to module
3376 init time, kill referencing error.
3377 (bridge_exit_func): fix the same leak.
3378 (bridge_focus_tracker): don't leak event structures
3380 (bridge_signal_listener): more leakage and cut & paste
3382 (bridge_key_listener): return the result - FIXME is
3383 this polarity correct ?
3384 (accessibility_keystroke_from_atk_key_event): rename
3385 (accessibility_init_keystroke_from_atk_key_event): and stop
3387 (gtk_module_init): return a value - not that it is checked by
3389 (bridge_key_listener): register my horror at casting between
3390 IDL defined structs.
3391 (bridge_get_registry): kill - not used.
3393 * cspi/spi_accessible.c (Accessible_getRole): make return const.
3395 * test/test-simple.c (test_roles): impl.
3396 (test_desktop, validate_accessible, validate_tree): impl.
3398 * cspi/spi_accessible.c (role_names): fixup bogus
3399 MAX_ROLES setup, make constants const for efficient linkage
3400 (AccessibleRole_getName): conform to coding style, make
3403 2001-11-30 Michael Meeks <michael@ximian.com>
3405 * cspi/spi.h: add missing prototype.
3407 * libspi/registry.c (spi_listener_struct_new): fix sig.
3409 * test/Makefile.am: add test-simple
3411 * test/test-simple.c: add
3413 * test/test.sh: add.
3415 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
3417 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
3418 do it straight - since otherwise we often get an activation race.
3420 [ work before Bill duplicated a chunk of it ... ]
3421 2001-11-30 Michael Meeks <michael@ximian.com>
3423 * libspi/keystrokelistener.c
3424 (spi_keystroke_listener_class_init): fixup arg
3427 * libspi/eventlistener.c
3428 (spi_event_listener_class_init): ditto.
3430 * tests/test.sh: add.
3432 * cspi/spi-listener-impl.h: update macros.
3434 * cspi/spi-listener-impl.c
3435 (cspi_event_listener_remove_callback): add
3436 correct pre-conditions.
3438 * cspi/spi_main.c (SPI_exit): guard vs. double
3439 exits, exit the mainloop nicely.
3440 (SPI_event_main): make more sense.
3441 (SPI_init): move the atexit evilness here so we
3442 always do it (yuck).
3443 (SPI_event_main): upd.
3445 * test/simple-at.c: update for listener changes.
3447 * registryd/registryd.c (main): prune kruft.
3449 * libspi/libspi.h: upd.
3451 * libspi/eventlistener.[ch]: rename broken macros.
3453 * libspi/accessibleeventlistener.[ch]: remove.
3455 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
3457 * test/test-simple.c: Add - automated tests.
3459 * cspi/spi-listener-impl.c (cspi_event),
3460 (cspi_key_event): add user_data to invoke.
3461 (cspi_keystroke_listener_finalize): impl.
3462 (cspi_keystroke_listener_class_init): upd.
3465 (createAccessibleEventListener),
3466 (AccessibleEventListener_addCallback),
3467 (createAccessibleKeystrokeListener),
3468 (AccessibleKeystrokeListener_addCallback): upd.
3470 * libspi/deviceeventcontroller.c
3471 (spi_device_event_controller_check_key_event): add public proto.
3474 (impl_accessibility_registry_deregister_global_event_listener):
3475 always init listeners.
3476 (_registry_notify_listeners): yes it is.
3478 * cspi/spi-listener-impl.c (cspi_key_event):
3480 (cspi_event_listener_finalize): impl.
3481 (cspi_event_listener_class_init): hook up.
3482 (event_handler_new, event_handler_free),
3483 (event_list_remove_by_callback): impl.
3484 (cspi_event_listener_remove_callback),
3485 (cspi_keystroke_listener_remove_callback),
3486 (cspi_keystroke_listener_add_callback),
3487 (cspi_event_listener_add_callback): upd.
3489 * libspi/keystrokelistener.c
3490 (keystroke_listener_object_finalize): kill
3491 (spi_keystroke_listener_class_init): upd.
3492 (spi_keystroke_listener_add_callback),
3493 (spi_keystroke_listener_remove_callback): kill,
3495 (impl_key_event): prune drasticaly.
3497 * libspi/eventlistener.c
3498 (spi_event_listener_add_callback),
3499 (spi_event_listener_remove_callback): kill, use
3501 (impl_accessible_event_notify_event): upd.
3502 (spi_event_listener_object_finalize): remove.
3504 * libspi/Makefile.am: use eventlistener.[ch]
3506 2001-12-04 Bill Haneman <bill.haneman@sun.com>
3508 * libspi/registry.c (_registry_notify_listeners):
3509 Changed listener loop iteration to use preferred convention.
3510 Got rid of string memory leaks caused be calling g_strconcat
3511 inside function calls.
3513 * libspi/registry.c (parse_event_type):
3514 Stopped g_strconcat memory leaks, free the g_strsplit return,
3515 g_strdup the split pieces when used, etc.
3517 2001-12-04 Bill Haneman <bill.haneman@sun.com>
3520 Change method 'compare' to return a 'difference set' rather than
3521 taking a StateSet as an out parameter (more Java-friendly).
3523 * idl/Accessible.idl:
3524 Added CORBA struct 'BoundingBox', to faciliate API changes below:
3526 * idl/Component.idl:
3528 Changed methods 'getExtents' and 'getImageExtents' in these
3529 interfaces to return a BoundingBox structure.
3530 (getPosition and getSize are redundant and possibly should be
3531 removed, rather than creating a corresponding Point struct.)
3533 * cspi/spi_component.c:
3534 Modify implementation of getExtents to reflect the above IDL
3539 Add (missing) AccessibleImage_getExtents () API.
3541 * docs/reference/cspi/at-spi-cspi-sections.txt:
3542 Added AccessibleImage_getImageExtents () to docs.
3544 2001-12-03 Bill Haneman <bill.haneman@sun.com>
3546 * idl/Component.idl:
3547 Added two methods, getLayer () and getMDIZOrder (), to reflect
3548 the new ATK methods atk_object_get_layer and
3549 atk_object_get_mdi_z_order. (Which arguably should be part of the
3550 AtkComponent API and AtkObject). Also added an enum,
3551 ComponentLayer, for the first method's return value.
3553 * libspi/component.c:
3554 Added implementations for these methods.
3556 * cspi/spi_component.c:
3558 Added cspi binding methods for above,
3559 AccessibleComponent_getLayer() and
3560 AccessibleComponent_getMDIZOrder().
3561 Added cspi enum 'AccessibleComponentLayer'.
3563 * docs/reference/cspi/at-spi-cspi-sections.txt:
3564 Added above methods to docs.
3568 Changed typedef for 'boolean' type (and all references to it) to
3569 SPIBoolean, to avoid keyword clashes with C++.
3572 Changed usages of 'boolean' to SPIBoolean.
3574 * test/keysynth-demo.c:
3575 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
3576 app), except where SPIBoolean is required by the callbacks API.
3578 2001-12-02 Bill Haneman <bill.haneman@sun.com>
3580 * cspi/spi_registry.c:
3581 Removed obsolete X event loop for passive keygrabs (which now
3584 * registryd/registryd.c:
3585 Removed unnecessary call to gdk_init() [cruft]. This also allows
3586 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
3589 2001-11-28 Bill Haneman <bill.haneman@sun.com>
3591 * docs/reference/cspi:
3592 Included docs for SPI_freeString in generated documentation.
3595 Renamed spi_freeString to SPI_freeString, for consistency. Added
3596 documentation for this function.
3599 Renamed spi_freeString to SPI_freeString, for consistency.
3600 Removed obsolete method declaration string_from_corba_string.
3602 * test/keysynth-demo.c:
3603 Small tweak to comments.
3606 Stopped leaking the strings returned from CSPI.
3608 2001-11-28 Bill Haneman <bill.haneman@sun.com>
3610 Merged Michael's branch (see his ChangeLog entries below).
3612 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
3613 bridge is alive, release on exit.
3615 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
3616 Fix type check macro.
3619 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
3622 Added is_gnome_app static, and method cspi_is_gnome_app(),
3623 so we can call the appropriate shutdown routine at exit in SPI_exit.
3625 * cspi/spi_main.c (cspi_object_ref):
3626 Duplicate the corba object passed in, since we're keeping it around.
3628 * cspi/SPI_exit.c, cspi_cleanup:
3629 Moved the releasing of the live refs to its own function, so we
3630 can put it in g_atexit (). Call the appropriate shutdown API
3631 depending on whethe calling client is a gnome app or not
3632 (bonobo_main_quit or CORBA_ORB_shutdown).
3634 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
3635 Unref the listener when this method is called, after
3636 deregistration. Updated the API docs to note this behavior.
3638 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
3639 Bugfixes: Ref the bonobo object when returning a parent or child
3640 reference, or an AccessibleRelation. Generally made sure
3641 BonoboObject refcount is incremented whenever we return an
3644 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
3645 Fixed typo/bug in signal declaration.
3647 * libspi/accessibleeventlistener.h:
3650 * libspi/application.c (spi_application_new):
3651 Fixed leak in initialization.
3654 Remembered to increment bonobo-object refcount when returning
3655 children (applications) from desktop object.
3656 Added (empty) finalize method.
3658 * libspi/deviceeventcontroller.c:
3659 Hold a ref to listeners inside DEControllerKeyListeners.
3660 Added dec_key_listener_free() method. Use prepend instead of
3661 append in key_listener list. Fixed some refcount madness and
3662 leaks in the listener registration/deregistration - deregistration
3663 now calls dec_key_listener_free() on listeners, and on the
3664 temporarily constructed dec_key_listener() used to perform the search/match.
3666 * libspi/hypertext.c (spi_hypertest_finalize):
3667 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
3668 class. Also fixed spi_hypertext_interface_new() and
3669 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
3671 * libspi/hypertext.h:
3672 Removed pointless and duplicate AtkObject pointer from
3675 * libspi/keystrokelistener.c:
3676 Fixed incorrect type of keystroke_listener_parent_class,
3677 renamed keystroke_listener_object_finalize to
3678 spi_keystroke_listener_object_finalize.
3679 Fixed typo in signal declaration
3680 (spi_keystroke_listener_class_init).
3682 * libspi/registry.c:
3683 Added funcsions spi_listener_struct_new() and
3684 spi_listener_struct_free() to help with memory management issues.
3685 We also now use these methods instead of gnew + poking stuff into
3686 the struct, and to decrement listener counts/free the listeners
3687 when deregistering them.
3688 Fix more refcount bugs in getDesktop() and
3689 getDeviceEventController().
3692 De-ref the desktop after enumerating the applications. Explicitly
3693 decrement the refcounts on the created listeners on exit (using
3694 _unref for keystroke listeners, and via the
3695 deregisterGlobalEventListenerAll command for other event
3698 2001-11-27 Michael Meeks <michael@ximian.com>
3700 * cspi/spi-listener.h: fixup enum.
3702 2001-11-27 Michael Meeks <michael@ximian.com>
3704 * cspi/spi-listener-impl.c (cspi_event_listener_new),
3705 (cspi_keystroke_listener_new): Use the cspi variants.
3707 2001-11-26 Michael Meeks <michael@ximian.com>
3709 * test/keysynth-demo.c: fix 2 compile warnings, missing
3712 * test/simple-at.c (report_focussed_accessible),
3713 (report_focus_event, report_button_press),
3714 (check_property_change, is_command_key),
3715 (report_ordinary_key_event, report_command_key_event): upd.
3717 * util/mag_client.h: include pre-requisites.
3719 * libspi/accessibleeventlistener.c
3720 (spi_event_listener_object_finalize): free any lingering
3723 * libspi/keystrokelistener.c
3724 (keystroke_listener_object_finalize): ditto.
3726 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
3727 callbacks, with cspi types.
3729 * cspi/spi_event.c (createAccessibleEventListener): chain to
3730 (AccessibleEventListener_addCallback): here.
3731 (createAccessibleKeystrokeListener): chain to
3732 (AccessibleKeystrokeListener_addCallback): here.
3734 * libspi/keystrokelistener.c
3735 (spi_keystroke_listener_class_init): add signal.
3736 (impl_key_event): emit the event.
3737 (boolean_handled_accumulator): impl.
3738 (marshal_BOOLEAN__POINTER): add, gack.
3740 * libspi/accessibleeventlistener.c
3741 (spi_event_listener_class_init): add signal.
3742 (impl_accessible_event_notify_event): emit the signal &
3743 make the loop efficient.
3744 (spi_event_listener_add_callback): prepend the callback.
3746 * libspi/accessibleeventlistener.h: add an 'event' signal,
3747 decl type on callback.
3749 * libspi/keystrokelistener.h: ditto.
3751 * cspi/spi-listener.h: make methods typesafe and
3752 make them use the new event typedefs.
3754 * test/simple-at.c (report_focussed_accessible):
3755 include mag_client.h
3756 Use *(void *)text_interface not the other thing.
3758 * configure.in: add gtk to registryd bits - since we use
3761 * util/magnifier.c: include libbonobo.h
3763 2001-11-25 Bill Haneman <bill.haneman@sun.com>
3765 * test/keysynth-demo.c:
3766 Turned this into a simple scanning keyboard, to demonstrate the
3767 use of g_timeout_add () as a means of creating timers for
3768 scanning, and the use of GtkStyle for visually indicating when
3769 virtual keyboard elements are selected.
3771 keysynth-demo now listens to any keyboard keys with zero-valued
3772 keycodes (i.e. 'unused' keys) and interprets them as
3775 Reworked the shiftlatch code so that shift-down state isn't held
3776 for long periods (it's only synthesized immediately prior to
3777 the keysynth event it's modifying). Note that shiftlatch in this
3778 demo is a convenience, not intended to take the place of AccessX
3779 which is the better choice for getting 'sticky' modifier keys.
3781 * libspi/deviceeventcontroller.c:
3782 * at-bridge/bridge.c:
3783 * cspi/spi_registry.c:
3784 Removed some debug print stuff, and put other verbosity in #ifdef
3789 Implemented some more of the magnifier IDL for the simple
3790 magnifier: namely, getZoomRegionParams.
3791 Added mag_x and mag_y members to MagnifierData struct, aid of this
3793 Added GtkWindow::realize signal handler to magnifier, to keep it
3794 from receiving keyboard focus from the WM.
3796 2001-11-23 Mark McLoughlin <mark@skynet.ie>
3798 * cspi/spi-private.h: my guess at what michael forgot
3799 before he ran off to NZ :-)
3801 2001-11-23 Michael Meeks <michael@ximian.com>
3803 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
3804 comment out non existant method invoke so we link.
3806 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
3807 use bonobo_exception_get_text for more friendly warnings.
3809 * cspi/spi.c (Obj_Add): move into spi_main & rename
3810 spi_object_add; kill spi.c
3812 * cspi/spi_registry.c
3813 (deregisterGlobalEventListener),
3814 (deregisterGlobalEventListenerAll),
3815 (registerGlobalEventListener): fix exception leaks.
3817 * cspi/spi_main.c (spi_exception): impl. helper, so we
3818 don't leak exceptions.
3820 * cspi/spi_selection.c
3821 (AccessibleSelection_deselectSelectedChild): return the
3824 * cspi/spi_main.c (spi_ev): impl; hack - gack.
3825 (spi_registry): ditto.
3826 (SPI_init): guard against double inits.
3828 * cspi/*.c: use spi_ev (), and spi_registry () where
3829 appropriate - a temporary hack until we have something
3830 better. Use spi_object_add
3832 2001-11-22 Michael Meeks <michael@ximian.com>
3834 * cspi/Makefile.am: re organise, install the headers.
3836 * cspi/*.h: add G_BEGIN/END_DECLS
3838 2001-11-22 Bill Haneman <bill.haneman@sun.com>
3841 Added non-preemptive keylistener for key events with no modifiers
3842 and shift-only modifier.
3844 * libspi/keystrokelistener.c:
3845 Removed some verbose diagnostics printout.
3847 * cspi/spi_registry.c:
3848 Fixed a bug that caused all key listeners to be registered as
3851 * libspi/deviceeventcontroller.c:
3852 Fixed bug that caused XGrabKey (preemptive key grab) to be called
3853 for non-preemptive key masks.
3856 2001-11-22 Bill Haneman <bill.haneman@sun.com>
3858 * docs/reference/idl/at-spi-idl-docs.sgml:
3859 * docs/reference/idl/at-spi-idl-sections.txt:
3860 * docs/reference/idl/at-spi-idl-overrides.txt:
3861 Added missing files.
3863 * docs/reference/Makefile.am:
3864 removed idl from SUBDIRS until we can figure a way to get gtk-doc
3865 to scan the IDL files :-(
3870 Added .cvsignore files.
3872 2001-11-21 Bill Haneman <bill.haneman@sun.com>
3874 * libspi/deviceeventcontroller.c:
3875 * libspi/keystrokelistener.c:
3877 * cspi/spi_registry.c:
3878 Added filters for KeySets, KeyEventSeq, and event types to key
3879 event dispatching, so listeners should only receive those events
3880 that they requested :-)
3882 2001-11-21 Bill Haneman <bill.haneman@sun.com>
3887 * docs/reference:Makefile.am:
3888 * docs/reference/cspi:
3889 * docs/reference/cspi:Makefile.am:
3890 * docs/reference/cspi:tmpl:
3891 * docs/reference/cspi:tmpl:*.sgml:
3892 * docs/reference/idl:
3893 * docs/reference/idl:Makefile.am:
3894 * docs/reference/idl:at-spi-idl-sections.txt:
3895 * docs/reference/idl:at-spi-idl-docs.sgml:
3896 * docs/reference/idl:tmpl:
3897 * docs/reference/idl:tmpl:*.sgml:
3899 Restructured docs directory to allow separate 'reference' docs
3900 section, and forked idl and cspi docs. Added the sgml template
3901 files to CVS. Added the first sections/structural sgml for the
3904 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
3906 * configure.in, libspi/Makefile.am: find libXtst.
3908 2001-11-21 Michael Meeks <michael@ximian.com>
3910 * test/accessx-gui.c: s/spi_value/value/ - doh.
3912 * libspi/base.[ch]: add.
3914 2001-11-18 Bill Haneman <bill.haneman@sun.com>
3916 * idl/Accessible.idl:
3917 * idl/Application.idl:
3920 Started gtk-doc cleanup on IDL.
3922 * libspi/deviceeventcontroller.c:
3923 Added and connected non-preemptive key notification from the
3924 toolkits (in addition to the pre-emptive support from XServer
3925 which we had before, but which causes 'focus flashing'). Filters
3926 are presently limited to key modifiers and global/non-global,
3927 KeySets are presently ignored, as are KeyEvent masks.
3929 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
3930 structs into the persistant structure rather than just storing
3931 pointers to things that might not persist across servant
3934 The XGrabKey call now does async keygrabs, because synchronous
3935 ones were deadlocking with GDK_event code in a very nasty way.
3937 Added boolean to internal method notify_keylisteners, to indicate
3938 whether the event came from the 'toolkit source' or the 'global
3939 (XServer) source' - this is used in the notification process to
3940 determine which listeners to send the event to.
3942 deviceeventcontroller.c is now warning-free.
3944 * libspi/registry.c:
3945 Fixed regression in application de-registration.
3946 Also fixed some really brain-dead weirdness having to do with
3947 event dispatching - event structs are now duplicated before being
3948 re-marshalled in the dispatch to listeners. This also fixes a
3949 Solaris build problem.
3952 2001-11-20 Michael Meeks <michael@ximian.com>
3955 (impl_accessibility_registry_deregister_global_event_listener):
3958 * libspi/deviceeventcontroller.c
3959 (spi_device_event_controller_check_key_event): return
3960 FALSE on no virtual method.
3962 * libspi/*..h: make includes work on a correctly pathed install.
3964 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
3966 * libspi/application.h: kill unused ( and whacked out )
3967 gboolean *spi_application_set_id (AtkObject *app, long id);
3969 2001-11-20 Michael Meeks <michael@ximian.com>
3971 * libspi/*.[ch]: further convert to bonobo's type func
3972 macros, remove redundnant casts etc.
3974 * libspi/text.c s/accessibility_text/spi_text/g,
3975 re-order to de-cruft.
3977 * libspi/hypertext.c: re-order to kill a huge slew
3978 of redundant forward decls.
3980 * libspi/relation.c: ditto.
3982 * libspi/image.c: ditto.
3984 * */.cvsignore: update
3986 2001-11-20 Michael Meeks <michael@ximian.com>
3988 * libspi/deviceeventcontroller.c
3989 (_controller_register_with_devices): use g_getenv,
3990 kill stdlib.h include.
3992 * libspi/keystrokelistener.c
3993 (spi_keystroke_listener_get_type): kill
3994 (spi_keystroke_listener_class_init),
3995 (spi_keystroke_listener_init): rename to this.
3997 * libspi/text.c (impl_getAttributes): fix warning / bug.
3999 * libspi/*.[ch]: more headers, includes and over commenting.
4001 2001-11-20 Michael Meeks <michael@ximian.com>
4003 * libspi/*.[ch]: fixup headers, includes and over commenting.
4005 * libspi/image.c (impl__get_imageDescription): const
4006 correctness warning fix. remove redundant casting.
4008 * libspi/table.c (impl_getRowDescription): ditto.
4009 (impl_getColumnDescription): ditto.
4011 * libspi/libspi.h: add.
4013 2001-11-19 Michael Meeks <michael@ximian.com>
4015 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4017 * libspi/component.c (accessibility_component_get_type):
4018 rename to (spi_component_get_type): and macroify.
4019 (accessibility_component_init): rename to
4020 (spi_component_init): this
4021 (accessibility_component_class_init): rename to
4022 (spi_component_class_init): this
4024 * libspi/action.c (spi_action_get_type): kill, use the macro.
4026 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4029 * libspi/application.c (spi_application_object_event_listener),
4030 (impl_accessibility_application_register_object_event_listener):
4031 warning fixes / const understanding updates.
4033 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4036 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4038 * libspi/spi_accessible.c: Added docs and C bindings for
4039 AccessibleStateSet. (No implementations yet). Documentation
4040 coverage for C bindings now 100%. Made docs for event listeners
4045 boolean notifyListenersSync (in DeviceEventListener listener,
4046 in DeviceEvent event);
4048 oneway void notifyListenersAsync (in DeviceEventListener listener,
4049 in DeviceEvent event);
4051 Added DeviceEventListener and DeviceEvent structs (may deprecate
4052 KeyStroke and KeystrokeListener in favor of this generic
4053 event/listener framework for devices).
4055 * libspi/deviceeventcontroller.c:
4057 Changed some key listener code to take masks, etc., and paved the
4058 way for integration of toolkit/non-preemptive key events. Changed
4059 signatures of some internal methods.
4061 * at-bridge/bridge.c:
4062 Fixed regression connecting to interface signals, apparently
4063 caused by GTK+ changes.
4065 Added an internal bridge_state_listener to deal with
4066 property-change:accessible-state signals.
4068 Changed the key_listeners GList to store structs (including masks,
4069 etc.) instead of just CORBA_Objects (required for full
4070 implementation of key listener API).
4072 Connected the bridge to all currently supported Atk signals.
4073 Events now supported:
4074 object:property-change
4075 object:property-change:accessible-name
4076 object:property-change:accessible-state
4077 object:property-change:accessible-description
4078 object:property-change:accessible-parent
4079 object:property-change:accessible-value
4080 object:property-change:accessible-role
4081 object:property-change:accessible-table-caption
4082 object:property-change:accessible-table-column-description
4083 object:property-change:accessible-table-column-header
4084 object:property-change:accessible-table-row-description
4085 object:property-change:accessible-table-row-header
4086 object:property-change:accessible-table-summary
4087 object:children-changed
4088 object:visible-data-changed
4089 object:selection-changed
4090 object:text-selection-changed
4092 object:text-caret-moved
4094 object:row-reordered
4096 object:column-inserted
4097 object:column-reordered
4098 object:column-deleted
4099 object:model-changed
4101 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4103 * libspi/hyperlink.c,h:
4104 Fixed some broken stuff in hyperlink.
4106 * libspi/relation.h:
4107 * libspi/relation.c:
4108 * cspi/spi_accessible.c:
4109 Initial implementations of AccessibleRelation methods, and docs.
4111 * libspi/accessible.c:
4112 Fixed a bug that caused SEGV if an accessible
4113 object's description is NULL, and a client
4114 requests it. An empty string is now returned.
4116 * cspi/spi_editabletext.c:
4117 * cspi/spi_hypertext.c:
4119 * cspi/spi_hyperlink.c:
4123 Doc coverage now 95%.
4125 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4127 One last namespacing revision:
4128 * libspi/accessibleeventlistener.[ch]:
4129 Renamed SpiAccessibleEventListener to SpiEventListener,
4130 (no need for two namespaces ;-)
4132 And lots of documentation fixes:
4134 * docs/at-spi-docs.sgml:
4135 Fixed 'underscore vs. hyphen' bug that was preventing
4136 the gtk-doc API docs from being automatically generated.
4139 * cspi/spi-listener.h
4141 * cspi/spi_accessible.c
4143 * cspi/spi_application.c
4144 * cspi/spi_component.c
4145 * cspi/spi_editabletext.c
4147 * cspi/spi_hypertext.c
4149 * cspi/spi_registry.c
4150 * cspi/spi_selection.c
4154 * docs/at-spi-docs.sgml
4155 * docs/at-spi-sections.txt
4157 Added and fixed up gtk-doc documentation in cspi.
4159 Interfaces now (fully) documented (subject to revision and enhancement):
4161 Event Listener Support
4163 AccessibleApplication
4167 AccessibleEditableText
4174 AccessibleRelationSet
4179 2001-11-14 Bill Haneman <bill.haneman@sun.com>
4181 * at-bridge/bridge.c:
4182 Initial work for toolkit-level key snooper connection by bridge.
4187 New typedefs and fixes to support new namespacing, and cleaner
4188 separation of cspi bindings from libspi bonobo implementation.
4189 Removed inconsistent and extraneous Spi* namespace prefix that
4190 had crept into cspi headers.
4191 Lots of comment fixes that sed had missed.
4193 * cspi/spi-roletypes.h:
4194 * cspi/spi-statetypes.h:
4195 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
4196 to AccessibleRoleType.
4198 * libspi/accessibleeventlistener.h:
4199 Fixed minor namespacing weirdness.
4201 * libspi/deviceeventcontroller.c:
4202 Reordered some internal API for device listeners.
4203 Changed the key registry final boolean to 'is_system_global'
4204 rather than 'is_synchronous', which is more descriptive of its
4206 Added spi_device_event_controller_new().
4207 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
4209 * libspi/keystrokelistener.[ch]:
4210 Namespaced KeystrokeListener to SpiKeystrokeListener.
4211 Changed uses of keymasks to use SPI_ prefix, and did other
4214 * libspi/keymasks.h:
4215 Namespaced keymask constants with SPI_ prefix.
4217 * libspi/registry.c:
4218 Some warning fixes, and knock-on fixes from namespace changes.
4221 Added rules for accessx-gui test program.
4223 * test/accessx-gui.c:
4224 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
4225 utility. It doesn't actually use at-spi, but it's still cool and
4228 * test/keysynth-demo.c:
4232 Fixes so that these test clients work properly with the namespaced
4233 libraries. (Incompletely tested for technical reasons, fixes may follow)
4236 2001-11-13 Michael Meeks <michael@ximian.com>
4238 * libspi/application.c
4239 (impl_accessibility_application_get_version),
4240 (impl_accessibility_application_get_toolkit_name):
4242 (impl_accessibility_application_set_id),
4243 (impl_accessibility_application_get_id): remove
4244 redundant casting code.
4246 * libspi/action.c (impl_getDescription): fix warnings.
4248 * libspi/accessible.c
4249 (impl_accessibility_accessible_get_parent),
4250 (impl_accessibility_accessible_get_child_at_index),
4251 (impl_accessibility_accessible_get_state),
4252 (impl_accessibility_accessible_get_relation_set):
4253 warning fixes & include action.h
4255 2001-11-13 Michael Meeks <michael@ximian.com>
4257 * *.[ch] fix bits I screwed up:
4259 s/([^ \tb(\*\&\?\",])spi_/\1/g;
4260 s/([^ \tb(\*\&\?\",])Spi/\1/g;
4262 2001-11-13 Michael Meeks <michael@ximian.com>
4264 * *.[ch] Namespace libspi into spi_ and Spi.
4266 2001-13-11 Michael Meeks <michael@ximian.com>
4268 * Makefile.am: dist & install at-spi-1.0.pc
4270 * libspi/Makefile.am: install into at-spi-1.0
4272 * idl/Makefile.am (idldir): install into at-spi-1.0
4274 * at-spi-1.0.pc.in: add.
4276 * configure.in: build it.
4278 2001-11-12 Bill Haneman <bill.haneman@sun.com>
4280 * test/keysynth-demo.c:
4281 Use a 'realize' signal-handler to set the WM properties for
4282 the virtual keyboard, rather than making it a "POPUP" type
4283 override-redirect window (thanks to anders carlsson for that
4286 2001-11-11 Bill Haneman <bill.haneman@sun.com>
4289 * test/keysynth-demo.c:
4290 Added new test of key synthesis, which creates a simple
4291 (mouse-operated) onscreen keyboard. It inserts key events into
4292 the currently-focused window, thus it does not grab keyboard focus
4295 * cspi/spi_registry.c:
4296 Added C binding for AT-SPI generateKeyEvent.
4298 * libspi/deviceeventcontroller.c:
4299 Added call to XFilterEvent so that key listener works with XIM (we
4300 hope). Added event_synth_type to generateKeyEvent, so that we can
4301 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
4302 synthesize a press/release pair for KeySyms.
4304 2001-11-09 Bill Haneman <bill.haneman@sun.com>
4306 * libspi/Makefile.am:
4307 * registryd/Makefile.am:
4308 (temporary) hack to include libXtst in libspi and registryd.
4309 (Needed for keystroke synthesis, see below).
4312 Improved API for registerKeystrokeListener, in accordance with
4313 discussions with Gnopernicus team and X server research.
4315 * libspi/registry.c:
4316 * libspi/deviceeventcontroller.c:
4317 * libspi/accessible.c:
4318 * libspi/keystrokelistener.c:
4319 Changes and fixes to support keylisteners for potentially
4320 consumed key events (that is, 'passive grabs').
4321 Added implementation for generateKeyEvent() [untested].
4324 Changes to registerKeystrokeListener() API, as above.
4325 Added deregisterGlobalEventListenerAll(), and
4326 deregisterKeystrokeListener(), which are needed for clean exit of
4328 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
4329 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
4331 * cspi/spi_registry.c:
4332 Added implementations of function prototypes mentioned above.
4334 * registryd/registryd.c:
4335 Added the key listener event source as a g_timeout(), to allow
4336 receipt of key events that are not caught by GDK (since GDK
4337 doesn't support passive keygrabs, this was necessary).
4340 Changed to attach a keylistener to 'Alt' keys, and
4341 respond to the following keycommands: Alt-M (toggle magnifier);
4342 Alt-F (toggle speech); Alt-Q (quit).
4343 Added an exit routine to deregister the listeners, and a key
4344 listener that prints some key info to the console when a key
4345 matches the listener mask (and is thus received by the listener).
4347 * util/idl/Magnifier.idl:
4348 Changes to magnifier API to support multiple zoom regions,
4349 non-uniform scaling in x and y, markDirty, and a host of other
4350 features that would be useful to magnification.
4353 * util/mag_client.c:
4354 * util/mag_client.h:
4355 * util/mag_control.c:
4357 Source code changes to support the above IDL changes.
4360 As above, and also changes to use a (slower) generic conversion
4361 path for colormap conversions, since the fast RGB conversions have been
4362 reported to fail for 16-bit displays.
4364 2001-10-26 Michael Meeks <michael@ximian.com>
4366 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
4368 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
4370 * at-bridge/Makefile.am: fix LDFLAGS.
4372 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4374 * at-bridge/bridge.c:
4375 Re-worked listeners for toolkit events, now we have signal
4376 and property listeners. Added a private method
4377 register_atk_event_listeners(), which registers with the
4378 various atk and gtk signals we need to monitor in order to emit
4380 Added emission hook for AtkObject:property-change events, to
4381 support the 'property listeners'.
4382 Fixed some alloc()s of Accessibility_Event structs to use CORBA
4385 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
4386 which emit warnings and exit, respectively, if CORBA errors occur
4387 during remote calls, and we now use these methods to check most of
4388 our CORBA calls in the C bindings.
4390 * cspi/spi_accessible.c:
4391 Changed AccessibleSelection_refSelectedChild() to
4392 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
4393 now increment refcounts.
4395 * cspi/spi_component.c:
4396 Fixed some long pointer casts (dangerous!) to pass pointers to
4397 CORBA_longs of the proper type to the CORBA stubs, and copy the
4398 data into the longs that were passed into the C bindings code.
4400 * at-bridge/bridge.c:
4402 * libspi/accessible.c:
4403 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
4404 hyperlinks, AtkHyperlink is an object type.
4406 * libspi/application.c:
4407 Added various conversions to and from "generic" event types and
4408 atk-specific types; this is really part of the 'bridge'
4409 implementation but is valid for all AtkObject-based accessibility
4412 * libspi/editabletext.c:
4413 Fixed nasty bug wherein editable text's finalize method was
4414 unref'ing tha AtkObject reference that the text parent class was
4415 about to unref _again_. There was also a nasty inheritance bug
4416 that meant that the AccessibleEditableText class was corrupt.
4418 * libspi/selection.c:
4419 Provided implementations for some selection API that was broken.
4421 * idl/Application.idl:
4422 Added registerObjectEventListener () method.
4425 Fixed a number of return values that were Bonobo_Unknowns from
4426 bonobo_object_corba_objref(), which I
4427 forgot to dup before returning. Changed instances of
4428 bonobo_object_corba_objref (bonobo_object(o)) to
4429 BONOBO_OBJREF(o), for concision and clarity.
4431 2001-10-13 Louise Miller <louise.miller@sun.com>
4433 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
4434 idl/Event.idl, idl/Registry.idl
4435 Changed these files to include Bonobo_Unknown.idl instead
4438 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
4440 * libspi/component.c libspi/component.h:
4441 Fixed typo. Added assertions for object checks in
4442 AccessibleComponent code.
4444 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4446 * idl/Accessible.idl:
4447 Added 'isEqual (Accessible *object)'
4448 method for Accessible. (Not Yet Implemented).
4451 Changed signature of registerKeystrokeListener() to
4452 take a KeySet and KeyEventSeq so that specific keys and event
4453 types could be requested for monitoring, and added a flag
4454 is_synchronous so that either synchronous or asynchronous
4455 notification could be requested. (However this is not all
4456 implemented yet). This also meant adding two new typedefs,
4457 KeyEventSeq and KeySet.
4460 Added two new relations, RELATION_TOOLTIP_FOR and
4461 RELATION_LEAFNODE_OF.
4464 Added new state, STATE_HAS_TOOLTIP.
4466 * libspi/text.c, editabletext.c:
4467 Added new assertions to all casts of bonobo-objects from
4468 CORBA servants, to prevent Text API calls on non-text objects.
4469 Changed suspect casts of int-pointer types, so that we
4470 always send a valid CORBA_long pointer to the CORBA APIs that use
4471 in/out long parameters. We then have to copy from the CORBA_long
4472 into the regular long or int for return to the C bindings, or
4473 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
4476 * libspi/deviceeventcontroller.c:
4477 Cleaned these sources up.
4479 Changed return type for getCharacterAtOffset to
4480 CORBA_unsigned_long, to allow for 32-bit characters.
4483 2001-10-08 Bill Haneman <bill.haneman@sun.com>
4487 Fixed 'make dist' so that distro compiles...
4488 * libspi/keymasks.h:
4490 * cspi/spi-listener.c:
4491 KeystrokeListenerCB now returns a boolean.
4493 Added KeyEventType struct, and KeyStroke.
4494 Also added createKeystrokeListener(),
4495 KeystrokeListener_addCallback(),
4496 KeystrokeListener_removeCallback(), and added a keymask to
4497 registerKeystrokeListener().
4498 * cspi/spi_accessible.c:
4499 Changed numerous return types for interfaces from
4500 AccessibleComponent to Accessible<InterfaceName>; this was
4501 probably a cut-and-paste error.
4503 Implementations of new KeystrokeListener api (from spi.h,
4506 Changes to key modifier mapping.
4507 Created ControllerEventMask struct.
4508 Made DeviceEventController derive from Bonobo::Unknown.
4510 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
4511 * libspi/deviceeventcontroller.c:
4512 Added a number of new internal (private) methods.
4513 * libspi/editabletext.c:
4514 * libspi/editabletext.h:
4515 Fixed a number of bugs related to the fact that
4516 editabletext inherits from text. Fixed the EditableText struct,
4517 the init() call, and use correct casts when calling Text methods
4518 from an EditableText object. Removed (duplicate) atko from the
4519 EditableText structure, we use the one in the parent Text
4520 structure via the casts mentioned above.
4521 * libspi/keystrokelistener.[ch]:
4522 * libspi/registry.c:
4523 Changes in support of keyboard handling (above).
4525 Keyboard handling, though partly functional, is still not
4526 recommended for at-spi client use as there is considerable
4527 work yet to be done.
4530 Changed some places where pointers to various int types
4531 are cast to be pointers to CORBA_long types and vice-versa:
4532 pointer casting is not safe so we pass pointers of the correct
4533 types and then cast the result before putting it into the target
4536 * libspi/text.h: minor typos corrected.
4538 We now speak not only the name of a Text element, but the
4539 first sentence of its content, when it receives focus.
4540 I also changed the text compression to 75% from 50%.
4541 * util/Accessibility_Util.server.in:
4542 Changed the default magnifier type to be a 3x vertical
4543 splitscreen magnifier (was previously a 2x horizontal one).
4545 2001-10-03 Bill Haneman <bill.haneman@sun.com>
4547 * libspi/keystrokelistener.h:
4548 * libspi/keystrokelistener.c:
4549 Initial functional implementations of KeystrokeListener.
4552 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
4554 Fixed string handling for NULL strings in libspi.
4555 Added spi_freeString to free strings returned by C bindings.
4557 2001-09-30 Bill Haneman <bill.haneman@sun.com>
4559 * libspi/keystrokelistener.h:
4560 * libspi/keystrokelistener.c:
4561 Began (no-op) implementations of KeystrokeListener
4563 * libspi/deviceeventcontroller.c:
4564 * libspi/deviceeventcontroller.h:
4565 Began creating implementations of DeviceEventController,
4566 to handle keystroke and mouse event listening and
4568 * libspi/accessible.c:
4569 Stubbed-in the implementations for
4570 Accessibility_Accessible_getState and
4571 Accessibility_Accessible_getRelationSet.
4572 * libspi/registry.c:
4573 Improved de-registration process and fixed some bugs,
4574 deregistration now works correctly.
4576 Added initialization of applications list (to NULL).
4578 Reduced speech compression from 0.5 to 0.7, for demo.
4579 Changed call to gdk_window_set_decorations()
4580 to gtk_window_set_decorated().
4581 * at-bridge/bridge.c:
4582 Bridge now deregisters when app exits, via
4583 registration of a cleanup function
4584 with the g_atexit() call.
4585 Required making 'app' static, renamed 'this_app'.
4586 Fixed broken use of bonobo_init, passing argv wrongly.
4588 2001-09-27 Bill Haneman <bill.haneman@sun.com>
4592 Created a new directory for
4593 accessibility-related utilities, primarily for
4594 testing and demo purposes, but with possible
4601 Onscreen magnifier utility that
4602 is implemented as a bonobo service.
4604 * util/mag_client.c:
4605 * util/mag_client.h:
4606 Client-side support (simple C bindings)
4607 for Magnification service
4609 * util/mag_control.c:
4610 Client program example for
4611 Magnification service
4613 * util/Accessibility_Magnifier.server.in:
4614 Bonobo-activation file for the
4615 Magnification service.
4618 * util/idl/Magnifier.idl:
4619 IDL defining the bonobo Magnification
4623 Modifications to use the bonobo-activated magnifier
4624 above, in place of trying to connect to an existing
4625 magnifier that uses socket-listening IPC.
4627 If env variable MAGNIFIER is set, a magnifier service
4628 will be started if one does not exist.
4630 2001-09-25 Bill Haneman <bill.haneman@sun.com>
4632 * at-bridge/bridge.c:
4633 applied patch from Marc to build and run
4634 against new glib and gtk+ (seemed like a change
4635 to bonobo_init signature was made ?)
4637 made festival-server support turned off by default.
4638 Added support for a simple magnifier (off by default)
4639 which will be added to a 'util' directory later.
4640 * at-bridge/Makefile.am:
4641 Changed "application.h" header from a 'source'
4642 to a 'dependency' of libat-bridge.
4644 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
4653 Added interface implementation c files to list of
4654 includes so they are included in libcspi.
4657 Changed prototype of AccessibleAction_doAction to return a
4659 Changed prototype of AccessibleTable_getCaption to
4660 return an Accessible.
4661 Changed prototype of AccessibleTable_getSelectedRows
4662 and AccessibleTable_getSelectedColumns to
4663 return a long (returns the number of selected rows
4664 or columns respectively).
4665 Changed name of AccessibleText_refRunAttributes to
4666 AccessibleText_getAttributes.
4667 Changed prototype of AccessibleText_getCharacterExtents to
4668 return a void rather than a boolean.
4669 Added support for a AccessibleCoordType parameter
4670 specifying what type of coordinates are desired.
4671 Added an AccessibleCordType parameter to
4672 AccessibleText_getPointAtOffset.
4674 * cspi/spi_accessible.c:
4675 Added code to return the outstanding interfaces from
4676 Accessible_queryInterface.
4678 * cspi/spi_action.c:
4680 Corrected call to getNActions to call the c binding
4683 * cspi/spi_editabletext.c:
4685 Changed name from setRunAttributes to setAttributes.
4687 * cspi/spi_hyperlink.c:
4689 Changed call to getNAnchors to correctly call the c
4690 binding for an attribute.
4692 * cspi/spi_hypertext.c:
4694 Changed getImageDescription to correctly call the
4695 binding for an attribute.
4697 * cspi/spi_selection.c:
4698 Changed getNSelectedChildren to correctly call the c
4699 binding for the attribute.
4700 Changed refSelectedChild to getSelectedChild.
4704 Changed getCaption to return an Accessible.
4705 Fixed calls which retrieve attributes.
4706 Changed refAt to getAccessibleAt.
4707 Changed getNSelectedRows and getNSelectedColumns to
4711 Changed getCharacterExtents and getPointAtOffset to accept an
4712 AccessibleCoordType.
4714 Changed calls which retrieve attributes.
4715 Changed refRunAttributes to getAttributes.
4720 * idl/Hyperlink.idl:
4721 Changed n_anchors attribute to nAnchors to keep naming
4722 convention consistent.
4725 Made Table inherit from Bonobo::Unknown.
4726 Added nSelectedColumns and nSelectedRows attributes.
4729 Made Value inherit from Bonobo::Unknown.
4731 * libspi/hyperlink.c:
4732 Change for nAnchors attributte name change.
4734 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
4742 Added interface implementation c files to list of
4743 includes so they are included in libcspi.
4746 Changed prototype of AccessibleAction_doAction to return a
4748 Changed prototype of AccessibleTable_getCaption to
4749 return an Accessible.
4750 Changed prototype of AccessibleTable_getSelectedRows
4751 and AccessibleTable_getSelectedColumns to
4752 return a long (returns the number of selected rows
4753 or columns respectively).
4754 Changed name of AccessibleText_refRunAttributes to
4755 AccessibleText_getAttributes.
4756 Changed prototype of AccessibleText_getCharacterExtents to
4757 return a void rather than a boolean.
4758 Added support for a AccessibleCoordType parameter
4759 specifying what type of coordinates are desired.
4760 Added an AccessibleCordType parameter to
4761 AccessibleText_getPointAtOffset.
4763 * cspi/spi_accessible.c:
4764 Added code to return the outstanding interfaces from
4765 Accessible_queryInterface.
4767 * cspi/spi_action.c:
4769 Corrected call to getNActions to call the c binding
4772 * cspi/spi_editabletext.c:
4774 Changed name from setRunAttributes to setAttributes.
4776 * cspi/spi_hyperlink.c:
4778 Changed call to getNAnchors to correctly call the c
4779 binding for an attribute.
4781 * cspi/spi_hypertext.c:
4783 Changed getImageDescription to correctly call the
4784 binding for an attribute.
4786 * cspi/spi_selection.c:
4787 Changed getNSelectedChildren to correctly call the c
4788 binding for the attribute.
4789 Changed refSelectedChild to getSelectedChild.
4793 Changed getCaption to return an Accessible.
4794 Fixed calls which retrieve attributes.
4795 Changed refAt to getAccessibleAt.
4796 Changed getNSelectedRows and getNSelectedColumns to
4800 Changed getCharacterExtents and getPointAtOffset to accept an
4801 AccessibleCoordType.
4803 Changed calls which retrieve attributes.
4804 Changed refRunAttributes to getAttributes.
4809 * idl/Hyperlink.idl:
4810 Changed n_anchors attribute to nAnchors to keep naming
4811 convention consistent.
4814 Made Table inherit from Bonobo::Unknown.
4815 Added nSelectedColumns and nSelectedRows attributes.
4818 Made Value inherit from Bonobo::Unknown.
4820 * libspi/hyperlink.c:
4821 Change for nAnchors attributte name change.
4824 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
4826 implementations-- made server implementations own AtkObject pointers
4827 rather than their respective AtkInterrface pointers to fix
4828 refcounting. AtkHyperlink is still broken.
4830 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4831 * cspi/spi_accessible.c:
4832 Added method Accessible_Role_getName(),
4833 and requisite string array (role_names).
4834 Added conversion string_from_corba_strin() call
4835 to Accessible_getName and _getDescription.
4836 * libspi/accessible.c:
4837 Added implementation for Accessible_getRole()
4839 Added festival support, used if environment variable
4842 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4844 * at-bridge/bridge.c:
4845 Now allocate Accessibility_Event using
4846 Accessibility_Event__alloc() instead of g_new0().
4847 * libspi/accessibleeventlistener.c:
4848 Initialize AccessibleEventListener->callbacks to NULL.
4849 Fixed accessible__event_listener_init() param, changed to
4850 "AccessibleEventListener *" type.
4851 Changed a bonobo_object_release_unref() call to
4852 Accessibility_Accessible_unref().
4853 * libspi/listener.c:
4854 Changed Bonobo_Unknown_unref to (equivalent)
4855 Accessibility_Accessible_unref.
4856 * libspi/registry.c:
4857 Changed bonobo_object_release_unref to
4858 Accessibility_Accessible_unref.
4860 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
4863 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
4864 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
4865 spi-util.c spi-util.h
4866 Implementations for C bindings to remaining accessibility
4869 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
4872 changed return value of Action from void to boolean to
4873 bring in line with ATK.
4876 Changed getText funcions to return "out" start and end offsets.
4877 Changed getAttributes to take and offset and return the start
4878 and end offset of the attribute run.
4879 Changed getOffsetAtPoint and getCharacterExtents to take an
4880 enum describing whether coordinates are window or screen.
4883 libspi/action.c libspi/action.h libspi/editabletext.c
4884 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
4885 libspi/hypertext.c libspi/hypertext.h libspi/image.c
4886 libspi/image.h libspi/selection.c libspi/selection.h
4887 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
4888 libspi/value.c libspi/value.h
4889 Added server implementations for outstanding ATK interfaces
4890 not yet implemented.
4892 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4895 Added (missing) getName() method.
4896 Made nActions an attribute.
4897 * idl/EditableText.idl:
4898 Changed order of params in setAttributes.
4899 * idl/Hyperlink.idl:
4900 Removed getAnchor, added getURI.
4902 Changed attributes to methods, for efficiency
4903 (so that getting extents can be done in one call)
4904 * idl/Selection.idl:
4905 Changed nSelectedChildren to attribute, and re-indented.
4906 * idl/Table.idl: changed nrows, ncolumns, caption, summary
4908 * idl/Text.idl: reformatted to match our coding style.
4909 (temporarily?) removed getRowColumnAtOffset().
4910 Changed text selection API to support multi-select and
4911 non-contiguous selections, as in ATK.
4912 * idl/Value.idl: changed some methods to attributes.
4914 2001-08-24 Mark McLoughlin <mark@skynet.ie>
4916 * libspi/listener.c(impl_notify_event):
4917 BonoboUnkown_unref the source instead
4918 of bonobo_object_release_unref - the ORB
4919 handles the releasing.
4921 * configure.in: require ORBit-2.3.94 for
4924 2001-08-21 Bill Haneman <bill.haneman@sun.com>
4926 Tagged CVS repository 'EA_1_0'.
4927 * README.EARLY_ACCESS:
4928 Alphabetized acknowledgements list, and
4930 Listed some known dependencies of at-spi.
4932 2001-08-20 Bill Haneman <bill.haneman@sun.com>
4934 * docs/at-spi-docs.sgml:
4935 * docs/at-spi-sections.txt:
4936 * docs/at-spi-overrides.txt: (Added zero-length file)
4937 Documentation improvements - gtk-doc should build
4938 docs for all implemented C bindings now.
4941 * cspi/spi.c: (New file)
4942 * cspi/spi_event.c: (New file)
4943 * cspi/spi_registry.c: (New file)
4944 * cspi/spi_accessible.c: (New file)
4945 * cspi/spi_application.c: (New file)
4946 * cspi/spi_component.c: (New file)
4947 Split spi_main.c into six parts, and included them from
4948 "spi.c". This is a bit of a hack, probably temporary,
4949 but required by gtk-doc, apparently.
4951 2001-08-20 Bill Haneman <bill.haneman@sun.com>
4954 * docs/at-spi-docs.sgml:
4955 * docs/at-spi-sections.txt:
4957 Initial checkins/modifications for gtk-doc generation.
4960 Added (missing) interface query methods to Accessible's C binding.
4962 Added GenericInterface type definition.
4964 Added query for AccessibleComponent interface to focus event handler.
4965 Added printout of bounding box for focussed component.
4966 * libspi/component.c:
4967 Added partial implementation for AccessibleComponent to C binding.
4968 * idl/Application.idl:
4969 * libspi/registry.c:
4970 * libspi/listener.c:
4971 * libspi/application.c:
4972 * libspi/application.h:
4973 Changed "ID" attribute type from string to long.
4975 2001-08-19 Bill Haneman <bill.haneman@sun.com>
4979 Made method naming consistent: methods taking object args
4980 start with uppercase, other methods (except those using
4981 acronyms) start with lowercase. Underscores delimit between
4982 object names and method names:
4983 SPI_init() - uppercase since it starts with an acronym.
4984 getDesktopCount () - lowercase start since no object param0.
4985 Accessible_getName() - uppercase object type name, studlyCaps method
4989 Added gtk-doc documentation for all currently implemented
4990 methods in the C bindings API.
4992 2001-08-18 Bill Haneman <bill.haneman@sun.com>
4994 * Makefile.am : changed build order to build test last.
4997 Changed "createEventListener" to "CreateEventListener".
4998 * libspi/accessibleeventlistener.c :
4999 Bugfix for addition of callbacks.
5000 * test/Makefile.am :
5001 * test/simple-at.c :
5002 Added new test that uses the C bindings API.
5004 * libspi/listener.c :
5005 * libspi/registry.c :
5006 * libspi/accessibleeventlistener.c :
5007 * at-bridge/bridge.c :
5008 Renamed member "target" of Accessibility_Event to "source",
5009 which is more descriptive.
5012 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5016 * cspi/Makefile.am :
5017 Added makefile support for at-spi/cspi directory.
5020 * cspi/spi-listener.h : (NEW FILE)
5021 Added support for/use of spi-listener.h.
5023 C bindings now build successfully, with no warnings.
5024 * libspi/accessibleeventlistener.h : (NEW FILE)
5025 * libspi/accessibleeventlistener.c : (NEW FILE)
5026 * libspi/Makefile.am :
5027 Added new object type "AccessibleEventListener"
5028 which inherits from Listener, and allows attachment
5029 of in-process callbacks (so that a client with a listening
5030 object instance can add functionality to the local
5031 implementation, dynamically).
5033 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5035 * libspi/accessible.c:
5036 Add implementation for get_index_in_parent().
5038 Added #include of "spi-roletypes.h", and
5039 added enumerated type AccessibleCoordType.
5040 Added definition for KeystrokeListener (function type).
5043 * cspi/spi-statetypes.h :
5044 * cspi/spi-roletypes.h :
5046 Added these headers, used by spi.h.
5048 Added code (NOTE: not yet built by make).
5050 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5052 * libspi/Makefile.am: generate imodule
5053 at the same time as other idl compiler
5056 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5057 * libspi/registry.c :
5058 * libspi/application.c :
5059 * idl/Application.idl :
5060 Made registration with toolkit an application method,
5061 which is required since each app has its own toolkit static
5062 environment. Thus the bridge must register for
5063 notification of toolkit events from each application in turn.
5064 Toolkit notifications are now successfully registered for, and
5065 sent to the listening at client.
5067 Changed toolkit event string to use hyphens rather than underscores.
5068 * libspi/listener.c :
5069 listner now gives more info in debug mode - it reports the
5070 name of the event received, as well as the name of the source.
5073 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5075 * libspi/registry.c :
5076 added more implementation for toolkit events.
5077 Fixed bug such that toolkit event registrations
5078 (via atk) use the whole event name string, not
5080 Removed a useless call to an ORBit_ method.
5081 * at-bridge/bridge.c :
5082 Removed unused local sbuf[] variable.
5084 We now register for Gtk:GtkWidget:button_press_event
5085 events as well as "focus:" events.
5087 Add some more API from Registry.idl that was missing,
5088 for keystroke listening, keystroke and mouse event
5089 synthesis, and enumeration of accessible desktops.
5091 2001-08-16 Michael Meeks <michael@ximian.com>
5093 * configure.in: use AM_GLIB_GNU_GETTEXT.
5095 * Makefile.am (SUBDIRS): kill intl.
5097 2001-08-15 Michael Meeks <michael@ximian.com>
5099 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5101 * configure.in: upd.
5103 * configure.in: depend on a recent bonobo-activation that
5104 will find our server files ...
5106 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5108 * libspi/accessible.c : accessible_new() :
5109 Now we add the Component interface via bonobo_object_add_interface,
5110 if the contained AtkObject implements AtkComponent.
5111 * libspi/accessible.h : now include "component.h"
5112 * libspi/component.h :
5113 * libspi/component.c : added files - implementation of
5114 bonobo wrapper object for Accessibility/Component
5115 * libspi/listener.c :
5116 Added test code to check for Accessibility/Component:1.0
5117 interface and report whether it is implemented by the
5119 * libspi/registry.c :
5120 Now we check for not only the hash of the whole event
5121 string before relaying the event, we also check the
5122 "minor" event string (without the detail string).
5123 This allows event listeners to be registered against
5124 all events of a certain major+minor type, or just
5125 against a specific major+minor+detail type.
5126 * libspi/accessible.c :
5127 Added implementations for Accessible:get_parent(),
5128 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5129 * libspi/registry.c :
5130 * libspi/listener.c :
5131 Replaced calls to Accessibility_Accessible_ref() and
5132 Accessibility_Accessible_unref() with
5133 calls to bonobo_object_dup_ref() and
5134 bonobo_object_release_unref(), so that the CORBA object
5135 is dup-ed and released when relayed, as well as the bonobo object.
5137 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5139 * libspi/Makefile.am,
5140 registryd/Makefile.am,
5141 at-bridge/Makefile.am.
5142 test/Makefile.am, configure.in:
5143 reverse previous changes.
5145 * /idl/Image.idl: fix typo.
5147 * test/Makefile.am: put DEBUG_FLAGS
5150 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5152 * test/app.c: use argv[0] instead of
5155 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5157 * libspi/Makefile.am,
5158 registryd/Makefile.am,
5159 at-bridge/Makefile.am.
5160 test/Makefile.am, configure.in:
5161 cleanup, replace individual LIBS/CFLAGS with
5162 AT_COMMON_{LIBS|CFLAGS}.
5166 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5168 * configure.in, libspi/Makefile.am:
5169 Change IDL path checking for bonobo-activation
5172 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5174 * registryd/registry.c : separated event listeners to use
5175 3 separate lists (focus, window, toolkit). Began testing
5176 event names against hashes before relaying events.
5177 * test/at.c : now register for events of type "focus:"
5178 * test/app.c : now generate events of type "focus:"
5179 * at-bridge/bridge.c : register with ATK for focus events,
5180 and we now relay those focus events to any "focus:" listeners.
5181 This now works with the bridge as a GTK_MODULE when running test/at.
5182 * libspi/registry.c :
5183 * libspi/listener.c :
5184 now we ref event sources before propagating, and unref on receipt.
5185 * libspi/registry.c :
5186 some changes to internal structs, to support event typestring hashes.
5187 * text/app.c : changed the way the appname is generated.
5188 * cspi : added directory that will hold the C bindings library for
5189 non-CORBA/bonobo-savvy clients.
5190 * cspi/spi.h : header file that contains the function prototypes for the C binding.
5191 * idl/Component.idl : added in parameter to indicate coord system for
5192 geometry-related calls.
5193 * idl/Hyperlink.idl : added readonly n_links attribute
5194 * idl/Image.idl : changed methods to attributes.
5196 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5198 * at-bridge/Makefile.am: link against
5199 ../libspi/libspi.la instead of -lspi.
5201 * at-spi/test/app.c: include
5202 bonobo-activation.h. Use a default appname
5203 if one is not provided.
5205 2001-08-14 Bill Haneman <bill.haneman@sun.com>
5207 * idl/Registry.idl : temporarily changed register_Application
5208 to oneway, to work around issue with initial registration
5210 * idl/Application.idl : changed attribute "id" from readonly
5211 to read-write, since it needs to be assigned by Registry.
5212 * registryd/registryd.c : added call to set application id
5214 * registryd/registry.c : changed de-registration procedure to
5215 use CORBA_Object_hash() to find matching object ref in application
5216 lists and listener lists.
5217 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
5218 began distinguishing between event types (work in progress).
5220 2001-08-13 Bill Haneman <bill.haneman@sun.com>
5223 * libspi/application.c:
5224 Added implementations for get/set id, get_toolkitName,
5226 * registryd/registryd.c :
5230 Converted from use of OAF to bonobo-activation.
5231 * libspi/desktop.h :
5232 * libspi/desktop.c :
5234 Removed references to atksimpleobject, since base atkobject
5235 implementation now provides functionality we need.
5236 * libspi/atksimpleobject.c :
5237 * libspi/atksimpleobject.h :
5242 * at-bridge/Makefile.am
5243 * at-bridge/bridge.c
5246 Added directory "bridge" and contents, and added dependencies
5247 in Makefile.am/configure.in.
5248 Initial checkin of "at-bridge".
5249 This code is a GTK_MODULE which automatically registers
5250 GTK+ apps with the accessibility registry, using an object
5251 reference to the root ATK object.
5253 2001-08-10 Mark McLoughlin <mark@skynet.ie>
5255 * po/Makefile.in.in: Remove. Again. If this
5256 doesn't get autogenerated - you need to update
5259 2001-08-07 Mark McLoughlin <mark@skynet.ie>
5261 * po/Makefile.in.in: Add. Again.
5263 2001-07-31 Bill Haneman <bill.haneman@sun.com>
5265 * libspi/accessible.c : added support for 'description' property.
5266 * libspi/accessible.c
5268 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
5269 (since the two are now equivalent in libbonobo)
5277 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
5278 Bonobo::Unknown as does Accessibility::Accessible.
5279 * idl/StreamableContent.idl : as above, and replaced internal InputStream
5280 interface with Bonobo::Stream, since it was redundant with it.
5281 (The Stream returned by a StreamableContext object is expected to
5282 implement only a subset of Bonobo::Stream)
5284 2001-07-28 Anders Carlsson <andersca@gnome.org>
5286 * libspi/accessible.c (accessible_object_finalize): Change
5287 g_free to g_object_unref since the AtkObject is a GObject.
5289 2001-07-30 Bill Haneman <bill.haneman@sun.com>
5291 * idl/Accessibility.idl: add new IDL files
5294 * idl/Action.idl: Definitions of actionable UI object
5295 * idl/Component.idl: Definitions of UI component geometry, etc.
5296 * idl/Hyperlink.idl: Defs of hyperlink behavior
5297 * idl/Image.idl: Def of accessible image
5298 * idl/Selection.idl: Definition of UI object with selectable children
5299 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
5300 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
5301 * idl/Text.idl: Interface defs for UI elements with complex textual content
5302 * idl/Value.idl: Definition of UI element that is a value controller or display
5304 2001-07-27 Michael Meeks <michael@ximian.com>
5306 * po/Makefile.in.in: remove autogenerated file from CVS.
5308 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
5311 * idl/Registry.idl: include guard.
5313 * idl/Accessibility.idl: Add, and include all the other IDL
5316 * idl/*.idl: remove mass of pragmas etc.
5318 2001-07-26 Michael Meeks <michael@ximian.com>
5320 * registryd/Makefile.am (registryd_SOURCES): remove
5323 2001-07-27 Mark McLoughlin <mark@skynet.ie>
5325 * libspi/.cvsignore, registryd/.cvsignore,
5326 test/.cvsignore: updated.
5328 * po/Makefile.in.in: gettext update.
5330 2001-07-25 Bill Haneman <bill.haneman@sun.com>
5332 * initial CVS checkin
5334 2001-06-29 Michael Meeks <michael@ximian.com>
5336 * configure.in: add AM_CONFIG_HEADER to gen config.h