1 2002-12-02 Bill Haneman <bill.haneman@sun.com>
3 Removed some of the more dangerous workarounds from
4 previous commit; they are only needed by GOK, which
5 in reality should be using another method to accomplish
6 the goals. So on reconsideration some of the workarounds
9 * registryd/deviceeventcontroller.c:
10 (spi_keycodes_contain, spi_dec_init_keycode_list):
11 Removed these methods, used only by a nasty hack to try
12 and detect whether a key synthesis should be allowed
13 to reset the XKB latch state or not. This code was only
14 required to work around an interaction between GOK,
15 button events, and XKB.
16 (impl_generate_key_event):
17 Removed hack at end of key generation that tried to
18 "do the right thing" if XKB latch keys were generated
19 in the midst of button press/release pairs.
22 Added a check for HAVE_XINPUT. Not normally used yet.
24 2002-11-25 Bill Haneman <bill.haneman@sun.com>
26 Workarounds and fixes for mouse event/XKB interaction.
28 * registryd/deviceeventcontroller.c:
29 (spi_keycodes_contain, spi_dec_init_keycode_list):
31 (spi_dec_set_unlatch_pending):
32 Split the method that tells XKB to expect an
33 unlatch (and revert it) out of the rest of the
34 event handling code. This method is called by the
35 two mouse event handlers (the poll and the filter).
36 (spi_dec_update_and_emit, spi_dec_mouse_check):
37 New methods split from spi_dec_poll_mouse_moved.
38 The second one is now called from inside the filterFn
39 when an XKB delatch event is received, to determine
40 whether to revert the delatch or not.
41 (spi_poll_mouse_moved): Refactor; also we can now
42 properly handle the case where multiple button states
43 have changed between polling cycles and we didn't get
44 notified due to another client's grab.
46 Synchronize the server while handling an XKB notification.
47 Ugly, but apparently necessary to avoid nasty races.
48 Check the mouse state on receipt of an XKB latch change,
49 to decide whether to revert the latch or not. (Latches are
50 reverted if there is an immediately preceding mouse button
51 event that a client has consumed, in which case we don't want
52 the user to see the side-effect of the event).
53 (spi_device_event_controller_forward_mouse_event):
54 Check for modifier events and fire before resetting mouse_mask_state,
55 prevents losing modifier events.
57 (impl_generate_keyboard_event):
58 If we've just generated a keyboard event for a non-shift key,
59 we don't want to revert the pending XKB latch.
60 Otherwise, check the modifier state (via a call to
61 spi_dev_mouse_check) and set the relatch mask to
62 that state before returning.
64 2002-11-24 Bill Haneman <bill.haneman@sun.com>
67 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
70 * atk-bridge/bridge.c:
71 (spi_atk_register_event_listeners):
72 Don't re-register for ATK events if the registry has died
73 and the app needs to re-register; the ATK listeners are in
74 process and doing so will cause duplicate emission.
76 * registryd/deviceeventcontroller.c:
77 (spi_poll_mouse_moved):
78 Reformat the source, detect and emit multiple button-change
79 events (i.e. if multiple buttons have changed between poll
81 Add code to detect mouse-down events even when the pointer
82 is grabbed; workaround for GOK bug 98420.
83 (spi_controller_register_with_devices):
84 Call XTestGrabControl with 'impervious' flag set to True,
85 allows us to synthesize events and query the pointer even during
86 an active grab by another client.
87 (spi_device_event_controller_forward_mouse_event):
88 Set the mouse_mask_state to the mouse_button_state from
89 the intercepted event, to synchronize the grab listener with
92 2002-11-20 Bill Haneman <bill.haneman@sun.com>
94 * cspi/spi_accessible.c:
95 (AccessibleRole_getName):
96 Added necessary strings for making this (deprecated)
97 method work with the new role types.
98 (init_role_table, role_table):
99 Added definition of SPI_ROLE_APPLICATION.
101 * libspi/spi-roletypes.h:
102 Added SPI_ROLE_APPLICATION.
104 * idl/Accessibility_Role.idl:
105 Added ROLE_APPLICATION.
107 * docs/reference/cspi/at-spi-cspi-decl.txt:
108 Added SPI_ROLE_APPLICATION to docs.
110 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
112 * cspi/spi_accessible.c
113 (cspi_init_role_table): Do not write beyond end of role_table.
114 (Accessible_getRole): Use correct type for value returned by
115 Accessibility_Accessible_getRole().
117 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
118 beyond end of role_table. (This fixes bug #98269)
120 * libspi/application.c: Add include file spi-private.h for
121 definition of spi_init_any_nil.
123 2002-11-19 Bill Haneman <bill.haneman@sun.com>
127 * libspi/spi-private.h:
128 Added DGB() macro, and extern int _dbg declaration.
130 * registryd/registry.c:
131 (definitions) storage for _dbg.
133 Get environment variable "AT_SPI_DEBUG".
134 (spi_registry_set_debug):
135 New method, to initialize _dbg value.
136 (spi_listener_struct_new, spi_registry_object_finalize):
137 (notify_listeners_cb):
138 Changed fprintfs to use DBG and g_warning().
140 * registryd/deviceeventcontroller.c:
141 (_deregister_keygrab, spi_controller_register_device_listener):
142 Changed debug/warning messages to use DBG macro.
146 Changed warning messages to use DBG macro and g_warning().
148 * atk-bridge/bridge.c:
149 (atk_bridge_init, spi_atk_bridge_get_registry):
150 (spi_atk_bridge_exit_func):
151 (spi_atk_bridge_property_event_listener):
152 Changed status, warning, and error messages to use
153 g_warning, g_message, and DBG macros.
156 Read the state of the AT_SPI_DEBUG environment variable
157 and set a local '_dbg' accordingly.
159 2002-11-19 Bill Haneman <bill.haneman@sun.com>
161 FIXES for 98836, 98842, other bugs.
164 Revved to 1.1.4, interface-age=4, binary-age=4.
166 * registryd/deviceeventcontroller.c:
168 Fixed crasher bug in last_mouse_pos initialization.
170 * registryd/registry.c:
171 (desktop_add_application, desktop_remove_application):
172 Added (and then commented out) some support for
173 object context marshalling. [TODO]
175 * atk-bridge/bridge.c:
176 (spi_atk_bridge_event_context_create):
177 Commented out object context creation until it can
178 be properly tested and debugged.
180 * registryd/registry.c:
181 (impl_registry_notify_event):
182 Fixed crasher bug, we were calling
183 spi_re_entrant_list_foreach () with an empty list.
185 2002-11-18 Bill Haneman <bill.haneman@sun.com>
187 * idl/Accessibility_Action.idl:
188 * idl/Accessibility_Component.idl:
189 * idl/Accessibility_Desktop.idl:
190 * idl/Accessibility_Event.idl:
191 * idl/Accessibility_Hyperlink.idl:
192 * idl/Accessibility_Image.idl:
193 * idl/Accessibility_Relation.idl:
194 * idl/Accessibility_Selection.idl:
195 * idl/Accessibility_State.idl:
196 * idl/Accessibility_Value.idl:
197 Updated unimplemented slot count to minimum of
198 four for all interfaces, for ABI freeze.
200 * idl/Accessibility_EditableText.idl:
201 * idl/Accessibility_Text.idl:
202 Updated unimplemented slot count to six
205 * idl/Accessibility_Registry.idl:
206 Updated unimplemented slot count to six
207 (also for DeviceEventController),
210 * idl/Accessibility_Table.idl:
211 Updated unimplemented slot count to eight,
214 * idl/Accessibility_Event.idl:
215 Added CORBA_any "any_data" member to Event struct.
217 * idl/Accessibility_Event.idl:
218 Added CORBA_any "any_data" member to Event struct.
220 * atk-bridge/bridge.c:
222 atk_signal_text_changed, atk_signal_child_changed,
223 signal ids queried from gtype system.
224 (AtkBridgeEventContextType): New enum.
225 (AtkBridgeEventContextData): New struct.
226 (AtkBridgeEventContext): New struct.
227 (atk_bridge_init_event_type_consts):
228 New method, initializes type contants for comparison
229 prior to emit_eventv.
230 (atk_bridge_event_context_init): New method,
231 initializes a CORBA_any from an AtkBridgeEventContext.
232 (atk_bridge_focus_tracker): Call spi_init_any_nil to
233 initialize the event.any_data struct.
234 (spi_atk_bridge_event_context_create): New method,
235 creates an AtkBridgeEventContext from signal/event info.
236 (spi_atk_bridge_event_context_free): New method.
237 (spi_atk_emit_eventv): Changed to take an
238 AtkBridgeEventContext parameter. We now initialize
239 the event.any_data member prior to notifying the
240 Registry, via the AtkBridgeEventContext.
241 (spi_atk_bridge_property_event_listener):
242 (spi_atk_bridge_state_event_listener):
243 Match emit_eventv signature.
244 (spi_atk_bridge_object_event_listener):
245 Match emit_eventv signature, and create an
246 event context from the event details.
247 Free the event context afterwards.
248 (spi_atk_bridge_window_event_listener):
249 Create an event context, pass it to the
253 (AccessibleEvent_getContextString):
254 (AccessibleEvent_getContextObject):
255 New methods, allow query of AccessibleEvent objects
256 for more context details (via the "any_data" member
257 of the Event struct, above).
260 Definitions for AccessibleEvent_getContextString
261 and AccessibleEvent_getContextObject.
263 * cspi/spi_listener.h:
264 (InternalEvent): New struct.
267 (AccessibleEvent_getContextString):
268 (AccessibleEvent_getContextObject):
269 Implementations of new methods, for obtaining
270 additional context information from some event types.
272 * cspi/spi_registry.c:
273 (SPI_registerGlobalEventListener):
274 Added mention of active-descendant-changed event in docs.
276 * cspi/cspi-bonobo-listener.c:
278 Marshal the any into the AccessibleEvent via
281 * libspi/spi-private.h:
282 #include <orbit/orbit.h>
284 (spi_init_any_string):
285 (spi_init_any_object):
286 New convenience function declarations.
290 (spi_init_any_string):
291 (spi_init_any_object):
292 New convenience function implementations.
294 * registryd/deviceeventcontroller.c:
295 (spi_poll_dec_mouse_moved):
296 (spi_device_event_controller_forward_mous_event):
297 Initialize any_data member of event.
298 (spi_deregister_controller_device_listener):
299 Fix incorrect param pass which was preventing deregistration.
301 * registryd/registry.c:
302 (desktop_add_application):
303 (desktop_remove_application):
304 Add object data to event's any_data before dispatch.
306 Fix for error messages from GAIL.
308 * test/event-listener-test.c:
309 Test new ContextString and "any_data" API:
310 (report_text_event): New method query and output context string.
311 (main): register a new text listener with report_text_event
314 2002-11-19 Darren Kenny <darren.kenny@sun.com>
316 Fixes for bugs 98127 and 97914.
317 * cspi/spi-roletypes.h:
318 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
320 * cspi/spi-statetypes.h:
321 Added SPI_STATE_MANAGES_DESCENDANTS
323 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
324 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
325 * cspi/spi_accessible.c:
326 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
327 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
328 Accessibility_STATE_MANAGES_DESCENDANTS
329 * libspi/accessible.c:
330 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
331 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
332 As requested by Bill, I also cleaned up the alignment.
334 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
335 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
337 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
338 Accessibility_STATE_MANAGES_DESCENDANTS
339 * docs/reference/cspi/tmpl/spi_accessible.sgml:
340 Document changes reflecting modifications to roles.
341 * docs/reference/cspi/tmpl/spi_relation.sgml:
342 Document changes reflecting modifications to relations.
343 * docs/reference/cspi/tmpl/spi_stateset.sgml:
344 Document changes reflecting modifications to states.
346 2002-11-17 Bill Haneman <bill.haneman@sun.com>
349 Revved to 1.1.3, interface-age=3, binary-age=3.
353 Removed accessx-gui from the tests, since we have a nice
354 keyboard accessibility capplet now :-)
356 * test/keysynth-demo.c:
357 (increment_scan): removed do-nothing default: case,
360 * test/visual-bell.c:
361 (main) : removed do-nothing default: case,
365 (AccessibleAction_getKeyBinding_):
366 Documented keybinding string format.
370 (AccessibleText_getAttributes):
371 Documented the text attribute string format.
372 It's changed to use semicolon delimiters also,
373 to prevent clashes with CSS attributes, but the old
374 trick of looking for ", " strings will still work
375 (as unreliably as ever). Fix for bug related to 97916.
378 Include <cspi/bonobo/cspi-bonobo-listener.h>
380 (SPI_freeAccessibleKeySet):
381 (AccessibleKeystrokeListener_addCallback):
382 (AccessibleKeystrokeListener_removeCallback):
383 Modify to use AccessibleDeviceListener API internally,
384 instead of AccessibleKeystrokeListener.
386 * idl/Accessibility_Event.idl:
387 Added two more empty slots to EventListener (for a total of four).
389 * idl/Accessibility_Accessible.idl:
390 Added four empty slots to Accessible interface.
392 2002-11-15 Bill Haneman <bill.haneman@sun.com>
394 * idl/Accessibility_Registry.idl:
395 (KeyEventType, EventType):
396 Marked KeyEventType as deprecated; it duplicates
397 functionality of EventType, which has been extended to
398 include Mouse-button events.
399 (KeyEventTypeSeq): defined in terms of EventType.
400 (registerDeviceEventListener, deregisterDeviceEventListener):
401 New methods, for managing listeners to device events,
402 which potentially may consume them.
405 Added definition for AccessibleDeviceListener.
407 * cspi/spi-listener.h:
408 (enum AccessibleDeviceEventType):
409 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
410 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
411 for backwards compat.
412 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
413 and typedef'd AccessibleKeystroke to it for back-compat.
414 (AccessibleDeviceListenerCB):
415 New function prototype typedef.
418 (AccessibleDeviceEventMask): New typedef.
419 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
420 (AccessibleKeyMaskType):
421 Set equivalent to AccessibleModifierMaskType for back-compat.
422 (SPI_createAccessibleKeystrokeListener):
423 (AccessibleKeystrokeListener_unref):
424 Deprecated in favor of equivalent (better-named) new API below..
425 keystroke listeners are like all device listeners.
426 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
427 New API names for old features :-).
428 (AccessibleDeviceListener_addCallback):
429 (AccessibleDeviceListener_removeCallback):
430 (SPI_registerDeviceEventListener):
431 (SPI_deregisterDeviceEventListener):
435 (SPI_createAccessibleKeystrokeListener):
436 Use new preferred API, cspi_device_listener_new() and
437 cspi_device_listener_add_cb().
438 (AccessibleKeystrokeListener_removeCallback):
439 Use new preferred API, cspi_device_listener_remove_cb().
440 (AccessibleKeystrokeListener_unref):
441 Use new preferred API, cspi_device_listener_unref().
442 (SPI_createAccessibleDeviceListener):
443 (AccessibleDeviceListener_addCallback):
444 (AccessibleDeviceListener_removeCallback):
445 Implementation of new API.
447 * cspi/spi_registry.c:
448 (SPI_registerDeviceEventListener):
449 (SPI_deregisterDeviceEventListener):
450 Implementation of new API. Fixed memory leak and removed need to
451 allocate EventTypeSeq (thanks Michael for catching this).
452 Squashed a wayward CORBA_exception_free that shouldn't get called.
454 * cspi/bonobo/cspi-bonobo-listener.c:
456 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
457 (cspi_key_event): renamed to cspi_device_event().
458 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
459 Extended to handle mouse button events as well as key events.
460 (CSpiKeystrokeListener):
461 Class superceded by CSpiDeviceListener.
462 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
463 These internal APIs changed to "*device_listener" from "*keystroke_listener".
465 * cspi/bonobo/cspi-bonobo-listener.h:
466 (CSpiKeystrokeListener):
467 Class superceded by CSpiDeviceListener.
468 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
469 These internal APIs changed to "*device_listener" from "*keystroke_listener".
471 * libspi/Makefile.am:
472 Replaced keystrokelistener.h and keystrokelistener.c
473 with devicelistener.h and devicelistener.c; keystrokelisener.h
474 stub retained for back-compat.
476 * libspi/keystrokelistener.c:
480 Replaced inclusion of keystrokelistener.h with devicelistener.h.
482 * registryd/deviceeventcontroller.c:
483 (DEControllerListener): Added Accessibility_EventTypeSeq member.
484 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
485 (DEControllerPrivateData): Added xkb settings data.
486 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
487 button release events (which can't be captured via XGrabButton).
488 Don't dispatch via the 'normal' event mechanism if the device event was
490 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
491 Handle the typeseq data in its new location (see above).
492 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
493 New methods, for "generic" device listeners.
494 (spi_controller_register_device_listener):
495 Now handle mouse event listeners as well as key listeners.
496 (spi_controller_notify_mouselisteners):
498 (spi_device_event_controller_forward_mouse_event):
499 Now we notify mouse device listeners as well as generating the
500 non-consumable "mouse:" events.
502 We must check and restore the XKB
503 modifier map if we consume the event, since the act of triggering
504 a mouse event will normally reset the XKB latch. This is required for
506 (spi_controller_register_with_devices):
507 Load the XKB settings when registering, and register for XKB
509 (spi_key_eventtype_seq_contains_event):
510 Renamed spi_eventtype_seq_contains_event, since it's used
511 internally for all device event types now.
512 (spi_key_event_matches_listener):
513 Uses spi_eventtype_seq_contains_event now.
514 (spi_device_event_controller_object_finalize):
515 Free the private data and the XkbKeyboard struct.
516 (impl_register_device_listener, impl_deregister_device_listener):
517 Implementation of new IDL.
518 (spi_deregister_controller_device_listener):
520 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
521 More efficient implementation, we don't have to create a new
522 XkbControls structure every time we query.
523 (spi_device_event_controller_class_init):
524 Initialize the epv entries for the new IDL. Assign the
525 "spi-dec-private" quark.
526 (spi_device_event_controller_init):
527 Initialize the private data.
528 (spi_device_event_controller_forward_key_event):
529 Removed a bogus CORBA_exception_free() call.
531 * registryd/deviceeventcontroller.h:
532 Replaced inclusion of keystrokelistener.h with
535 * test/event-listener-test.c:
536 (report_mouse_event):
539 Added mouse-event device listener.
541 * test/test-simple.c:
542 (create_test_window):
543 Fixed regression (we were instantiating a GtkRange,
544 which is now an abstract class). Also fixed to match
545 existing AtkRole names, this seems to have changed in ATK
546 awhile ago; too late now I think, and the new
547 mechanism is at least elegant and consistent with the
548 glib enum "nick" APIs.
550 2002-11-15 Darren Kenny <darren.kenny@sun.com>
552 * idl/Accessibility_Relation.idl:
553 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
554 RELATION_EMBEDS,RELATION_EMBEDDED_BY
555 * idl/Accessibility_Role.idl:
556 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
557 * idl/Accessibility_State.idl:
558 add STATE_MANAGES_DESCENDANTS
559 * test/event-listener-test.c:
560 Added a listener for active-descendant events.
562 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
564 * atk-bridge/bridge.c
565 (atk_bridge_init): If application is Bonobo component wait until top
566 level is added before registering
567 (spi_atk_bridge_do_registration): New function which contains code,
568 formerly in atk_bridge_init, to do application registration.
569 (spi_atk_bridge_toplevel_added): Signal called when top level
570 added to Bonobo component
572 This fixes bug #83134.
574 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
576 * registryd/deviceeventcontroller.c
577 Fixed compilation error caused by calling gettimeofday()
580 2002-10-18 Bill Haneman <bill.haneman@sun.com>
585 Added template for HAVE_XKB.
588 Changes to check for XKB, and to set the HAVE_XKB #define if it
592 ()impl_notify_event): Make failure to get event source name
595 * registryd/deviceeventcontroller.c:
596 (#include): include X11/XKBlib.h.
597 (DEControllerPrivateData) : New struct.
598 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
600 (dec_synth_keycode_press) (dec_synth_keycode_release):
601 New methods; split the key synthesis code into these methods.
602 They check XKB settings before determining the "time" values to
603 pass to Xtest; this fixes bug #95828.
604 (impl_generate_keyboard_event): Changed to use methods above,
605 instead of callng Xtest directly.
606 (spi_device_event_controller_init): Initialize new privae struct s
608 (spi_device_event_controllr_object_finalize):
609 Free the (new) private data.
611 * registryd/deviceeventcontroller.h:
612 Add new gpointer to end of struct data.
614 2002-10-16 Bill Haneman <bill.haneman@sun.com>
617 Incremented revision to 1.1.2, SONAME is still '.so', library
618 extensions are ".so.0.0.2".
620 * registryd/deviceeventcontroller.c:
621 FIXES FOR #93592 and #95940.
622 (statics): renamed mouse_button_state to mouse_mask_state,
623 added key_modifier_mask.
624 (spi_dec_poll_mouse_moved):
625 Added key modifier checks, and emit "keyboard:modifiers"
626 events when the key modifiers currently in use change.
627 Also generate "mouse:abs" events periodically, even if the mouse
628 is stationary (should we?).
629 Alternatively we could generate "mouse:abs" events for either all
630 mouse movements, or every 'nth' mouse movement, or at the
631 beginning and end of every "active" mouse period.
633 * test/event-listener-test.c:
634 (main): Added listener for "keyboard:modifiers" events.
636 2002-10-15 Bill Haneman <bill.haneman@sun.com>
639 Added key mask #defines for mouse buttons; e.g.
640 SPI_KEYMASK_BUTTON1, etc.
643 Incremented dependency on ATK to version 1.1.0. (This dependency
644 is probably premature but will soon be real enough).
646 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
648 * libspi/hyperlink.[ch]
649 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
650 (get_hyperlink_from_servant): Check object is AtkHyperlink not
653 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
658 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
660 * registryd/deviceeventcontroller.c
661 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
662 events to be ignored.
663 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
664 keyboard_mode so that XAllowEvents() can be called.
668 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
670 * cspi/spi-accessible.c: Correct names of roles returned by
671 AccessibleRole_getName(). Fixes bug #95055.
673 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
675 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
678 * registryd/registry.c
679 (desktop_remove_application: Write diagnostic message to stderr for
682 (impl_accessibility_registry_deregister_global_event_listener):
683 Correct size of lists array. This addresses bug #94555).
685 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
687 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
690 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
692 * registryd/Makefile: Add CLEANFILES so that .server file is removed
695 * registryd/registry.c (impl_registry_notify_event): Remove
696 unnecessary call to parser_event_type().
698 * docs/reference/cspi/tmpl/spi_component.sgml:
699 Add reference to SPI_LAYER_WINDOW.
701 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
703 * registryd/registry.c
704 (desktop_add_application): Remove leak.
705 (desktop_remove_application): Remove leak.
706 (parser_event_type): Remove leak.
708 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
710 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
711 bogus call to CORBA_string_dup(). Also removed unnecessary
712 g_string_dup/g_free calls.
714 2002-09-13 Bill Haneman <bill.haneman@sun.com>
716 * registryd/deviceeventcontroller.c:
717 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
719 * test/event-listener-test.c:
720 main: commented out three redundant listeners, to reduce output
721 noise. (They still are potentially useful for testing).
724 2002-09-13 Michael Meeks <michael@ximian.com>
726 * Update all the copyrights to include Ximian.
728 2002-09-06 Mark McLoughlin <mark@skynet.ie>
730 * cspi/spi.h: add SPI_LAYER_WINDOW.
732 * cspi/spi_component.c: (AccessibleComponent_getLayer):
733 add Accessibility_LAYER_WINDOW case.
735 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
737 * libspi/component.c: (impl_accessibility_component_get_layer):
738 add ATK_LAYER_WINDOW case.
740 2002-08-28 Bill Haneman <bill.haneman@sun.com>
742 * configure.in: incremented micro version.
744 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
746 2002-08-20 Bill Haneman <bill.haneman@sun.com>
749 Clarified and reworded our commit policy.
752 Started an API "todo" addition list for 2.2.
756 Free char pointer from atk_text_get_selection, which was being leaked.
758 2002-08-19 Bill Haneman <bill.haneman@sun.com>
761 Small revision to author acknowledgement.
763 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
765 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
766 If signal has detail add it to the type of the event.
769 2002-08-12 Michael Meeks <michael@ximian.com>
771 * test/test-simple.c (global_listener_cb): bin bogosity.
772 (test_keylisteners): disable, still doesn't work reliably,
773 certainly not on my system anyway.
775 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
776 don't leak a reference on the DEC. This round-trip
777 fetching of the DEC per keystroke sucks, it should be
780 * cspi/spi-private.h,
781 * cspi/cspi-lowlevel.h,
782 * cspi/bonobo/cspi-bonobo-listener.[ch],
783 * cspi/bonobo/cspi-bonobo.c: get the copyright
784 notices better - there is still a large amount of
785 work in at-spi falsely attributed solely to Sun.
787 * cspi/spi_main.c (cspi_object_ref): kill bogus
788 hash lookup, just increment the ref.
789 (SPI_freeString): make explicit the fact that we
790 handle NULL strings just fine.
791 (report_leaked_ref): obey coding standards.
792 (cspi_object_hash, cspi_object_equal): kill retval.
793 (cspi_object_release): only release if not on loan.
794 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
795 (cspi_object_borrow, cspi_object_return): impl.
797 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
798 use cspi_object_borrow / return.
800 2002-08-12 Darren Kenny <darren.kenny@sun.com>
802 * cspi/bonobo/cspi-bonobo-listener.c:
804 Don't call cspi_oject_new() because this is creating a new Accessible
805 every single time that an event is fired. This causes ATs like at-poke
806 to nolonger recognise the source of the event and thus ignore it.
807 Re-use the object from the cache, ref it and then unref it after the
808 listeners have been called.
810 2002-08-06 Darren Kenny <darren.kenny@sun.com>
812 * test/event-listener-test.c:
813 Added command-line options to disable mouse events (m) and
816 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
818 * configure.in: Update required versions of ATK, GTK+ and GAIL
820 * cspi-1.0.pc.in: Add dependency for X include files
823 * cspi/bonobo/Makefile.am:
824 Add $(X_CFLAGS) so that X include files
825 are picked up even if not in standard place (bug #71686)
827 2002-06-25 Bill Haneman <bill.haneman@sun.com>
829 * registryd/deviceeventcontroller.c: fix for 84261
830 (spi_dec_mouse_moved):
831 Added test of mouse button mask, so that we can detect mouse
832 button release. Unfortunately we can't otherwise detect mouse
833 button release events without consuming the mouse press event,
834 because of the way XGrabButton works. This means that our mouse
835 release events have a latency dependent on the polling period
836 while the mouse button is down. At least in this case we only
837 have to poll while the button is down, and not at other times.
838 If the button masks don't match with what the last press event
839 reported, we report the appropriate button release event.
840 (spi_dec_ungrab_mouse):
841 New method (not yet called).
842 (spi_device_event_controller_forward_mouse_event):
843 New method, sends mouse press event from GdkFilter.
844 (spi_dec_init_mouse_listener):
845 Added code to call XGrabButton, redirecting mouse button events to
846 the root window and our Gdk event loop.
848 Added code to filter mouse button events, and reordered.
850 * test/event-listener-test.c:
852 Added registration for mouse events of type "mouse:button".
854 2002-06-25 Bill Haneman <bill.haneman@sun.com>
856 * registryd/deviceeventcontroller.c: partial fix for 84261
857 (spi_dec_poll_mouse_idle):
858 New method, a timeout which checks to see if the mouse
860 (spi_dec_poll_mouse_moving):
861 A timeout to be called when mouse motion is underway.
862 (spi_dec_poll_mouse_moved):
863 A method which fires an event if the mouse has moved, and reports
864 whether or not it did so.
865 (spi_dec_init_mouse_listener):
866 A method which sets up the timeouts above.
867 (spi_device_event_controller_new):
868 Now calls spi_dec_init_mouse_listener.
870 * registryd/registry.c:
872 Now we initialize the device event controller when the registry is
873 initialized, instead of waiting until a client has requested a key
874 event notification; this is because we need the event controller
875 for mouse events, but the mouse event registration API is a
876 "registry" call and doesn't explicitly call the
877 deviceeventcontroller.
878 We now report mouse motion events with a 100 ms idle latency and
879 a 20 ms granularity when motion is in progress.
881 * test/event-listener-test.c:
883 We now register the "detail listener" for events of type
884 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
885 delivered only for the first mouse event received, and thereafter
886 "mouse:abs" events are delivered.)
888 * cspi/spi_registry.c:
889 DOCS: Documented the above mouse event typestrings.
891 2002-06-21 Bill Haneman <bill.haneman@sun.com>
893 Happy Summer Solstice...
895 * registryd/deviceeventcontroller.c: [fix for bug 84100]
896 (spi_controller_notify_keylisteners):
897 Changes to remove a listener from the listener list, freeing its
898 open keygrabs, if a notification to that listener fails. This
899 means that although a dead listener can continue to hold a passive
900 keygrab, a maximum of one dispatch to such a listener can fail
901 before the listener is removed from the list, thus the keygrab
902 will be released on the next occurrence.
904 (spi_notify_keylisteners):
905 Renamed to spi_controller_notify_keylisteners, as the controller
906 instance must now be passed as an argument.
907 The copied 'notify' GList is now a list of DEControllerKeyListener
908 objects, since we need more than just the CORBA reference if a
909 notify fails and we need to deregister the listener.
910 (impl_notify_listeners_sync):
911 (impl_notify_listeners_async):
912 (spi_device_event_controller_forward_key_event):
913 Modify use of notify_keylisteners in accordance with above
915 (spi_deregister_controller_key_listener):
916 New method introduced by refactoring, from
917 impl_deregister_keystroke_listener.
918 (impl_deregister_keystroke_listener):
919 Call spi_deregister_controller_key_listener.
920 (spi_key_listener_clone):
921 New method to copy a key listner without doing a 'ref' on the
922 remote object instance; used to create a notifier list.
923 (spi_key_listener_data_free):
924 New method, frees data without unreffing the source.
926 (spi_key_listener_clone_free): new method.
927 (spi_key_listener_free):
928 refactored to call spi_key_listener_data_free.
930 2002-06-20 Bill Haneman <bill.haneman@sun.com>
932 * registryd/registry.c: [fix for bug 86048]
933 (notify_listeners_cb):
934 Clear CORBA system exceptions which occur when notifying
935 listeners, before returning to the source of the original event,
936 since the event source doesn't care if the relayed notify failed.
937 In other words, don't complain to the atk-bridge if the registry
938 could not notify all its listeners, that's no fault of the
939 application and thus should not appear to be an error from the
940 application's perspective.
942 * cspi/spi_main.c: [fix for bug 85980]
944 Replaced use of bonobo_object_dup_ref with call to the wrapper
945 method, csou_dup_ref (); this silences a compiler warning and
946 provided more portability.
948 Ping the registry before return, and restart if necessary.
950 * cspi/bonobo/cspi-bonobo.c:
954 Fixed this method to return an object reference, as it should have
957 * cspi/cspi-lowlevel.h:
958 Added internal definition for cspi_ping() and fixed
959 return type of cspi_dup_ref().
962 2002-06-19 Bill Haneman <bill.haneman@sun.com>
964 * atk-bridge/bridge.c: [fix for bug 85305]
965 (spi_atk_bridge_register_application):
966 New method where the initial application registry calls have been
967 moved; it allows an application to re-register in response to
968 certain error conditions (such as a registry restart, see below).
970 Moved some initialization code to the method
971 spi_atk_bridge_get_registry, below.
972 (spi_atk_bridge_get_registry):
973 New, private accessor function for the Accessibility_Registry
974 instance. If the registry has not been started before, or has
975 died (as detected by failure of a CORBA exception), it is
976 restarted before return, and spi_atk_bridge_register_application
977 is called again to register with the new bridge instance.
978 (spi_atk_emit_eventv):
979 Set registry_died on error; use spi_atk_bridge_get_registry () to
982 * registryd/registry.c:
983 (impl_accessibility_registry_register_global_event_listener):
984 Set listener's event_type_quark to etype.minor instead of
985 etype.major (fix for bug 84856).
987 * test/event-listener-test.c:
988 (report_detail_event):
989 Change the output string so that user/tester can tell that the
990 'detail listener' was called instead of the 'generic listener'.
992 2002-06-18 Bill Haneman <bill.haneman@sun.com>
994 Fixes for bugs 84900, 84908, 84897, 84898.
999 Revved version to 1.1.0
1000 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1001 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1003 * idl/Accessibility_Registry.idl:
1004 (EventListener::notifyEvent):
1005 Removed 'oneway' directive after extensive consulation with
1006 ORBit2 team and others. This means also that unref() of the event
1007 source can and should be done synchronously after emission, rather
1008 than remotely in the client, after servicing the notify call on
1011 NOTE: This change speeds up listener performance considerably, but
1012 introduces new latency on the application side. We may want to
1013 add an event queue to the atk-bridge.
1015 * atk-bridge/bridge.c:
1016 (spi_atk_bridge_focus_tracker):
1017 Do a local unref() on the event source after emission.
1019 * registryd/registry.c:
1020 (desktop_remove_application):
1021 Do an unref() on the event source after emission.
1022 (desktop_add_application):
1023 Do an unref() on the event source after emission.
1024 (notify_listeners_cb):
1025 When relaying an event, don't automatically add the event source
1026 to the local object cache, just CORBA_dup it instead. Likewise,
1027 if this method reenters, release the ref rather than calling
1029 (impl_registry_notify_event):
1030 No longer call remote unref() on the event source after dispatch.
1032 * libspi/eventlistener.c:
1033 (impl_accessible_event_notify_event):
1034 Removed remote unref ()
1036 * cspi/bonobo/cspi-bonobo-listener.c:
1038 We now call cspi_object_new() instead of cspi_object_add() on
1039 receipt of an event; thus we only have an implicit object ref
1040 while the cspi_event method is being executed. If we need to keep
1041 a reference to the object, the listener must call ref() on the
1042 object. Thus also we don't need to call cspi_object_unref() after
1043 invoking the listener callbacks in this method.
1047 New internal API for creating a new cspi object, without adding it
1048 to the object cache.
1050 Now uses cspi_object_new() to create the cspi object instance.
1052 Now checks to see if the object is in the internal object cache,
1053 and adds it if necessary before incrementing its refcount (note
1054 that new objects are added with a refcount of 1).
1055 (report_leaked_ref):
1056 New method which gives some information on leaked object instances
1057 if leak detection is turned on.
1059 * test/event-listener-test.c:
1060 (timing_test_event):
1061 New method, used for testing event delivery timing for special
1062 events of type "object:test". It reports elapsed time and
1063 events/sec every 500 events.
1065 Added a new listener, 'test listener', to check timing of event
1066 receipt as noted above.
1068 Added some timing output here also, reports elapsed time every 100
1071 * test/stress-test.c:
1072 Emit events of type "object:test", for use with "event-listener-test".
1074 * test/test-simple.c:
1075 (global_listener_cb):
1076 Call Accessible_ref() on the event source before calling
1077 validate_accessible, since the validation process does pointer
1078 comparisons on the event source, meaning that the event source
1079 needs to be added to the local object cache first. Any use of
1080 such pointer comparisons between Accessible objects requires that
1081 the caller hold an explicit reference to those objects.
1082 We also must therefore call Accessible_unref() when leaving this method.
1084 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1086 * registryd/deviceeventcontroller.c:
1087 (spi_controller_update_key_grabs):
1088 Fix for #84735, subsequent keygrab listeners not informed of
1089 registration failure.
1092 (spi_base_construct):
1093 Add an assertion on construct, to make sure the GObject passed in
1094 is really a GObject.
1096 Explicitly initialize object->gobj pointer to NULL;
1098 * cspi/bonobo/cspi-bonobo-listener.c:
1099 (cspi_object_add_ref):
1100 New method, can specify whether to dup-ref a bonobo object passed
1101 in if it's newly added to the object cache.
1103 Now calls cspi_object_add_ref with second param of "FALSE". This
1104 prevents us from doing a pointless dup-ref followed by
1105 release-unref for all those cases where the object is already in
1106 our object cache (fix for #85205).
1108 * atk-bridge/bridge.c:
1109 (spi_atk_bridge_idle_init):
1110 Removed this method, we don't need to initialize in an idle
1113 Changed to call spi_atk_register_event_listeners directly, not via an
1114 idle handler. (fix for #81139)
1115 (gnome_accessibility_module_shutdown):
1116 Removed conditional around deregistration of listeners, since we
1117 don't use the idle handler and thus have always registered when
1119 (spi_init_keystroke_from_atk_key_event):
1120 Changed references to Accessibility_KEY_PRESSED to
1121 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1123 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1125 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1130 * test/stress-test.c:
1133 (may have been an incomplete commit yesterday?)
1135 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1138 Added target for new stress-test.
1140 * test/stress-test.c:
1141 New test, sends 1000 focus notifies in quick succession.
1143 * test/key-listener-test.c:
1144 Now we report whether a keylistener registration
1145 request succeeded or failed.
1147 * test/event-listener-test.c:
1148 Uncommented some listeners which are now implemented.
1151 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1153 * registryd/deviceeventcontroller.c:
1154 (spi_controller_update_key_grabs):
1155 Fix for #82509, lack of failure notification when
1156 ALL_WINDOWS keygrabs fail due to XGrabKey
1157 failure: we synchronize the server when
1158 registering a passive grab, to make sure we get the
1159 error message before the call returns.
1161 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1163 * test/test-simple.c:
1165 Removed #ifdef KEY_IMPL_WORKS guards.
1166 (test_keylisteners):
1167 Removed #ifdef KEY_IMPL_WORKS guards.
1168 Fixed bug which was causing a hang waiting for a
1169 "press" event (which was already overwritten by a "release"
1170 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1172 Added code to set globals 'key_press_received' and
1173 'key_release_received'.
1176 Added section "1.1 API Proposed Additions" which
1177 lists API additions desired for at-spi-1.1 (only one so far).
1178 Updated TODO list a little.
1180 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1182 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1185 * configure.in: Revved to 1.0.0.
1187 * idl/Accessibility_Registry.idl:
1188 (registerKeystrokeListener):
1189 Added boolean return value.
1191 * registryd/registry.c:
1192 (notify_listeners_cb): Minor fix to debug output.
1194 * registryd/Accessibility_Registry.server.in.in:
1195 Revved version number in OAFIID to 1.0.
1197 * registryd/registryd.c:
1199 Use new OAFIID version.
1201 * cspi/bonobo/cspi-bonobo.c:
1203 Use new OAFIID version.
1209 * atk-bridge/bridge.c:
1211 Use new OAFIID version.
1213 * registryd/deviceeventcontroller.c:
1214 (impl_register_keystroke_listener):
1215 Added CORBA_boolean return value.
1216 (spi_controller_register_device_listener):
1217 Added gboolean return value.
1218 (spi_controller_register_global_keygrabs):
1219 Added gboolean return value.
1220 (spi_key_set_contains_key):
1221 Added implementation for many more control keys,
1222 for instance F1-F12, arrow keys, End, Home, Page_Up,
1224 [TODO: some still not implemented].
1226 * text/screen-review-test.c:
1227 (text_chunk_pad_string):
1228 New function: it provides mapping between coordinate
1229 positions of text chunks and character positions in the
1230 screen-review-line output string.
1231 (text_chunk_to_string):
1232 New function, calls text_chunk_pad_string with various
1233 pad/delimiter characters. Pushbuttons are delimited with
1234 square brackets, Frames with vertical 'pipe' lines, and
1235 other text with double quotes.
1236 (text_chunk_list_to_string):
1237 Calls new function text_chunk_to_string.
1238 (toplevel_composite):
1239 New function to composite layers CANVAS through
1240 POPUP in each toplevel (other layers are composited
1241 across toplevels, i.e. BACKGROUND and OVERLAY).
1242 (review_buffer_composite):
1243 Revise to use new methods.
1249 2002-05-31 Laszlo Peter <laca@sun.com>
1251 * configure.in: add the Xtst libdir to the runpath on Solaris,
1252 since it's not in the default library search path.
1254 2002-05-29 jacob berkman <jacob@ximian.com>
1256 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
1258 2002-05-29 Bill Haneman <bill.haneman@sun.com>
1260 * test/screen-review-test.c:
1261 (text_chunk_pad_string):
1262 Added method, which pads the string according to the
1263 text bounds of the chunk. It also takes a 3-character
1264 string as a param which indicates the characters to be
1265 used for start, padding, and end delimitation of the chunk.
1266 (text_chunk_to_string):
1267 Changed to use text_chunk_pad_string.
1269 * configure.in: Fixed bug in AC_OUTPUT that was
1270 causing path substitution in Accessibility_Registry.server
1273 2002-05-23 Bill Haneman <bill.haneman@sun.com>
1275 * text/screen-review-test.c:
1276 (guess_string_clip):
1277 New method which attempts a best-guess at clipping
1278 text from components (like Java labels) which don't
1279 actually implement AccessibleText. This inaccurate
1280 clip is based on the assumption that the label is
1281 justified left-and-right, and monospaced.
1282 (text_chunk_get_clipped_string):
1283 We now call guess_string_clip() for text-containing
1284 components that don't implement AccessibleText.
1286 * test/screen-review-test.c:
1287 (review_buffer_get_text_chunk):
1288 We now pull "name" from labels if they do not implement
1289 AccessibleText (i.e. for Java labels).
1290 (get_screen_review_line_at):
1291 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
1294 Replaceded AC_OUTPUT target
1295 registryd/Accessibility_Registry.server with
1296 registryd/Accessibility_Registry.server.in.
1298 * registryd/Accessibility_Registry.server.in:
1299 Removed (this is now a Makefile target).
1301 * registryd/Accessibility_Registry.server.in.in:
1302 Added (source for target above). We now use $(libexecdir) as
1303 prefix for the executable at-spi-registryd.
1305 * registry/Makefile.am:
1306 Now install at-spi-registryd into $(libexecdir), and build .server
1307 file with path (see above).
1309 2002-05-22 Bill Haneman <bill.haneman@sun.com>
1311 * test/screen-review-test.c:
1312 (text_chunk_get_clipped_string):
1313 We now check to see if words fall within clip bounds
1314 before resorting to character-by-character clip bounds testing.
1316 * TODO: Added a section for "2.2 Proposed API Additions".
1318 2002-05-21 Bill Haneman <bill.haneman@sun.com>
1320 * test/screen-review-test.c:
1322 Added a screen review benchmarking and test program to test
1325 * cspi/spi_accessible.c:
1327 Made some of the debug strings passed to cspi_check_ev a
1328 little more specific.
1330 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
1332 * test/screen-review-test.c: Fix crashes in debug statements
1334 2002-05-20 Bill Haneman <bill.haneman@sun.com>
1336 * test/screen-review-test.c: Added this file.
1338 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1340 * atk-bridge/bridge.c: changed "object:state-change" to
1341 "object:state-changed" to match docs.
1343 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1345 * atk-bridge/bridge.c: Hooked up state-change event details.
1347 2002-05-11 Bill Haneman <bill.haneman@sun.com>
1349 * registryd/registry.c:
1350 Fixed quarking bug in event string parsing; now events with
1351 detail parameters get matched correctly to listeners.
1354 * util/idl/Magnifier.idl: remove.
1356 * util/*.[ch]: Remove.
1357 Magnification utilities and IDL are now in module gnome-mag.
1359 2002-05-10 Bill Haneman <bill.haneman@sun.com>
1361 * registryd/deviceeventcontroller.c:
1362 Fixed bug in grab key conversion which was causing keycode grabs
1363 to be converted to AnyKey grabs.
1366 updated NEWS file to reflect recent spin-off of gnome-mag.
1368 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
1370 * cspi/spi_accessible.c: Added exception checks. Fixed completely
1371 busted AccessibleStateSet_compare. Removed redundant casts.
1373 * cspi/spi-action.c: Removed redundant casts.
1375 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
1377 * cspi/spi_component.c: Fixed typos and casting error.
1379 * cspi/spi_editabletext.c: Removed redundant casts.
1381 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
1383 * cspi/spi_hypertext.c: Eliminated redundant casts.
1385 * cspi/spi_image.c: Eliminated redundant casts.
1387 * cspi/spi_registry.c: Eliminated redundant casts.
1388 SPI_deregisterGlobalEventListenerAll () removed retval variable.
1389 * cspi/spi_selection.c: Removed redundant casts.
1390 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
1391 handling. Screen geometry and text offsets were being returned as 0
1392 on error which is technically valid-- changed these to return -1.
1393 Added marshaller for text boundary types to fix bug with boundary
1394 types being passed incorrectly to atk.
1396 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1399 * cspi/spi_registry.c:
1400 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
1401 which was uncovered by the recent key changes.
1403 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1405 * test/event-listener-test.c:
1407 Added new test, "event-listener-test";
1408 this code does two things; it benchmarks traversal time
1409 for the accessible hierarchy for the first running accessible
1410 app, and it connects listeners for all supported event types.
1411 It is thus useful as an example event listener and for
1412 diagnostics/debugging of event generation.
1414 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1417 Removed unnecessary dependency on libutil.
1420 Revved micro version: 0.13.1
1422 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1425 Removed util/Makefile from targets.
1428 Removed util subdir from SUBDIRS (temporarily,
1429 pending removal of magnifier-only code
1433 #ifdef-ed out magnifier dependencies, since
1434 magnifier IDL, headers, and binary now live in
1435 module gnome-mag and we don't want at-spi to depend
1436 on gnome-mag. A magnifier demo which can run alongside
1437 simple-at is forthcoming in the gnome-mag module.
1439 NOTE: Split magnifier binary, IDL, and magnification
1440 activation code from at-spi into module gnome-mag.
1442 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
1444 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
1445 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
1447 2002-05-03 Bill Haneman <bill.haneman@sun.com>
1450 Revved to version 0.13.0
1452 * idl/Accessibility_Registry.idl:
1453 Changed definition of KeySet from sequence of longs to sequence of
1454 KeyDefinitions, and added KeyDefinition struct.
1455 Required for fix to bug 80616.
1457 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
1458 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
1459 to use new definition (see above).
1461 * registryd/deviceeventcontroller.c: handle_keygrab(),
1462 spi_keyset_contains_key():
1463 Changed to make use of new struct; this allows matching based on
1464 string key-name, for instance "Tab". This also allows matching of
1465 composed characters, non-alphanumeric characters in a way that
1466 doesn't involve dependencies on X keysym codes directly, etc.
1468 * test/key-listener-test.c:
1469 Added test for Alt-Tab key using "string" specification of keyset,
1470 and modified one of the tests to use a keycode-based keyset.
1471 Thus this test both tests and demonstrates the creation and use of
1472 keysets of three forms: specified via keycode array,
1473 keysym array, and string array. (The string case only contains a
1474 single string, i.e. a string array of length 1).
1477 Turned on PRINT_TREE option by default. Also fixed a
1478 string-freeing bug in the PRINT_TREE code.
1479 Added a listener to window:minimize events.
1481 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
1483 * atk-bridge/bridge.c:
1484 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
1485 for window:activate and window:deactiveate
1486 (atk_bridge_property_event_listener atk_bridge_signal_listener
1487 atk_bridge_window_event_listener) Tidy debug code
1489 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
1491 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
1492 Fixed handling for NULL return value from ATK.
1494 * libspi/action.c libspi/component.c libspi/editabletext.
1495 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
1496 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
1497 Removed redundant casts.
1499 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
1500 Fixed off by one bug.
1502 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
1503 function not present in idl)
1505 2002-05-02 jacob berkman <jacob@ximian.com>
1507 * atk-bridge/Makefile.am: make atk-bridge a real module
1509 2002-04-26 Radek Doulik <rodo@ximian.com>
1511 * libspi/stateset.c (spi_init_state_type_tables): fix size of
1512 atk_state_types table
1514 2002-04-22 jacob berkman <jacob@ximian.com>
1517 * libspi/Makefile.am: add deps on the built files to help
1518 automake, and don't version the ORBit typelib
1520 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
1522 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
1523 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
1524 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
1525 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
1526 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
1527 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
1528 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
1529 libspi/accessible.h libspi/accessible.h libspi/base.h
1530 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
1531 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
1532 libspi/relation.h libspi/remoteobject.h libspi/selection.h
1533 libspi/spi-private.h libspi/statetset.h libspi/table.h
1534 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
1535 util/mag_client.h util/mag_control.c util/mag_image.c
1536 util/mag_image.h util/magnifier.c util/magnifier.h:
1537 Add missing file headers; standardize existing ones
1539 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
1541 * atk-bridge/bridge.c: Added window event support.
1543 2002-04-18 Michael Meeks <michael@ximian.com>
1545 * libspi/relation.c (impl_getNTargets): impl.
1546 (impl_getTarget): impl.
1548 * libspi/Makefile.am: fix stateset install.
1550 2002-04-17 Bill Haneman <bill.haneman@sun.com>
1553 Started putting useful info in this file.
1555 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
1557 * atk-bridge/bridge.c:
1558 Propagate state-changed notifications to ATs
1560 * cspi/spi_registry.c: update docs to reflect actual behavior of
1561 state-change events.
1563 2002-04-17 Bill Haneman <bill.haneman@sun.com>
1566 Incremented version to 0.12.1
1568 * util/mag_client.h:
1569 Add missing declaration for magnifier_exit,
1570 used by mag_control.c - Forte compiler didn't like
1571 the implicit redeclaration of the function :-(
1574 2002-04-16 Bill Haneman <bill.haneman@sun.com>
1577 Revved version to 0.12 due to API change (see below).
1579 * cspi/spi-roletypes.h:
1580 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
1581 definition from the inline docs, and added docs
1582 for SPI_ROLE_LAST_DEFINED.
1585 * cspi/spi_streamablecontent.c:
1586 Added missing seek_type parameter to
1587 (so far unused) method,
1588 AccessibleStreamableContent_seek().
1589 [ RT approval JodyG. ]
1592 Fixed docs for SPI_createAccessibleKeystrokeListener.
1594 * cspi/spi_registry.c:
1595 Fixed docs for SPI_KEYSET_ALL_KEYS.
1597 * docs/reference/cspi/at-spi-cspi-sections.txt:
1598 Added a number of missing APIs to SECTIONS.
1600 2002-04-16 Bill Haneman <bill.haneman@sun.com>
1602 * registryd/Makefile.am:
1604 * cspi/bonobo/Makefile.am:
1605 Add $(X_LIBS) to makefiles.
1607 2002-04-15 Bill Haneman <bill.haneman@sun.com>
1610 Revved version to 0.11.
1612 * libspi/component.c:
1613 Added implementation for grabFocus.
1615 * idl/Accessibility_Component.idl
1616 (Accessibility_Component_grabFocus):
1617 Made this method return boolean to indicate success or failure, to
1618 be consistent with cspi and the corresponding ATK method.
1620 * idl/Accessibility_Selection.idl
1621 (Accessibility_Selection_selectAll) :
1622 Made these methods return boolean to indicate success or
1623 failure, to be consistent with cspi and the corresponding ATK methods.
1625 * idl/Accessibility_EditableText.idl
1626 (Accessibility_EditableText_setTextContents,
1627 Accessibility_EditableText_insertText,
1628 Accessibility_EditableText_cutText,
1629 Accessibility_EditableText_deleteText,
1630 Accessibility_EditableText_pasteText):
1631 Made these methods return boolean to indicate
1634 * cspi/spi_editabletext.c:
1635 Made these methods return booleans.
1637 * libspi/selection.c:
1638 * libspi/component.c:
1639 * libspi/editabletext.c:
1640 Connected the boolean returns from ATK
1641 to the server-side code referenced above.
1643 2002-04-14 Bill Haneman <bill.haneman@sun.com>
1645 * idl/Accessibility_Table.idl: Added missing methods,
1646 Accessibility_Table_addRowSelection,
1647 Accessibility_Table_addColumnSelection,
1648 Accessibility_Table_removeRowSelection,
1649 Accessibility_Table_removeColumnSelection.
1652 Added C wrappers for above IDL:
1653 AccessibleTable_addRowSelection,
1654 AccessibleTable_addColumnSelection,
1655 AccessibleTable_removeRowSelection,
1656 AccessibleTable_removeColumnSelection.
1659 Added server-side implementation code for IDL above, connecting
1660 to pre-existing ATK api.
1662 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
1664 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
1666 * libspi/accessible.c: Added implementation fo
1667 Accessibility_Accessible_get_state.
1669 * libspi/libspi.h: Added stateset.h to the list of includes.
1671 * libspi/stateset.c: Fixed broken implementation.
1673 2002-04-13 Bill Haneman <bill.haneman@sun.com>
1676 Added implementation code for Accessibility_Magnifier_exit ().
1678 * util/mag_control.c:
1679 Added test code for above method; you can
1680 now kill an existing magnifier via
1681 ./mag_control q, from the util directory.
1683 * test/key-listener-test.c:
1685 Added a new test, for our key listener API.
1687 2002-04-11 Bill Haneman <bill.haneman@sun.com>
1689 * test/app.c, test/keysynth-demo.c:
1691 Replace use of snprintf with g_snprintf.
1692 (fix for bugzilla 78249)
1694 2002-03-27 Michael Meeks <michael@ximian.com>
1698 * util/Makefile.am (INCLUDES): fix.
1699 (DONT_DIST_SOURCE): don't distribute the
1702 * libspi/Makefile.am (dist-hook): ditto.
1704 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
1706 * libspi/hypertext.c:
1707 Fix warnings when yelp is used with atk-bridge
1709 2002-03-21 Michael Meeks <michael@ximian.com>
1711 * libspi/application.c (spi_application_new):
1712 use spi_accessible_construct so we use the AtkObject
1715 2002-03-19 Michael Meeks <michael@ximian.com>
1717 * registryd/registry.c (desktop_remove_application),
1718 (desktop_add_application): clean coding style.
1720 * registryd/desktop.c (spi_desktop_remove_application),
1721 (spi_desktop_add_application): kill re-enterency hazards.
1722 (spi_desktop_dispose): remove bogus redundant cast
1723 obscuring bug; fix bug too.
1724 (spi_desktop_init): make the desktop object immortal.
1726 2002-03-16 Bill Haneman <bill.haneman@sun.com>
1729 Added a #define-guarded tree-traversal step
1730 when enumerating the apps (diagnostic tool).
1732 2002-03-15 Bill Haneman <bill.haneman@sun.com>
1734 * idl/Accessibility_Role.idl:
1735 Added ROLE_DRAWING_AREA which seemed to be missing from the
1738 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1740 * cspi/spi-roletypes.h cspi/spi_accessible.c
1741 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
1744 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
1745 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
1746 AT when applications are added and removed from the desktop. This
1747 reverts the previous broken implementation using the backing
1748 AtkObject for the SpiDesktop.
1750 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1752 * registryd/desktop.c: emit the "children-changed::add" and
1753 "children-changed::remove" signals on the backing ATK object for
1754 the desktop so AT can tell when applications are started and shut
1757 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1759 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
1761 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1763 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
1765 * cspi/spi_accessible.c: Implemented c bindings for stateset support
1767 * cspi/state-types.h: synched with IDL and ATK
1769 2002-03-13 Bill Haneman <bill.haneman@sun.com>
1771 * libspi/accessible.c
1772 (impl_accessibility_accessible_get_child_at_index):
1773 Change return value for g_return_if_fail ()
1774 to CORBA_OBJECT_NIL instead of "0" (!)
1776 * registryd/Makefile.am:
1777 * registryd/Accessibility_Register.server.in:
1778 Changed name of executable, "registryd",
1779 to something more informative:
1782 2002-03-13 Michael Meeks <michael@ximian.com>
1784 * atk-bridge/bridge.c (atk_bridge_init): don't register
1785 if we're in a bonobo-component, rather than a bonobo app.
1787 2002-03-13 Michael Meeks <michael@ximian.com>
1789 * atk-bridge/bridge.c (gtk_module_init): split
1790 out body to (atk_bridge_init): here, since otherwise
1791 we get symbol conflicts and oddness when invoked
1792 from (gnome_accessibility_module_init): here (upd.)
1794 2002-03-11 Bill Haneman <bill.haneman@sun.com>
1797 New file. Explicitly allow "build sheriff" putbacks provided
1798 they are tested on Solaris.
1800 * docs/reference/cspi/Makefile.am:
1801 Added '-' to the "cp" command for index.sgml.
1802 ("patch by thomasvs, soon coming to a GUADEC near you")
1805 Incremented version number (0.9.0) for new release.
1806 Changed macro that checks for popt, to better detect
1807 obsolete versions of popt.
1810 Added X_LIBS to AC_SUBST, for applications
1811 that call Xlib API directly.
1814 2002-03-07 Bill Haneman <bill.haneman@sun.com>
1817 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
1820 Fix regression caused by hard-coding major
1821 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
1824 * test/test-simple.c (test_editable_text),
1825 (test_test): revert previous change (error was
1826 a regression in gail which is now fixed).
1828 2002-03-04 Michael Meeks <michael@ximian.com>
1830 * test/test-simple.c (test_editable_text),
1831 (test_text): pass G_MAXINT instead of '-1' for
1832 whole string - is this a good thing !?
1834 * cspi/spi_accessible.c
1835 (Accessible_getRelationSet): fix crasher bug
1836 overwriting the end of the array.
1838 * test/test-simple.c (validate_accessible): free,
1839 not g_free returned relation set.
1841 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
1843 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
1844 implemented stateset support
1846 * idl/Accessibility_State.idl: Made necessary changes to
1847 the IDL to support state sets.
1849 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1851 * registryd/deviceeventcontroller.c:
1852 Added implementation for generateMouseEvent.
1854 * cspi/spi_registry.c:
1855 Connected new implementation for generateMouseEvent
1858 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1861 Incremented revision (but no change in public API
1862 outside of 'utils', which are not installed public yet.)
1864 * libspi/component.c:
1865 Changed to use atk_component API for layers and
1866 mdi_zorder, instead of deprecated atk_object API.
1868 Magnification Utility Enhancements:
1871 Added implementation of createZoomRegion, clearAllZoomRegions,
1872 resizeZoomRegion. Added new commandline argument
1873 "--no-initial-region". Note that clearAllZoomRegions doesn't
1874 unmap the old '0' region as it should (yet), and the other
1875 methods only work when creating/resizing a single region,
1876 which is "region 0".
1877 (Code for multiple region support will be added later.)
1880 Now we raise the magnifier window each time it's refreshed;
1881 this will help keep it on top.
1883 * util/mag_client.h:
1884 Added simple wrappers for above, used by mag_control.
1885 For general use, it's recommended to use the bonobo magnifier
1886 control API directly instead of using these wrappers.
1889 Moved ZoomRegionData from magnifier.c to this file.
1891 * util/mag_control.c:
1892 Added some code to exercise new IDL implementations.
1894 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
1896 * libspi/text.c: Provide implementation for getAttributes.
1898 2002-02-04 Bill Haneman <bill.haneman@sun.com>
1901 Incremented revision.
1903 * test/test-simple.c:
1904 Replaced use of deprecated g_main_iteration with
1905 g_main_context_iteration.
1907 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
1910 Incremented revision for desktop alpha 2.
1912 2002-01-28 Mark McLoughlin <mark@skynet.ie>
1914 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
1917 * test/simple-at.c: include netinet/in.h.
1919 2002-01-24 Mark McLoughlin <mark@skynet.ie>
1921 * cspi/spi_accessible.c: (Accessible_getRelationSet):
1922 use NULL, not CORBA_OBJECT_NIL.
1924 * libspi/accessible.c:
1925 (impl_accessibility_accessible_get_relation_set):
1926 allocate the sequence correctly.
1928 * libspi/remoteobject.h: kill spi_remote_object_new.
1930 * test/test-simple.c: (validate_accessible): add code
1931 to test relation sets, now all we need is to figure
1932 out how to excercise this code path :/
1934 2002-01-18 Michael Meeks <michael@ximian.com>
1936 * test/test-simple.c
1937 (key_listener_cb): consume the key.
1938 (test_keylisteners): update.
1939 (main): wait for any pending unrefs on events.
1941 * registryd/deviceeventcontroller.c
1942 (spi_controller_update_key_grabs): only re-issue the
1943 grab on a key release.
1944 (spi_device_event_controller_forward_key_event):
1945 refresh the keygrabs before we notify the listeners,
1946 to reduce the X ungrab / re-grab race.
1947 (spi_controller_register_with_devices): remove
1948 XSelectInput - we do that with the gdk_window_ call.
1949 (_spi_controller_device_error_handler): return a value.
1950 s/GDK_DISPLAY/spi_get_display/
1952 2002-01-17 Michael Meeks <michael@ximian.com>
1954 * registryd/deviceeventcontroller.c
1955 (_deregister_keygrab): don't blow out the later
1958 * test/test-simple.c (test_keylisteners): do a
1959 more intelligent validation.
1961 2002-01-14 Michael Meeks <michael@ximian.com>
1963 * atk-bridge/bridge.c
1964 (gnome_accessibility_module_init),
1965 (gnome_accessibility_module_shutdown): impl.
1966 (gtk_module_init): protect vs. double inits.
1967 (add_signal_listener): impl.
1968 (spi_atk_bridge_state_event_listener): kill
1969 (deregister_application): split out of
1970 (spi_atk_bridge_exit_func): here.
1972 2002-01-18 Bill Haneman <bill.haneman@sun.com>
1975 Added caret tracking when using magnifier, and
1976 now use text bounds for focus tracking of text elements, rather than
1977 the component bounds - this is helpful for short text fields in long
1978 table cells, at high magnification.
1980 2002-01-16 Bill Haneman <bill.haneman@sun.com>
1982 * registryd/deviceeventcontroller.c:
1983 Regression fix for keylistener de-registration; global keygrabs
1984 were not being released when deregisterKeystrokeListener was
1985 called in cspi, since
1986 Accessibility_DeviceEventController_deregisterKeystrokeListener
1987 was called with a zero-length keyset. That is because the cspi
1988 method, SPI_deregisterKeystrokeListener, does not take a keyset
1989 parameter but instead should remove all the key grabs held be a
1991 The code in impl_deregister_keystroke_listener was changed to copy
1992 the keylist from the listener instance previously registered with
1993 the DeviceEventController before releasing the grabs.
1995 * registryd/registry.c:
1996 * registryd/deviceeventcontroller.c:
1997 * libspi/spi-private.h:
1999 Changed spelling of "re-enterant" to "re-entrant" globally.
2001 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2003 * test/test-simple.c:
2004 Changed key listeners test - the test was slightly mis-using the
2005 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2006 It now uses '=' as the key event listened to and generated,
2007 relying on a keysym match rather than assuming that keycode 33
2008 is always equal to keysym '!'.
2010 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2013 Changed simple-at to use a specific keyset, rather than
2014 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2015 manager, desktop, etc.
2017 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2019 * registryd/deviceeventcontroller.c:
2020 Replaced standard X error handler with a special handler that
2021 is non-fatal for failed keygrabs. This works around
2022 problems with keygrab clashes sometimes observed on
2024 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2025 mouse handling code as yet).
2027 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2030 Incremented revision for desktop alpha release.
2033 Fixed a couple of the more glaring errors (still not
2036 2002-01-11 Michael Meeks <michael@ximian.com>
2038 * registryd/deviceeventcontroller.c
2039 (spi_device_event_controller_forward_key_event): kill
2040 XUngrabKey / XKeyGrab race.
2041 (spi_controller_grab_keyboard): rename to
2042 (spi_controller_update_key_grabs): this, and deal
2043 with incremental adding / removing grabs more
2045 (_register_keygrab): ensure we're not pending a remove.
2046 (spi_grab_mask_free): impl.
2047 (spi_controller_register_global_keygrabs): split out
2049 (handle_keygrab): impl.
2050 (_deregister_keygrab): impl.
2051 (spi_controller_deregister_global_keygrabs): impl.
2052 (spi_controller_update_key_grabs): re-issue the grab if
2053 we just recieved a notification.
2055 * test/test-simple.c (key_listener_cb): remove debug.
2057 * registryd/deviceeventcontroller.c
2058 (spi_controller_register_device_listener): after
2059 registering a global keygrab, actualy register it !
2060 don't wait for a timeout; doh !
2062 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2063 to make it more readable / manipulable.
2064 s/grabmask/grab_mask/ s/refcount/ref_count/
2065 s/keyval/key_val/ s/modmask/mod_mask
2067 2002-01-08 Michael Meeks <michael@ximian.com>
2069 * registryd/deviceeventcontroller.c
2070 (spi_controller_register_with_devices): use gdk calls to
2072 (global_filter_fn): implement the filter.
2073 (spi_device_event_controller_check_key_event): rename to
2074 (spi_device_event_controller_forward_key_event): this & upd.
2075 (spi_get_display): replace with GDK_DISPLAY.
2077 * registryd/deviceeventcontroller.c
2078 (spi_controller_deregister_device_listener): unroll into
2079 (impl_deregister_keystroke_listener): here to simplify.
2080 (spi_controller_register_global_keygrabs): split cut and
2081 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2082 (spi_controller_deregister_device_listener): remove.
2083 (impl_register_mouse_listener): remove, no mouse listener
2084 support in at-spi-1.0
2086 * registryd/registry.c
2087 (_device_event_controller_hook): kill.
2088 (spi_registry_init): upd.
2090 * registryd/deviceeventcontroller.c
2091 (spi_device_event_controller_class_init): upd.
2092 (spi_check_key_event): merge into.
2093 (spi_device_event_controller_check_key_event):
2094 here and kill strange static ev init, don't leak
2095 the x_event - nor dynamicaly allocate it.
2097 * registryd/registry-main.c (main): re-direct
2098 timeout to remove strange vtable mess.
2100 * registryd/deviceeventcontroller.c
2101 (remove_listener_cb): impl.
2102 (spi_controller_deregister_device_listener):
2103 fix re-enterancy hazard.
2105 2002-01-07 Michael Meeks <michael@ximian.com>
2107 * registryd/deviceeventcontroller.c
2108 (spi_device_event_controller_new): upd.
2109 (impl_notify_listeners_sync): upd. debug.
2110 (spi_notify_keylisteners): fix re-enterancy hazards,
2111 prettify, remove O(n*n) iteration.
2112 (spi_controller_grab_keyboard): fix iteration.
2113 (spi_check_key_event): re-format to suit coding style.
2114 Clean all the warnings - we're warning free.
2116 * registryd/deviceeventcontroller.h:
2117 * registryd/registry.h: make mutualy referential with
2118 typesafe forward references instead of (!) void pointer
2121 2002-01-11 Michael Meeks <michael@ximian.com>
2123 * cspi/spi_accessible.c (role_names): add a role name
2124 to sync this array with the enum; and make the regression
2127 2002-01-10 Michael Meeks <michael@ximian.com>
2129 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2130 allow expansion of enumeration & kill warning.
2132 * test/test-simple.c (key_listener_cb): impl.
2133 (test_keylisteners): impl.
2135 * cspi/spi-listener.h: make listener signatures const
2136 on the provided (const) events.
2138 * test/keysynth-demo.c: upd. to const events.
2140 * test/simple-at.c: ditto.
2142 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2145 Rev the version to 0.5 (the previous tarball was named 0.4,
2146 even though the micro number was 3), so we need to rev upwards
2147 again for beta2/"desktop-alpha"
2150 Checked in a demo script, which requires editing before use!
2151 Proceed with caution.
2154 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2156 * cspi/spi_accessible.c:
2157 Add a couple of missing enum initializations, and fix some enum
2160 * cspi/spi_registry.c:
2161 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2163 * docs/reference/cspi/at-spi-cspi-sections.txt:
2164 Remove/fix a couple of broken document references.
2167 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2168 as Alt-Control to listen for commands, since on some systems
2169 Control-Alt may already be grabbed.
2171 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2174 Update version number to 0.4 for Beta2.
2176 * libspi/accessible.c, libspi/accessible.h:
2177 Expose spi_accessible_construct, to enable libgail-gnome
2178 construction from spi_accessible subtype.
2180 * utils/magnifier.c:
2181 Workaround for bug in some non-gnome-compliant window managers
2182 which made magnifier resize improperly.
2184 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2186 * libspi/accessible.c: (spi_accessible_new) :
2187 Move the test for SPI_IS_REMOTE_OBJECT to
2188 spi_accessible_new_return, fixing a bug and compile time warning.
2190 2002-01-08 Michael Meeks <michael@ximian.com>
2192 * registryd/registry.c (parse_event_type): remove strndup.
2194 * libspi/Makefile.am (libspi_la_SOURCES): remove
2195 sources already included in the headers section.
2197 * libspi/util.c: add.
2199 * libspi/spi-private.h: add.
2201 * registryd/registry.c: update to moved list iterators.
2203 2002-01-05 Michael Meeks <michael@ximian.com>
2205 * test/simple-at.c (main): upd. auto-module set to atk-bridge
2207 * test/test-simple.c (main): ditto.
2209 2002-01-04 Michael Meeks <michael@ximian.com>
2211 * libspi/accessible.c (spi_accessible_new): remove 2nd,
2212 redundant construct.
2214 * registryd/registry.c
2215 (get_listener_list): impl.
2216 (impl_accessibility_registry_register_global_event_listener):
2217 re-impl. to simplify using ~, remove dodgy const cast off.
2218 (parse_event_type): constify.
2219 (impl_accessibility_registry_deregister_global_event_listener_all):
2220 re-write, more efficiency and simplicity, kill re-enterancy
2222 (compare_listener_corbaref, compare_corba_objects),
2223 (compare_listener_quarks): define out.
2224 (impl_accessibility_registry_deregister_global_event_listener):
2225 re-write for effiency, and nail re-enterancy hazard.
2226 (impl_accessibility_registry_get_desktop_list): impl.
2227 (re_enterant_list_delete_link): impl.
2228 (re_enterant_list_foreach): impl.
2229 (remove_listener_cb): impl.
2230 (_registry_notify_listeners): kill.
2231 (notify_listeners_cb): impl.
2233 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
2234 (SPI_getDesktopList): impl.
2236 * test/test-simple.c (test_desktop): test the methods.
2238 2002-01-03 Michael Meeks <michael@ximian.com>
2240 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
2241 keystrings since we free them
2242 (SPI_freeAccessibleKeySet): in here.
2244 * libspi/accessible.c (spi_accessible_new): kill warning,
2245 wonder what is going on with the constructor here.
2247 2002-03-01 Bill Haneman <bill.haneman@sun.com>
2249 * libspi/accessible.c (spi_accessible_new ()) :
2250 Added check to see if AtkObject is an SpiRemoteObject before
2251 creating an SpiAccessible.
2253 2002-05-01 Bill Haneman <bill.haneman@sun.com>
2255 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
2256 Enable keygrabs using the Control modifier, now that they are
2257 working properly (they were previously disabled).
2260 Change the command keygrab for this demo to "Control+Alt", so as
2261 to conflict with fewer other key commands on the system; this
2262 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
2264 Removed a pointlessly-chatty keylistener for unshifted keys
2265 (shifted keys are still reported).
2267 2002-02-01 Bill Haneman <bill.haneman@sun.com>
2269 * libspi/remoteobject.h:
2270 * libspi/remoteobject.c:
2271 Added definitions for special AtkObject subtype, required for
2272 support of remote components (specifically, used by BonoboControl
2273 accessibility implementation).
2275 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
2277 * cspi/spi.h: synched relation types with ATK
2279 * cspi/spi_accessible.c: Added implementations of
2280 AcccessibleRelation_* methods
2282 * idl/Accessibility_Relation.idl: added getRelationTypeName
2283 method. Synched known relation types with ATK. Allowed for
2284 relation type extension with the RELATION_EXTENDED type.
2286 * libspi/relation.c: Provided implementations for
2287 AccessibleRelation methods.
2289 2002-01-01 Bill Haneman <bill.haneman@sun.com>
2291 API tweaks for today's API 'freeze'.
2294 Added placeholder functions to allow future compatible expansion
2295 of the IDL interfaces.
2297 * idl/Accessibility_Registry.idl:
2298 Changed generateKeyEvent to generateKeyboardEvent. Changed
2299 signature of this method to accept an optional keystring in
2300 parameter (for complex text input synthesis) and changed use of
2301 simple 'boolean' parameter in registerKeystrokeListener to a
2302 struct, EventListenerMode.
2304 * cspi/spi_accessible.c:
2306 * cspi/spi_streamablecontent.c:
2307 Added references to AccessibleStreamableContent interface, and
2308 definition and implementation of AccessibleStreamableContent
2311 * cspi/spi_registry.c:
2313 Changed generateKeyEvent API to generateKeyboardEvent,
2314 taking a new (optional) keystring parameter to support complex
2319 Renamed directory (to better reflect its actual purpose, bridging
2320 from at-spi to ATK). The .so module is also now named
2323 * idl/Accessibility_Hypertext.idl:
2324 * libspi/accessible.c:
2325 * libspi/hypertext.h:
2326 * libspi/hypertext.c:
2327 Changed Accessibility_Hypertext to *not* derive from
2330 * cspi/spi_registry.c:
2331 Added list of legal event type names for 'window' events, which
2332 completes the registry event API.
2334 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
2336 * at-bridge/bridge.c: Added registration for separate
2337 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
2338 signals. If either of the first two parameters to the generic
2339 bridge signal handler are ints, they are passed on as event
2340 details. This allows an AT to determine what text was inserted.
2342 2001-12-21 Bill Haneman <bill.haneman@sun.com>
2344 * registryd/deviceeventcontroller.c:
2345 Fixed regressions in generateKeyEvent caused by the removal of
2346 gdk_init from registryd; we now use pure X calls to connect to the
2347 display, which makes sense because deviceeventcontroller already
2348 uses a fair bit of X API (should eventually be migrated to a
2349 'portability layer').
2351 * registryd/desktop.c:
2352 Fixed minor regression in spi_desktop_init, changed the way the
2353 desktop name is being set to work with new spi_base API
2354 (gobject-based, rather than AtkObject-based).
2356 * registryd/Makefile.am:
2357 Minor revision of makefile to use XTST_LIBS variable rather than
2358 hard-wiring the Xtst LD_ADD element.
2360 * test/keysynth-demo.c:
2361 Tweaked an output message; added initialization of the
2362 'keystrings' member of the "switch listener" key_set.
2364 * libspi/relation.c:
2365 Squashed compile-time warning.
2367 * libspi/accessible.c:
2368 Cosmetic and formatting fixes, renamed a static method.
2370 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
2372 * libspi/accessible.c
2374 * libspi/application.c
2377 * libspi/component.c
2378 * libspi/editabletext.c
2379 * libspi/hyperlink.c
2380 * libspi/hypertext.c
2382 * libspi/selection.c
2386 * registryd/desktop.c:
2387 Changed SpiBase to contain a GObject pointer rather than an AtkObject
2389 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2391 * idl/Accessibility_Registry.idl:
2392 Added boolean member 'is_text' to DeviceEvent. This is for the
2393 use of key events, and helps prevent ambiguity between composed
2394 key strings and keysym names, since both may potentially be
2395 returned in the 'event_string' member.
2397 * at-bridge/bridge.c:
2398 * registryd/deviceeventcontroller.c:
2399 Use the 'is_text' member when notifying device event listeners.
2400 Knon issue: composed characters are not dealt with correctly by
2401 the global key listener implementation yet.
2403 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2405 * at-bridge/bridge.c:
2406 Namespaced local static methods to spi_atk_bridge_* where
2407 previously named bridge_*, and spi_* elsewhere.
2409 * at-bridge/bridge.c:
2410 * cspi/bonobo/cspi-bonobo-listener.c:
2411 Added demarshalling/conversion for string member of
2412 Accessibility_DeviceEvent to AccessibleKeystroke.
2414 * registryd/deviceeventcontroller.c:
2415 Added code to fill the Accessibility_DeviceEvent key string value
2416 member for global key events (i.e. from XGrabKey), to match
2417 behavior of Accessibility_DeviceEvent from the toolkit key events
2418 from the bridge. Fixed timestamp in global key event notifications.
2421 Added printout of key event's string value to
2422 report_ordinary_key_event, for demo/debugging purposes.
2424 2001-12-15 Bill Haneman <bill.haneman@sun.com>
2426 * idl/Accessibility_Registry.idl:
2427 Removed Accessibility_KeyStroke structure in favor of generic
2428 Accessibility_DeviceEvent structure.
2429 Changed Accessibility_ControllerEventMask from a struct to an
2432 * at-bridge/bridge.c:
2433 Changed APIs to use DeviceEvent structure as above, and removed
2434 bogus casting between these event structures.
2436 * cspi/spi-listener.h:
2437 Added keystring member of AccessibleKeystroke structure, to enable
2438 matching on event "names" rather than only hardware codes and
2442 Added keystrings member of AccessibleKeySet struct, to allow
2443 matching on event names (as above).
2444 Added declarations for SPI_createAccessibleKeySet and
2445 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
2446 event modmasks directly as unsigned ints rather than structs with
2447 refcounts, in the DeviceEventController methods.
2449 * cspi/spi_registry.c:
2450 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
2452 * cspi/spi-roletypes.h:
2453 Added documentation of newly added SPI Roles.
2455 * cspi/bonobo/cspi-bonobo-listener.c:
2456 Changes in support of API changes above.
2458 * libspi/accessible.c:
2459 Converted APIs to use DeviceEvent structure (see IDL changes
2462 * registryd/deviceeventcontroller.c:
2463 Added DEControllerGrabMask structure to track keygrabs not only by
2464 modmask but by keyset as well; this allows us to do "global"
2465 (i.e. X) keygrabs on a per-key or keyset basis rather than always
2466 grabbing on AnyKey and then filtering after-the-fact.
2467 Bugfixes for event filtration mean that we don't get false matches
2468 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
2470 * registryd/deviceeventcontroller.c:
2471 Namespaced a number of static methods to use spi_ prefix. Major
2472 revision to internals of global (i.e. X) key grabs.
2474 * registryd/deviceeventcontroller.h:
2475 Removed keymask_list and added keygrabs_list to
2476 SpiDeviceEventController struct.
2479 Added use of SPI_createAccessibleKeySet API when creating a
2480 listener for only one key. Attach a listener to "shift spacebar
2481 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
2482 X key event names to SPI key event names, so that listeners are
2483 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
2485 * test/keysynth-demo.c:
2486 Changed (incorrect) use of X key event names (KeyPressed,
2487 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
2490 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2492 * libspi/accessible.c:
2493 Convert all AtkRole enumerations to Accessibility_Role enums when
2494 getting a role from an AtkObject.
2496 * cspi/spi_accessible.c:
2497 Complete the conversion of Accessibility_Role enums at runtime to
2498 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
2499 role enums correctly match those given in spi-roletypes.h.
2500 Re-synchronize the local names list for AccessibleRole_getName ().
2501 AccessibleRole_getName is now deprecated, since it duplicates the
2502 more reliable Accessible_getRoleName.
2503 Added some role types from Accessibility_Role.idl.
2505 * idl/Accessibility_Role.idl:
2506 Added some role types used by AtkRole.
2508 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2511 * cspi/spi_registry.c:
2513 * cspi/cspi-bonobo-listener.c:
2514 Namespaced all methods that did not begin with an "SPI_" or
2515 "Accessible" prefix to "SPI_".
2518 Homogenized internal function namespace to "cspi_" for statics.
2521 Patched tests to use the new CSPI API.
2523 * docs/reference/cspi/at-spi-cspi-sections.txt:
2524 Updated docs to reflect namespace changes, and added a number of
2525 methods to the documentation.
2527 * registryd/registry.c:
2528 Changed use of strings and string hashes in listener event
2529 matching and parse_event_string to use GQuark, which is guaranteed
2532 * registryd/registry.h:
2533 Squashed annoying warning.
2535 * idl/Accessibility_Role.idl:
2536 Extended range of available Accessibility_Role values.
2538 * cspi/spi_accessible.c:
2539 Re-ordered role names.
2541 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2543 * idl/Accessibility_Value.idl:
2544 Revert use of union back to CORBA_double, since the double type is
2545 more efficient and can contain the other types without loss of
2548 * idl/Accessibility_Accessible.idl:
2549 Added method Accessibility:Accessible:getRoleName, to complement
2550 Accessibility:Accessible:getRole.
2552 * cspi/spi_accessible.c:
2554 Added C binding for above, Accessible_getRoleName (), and changed
2555 signature of Accessible_getRole () to return an AccessibleRole.
2557 * cspi/spi-roletypes.h:
2558 Changed AccessibleRole_getName to return a char * instead of a
2559 const char *. This method is now at least temporarily deprecated
2560 in favor of asking Accessibles for their RoleNames directly.
2563 Revert to match Accessibility_Value.idl;
2567 Change signature of AccessibleValue methods to use double rather
2571 * cspi/spi_accessible.c:
2572 Changed Accessible_getRole to return an AccessibleRole enum rather
2573 than a UTF-8 string. The UTF-8 string can still be obtained via
2574 AccessibleRole_getName ().
2576 * test/test-simple.c:
2577 Add test_action. Small fixup to match API change to Accessible_getRole.
2580 Bugfix for get_action_from_servant ().
2582 2001-12-11 Michael Meeks <michael@ximian.com>
2584 * libspi/libspi.h: remove registry.h and
2585 desktop.h, deviceeventcontroller.h
2587 * libspi/Makefile.am: remove registry.[ch],
2588 desktop.[ch], deviceeventcontroller.[ch]
2590 * registryd/Makefile.am: add registry.[ch],
2591 desktop.[ch], rename registryd.c to registry-main.c.
2592 add deviceeventcontroller.[ch]
2594 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2597 Replace setenv() call with putenv ().
2599 * libspi/component.c:
2600 Bugfix in AccessibleComponent_getExtents (),
2603 2001-12-11 Michael Meeks <michael@ximian.com>
2605 * libspi/image.c (impl_getImageExtents): impl.
2606 (spi_image_class_init): upd.
2609 (AccessibleImage_getImageDescription): fix daft bug
2612 * test/test-simple.c (global_listener_cb): update
2613 to only quit if not --poke
2614 (main): catch --poke.
2615 (validate_accessible): upd. dumping, call test_image
2618 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
2621 * idl/Accessibility.idl: update all IDL includes.
2623 * idl/*.idl - rename to namespace - this sucks, blame
2624 mjs' bad decision for oafd.
2626 * test/test-simple.c (create_test_window): add more tests.
2627 (create_tree): split this out.
2628 (validate_accessible): bugfix.
2630 2001-12-11 Michael Meeks <michael@ximian.com>
2632 * cspi/bonobo/cspi-bonobo-listener.c:
2633 (cspi_kestroke_listener_unref),
2634 (cspi_event_listener_unref): impl. undoing previous
2635 homenous environment - for Bill.
2637 * cspi/spi_table.c (long_seq_to_array): use
2640 * cspi/spi_main.c: split out all bonoboish bits into
2643 * cspi/spi-impl.h: upd. typedefs.
2645 * cspi/spi_registry.c: update to lowlevel API,
2646 return booleans to indicate success in some places.
2648 * cspi/spi_event.c: update to lowlevel API.
2650 * cspi/bonobo/Makefile.am: add.
2652 * cspi/bonobo/cspi-lowlevel.h: add
2654 * cspi/bonobo/cspi-bonobo.c: add
2656 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
2658 * cspi/Makefile.am: remove spi-listener-impl.[ch],
2659 (SUBDIRS): add bonobo, link in the libs.
2661 * cspi/spi-util.c: kill this file.
2663 * TODO: merge in my bits.
2665 2001-12-11 Michael Meeks <michael@ximian.com>
2667 * test/test-simple.c (test_value, test_table, main):
2668 remove unused variables causing warnings.
2670 * configure.in: cleanup checks - require gail.
2672 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2675 Changed Value interface to use SValue (scalars) rather than
2676 assuming all values are floats. This allows floats, doubles,
2677 longs, shorts, and unsigned values to be manipulated.
2678 Introduced Accessibility:SValue union.
2681 Updated to use new API above, and to work correctly with GValues
2682 of different types in AtkValue.
2685 Updated to use new API above. cspi's API is as yet unchanged.
2688 Updated the Value revision action item.
2690 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2692 * test/test-simple.c:
2693 Added test_table (GtkTreeView widget in test window to follow).
2694 Un-commented test_value, added GtkRange widget.
2695 Added GtkTreeView widget with GtkListStore. It passes regression
2696 test but leaks one SPI object for some reason.
2699 Fixed bug in impl__set_currentValue.
2701 2001-12-10 Michael Meeks <michael@ximian.com>
2703 * cspi/spi_text.c: audit for exception handling,
2704 tolerating NULL object references safely etc.
2706 * cspi/spi_value.c: ditto.
2708 * cspi/spi_table.c (AccessibleTable_getSummary),
2709 (AccessibleTable_getAccessibleAt),
2710 (AccessibleTable_getRowHeader),
2711 (AccessibleTable_getColumnHeader),
2712 (AccessibleTable_getCaption): fix bugs hidden by
2714 (long_seq_to_array): impl.
2715 (AccessibleTable_getSelectedRows),
2716 (AccessibleTable_getSelectedColumns): use it.
2718 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2721 Added a TODO list (rough and short for now).
2723 * cspi/spi_hyperlink.c:
2724 * cspi/spi_hypertext.c:
2725 Fixed macro name typos, and remove use of obsolete macro in
2726 AccessibleHyperlink_getLink.
2728 * cspi/spi_action.c:
2729 * cspi/spi_accessible.c:
2730 * cspi/spi_application.c:
2731 * cspi/spi_component.c:
2732 * cspi/spi_selection.c:
2735 Documentation fixes (removed return values from ref/unref methods).
2737 2001-12-10 Michael Meeks <michael@ximian.com>
2739 * cspi/spi_action.c: audit for exception handling,
2740 tolerating NULL object references safely etc.
2742 * cspi/spi_accessible.c: ditto.
2744 * cspi/spi_component.c: ditto.
2746 * cspi/spi_editabletext.c: ditto.
2748 * cspi/spi_hyperlink.c: ditto.
2750 * cspi/spi_hypertext.c: ditto.
2752 * cspi/spi_image.c: ditto.
2754 * cspi/spi_selection.c: ditto.
2756 2001-12-10 Michael Meeks <michael@ximian.com>
2758 * configure.in: use cspi/libspi.pc.in instead.
2760 * Makefile.am (pkgconfig_DATA): upd. to match.
2762 * test/simple-at.c (report_focus_event): kill hacks around
2763 bad return values, use putenv not setenv
2765 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
2766 fire ChildGone - I killed it.
2768 * libspi/component.c
2769 (impl_accessibility_component_get_extents): remove
2772 * idl/Accessible.idl: kill ChildGone exception.
2774 * cspi/*.[ch]: kill int return from ref / unref.
2776 * cspi/spi_main.c (cspi_object_add_check): fold into
2777 (cspi_object_add): here.
2779 * cspi/spi_component.c (AccessibleComponent_getExtents):
2780 handle exceptions elegantly.
2782 * cspi/spi-private.h (cspi_check_ev_return),
2783 (cspi_return_if_fail): impl.
2785 * cspi/spi_accessible.c: use extensively.
2786 (AccessibleStateSet_equals): add direct compare check.
2788 * cspi/spi_selection.c: tolerate NULL objs, and check
2789 exceptions before return.
2791 * cspi/spi-util.c (cspi_warn_ev): rename to
2792 (cspi_check_ev): this & don't pass ev in; no point.
2794 2001-12-10 Michael Meeks <michael@ximian.com>
2796 * test/test-simple.c: use putenv not setenv
2797 (get_environment_vars): more chatty if you're not using
2800 * test/simple-at.c: do the setenv so more people see the
2803 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2805 * libspi/registry.c:
2806 Changed check of CORBA_environment on notification to be a warning
2807 instead of an error for the moment, since we can recover from this
2808 error when caused by a queued notification from a dead app.
2811 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
2812 used by all current implementors of AtkValue), and coerce to
2813 CORBA_float. (Proper general case fix may require change to Value.idl).
2815 2001-12-09 Bill Haneman <bill.haneman@sun.com>
2819 * cspi/spi_accessible.c:
2820 Documentation fixes: added user_data params to documentation for
2821 listeners and callbacks.
2823 * cspi/spi_accessible.c:
2824 Changed AccessibleStateSet_compare to return a
2825 StateSet rather than return the difference set into a third parameter.
2828 2001-12-09 Bill Haneman <bill.haneman@sun.com>
2831 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
2832 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
2836 Remove subdirectory po from SUBDIRS for now.
2838 * at-bridge/bridge.c:
2839 Beefed up a couple of debug printouts.
2840 One-line fix for signal notification name formatting.
2842 * libspi/accessible.c:
2843 Added assertion to spi_accessible_new ().
2845 * libspi/application.c:
2846 Put #ifdef qualifiers around a printf.
2849 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
2851 * registryd/Makefile.am:
2853 Replaces use of XML_I18N_MERGE_SERVER_RULE with
2854 INTLTOOL_SERVER_RULE macro.
2857 Added an event listener for several ATK signals, for
2858 testing and debugging. Removed a few g_warnings.
2859 Added test output if focussed item implements the Value interface.
2861 * test/test-simple.c:
2862 Added test_value () function (known not to pass at the moment, so
2863 not actually called yet.
2865 2001-12-08 Michael Meeks <michael@ximian.com>
2867 * at-bridge/bridge.c (bridge_focus_tracker),
2868 (emit_eventv): fix the same ref. leak.
2869 (register_atk_event_listeners): don't leak.
2871 * cspi/spi-listener-impl.c (cspi_event): more
2872 protection from client code.
2874 * test/test-simple.c (test_desktop): unref the app.
2876 * test/Makefile.am: upd. TESTS.
2878 * at-bridge/bridge.c (bridge_exit_func): release the registry.
2880 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
2882 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
2884 * cspi/spi_registry.c: constify in strings.
2885 (deregisterGlobalEventListenerAll): don't release the ref.
2887 * cspi/spi.h: start removing redundant / conflicting
2888 gtkdoc comments, making the API readable at a glance :-)
2890 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
2892 * test/keysynth-demo.c (keysynth_exit, main): upd.
2894 * test/simple-at.c (main, simple_at_exit): upd.
2896 * test/test-simple.c (unutterable_horror): kill.
2897 (utterable_normal_derefs): kill.
2898 (main): upd & do a setenv before gtk_init, so that we
2899 can use memprof - and to save the pain of remembering
2900 this, if we're running under memprof - don't exit.
2902 * cspi/spi_main.c (SPI_exit): return exit status
2904 (SPI_event_quit): impl.
2905 (SPI_event_main): simplify.
2906 (cspi_is_gnome_app): kill.
2907 (SPI_init): kill isGNOMEapp arg.
2909 * at-bridge/bridge.c (register_atk_event_listeners):
2910 re-instate the unref.
2911 (bridge_exit_func): don't re-activate the registry,
2912 protect vs. theoretical re-entry, use the
2913 AT_BRIDGE_SHUTDOWN env. var to determine whether to
2914 assert a clean shutdown - for regression tests.
2916 2001-12-08 Abel Cheung <maddog@linux.org.hk>
2918 * configure.in: Comment out dummy i18n support for now,
2919 otherwise it fails to build.
2920 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
2921 EXTRA_DIST. They are missing in tarball.
2923 2001-12-07 Michael Meeks <michael@ximian.com>
2925 * util/magnifier.c: kill bonobo activation reg. race.
2927 * libspi/component.c
2928 (impl_accessibility_component_get_extents): make it match
2931 * libspi/registry.c (_registry_notify_listeners):
2932 re-remove X headers & reconcile conflicts.
2933 (spi_listener_struct_free): bad conflict resolve.
2934 (impl_accessibility_registry_register_application):
2935 more bad merging fixed.
2936 (impl_accessibility_registry_deregister_application): ditto.
2937 (spi_registry_new): ditto.
2938 (spi_registry_init): don't have an applications field.
2940 [ merge fixups2 branch to here ]
2941 2001-12-07 Michael Meeks <michael@ximian.com>
2943 * test/simple-at.c (report_focus_event),
2944 (report_focussed_accessible): remove g_warning debug.
2946 2001-12-07 Michael Meeks <michael@ximian.com>
2948 * test/test-simple.c (validate_tree): comment out some checks.
2949 (test_desktop): app now not registered idly - horay.
2951 2001-12-07 Michael Meeks <michael@ximian.com>
2953 * cspi/spi_registry.c
2954 (registerAccessibleKeystrokeListener): clean, stop it leaking
2955 great swathes of memory, and device event controller references.
2956 ensure we always pass valid sequences.
2957 (deregisterAccessibleKeystrokeListener): ditto.
2958 (generateKeyEvent): upd.
2960 * at-bridge/bridge.c (bridge_key_listener): handle
2961 registry dead exception gracefully.
2962 (bridge_focus_tracker, emit_eventv): free ev.
2964 * test/simple-at.c (report_focus_event): fix polarity.
2966 * libspi/application.c (notify_listeners): kill the ev
2967 argument, and make sure we init the ev we use.
2968 (spi_application_object_event_listener): split out a chunk
2969 (get_atk_object_ref): here & fixup.
2970 (reverse_lookup_name_for_toolkit_event): make const.
2971 (spi_application_toolkit_event_listener): fixup, kill leaks
2974 * at-bridge/bridge.c (register_atk_event_listeners):
2975 don't unref the noop object - causes grief.
2977 * libspi/registry.c: remove the X headers.
2978 turn off the debug churn.
2980 * libspi/accessible.c (spi_accessible_new_return): only
2981 release the ref if we are supposed to [doh]
2983 * test/simple-at.c (report_button_press, report_focus_event):
2984 guard vs. unexpected exit.
2986 * at-bridge/bridge.c (gtk_module_init): prune printf.
2987 (bridge_exit_func): fix app unref.
2989 * libspi/Makefile.am: don't install registry or desktop.h
2991 * libspi/*.h: update includes.
2993 * libspi/application.h: don't include ourself, or
2994 other redundant headers.
2996 2001-12-06 Michael Meeks <michael@ximian.com>
2998 * libspi/accessible.c
2999 (get_accessible_from_servant): impl.
3000 Upd. all CORBA impl.s to use it killing cut and paste.
3002 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3004 (SPI_init): register atexit cleanup handler here.
3006 2001-12-06 Michael Meeks <michael@ximian.com>
3008 * at-bridge/bridge.c (gtk_module_init): g_error on
3009 activation exception
3011 2001-12-06 Michael Meeks <michael@ximian.com>
3013 * at-bridge/bridge.c (gtk_module_init): some sort of
3014 confusing merge clash - reverted.
3015 (bridge_idle_init): ditto.
3017 * test/test-simple.c (main, utterable_normal_derefs):
3018 merge from Bill - somehow not committed.
3020 2001-12-06 Michael Meeks <michael@ximian.com>
3022 * libspi/value.c (spi_value_class_init): upd.
3023 (spi_value_finalize): kill.
3025 * libspi/table.c (spi_table_finalize): kill.
3026 (spi_table_interface_new): upd.
3027 (spi_table_class_init): upd.
3028 (get_table_from_servant): impl.
3029 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3031 * libspi/selection.c (spi_selection_finalize): kill.
3032 (spi_selection_interface_new): upd.
3033 (spi_selection_class_init): upd.
3034 (get_selection_from_servant): impl.
3035 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3037 * libspi/relation.c (spi_relation_finalize): kill.
3038 (spi_relation_class_init, spi_relation_new): upd
3040 * libspi/image.c (spi_image_finalize): kill.
3041 (spi_image_class_init): upd.
3042 (spi_image_interface_new): upd.
3043 (get_image_from_servant): impl.
3044 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3046 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3047 (spi_hyperlink_finalize): kill.
3048 (spi_hyperlink_new): upd.
3049 (get_hyperlink_from_servant): impl.
3050 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3052 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3053 (spi_hypertext_finalize): kill.
3054 (spi_hypertext_class_init): upd.
3055 (get_hypertext_from_servant): impl.
3056 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3058 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3059 (spi_editable_text_interface_new): upd.
3060 (get_editable_text_from_servant): impl.
3061 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3063 * libspi/text.c (get_text_from_servant): impl.
3064 All impls - update to use it killing more cut and paste,
3065 also fix bad string returns on duff args ( a somewhat
3066 impossible case to handle - but hey ).
3067 (spi_text_construct): impl.
3068 (spi_text_interface_new): upd.
3069 (spi_text_object_finalize): kill.
3071 * libspi/component.c
3072 (accessibility_component_object_finalize): kill.
3073 (spi_component_class_init): upd.
3074 (get_component_from_servant): impl. helper to kill cut & paste.
3075 (impl_accessibility_component_contains):
3076 (impl_accessibility_component_get_accessible_at_point):
3077 (impl_accessibility_component_get_position):
3078 (impl_accessibility_component_get_extents):
3079 (impl_accessibility_component_get_mdi_z_order):
3080 (impl_accessibility_component_get_layer):
3081 (spi_component_interface_new): upd.
3083 * libspi/action.c (spi_action_finalize): kill.
3084 (spi_action_class_init): upd. inherit from SpiObject.
3085 (spi_action_interface_new): upd.
3086 (get_action_from_servant): impl. helper to reduce cut & paste.
3087 (impl_getKeyBinding, impl_getName, impl_doAction),
3088 (impl_getDescription): Use it everywhere.
3090 * cspi/spi_main.c (get_live_refs): a pointer hash.
3091 (spi_object_hash, spi_object_equal): comment out.
3092 There are issues with CORBA object hashing that need
3095 * libspi/application.c (spi_application_init),
3096 (spi_application_new): upd.
3098 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3099 (spi_accessible_class_init): upd.
3100 s/accessible/object/ in epv methods.
3102 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3104 * at-bridge/bridge.c:
3105 Reorder the bridge initialization into the bridge gtk_module_init,
3106 an immediate call to bridge_register_app, and an idle_add for
3107 register_atk_event_listeners (the only code that *must* wait until
3108 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3109 the activation, creates the application's Accessible object, and
3110 queues the bridge_idle_init function. Restored call to
3111 Accessibility_Registry_deregisterApplication().
3112 Prior to making this call we obtain a new reference to the
3113 registry, which is a temporary hack that helps us handle apps that
3114 shut down the bonobo mainloop before we get there.
3116 * libspi/registry.c:
3117 Fix string leakage in debug block, and don't segv if a an app
3118 dies before its event notifications have been propagated.
3121 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3122 as stopgap measure until we get proper exception handling when
3123 objects die during or before interrogation.
3127 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3128 Also changed default value of is_gnome_app to TRUE.
3131 * test/keysynth-demo.c:
3132 Changed use of SPI_init and SPI_event_main to reflect API change above.
3135 Made report_focus_event check the warning value from getName
3136 before reporting on focussed accessible; simplifies handling of
3137 notifications from dead objects.
3139 * test/test-simple.c: (Changes not in this patch since source is
3142 2001-12-05 Michael Meeks <michael@ximian.com>
3144 * registryd/registryd.c (main): protect against
3145 bonobo-activation startup race condition.
3147 * cspi/spi_main.c (cspi_object_add_check): cope
3148 with the exception elegantly.
3150 * idl/Accessible.idl: decl. ChildGone
3152 * libspi/desktop.c (spi_desktop_dispose): impl.
3153 (spi_desktop_class_init): upd.
3154 (spi_desktop_add_application),
3155 (spi_desktop_remove_application),
3156 (abnormal_application_termination): impl.
3157 (impl_desktop_get_child_at_index): re-impl.
3160 (impl_accessibility_registry_deregister_application),
3161 (impl_accessibility_registry_register_application):
3162 kill excessive debug clutter.
3164 * test/test-simple.c (test_misc): test some NULL
3165 tolerance. (main): upd.
3167 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3168 implements no interfaces - so let's not crash.
3170 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3172 * libspi/accessible.c (spi_accessible_new_return): impl.
3173 helper to calm the cut and paste, to cope with
3174 NULL AtkObjects effectively and efficiently, and to kill
3175 the referencing bugs.
3177 * libspi/table.c (impl_getAccessibleAt),
3178 (impl_getRowHeader, impl_getColumnHeader): upd.
3180 * libspi/hyperlink.c (impl_getObject): upd.
3182 * libspi/accessible.c
3183 (impl_accessibility_accessible_get_child_at_index): upd.
3185 * libspi/component.c
3186 (impl_accessibility_component_get_accessible_at_point): upd.
3188 * test/test-simple.c (test_editable_text, test_text): impl.
3191 * cspi/spi_editabletext.c
3192 (AccessibleEditableText_insertText): constify.
3194 * test/test-simple.c (focus_me): make more robust.
3196 * libspi/accessible.c: remove some printfs in methods that
3197 we test and work fine, so we can get a clean tree dump.
3199 * test/test-simple.c (validate_accessible),
3200 (validate_tree): make tree dumping pretty too.
3202 * at-bridge/bridge.c (bridge_signal_listener): upd. so
3203 it builds without debug on.
3205 * test/test-simple.c (validate_accessible): fix the most
3208 * cspi/spi_main.c (spi_object_release): leave the nicely
3209 blanked memory around if in debug mode.
3211 * cspi/spi-listener-impl.c (cspi_event): use add_check.
3213 [committed to fixups2]
3214 2001-12-05 Michael Meeks <michael@ximian.com>
3216 * libspi/editabletext.c
3217 (spi_editable_text_class_init): g_type_class_peek_parent,
3218 not interface peek - so we finalize cleanly.
3220 * libspi/accessible.c (spi_accessible_new): kill debug.
3222 * test/test-simple.c (validate_accessible): fix ref.
3223 leak, print strings before freeing them; sigh, comment a
3224 chunk out due to strangeness.
3225 (validate_tree): unref the child after use.
3227 * cspi/spi_component.c (AccessibleComponent_getLayer):
3228 add missing break statement, switch on zlayer not the
3229 uninitialized retval.
3231 * cspi/spi_main.c (cspi_object_add): add assert, local ref
3232 before (possibly re-entering) remote unref.
3234 * test/simple-at.c (main): unref the desktop.
3236 * cspi/spi_accessible.c (cspi_accessible_is_a): move
3239 * cspi/spi_main.c (cspi_accessible_is_a): here to
3240 isolate bonobo API usage more.
3242 * libspi/registry.c (impl_accessibility_registry_register_application):
3243 prune bogus comment.
3245 2001-12-04 Michael Meeks <michael@ximian.com>
3247 * test/test-simple.c (validate_tree): upd.
3248 IndexInParent check to make it more lucid.
3249 (validate_accessible): dump the tree.
3251 * libspi/accessible.c (de_register_public_ref),
3252 (get_public_refs): impl.
3253 (spi_accessible_new): make more efficient & intuitive.
3254 Now IndexInParent check works.
3256 2001-12-04 Michael Meeks <michael@ximian.com>
3258 * cspi/spi-util.h: remove.
3260 * cspi/spi.h: move SPI_freeString here
3262 * libspi/component.c (impl_accessibility_component_get_layer):
3264 (impl_accessibility_component_get_mdi_z_order): ditto,
3265 return -1 on error - is this ok ?
3267 * test/test-simple.c (test_application): impl.
3269 * cspi/spi_accessible.c (Accessible_getApplication),
3270 (Accessible_isApplication): impl.
3272 * libspi/registry.c (spi_listener_struct_free): release
3273 the CORBA reference too.
3275 * libspi/accessible.c
3276 (impl_accessibility_accessible_get_parent): fix ref leak.
3278 * libspi/registry.c (spi_registry_new): make the registry
3279 immortal - we don't want it to go away ever.
3281 * libspi/application.c
3282 (spi_accessible_application_finalize): impl. cleanup.
3284 * cspi/spi_registry.c
3285 (deregisterGlobalEventListenerAll),
3286 (deregisterGlobalEventListener),
3287 (deregisterAccessibleKeystrokeListener): fix ref leak.
3289 * cspi/spi_main.c (SPI_init): remove redundant ref.
3291 * test/test-simple.c (unutterable_horror): impl. to force a
3296 (impl_accessibility_registry_deregister_application): release
3297 the application when we de-register it.
3299 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
3300 until we have the infastructure to get it right.
3302 2001-12-03 Michael Meeks <michael@ximian.com>
3304 * libspi/Makefile.am: only build eventlistener.[ch]
3306 * libspi/accessible.c
3307 (impl_accessibility_accessible_get_child_at_index): don't leak.
3309 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
3310 before we hit the idle handler.
3312 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
3313 debugging than exit.
3315 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
3317 * libspi/listener.c (impl_notify_event): check source
3318 not NIL before unref.
3320 * libspi/registry.c (impl_registry_notify_event): ditto.
3322 * libspi/eventlistener.c
3323 (impl_accessible_event_notify_event): unref the source.
3325 * libspi/accessibleeventlistener.c
3326 (impl_accessible_event_notify_event): unref the source.
3328 * idl/Event.idl: remove 'hash_id' attribute - of no
3331 * libspi/application.c (notify_listeners): upd list
3333 (spi_application_object_event_listener),
3334 (spi_application_toolkit_event_listener): upd to do correct
3338 (_registry_notify_listeners): update.
3339 (parse_event_type): this method also leaks like a sieve.
3340 (impl_accessibility_registry_deregister_global_event_listener):
3341 fix ETYPE_WINDOW case.
3343 * libspi/application.c
3344 (impl_accessibility_application_register_object_event_listener):
3347 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
3349 * libspi/hypertext.c (impl_getLink): ditto.
3351 * cspi/spi_main.c (cspi_object_add): remove
3352 bogus CORBA_Object_duplicate.
3354 * cspi/spi-listener-impl.c (cspi_event): dup/ref
3357 * cspi/spi_accessible.c
3358 (Accessible_getRelationSet): fix leak / referencing issue.
3360 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
3361 (cspi_object_add, cspi_object_unref): upd.
3362 (spi_object_release, get_live_refs): impl.
3363 (cspi_cleanup): simplify.
3365 * *.[ch]: s/boolean/SpiBoolean/
3367 * cspi/spi_accessible.c (role_names): actualy order so it
3368 corresponds with the enum !
3370 * test/test-simple.c (test_roles): check some role strings
3371 vs. enums to detect offset errors.
3373 2001-12-01 Michael Meeks <michael@ximian.com>
3375 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
3377 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
3379 (Accessible_getChildAtIndex): use cspi_add_check so we
3380 check the ev before using a (possibly) invalid value.
3382 * libspi/accessible.c
3383 (impl_accessibility_accessible_get_parent): don't segv
3386 * at-bridge/bridge.c (gtk_module_init): upd.
3387 (bridge_property_event_listener): don't leak strings
3389 (bridge_state_event_listener),
3390 (bridge_property_event_listener): don't use a static
3391 buffer in case of recursive event emission &
3392 re-enterancy - split out the swathe of cut and paste
3394 (emit_eventv): and fix 2 ref leaks here & comply to the
3396 (bridge_register_app): rename to
3397 (bridge_idle_init): this and kill arg parsing, split
3398 various inits & bonobo-activation registration to module
3399 init time, kill referencing error.
3400 (bridge_exit_func): fix the same leak.
3401 (bridge_focus_tracker): don't leak event structures
3403 (bridge_signal_listener): more leakage and cut & paste
3405 (bridge_key_listener): return the result - FIXME is
3406 this polarity correct ?
3407 (accessibility_keystroke_from_atk_key_event): rename
3408 (accessibility_init_keystroke_from_atk_key_event): and stop
3410 (gtk_module_init): return a value - not that it is checked by
3412 (bridge_key_listener): register my horror at casting between
3413 IDL defined structs.
3414 (bridge_get_registry): kill - not used.
3416 * cspi/spi_accessible.c (Accessible_getRole): make return const.
3418 * test/test-simple.c (test_roles): impl.
3419 (test_desktop, validate_accessible, validate_tree): impl.
3421 * cspi/spi_accessible.c (role_names): fixup bogus
3422 MAX_ROLES setup, make constants const for efficient linkage
3423 (AccessibleRole_getName): conform to coding style, make
3426 2001-11-30 Michael Meeks <michael@ximian.com>
3428 * cspi/spi.h: add missing prototype.
3430 * libspi/registry.c (spi_listener_struct_new): fix sig.
3432 * test/Makefile.am: add test-simple
3434 * test/test-simple.c: add
3436 * test/test.sh: add.
3438 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
3440 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
3441 do it straight - since otherwise we often get an activation race.
3443 [ work before Bill duplicated a chunk of it ... ]
3444 2001-11-30 Michael Meeks <michael@ximian.com>
3446 * libspi/keystrokelistener.c
3447 (spi_keystroke_listener_class_init): fixup arg
3450 * libspi/eventlistener.c
3451 (spi_event_listener_class_init): ditto.
3453 * tests/test.sh: add.
3455 * cspi/spi-listener-impl.h: update macros.
3457 * cspi/spi-listener-impl.c
3458 (cspi_event_listener_remove_callback): add
3459 correct pre-conditions.
3461 * cspi/spi_main.c (SPI_exit): guard vs. double
3462 exits, exit the mainloop nicely.
3463 (SPI_event_main): make more sense.
3464 (SPI_init): move the atexit evilness here so we
3465 always do it (yuck).
3466 (SPI_event_main): upd.
3468 * test/simple-at.c: update for listener changes.
3470 * registryd/registryd.c (main): prune kruft.
3472 * libspi/libspi.h: upd.
3474 * libspi/eventlistener.[ch]: rename broken macros.
3476 * libspi/accessibleeventlistener.[ch]: remove.
3478 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
3480 * test/test-simple.c: Add - automated tests.
3482 * cspi/spi-listener-impl.c (cspi_event),
3483 (cspi_key_event): add user_data to invoke.
3484 (cspi_keystroke_listener_finalize): impl.
3485 (cspi_keystroke_listener_class_init): upd.
3488 (createAccessibleEventListener),
3489 (AccessibleEventListener_addCallback),
3490 (createAccessibleKeystrokeListener),
3491 (AccessibleKeystrokeListener_addCallback): upd.
3493 * libspi/deviceeventcontroller.c
3494 (spi_device_event_controller_check_key_event): add public proto.
3497 (impl_accessibility_registry_deregister_global_event_listener):
3498 always init listeners.
3499 (_registry_notify_listeners): yes it is.
3501 * cspi/spi-listener-impl.c (cspi_key_event):
3503 (cspi_event_listener_finalize): impl.
3504 (cspi_event_listener_class_init): hook up.
3505 (event_handler_new, event_handler_free),
3506 (event_list_remove_by_callback): impl.
3507 (cspi_event_listener_remove_callback),
3508 (cspi_keystroke_listener_remove_callback),
3509 (cspi_keystroke_listener_add_callback),
3510 (cspi_event_listener_add_callback): upd.
3512 * libspi/keystrokelistener.c
3513 (keystroke_listener_object_finalize): kill
3514 (spi_keystroke_listener_class_init): upd.
3515 (spi_keystroke_listener_add_callback),
3516 (spi_keystroke_listener_remove_callback): kill,
3518 (impl_key_event): prune drasticaly.
3520 * libspi/eventlistener.c
3521 (spi_event_listener_add_callback),
3522 (spi_event_listener_remove_callback): kill, use
3524 (impl_accessible_event_notify_event): upd.
3525 (spi_event_listener_object_finalize): remove.
3527 * libspi/Makefile.am: use eventlistener.[ch]
3529 2001-12-04 Bill Haneman <bill.haneman@sun.com>
3531 * libspi/registry.c (_registry_notify_listeners):
3532 Changed listener loop iteration to use preferred convention.
3533 Got rid of string memory leaks caused be calling g_strconcat
3534 inside function calls.
3536 * libspi/registry.c (parse_event_type):
3537 Stopped g_strconcat memory leaks, free the g_strsplit return,
3538 g_strdup the split pieces when used, etc.
3540 2001-12-04 Bill Haneman <bill.haneman@sun.com>
3543 Change method 'compare' to return a 'difference set' rather than
3544 taking a StateSet as an out parameter (more Java-friendly).
3546 * idl/Accessible.idl:
3547 Added CORBA struct 'BoundingBox', to faciliate API changes below:
3549 * idl/Component.idl:
3551 Changed methods 'getExtents' and 'getImageExtents' in these
3552 interfaces to return a BoundingBox structure.
3553 (getPosition and getSize are redundant and possibly should be
3554 removed, rather than creating a corresponding Point struct.)
3556 * cspi/spi_component.c:
3557 Modify implementation of getExtents to reflect the above IDL
3562 Add (missing) AccessibleImage_getExtents () API.
3564 * docs/reference/cspi/at-spi-cspi-sections.txt:
3565 Added AccessibleImage_getImageExtents () to docs.
3567 2001-12-03 Bill Haneman <bill.haneman@sun.com>
3569 * idl/Component.idl:
3570 Added two methods, getLayer () and getMDIZOrder (), to reflect
3571 the new ATK methods atk_object_get_layer and
3572 atk_object_get_mdi_z_order. (Which arguably should be part of the
3573 AtkComponent API and AtkObject). Also added an enum,
3574 ComponentLayer, for the first method's return value.
3576 * libspi/component.c:
3577 Added implementations for these methods.
3579 * cspi/spi_component.c:
3581 Added cspi binding methods for above,
3582 AccessibleComponent_getLayer() and
3583 AccessibleComponent_getMDIZOrder().
3584 Added cspi enum 'AccessibleComponentLayer'.
3586 * docs/reference/cspi/at-spi-cspi-sections.txt:
3587 Added above methods to docs.
3591 Changed typedef for 'boolean' type (and all references to it) to
3592 SPIBoolean, to avoid keyword clashes with C++.
3595 Changed usages of 'boolean' to SPIBoolean.
3597 * test/keysynth-demo.c:
3598 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
3599 app), except where SPIBoolean is required by the callbacks API.
3601 2001-12-02 Bill Haneman <bill.haneman@sun.com>
3603 * cspi/spi_registry.c:
3604 Removed obsolete X event loop for passive keygrabs (which now
3607 * registryd/registryd.c:
3608 Removed unnecessary call to gdk_init() [cruft]. This also allows
3609 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
3612 2001-11-28 Bill Haneman <bill.haneman@sun.com>
3614 * docs/reference/cspi:
3615 Included docs for SPI_freeString in generated documentation.
3618 Renamed spi_freeString to SPI_freeString, for consistency. Added
3619 documentation for this function.
3622 Renamed spi_freeString to SPI_freeString, for consistency.
3623 Removed obsolete method declaration string_from_corba_string.
3625 * test/keysynth-demo.c:
3626 Small tweak to comments.
3629 Stopped leaking the strings returned from CSPI.
3631 2001-11-28 Bill Haneman <bill.haneman@sun.com>
3633 Merged Michael's branch (see his ChangeLog entries below).
3635 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
3636 bridge is alive, release on exit.
3638 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
3639 Fix type check macro.
3642 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
3645 Added is_gnome_app static, and method cspi_is_gnome_app(),
3646 so we can call the appropriate shutdown routine at exit in SPI_exit.
3648 * cspi/spi_main.c (cspi_object_ref):
3649 Duplicate the corba object passed in, since we're keeping it around.
3651 * cspi/SPI_exit.c, cspi_cleanup:
3652 Moved the releasing of the live refs to its own function, so we
3653 can put it in g_atexit (). Call the appropriate shutdown API
3654 depending on whethe calling client is a gnome app or not
3655 (bonobo_main_quit or CORBA_ORB_shutdown).
3657 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
3658 Unref the listener when this method is called, after
3659 deregistration. Updated the API docs to note this behavior.
3661 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
3662 Bugfixes: Ref the bonobo object when returning a parent or child
3663 reference, or an AccessibleRelation. Generally made sure
3664 BonoboObject refcount is incremented whenever we return an
3667 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
3668 Fixed typo/bug in signal declaration.
3670 * libspi/accessibleeventlistener.h:
3673 * libspi/application.c (spi_application_new):
3674 Fixed leak in initialization.
3677 Remembered to increment bonobo-object refcount when returning
3678 children (applications) from desktop object.
3679 Added (empty) finalize method.
3681 * libspi/deviceeventcontroller.c:
3682 Hold a ref to listeners inside DEControllerKeyListeners.
3683 Added dec_key_listener_free() method. Use prepend instead of
3684 append in key_listener list. Fixed some refcount madness and
3685 leaks in the listener registration/deregistration - deregistration
3686 now calls dec_key_listener_free() on listeners, and on the
3687 temporarily constructed dec_key_listener() used to perform the search/match.
3689 * libspi/hypertext.c (spi_hypertest_finalize):
3690 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
3691 class. Also fixed spi_hypertext_interface_new() and
3692 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
3694 * libspi/hypertext.h:
3695 Removed pointless and duplicate AtkObject pointer from
3698 * libspi/keystrokelistener.c:
3699 Fixed incorrect type of keystroke_listener_parent_class,
3700 renamed keystroke_listener_object_finalize to
3701 spi_keystroke_listener_object_finalize.
3702 Fixed typo in signal declaration
3703 (spi_keystroke_listener_class_init).
3705 * libspi/registry.c:
3706 Added funcsions spi_listener_struct_new() and
3707 spi_listener_struct_free() to help with memory management issues.
3708 We also now use these methods instead of gnew + poking stuff into
3709 the struct, and to decrement listener counts/free the listeners
3710 when deregistering them.
3711 Fix more refcount bugs in getDesktop() and
3712 getDeviceEventController().
3715 De-ref the desktop after enumerating the applications. Explicitly
3716 decrement the refcounts on the created listeners on exit (using
3717 _unref for keystroke listeners, and via the
3718 deregisterGlobalEventListenerAll command for other event
3721 2001-11-27 Michael Meeks <michael@ximian.com>
3723 * cspi/spi-listener.h: fixup enum.
3725 2001-11-27 Michael Meeks <michael@ximian.com>
3727 * cspi/spi-listener-impl.c (cspi_event_listener_new),
3728 (cspi_keystroke_listener_new): Use the cspi variants.
3730 2001-11-26 Michael Meeks <michael@ximian.com>
3732 * test/keysynth-demo.c: fix 2 compile warnings, missing
3735 * test/simple-at.c (report_focussed_accessible),
3736 (report_focus_event, report_button_press),
3737 (check_property_change, is_command_key),
3738 (report_ordinary_key_event, report_command_key_event): upd.
3740 * util/mag_client.h: include pre-requisites.
3742 * libspi/accessibleeventlistener.c
3743 (spi_event_listener_object_finalize): free any lingering
3746 * libspi/keystrokelistener.c
3747 (keystroke_listener_object_finalize): ditto.
3749 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
3750 callbacks, with cspi types.
3752 * cspi/spi_event.c (createAccessibleEventListener): chain to
3753 (AccessibleEventListener_addCallback): here.
3754 (createAccessibleKeystrokeListener): chain to
3755 (AccessibleKeystrokeListener_addCallback): here.
3757 * libspi/keystrokelistener.c
3758 (spi_keystroke_listener_class_init): add signal.
3759 (impl_key_event): emit the event.
3760 (boolean_handled_accumulator): impl.
3761 (marshal_BOOLEAN__POINTER): add, gack.
3763 * libspi/accessibleeventlistener.c
3764 (spi_event_listener_class_init): add signal.
3765 (impl_accessible_event_notify_event): emit the signal &
3766 make the loop efficient.
3767 (spi_event_listener_add_callback): prepend the callback.
3769 * libspi/accessibleeventlistener.h: add an 'event' signal,
3770 decl type on callback.
3772 * libspi/keystrokelistener.h: ditto.
3774 * cspi/spi-listener.h: make methods typesafe and
3775 make them use the new event typedefs.
3777 * test/simple-at.c (report_focussed_accessible):
3778 include mag_client.h
3779 Use *(void *)text_interface not the other thing.
3781 * configure.in: add gtk to registryd bits - since we use
3784 * util/magnifier.c: include libbonobo.h
3786 2001-11-25 Bill Haneman <bill.haneman@sun.com>
3788 * test/keysynth-demo.c:
3789 Turned this into a simple scanning keyboard, to demonstrate the
3790 use of g_timeout_add () as a means of creating timers for
3791 scanning, and the use of GtkStyle for visually indicating when
3792 virtual keyboard elements are selected.
3794 keysynth-demo now listens to any keyboard keys with zero-valued
3795 keycodes (i.e. 'unused' keys) and interprets them as
3798 Reworked the shiftlatch code so that shift-down state isn't held
3799 for long periods (it's only synthesized immediately prior to
3800 the keysynth event it's modifying). Note that shiftlatch in this
3801 demo is a convenience, not intended to take the place of AccessX
3802 which is the better choice for getting 'sticky' modifier keys.
3804 * libspi/deviceeventcontroller.c:
3805 * at-bridge/bridge.c:
3806 * cspi/spi_registry.c:
3807 Removed some debug print stuff, and put other verbosity in #ifdef
3812 Implemented some more of the magnifier IDL for the simple
3813 magnifier: namely, getZoomRegionParams.
3814 Added mag_x and mag_y members to MagnifierData struct, aid of this
3816 Added GtkWindow::realize signal handler to magnifier, to keep it
3817 from receiving keyboard focus from the WM.
3819 2001-11-23 Mark McLoughlin <mark@skynet.ie>
3821 * cspi/spi-private.h: my guess at what michael forgot
3822 before he ran off to NZ :-)
3824 2001-11-23 Michael Meeks <michael@ximian.com>
3826 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
3827 comment out non existant method invoke so we link.
3829 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
3830 use bonobo_exception_get_text for more friendly warnings.
3832 * cspi/spi.c (Obj_Add): move into spi_main & rename
3833 spi_object_add; kill spi.c
3835 * cspi/spi_registry.c
3836 (deregisterGlobalEventListener),
3837 (deregisterGlobalEventListenerAll),
3838 (registerGlobalEventListener): fix exception leaks.
3840 * cspi/spi_main.c (spi_exception): impl. helper, so we
3841 don't leak exceptions.
3843 * cspi/spi_selection.c
3844 (AccessibleSelection_deselectSelectedChild): return the
3847 * cspi/spi_main.c (spi_ev): impl; hack - gack.
3848 (spi_registry): ditto.
3849 (SPI_init): guard against double inits.
3851 * cspi/*.c: use spi_ev (), and spi_registry () where
3852 appropriate - a temporary hack until we have something
3853 better. Use spi_object_add
3855 2001-11-22 Michael Meeks <michael@ximian.com>
3857 * cspi/Makefile.am: re organise, install the headers.
3859 * cspi/*.h: add G_BEGIN/END_DECLS
3861 2001-11-22 Bill Haneman <bill.haneman@sun.com>
3864 Added non-preemptive keylistener for key events with no modifiers
3865 and shift-only modifier.
3867 * libspi/keystrokelistener.c:
3868 Removed some verbose diagnostics printout.
3870 * cspi/spi_registry.c:
3871 Fixed a bug that caused all key listeners to be registered as
3874 * libspi/deviceeventcontroller.c:
3875 Fixed bug that caused XGrabKey (preemptive key grab) to be called
3876 for non-preemptive key masks.
3879 2001-11-22 Bill Haneman <bill.haneman@sun.com>
3881 * docs/reference/idl/at-spi-idl-docs.sgml:
3882 * docs/reference/idl/at-spi-idl-sections.txt:
3883 * docs/reference/idl/at-spi-idl-overrides.txt:
3884 Added missing files.
3886 * docs/reference/Makefile.am:
3887 removed idl from SUBDIRS until we can figure a way to get gtk-doc
3888 to scan the IDL files :-(
3893 Added .cvsignore files.
3895 2001-11-21 Bill Haneman <bill.haneman@sun.com>
3897 * libspi/deviceeventcontroller.c:
3898 * libspi/keystrokelistener.c:
3900 * cspi/spi_registry.c:
3901 Added filters for KeySets, KeyEventSeq, and event types to key
3902 event dispatching, so listeners should only receive those events
3903 that they requested :-)
3905 2001-11-21 Bill Haneman <bill.haneman@sun.com>
3910 * docs/reference:Makefile.am:
3911 * docs/reference/cspi:
3912 * docs/reference/cspi:Makefile.am:
3913 * docs/reference/cspi:tmpl:
3914 * docs/reference/cspi:tmpl:*.sgml:
3915 * docs/reference/idl:
3916 * docs/reference/idl:Makefile.am:
3917 * docs/reference/idl:at-spi-idl-sections.txt:
3918 * docs/reference/idl:at-spi-idl-docs.sgml:
3919 * docs/reference/idl:tmpl:
3920 * docs/reference/idl:tmpl:*.sgml:
3922 Restructured docs directory to allow separate 'reference' docs
3923 section, and forked idl and cspi docs. Added the sgml template
3924 files to CVS. Added the first sections/structural sgml for the
3927 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
3929 * configure.in, libspi/Makefile.am: find libXtst.
3931 2001-11-21 Michael Meeks <michael@ximian.com>
3933 * test/accessx-gui.c: s/spi_value/value/ - doh.
3935 * libspi/base.[ch]: add.
3937 2001-11-18 Bill Haneman <bill.haneman@sun.com>
3939 * idl/Accessible.idl:
3940 * idl/Application.idl:
3943 Started gtk-doc cleanup on IDL.
3945 * libspi/deviceeventcontroller.c:
3946 Added and connected non-preemptive key notification from the
3947 toolkits (in addition to the pre-emptive support from XServer
3948 which we had before, but which causes 'focus flashing'). Filters
3949 are presently limited to key modifiers and global/non-global,
3950 KeySets are presently ignored, as are KeyEvent masks.
3952 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
3953 structs into the persistant structure rather than just storing
3954 pointers to things that might not persist across servant
3957 The XGrabKey call now does async keygrabs, because synchronous
3958 ones were deadlocking with GDK_event code in a very nasty way.
3960 Added boolean to internal method notify_keylisteners, to indicate
3961 whether the event came from the 'toolkit source' or the 'global
3962 (XServer) source' - this is used in the notification process to
3963 determine which listeners to send the event to.
3965 deviceeventcontroller.c is now warning-free.
3967 * libspi/registry.c:
3968 Fixed regression in application de-registration.
3969 Also fixed some really brain-dead weirdness having to do with
3970 event dispatching - event structs are now duplicated before being
3971 re-marshalled in the dispatch to listeners. This also fixes a
3972 Solaris build problem.
3975 2001-11-20 Michael Meeks <michael@ximian.com>
3978 (impl_accessibility_registry_deregister_global_event_listener):
3981 * libspi/deviceeventcontroller.c
3982 (spi_device_event_controller_check_key_event): return
3983 FALSE on no virtual method.
3985 * libspi/*..h: make includes work on a correctly pathed install.
3987 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
3989 * libspi/application.h: kill unused ( and whacked out )
3990 gboolean *spi_application_set_id (AtkObject *app, long id);
3992 2001-11-20 Michael Meeks <michael@ximian.com>
3994 * libspi/*.[ch]: further convert to bonobo's type func
3995 macros, remove redundnant casts etc.
3997 * libspi/text.c s/accessibility_text/spi_text/g,
3998 re-order to de-cruft.
4000 * libspi/hypertext.c: re-order to kill a huge slew
4001 of redundant forward decls.
4003 * libspi/relation.c: ditto.
4005 * libspi/image.c: ditto.
4007 * */.cvsignore: update
4009 2001-11-20 Michael Meeks <michael@ximian.com>
4011 * libspi/deviceeventcontroller.c
4012 (_controller_register_with_devices): use g_getenv,
4013 kill stdlib.h include.
4015 * libspi/keystrokelistener.c
4016 (spi_keystroke_listener_get_type): kill
4017 (spi_keystroke_listener_class_init),
4018 (spi_keystroke_listener_init): rename to this.
4020 * libspi/text.c (impl_getAttributes): fix warning / bug.
4022 * libspi/*.[ch]: more headers, includes and over commenting.
4024 2001-11-20 Michael Meeks <michael@ximian.com>
4026 * libspi/*.[ch]: fixup headers, includes and over commenting.
4028 * libspi/image.c (impl__get_imageDescription): const
4029 correctness warning fix. remove redundant casting.
4031 * libspi/table.c (impl_getRowDescription): ditto.
4032 (impl_getColumnDescription): ditto.
4034 * libspi/libspi.h: add.
4036 2001-11-19 Michael Meeks <michael@ximian.com>
4038 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4040 * libspi/component.c (accessibility_component_get_type):
4041 rename to (spi_component_get_type): and macroify.
4042 (accessibility_component_init): rename to
4043 (spi_component_init): this
4044 (accessibility_component_class_init): rename to
4045 (spi_component_class_init): this
4047 * libspi/action.c (spi_action_get_type): kill, use the macro.
4049 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4052 * libspi/application.c (spi_application_object_event_listener),
4053 (impl_accessibility_application_register_object_event_listener):
4054 warning fixes / const understanding updates.
4056 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4059 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4061 * libspi/spi_accessible.c: Added docs and C bindings for
4062 AccessibleStateSet. (No implementations yet). Documentation
4063 coverage for C bindings now 100%. Made docs for event listeners
4068 boolean notifyListenersSync (in DeviceEventListener listener,
4069 in DeviceEvent event);
4071 oneway void notifyListenersAsync (in DeviceEventListener listener,
4072 in DeviceEvent event);
4074 Added DeviceEventListener and DeviceEvent structs (may deprecate
4075 KeyStroke and KeystrokeListener in favor of this generic
4076 event/listener framework for devices).
4078 * libspi/deviceeventcontroller.c:
4080 Changed some key listener code to take masks, etc., and paved the
4081 way for integration of toolkit/non-preemptive key events. Changed
4082 signatures of some internal methods.
4084 * at-bridge/bridge.c:
4085 Fixed regression connecting to interface signals, apparently
4086 caused by GTK+ changes.
4088 Added an internal bridge_state_listener to deal with
4089 property-change:accessible-state signals.
4091 Changed the key_listeners GList to store structs (including masks,
4092 etc.) instead of just CORBA_Objects (required for full
4093 implementation of key listener API).
4095 Connected the bridge to all currently supported Atk signals.
4096 Events now supported:
4097 object:property-change
4098 object:property-change:accessible-name
4099 object:property-change:accessible-state
4100 object:property-change:accessible-description
4101 object:property-change:accessible-parent
4102 object:property-change:accessible-value
4103 object:property-change:accessible-role
4104 object:property-change:accessible-table-caption
4105 object:property-change:accessible-table-column-description
4106 object:property-change:accessible-table-column-header
4107 object:property-change:accessible-table-row-description
4108 object:property-change:accessible-table-row-header
4109 object:property-change:accessible-table-summary
4110 object:children-changed
4111 object:visible-data-changed
4112 object:selection-changed
4113 object:text-selection-changed
4115 object:text-caret-moved
4117 object:row-reordered
4119 object:column-inserted
4120 object:column-reordered
4121 object:column-deleted
4122 object:model-changed
4124 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4126 * libspi/hyperlink.c,h:
4127 Fixed some broken stuff in hyperlink.
4129 * libspi/relation.h:
4130 * libspi/relation.c:
4131 * cspi/spi_accessible.c:
4132 Initial implementations of AccessibleRelation methods, and docs.
4134 * libspi/accessible.c:
4135 Fixed a bug that caused SEGV if an accessible
4136 object's description is NULL, and a client
4137 requests it. An empty string is now returned.
4139 * cspi/spi_editabletext.c:
4140 * cspi/spi_hypertext.c:
4142 * cspi/spi_hyperlink.c:
4146 Doc coverage now 95%.
4148 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4150 One last namespacing revision:
4151 * libspi/accessibleeventlistener.[ch]:
4152 Renamed SpiAccessibleEventListener to SpiEventListener,
4153 (no need for two namespaces ;-)
4155 And lots of documentation fixes:
4157 * docs/at-spi-docs.sgml:
4158 Fixed 'underscore vs. hyphen' bug that was preventing
4159 the gtk-doc API docs from being automatically generated.
4162 * cspi/spi-listener.h
4164 * cspi/spi_accessible.c
4166 * cspi/spi_application.c
4167 * cspi/spi_component.c
4168 * cspi/spi_editabletext.c
4170 * cspi/spi_hypertext.c
4172 * cspi/spi_registry.c
4173 * cspi/spi_selection.c
4177 * docs/at-spi-docs.sgml
4178 * docs/at-spi-sections.txt
4180 Added and fixed up gtk-doc documentation in cspi.
4182 Interfaces now (fully) documented (subject to revision and enhancement):
4184 Event Listener Support
4186 AccessibleApplication
4190 AccessibleEditableText
4197 AccessibleRelationSet
4202 2001-11-14 Bill Haneman <bill.haneman@sun.com>
4204 * at-bridge/bridge.c:
4205 Initial work for toolkit-level key snooper connection by bridge.
4210 New typedefs and fixes to support new namespacing, and cleaner
4211 separation of cspi bindings from libspi bonobo implementation.
4212 Removed inconsistent and extraneous Spi* namespace prefix that
4213 had crept into cspi headers.
4214 Lots of comment fixes that sed had missed.
4216 * cspi/spi-roletypes.h:
4217 * cspi/spi-statetypes.h:
4218 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
4219 to AccessibleRoleType.
4221 * libspi/accessibleeventlistener.h:
4222 Fixed minor namespacing weirdness.
4224 * libspi/deviceeventcontroller.c:
4225 Reordered some internal API for device listeners.
4226 Changed the key registry final boolean to 'is_system_global'
4227 rather than 'is_synchronous', which is more descriptive of its
4229 Added spi_device_event_controller_new().
4230 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
4232 * libspi/keystrokelistener.[ch]:
4233 Namespaced KeystrokeListener to SpiKeystrokeListener.
4234 Changed uses of keymasks to use SPI_ prefix, and did other
4237 * libspi/keymasks.h:
4238 Namespaced keymask constants with SPI_ prefix.
4240 * libspi/registry.c:
4241 Some warning fixes, and knock-on fixes from namespace changes.
4244 Added rules for accessx-gui test program.
4246 * test/accessx-gui.c:
4247 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
4248 utility. It doesn't actually use at-spi, but it's still cool and
4251 * test/keysynth-demo.c:
4255 Fixes so that these test clients work properly with the namespaced
4256 libraries. (Incompletely tested for technical reasons, fixes may follow)
4259 2001-11-13 Michael Meeks <michael@ximian.com>
4261 * libspi/application.c
4262 (impl_accessibility_application_get_version),
4263 (impl_accessibility_application_get_toolkit_name):
4265 (impl_accessibility_application_set_id),
4266 (impl_accessibility_application_get_id): remove
4267 redundant casting code.
4269 * libspi/action.c (impl_getDescription): fix warnings.
4271 * libspi/accessible.c
4272 (impl_accessibility_accessible_get_parent),
4273 (impl_accessibility_accessible_get_child_at_index),
4274 (impl_accessibility_accessible_get_state),
4275 (impl_accessibility_accessible_get_relation_set):
4276 warning fixes & include action.h
4278 2001-11-13 Michael Meeks <michael@ximian.com>
4280 * *.[ch] fix bits I screwed up:
4282 s/([^ \tb(\*\&\?\",])spi_/\1/g;
4283 s/([^ \tb(\*\&\?\",])Spi/\1/g;
4285 2001-11-13 Michael Meeks <michael@ximian.com>
4287 * *.[ch] Namespace libspi into spi_ and Spi.
4289 2001-13-11 Michael Meeks <michael@ximian.com>
4291 * Makefile.am: dist & install at-spi-1.0.pc
4293 * libspi/Makefile.am: install into at-spi-1.0
4295 * idl/Makefile.am (idldir): install into at-spi-1.0
4297 * at-spi-1.0.pc.in: add.
4299 * configure.in: build it.
4301 2001-11-12 Bill Haneman <bill.haneman@sun.com>
4303 * test/keysynth-demo.c:
4304 Use a 'realize' signal-handler to set the WM properties for
4305 the virtual keyboard, rather than making it a "POPUP" type
4306 override-redirect window (thanks to anders carlsson for that
4309 2001-11-11 Bill Haneman <bill.haneman@sun.com>
4312 * test/keysynth-demo.c:
4313 Added new test of key synthesis, which creates a simple
4314 (mouse-operated) onscreen keyboard. It inserts key events into
4315 the currently-focused window, thus it does not grab keyboard focus
4318 * cspi/spi_registry.c:
4319 Added C binding for AT-SPI generateKeyEvent.
4321 * libspi/deviceeventcontroller.c:
4322 Added call to XFilterEvent so that key listener works with XIM (we
4323 hope). Added event_synth_type to generateKeyEvent, so that we can
4324 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
4325 synthesize a press/release pair for KeySyms.
4327 2001-11-09 Bill Haneman <bill.haneman@sun.com>
4329 * libspi/Makefile.am:
4330 * registryd/Makefile.am:
4331 (temporary) hack to include libXtst in libspi and registryd.
4332 (Needed for keystroke synthesis, see below).
4335 Improved API for registerKeystrokeListener, in accordance with
4336 discussions with Gnopernicus team and X server research.
4338 * libspi/registry.c:
4339 * libspi/deviceeventcontroller.c:
4340 * libspi/accessible.c:
4341 * libspi/keystrokelistener.c:
4342 Changes and fixes to support keylisteners for potentially
4343 consumed key events (that is, 'passive grabs').
4344 Added implementation for generateKeyEvent() [untested].
4347 Changes to registerKeystrokeListener() API, as above.
4348 Added deregisterGlobalEventListenerAll(), and
4349 deregisterKeystrokeListener(), which are needed for clean exit of
4351 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
4352 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
4354 * cspi/spi_registry.c:
4355 Added implementations of function prototypes mentioned above.
4357 * registryd/registryd.c:
4358 Added the key listener event source as a g_timeout(), to allow
4359 receipt of key events that are not caught by GDK (since GDK
4360 doesn't support passive keygrabs, this was necessary).
4363 Changed to attach a keylistener to 'Alt' keys, and
4364 respond to the following keycommands: Alt-M (toggle magnifier);
4365 Alt-F (toggle speech); Alt-Q (quit).
4366 Added an exit routine to deregister the listeners, and a key
4367 listener that prints some key info to the console when a key
4368 matches the listener mask (and is thus received by the listener).
4370 * util/idl/Magnifier.idl:
4371 Changes to magnifier API to support multiple zoom regions,
4372 non-uniform scaling in x and y, markDirty, and a host of other
4373 features that would be useful to magnification.
4376 * util/mag_client.c:
4377 * util/mag_client.h:
4378 * util/mag_control.c:
4380 Source code changes to support the above IDL changes.
4383 As above, and also changes to use a (slower) generic conversion
4384 path for colormap conversions, since the fast RGB conversions have been
4385 reported to fail for 16-bit displays.
4387 2001-10-26 Michael Meeks <michael@ximian.com>
4389 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
4391 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
4393 * at-bridge/Makefile.am: fix LDFLAGS.
4395 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4397 * at-bridge/bridge.c:
4398 Re-worked listeners for toolkit events, now we have signal
4399 and property listeners. Added a private method
4400 register_atk_event_listeners(), which registers with the
4401 various atk and gtk signals we need to monitor in order to emit
4403 Added emission hook for AtkObject:property-change events, to
4404 support the 'property listeners'.
4405 Fixed some alloc()s of Accessibility_Event structs to use CORBA
4408 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
4409 which emit warnings and exit, respectively, if CORBA errors occur
4410 during remote calls, and we now use these methods to check most of
4411 our CORBA calls in the C bindings.
4413 * cspi/spi_accessible.c:
4414 Changed AccessibleSelection_refSelectedChild() to
4415 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
4416 now increment refcounts.
4418 * cspi/spi_component.c:
4419 Fixed some long pointer casts (dangerous!) to pass pointers to
4420 CORBA_longs of the proper type to the CORBA stubs, and copy the
4421 data into the longs that were passed into the C bindings code.
4423 * at-bridge/bridge.c:
4425 * libspi/accessible.c:
4426 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
4427 hyperlinks, AtkHyperlink is an object type.
4429 * libspi/application.c:
4430 Added various conversions to and from "generic" event types and
4431 atk-specific types; this is really part of the 'bridge'
4432 implementation but is valid for all AtkObject-based accessibility
4435 * libspi/editabletext.c:
4436 Fixed nasty bug wherein editable text's finalize method was
4437 unref'ing tha AtkObject reference that the text parent class was
4438 about to unref _again_. There was also a nasty inheritance bug
4439 that meant that the AccessibleEditableText class was corrupt.
4441 * libspi/selection.c:
4442 Provided implementations for some selection API that was broken.
4444 * idl/Application.idl:
4445 Added registerObjectEventListener () method.
4448 Fixed a number of return values that were Bonobo_Unknowns from
4449 bonobo_object_corba_objref(), which I
4450 forgot to dup before returning. Changed instances of
4451 bonobo_object_corba_objref (bonobo_object(o)) to
4452 BONOBO_OBJREF(o), for concision and clarity.
4454 2001-10-13 Louise Miller <louise.miller@sun.com>
4456 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
4457 idl/Event.idl, idl/Registry.idl
4458 Changed these files to include Bonobo_Unknown.idl instead
4461 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
4463 * libspi/component.c libspi/component.h:
4464 Fixed typo. Added assertions for object checks in
4465 AccessibleComponent code.
4467 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4469 * idl/Accessible.idl:
4470 Added 'isEqual (Accessible *object)'
4471 method for Accessible. (Not Yet Implemented).
4474 Changed signature of registerKeystrokeListener() to
4475 take a KeySet and KeyEventSeq so that specific keys and event
4476 types could be requested for monitoring, and added a flag
4477 is_synchronous so that either synchronous or asynchronous
4478 notification could be requested. (However this is not all
4479 implemented yet). This also meant adding two new typedefs,
4480 KeyEventSeq and KeySet.
4483 Added two new relations, RELATION_TOOLTIP_FOR and
4484 RELATION_LEAFNODE_OF.
4487 Added new state, STATE_HAS_TOOLTIP.
4489 * libspi/text.c, editabletext.c:
4490 Added new assertions to all casts of bonobo-objects from
4491 CORBA servants, to prevent Text API calls on non-text objects.
4492 Changed suspect casts of int-pointer types, so that we
4493 always send a valid CORBA_long pointer to the CORBA APIs that use
4494 in/out long parameters. We then have to copy from the CORBA_long
4495 into the regular long or int for return to the C bindings, or
4496 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
4499 * libspi/deviceeventcontroller.c:
4500 Cleaned these sources up.
4502 Changed return type for getCharacterAtOffset to
4503 CORBA_unsigned_long, to allow for 32-bit characters.
4506 2001-10-08 Bill Haneman <bill.haneman@sun.com>
4510 Fixed 'make dist' so that distro compiles...
4511 * libspi/keymasks.h:
4513 * cspi/spi-listener.c:
4514 KeystrokeListenerCB now returns a boolean.
4516 Added KeyEventType struct, and KeyStroke.
4517 Also added createKeystrokeListener(),
4518 KeystrokeListener_addCallback(),
4519 KeystrokeListener_removeCallback(), and added a keymask to
4520 registerKeystrokeListener().
4521 * cspi/spi_accessible.c:
4522 Changed numerous return types for interfaces from
4523 AccessibleComponent to Accessible<InterfaceName>; this was
4524 probably a cut-and-paste error.
4526 Implementations of new KeystrokeListener api (from spi.h,
4529 Changes to key modifier mapping.
4530 Created ControllerEventMask struct.
4531 Made DeviceEventController derive from Bonobo::Unknown.
4533 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
4534 * libspi/deviceeventcontroller.c:
4535 Added a number of new internal (private) methods.
4536 * libspi/editabletext.c:
4537 * libspi/editabletext.h:
4538 Fixed a number of bugs related to the fact that
4539 editabletext inherits from text. Fixed the EditableText struct,
4540 the init() call, and use correct casts when calling Text methods
4541 from an EditableText object. Removed (duplicate) atko from the
4542 EditableText structure, we use the one in the parent Text
4543 structure via the casts mentioned above.
4544 * libspi/keystrokelistener.[ch]:
4545 * libspi/registry.c:
4546 Changes in support of keyboard handling (above).
4548 Keyboard handling, though partly functional, is still not
4549 recommended for at-spi client use as there is considerable
4550 work yet to be done.
4553 Changed some places where pointers to various int types
4554 are cast to be pointers to CORBA_long types and vice-versa:
4555 pointer casting is not safe so we pass pointers of the correct
4556 types and then cast the result before putting it into the target
4559 * libspi/text.h: minor typos corrected.
4561 We now speak not only the name of a Text element, but the
4562 first sentence of its content, when it receives focus.
4563 I also changed the text compression to 75% from 50%.
4564 * util/Accessibility_Util.server.in:
4565 Changed the default magnifier type to be a 3x vertical
4566 splitscreen magnifier (was previously a 2x horizontal one).
4568 2001-10-03 Bill Haneman <bill.haneman@sun.com>
4570 * libspi/keystrokelistener.h:
4571 * libspi/keystrokelistener.c:
4572 Initial functional implementations of KeystrokeListener.
4575 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
4577 Fixed string handling for NULL strings in libspi.
4578 Added spi_freeString to free strings returned by C bindings.
4580 2001-09-30 Bill Haneman <bill.haneman@sun.com>
4582 * libspi/keystrokelistener.h:
4583 * libspi/keystrokelistener.c:
4584 Began (no-op) implementations of KeystrokeListener
4586 * libspi/deviceeventcontroller.c:
4587 * libspi/deviceeventcontroller.h:
4588 Began creating implementations of DeviceEventController,
4589 to handle keystroke and mouse event listening and
4591 * libspi/accessible.c:
4592 Stubbed-in the implementations for
4593 Accessibility_Accessible_getState and
4594 Accessibility_Accessible_getRelationSet.
4595 * libspi/registry.c:
4596 Improved de-registration process and fixed some bugs,
4597 deregistration now works correctly.
4599 Added initialization of applications list (to NULL).
4601 Reduced speech compression from 0.5 to 0.7, for demo.
4602 Changed call to gdk_window_set_decorations()
4603 to gtk_window_set_decorated().
4604 * at-bridge/bridge.c:
4605 Bridge now deregisters when app exits, via
4606 registration of a cleanup function
4607 with the g_atexit() call.
4608 Required making 'app' static, renamed 'this_app'.
4609 Fixed broken use of bonobo_init, passing argv wrongly.
4611 2001-09-27 Bill Haneman <bill.haneman@sun.com>
4615 Created a new directory for
4616 accessibility-related utilities, primarily for
4617 testing and demo purposes, but with possible
4624 Onscreen magnifier utility that
4625 is implemented as a bonobo service.
4627 * util/mag_client.c:
4628 * util/mag_client.h:
4629 Client-side support (simple C bindings)
4630 for Magnification service
4632 * util/mag_control.c:
4633 Client program example for
4634 Magnification service
4636 * util/Accessibility_Magnifier.server.in:
4637 Bonobo-activation file for the
4638 Magnification service.
4641 * util/idl/Magnifier.idl:
4642 IDL defining the bonobo Magnification
4646 Modifications to use the bonobo-activated magnifier
4647 above, in place of trying to connect to an existing
4648 magnifier that uses socket-listening IPC.
4650 If env variable MAGNIFIER is set, a magnifier service
4651 will be started if one does not exist.
4653 2001-09-25 Bill Haneman <bill.haneman@sun.com>
4655 * at-bridge/bridge.c:
4656 applied patch from Marc to build and run
4657 against new glib and gtk+ (seemed like a change
4658 to bonobo_init signature was made ?)
4660 made festival-server support turned off by default.
4661 Added support for a simple magnifier (off by default)
4662 which will be added to a 'util' directory later.
4663 * at-bridge/Makefile.am:
4664 Changed "application.h" header from a 'source'
4665 to a 'dependency' of libat-bridge.
4667 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
4676 Added interface implementation c files to list of
4677 includes so they are included in libcspi.
4680 Changed prototype of AccessibleAction_doAction to return a
4682 Changed prototype of AccessibleTable_getCaption to
4683 return an Accessible.
4684 Changed prototype of AccessibleTable_getSelectedRows
4685 and AccessibleTable_getSelectedColumns to
4686 return a long (returns the number of selected rows
4687 or columns respectively).
4688 Changed name of AccessibleText_refRunAttributes to
4689 AccessibleText_getAttributes.
4690 Changed prototype of AccessibleText_getCharacterExtents to
4691 return a void rather than a boolean.
4692 Added support for a AccessibleCoordType parameter
4693 specifying what type of coordinates are desired.
4694 Added an AccessibleCordType parameter to
4695 AccessibleText_getPointAtOffset.
4697 * cspi/spi_accessible.c:
4698 Added code to return the outstanding interfaces from
4699 Accessible_queryInterface.
4701 * cspi/spi_action.c:
4703 Corrected call to getNActions to call the c binding
4706 * cspi/spi_editabletext.c:
4708 Changed name from setRunAttributes to setAttributes.
4710 * cspi/spi_hyperlink.c:
4712 Changed call to getNAnchors to correctly call the c
4713 binding for an attribute.
4715 * cspi/spi_hypertext.c:
4717 Changed getImageDescription to correctly call the
4718 binding for an attribute.
4720 * cspi/spi_selection.c:
4721 Changed getNSelectedChildren to correctly call the c
4722 binding for the attribute.
4723 Changed refSelectedChild to getSelectedChild.
4727 Changed getCaption to return an Accessible.
4728 Fixed calls which retrieve attributes.
4729 Changed refAt to getAccessibleAt.
4730 Changed getNSelectedRows and getNSelectedColumns to
4734 Changed getCharacterExtents and getPointAtOffset to accept an
4735 AccessibleCoordType.
4737 Changed calls which retrieve attributes.
4738 Changed refRunAttributes to getAttributes.
4743 * idl/Hyperlink.idl:
4744 Changed n_anchors attribute to nAnchors to keep naming
4745 convention consistent.
4748 Made Table inherit from Bonobo::Unknown.
4749 Added nSelectedColumns and nSelectedRows attributes.
4752 Made Value inherit from Bonobo::Unknown.
4754 * libspi/hyperlink.c:
4755 Change for nAnchors attributte name change.
4757 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
4765 Added interface implementation c files to list of
4766 includes so they are included in libcspi.
4769 Changed prototype of AccessibleAction_doAction to return a
4771 Changed prototype of AccessibleTable_getCaption to
4772 return an Accessible.
4773 Changed prototype of AccessibleTable_getSelectedRows
4774 and AccessibleTable_getSelectedColumns to
4775 return a long (returns the number of selected rows
4776 or columns respectively).
4777 Changed name of AccessibleText_refRunAttributes to
4778 AccessibleText_getAttributes.
4779 Changed prototype of AccessibleText_getCharacterExtents to
4780 return a void rather than a boolean.
4781 Added support for a AccessibleCoordType parameter
4782 specifying what type of coordinates are desired.
4783 Added an AccessibleCordType parameter to
4784 AccessibleText_getPointAtOffset.
4786 * cspi/spi_accessible.c:
4787 Added code to return the outstanding interfaces from
4788 Accessible_queryInterface.
4790 * cspi/spi_action.c:
4792 Corrected call to getNActions to call the c binding
4795 * cspi/spi_editabletext.c:
4797 Changed name from setRunAttributes to setAttributes.
4799 * cspi/spi_hyperlink.c:
4801 Changed call to getNAnchors to correctly call the c
4802 binding for an attribute.
4804 * cspi/spi_hypertext.c:
4806 Changed getImageDescription to correctly call the
4807 binding for an attribute.
4809 * cspi/spi_selection.c:
4810 Changed getNSelectedChildren to correctly call the c
4811 binding for the attribute.
4812 Changed refSelectedChild to getSelectedChild.
4816 Changed getCaption to return an Accessible.
4817 Fixed calls which retrieve attributes.
4818 Changed refAt to getAccessibleAt.
4819 Changed getNSelectedRows and getNSelectedColumns to
4823 Changed getCharacterExtents and getPointAtOffset to accept an
4824 AccessibleCoordType.
4826 Changed calls which retrieve attributes.
4827 Changed refRunAttributes to getAttributes.
4832 * idl/Hyperlink.idl:
4833 Changed n_anchors attribute to nAnchors to keep naming
4834 convention consistent.
4837 Made Table inherit from Bonobo::Unknown.
4838 Added nSelectedColumns and nSelectedRows attributes.
4841 Made Value inherit from Bonobo::Unknown.
4843 * libspi/hyperlink.c:
4844 Change for nAnchors attributte name change.
4847 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
4849 implementations-- made server implementations own AtkObject pointers
4850 rather than their respective AtkInterrface pointers to fix
4851 refcounting. AtkHyperlink is still broken.
4853 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4854 * cspi/spi_accessible.c:
4855 Added method Accessible_Role_getName(),
4856 and requisite string array (role_names).
4857 Added conversion string_from_corba_strin() call
4858 to Accessible_getName and _getDescription.
4859 * libspi/accessible.c:
4860 Added implementation for Accessible_getRole()
4862 Added festival support, used if environment variable
4865 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4867 * at-bridge/bridge.c:
4868 Now allocate Accessibility_Event using
4869 Accessibility_Event__alloc() instead of g_new0().
4870 * libspi/accessibleeventlistener.c:
4871 Initialize AccessibleEventListener->callbacks to NULL.
4872 Fixed accessible__event_listener_init() param, changed to
4873 "AccessibleEventListener *" type.
4874 Changed a bonobo_object_release_unref() call to
4875 Accessibility_Accessible_unref().
4876 * libspi/listener.c:
4877 Changed Bonobo_Unknown_unref to (equivalent)
4878 Accessibility_Accessible_unref.
4879 * libspi/registry.c:
4880 Changed bonobo_object_release_unref to
4881 Accessibility_Accessible_unref.
4883 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
4886 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
4887 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
4888 spi-util.c spi-util.h
4889 Implementations for C bindings to remaining accessibility
4892 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
4895 changed return value of Action from void to boolean to
4896 bring in line with ATK.
4899 Changed getText funcions to return "out" start and end offsets.
4900 Changed getAttributes to take and offset and return the start
4901 and end offset of the attribute run.
4902 Changed getOffsetAtPoint and getCharacterExtents to take an
4903 enum describing whether coordinates are window or screen.
4906 libspi/action.c libspi/action.h libspi/editabletext.c
4907 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
4908 libspi/hypertext.c libspi/hypertext.h libspi/image.c
4909 libspi/image.h libspi/selection.c libspi/selection.h
4910 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
4911 libspi/value.c libspi/value.h
4912 Added server implementations for outstanding ATK interfaces
4913 not yet implemented.
4915 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4918 Added (missing) getName() method.
4919 Made nActions an attribute.
4920 * idl/EditableText.idl:
4921 Changed order of params in setAttributes.
4922 * idl/Hyperlink.idl:
4923 Removed getAnchor, added getURI.
4925 Changed attributes to methods, for efficiency
4926 (so that getting extents can be done in one call)
4927 * idl/Selection.idl:
4928 Changed nSelectedChildren to attribute, and re-indented.
4929 * idl/Table.idl: changed nrows, ncolumns, caption, summary
4931 * idl/Text.idl: reformatted to match our coding style.
4932 (temporarily?) removed getRowColumnAtOffset().
4933 Changed text selection API to support multi-select and
4934 non-contiguous selections, as in ATK.
4935 * idl/Value.idl: changed some methods to attributes.
4937 2001-08-24 Mark McLoughlin <mark@skynet.ie>
4939 * libspi/listener.c(impl_notify_event):
4940 BonoboUnkown_unref the source instead
4941 of bonobo_object_release_unref - the ORB
4942 handles the releasing.
4944 * configure.in: require ORBit-2.3.94 for
4947 2001-08-21 Bill Haneman <bill.haneman@sun.com>
4949 Tagged CVS repository 'EA_1_0'.
4950 * README.EARLY_ACCESS:
4951 Alphabetized acknowledgements list, and
4953 Listed some known dependencies of at-spi.
4955 2001-08-20 Bill Haneman <bill.haneman@sun.com>
4957 * docs/at-spi-docs.sgml:
4958 * docs/at-spi-sections.txt:
4959 * docs/at-spi-overrides.txt: (Added zero-length file)
4960 Documentation improvements - gtk-doc should build
4961 docs for all implemented C bindings now.
4964 * cspi/spi.c: (New file)
4965 * cspi/spi_event.c: (New file)
4966 * cspi/spi_registry.c: (New file)
4967 * cspi/spi_accessible.c: (New file)
4968 * cspi/spi_application.c: (New file)
4969 * cspi/spi_component.c: (New file)
4970 Split spi_main.c into six parts, and included them from
4971 "spi.c". This is a bit of a hack, probably temporary,
4972 but required by gtk-doc, apparently.
4974 2001-08-20 Bill Haneman <bill.haneman@sun.com>
4977 * docs/at-spi-docs.sgml:
4978 * docs/at-spi-sections.txt:
4980 Initial checkins/modifications for gtk-doc generation.
4983 Added (missing) interface query methods to Accessible's C binding.
4985 Added GenericInterface type definition.
4987 Added query for AccessibleComponent interface to focus event handler.
4988 Added printout of bounding box for focussed component.
4989 * libspi/component.c:
4990 Added partial implementation for AccessibleComponent to C binding.
4991 * idl/Application.idl:
4992 * libspi/registry.c:
4993 * libspi/listener.c:
4994 * libspi/application.c:
4995 * libspi/application.h:
4996 Changed "ID" attribute type from string to long.
4998 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5002 Made method naming consistent: methods taking object args
5003 start with uppercase, other methods (except those using
5004 acronyms) start with lowercase. Underscores delimit between
5005 object names and method names:
5006 SPI_init() - uppercase since it starts with an acronym.
5007 getDesktopCount () - lowercase start since no object param0.
5008 Accessible_getName() - uppercase object type name, studlyCaps method
5012 Added gtk-doc documentation for all currently implemented
5013 methods in the C bindings API.
5015 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5017 * Makefile.am : changed build order to build test last.
5020 Changed "createEventListener" to "CreateEventListener".
5021 * libspi/accessibleeventlistener.c :
5022 Bugfix for addition of callbacks.
5023 * test/Makefile.am :
5024 * test/simple-at.c :
5025 Added new test that uses the C bindings API.
5027 * libspi/listener.c :
5028 * libspi/registry.c :
5029 * libspi/accessibleeventlistener.c :
5030 * at-bridge/bridge.c :
5031 Renamed member "target" of Accessibility_Event to "source",
5032 which is more descriptive.
5035 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5039 * cspi/Makefile.am :
5040 Added makefile support for at-spi/cspi directory.
5043 * cspi/spi-listener.h : (NEW FILE)
5044 Added support for/use of spi-listener.h.
5046 C bindings now build successfully, with no warnings.
5047 * libspi/accessibleeventlistener.h : (NEW FILE)
5048 * libspi/accessibleeventlistener.c : (NEW FILE)
5049 * libspi/Makefile.am :
5050 Added new object type "AccessibleEventListener"
5051 which inherits from Listener, and allows attachment
5052 of in-process callbacks (so that a client with a listening
5053 object instance can add functionality to the local
5054 implementation, dynamically).
5056 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5058 * libspi/accessible.c:
5059 Add implementation for get_index_in_parent().
5061 Added #include of "spi-roletypes.h", and
5062 added enumerated type AccessibleCoordType.
5063 Added definition for KeystrokeListener (function type).
5066 * cspi/spi-statetypes.h :
5067 * cspi/spi-roletypes.h :
5069 Added these headers, used by spi.h.
5071 Added code (NOTE: not yet built by make).
5073 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5075 * libspi/Makefile.am: generate imodule
5076 at the same time as other idl compiler
5079 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5080 * libspi/registry.c :
5081 * libspi/application.c :
5082 * idl/Application.idl :
5083 Made registration with toolkit an application method,
5084 which is required since each app has its own toolkit static
5085 environment. Thus the bridge must register for
5086 notification of toolkit events from each application in turn.
5087 Toolkit notifications are now successfully registered for, and
5088 sent to the listening at client.
5090 Changed toolkit event string to use hyphens rather than underscores.
5091 * libspi/listener.c :
5092 listner now gives more info in debug mode - it reports the
5093 name of the event received, as well as the name of the source.
5096 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5098 * libspi/registry.c :
5099 added more implementation for toolkit events.
5100 Fixed bug such that toolkit event registrations
5101 (via atk) use the whole event name string, not
5103 Removed a useless call to an ORBit_ method.
5104 * at-bridge/bridge.c :
5105 Removed unused local sbuf[] variable.
5107 We now register for Gtk:GtkWidget:button_press_event
5108 events as well as "focus:" events.
5110 Add some more API from Registry.idl that was missing,
5111 for keystroke listening, keystroke and mouse event
5112 synthesis, and enumeration of accessible desktops.
5114 2001-08-16 Michael Meeks <michael@ximian.com>
5116 * configure.in: use AM_GLIB_GNU_GETTEXT.
5118 * Makefile.am (SUBDIRS): kill intl.
5120 2001-08-15 Michael Meeks <michael@ximian.com>
5122 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5124 * configure.in: upd.
5126 * configure.in: depend on a recent bonobo-activation that
5127 will find our server files ...
5129 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5131 * libspi/accessible.c : accessible_new() :
5132 Now we add the Component interface via bonobo_object_add_interface,
5133 if the contained AtkObject implements AtkComponent.
5134 * libspi/accessible.h : now include "component.h"
5135 * libspi/component.h :
5136 * libspi/component.c : added files - implementation of
5137 bonobo wrapper object for Accessibility/Component
5138 * libspi/listener.c :
5139 Added test code to check for Accessibility/Component:1.0
5140 interface and report whether it is implemented by the
5142 * libspi/registry.c :
5143 Now we check for not only the hash of the whole event
5144 string before relaying the event, we also check the
5145 "minor" event string (without the detail string).
5146 This allows event listeners to be registered against
5147 all events of a certain major+minor type, or just
5148 against a specific major+minor+detail type.
5149 * libspi/accessible.c :
5150 Added implementations for Accessible:get_parent(),
5151 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5152 * libspi/registry.c :
5153 * libspi/listener.c :
5154 Replaced calls to Accessibility_Accessible_ref() and
5155 Accessibility_Accessible_unref() with
5156 calls to bonobo_object_dup_ref() and
5157 bonobo_object_release_unref(), so that the CORBA object
5158 is dup-ed and released when relayed, as well as the bonobo object.
5160 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5162 * libspi/Makefile.am,
5163 registryd/Makefile.am,
5164 at-bridge/Makefile.am.
5165 test/Makefile.am, configure.in:
5166 reverse previous changes.
5168 * /idl/Image.idl: fix typo.
5170 * test/Makefile.am: put DEBUG_FLAGS
5173 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5175 * test/app.c: use argv[0] instead of
5178 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5180 * libspi/Makefile.am,
5181 registryd/Makefile.am,
5182 at-bridge/Makefile.am.
5183 test/Makefile.am, configure.in:
5184 cleanup, replace individual LIBS/CFLAGS with
5185 AT_COMMON_{LIBS|CFLAGS}.
5189 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5191 * configure.in, libspi/Makefile.am:
5192 Change IDL path checking for bonobo-activation
5195 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5197 * registryd/registry.c : separated event listeners to use
5198 3 separate lists (focus, window, toolkit). Began testing
5199 event names against hashes before relaying events.
5200 * test/at.c : now register for events of type "focus:"
5201 * test/app.c : now generate events of type "focus:"
5202 * at-bridge/bridge.c : register with ATK for focus events,
5203 and we now relay those focus events to any "focus:" listeners.
5204 This now works with the bridge as a GTK_MODULE when running test/at.
5205 * libspi/registry.c :
5206 * libspi/listener.c :
5207 now we ref event sources before propagating, and unref on receipt.
5208 * libspi/registry.c :
5209 some changes to internal structs, to support event typestring hashes.
5210 * text/app.c : changed the way the appname is generated.
5211 * cspi : added directory that will hold the C bindings library for
5212 non-CORBA/bonobo-savvy clients.
5213 * cspi/spi.h : header file that contains the function prototypes for the C binding.
5214 * idl/Component.idl : added in parameter to indicate coord system for
5215 geometry-related calls.
5216 * idl/Hyperlink.idl : added readonly n_links attribute
5217 * idl/Image.idl : changed methods to attributes.
5219 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5221 * at-bridge/Makefile.am: link against
5222 ../libspi/libspi.la instead of -lspi.
5224 * at-spi/test/app.c: include
5225 bonobo-activation.h. Use a default appname
5226 if one is not provided.
5228 2001-08-14 Bill Haneman <bill.haneman@sun.com>
5230 * idl/Registry.idl : temporarily changed register_Application
5231 to oneway, to work around issue with initial registration
5233 * idl/Application.idl : changed attribute "id" from readonly
5234 to read-write, since it needs to be assigned by Registry.
5235 * registryd/registryd.c : added call to set application id
5237 * registryd/registry.c : changed de-registration procedure to
5238 use CORBA_Object_hash() to find matching object ref in application
5239 lists and listener lists.
5240 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
5241 began distinguishing between event types (work in progress).
5243 2001-08-13 Bill Haneman <bill.haneman@sun.com>
5246 * libspi/application.c:
5247 Added implementations for get/set id, get_toolkitName,
5249 * registryd/registryd.c :
5253 Converted from use of OAF to bonobo-activation.
5254 * libspi/desktop.h :
5255 * libspi/desktop.c :
5257 Removed references to atksimpleobject, since base atkobject
5258 implementation now provides functionality we need.
5259 * libspi/atksimpleobject.c :
5260 * libspi/atksimpleobject.h :
5265 * at-bridge/Makefile.am
5266 * at-bridge/bridge.c
5269 Added directory "bridge" and contents, and added dependencies
5270 in Makefile.am/configure.in.
5271 Initial checkin of "at-bridge".
5272 This code is a GTK_MODULE which automatically registers
5273 GTK+ apps with the accessibility registry, using an object
5274 reference to the root ATK object.
5276 2001-08-10 Mark McLoughlin <mark@skynet.ie>
5278 * po/Makefile.in.in: Remove. Again. If this
5279 doesn't get autogenerated - you need to update
5282 2001-08-07 Mark McLoughlin <mark@skynet.ie>
5284 * po/Makefile.in.in: Add. Again.
5286 2001-07-31 Bill Haneman <bill.haneman@sun.com>
5288 * libspi/accessible.c : added support for 'description' property.
5289 * libspi/accessible.c
5291 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
5292 (since the two are now equivalent in libbonobo)
5300 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
5301 Bonobo::Unknown as does Accessibility::Accessible.
5302 * idl/StreamableContent.idl : as above, and replaced internal InputStream
5303 interface with Bonobo::Stream, since it was redundant with it.
5304 (The Stream returned by a StreamableContext object is expected to
5305 implement only a subset of Bonobo::Stream)
5307 2001-07-28 Anders Carlsson <andersca@gnome.org>
5309 * libspi/accessible.c (accessible_object_finalize): Change
5310 g_free to g_object_unref since the AtkObject is a GObject.
5312 2001-07-30 Bill Haneman <bill.haneman@sun.com>
5314 * idl/Accessibility.idl: add new IDL files
5317 * idl/Action.idl: Definitions of actionable UI object
5318 * idl/Component.idl: Definitions of UI component geometry, etc.
5319 * idl/Hyperlink.idl: Defs of hyperlink behavior
5320 * idl/Image.idl: Def of accessible image
5321 * idl/Selection.idl: Definition of UI object with selectable children
5322 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
5323 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
5324 * idl/Text.idl: Interface defs for UI elements with complex textual content
5325 * idl/Value.idl: Definition of UI element that is a value controller or display
5327 2001-07-27 Michael Meeks <michael@ximian.com>
5329 * po/Makefile.in.in: remove autogenerated file from CVS.
5331 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
5334 * idl/Registry.idl: include guard.
5336 * idl/Accessibility.idl: Add, and include all the other IDL
5339 * idl/*.idl: remove mass of pragmas etc.
5341 2001-07-26 Michael Meeks <michael@ximian.com>
5343 * registryd/Makefile.am (registryd_SOURCES): remove
5346 2001-07-27 Mark McLoughlin <mark@skynet.ie>
5348 * libspi/.cvsignore, registryd/.cvsignore,
5349 test/.cvsignore: updated.
5351 * po/Makefile.in.in: gettext update.
5353 2001-07-25 Bill Haneman <bill.haneman@sun.com>
5355 * initial CVS checkin
5357 2001-06-29 Michael Meeks <michael@ximian.com>
5359 * configure.in: add AM_CONFIG_HEADER to gen config.h