1 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com
3 * test/test-simple.c: Update to take account of fact that GailButton
4 now implements AtkText.
5 (create_text_window): Set name on AtkObject for GtkEntry.
6 (validate_accessible): Check accessible name before calling test_text().
8 * libspi/Makefile.am: Fix problem with building outside of source
11 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
12 typo in documentation comments. Bug #94275.
14 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com
16 * libspi/text.c (impl_getBoundedRanges): Bug fix.
18 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com
21 Add includes to avoid compiler warnings on Solaris.
22 (impl_getRangeExtents): Bug fix.
24 2002-12-17 Bill Haneman <bill.haneman@sun.com
26 Fix for 100944, [API addition approved by Gman and murrayc].
33 * idl/Accessibility_Text.idl:
34 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
35 (Text::getRangeExtents): New method for efficient
36 bounds query of a text range.
37 (Text::getBoundedRanges): New method for efficient
38 clipping of text to bounding boxes.
39 (unImplemented7, unImplemented8):
40 Removed these padding methods to preserve bincompat.
43 (impl_getRangeExtents): implementation of new IDL.
44 (impl_getBoundedRanges): implementation of new IDL.
45 (SpiTextRect): Internal use struct.
46 (_spi_text_rect_union): internal method, calculates union of two
47 SpiTextRect bounding rects.
48 (_spi_text_range_seq_from_gslist): internal method, allows us
49 to build our sequence efficiently as a gslist then convert it
51 (_spi_bounds_contain): internal method, determines whether
52 a text character is "in" or "out" of a clip rect according to
53 values of TEXT_CLIP_TYPE.
54 (spi_text_class_init): Initialize the new methods in the epv.
57 (AccessibleTextClipType): New enum used by screen review api.
58 (AccessibleTextRange): New struct used by screen review api.
59 (AccessibleText_getRangeExtents):
60 cspi binding for Accessibility_Text_getRangeExtents.
61 (AccessibleText_getBoundedRanges):
62 cspi binding for Accessibility_Text_getBoundedRanges.
63 (AccessibleTextRange_freeRanges): convenience method.
66 (AccessibleText_getRangeExtents):
67 cspi binding for Accessibility_Text_getRangeExtents.
68 (AccessibleText_getBoundedRanges):
69 cspi binding for Accessibility_Text_getBoundedRanges.
70 (AccessibleTextRange_freeRanges): convenience method.
71 (get_accessible_text_clip_type): internal conversion method.
72 (get_accessible_text_ranges_from_range_seq): internal conversion method.
74 * registryd/deviceeventcontroller.c:
75 (spi_dec_mouse_check):
76 Improved behavior for mouse:abs events
77 [same granularity as mouse:rel events, and no
78 events when mouse is idle].
80 2002-12-16 Michael Meeks <michael@ximian.com>
82 * cspi/spi_accessible.c (spi_state_to_corba): rename.
84 * libspi/stateset.c (state_spi_to_atk): split out
85 ( fix several remote array bounds nasties )
86 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
87 (impl_remove): make safe from array bounds issues.
88 (spi_atk_state_from_spi_state): impl.
90 * libspi/stateset.h (spi_state_set_cache_is_empty):
91 add a set of wrapper defines to get layering right.
93 * cspi/spi_accessible.c: update state set stuff to
96 2002-12-14 Michael Meeks <michael@ximian.com>
98 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
99 to avoid 2 roundtrips to the registry per key event
100 (spi_atk_bridge_key_listener): upd.
101 (deregister_application): release the dec.
103 * registryd/registry.c (notify_listeners_cb):
104 bin lots of re-enterant complexity - we no longer
105 do a round-trip bonobo ref here, ensure that a single
106 listener's exception failure won't poison all other
108 (impl_registry_notify_event): bin obvious memory leak.
110 2002-12-13 Michael Meeks <michael@ximian.com>
112 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
113 init the ev so the error is meaningful.
114 (spi_atk_bridge_key_listener): ditto.
116 * cspi/spi_main.c (cspi_ev): init the ev so we start
117 with a clean slate, otherwise the first exception
120 * cspi/spi_text.c (get_accessible_text_boundary_type):
121 add a fallthrough for no warnings.
123 * cspi/spi_registry.c: prune unused warnings.
125 * cspi/spi_main.c (cspi_object_take): fix
126 mind-blowing brokenness ( by watching the compile
129 * cspi/spi_accessible.c (Accessible_getStateSet):
130 re-impl. to use an AtkStateSet.
131 (spi_state_type_from_accessible_state),
132 (init_state_table): bin these.
134 * libspi/stateset.c (spi_atk_state_set_from_sequence):
136 (atk_state_set_from_accessibility_state_set): here.
138 * cspi/spi_accessible.c (spi_state_to_atk): impl.
139 (AccessibleStateSet_contains, AccessibleStateSet_ref),
140 (AccessibleStateSet_unref, AccessibleStateSet_contains),
141 (AccessibleStateSet_add, AccessibleStateSet_remove),
142 (AccessibleStateSet_equals, AccessibleStateSet_compare),
143 (AccessibleStateSet_isEmpty): re-write to use a local
146 2002-12-13 Bill Haneman <bill.haneman@sun.com>
148 * configure.in: Revved to 1.1.7 (new keymask vals).
150 2002-12-10 Bill Haneman <bill.haneman@sun.com>
153 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
155 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
158 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
159 to compare two CORBA_TypeCodes.
160 (cspi_internal_event_add): Silence warning from FORTE compiler.
162 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
163 avoid implicit declaration of functions.
165 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
167 * atk-bridge/bridge.c:
168 (spi_atk_bridge_init_event_type_consts): Store signal id for
169 active-descendant-changed signal.
170 (spi_atk_register_event_listeners): Add signal listener for
171 active-descendant-changed signal,
172 (spi_atk_bridge_signal_listener): Move code in function
173 spi_atk-signal_emit_event() into this function.
174 Add support for active-descendant-changed
175 Update support for child-changed signal.
176 (spi_bridge_window_event_listener): Silence warning.
178 * libspi/spi_private.[ch]:
179 (spi_init_any_object): Change second parameter from CORBA_Object to
181 Omit call to CORBA_Object_duplicate().
182 Set CORBA_any's _value to CORBA_Object*.
184 2002-12-06 Bill Haneman <bill.haneman@sun.com>
190 (AccessibleEvent_ref, AccessibleEvent_unref):
191 New methods, for persisting an event outside the emission context.
192 Must be used if the new accessor methods are to be called
193 outside of the event listener's callback.
195 * cspi/bonobo/cspi-bonobo.c:
196 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
197 as second parameter instead of NULL, so we can call
198 cspi_check_ev afterwards.
201 (cspi_object_take): New internal method,
202 converts a CORBA_Object reference to a hard ref on
203 an Accessible if possible, returning NULL if the object
204 reference is invalid or an Accessible * otherwise.
207 (AccessibleEvent_ref):
208 Increment the event's internal private refcount, and
209 add the event's internal struct to an internal cache
210 if it's not already there.
211 (AccessibleEvent_unref):
212 Decrement the event's refcount and remove it from
213 the cspi event cache if refcount==0.
214 (cspi_event_compare): New private method.
215 Compares two event structs via their ids. Used
217 (cspi_internal_event_lookup): New private method.
218 (cspi_internal_event_check): New private method,
219 a 0-order sanity check for events to make sure their
220 private data is intact.
221 (cspi_internal_event_add, cspi_internal_event_remove):
222 New private methods for managiing the event cache.
224 * cspi/bonobo/cspi-bonobo-listener.c:
226 Initialize the new private data elements (id, magic, ref_count).
228 * atk-bridge/bridge.c:
229 (spi_atk_bridge_signal_listener):
230 Fixed bug #100530, passing wrong params to emission func.
232 * registryd/deviceeventcontroller.c:
233 (spi_dec_button_update_and_emit):
234 Fixed type in mask bit operations; fix for #99799.
236 2002-12-02 Bill Haneman <bill.haneman@sun.com>
238 Removed some of the more dangerous workarounds from
239 previous commit; they are only needed by GOK, which
240 in reality should be using another method to accomplish
241 the goals. So on reconsideration some of the workarounds
244 * registryd/deviceeventcontroller.c:
245 (spi_keycodes_contain, spi_dec_init_keycode_list):
246 Removed these methods, used only by a nasty hack to try
247 and detect whether a key synthesis should be allowed
248 to reset the XKB latch state or not. This code was only
249 required to work around an interaction between GOK,
250 button events, and XKB.
251 (impl_generate_key_event):
252 Removed hack at end of key generation that tried to
253 "do the right thing" if XKB latch keys were generated
254 in the midst of button press/release pairs.
257 Added a check for HAVE_XINPUT. Not normally used yet.
259 2002-11-25 Bill Haneman <bill.haneman@sun.com>
261 Workarounds and fixes for mouse event/XKB interaction.
263 * registryd/deviceeventcontroller.c:
264 (spi_keycodes_contain, spi_dec_init_keycode_list):
265 New internal methods.
266 (spi_dec_set_unlatch_pending):
267 Split the method that tells XKB to expect an
268 unlatch (and revert it) out of the rest of the
269 event handling code. This method is called by the
270 two mouse event handlers (the poll and the filter).
271 (spi_dec_update_and_emit, spi_dec_mouse_check):
272 New methods split from spi_dec_poll_mouse_moved.
273 The second one is now called from inside the filterFn
274 when an XKB delatch event is received, to determine
275 whether to revert the delatch or not.
276 (spi_poll_mouse_moved): Refactor; also we can now
277 properly handle the case where multiple button states
278 have changed between polling cycles and we didn't get
279 notified due to another client's grab.
281 Synchronize the server while handling an XKB notification.
282 Ugly, but apparently necessary to avoid nasty races.
283 Check the mouse state on receipt of an XKB latch change,
284 to decide whether to revert the latch or not. (Latches are
285 reverted if there is an immediately preceding mouse button
286 event that a client has consumed, in which case we don't want
287 the user to see the side-effect of the event).
288 (spi_device_event_controller_forward_mouse_event):
289 Check for modifier events and fire before resetting mouse_mask_state,
290 prevents losing modifier events.
292 (impl_generate_keyboard_event):
293 If we've just generated a keyboard event for a non-shift key,
294 we don't want to revert the pending XKB latch.
295 Otherwise, check the modifier state (via a call to
296 spi_dev_mouse_check) and set the relatch mask to
297 that state before returning.
299 2002-11-24 Bill Haneman <bill.haneman@sun.com>
302 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
305 * atk-bridge/bridge.c:
306 (spi_atk_register_event_listeners):
307 Don't re-register for ATK events if the registry has died
308 and the app needs to re-register; the ATK listeners are in
309 process and doing so will cause duplicate emission.
311 * registryd/deviceeventcontroller.c:
312 (spi_poll_mouse_moved):
313 Reformat the source, detect and emit multiple button-change
314 events (i.e. if multiple buttons have changed between poll
316 Add code to detect mouse-down events even when the pointer
317 is grabbed; workaround for GOK bug 98420.
318 (spi_controller_register_with_devices):
319 Call XTestGrabControl with 'impervious' flag set to True,
320 allows us to synthesize events and query the pointer even during
321 an active grab by another client.
322 (spi_device_event_controller_forward_mouse_event):
323 Set the mouse_mask_state to the mouse_button_state from
324 the intercepted event, to synchronize the grab listener with
327 2002-11-20 Bill Haneman <bill.haneman@sun.com>
329 * cspi/spi_accessible.c:
330 (AccessibleRole_getName):
331 Added necessary strings for making this (deprecated)
332 method work with the new role types.
333 (init_role_table, role_table):
334 Added definition of SPI_ROLE_APPLICATION.
336 * libspi/spi-roletypes.h:
337 Added SPI_ROLE_APPLICATION.
339 * idl/Accessibility_Role.idl:
340 Added ROLE_APPLICATION.
342 * docs/reference/cspi/at-spi-cspi-decl.txt:
343 Added SPI_ROLE_APPLICATION to docs.
345 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
347 * cspi/spi_accessible.c
348 (cspi_init_role_table): Do not write beyond end of role_table.
349 (Accessible_getRole): Use correct type for value returned by
350 Accessibility_Accessible_getRole().
352 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
353 beyond end of role_table. (This fixes bug #98269)
355 * libspi/application.c: Add include file spi-private.h for
356 definition of spi_init_any_nil.
358 2002-11-19 Bill Haneman <bill.haneman@sun.com>
362 * libspi/spi-private.h:
363 Added DGB() macro, and extern int _dbg declaration.
365 * registryd/registry.c:
366 (definitions) storage for _dbg.
368 Get environment variable "AT_SPI_DEBUG".
369 (spi_registry_set_debug):
370 New method, to initialize _dbg value.
371 (spi_listener_struct_new, spi_registry_object_finalize):
372 (notify_listeners_cb):
373 Changed fprintfs to use DBG and g_warning().
375 * registryd/deviceeventcontroller.c:
376 (_deregister_keygrab, spi_controller_register_device_listener):
377 Changed debug/warning messages to use DBG macro.
381 Changed warning messages to use DBG macro and g_warning().
383 * atk-bridge/bridge.c:
384 (atk_bridge_init, spi_atk_bridge_get_registry):
385 (spi_atk_bridge_exit_func):
386 (spi_atk_bridge_property_event_listener):
387 Changed status, warning, and error messages to use
388 g_warning, g_message, and DBG macros.
391 Read the state of the AT_SPI_DEBUG environment variable
392 and set a local '_dbg' accordingly.
394 2002-11-19 Bill Haneman <bill.haneman@sun.com>
396 FIXES for 98836, 98842, other bugs.
399 Revved to 1.1.4, interface-age=4, binary-age=4.
401 * registryd/deviceeventcontroller.c:
403 Fixed crasher bug in last_mouse_pos initialization.
405 * registryd/registry.c:
406 (desktop_add_application, desktop_remove_application):
407 Added (and then commented out) some support for
408 object context marshalling. [TODO]
410 * atk-bridge/bridge.c:
411 (spi_atk_bridge_event_context_create):
412 Commented out object context creation until it can
413 be properly tested and debugged.
415 * registryd/registry.c:
416 (impl_registry_notify_event):
417 Fixed crasher bug, we were calling
418 spi_re_entrant_list_foreach () with an empty list.
420 2002-11-18 Bill Haneman <bill.haneman@sun.com>
422 * idl/Accessibility_Action.idl:
423 * idl/Accessibility_Component.idl:
424 * idl/Accessibility_Desktop.idl:
425 * idl/Accessibility_Event.idl:
426 * idl/Accessibility_Hyperlink.idl:
427 * idl/Accessibility_Image.idl:
428 * idl/Accessibility_Relation.idl:
429 * idl/Accessibility_Selection.idl:
430 * idl/Accessibility_State.idl:
431 * idl/Accessibility_Value.idl:
432 Updated unimplemented slot count to minimum of
433 four for all interfaces, for ABI freeze.
435 * idl/Accessibility_EditableText.idl:
436 * idl/Accessibility_Text.idl:
437 Updated unimplemented slot count to six
440 * idl/Accessibility_Registry.idl:
441 Updated unimplemented slot count to six
442 (also for DeviceEventController),
445 * idl/Accessibility_Table.idl:
446 Updated unimplemented slot count to eight,
449 * idl/Accessibility_Event.idl:
450 Added CORBA_any "any_data" member to Event struct.
452 * idl/Accessibility_Event.idl:
453 Added CORBA_any "any_data" member to Event struct.
455 * atk-bridge/bridge.c:
457 atk_signal_text_changed, atk_signal_child_changed,
458 signal ids queried from gtype system.
459 (AtkBridgeEventContextType): New enum.
460 (AtkBridgeEventContextData): New struct.
461 (AtkBridgeEventContext): New struct.
462 (atk_bridge_init_event_type_consts):
463 New method, initializes type contants for comparison
464 prior to emit_eventv.
465 (atk_bridge_event_context_init): New method,
466 initializes a CORBA_any from an AtkBridgeEventContext.
467 (atk_bridge_focus_tracker): Call spi_init_any_nil to
468 initialize the event.any_data struct.
469 (spi_atk_bridge_event_context_create): New method,
470 creates an AtkBridgeEventContext from signal/event info.
471 (spi_atk_bridge_event_context_free): New method.
472 (spi_atk_emit_eventv): Changed to take an
473 AtkBridgeEventContext parameter. We now initialize
474 the event.any_data member prior to notifying the
475 Registry, via the AtkBridgeEventContext.
476 (spi_atk_bridge_property_event_listener):
477 (spi_atk_bridge_state_event_listener):
478 Match emit_eventv signature.
479 (spi_atk_bridge_object_event_listener):
480 Match emit_eventv signature, and create an
481 event context from the event details.
482 Free the event context afterwards.
483 (spi_atk_bridge_window_event_listener):
484 Create an event context, pass it to the
488 (AccessibleEvent_getContextString):
489 (AccessibleEvent_getContextObject):
490 New methods, allow query of AccessibleEvent objects
491 for more context details (via the "any_data" member
492 of the Event struct, above).
495 Definitions for AccessibleEvent_getContextString
496 and AccessibleEvent_getContextObject.
498 * cspi/spi_listener.h:
499 (InternalEvent): New struct.
502 (AccessibleEvent_getContextString):
503 (AccessibleEvent_getContextObject):
504 Implementations of new methods, for obtaining
505 additional context information from some event types.
507 * cspi/spi_registry.c:
508 (SPI_registerGlobalEventListener):
509 Added mention of active-descendant-changed event in docs.
511 * cspi/cspi-bonobo-listener.c:
513 Marshal the any into the AccessibleEvent via
516 * libspi/spi-private.h:
517 #include <orbit/orbit.h>
519 (spi_init_any_string):
520 (spi_init_any_object):
521 New convenience function declarations.
525 (spi_init_any_string):
526 (spi_init_any_object):
527 New convenience function implementations.
529 * registryd/deviceeventcontroller.c:
530 (spi_poll_dec_mouse_moved):
531 (spi_device_event_controller_forward_mous_event):
532 Initialize any_data member of event.
533 (spi_deregister_controller_device_listener):
534 Fix incorrect param pass which was preventing deregistration.
536 * registryd/registry.c:
537 (desktop_add_application):
538 (desktop_remove_application):
539 Add object data to event's any_data before dispatch.
541 Fix for error messages from GAIL.
543 * test/event-listener-test.c:
544 Test new ContextString and "any_data" API:
545 (report_text_event): New method query and output context string.
546 (main): register a new text listener with report_text_event
549 2002-11-19 Darren Kenny <darren.kenny@sun.com>
551 Fixes for bugs 98127 and 97914.
552 * cspi/spi-roletypes.h:
553 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
555 * cspi/spi-statetypes.h:
556 Added SPI_STATE_MANAGES_DESCENDANTS
558 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
559 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
560 * cspi/spi_accessible.c:
561 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
562 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
563 Accessibility_STATE_MANAGES_DESCENDANTS
564 * libspi/accessible.c:
565 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
566 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
567 As requested by Bill, I also cleaned up the alignment.
569 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
570 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
572 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
573 Accessibility_STATE_MANAGES_DESCENDANTS
574 * docs/reference/cspi/tmpl/spi_accessible.sgml:
575 Document changes reflecting modifications to roles.
576 * docs/reference/cspi/tmpl/spi_relation.sgml:
577 Document changes reflecting modifications to relations.
578 * docs/reference/cspi/tmpl/spi_stateset.sgml:
579 Document changes reflecting modifications to states.
581 2002-11-17 Bill Haneman <bill.haneman@sun.com>
584 Revved to 1.1.3, interface-age=3, binary-age=3.
588 Removed accessx-gui from the tests, since we have a nice
589 keyboard accessibility capplet now :-)
591 * test/keysynth-demo.c:
592 (increment_scan): removed do-nothing default: case,
595 * test/visual-bell.c:
596 (main) : removed do-nothing default: case,
600 (AccessibleAction_getKeyBinding_):
601 Documented keybinding string format.
605 (AccessibleText_getAttributes):
606 Documented the text attribute string format.
607 It's changed to use semicolon delimiters also,
608 to prevent clashes with CSS attributes, but the old
609 trick of looking for ", " strings will still work
610 (as unreliably as ever). Fix for bug related to 97916.
613 Include <cspi/bonobo/cspi-bonobo-listener.h>
615 (SPI_freeAccessibleKeySet):
616 (AccessibleKeystrokeListener_addCallback):
617 (AccessibleKeystrokeListener_removeCallback):
618 Modify to use AccessibleDeviceListener API internally,
619 instead of AccessibleKeystrokeListener.
621 * idl/Accessibility_Event.idl:
622 Added two more empty slots to EventListener (for a total of four).
624 * idl/Accessibility_Accessible.idl:
625 Added four empty slots to Accessible interface.
627 2002-11-15 Bill Haneman <bill.haneman@sun.com>
629 * idl/Accessibility_Registry.idl:
630 (KeyEventType, EventType):
631 Marked KeyEventType as deprecated; it duplicates
632 functionality of EventType, which has been extended to
633 include Mouse-button events.
634 (KeyEventTypeSeq): defined in terms of EventType.
635 (registerDeviceEventListener, deregisterDeviceEventListener):
636 New methods, for managing listeners to device events,
637 which potentially may consume them.
640 Added definition for AccessibleDeviceListener.
642 * cspi/spi-listener.h:
643 (enum AccessibleDeviceEventType):
644 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
645 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
646 for backwards compat.
647 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
648 and typedef'd AccessibleKeystroke to it for back-compat.
649 (AccessibleDeviceListenerCB):
650 New function prototype typedef.
653 (AccessibleDeviceEventMask): New typedef.
654 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
655 (AccessibleKeyMaskType):
656 Set equivalent to AccessibleModifierMaskType for back-compat.
657 (SPI_createAccessibleKeystrokeListener):
658 (AccessibleKeystrokeListener_unref):
659 Deprecated in favor of equivalent (better-named) new API below..
660 keystroke listeners are like all device listeners.
661 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
662 New API names for old features :-).
663 (AccessibleDeviceListener_addCallback):
664 (AccessibleDeviceListener_removeCallback):
665 (SPI_registerDeviceEventListener):
666 (SPI_deregisterDeviceEventListener):
670 (SPI_createAccessibleKeystrokeListener):
671 Use new preferred API, cspi_device_listener_new() and
672 cspi_device_listener_add_cb().
673 (AccessibleKeystrokeListener_removeCallback):
674 Use new preferred API, cspi_device_listener_remove_cb().
675 (AccessibleKeystrokeListener_unref):
676 Use new preferred API, cspi_device_listener_unref().
677 (SPI_createAccessibleDeviceListener):
678 (AccessibleDeviceListener_addCallback):
679 (AccessibleDeviceListener_removeCallback):
680 Implementation of new API.
682 * cspi/spi_registry.c:
683 (SPI_registerDeviceEventListener):
684 (SPI_deregisterDeviceEventListener):
685 Implementation of new API. Fixed memory leak and removed need to
686 allocate EventTypeSeq (thanks Michael for catching this).
687 Squashed a wayward CORBA_exception_free that shouldn't get called.
689 * cspi/bonobo/cspi-bonobo-listener.c:
691 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
692 (cspi_key_event): renamed to cspi_device_event().
693 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
694 Extended to handle mouse button events as well as key events.
695 (CSpiKeystrokeListener):
696 Class superceded by CSpiDeviceListener.
697 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
698 These internal APIs changed to "*device_listener" from "*keystroke_listener".
700 * cspi/bonobo/cspi-bonobo-listener.h:
701 (CSpiKeystrokeListener):
702 Class superceded by CSpiDeviceListener.
703 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
704 These internal APIs changed to "*device_listener" from "*keystroke_listener".
706 * libspi/Makefile.am:
707 Replaced keystrokelistener.h and keystrokelistener.c
708 with devicelistener.h and devicelistener.c; keystrokelisener.h
709 stub retained for back-compat.
711 * libspi/keystrokelistener.c:
715 Replaced inclusion of keystrokelistener.h with devicelistener.h.
717 * registryd/deviceeventcontroller.c:
718 (DEControllerListener): Added Accessibility_EventTypeSeq member.
719 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
720 (DEControllerPrivateData): Added xkb settings data.
721 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
722 button release events (which can't be captured via XGrabButton).
723 Don't dispatch via the 'normal' event mechanism if the device event was
725 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
726 Handle the typeseq data in its new location (see above).
727 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
728 New methods, for "generic" device listeners.
729 (spi_controller_register_device_listener):
730 Now handle mouse event listeners as well as key listeners.
731 (spi_controller_notify_mouselisteners):
733 (spi_device_event_controller_forward_mouse_event):
734 Now we notify mouse device listeners as well as generating the
735 non-consumable "mouse:" events.
737 We must check and restore the XKB
738 modifier map if we consume the event, since the act of triggering
739 a mouse event will normally reset the XKB latch. This is required for
741 (spi_controller_register_with_devices):
742 Load the XKB settings when registering, and register for XKB
744 (spi_key_eventtype_seq_contains_event):
745 Renamed spi_eventtype_seq_contains_event, since it's used
746 internally for all device event types now.
747 (spi_key_event_matches_listener):
748 Uses spi_eventtype_seq_contains_event now.
749 (spi_device_event_controller_object_finalize):
750 Free the private data and the XkbKeyboard struct.
751 (impl_register_device_listener, impl_deregister_device_listener):
752 Implementation of new IDL.
753 (spi_deregister_controller_device_listener):
755 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
756 More efficient implementation, we don't have to create a new
757 XkbControls structure every time we query.
758 (spi_device_event_controller_class_init):
759 Initialize the epv entries for the new IDL. Assign the
760 "spi-dec-private" quark.
761 (spi_device_event_controller_init):
762 Initialize the private data.
763 (spi_device_event_controller_forward_key_event):
764 Removed a bogus CORBA_exception_free() call.
766 * registryd/deviceeventcontroller.h:
767 Replaced inclusion of keystrokelistener.h with
770 * test/event-listener-test.c:
771 (report_mouse_event):
774 Added mouse-event device listener.
776 * test/test-simple.c:
777 (create_test_window):
778 Fixed regression (we were instantiating a GtkRange,
779 which is now an abstract class). Also fixed to match
780 existing AtkRole names, this seems to have changed in ATK
781 awhile ago; too late now I think, and the new
782 mechanism is at least elegant and consistent with the
783 glib enum "nick" APIs.
785 2002-11-15 Darren Kenny <darren.kenny@sun.com>
787 * idl/Accessibility_Relation.idl:
788 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
789 RELATION_EMBEDS,RELATION_EMBEDDED_BY
790 * idl/Accessibility_Role.idl:
791 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
792 * idl/Accessibility_State.idl:
793 add STATE_MANAGES_DESCENDANTS
794 * test/event-listener-test.c:
795 Added a listener for active-descendant events.
797 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
799 * atk-bridge/bridge.c
800 (atk_bridge_init): If application is Bonobo component wait until top
801 level is added before registering
802 (spi_atk_bridge_do_registration): New function which contains code,
803 formerly in atk_bridge_init, to do application registration.
804 (spi_atk_bridge_toplevel_added): Signal called when top level
805 added to Bonobo component
807 This fixes bug #83134.
809 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
811 * registryd/deviceeventcontroller.c
812 Fixed compilation error caused by calling gettimeofday()
815 2002-10-18 Bill Haneman <bill.haneman@sun.com>
820 Added template for HAVE_XKB.
823 Changes to check for XKB, and to set the HAVE_XKB #define if it
827 ()impl_notify_event): Make failure to get event source name
830 * registryd/deviceeventcontroller.c:
831 (#include): include X11/XKBlib.h.
832 (DEControllerPrivateData) : New struct.
833 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
835 (dec_synth_keycode_press) (dec_synth_keycode_release):
836 New methods; split the key synthesis code into these methods.
837 They check XKB settings before determining the "time" values to
838 pass to Xtest; this fixes bug #95828.
839 (impl_generate_keyboard_event): Changed to use methods above,
840 instead of callng Xtest directly.
841 (spi_device_event_controller_init): Initialize new privae struct s
843 (spi_device_event_controllr_object_finalize):
844 Free the (new) private data.
846 * registryd/deviceeventcontroller.h:
847 Add new gpointer to end of struct data.
849 2002-10-16 Bill Haneman <bill.haneman@sun.com>
852 Incremented revision to 1.1.2, SONAME is still '.so', library
853 extensions are ".so.0.0.2".
855 * registryd/deviceeventcontroller.c:
856 FIXES FOR #93592 and #95940.
857 (statics): renamed mouse_button_state to mouse_mask_state,
858 added key_modifier_mask.
859 (spi_dec_poll_mouse_moved):
860 Added key modifier checks, and emit "keyboard:modifiers"
861 events when the key modifiers currently in use change.
862 Also generate "mouse:abs" events periodically, even if the mouse
863 is stationary (should we?).
864 Alternatively we could generate "mouse:abs" events for either all
865 mouse movements, or every 'nth' mouse movement, or at the
866 beginning and end of every "active" mouse period.
868 * test/event-listener-test.c:
869 (main): Added listener for "keyboard:modifiers" events.
871 2002-10-15 Bill Haneman <bill.haneman@sun.com>
874 Added key mask #defines for mouse buttons; e.g.
875 SPI_KEYMASK_BUTTON1, etc.
878 Incremented dependency on ATK to version 1.1.0. (This dependency
879 is probably premature but will soon be real enough).
881 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
883 * libspi/hyperlink.[ch]
884 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
885 (get_hyperlink_from_servant): Check object is AtkHyperlink not
888 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
893 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
895 * registryd/deviceeventcontroller.c
896 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
897 events to be ignored.
898 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
899 keyboard_mode so that XAllowEvents() can be called.
903 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
905 * cspi/spi-accessible.c: Correct names of roles returned by
906 AccessibleRole_getName(). Fixes bug #95055.
908 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
910 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
913 * registryd/registry.c
914 (desktop_remove_application: Write diagnostic message to stderr for
917 (impl_accessibility_registry_deregister_global_event_listener):
918 Correct size of lists array. This addresses bug #94555).
920 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
922 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
925 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
927 * registryd/Makefile: Add CLEANFILES so that .server file is removed
930 * registryd/registry.c (impl_registry_notify_event): Remove
931 unnecessary call to parser_event_type().
933 * docs/reference/cspi/tmpl/spi_component.sgml:
934 Add reference to SPI_LAYER_WINDOW.
936 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
938 * registryd/registry.c
939 (desktop_add_application): Remove leak.
940 (desktop_remove_application): Remove leak.
941 (parser_event_type): Remove leak.
943 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
945 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
946 bogus call to CORBA_string_dup(). Also removed unnecessary
947 g_string_dup/g_free calls.
949 2002-09-13 Bill Haneman <bill.haneman@sun.com>
951 * registryd/deviceeventcontroller.c:
952 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
954 * test/event-listener-test.c:
955 main: commented out three redundant listeners, to reduce output
956 noise. (They still are potentially useful for testing).
959 2002-09-13 Michael Meeks <michael@ximian.com>
961 * Update all the copyrights to include Ximian.
963 2002-09-06 Mark McLoughlin <mark@skynet.ie>
965 * cspi/spi.h: add SPI_LAYER_WINDOW.
967 * cspi/spi_component.c: (AccessibleComponent_getLayer):
968 add Accessibility_LAYER_WINDOW case.
970 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
972 * libspi/component.c: (impl_accessibility_component_get_layer):
973 add ATK_LAYER_WINDOW case.
975 2002-08-28 Bill Haneman <bill.haneman@sun.com>
977 * configure.in: incremented micro version.
979 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
981 2002-08-20 Bill Haneman <bill.haneman@sun.com>
984 Clarified and reworded our commit policy.
987 Started an API "todo" addition list for 2.2.
991 Free char pointer from atk_text_get_selection, which was being leaked.
993 2002-08-19 Bill Haneman <bill.haneman@sun.com>
996 Small revision to author acknowledgement.
998 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1000 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1001 If signal has detail add it to the type of the event.
1004 2002-08-12 Michael Meeks <michael@ximian.com>
1006 * test/test-simple.c (global_listener_cb): bin bogosity.
1007 (test_keylisteners): disable, still doesn't work reliably,
1008 certainly not on my system anyway.
1010 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1011 don't leak a reference on the DEC. This round-trip
1012 fetching of the DEC per keystroke sucks, it should be
1015 * cspi/spi-private.h,
1016 * cspi/cspi-lowlevel.h,
1017 * cspi/bonobo/cspi-bonobo-listener.[ch],
1018 * cspi/bonobo/cspi-bonobo.c: get the copyright
1019 notices better - there is still a large amount of
1020 work in at-spi falsely attributed solely to Sun.
1022 * cspi/spi_main.c (cspi_object_ref): kill bogus
1023 hash lookup, just increment the ref.
1024 (SPI_freeString): make explicit the fact that we
1025 handle NULL strings just fine.
1026 (report_leaked_ref): obey coding standards.
1027 (cspi_object_hash, cspi_object_equal): kill retval.
1028 (cspi_object_release): only release if not on loan.
1029 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1030 (cspi_object_borrow, cspi_object_return): impl.
1032 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1033 use cspi_object_borrow / return.
1035 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1037 * cspi/bonobo/cspi-bonobo-listener.c:
1039 Don't call cspi_oject_new() because this is creating a new Accessible
1040 every single time that an event is fired. This causes ATs like at-poke
1041 to nolonger recognise the source of the event and thus ignore it.
1042 Re-use the object from the cache, ref it and then unref it after the
1043 listeners have been called.
1045 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1047 * test/event-listener-test.c:
1048 Added command-line options to disable mouse events (m) and
1051 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1053 * configure.in: Update required versions of ATK, GTK+ and GAIL
1055 * cspi-1.0.pc.in: Add dependency for X include files
1058 * cspi/bonobo/Makefile.am:
1059 Add $(X_CFLAGS) so that X include files
1060 are picked up even if not in standard place (bug #71686)
1062 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1064 * registryd/deviceeventcontroller.c: fix for 84261
1065 (spi_dec_mouse_moved):
1066 Added test of mouse button mask, so that we can detect mouse
1067 button release. Unfortunately we can't otherwise detect mouse
1068 button release events without consuming the mouse press event,
1069 because of the way XGrabButton works. This means that our mouse
1070 release events have a latency dependent on the polling period
1071 while the mouse button is down. At least in this case we only
1072 have to poll while the button is down, and not at other times.
1073 If the button masks don't match with what the last press event
1074 reported, we report the appropriate button release event.
1075 (spi_dec_ungrab_mouse):
1076 New method (not yet called).
1077 (spi_device_event_controller_forward_mouse_event):
1078 New method, sends mouse press event from GdkFilter.
1079 (spi_dec_init_mouse_listener):
1080 Added code to call XGrabButton, redirecting mouse button events to
1081 the root window and our Gdk event loop.
1083 Added code to filter mouse button events, and reordered.
1085 * test/event-listener-test.c:
1087 Added registration for mouse events of type "mouse:button".
1089 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1091 * registryd/deviceeventcontroller.c: partial fix for 84261
1092 (spi_dec_poll_mouse_idle):
1093 New method, a timeout which checks to see if the mouse
1095 (spi_dec_poll_mouse_moving):
1096 A timeout to be called when mouse motion is underway.
1097 (spi_dec_poll_mouse_moved):
1098 A method which fires an event if the mouse has moved, and reports
1099 whether or not it did so.
1100 (spi_dec_init_mouse_listener):
1101 A method which sets up the timeouts above.
1102 (spi_device_event_controller_new):
1103 Now calls spi_dec_init_mouse_listener.
1105 * registryd/registry.c:
1106 (spi_registry_init):
1107 Now we initialize the device event controller when the registry is
1108 initialized, instead of waiting until a client has requested a key
1109 event notification; this is because we need the event controller
1110 for mouse events, but the mouse event registration API is a
1111 "registry" call and doesn't explicitly call the
1112 deviceeventcontroller.
1113 We now report mouse motion events with a 100 ms idle latency and
1114 a 20 ms granularity when motion is in progress.
1116 * test/event-listener-test.c:
1118 We now register the "detail listener" for events of type
1119 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1120 delivered only for the first mouse event received, and thereafter
1121 "mouse:abs" events are delivered.)
1123 * cspi/spi_registry.c:
1124 DOCS: Documented the above mouse event typestrings.
1126 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1128 Happy Summer Solstice...
1130 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1131 (spi_controller_notify_keylisteners):
1132 Changes to remove a listener from the listener list, freeing its
1133 open keygrabs, if a notification to that listener fails. This
1134 means that although a dead listener can continue to hold a passive
1135 keygrab, a maximum of one dispatch to such a listener can fail
1136 before the listener is removed from the list, thus the keygrab
1137 will be released on the next occurrence.
1138 As part of this fix:
1139 (spi_notify_keylisteners):
1140 Renamed to spi_controller_notify_keylisteners, as the controller
1141 instance must now be passed as an argument.
1142 The copied 'notify' GList is now a list of DEControllerKeyListener
1143 objects, since we need more than just the CORBA reference if a
1144 notify fails and we need to deregister the listener.
1145 (impl_notify_listeners_sync):
1146 (impl_notify_listeners_async):
1147 (spi_device_event_controller_forward_key_event):
1148 Modify use of notify_keylisteners in accordance with above
1150 (spi_deregister_controller_key_listener):
1151 New method introduced by refactoring, from
1152 impl_deregister_keystroke_listener.
1153 (impl_deregister_keystroke_listener):
1154 Call spi_deregister_controller_key_listener.
1155 (spi_key_listener_clone):
1156 New method to copy a key listner without doing a 'ref' on the
1157 remote object instance; used to create a notifier list.
1158 (spi_key_listener_data_free):
1159 New method, frees data without unreffing the source.
1161 (spi_key_listener_clone_free): new method.
1162 (spi_key_listener_free):
1163 refactored to call spi_key_listener_data_free.
1165 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1167 * registryd/registry.c: [fix for bug 86048]
1168 (notify_listeners_cb):
1169 Clear CORBA system exceptions which occur when notifying
1170 listeners, before returning to the source of the original event,
1171 since the event source doesn't care if the relayed notify failed.
1172 In other words, don't complain to the atk-bridge if the registry
1173 could not notify all its listeners, that's no fault of the
1174 application and thus should not appear to be an error from the
1175 application's perspective.
1177 * cspi/spi_main.c: [fix for bug 85980]
1179 Replaced use of bonobo_object_dup_ref with call to the wrapper
1180 method, csou_dup_ref (); this silences a compiler warning and
1181 provided more portability.
1183 Ping the registry before return, and restart if necessary.
1185 * cspi/bonobo/cspi-bonobo.c:
1187 New internal method.
1189 Fixed this method to return an object reference, as it should have
1192 * cspi/cspi-lowlevel.h:
1193 Added internal definition for cspi_ping() and fixed
1194 return type of cspi_dup_ref().
1197 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1199 * atk-bridge/bridge.c: [fix for bug 85305]
1200 (spi_atk_bridge_register_application):
1201 New method where the initial application registry calls have been
1202 moved; it allows an application to re-register in response to
1203 certain error conditions (such as a registry restart, see below).
1205 Moved some initialization code to the method
1206 spi_atk_bridge_get_registry, below.
1207 (spi_atk_bridge_get_registry):
1208 New, private accessor function for the Accessibility_Registry
1209 instance. If the registry has not been started before, or has
1210 died (as detected by failure of a CORBA exception), it is
1211 restarted before return, and spi_atk_bridge_register_application
1212 is called again to register with the new bridge instance.
1213 (spi_atk_emit_eventv):
1214 Set registry_died on error; use spi_atk_bridge_get_registry () to
1215 access the registry.
1217 * registryd/registry.c:
1218 (impl_accessibility_registry_register_global_event_listener):
1219 Set listener's event_type_quark to etype.minor instead of
1220 etype.major (fix for bug 84856).
1222 * test/event-listener-test.c:
1223 (report_detail_event):
1224 Change the output string so that user/tester can tell that the
1225 'detail listener' was called instead of the 'generic listener'.
1227 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1229 Fixes for bugs 84900, 84908, 84897, 84898.
1234 Revved version to 1.1.0
1235 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1236 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1238 * idl/Accessibility_Registry.idl:
1239 (EventListener::notifyEvent):
1240 Removed 'oneway' directive after extensive consulation with
1241 ORBit2 team and others. This means also that unref() of the event
1242 source can and should be done synchronously after emission, rather
1243 than remotely in the client, after servicing the notify call on
1246 NOTE: This change speeds up listener performance considerably, but
1247 introduces new latency on the application side. We may want to
1248 add an event queue to the atk-bridge.
1250 * atk-bridge/bridge.c:
1251 (spi_atk_bridge_focus_tracker):
1252 Do a local unref() on the event source after emission.
1254 * registryd/registry.c:
1255 (desktop_remove_application):
1256 Do an unref() on the event source after emission.
1257 (desktop_add_application):
1258 Do an unref() on the event source after emission.
1259 (notify_listeners_cb):
1260 When relaying an event, don't automatically add the event source
1261 to the local object cache, just CORBA_dup it instead. Likewise,
1262 if this method reenters, release the ref rather than calling
1264 (impl_registry_notify_event):
1265 No longer call remote unref() on the event source after dispatch.
1267 * libspi/eventlistener.c:
1268 (impl_accessible_event_notify_event):
1269 Removed remote unref ()
1271 * cspi/bonobo/cspi-bonobo-listener.c:
1273 We now call cspi_object_new() instead of cspi_object_add() on
1274 receipt of an event; thus we only have an implicit object ref
1275 while the cspi_event method is being executed. If we need to keep
1276 a reference to the object, the listener must call ref() on the
1277 object. Thus also we don't need to call cspi_object_unref() after
1278 invoking the listener callbacks in this method.
1282 New internal API for creating a new cspi object, without adding it
1283 to the object cache.
1285 Now uses cspi_object_new() to create the cspi object instance.
1287 Now checks to see if the object is in the internal object cache,
1288 and adds it if necessary before incrementing its refcount (note
1289 that new objects are added with a refcount of 1).
1290 (report_leaked_ref):
1291 New method which gives some information on leaked object instances
1292 if leak detection is turned on.
1294 * test/event-listener-test.c:
1295 (timing_test_event):
1296 New method, used for testing event delivery timing for special
1297 events of type "object:test". It reports elapsed time and
1298 events/sec every 500 events.
1300 Added a new listener, 'test listener', to check timing of event
1301 receipt as noted above.
1303 Added some timing output here also, reports elapsed time every 100
1306 * test/stress-test.c:
1307 Emit events of type "object:test", for use with "event-listener-test".
1309 * test/test-simple.c:
1310 (global_listener_cb):
1311 Call Accessible_ref() on the event source before calling
1312 validate_accessible, since the validation process does pointer
1313 comparisons on the event source, meaning that the event source
1314 needs to be added to the local object cache first. Any use of
1315 such pointer comparisons between Accessible objects requires that
1316 the caller hold an explicit reference to those objects.
1317 We also must therefore call Accessible_unref() when leaving this method.
1319 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1321 * registryd/deviceeventcontroller.c:
1322 (spi_controller_update_key_grabs):
1323 Fix for #84735, subsequent keygrab listeners not informed of
1324 registration failure.
1327 (spi_base_construct):
1328 Add an assertion on construct, to make sure the GObject passed in
1329 is really a GObject.
1331 Explicitly initialize object->gobj pointer to NULL;
1333 * cspi/bonobo/cspi-bonobo-listener.c:
1334 (cspi_object_add_ref):
1335 New method, can specify whether to dup-ref a bonobo object passed
1336 in if it's newly added to the object cache.
1338 Now calls cspi_object_add_ref with second param of "FALSE". This
1339 prevents us from doing a pointless dup-ref followed by
1340 release-unref for all those cases where the object is already in
1341 our object cache (fix for #85205).
1343 * atk-bridge/bridge.c:
1344 (spi_atk_bridge_idle_init):
1345 Removed this method, we don't need to initialize in an idle
1348 Changed to call spi_atk_register_event_listeners directly, not via an
1349 idle handler. (fix for #81139)
1350 (gnome_accessibility_module_shutdown):
1351 Removed conditional around deregistration of listeners, since we
1352 don't use the idle handler and thus have always registered when
1354 (spi_init_keystroke_from_atk_key_event):
1355 Changed references to Accessibility_KEY_PRESSED to
1356 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1358 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1360 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1365 * test/stress-test.c:
1368 (may have been an incomplete commit yesterday?)
1370 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1373 Added target for new stress-test.
1375 * test/stress-test.c:
1376 New test, sends 1000 focus notifies in quick succession.
1378 * test/key-listener-test.c:
1379 Now we report whether a keylistener registration
1380 request succeeded or failed.
1382 * test/event-listener-test.c:
1383 Uncommented some listeners which are now implemented.
1386 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1388 * registryd/deviceeventcontroller.c:
1389 (spi_controller_update_key_grabs):
1390 Fix for #82509, lack of failure notification when
1391 ALL_WINDOWS keygrabs fail due to XGrabKey
1392 failure: we synchronize the server when
1393 registering a passive grab, to make sure we get the
1394 error message before the call returns.
1396 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1398 * test/test-simple.c:
1400 Removed #ifdef KEY_IMPL_WORKS guards.
1401 (test_keylisteners):
1402 Removed #ifdef KEY_IMPL_WORKS guards.
1403 Fixed bug which was causing a hang waiting for a
1404 "press" event (which was already overwritten by a "release"
1405 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1407 Added code to set globals 'key_press_received' and
1408 'key_release_received'.
1411 Added section "1.1 API Proposed Additions" which
1412 lists API additions desired for at-spi-1.1 (only one so far).
1413 Updated TODO list a little.
1415 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1417 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1420 * configure.in: Revved to 1.0.0.
1422 * idl/Accessibility_Registry.idl:
1423 (registerKeystrokeListener):
1424 Added boolean return value.
1426 * registryd/registry.c:
1427 (notify_listeners_cb): Minor fix to debug output.
1429 * registryd/Accessibility_Registry.server.in.in:
1430 Revved version number in OAFIID to 1.0.
1432 * registryd/registryd.c:
1434 Use new OAFIID version.
1436 * cspi/bonobo/cspi-bonobo.c:
1438 Use new OAFIID version.
1444 * atk-bridge/bridge.c:
1446 Use new OAFIID version.
1448 * registryd/deviceeventcontroller.c:
1449 (impl_register_keystroke_listener):
1450 Added CORBA_boolean return value.
1451 (spi_controller_register_device_listener):
1452 Added gboolean return value.
1453 (spi_controller_register_global_keygrabs):
1454 Added gboolean return value.
1455 (spi_key_set_contains_key):
1456 Added implementation for many more control keys,
1457 for instance F1-F12, arrow keys, End, Home, Page_Up,
1459 [TODO: some still not implemented].
1461 * text/screen-review-test.c:
1462 (text_chunk_pad_string):
1463 New function: it provides mapping between coordinate
1464 positions of text chunks and character positions in the
1465 screen-review-line output string.
1466 (text_chunk_to_string):
1467 New function, calls text_chunk_pad_string with various
1468 pad/delimiter characters. Pushbuttons are delimited with
1469 square brackets, Frames with vertical 'pipe' lines, and
1470 other text with double quotes.
1471 (text_chunk_list_to_string):
1472 Calls new function text_chunk_to_string.
1473 (toplevel_composite):
1474 New function to composite layers CANVAS through
1475 POPUP in each toplevel (other layers are composited
1476 across toplevels, i.e. BACKGROUND and OVERLAY).
1477 (review_buffer_composite):
1478 Revise to use new methods.
1484 2002-05-31 Laszlo Peter <laca@sun.com>
1486 * configure.in: add the Xtst libdir to the runpath on Solaris,
1487 since it's not in the default library search path.
1489 2002-05-29 jacob berkman <jacob@ximian.com>
1491 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
1493 2002-05-29 Bill Haneman <bill.haneman@sun.com>
1495 * test/screen-review-test.c:
1496 (text_chunk_pad_string):
1497 Added method, which pads the string according to the
1498 text bounds of the chunk. It also takes a 3-character
1499 string as a param which indicates the characters to be
1500 used for start, padding, and end delimitation of the chunk.
1501 (text_chunk_to_string):
1502 Changed to use text_chunk_pad_string.
1504 * configure.in: Fixed bug in AC_OUTPUT that was
1505 causing path substitution in Accessibility_Registry.server
1508 2002-05-23 Bill Haneman <bill.haneman@sun.com>
1510 * text/screen-review-test.c:
1511 (guess_string_clip):
1512 New method which attempts a best-guess at clipping
1513 text from components (like Java labels) which don't
1514 actually implement AccessibleText. This inaccurate
1515 clip is based on the assumption that the label is
1516 justified left-and-right, and monospaced.
1517 (text_chunk_get_clipped_string):
1518 We now call guess_string_clip() for text-containing
1519 components that don't implement AccessibleText.
1521 * test/screen-review-test.c:
1522 (review_buffer_get_text_chunk):
1523 We now pull "name" from labels if they do not implement
1524 AccessibleText (i.e. for Java labels).
1525 (get_screen_review_line_at):
1526 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
1529 Replaceded AC_OUTPUT target
1530 registryd/Accessibility_Registry.server with
1531 registryd/Accessibility_Registry.server.in.
1533 * registryd/Accessibility_Registry.server.in:
1534 Removed (this is now a Makefile target).
1536 * registryd/Accessibility_Registry.server.in.in:
1537 Added (source for target above). We now use $(libexecdir) as
1538 prefix for the executable at-spi-registryd.
1540 * registry/Makefile.am:
1541 Now install at-spi-registryd into $(libexecdir), and build .server
1542 file with path (see above).
1544 2002-05-22 Bill Haneman <bill.haneman@sun.com>
1546 * test/screen-review-test.c:
1547 (text_chunk_get_clipped_string):
1548 We now check to see if words fall within clip bounds
1549 before resorting to character-by-character clip bounds testing.
1551 * TODO: Added a section for "2.2 Proposed API Additions".
1553 2002-05-21 Bill Haneman <bill.haneman@sun.com>
1555 * test/screen-review-test.c:
1557 Added a screen review benchmarking and test program to test
1560 * cspi/spi_accessible.c:
1562 Made some of the debug strings passed to cspi_check_ev a
1563 little more specific.
1565 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
1567 * test/screen-review-test.c: Fix crashes in debug statements
1569 2002-05-20 Bill Haneman <bill.haneman@sun.com>
1571 * test/screen-review-test.c: Added this file.
1573 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1575 * atk-bridge/bridge.c: changed "object:state-change" to
1576 "object:state-changed" to match docs.
1578 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1580 * atk-bridge/bridge.c: Hooked up state-change event details.
1582 2002-05-11 Bill Haneman <bill.haneman@sun.com>
1584 * registryd/registry.c:
1585 Fixed quarking bug in event string parsing; now events with
1586 detail parameters get matched correctly to listeners.
1589 * util/idl/Magnifier.idl: remove.
1591 * util/*.[ch]: Remove.
1592 Magnification utilities and IDL are now in module gnome-mag.
1594 2002-05-10 Bill Haneman <bill.haneman@sun.com>
1596 * registryd/deviceeventcontroller.c:
1597 Fixed bug in grab key conversion which was causing keycode grabs
1598 to be converted to AnyKey grabs.
1601 updated NEWS file to reflect recent spin-off of gnome-mag.
1603 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
1605 * cspi/spi_accessible.c: Added exception checks. Fixed completely
1606 busted AccessibleStateSet_compare. Removed redundant casts.
1608 * cspi/spi-action.c: Removed redundant casts.
1610 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
1612 * cspi/spi_component.c: Fixed typos and casting error.
1614 * cspi/spi_editabletext.c: Removed redundant casts.
1616 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
1618 * cspi/spi_hypertext.c: Eliminated redundant casts.
1620 * cspi/spi_image.c: Eliminated redundant casts.
1622 * cspi/spi_registry.c: Eliminated redundant casts.
1623 SPI_deregisterGlobalEventListenerAll () removed retval variable.
1624 * cspi/spi_selection.c: Removed redundant casts.
1625 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
1626 handling. Screen geometry and text offsets were being returned as 0
1627 on error which is technically valid-- changed these to return -1.
1628 Added marshaller for text boundary types to fix bug with boundary
1629 types being passed incorrectly to atk.
1631 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1634 * cspi/spi_registry.c:
1635 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
1636 which was uncovered by the recent key changes.
1638 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1640 * test/event-listener-test.c:
1642 Added new test, "event-listener-test";
1643 this code does two things; it benchmarks traversal time
1644 for the accessible hierarchy for the first running accessible
1645 app, and it connects listeners for all supported event types.
1646 It is thus useful as an example event listener and for
1647 diagnostics/debugging of event generation.
1649 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1652 Removed unnecessary dependency on libutil.
1655 Revved micro version: 0.13.1
1657 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1660 Removed util/Makefile from targets.
1663 Removed util subdir from SUBDIRS (temporarily,
1664 pending removal of magnifier-only code
1668 #ifdef-ed out magnifier dependencies, since
1669 magnifier IDL, headers, and binary now live in
1670 module gnome-mag and we don't want at-spi to depend
1671 on gnome-mag. A magnifier demo which can run alongside
1672 simple-at is forthcoming in the gnome-mag module.
1674 NOTE: Split magnifier binary, IDL, and magnification
1675 activation code from at-spi into module gnome-mag.
1677 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
1679 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
1680 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
1682 2002-05-03 Bill Haneman <bill.haneman@sun.com>
1685 Revved to version 0.13.0
1687 * idl/Accessibility_Registry.idl:
1688 Changed definition of KeySet from sequence of longs to sequence of
1689 KeyDefinitions, and added KeyDefinition struct.
1690 Required for fix to bug 80616.
1692 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
1693 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
1694 to use new definition (see above).
1696 * registryd/deviceeventcontroller.c: handle_keygrab(),
1697 spi_keyset_contains_key():
1698 Changed to make use of new struct; this allows matching based on
1699 string key-name, for instance "Tab". This also allows matching of
1700 composed characters, non-alphanumeric characters in a way that
1701 doesn't involve dependencies on X keysym codes directly, etc.
1703 * test/key-listener-test.c:
1704 Added test for Alt-Tab key using "string" specification of keyset,
1705 and modified one of the tests to use a keycode-based keyset.
1706 Thus this test both tests and demonstrates the creation and use of
1707 keysets of three forms: specified via keycode array,
1708 keysym array, and string array. (The string case only contains a
1709 single string, i.e. a string array of length 1).
1712 Turned on PRINT_TREE option by default. Also fixed a
1713 string-freeing bug in the PRINT_TREE code.
1714 Added a listener to window:minimize events.
1716 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
1718 * atk-bridge/bridge.c:
1719 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
1720 for window:activate and window:deactiveate
1721 (atk_bridge_property_event_listener atk_bridge_signal_listener
1722 atk_bridge_window_event_listener) Tidy debug code
1724 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
1726 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
1727 Fixed handling for NULL return value from ATK.
1729 * libspi/action.c libspi/component.c libspi/editabletext.
1730 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
1731 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
1732 Removed redundant casts.
1734 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
1735 Fixed off by one bug.
1737 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
1738 function not present in idl)
1740 2002-05-02 jacob berkman <jacob@ximian.com>
1742 * atk-bridge/Makefile.am: make atk-bridge a real module
1744 2002-04-26 Radek Doulik <rodo@ximian.com>
1746 * libspi/stateset.c (spi_init_state_type_tables): fix size of
1747 atk_state_types table
1749 2002-04-22 jacob berkman <jacob@ximian.com>
1752 * libspi/Makefile.am: add deps on the built files to help
1753 automake, and don't version the ORBit typelib
1755 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
1757 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
1758 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
1759 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
1760 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
1761 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
1762 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
1763 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
1764 libspi/accessible.h libspi/accessible.h libspi/base.h
1765 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
1766 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
1767 libspi/relation.h libspi/remoteobject.h libspi/selection.h
1768 libspi/spi-private.h libspi/statetset.h libspi/table.h
1769 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
1770 util/mag_client.h util/mag_control.c util/mag_image.c
1771 util/mag_image.h util/magnifier.c util/magnifier.h:
1772 Add missing file headers; standardize existing ones
1774 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
1776 * atk-bridge/bridge.c: Added window event support.
1778 2002-04-18 Michael Meeks <michael@ximian.com>
1780 * libspi/relation.c (impl_getNTargets): impl.
1781 (impl_getTarget): impl.
1783 * libspi/Makefile.am: fix stateset install.
1785 2002-04-17 Bill Haneman <bill.haneman@sun.com>
1788 Started putting useful info in this file.
1790 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
1792 * atk-bridge/bridge.c:
1793 Propagate state-changed notifications to ATs
1795 * cspi/spi_registry.c: update docs to reflect actual behavior of
1796 state-change events.
1798 2002-04-17 Bill Haneman <bill.haneman@sun.com>
1801 Incremented version to 0.12.1
1803 * util/mag_client.h:
1804 Add missing declaration for magnifier_exit,
1805 used by mag_control.c - Forte compiler didn't like
1806 the implicit redeclaration of the function :-(
1809 2002-04-16 Bill Haneman <bill.haneman@sun.com>
1812 Revved version to 0.12 due to API change (see below).
1814 * cspi/spi-roletypes.h:
1815 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
1816 definition from the inline docs, and added docs
1817 for SPI_ROLE_LAST_DEFINED.
1820 * cspi/spi_streamablecontent.c:
1821 Added missing seek_type parameter to
1822 (so far unused) method,
1823 AccessibleStreamableContent_seek().
1824 [ RT approval JodyG. ]
1827 Fixed docs for SPI_createAccessibleKeystrokeListener.
1829 * cspi/spi_registry.c:
1830 Fixed docs for SPI_KEYSET_ALL_KEYS.
1832 * docs/reference/cspi/at-spi-cspi-sections.txt:
1833 Added a number of missing APIs to SECTIONS.
1835 2002-04-16 Bill Haneman <bill.haneman@sun.com>
1837 * registryd/Makefile.am:
1839 * cspi/bonobo/Makefile.am:
1840 Add $(X_LIBS) to makefiles.
1842 2002-04-15 Bill Haneman <bill.haneman@sun.com>
1845 Revved version to 0.11.
1847 * libspi/component.c:
1848 Added implementation for grabFocus.
1850 * idl/Accessibility_Component.idl
1851 (Accessibility_Component_grabFocus):
1852 Made this method return boolean to indicate success or failure, to
1853 be consistent with cspi and the corresponding ATK method.
1855 * idl/Accessibility_Selection.idl
1856 (Accessibility_Selection_selectAll) :
1857 Made these methods return boolean to indicate success or
1858 failure, to be consistent with cspi and the corresponding ATK methods.
1860 * idl/Accessibility_EditableText.idl
1861 (Accessibility_EditableText_setTextContents,
1862 Accessibility_EditableText_insertText,
1863 Accessibility_EditableText_cutText,
1864 Accessibility_EditableText_deleteText,
1865 Accessibility_EditableText_pasteText):
1866 Made these methods return boolean to indicate
1869 * cspi/spi_editabletext.c:
1870 Made these methods return booleans.
1872 * libspi/selection.c:
1873 * libspi/component.c:
1874 * libspi/editabletext.c:
1875 Connected the boolean returns from ATK
1876 to the server-side code referenced above.
1878 2002-04-14 Bill Haneman <bill.haneman@sun.com>
1880 * idl/Accessibility_Table.idl: Added missing methods,
1881 Accessibility_Table_addRowSelection,
1882 Accessibility_Table_addColumnSelection,
1883 Accessibility_Table_removeRowSelection,
1884 Accessibility_Table_removeColumnSelection.
1887 Added C wrappers for above IDL:
1888 AccessibleTable_addRowSelection,
1889 AccessibleTable_addColumnSelection,
1890 AccessibleTable_removeRowSelection,
1891 AccessibleTable_removeColumnSelection.
1894 Added server-side implementation code for IDL above, connecting
1895 to pre-existing ATK api.
1897 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
1899 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
1901 * libspi/accessible.c: Added implementation fo
1902 Accessibility_Accessible_get_state.
1904 * libspi/libspi.h: Added stateset.h to the list of includes.
1906 * libspi/stateset.c: Fixed broken implementation.
1908 2002-04-13 Bill Haneman <bill.haneman@sun.com>
1911 Added implementation code for Accessibility_Magnifier_exit ().
1913 * util/mag_control.c:
1914 Added test code for above method; you can
1915 now kill an existing magnifier via
1916 ./mag_control q, from the util directory.
1918 * test/key-listener-test.c:
1920 Added a new test, for our key listener API.
1922 2002-04-11 Bill Haneman <bill.haneman@sun.com>
1924 * test/app.c, test/keysynth-demo.c:
1926 Replace use of snprintf with g_snprintf.
1927 (fix for bugzilla 78249)
1929 2002-03-27 Michael Meeks <michael@ximian.com>
1933 * util/Makefile.am (INCLUDES): fix.
1934 (DONT_DIST_SOURCE): don't distribute the
1937 * libspi/Makefile.am (dist-hook): ditto.
1939 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
1941 * libspi/hypertext.c:
1942 Fix warnings when yelp is used with atk-bridge
1944 2002-03-21 Michael Meeks <michael@ximian.com>
1946 * libspi/application.c (spi_application_new):
1947 use spi_accessible_construct so we use the AtkObject
1950 2002-03-19 Michael Meeks <michael@ximian.com>
1952 * registryd/registry.c (desktop_remove_application),
1953 (desktop_add_application): clean coding style.
1955 * registryd/desktop.c (spi_desktop_remove_application),
1956 (spi_desktop_add_application): kill re-enterency hazards.
1957 (spi_desktop_dispose): remove bogus redundant cast
1958 obscuring bug; fix bug too.
1959 (spi_desktop_init): make the desktop object immortal.
1961 2002-03-16 Bill Haneman <bill.haneman@sun.com>
1964 Added a #define-guarded tree-traversal step
1965 when enumerating the apps (diagnostic tool).
1967 2002-03-15 Bill Haneman <bill.haneman@sun.com>
1969 * idl/Accessibility_Role.idl:
1970 Added ROLE_DRAWING_AREA which seemed to be missing from the
1973 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1975 * cspi/spi-roletypes.h cspi/spi_accessible.c
1976 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
1979 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
1980 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
1981 AT when applications are added and removed from the desktop. This
1982 reverts the previous broken implementation using the backing
1983 AtkObject for the SpiDesktop.
1985 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1987 * registryd/desktop.c: emit the "children-changed::add" and
1988 "children-changed::remove" signals on the backing ATK object for
1989 the desktop so AT can tell when applications are started and shut
1992 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1994 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
1996 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1998 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2000 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2002 * cspi/state-types.h: synched with IDL and ATK
2004 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2006 * libspi/accessible.c
2007 (impl_accessibility_accessible_get_child_at_index):
2008 Change return value for g_return_if_fail ()
2009 to CORBA_OBJECT_NIL instead of "0" (!)
2011 * registryd/Makefile.am:
2012 * registryd/Accessibility_Register.server.in:
2013 Changed name of executable, "registryd",
2014 to something more informative:
2017 2002-03-13 Michael Meeks <michael@ximian.com>
2019 * atk-bridge/bridge.c (atk_bridge_init): don't register
2020 if we're in a bonobo-component, rather than a bonobo app.
2022 2002-03-13 Michael Meeks <michael@ximian.com>
2024 * atk-bridge/bridge.c (gtk_module_init): split
2025 out body to (atk_bridge_init): here, since otherwise
2026 we get symbol conflicts and oddness when invoked
2027 from (gnome_accessibility_module_init): here (upd.)
2029 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2032 New file. Explicitly allow "build sheriff" putbacks provided
2033 they are tested on Solaris.
2035 * docs/reference/cspi/Makefile.am:
2036 Added '-' to the "cp" command for index.sgml.
2037 ("patch by thomasvs, soon coming to a GUADEC near you")
2040 Incremented version number (0.9.0) for new release.
2041 Changed macro that checks for popt, to better detect
2042 obsolete versions of popt.
2045 Added X_LIBS to AC_SUBST, for applications
2046 that call Xlib API directly.
2049 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2052 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2055 Fix regression caused by hard-coding major
2056 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2059 * test/test-simple.c (test_editable_text),
2060 (test_test): revert previous change (error was
2061 a regression in gail which is now fixed).
2063 2002-03-04 Michael Meeks <michael@ximian.com>
2065 * test/test-simple.c (test_editable_text),
2066 (test_text): pass G_MAXINT instead of '-1' for
2067 whole string - is this a good thing !?
2069 * cspi/spi_accessible.c
2070 (Accessible_getRelationSet): fix crasher bug
2071 overwriting the end of the array.
2073 * test/test-simple.c (validate_accessible): free,
2074 not g_free returned relation set.
2076 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2078 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2079 implemented stateset support
2081 * idl/Accessibility_State.idl: Made necessary changes to
2082 the IDL to support state sets.
2084 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2086 * registryd/deviceeventcontroller.c:
2087 Added implementation for generateMouseEvent.
2089 * cspi/spi_registry.c:
2090 Connected new implementation for generateMouseEvent
2093 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2096 Incremented revision (but no change in public API
2097 outside of 'utils', which are not installed public yet.)
2099 * libspi/component.c:
2100 Changed to use atk_component API for layers and
2101 mdi_zorder, instead of deprecated atk_object API.
2103 Magnification Utility Enhancements:
2106 Added implementation of createZoomRegion, clearAllZoomRegions,
2107 resizeZoomRegion. Added new commandline argument
2108 "--no-initial-region". Note that clearAllZoomRegions doesn't
2109 unmap the old '0' region as it should (yet), and the other
2110 methods only work when creating/resizing a single region,
2111 which is "region 0".
2112 (Code for multiple region support will be added later.)
2115 Now we raise the magnifier window each time it's refreshed;
2116 this will help keep it on top.
2118 * util/mag_client.h:
2119 Added simple wrappers for above, used by mag_control.
2120 For general use, it's recommended to use the bonobo magnifier
2121 control API directly instead of using these wrappers.
2124 Moved ZoomRegionData from magnifier.c to this file.
2126 * util/mag_control.c:
2127 Added some code to exercise new IDL implementations.
2129 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2131 * libspi/text.c: Provide implementation for getAttributes.
2133 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2136 Incremented revision.
2138 * test/test-simple.c:
2139 Replaced use of deprecated g_main_iteration with
2140 g_main_context_iteration.
2142 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2145 Incremented revision for desktop alpha 2.
2147 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2149 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2152 * test/simple-at.c: include netinet/in.h.
2154 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2156 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2157 use NULL, not CORBA_OBJECT_NIL.
2159 * libspi/accessible.c:
2160 (impl_accessibility_accessible_get_relation_set):
2161 allocate the sequence correctly.
2163 * libspi/remoteobject.h: kill spi_remote_object_new.
2165 * test/test-simple.c: (validate_accessible): add code
2166 to test relation sets, now all we need is to figure
2167 out how to excercise this code path :/
2169 2002-01-18 Michael Meeks <michael@ximian.com>
2171 * test/test-simple.c
2172 (key_listener_cb): consume the key.
2173 (test_keylisteners): update.
2174 (main): wait for any pending unrefs on events.
2176 * registryd/deviceeventcontroller.c
2177 (spi_controller_update_key_grabs): only re-issue the
2178 grab on a key release.
2179 (spi_device_event_controller_forward_key_event):
2180 refresh the keygrabs before we notify the listeners,
2181 to reduce the X ungrab / re-grab race.
2182 (spi_controller_register_with_devices): remove
2183 XSelectInput - we do that with the gdk_window_ call.
2184 (_spi_controller_device_error_handler): return a value.
2185 s/GDK_DISPLAY/spi_get_display/
2187 2002-01-17 Michael Meeks <michael@ximian.com>
2189 * registryd/deviceeventcontroller.c
2190 (_deregister_keygrab): don't blow out the later
2193 * test/test-simple.c (test_keylisteners): do a
2194 more intelligent validation.
2196 2002-01-14 Michael Meeks <michael@ximian.com>
2198 * atk-bridge/bridge.c
2199 (gnome_accessibility_module_init),
2200 (gnome_accessibility_module_shutdown): impl.
2201 (gtk_module_init): protect vs. double inits.
2202 (add_signal_listener): impl.
2203 (spi_atk_bridge_state_event_listener): kill
2204 (deregister_application): split out of
2205 (spi_atk_bridge_exit_func): here.
2207 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2210 Added caret tracking when using magnifier, and
2211 now use text bounds for focus tracking of text elements, rather than
2212 the component bounds - this is helpful for short text fields in long
2213 table cells, at high magnification.
2215 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2217 * registryd/deviceeventcontroller.c:
2218 Regression fix for keylistener de-registration; global keygrabs
2219 were not being released when deregisterKeystrokeListener was
2220 called in cspi, since
2221 Accessibility_DeviceEventController_deregisterKeystrokeListener
2222 was called with a zero-length keyset. That is because the cspi
2223 method, SPI_deregisterKeystrokeListener, does not take a keyset
2224 parameter but instead should remove all the key grabs held be a
2226 The code in impl_deregister_keystroke_listener was changed to copy
2227 the keylist from the listener instance previously registered with
2228 the DeviceEventController before releasing the grabs.
2230 * registryd/registry.c:
2231 * registryd/deviceeventcontroller.c:
2232 * libspi/spi-private.h:
2234 Changed spelling of "re-enterant" to "re-entrant" globally.
2236 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2238 * test/test-simple.c:
2239 Changed key listeners test - the test was slightly mis-using the
2240 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2241 It now uses '=' as the key event listened to and generated,
2242 relying on a keysym match rather than assuming that keycode 33
2243 is always equal to keysym '!'.
2245 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2248 Changed simple-at to use a specific keyset, rather than
2249 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2250 manager, desktop, etc.
2252 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2254 * registryd/deviceeventcontroller.c:
2255 Replaced standard X error handler with a special handler that
2256 is non-fatal for failed keygrabs. This works around
2257 problems with keygrab clashes sometimes observed on
2259 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2260 mouse handling code as yet).
2262 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2265 Incremented revision for desktop alpha release.
2268 Fixed a couple of the more glaring errors (still not
2271 2002-01-11 Michael Meeks <michael@ximian.com>
2273 * registryd/deviceeventcontroller.c
2274 (spi_device_event_controller_forward_key_event): kill
2275 XUngrabKey / XKeyGrab race.
2276 (spi_controller_grab_keyboard): rename to
2277 (spi_controller_update_key_grabs): this, and deal
2278 with incremental adding / removing grabs more
2280 (_register_keygrab): ensure we're not pending a remove.
2281 (spi_grab_mask_free): impl.
2282 (spi_controller_register_global_keygrabs): split out
2284 (handle_keygrab): impl.
2285 (_deregister_keygrab): impl.
2286 (spi_controller_deregister_global_keygrabs): impl.
2287 (spi_controller_update_key_grabs): re-issue the grab if
2288 we just recieved a notification.
2290 * test/test-simple.c (key_listener_cb): remove debug.
2292 * registryd/deviceeventcontroller.c
2293 (spi_controller_register_device_listener): after
2294 registering a global keygrab, actualy register it !
2295 don't wait for a timeout; doh !
2297 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2298 to make it more readable / manipulable.
2299 s/grabmask/grab_mask/ s/refcount/ref_count/
2300 s/keyval/key_val/ s/modmask/mod_mask
2302 2002-01-08 Michael Meeks <michael@ximian.com>
2304 * registryd/deviceeventcontroller.c
2305 (spi_controller_register_with_devices): use gdk calls to
2307 (global_filter_fn): implement the filter.
2308 (spi_device_event_controller_check_key_event): rename to
2309 (spi_device_event_controller_forward_key_event): this & upd.
2310 (spi_get_display): replace with GDK_DISPLAY.
2312 * registryd/deviceeventcontroller.c
2313 (spi_controller_deregister_device_listener): unroll into
2314 (impl_deregister_keystroke_listener): here to simplify.
2315 (spi_controller_register_global_keygrabs): split cut and
2316 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2317 (spi_controller_deregister_device_listener): remove.
2318 (impl_register_mouse_listener): remove, no mouse listener
2319 support in at-spi-1.0
2321 * registryd/registry.c
2322 (_device_event_controller_hook): kill.
2323 (spi_registry_init): upd.
2325 * registryd/deviceeventcontroller.c
2326 (spi_device_event_controller_class_init): upd.
2327 (spi_check_key_event): merge into.
2328 (spi_device_event_controller_check_key_event):
2329 here and kill strange static ev init, don't leak
2330 the x_event - nor dynamicaly allocate it.
2332 * registryd/registry-main.c (main): re-direct
2333 timeout to remove strange vtable mess.
2335 * registryd/deviceeventcontroller.c
2336 (remove_listener_cb): impl.
2337 (spi_controller_deregister_device_listener):
2338 fix re-enterancy hazard.
2340 2002-01-07 Michael Meeks <michael@ximian.com>
2342 * registryd/deviceeventcontroller.c
2343 (spi_device_event_controller_new): upd.
2344 (impl_notify_listeners_sync): upd. debug.
2345 (spi_notify_keylisteners): fix re-enterancy hazards,
2346 prettify, remove O(n*n) iteration.
2347 (spi_controller_grab_keyboard): fix iteration.
2348 (spi_check_key_event): re-format to suit coding style.
2349 Clean all the warnings - we're warning free.
2351 * registryd/deviceeventcontroller.h:
2352 * registryd/registry.h: make mutualy referential with
2353 typesafe forward references instead of (!) void pointer
2356 2002-01-11 Michael Meeks <michael@ximian.com>
2358 * cspi/spi_accessible.c (role_names): add a role name
2359 to sync this array with the enum; and make the regression
2362 2002-01-10 Michael Meeks <michael@ximian.com>
2364 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2365 allow expansion of enumeration & kill warning.
2367 * test/test-simple.c (key_listener_cb): impl.
2368 (test_keylisteners): impl.
2370 * cspi/spi-listener.h: make listener signatures const
2371 on the provided (const) events.
2373 * test/keysynth-demo.c: upd. to const events.
2375 * test/simple-at.c: ditto.
2377 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2380 Rev the version to 0.5 (the previous tarball was named 0.4,
2381 even though the micro number was 3), so we need to rev upwards
2382 again for beta2/"desktop-alpha"
2385 Checked in a demo script, which requires editing before use!
2386 Proceed with caution.
2389 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2391 * cspi/spi_accessible.c:
2392 Add a couple of missing enum initializations, and fix some enum
2395 * cspi/spi_registry.c:
2396 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2398 * docs/reference/cspi/at-spi-cspi-sections.txt:
2399 Remove/fix a couple of broken document references.
2402 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2403 as Alt-Control to listen for commands, since on some systems
2404 Control-Alt may already be grabbed.
2406 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2409 Update version number to 0.4 for Beta2.
2411 * libspi/accessible.c, libspi/accessible.h:
2412 Expose spi_accessible_construct, to enable libgail-gnome
2413 construction from spi_accessible subtype.
2415 * utils/magnifier.c:
2416 Workaround for bug in some non-gnome-compliant window managers
2417 which made magnifier resize improperly.
2419 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2421 * libspi/accessible.c: (spi_accessible_new) :
2422 Move the test for SPI_IS_REMOTE_OBJECT to
2423 spi_accessible_new_return, fixing a bug and compile time warning.
2425 2002-01-08 Michael Meeks <michael@ximian.com>
2427 * registryd/registry.c (parse_event_type): remove strndup.
2429 * libspi/Makefile.am (libspi_la_SOURCES): remove
2430 sources already included in the headers section.
2432 * libspi/util.c: add.
2434 * libspi/spi-private.h: add.
2436 * registryd/registry.c: update to moved list iterators.
2438 2002-01-05 Michael Meeks <michael@ximian.com>
2440 * test/simple-at.c (main): upd. auto-module set to atk-bridge
2442 * test/test-simple.c (main): ditto.
2444 2002-01-04 Michael Meeks <michael@ximian.com>
2446 * libspi/accessible.c (spi_accessible_new): remove 2nd,
2447 redundant construct.
2449 * registryd/registry.c
2450 (get_listener_list): impl.
2451 (impl_accessibility_registry_register_global_event_listener):
2452 re-impl. to simplify using ~, remove dodgy const cast off.
2453 (parse_event_type): constify.
2454 (impl_accessibility_registry_deregister_global_event_listener_all):
2455 re-write, more efficiency and simplicity, kill re-enterancy
2457 (compare_listener_corbaref, compare_corba_objects),
2458 (compare_listener_quarks): define out.
2459 (impl_accessibility_registry_deregister_global_event_listener):
2460 re-write for effiency, and nail re-enterancy hazard.
2461 (impl_accessibility_registry_get_desktop_list): impl.
2462 (re_enterant_list_delete_link): impl.
2463 (re_enterant_list_foreach): impl.
2464 (remove_listener_cb): impl.
2465 (_registry_notify_listeners): kill.
2466 (notify_listeners_cb): impl.
2468 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
2469 (SPI_getDesktopList): impl.
2471 * test/test-simple.c (test_desktop): test the methods.
2473 2002-01-03 Michael Meeks <michael@ximian.com>
2475 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
2476 keystrings since we free them
2477 (SPI_freeAccessibleKeySet): in here.
2479 * libspi/accessible.c (spi_accessible_new): kill warning,
2480 wonder what is going on with the constructor here.
2482 2002-03-01 Bill Haneman <bill.haneman@sun.com>
2484 * libspi/accessible.c (spi_accessible_new ()) :
2485 Added check to see if AtkObject is an SpiRemoteObject before
2486 creating an SpiAccessible.
2488 2002-05-01 Bill Haneman <bill.haneman@sun.com>
2490 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
2491 Enable keygrabs using the Control modifier, now that they are
2492 working properly (they were previously disabled).
2495 Change the command keygrab for this demo to "Control+Alt", so as
2496 to conflict with fewer other key commands on the system; this
2497 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
2499 Removed a pointlessly-chatty keylistener for unshifted keys
2500 (shifted keys are still reported).
2502 2002-02-01 Bill Haneman <bill.haneman@sun.com>
2504 * libspi/remoteobject.h:
2505 * libspi/remoteobject.c:
2506 Added definitions for special AtkObject subtype, required for
2507 support of remote components (specifically, used by BonoboControl
2508 accessibility implementation).
2510 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
2512 * cspi/spi.h: synched relation types with ATK
2514 * cspi/spi_accessible.c: Added implementations of
2515 AcccessibleRelation_* methods
2517 * idl/Accessibility_Relation.idl: added getRelationTypeName
2518 method. Synched known relation types with ATK. Allowed for
2519 relation type extension with the RELATION_EXTENDED type.
2521 * libspi/relation.c: Provided implementations for
2522 AccessibleRelation methods.
2524 2002-01-01 Bill Haneman <bill.haneman@sun.com>
2526 API tweaks for today's API 'freeze'.
2529 Added placeholder functions to allow future compatible expansion
2530 of the IDL interfaces.
2532 * idl/Accessibility_Registry.idl:
2533 Changed generateKeyEvent to generateKeyboardEvent. Changed
2534 signature of this method to accept an optional keystring in
2535 parameter (for complex text input synthesis) and changed use of
2536 simple 'boolean' parameter in registerKeystrokeListener to a
2537 struct, EventListenerMode.
2539 * cspi/spi_accessible.c:
2541 * cspi/spi_streamablecontent.c:
2542 Added references to AccessibleStreamableContent interface, and
2543 definition and implementation of AccessibleStreamableContent
2546 * cspi/spi_registry.c:
2548 Changed generateKeyEvent API to generateKeyboardEvent,
2549 taking a new (optional) keystring parameter to support complex
2554 Renamed directory (to better reflect its actual purpose, bridging
2555 from at-spi to ATK). The .so module is also now named
2558 * idl/Accessibility_Hypertext.idl:
2559 * libspi/accessible.c:
2560 * libspi/hypertext.h:
2561 * libspi/hypertext.c:
2562 Changed Accessibility_Hypertext to *not* derive from
2565 * cspi/spi_registry.c:
2566 Added list of legal event type names for 'window' events, which
2567 completes the registry event API.
2569 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
2571 * at-bridge/bridge.c: Added registration for separate
2572 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
2573 signals. If either of the first two parameters to the generic
2574 bridge signal handler are ints, they are passed on as event
2575 details. This allows an AT to determine what text was inserted.
2577 2001-12-21 Bill Haneman <bill.haneman@sun.com>
2579 * registryd/deviceeventcontroller.c:
2580 Fixed regressions in generateKeyEvent caused by the removal of
2581 gdk_init from registryd; we now use pure X calls to connect to the
2582 display, which makes sense because deviceeventcontroller already
2583 uses a fair bit of X API (should eventually be migrated to a
2584 'portability layer').
2586 * registryd/desktop.c:
2587 Fixed minor regression in spi_desktop_init, changed the way the
2588 desktop name is being set to work with new spi_base API
2589 (gobject-based, rather than AtkObject-based).
2591 * registryd/Makefile.am:
2592 Minor revision of makefile to use XTST_LIBS variable rather than
2593 hard-wiring the Xtst LD_ADD element.
2595 * test/keysynth-demo.c:
2596 Tweaked an output message; added initialization of the
2597 'keystrings' member of the "switch listener" key_set.
2599 * libspi/relation.c:
2600 Squashed compile-time warning.
2602 * libspi/accessible.c:
2603 Cosmetic and formatting fixes, renamed a static method.
2605 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
2607 * libspi/accessible.c
2609 * libspi/application.c
2612 * libspi/component.c
2613 * libspi/editabletext.c
2614 * libspi/hyperlink.c
2615 * libspi/hypertext.c
2617 * libspi/selection.c
2621 * registryd/desktop.c:
2622 Changed SpiBase to contain a GObject pointer rather than an AtkObject
2624 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2626 * idl/Accessibility_Registry.idl:
2627 Added boolean member 'is_text' to DeviceEvent. This is for the
2628 use of key events, and helps prevent ambiguity between composed
2629 key strings and keysym names, since both may potentially be
2630 returned in the 'event_string' member.
2632 * at-bridge/bridge.c:
2633 * registryd/deviceeventcontroller.c:
2634 Use the 'is_text' member when notifying device event listeners.
2635 Knon issue: composed characters are not dealt with correctly by
2636 the global key listener implementation yet.
2638 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2640 * at-bridge/bridge.c:
2641 Namespaced local static methods to spi_atk_bridge_* where
2642 previously named bridge_*, and spi_* elsewhere.
2644 * at-bridge/bridge.c:
2645 * cspi/bonobo/cspi-bonobo-listener.c:
2646 Added demarshalling/conversion for string member of
2647 Accessibility_DeviceEvent to AccessibleKeystroke.
2649 * registryd/deviceeventcontroller.c:
2650 Added code to fill the Accessibility_DeviceEvent key string value
2651 member for global key events (i.e. from XGrabKey), to match
2652 behavior of Accessibility_DeviceEvent from the toolkit key events
2653 from the bridge. Fixed timestamp in global key event notifications.
2656 Added printout of key event's string value to
2657 report_ordinary_key_event, for demo/debugging purposes.
2659 2001-12-15 Bill Haneman <bill.haneman@sun.com>
2661 * idl/Accessibility_Registry.idl:
2662 Removed Accessibility_KeyStroke structure in favor of generic
2663 Accessibility_DeviceEvent structure.
2664 Changed Accessibility_ControllerEventMask from a struct to an
2667 * at-bridge/bridge.c:
2668 Changed APIs to use DeviceEvent structure as above, and removed
2669 bogus casting between these event structures.
2671 * cspi/spi-listener.h:
2672 Added keystring member of AccessibleKeystroke structure, to enable
2673 matching on event "names" rather than only hardware codes and
2677 Added keystrings member of AccessibleKeySet struct, to allow
2678 matching on event names (as above).
2679 Added declarations for SPI_createAccessibleKeySet and
2680 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
2681 event modmasks directly as unsigned ints rather than structs with
2682 refcounts, in the DeviceEventController methods.
2684 * cspi/spi_registry.c:
2685 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
2687 * cspi/spi-roletypes.h:
2688 Added documentation of newly added SPI Roles.
2690 * cspi/bonobo/cspi-bonobo-listener.c:
2691 Changes in support of API changes above.
2693 * libspi/accessible.c:
2694 Converted APIs to use DeviceEvent structure (see IDL changes
2697 * registryd/deviceeventcontroller.c:
2698 Added DEControllerGrabMask structure to track keygrabs not only by
2699 modmask but by keyset as well; this allows us to do "global"
2700 (i.e. X) keygrabs on a per-key or keyset basis rather than always
2701 grabbing on AnyKey and then filtering after-the-fact.
2702 Bugfixes for event filtration mean that we don't get false matches
2703 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
2705 * registryd/deviceeventcontroller.c:
2706 Namespaced a number of static methods to use spi_ prefix. Major
2707 revision to internals of global (i.e. X) key grabs.
2709 * registryd/deviceeventcontroller.h:
2710 Removed keymask_list and added keygrabs_list to
2711 SpiDeviceEventController struct.
2714 Added use of SPI_createAccessibleKeySet API when creating a
2715 listener for only one key. Attach a listener to "shift spacebar
2716 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
2717 X key event names to SPI key event names, so that listeners are
2718 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
2720 * test/keysynth-demo.c:
2721 Changed (incorrect) use of X key event names (KeyPressed,
2722 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
2725 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2727 * libspi/accessible.c:
2728 Convert all AtkRole enumerations to Accessibility_Role enums when
2729 getting a role from an AtkObject.
2731 * cspi/spi_accessible.c:
2732 Complete the conversion of Accessibility_Role enums at runtime to
2733 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
2734 role enums correctly match those given in spi-roletypes.h.
2735 Re-synchronize the local names list for AccessibleRole_getName ().
2736 AccessibleRole_getName is now deprecated, since it duplicates the
2737 more reliable Accessible_getRoleName.
2738 Added some role types from Accessibility_Role.idl.
2740 * idl/Accessibility_Role.idl:
2741 Added some role types used by AtkRole.
2743 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2746 * cspi/spi_registry.c:
2748 * cspi/cspi-bonobo-listener.c:
2749 Namespaced all methods that did not begin with an "SPI_" or
2750 "Accessible" prefix to "SPI_".
2753 Homogenized internal function namespace to "cspi_" for statics.
2756 Patched tests to use the new CSPI API.
2758 * docs/reference/cspi/at-spi-cspi-sections.txt:
2759 Updated docs to reflect namespace changes, and added a number of
2760 methods to the documentation.
2762 * registryd/registry.c:
2763 Changed use of strings and string hashes in listener event
2764 matching and parse_event_string to use GQuark, which is guaranteed
2767 * registryd/registry.h:
2768 Squashed annoying warning.
2770 * idl/Accessibility_Role.idl:
2771 Extended range of available Accessibility_Role values.
2773 * cspi/spi_accessible.c:
2774 Re-ordered role names.
2776 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2778 * idl/Accessibility_Value.idl:
2779 Revert use of union back to CORBA_double, since the double type is
2780 more efficient and can contain the other types without loss of
2783 * idl/Accessibility_Accessible.idl:
2784 Added method Accessibility:Accessible:getRoleName, to complement
2785 Accessibility:Accessible:getRole.
2787 * cspi/spi_accessible.c:
2789 Added C binding for above, Accessible_getRoleName (), and changed
2790 signature of Accessible_getRole () to return an AccessibleRole.
2792 * cspi/spi-roletypes.h:
2793 Changed AccessibleRole_getName to return a char * instead of a
2794 const char *. This method is now at least temporarily deprecated
2795 in favor of asking Accessibles for their RoleNames directly.
2798 Revert to match Accessibility_Value.idl;
2802 Change signature of AccessibleValue methods to use double rather
2806 * cspi/spi_accessible.c:
2807 Changed Accessible_getRole to return an AccessibleRole enum rather
2808 than a UTF-8 string. The UTF-8 string can still be obtained via
2809 AccessibleRole_getName ().
2811 * test/test-simple.c:
2812 Add test_action. Small fixup to match API change to Accessible_getRole.
2815 Bugfix for get_action_from_servant ().
2817 2001-12-11 Michael Meeks <michael@ximian.com>
2819 * libspi/libspi.h: remove registry.h and
2820 desktop.h, deviceeventcontroller.h
2822 * libspi/Makefile.am: remove registry.[ch],
2823 desktop.[ch], deviceeventcontroller.[ch]
2825 * registryd/Makefile.am: add registry.[ch],
2826 desktop.[ch], rename registryd.c to registry-main.c.
2827 add deviceeventcontroller.[ch]
2829 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2832 Replace setenv() call with putenv ().
2834 * libspi/component.c:
2835 Bugfix in AccessibleComponent_getExtents (),
2838 2001-12-11 Michael Meeks <michael@ximian.com>
2840 * libspi/image.c (impl_getImageExtents): impl.
2841 (spi_image_class_init): upd.
2844 (AccessibleImage_getImageDescription): fix daft bug
2847 * test/test-simple.c (global_listener_cb): update
2848 to only quit if not --poke
2849 (main): catch --poke.
2850 (validate_accessible): upd. dumping, call test_image
2853 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
2856 * idl/Accessibility.idl: update all IDL includes.
2858 * idl/*.idl - rename to namespace - this sucks, blame
2859 mjs' bad decision for oafd.
2861 * test/test-simple.c (create_test_window): add more tests.
2862 (create_tree): split this out.
2863 (validate_accessible): bugfix.
2865 2001-12-11 Michael Meeks <michael@ximian.com>
2867 * cspi/bonobo/cspi-bonobo-listener.c:
2868 (cspi_kestroke_listener_unref),
2869 (cspi_event_listener_unref): impl. undoing previous
2870 homenous environment - for Bill.
2872 * cspi/spi_table.c (long_seq_to_array): use
2875 * cspi/spi_main.c: split out all bonoboish bits into
2878 * cspi/spi-impl.h: upd. typedefs.
2880 * cspi/spi_registry.c: update to lowlevel API,
2881 return booleans to indicate success in some places.
2883 * cspi/spi_event.c: update to lowlevel API.
2885 * cspi/bonobo/Makefile.am: add.
2887 * cspi/bonobo/cspi-lowlevel.h: add
2889 * cspi/bonobo/cspi-bonobo.c: add
2891 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
2893 * cspi/Makefile.am: remove spi-listener-impl.[ch],
2894 (SUBDIRS): add bonobo, link in the libs.
2896 * cspi/spi-util.c: kill this file.
2898 * TODO: merge in my bits.
2900 2001-12-11 Michael Meeks <michael@ximian.com>
2902 * test/test-simple.c (test_value, test_table, main):
2903 remove unused variables causing warnings.
2905 * configure.in: cleanup checks - require gail.
2907 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2910 Changed Value interface to use SValue (scalars) rather than
2911 assuming all values are floats. This allows floats, doubles,
2912 longs, shorts, and unsigned values to be manipulated.
2913 Introduced Accessibility:SValue union.
2916 Updated to use new API above, and to work correctly with GValues
2917 of different types in AtkValue.
2920 Updated to use new API above. cspi's API is as yet unchanged.
2923 Updated the Value revision action item.
2925 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2927 * test/test-simple.c:
2928 Added test_table (GtkTreeView widget in test window to follow).
2929 Un-commented test_value, added GtkRange widget.
2930 Added GtkTreeView widget with GtkListStore. It passes regression
2931 test but leaks one SPI object for some reason.
2934 Fixed bug in impl__set_currentValue.
2936 2001-12-10 Michael Meeks <michael@ximian.com>
2938 * cspi/spi_text.c: audit for exception handling,
2939 tolerating NULL object references safely etc.
2941 * cspi/spi_value.c: ditto.
2943 * cspi/spi_table.c (AccessibleTable_getSummary),
2944 (AccessibleTable_getAccessibleAt),
2945 (AccessibleTable_getRowHeader),
2946 (AccessibleTable_getColumnHeader),
2947 (AccessibleTable_getCaption): fix bugs hidden by
2949 (long_seq_to_array): impl.
2950 (AccessibleTable_getSelectedRows),
2951 (AccessibleTable_getSelectedColumns): use it.
2953 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2956 Added a TODO list (rough and short for now).
2958 * cspi/spi_hyperlink.c:
2959 * cspi/spi_hypertext.c:
2960 Fixed macro name typos, and remove use of obsolete macro in
2961 AccessibleHyperlink_getLink.
2963 * cspi/spi_action.c:
2964 * cspi/spi_accessible.c:
2965 * cspi/spi_application.c:
2966 * cspi/spi_component.c:
2967 * cspi/spi_selection.c:
2970 Documentation fixes (removed return values from ref/unref methods).
2972 2001-12-10 Michael Meeks <michael@ximian.com>
2974 * cspi/spi_action.c: audit for exception handling,
2975 tolerating NULL object references safely etc.
2977 * cspi/spi_accessible.c: ditto.
2979 * cspi/spi_component.c: ditto.
2981 * cspi/spi_editabletext.c: ditto.
2983 * cspi/spi_hyperlink.c: ditto.
2985 * cspi/spi_hypertext.c: ditto.
2987 * cspi/spi_image.c: ditto.
2989 * cspi/spi_selection.c: ditto.
2991 2001-12-10 Michael Meeks <michael@ximian.com>
2993 * configure.in: use cspi/libspi.pc.in instead.
2995 * Makefile.am (pkgconfig_DATA): upd. to match.
2997 * test/simple-at.c (report_focus_event): kill hacks around
2998 bad return values, use putenv not setenv
3000 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3001 fire ChildGone - I killed it.
3003 * libspi/component.c
3004 (impl_accessibility_component_get_extents): remove
3007 * idl/Accessible.idl: kill ChildGone exception.
3009 * cspi/*.[ch]: kill int return from ref / unref.
3011 * cspi/spi_main.c (cspi_object_add_check): fold into
3012 (cspi_object_add): here.
3014 * cspi/spi_component.c (AccessibleComponent_getExtents):
3015 handle exceptions elegantly.
3017 * cspi/spi-private.h (cspi_check_ev_return),
3018 (cspi_return_if_fail): impl.
3020 * cspi/spi_accessible.c: use extensively.
3021 (AccessibleStateSet_equals): add direct compare check.
3023 * cspi/spi_selection.c: tolerate NULL objs, and check
3024 exceptions before return.
3026 * cspi/spi-util.c (cspi_warn_ev): rename to
3027 (cspi_check_ev): this & don't pass ev in; no point.
3029 2001-12-10 Michael Meeks <michael@ximian.com>
3031 * test/test-simple.c: use putenv not setenv
3032 (get_environment_vars): more chatty if you're not using
3035 * test/simple-at.c: do the setenv so more people see the
3038 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3040 * libspi/registry.c:
3041 Changed check of CORBA_environment on notification to be a warning
3042 instead of an error for the moment, since we can recover from this
3043 error when caused by a queued notification from a dead app.
3046 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3047 used by all current implementors of AtkValue), and coerce to
3048 CORBA_float. (Proper general case fix may require change to Value.idl).
3050 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3054 * cspi/spi_accessible.c:
3055 Documentation fixes: added user_data params to documentation for
3056 listeners and callbacks.
3058 * cspi/spi_accessible.c:
3059 Changed AccessibleStateSet_compare to return a
3060 StateSet rather than return the difference set into a third parameter.
3063 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3066 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3067 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3071 Remove subdirectory po from SUBDIRS for now.
3073 * at-bridge/bridge.c:
3074 Beefed up a couple of debug printouts.
3075 One-line fix for signal notification name formatting.
3077 * libspi/accessible.c:
3078 Added assertion to spi_accessible_new ().
3080 * libspi/application.c:
3081 Put #ifdef qualifiers around a printf.
3084 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3086 * registryd/Makefile.am:
3088 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3089 INTLTOOL_SERVER_RULE macro.
3092 Added an event listener for several ATK signals, for
3093 testing and debugging. Removed a few g_warnings.
3094 Added test output if focussed item implements the Value interface.
3096 * test/test-simple.c:
3097 Added test_value () function (known not to pass at the moment, so
3098 not actually called yet.
3100 2001-12-08 Michael Meeks <michael@ximian.com>
3102 * at-bridge/bridge.c (bridge_focus_tracker),
3103 (emit_eventv): fix the same ref. leak.
3104 (register_atk_event_listeners): don't leak.
3106 * cspi/spi-listener-impl.c (cspi_event): more
3107 protection from client code.
3109 * test/test-simple.c (test_desktop): unref the app.
3111 * test/Makefile.am: upd. TESTS.
3113 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3115 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3117 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3119 * cspi/spi_registry.c: constify in strings.
3120 (deregisterGlobalEventListenerAll): don't release the ref.
3122 * cspi/spi.h: start removing redundant / conflicting
3123 gtkdoc comments, making the API readable at a glance :-)
3125 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3127 * test/keysynth-demo.c (keysynth_exit, main): upd.
3129 * test/simple-at.c (main, simple_at_exit): upd.
3131 * test/test-simple.c (unutterable_horror): kill.
3132 (utterable_normal_derefs): kill.
3133 (main): upd & do a setenv before gtk_init, so that we
3134 can use memprof - and to save the pain of remembering
3135 this, if we're running under memprof - don't exit.
3137 * cspi/spi_main.c (SPI_exit): return exit status
3139 (SPI_event_quit): impl.
3140 (SPI_event_main): simplify.
3141 (cspi_is_gnome_app): kill.
3142 (SPI_init): kill isGNOMEapp arg.
3144 * at-bridge/bridge.c (register_atk_event_listeners):
3145 re-instate the unref.
3146 (bridge_exit_func): don't re-activate the registry,
3147 protect vs. theoretical re-entry, use the
3148 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3149 assert a clean shutdown - for regression tests.
3151 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3153 * configure.in: Comment out dummy i18n support for now,
3154 otherwise it fails to build.
3155 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3156 EXTRA_DIST. They are missing in tarball.
3158 2001-12-07 Michael Meeks <michael@ximian.com>
3160 * util/magnifier.c: kill bonobo activation reg. race.
3162 * libspi/component.c
3163 (impl_accessibility_component_get_extents): make it match
3166 * libspi/registry.c (_registry_notify_listeners):
3167 re-remove X headers & reconcile conflicts.
3168 (spi_listener_struct_free): bad conflict resolve.
3169 (impl_accessibility_registry_register_application):
3170 more bad merging fixed.
3171 (impl_accessibility_registry_deregister_application): ditto.
3172 (spi_registry_new): ditto.
3173 (spi_registry_init): don't have an applications field.
3175 [ merge fixups2 branch to here ]
3176 2001-12-07 Michael Meeks <michael@ximian.com>
3178 * test/simple-at.c (report_focus_event),
3179 (report_focussed_accessible): remove g_warning debug.
3181 2001-12-07 Michael Meeks <michael@ximian.com>
3183 * test/test-simple.c (validate_tree): comment out some checks.
3184 (test_desktop): app now not registered idly - horay.
3186 2001-12-07 Michael Meeks <michael@ximian.com>
3188 * cspi/spi_registry.c
3189 (registerAccessibleKeystrokeListener): clean, stop it leaking
3190 great swathes of memory, and device event controller references.
3191 ensure we always pass valid sequences.
3192 (deregisterAccessibleKeystrokeListener): ditto.
3193 (generateKeyEvent): upd.
3195 * at-bridge/bridge.c (bridge_key_listener): handle
3196 registry dead exception gracefully.
3197 (bridge_focus_tracker, emit_eventv): free ev.
3199 * test/simple-at.c (report_focus_event): fix polarity.
3201 * libspi/application.c (notify_listeners): kill the ev
3202 argument, and make sure we init the ev we use.
3203 (spi_application_object_event_listener): split out a chunk
3204 (get_atk_object_ref): here & fixup.
3205 (reverse_lookup_name_for_toolkit_event): make const.
3206 (spi_application_toolkit_event_listener): fixup, kill leaks
3209 * at-bridge/bridge.c (register_atk_event_listeners):
3210 don't unref the noop object - causes grief.
3212 * libspi/registry.c: remove the X headers.
3213 turn off the debug churn.
3215 * libspi/accessible.c (spi_accessible_new_return): only
3216 release the ref if we are supposed to [doh]
3218 * test/simple-at.c (report_button_press, report_focus_event):
3219 guard vs. unexpected exit.
3221 * at-bridge/bridge.c (gtk_module_init): prune printf.
3222 (bridge_exit_func): fix app unref.
3224 * libspi/Makefile.am: don't install registry or desktop.h
3226 * libspi/*.h: update includes.
3228 * libspi/application.h: don't include ourself, or
3229 other redundant headers.
3231 2001-12-06 Michael Meeks <michael@ximian.com>
3233 * libspi/accessible.c
3234 (get_accessible_from_servant): impl.
3235 Upd. all CORBA impl.s to use it killing cut and paste.
3237 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3239 (SPI_init): register atexit cleanup handler here.
3241 2001-12-06 Michael Meeks <michael@ximian.com>
3243 * at-bridge/bridge.c (gtk_module_init): g_error on
3244 activation exception
3246 2001-12-06 Michael Meeks <michael@ximian.com>
3248 * at-bridge/bridge.c (gtk_module_init): some sort of
3249 confusing merge clash - reverted.
3250 (bridge_idle_init): ditto.
3252 * test/test-simple.c (main, utterable_normal_derefs):
3253 merge from Bill - somehow not committed.
3255 2001-12-06 Michael Meeks <michael@ximian.com>
3257 * libspi/value.c (spi_value_class_init): upd.
3258 (spi_value_finalize): kill.
3260 * libspi/table.c (spi_table_finalize): kill.
3261 (spi_table_interface_new): upd.
3262 (spi_table_class_init): upd.
3263 (get_table_from_servant): impl.
3264 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3266 * libspi/selection.c (spi_selection_finalize): kill.
3267 (spi_selection_interface_new): upd.
3268 (spi_selection_class_init): upd.
3269 (get_selection_from_servant): impl.
3270 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3272 * libspi/relation.c (spi_relation_finalize): kill.
3273 (spi_relation_class_init, spi_relation_new): upd
3275 * libspi/image.c (spi_image_finalize): kill.
3276 (spi_image_class_init): upd.
3277 (spi_image_interface_new): upd.
3278 (get_image_from_servant): impl.
3279 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3281 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3282 (spi_hyperlink_finalize): kill.
3283 (spi_hyperlink_new): upd.
3284 (get_hyperlink_from_servant): impl.
3285 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3287 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3288 (spi_hypertext_finalize): kill.
3289 (spi_hypertext_class_init): upd.
3290 (get_hypertext_from_servant): impl.
3291 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3293 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3294 (spi_editable_text_interface_new): upd.
3295 (get_editable_text_from_servant): impl.
3296 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3298 * libspi/text.c (get_text_from_servant): impl.
3299 All impls - update to use it killing more cut and paste,
3300 also fix bad string returns on duff args ( a somewhat
3301 impossible case to handle - but hey ).
3302 (spi_text_construct): impl.
3303 (spi_text_interface_new): upd.
3304 (spi_text_object_finalize): kill.
3306 * libspi/component.c
3307 (accessibility_component_object_finalize): kill.
3308 (spi_component_class_init): upd.
3309 (get_component_from_servant): impl. helper to kill cut & paste.
3310 (impl_accessibility_component_contains):
3311 (impl_accessibility_component_get_accessible_at_point):
3312 (impl_accessibility_component_get_position):
3313 (impl_accessibility_component_get_extents):
3314 (impl_accessibility_component_get_mdi_z_order):
3315 (impl_accessibility_component_get_layer):
3316 (spi_component_interface_new): upd.
3318 * libspi/action.c (spi_action_finalize): kill.
3319 (spi_action_class_init): upd. inherit from SpiObject.
3320 (spi_action_interface_new): upd.
3321 (get_action_from_servant): impl. helper to reduce cut & paste.
3322 (impl_getKeyBinding, impl_getName, impl_doAction),
3323 (impl_getDescription): Use it everywhere.
3325 * cspi/spi_main.c (get_live_refs): a pointer hash.
3326 (spi_object_hash, spi_object_equal): comment out.
3327 There are issues with CORBA object hashing that need
3330 * libspi/application.c (spi_application_init),
3331 (spi_application_new): upd.
3333 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3334 (spi_accessible_class_init): upd.
3335 s/accessible/object/ in epv methods.
3337 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3339 * at-bridge/bridge.c:
3340 Reorder the bridge initialization into the bridge gtk_module_init,
3341 an immediate call to bridge_register_app, and an idle_add for
3342 register_atk_event_listeners (the only code that *must* wait until
3343 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3344 the activation, creates the application's Accessible object, and
3345 queues the bridge_idle_init function. Restored call to
3346 Accessibility_Registry_deregisterApplication().
3347 Prior to making this call we obtain a new reference to the
3348 registry, which is a temporary hack that helps us handle apps that
3349 shut down the bonobo mainloop before we get there.
3351 * libspi/registry.c:
3352 Fix string leakage in debug block, and don't segv if a an app
3353 dies before its event notifications have been propagated.
3356 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3357 as stopgap measure until we get proper exception handling when
3358 objects die during or before interrogation.
3362 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3363 Also changed default value of is_gnome_app to TRUE.
3366 * test/keysynth-demo.c:
3367 Changed use of SPI_init and SPI_event_main to reflect API change above.
3370 Made report_focus_event check the warning value from getName
3371 before reporting on focussed accessible; simplifies handling of
3372 notifications from dead objects.
3374 * test/test-simple.c: (Changes not in this patch since source is
3377 2001-12-05 Michael Meeks <michael@ximian.com>
3379 * registryd/registryd.c (main): protect against
3380 bonobo-activation startup race condition.
3382 * cspi/spi_main.c (cspi_object_add_check): cope
3383 with the exception elegantly.
3385 * idl/Accessible.idl: decl. ChildGone
3387 * libspi/desktop.c (spi_desktop_dispose): impl.
3388 (spi_desktop_class_init): upd.
3389 (spi_desktop_add_application),
3390 (spi_desktop_remove_application),
3391 (abnormal_application_termination): impl.
3392 (impl_desktop_get_child_at_index): re-impl.
3395 (impl_accessibility_registry_deregister_application),
3396 (impl_accessibility_registry_register_application):
3397 kill excessive debug clutter.
3399 * test/test-simple.c (test_misc): test some NULL
3400 tolerance. (main): upd.
3402 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3403 implements no interfaces - so let's not crash.
3405 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3407 * libspi/accessible.c (spi_accessible_new_return): impl.
3408 helper to calm the cut and paste, to cope with
3409 NULL AtkObjects effectively and efficiently, and to kill
3410 the referencing bugs.
3412 * libspi/table.c (impl_getAccessibleAt),
3413 (impl_getRowHeader, impl_getColumnHeader): upd.
3415 * libspi/hyperlink.c (impl_getObject): upd.
3417 * libspi/accessible.c
3418 (impl_accessibility_accessible_get_child_at_index): upd.
3420 * libspi/component.c
3421 (impl_accessibility_component_get_accessible_at_point): upd.
3423 * test/test-simple.c (test_editable_text, test_text): impl.
3426 * cspi/spi_editabletext.c
3427 (AccessibleEditableText_insertText): constify.
3429 * test/test-simple.c (focus_me): make more robust.
3431 * libspi/accessible.c: remove some printfs in methods that
3432 we test and work fine, so we can get a clean tree dump.
3434 * test/test-simple.c (validate_accessible),
3435 (validate_tree): make tree dumping pretty too.
3437 * at-bridge/bridge.c (bridge_signal_listener): upd. so
3438 it builds without debug on.
3440 * test/test-simple.c (validate_accessible): fix the most
3443 * cspi/spi_main.c (spi_object_release): leave the nicely
3444 blanked memory around if in debug mode.
3446 * cspi/spi-listener-impl.c (cspi_event): use add_check.
3448 [committed to fixups2]
3449 2001-12-05 Michael Meeks <michael@ximian.com>
3451 * libspi/editabletext.c
3452 (spi_editable_text_class_init): g_type_class_peek_parent,
3453 not interface peek - so we finalize cleanly.
3455 * libspi/accessible.c (spi_accessible_new): kill debug.
3457 * test/test-simple.c (validate_accessible): fix ref.
3458 leak, print strings before freeing them; sigh, comment a
3459 chunk out due to strangeness.
3460 (validate_tree): unref the child after use.
3462 * cspi/spi_component.c (AccessibleComponent_getLayer):
3463 add missing break statement, switch on zlayer not the
3464 uninitialized retval.
3466 * cspi/spi_main.c (cspi_object_add): add assert, local ref
3467 before (possibly re-entering) remote unref.
3469 * test/simple-at.c (main): unref the desktop.
3471 * cspi/spi_accessible.c (cspi_accessible_is_a): move
3474 * cspi/spi_main.c (cspi_accessible_is_a): here to
3475 isolate bonobo API usage more.
3477 * libspi/registry.c (impl_accessibility_registry_register_application):
3478 prune bogus comment.
3480 2001-12-04 Michael Meeks <michael@ximian.com>
3482 * test/test-simple.c (validate_tree): upd.
3483 IndexInParent check to make it more lucid.
3484 (validate_accessible): dump the tree.
3486 * libspi/accessible.c (de_register_public_ref),
3487 (get_public_refs): impl.
3488 (spi_accessible_new): make more efficient & intuitive.
3489 Now IndexInParent check works.
3491 2001-12-04 Michael Meeks <michael@ximian.com>
3493 * cspi/spi-util.h: remove.
3495 * cspi/spi.h: move SPI_freeString here
3497 * libspi/component.c (impl_accessibility_component_get_layer):
3499 (impl_accessibility_component_get_mdi_z_order): ditto,
3500 return -1 on error - is this ok ?
3502 * test/test-simple.c (test_application): impl.
3504 * cspi/spi_accessible.c (Accessible_getApplication),
3505 (Accessible_isApplication): impl.
3507 * libspi/registry.c (spi_listener_struct_free): release
3508 the CORBA reference too.
3510 * libspi/accessible.c
3511 (impl_accessibility_accessible_get_parent): fix ref leak.
3513 * libspi/registry.c (spi_registry_new): make the registry
3514 immortal - we don't want it to go away ever.
3516 * libspi/application.c
3517 (spi_accessible_application_finalize): impl. cleanup.
3519 * cspi/spi_registry.c
3520 (deregisterGlobalEventListenerAll),
3521 (deregisterGlobalEventListener),
3522 (deregisterAccessibleKeystrokeListener): fix ref leak.
3524 * cspi/spi_main.c (SPI_init): remove redundant ref.
3526 * test/test-simple.c (unutterable_horror): impl. to force a
3531 (impl_accessibility_registry_deregister_application): release
3532 the application when we de-register it.
3534 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
3535 until we have the infastructure to get it right.
3537 2001-12-03 Michael Meeks <michael@ximian.com>
3539 * libspi/Makefile.am: only build eventlistener.[ch]
3541 * libspi/accessible.c
3542 (impl_accessibility_accessible_get_child_at_index): don't leak.
3544 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
3545 before we hit the idle handler.
3547 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
3548 debugging than exit.
3550 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
3552 * libspi/listener.c (impl_notify_event): check source
3553 not NIL before unref.
3555 * libspi/registry.c (impl_registry_notify_event): ditto.
3557 * libspi/eventlistener.c
3558 (impl_accessible_event_notify_event): unref the source.
3560 * libspi/accessibleeventlistener.c
3561 (impl_accessible_event_notify_event): unref the source.
3563 * idl/Event.idl: remove 'hash_id' attribute - of no
3566 * libspi/application.c (notify_listeners): upd list
3568 (spi_application_object_event_listener),
3569 (spi_application_toolkit_event_listener): upd to do correct
3573 (_registry_notify_listeners): update.
3574 (parse_event_type): this method also leaks like a sieve.
3575 (impl_accessibility_registry_deregister_global_event_listener):
3576 fix ETYPE_WINDOW case.
3578 * libspi/application.c
3579 (impl_accessibility_application_register_object_event_listener):
3582 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
3584 * libspi/hypertext.c (impl_getLink): ditto.
3586 * cspi/spi_main.c (cspi_object_add): remove
3587 bogus CORBA_Object_duplicate.
3589 * cspi/spi-listener-impl.c (cspi_event): dup/ref
3592 * cspi/spi_accessible.c
3593 (Accessible_getRelationSet): fix leak / referencing issue.
3595 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
3596 (cspi_object_add, cspi_object_unref): upd.
3597 (spi_object_release, get_live_refs): impl.
3598 (cspi_cleanup): simplify.
3600 * *.[ch]: s/boolean/SpiBoolean/
3602 * cspi/spi_accessible.c (role_names): actualy order so it
3603 corresponds with the enum !
3605 * test/test-simple.c (test_roles): check some role strings
3606 vs. enums to detect offset errors.
3608 2001-12-01 Michael Meeks <michael@ximian.com>
3610 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
3612 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
3614 (Accessible_getChildAtIndex): use cspi_add_check so we
3615 check the ev before using a (possibly) invalid value.
3617 * libspi/accessible.c
3618 (impl_accessibility_accessible_get_parent): don't segv
3621 * at-bridge/bridge.c (gtk_module_init): upd.
3622 (bridge_property_event_listener): don't leak strings
3624 (bridge_state_event_listener),
3625 (bridge_property_event_listener): don't use a static
3626 buffer in case of recursive event emission &
3627 re-enterancy - split out the swathe of cut and paste
3629 (emit_eventv): and fix 2 ref leaks here & comply to the
3631 (bridge_register_app): rename to
3632 (bridge_idle_init): this and kill arg parsing, split
3633 various inits & bonobo-activation registration to module
3634 init time, kill referencing error.
3635 (bridge_exit_func): fix the same leak.
3636 (bridge_focus_tracker): don't leak event structures
3638 (bridge_signal_listener): more leakage and cut & paste
3640 (bridge_key_listener): return the result - FIXME is
3641 this polarity correct ?
3642 (accessibility_keystroke_from_atk_key_event): rename
3643 (accessibility_init_keystroke_from_atk_key_event): and stop
3645 (gtk_module_init): return a value - not that it is checked by
3647 (bridge_key_listener): register my horror at casting between
3648 IDL defined structs.
3649 (bridge_get_registry): kill - not used.
3651 * cspi/spi_accessible.c (Accessible_getRole): make return const.
3653 * test/test-simple.c (test_roles): impl.
3654 (test_desktop, validate_accessible, validate_tree): impl.
3656 * cspi/spi_accessible.c (role_names): fixup bogus
3657 MAX_ROLES setup, make constants const for efficient linkage
3658 (AccessibleRole_getName): conform to coding style, make
3661 2001-11-30 Michael Meeks <michael@ximian.com>
3663 * cspi/spi.h: add missing prototype.
3665 * libspi/registry.c (spi_listener_struct_new): fix sig.
3667 * test/Makefile.am: add test-simple
3669 * test/test-simple.c: add
3671 * test/test.sh: add.
3673 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
3675 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
3676 do it straight - since otherwise we often get an activation race.
3678 [ work before Bill duplicated a chunk of it ... ]
3679 2001-11-30 Michael Meeks <michael@ximian.com>
3681 * libspi/keystrokelistener.c
3682 (spi_keystroke_listener_class_init): fixup arg
3685 * libspi/eventlistener.c
3686 (spi_event_listener_class_init): ditto.
3688 * tests/test.sh: add.
3690 * cspi/spi-listener-impl.h: update macros.
3692 * cspi/spi-listener-impl.c
3693 (cspi_event_listener_remove_callback): add
3694 correct pre-conditions.
3696 * cspi/spi_main.c (SPI_exit): guard vs. double
3697 exits, exit the mainloop nicely.
3698 (SPI_event_main): make more sense.
3699 (SPI_init): move the atexit evilness here so we
3700 always do it (yuck).
3701 (SPI_event_main): upd.
3703 * test/simple-at.c: update for listener changes.
3705 * registryd/registryd.c (main): prune kruft.
3707 * libspi/libspi.h: upd.
3709 * libspi/eventlistener.[ch]: rename broken macros.
3711 * libspi/accessibleeventlistener.[ch]: remove.
3713 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
3715 * test/test-simple.c: Add - automated tests.
3717 * cspi/spi-listener-impl.c (cspi_event),
3718 (cspi_key_event): add user_data to invoke.
3719 (cspi_keystroke_listener_finalize): impl.
3720 (cspi_keystroke_listener_class_init): upd.
3723 (createAccessibleEventListener),
3724 (AccessibleEventListener_addCallback),
3725 (createAccessibleKeystrokeListener),
3726 (AccessibleKeystrokeListener_addCallback): upd.
3728 * libspi/deviceeventcontroller.c
3729 (spi_device_event_controller_check_key_event): add public proto.
3732 (impl_accessibility_registry_deregister_global_event_listener):
3733 always init listeners.
3734 (_registry_notify_listeners): yes it is.
3736 * cspi/spi-listener-impl.c (cspi_key_event):
3738 (cspi_event_listener_finalize): impl.
3739 (cspi_event_listener_class_init): hook up.
3740 (event_handler_new, event_handler_free),
3741 (event_list_remove_by_callback): impl.
3742 (cspi_event_listener_remove_callback),
3743 (cspi_keystroke_listener_remove_callback),
3744 (cspi_keystroke_listener_add_callback),
3745 (cspi_event_listener_add_callback): upd.
3747 * libspi/keystrokelistener.c
3748 (keystroke_listener_object_finalize): kill
3749 (spi_keystroke_listener_class_init): upd.
3750 (spi_keystroke_listener_add_callback),
3751 (spi_keystroke_listener_remove_callback): kill,
3753 (impl_key_event): prune drasticaly.
3755 * libspi/eventlistener.c
3756 (spi_event_listener_add_callback),
3757 (spi_event_listener_remove_callback): kill, use
3759 (impl_accessible_event_notify_event): upd.
3760 (spi_event_listener_object_finalize): remove.
3762 * libspi/Makefile.am: use eventlistener.[ch]
3764 2001-12-04 Bill Haneman <bill.haneman@sun.com>
3766 * libspi/registry.c (_registry_notify_listeners):
3767 Changed listener loop iteration to use preferred convention.
3768 Got rid of string memory leaks caused be calling g_strconcat
3769 inside function calls.
3771 * libspi/registry.c (parse_event_type):
3772 Stopped g_strconcat memory leaks, free the g_strsplit return,
3773 g_strdup the split pieces when used, etc.
3775 2001-12-04 Bill Haneman <bill.haneman@sun.com>
3778 Change method 'compare' to return a 'difference set' rather than
3779 taking a StateSet as an out parameter (more Java-friendly).
3781 * idl/Accessible.idl:
3782 Added CORBA struct 'BoundingBox', to faciliate API changes below:
3784 * idl/Component.idl:
3786 Changed methods 'getExtents' and 'getImageExtents' in these
3787 interfaces to return a BoundingBox structure.
3788 (getPosition and getSize are redundant and possibly should be
3789 removed, rather than creating a corresponding Point struct.)
3791 * cspi/spi_component.c:
3792 Modify implementation of getExtents to reflect the above IDL
3797 Add (missing) AccessibleImage_getExtents () API.
3799 * docs/reference/cspi/at-spi-cspi-sections.txt:
3800 Added AccessibleImage_getImageExtents () to docs.
3802 2001-12-03 Bill Haneman <bill.haneman@sun.com>
3804 * idl/Component.idl:
3805 Added two methods, getLayer () and getMDIZOrder (), to reflect
3806 the new ATK methods atk_object_get_layer and
3807 atk_object_get_mdi_z_order. (Which arguably should be part of the
3808 AtkComponent API and AtkObject). Also added an enum,
3809 ComponentLayer, for the first method's return value.
3811 * libspi/component.c:
3812 Added implementations for these methods.
3814 * cspi/spi_component.c:
3816 Added cspi binding methods for above,
3817 AccessibleComponent_getLayer() and
3818 AccessibleComponent_getMDIZOrder().
3819 Added cspi enum 'AccessibleComponentLayer'.
3821 * docs/reference/cspi/at-spi-cspi-sections.txt:
3822 Added above methods to docs.
3826 Changed typedef for 'boolean' type (and all references to it) to
3827 SPIBoolean, to avoid keyword clashes with C++.
3830 Changed usages of 'boolean' to SPIBoolean.
3832 * test/keysynth-demo.c:
3833 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
3834 app), except where SPIBoolean is required by the callbacks API.
3836 2001-12-02 Bill Haneman <bill.haneman@sun.com>
3838 * cspi/spi_registry.c:
3839 Removed obsolete X event loop for passive keygrabs (which now
3842 * registryd/registryd.c:
3843 Removed unnecessary call to gdk_init() [cruft]. This also allows
3844 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
3847 2001-11-28 Bill Haneman <bill.haneman@sun.com>
3849 * docs/reference/cspi:
3850 Included docs for SPI_freeString in generated documentation.
3853 Renamed spi_freeString to SPI_freeString, for consistency. Added
3854 documentation for this function.
3857 Renamed spi_freeString to SPI_freeString, for consistency.
3858 Removed obsolete method declaration string_from_corba_string.
3860 * test/keysynth-demo.c:
3861 Small tweak to comments.
3864 Stopped leaking the strings returned from CSPI.
3866 2001-11-28 Bill Haneman <bill.haneman@sun.com>
3868 Merged Michael's branch (see his ChangeLog entries below).
3870 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
3871 bridge is alive, release on exit.
3873 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
3874 Fix type check macro.
3877 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
3880 Added is_gnome_app static, and method cspi_is_gnome_app(),
3881 so we can call the appropriate shutdown routine at exit in SPI_exit.
3883 * cspi/spi_main.c (cspi_object_ref):
3884 Duplicate the corba object passed in, since we're keeping it around.
3886 * cspi/SPI_exit.c, cspi_cleanup:
3887 Moved the releasing of the live refs to its own function, so we
3888 can put it in g_atexit (). Call the appropriate shutdown API
3889 depending on whethe calling client is a gnome app or not
3890 (bonobo_main_quit or CORBA_ORB_shutdown).
3892 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
3893 Unref the listener when this method is called, after
3894 deregistration. Updated the API docs to note this behavior.
3896 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
3897 Bugfixes: Ref the bonobo object when returning a parent or child
3898 reference, or an AccessibleRelation. Generally made sure
3899 BonoboObject refcount is incremented whenever we return an
3902 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
3903 Fixed typo/bug in signal declaration.
3905 * libspi/accessibleeventlistener.h:
3908 * libspi/application.c (spi_application_new):
3909 Fixed leak in initialization.
3912 Remembered to increment bonobo-object refcount when returning
3913 children (applications) from desktop object.
3914 Added (empty) finalize method.
3916 * libspi/deviceeventcontroller.c:
3917 Hold a ref to listeners inside DEControllerKeyListeners.
3918 Added dec_key_listener_free() method. Use prepend instead of
3919 append in key_listener list. Fixed some refcount madness and
3920 leaks in the listener registration/deregistration - deregistration
3921 now calls dec_key_listener_free() on listeners, and on the
3922 temporarily constructed dec_key_listener() used to perform the search/match.
3924 * libspi/hypertext.c (spi_hypertest_finalize):
3925 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
3926 class. Also fixed spi_hypertext_interface_new() and
3927 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
3929 * libspi/hypertext.h:
3930 Removed pointless and duplicate AtkObject pointer from
3933 * libspi/keystrokelistener.c:
3934 Fixed incorrect type of keystroke_listener_parent_class,
3935 renamed keystroke_listener_object_finalize to
3936 spi_keystroke_listener_object_finalize.
3937 Fixed typo in signal declaration
3938 (spi_keystroke_listener_class_init).
3940 * libspi/registry.c:
3941 Added funcsions spi_listener_struct_new() and
3942 spi_listener_struct_free() to help with memory management issues.
3943 We also now use these methods instead of gnew + poking stuff into
3944 the struct, and to decrement listener counts/free the listeners
3945 when deregistering them.
3946 Fix more refcount bugs in getDesktop() and
3947 getDeviceEventController().
3950 De-ref the desktop after enumerating the applications. Explicitly
3951 decrement the refcounts on the created listeners on exit (using
3952 _unref for keystroke listeners, and via the
3953 deregisterGlobalEventListenerAll command for other event
3956 2001-11-27 Michael Meeks <michael@ximian.com>
3958 * cspi/spi-listener.h: fixup enum.
3960 2001-11-27 Michael Meeks <michael@ximian.com>
3962 * cspi/spi-listener-impl.c (cspi_event_listener_new),
3963 (cspi_keystroke_listener_new): Use the cspi variants.
3965 2001-11-26 Michael Meeks <michael@ximian.com>
3967 * test/keysynth-demo.c: fix 2 compile warnings, missing
3970 * test/simple-at.c (report_focussed_accessible),
3971 (report_focus_event, report_button_press),
3972 (check_property_change, is_command_key),
3973 (report_ordinary_key_event, report_command_key_event): upd.
3975 * util/mag_client.h: include pre-requisites.
3977 * libspi/accessibleeventlistener.c
3978 (spi_event_listener_object_finalize): free any lingering
3981 * libspi/keystrokelistener.c
3982 (keystroke_listener_object_finalize): ditto.
3984 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
3985 callbacks, with cspi types.
3987 * cspi/spi_event.c (createAccessibleEventListener): chain to
3988 (AccessibleEventListener_addCallback): here.
3989 (createAccessibleKeystrokeListener): chain to
3990 (AccessibleKeystrokeListener_addCallback): here.
3992 * libspi/keystrokelistener.c
3993 (spi_keystroke_listener_class_init): add signal.
3994 (impl_key_event): emit the event.
3995 (boolean_handled_accumulator): impl.
3996 (marshal_BOOLEAN__POINTER): add, gack.
3998 * libspi/accessibleeventlistener.c
3999 (spi_event_listener_class_init): add signal.
4000 (impl_accessible_event_notify_event): emit the signal &
4001 make the loop efficient.
4002 (spi_event_listener_add_callback): prepend the callback.
4004 * libspi/accessibleeventlistener.h: add an 'event' signal,
4005 decl type on callback.
4007 * libspi/keystrokelistener.h: ditto.
4009 * cspi/spi-listener.h: make methods typesafe and
4010 make them use the new event typedefs.
4012 * test/simple-at.c (report_focussed_accessible):
4013 include mag_client.h
4014 Use *(void *)text_interface not the other thing.
4016 * configure.in: add gtk to registryd bits - since we use
4019 * util/magnifier.c: include libbonobo.h
4021 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4023 * test/keysynth-demo.c:
4024 Turned this into a simple scanning keyboard, to demonstrate the
4025 use of g_timeout_add () as a means of creating timers for
4026 scanning, and the use of GtkStyle for visually indicating when
4027 virtual keyboard elements are selected.
4029 keysynth-demo now listens to any keyboard keys with zero-valued
4030 keycodes (i.e. 'unused' keys) and interprets them as
4033 Reworked the shiftlatch code so that shift-down state isn't held
4034 for long periods (it's only synthesized immediately prior to
4035 the keysynth event it's modifying). Note that shiftlatch in this
4036 demo is a convenience, not intended to take the place of AccessX
4037 which is the better choice for getting 'sticky' modifier keys.
4039 * libspi/deviceeventcontroller.c:
4040 * at-bridge/bridge.c:
4041 * cspi/spi_registry.c:
4042 Removed some debug print stuff, and put other verbosity in #ifdef
4047 Implemented some more of the magnifier IDL for the simple
4048 magnifier: namely, getZoomRegionParams.
4049 Added mag_x and mag_y members to MagnifierData struct, aid of this
4051 Added GtkWindow::realize signal handler to magnifier, to keep it
4052 from receiving keyboard focus from the WM.
4054 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4056 * cspi/spi-private.h: my guess at what michael forgot
4057 before he ran off to NZ :-)
4059 2001-11-23 Michael Meeks <michael@ximian.com>
4061 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4062 comment out non existant method invoke so we link.
4064 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4065 use bonobo_exception_get_text for more friendly warnings.
4067 * cspi/spi.c (Obj_Add): move into spi_main & rename
4068 spi_object_add; kill spi.c
4070 * cspi/spi_registry.c
4071 (deregisterGlobalEventListener),
4072 (deregisterGlobalEventListenerAll),
4073 (registerGlobalEventListener): fix exception leaks.
4075 * cspi/spi_main.c (spi_exception): impl. helper, so we
4076 don't leak exceptions.
4078 * cspi/spi_selection.c
4079 (AccessibleSelection_deselectSelectedChild): return the
4082 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4083 (spi_registry): ditto.
4084 (SPI_init): guard against double inits.
4086 * cspi/*.c: use spi_ev (), and spi_registry () where
4087 appropriate - a temporary hack until we have something
4088 better. Use spi_object_add
4090 2001-11-22 Michael Meeks <michael@ximian.com>
4092 * cspi/Makefile.am: re organise, install the headers.
4094 * cspi/*.h: add G_BEGIN/END_DECLS
4096 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4099 Added non-preemptive keylistener for key events with no modifiers
4100 and shift-only modifier.
4102 * libspi/keystrokelistener.c:
4103 Removed some verbose diagnostics printout.
4105 * cspi/spi_registry.c:
4106 Fixed a bug that caused all key listeners to be registered as
4109 * libspi/deviceeventcontroller.c:
4110 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4111 for non-preemptive key masks.
4114 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4116 * docs/reference/idl/at-spi-idl-docs.sgml:
4117 * docs/reference/idl/at-spi-idl-sections.txt:
4118 * docs/reference/idl/at-spi-idl-overrides.txt:
4119 Added missing files.
4121 * docs/reference/Makefile.am:
4122 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4123 to scan the IDL files :-(
4128 Added .cvsignore files.
4130 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4132 * libspi/deviceeventcontroller.c:
4133 * libspi/keystrokelistener.c:
4135 * cspi/spi_registry.c:
4136 Added filters for KeySets, KeyEventSeq, and event types to key
4137 event dispatching, so listeners should only receive those events
4138 that they requested :-)
4140 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4145 * docs/reference:Makefile.am:
4146 * docs/reference/cspi:
4147 * docs/reference/cspi:Makefile.am:
4148 * docs/reference/cspi:tmpl:
4149 * docs/reference/cspi:tmpl:*.sgml:
4150 * docs/reference/idl:
4151 * docs/reference/idl:Makefile.am:
4152 * docs/reference/idl:at-spi-idl-sections.txt:
4153 * docs/reference/idl:at-spi-idl-docs.sgml:
4154 * docs/reference/idl:tmpl:
4155 * docs/reference/idl:tmpl:*.sgml:
4157 Restructured docs directory to allow separate 'reference' docs
4158 section, and forked idl and cspi docs. Added the sgml template
4159 files to CVS. Added the first sections/structural sgml for the
4162 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4164 * configure.in, libspi/Makefile.am: find libXtst.
4166 2001-11-21 Michael Meeks <michael@ximian.com>
4168 * test/accessx-gui.c: s/spi_value/value/ - doh.
4170 * libspi/base.[ch]: add.
4172 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4174 * idl/Accessible.idl:
4175 * idl/Application.idl:
4178 Started gtk-doc cleanup on IDL.
4180 * libspi/deviceeventcontroller.c:
4181 Added and connected non-preemptive key notification from the
4182 toolkits (in addition to the pre-emptive support from XServer
4183 which we had before, but which causes 'focus flashing'). Filters
4184 are presently limited to key modifiers and global/non-global,
4185 KeySets are presently ignored, as are KeyEvent masks.
4187 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4188 structs into the persistant structure rather than just storing
4189 pointers to things that might not persist across servant
4192 The XGrabKey call now does async keygrabs, because synchronous
4193 ones were deadlocking with GDK_event code in a very nasty way.
4195 Added boolean to internal method notify_keylisteners, to indicate
4196 whether the event came from the 'toolkit source' or the 'global
4197 (XServer) source' - this is used in the notification process to
4198 determine which listeners to send the event to.
4200 deviceeventcontroller.c is now warning-free.
4202 * libspi/registry.c:
4203 Fixed regression in application de-registration.
4204 Also fixed some really brain-dead weirdness having to do with
4205 event dispatching - event structs are now duplicated before being
4206 re-marshalled in the dispatch to listeners. This also fixes a
4207 Solaris build problem.
4210 2001-11-20 Michael Meeks <michael@ximian.com>
4213 (impl_accessibility_registry_deregister_global_event_listener):
4216 * libspi/deviceeventcontroller.c
4217 (spi_device_event_controller_check_key_event): return
4218 FALSE on no virtual method.
4220 * libspi/*..h: make includes work on a correctly pathed install.
4222 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4224 * libspi/application.h: kill unused ( and whacked out )
4225 gboolean *spi_application_set_id (AtkObject *app, long id);
4227 2001-11-20 Michael Meeks <michael@ximian.com>
4229 * libspi/*.[ch]: further convert to bonobo's type func
4230 macros, remove redundnant casts etc.
4232 * libspi/text.c s/accessibility_text/spi_text/g,
4233 re-order to de-cruft.
4235 * libspi/hypertext.c: re-order to kill a huge slew
4236 of redundant forward decls.
4238 * libspi/relation.c: ditto.
4240 * libspi/image.c: ditto.
4242 * */.cvsignore: update
4244 2001-11-20 Michael Meeks <michael@ximian.com>
4246 * libspi/deviceeventcontroller.c
4247 (_controller_register_with_devices): use g_getenv,
4248 kill stdlib.h include.
4250 * libspi/keystrokelistener.c
4251 (spi_keystroke_listener_get_type): kill
4252 (spi_keystroke_listener_class_init),
4253 (spi_keystroke_listener_init): rename to this.
4255 * libspi/text.c (impl_getAttributes): fix warning / bug.
4257 * libspi/*.[ch]: more headers, includes and over commenting.
4259 2001-11-20 Michael Meeks <michael@ximian.com>
4261 * libspi/*.[ch]: fixup headers, includes and over commenting.
4263 * libspi/image.c (impl__get_imageDescription): const
4264 correctness warning fix. remove redundant casting.
4266 * libspi/table.c (impl_getRowDescription): ditto.
4267 (impl_getColumnDescription): ditto.
4269 * libspi/libspi.h: add.
4271 2001-11-19 Michael Meeks <michael@ximian.com>
4273 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4275 * libspi/component.c (accessibility_component_get_type):
4276 rename to (spi_component_get_type): and macroify.
4277 (accessibility_component_init): rename to
4278 (spi_component_init): this
4279 (accessibility_component_class_init): rename to
4280 (spi_component_class_init): this
4282 * libspi/action.c (spi_action_get_type): kill, use the macro.
4284 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4287 * libspi/application.c (spi_application_object_event_listener),
4288 (impl_accessibility_application_register_object_event_listener):
4289 warning fixes / const understanding updates.
4291 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4294 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4296 * libspi/spi_accessible.c: Added docs and C bindings for
4297 AccessibleStateSet. (No implementations yet). Documentation
4298 coverage for C bindings now 100%. Made docs for event listeners
4303 boolean notifyListenersSync (in DeviceEventListener listener,
4304 in DeviceEvent event);
4306 oneway void notifyListenersAsync (in DeviceEventListener listener,
4307 in DeviceEvent event);
4309 Added DeviceEventListener and DeviceEvent structs (may deprecate
4310 KeyStroke and KeystrokeListener in favor of this generic
4311 event/listener framework for devices).
4313 * libspi/deviceeventcontroller.c:
4315 Changed some key listener code to take masks, etc., and paved the
4316 way for integration of toolkit/non-preemptive key events. Changed
4317 signatures of some internal methods.
4319 * at-bridge/bridge.c:
4320 Fixed regression connecting to interface signals, apparently
4321 caused by GTK+ changes.
4323 Added an internal bridge_state_listener to deal with
4324 property-change:accessible-state signals.
4326 Changed the key_listeners GList to store structs (including masks,
4327 etc.) instead of just CORBA_Objects (required for full
4328 implementation of key listener API).
4330 Connected the bridge to all currently supported Atk signals.
4331 Events now supported:
4332 object:property-change
4333 object:property-change:accessible-name
4334 object:property-change:accessible-state
4335 object:property-change:accessible-description
4336 object:property-change:accessible-parent
4337 object:property-change:accessible-value
4338 object:property-change:accessible-role
4339 object:property-change:accessible-table-caption
4340 object:property-change:accessible-table-column-description
4341 object:property-change:accessible-table-column-header
4342 object:property-change:accessible-table-row-description
4343 object:property-change:accessible-table-row-header
4344 object:property-change:accessible-table-summary
4345 object:children-changed
4346 object:visible-data-changed
4347 object:selection-changed
4348 object:text-selection-changed
4350 object:text-caret-moved
4352 object:row-reordered
4354 object:column-inserted
4355 object:column-reordered
4356 object:column-deleted
4357 object:model-changed
4359 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4361 * libspi/hyperlink.c,h:
4362 Fixed some broken stuff in hyperlink.
4364 * libspi/relation.h:
4365 * libspi/relation.c:
4366 * cspi/spi_accessible.c:
4367 Initial implementations of AccessibleRelation methods, and docs.
4369 * libspi/accessible.c:
4370 Fixed a bug that caused SEGV if an accessible
4371 object's description is NULL, and a client
4372 requests it. An empty string is now returned.
4374 * cspi/spi_editabletext.c:
4375 * cspi/spi_hypertext.c:
4377 * cspi/spi_hyperlink.c:
4381 Doc coverage now 95%.
4383 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4385 One last namespacing revision:
4386 * libspi/accessibleeventlistener.[ch]:
4387 Renamed SpiAccessibleEventListener to SpiEventListener,
4388 (no need for two namespaces ;-)
4390 And lots of documentation fixes:
4392 * docs/at-spi-docs.sgml:
4393 Fixed 'underscore vs. hyphen' bug that was preventing
4394 the gtk-doc API docs from being automatically generated.
4397 * cspi/spi-listener.h
4399 * cspi/spi_accessible.c
4401 * cspi/spi_application.c
4402 * cspi/spi_component.c
4403 * cspi/spi_editabletext.c
4405 * cspi/spi_hypertext.c
4407 * cspi/spi_registry.c
4408 * cspi/spi_selection.c
4412 * docs/at-spi-docs.sgml
4413 * docs/at-spi-sections.txt
4415 Added and fixed up gtk-doc documentation in cspi.
4417 Interfaces now (fully) documented (subject to revision and enhancement):
4419 Event Listener Support
4421 AccessibleApplication
4425 AccessibleEditableText
4432 AccessibleRelationSet
4437 2001-11-14 Bill Haneman <bill.haneman@sun.com>
4439 * at-bridge/bridge.c:
4440 Initial work for toolkit-level key snooper connection by bridge.
4445 New typedefs and fixes to support new namespacing, and cleaner
4446 separation of cspi bindings from libspi bonobo implementation.
4447 Removed inconsistent and extraneous Spi* namespace prefix that
4448 had crept into cspi headers.
4449 Lots of comment fixes that sed had missed.
4451 * cspi/spi-roletypes.h:
4452 * cspi/spi-statetypes.h:
4453 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
4454 to AccessibleRoleType.
4456 * libspi/accessibleeventlistener.h:
4457 Fixed minor namespacing weirdness.
4459 * libspi/deviceeventcontroller.c:
4460 Reordered some internal API for device listeners.
4461 Changed the key registry final boolean to 'is_system_global'
4462 rather than 'is_synchronous', which is more descriptive of its
4464 Added spi_device_event_controller_new().
4465 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
4467 * libspi/keystrokelistener.[ch]:
4468 Namespaced KeystrokeListener to SpiKeystrokeListener.
4469 Changed uses of keymasks to use SPI_ prefix, and did other
4472 * libspi/keymasks.h:
4473 Namespaced keymask constants with SPI_ prefix.
4475 * libspi/registry.c:
4476 Some warning fixes, and knock-on fixes from namespace changes.
4479 Added rules for accessx-gui test program.
4481 * test/accessx-gui.c:
4482 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
4483 utility. It doesn't actually use at-spi, but it's still cool and
4486 * test/keysynth-demo.c:
4490 Fixes so that these test clients work properly with the namespaced
4491 libraries. (Incompletely tested for technical reasons, fixes may follow)
4494 2001-11-13 Michael Meeks <michael@ximian.com>
4496 * libspi/application.c
4497 (impl_accessibility_application_get_version),
4498 (impl_accessibility_application_get_toolkit_name):
4500 (impl_accessibility_application_set_id),
4501 (impl_accessibility_application_get_id): remove
4502 redundant casting code.
4504 * libspi/action.c (impl_getDescription): fix warnings.
4506 * libspi/accessible.c
4507 (impl_accessibility_accessible_get_parent),
4508 (impl_accessibility_accessible_get_child_at_index),
4509 (impl_accessibility_accessible_get_state),
4510 (impl_accessibility_accessible_get_relation_set):
4511 warning fixes & include action.h
4513 2001-11-13 Michael Meeks <michael@ximian.com>
4515 * *.[ch] fix bits I screwed up:
4517 s/([^ \tb(\*\&\?\",])spi_/\1/g;
4518 s/([^ \tb(\*\&\?\",])Spi/\1/g;
4520 2001-11-13 Michael Meeks <michael@ximian.com>
4522 * *.[ch] Namespace libspi into spi_ and Spi.
4524 2001-13-11 Michael Meeks <michael@ximian.com>
4526 * Makefile.am: dist & install at-spi-1.0.pc
4528 * libspi/Makefile.am: install into at-spi-1.0
4530 * idl/Makefile.am (idldir): install into at-spi-1.0
4532 * at-spi-1.0.pc.in: add.
4534 * configure.in: build it.
4536 2001-11-12 Bill Haneman <bill.haneman@sun.com>
4538 * test/keysynth-demo.c:
4539 Use a 'realize' signal-handler to set the WM properties for
4540 the virtual keyboard, rather than making it a "POPUP" type
4541 override-redirect window (thanks to anders carlsson for that
4544 2001-11-11 Bill Haneman <bill.haneman@sun.com>
4547 * test/keysynth-demo.c:
4548 Added new test of key synthesis, which creates a simple
4549 (mouse-operated) onscreen keyboard. It inserts key events into
4550 the currently-focused window, thus it does not grab keyboard focus
4553 * cspi/spi_registry.c:
4554 Added C binding for AT-SPI generateKeyEvent.
4556 * libspi/deviceeventcontroller.c:
4557 Added call to XFilterEvent so that key listener works with XIM (we
4558 hope). Added event_synth_type to generateKeyEvent, so that we can
4559 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
4560 synthesize a press/release pair for KeySyms.
4562 2001-11-09 Bill Haneman <bill.haneman@sun.com>
4564 * libspi/Makefile.am:
4565 * registryd/Makefile.am:
4566 (temporary) hack to include libXtst in libspi and registryd.
4567 (Needed for keystroke synthesis, see below).
4570 Improved API for registerKeystrokeListener, in accordance with
4571 discussions with Gnopernicus team and X server research.
4573 * libspi/registry.c:
4574 * libspi/deviceeventcontroller.c:
4575 * libspi/accessible.c:
4576 * libspi/keystrokelistener.c:
4577 Changes and fixes to support keylisteners for potentially
4578 consumed key events (that is, 'passive grabs').
4579 Added implementation for generateKeyEvent() [untested].
4582 Changes to registerKeystrokeListener() API, as above.
4583 Added deregisterGlobalEventListenerAll(), and
4584 deregisterKeystrokeListener(), which are needed for clean exit of
4586 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
4587 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
4589 * cspi/spi_registry.c:
4590 Added implementations of function prototypes mentioned above.
4592 * registryd/registryd.c:
4593 Added the key listener event source as a g_timeout(), to allow
4594 receipt of key events that are not caught by GDK (since GDK
4595 doesn't support passive keygrabs, this was necessary).
4598 Changed to attach a keylistener to 'Alt' keys, and
4599 respond to the following keycommands: Alt-M (toggle magnifier);
4600 Alt-F (toggle speech); Alt-Q (quit).
4601 Added an exit routine to deregister the listeners, and a key
4602 listener that prints some key info to the console when a key
4603 matches the listener mask (and is thus received by the listener).
4605 * util/idl/Magnifier.idl:
4606 Changes to magnifier API to support multiple zoom regions,
4607 non-uniform scaling in x and y, markDirty, and a host of other
4608 features that would be useful to magnification.
4611 * util/mag_client.c:
4612 * util/mag_client.h:
4613 * util/mag_control.c:
4615 Source code changes to support the above IDL changes.
4618 As above, and also changes to use a (slower) generic conversion
4619 path for colormap conversions, since the fast RGB conversions have been
4620 reported to fail for 16-bit displays.
4622 2001-10-26 Michael Meeks <michael@ximian.com>
4624 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
4626 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
4628 * at-bridge/Makefile.am: fix LDFLAGS.
4630 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4632 * at-bridge/bridge.c:
4633 Re-worked listeners for toolkit events, now we have signal
4634 and property listeners. Added a private method
4635 register_atk_event_listeners(), which registers with the
4636 various atk and gtk signals we need to monitor in order to emit
4638 Added emission hook for AtkObject:property-change events, to
4639 support the 'property listeners'.
4640 Fixed some alloc()s of Accessibility_Event structs to use CORBA
4643 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
4644 which emit warnings and exit, respectively, if CORBA errors occur
4645 during remote calls, and we now use these methods to check most of
4646 our CORBA calls in the C bindings.
4648 * cspi/spi_accessible.c:
4649 Changed AccessibleSelection_refSelectedChild() to
4650 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
4651 now increment refcounts.
4653 * cspi/spi_component.c:
4654 Fixed some long pointer casts (dangerous!) to pass pointers to
4655 CORBA_longs of the proper type to the CORBA stubs, and copy the
4656 data into the longs that were passed into the C bindings code.
4658 * at-bridge/bridge.c:
4660 * libspi/accessible.c:
4661 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
4662 hyperlinks, AtkHyperlink is an object type.
4664 * libspi/application.c:
4665 Added various conversions to and from "generic" event types and
4666 atk-specific types; this is really part of the 'bridge'
4667 implementation but is valid for all AtkObject-based accessibility
4670 * libspi/editabletext.c:
4671 Fixed nasty bug wherein editable text's finalize method was
4672 unref'ing tha AtkObject reference that the text parent class was
4673 about to unref _again_. There was also a nasty inheritance bug
4674 that meant that the AccessibleEditableText class was corrupt.
4676 * libspi/selection.c:
4677 Provided implementations for some selection API that was broken.
4679 * idl/Application.idl:
4680 Added registerObjectEventListener () method.
4683 Fixed a number of return values that were Bonobo_Unknowns from
4684 bonobo_object_corba_objref(), which I
4685 forgot to dup before returning. Changed instances of
4686 bonobo_object_corba_objref (bonobo_object(o)) to
4687 BONOBO_OBJREF(o), for concision and clarity.
4689 2001-10-13 Louise Miller <louise.miller@sun.com>
4691 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
4692 idl/Event.idl, idl/Registry.idl
4693 Changed these files to include Bonobo_Unknown.idl instead
4696 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
4698 * libspi/component.c libspi/component.h:
4699 Fixed typo. Added assertions for object checks in
4700 AccessibleComponent code.
4702 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4704 * idl/Accessible.idl:
4705 Added 'isEqual (Accessible *object)'
4706 method for Accessible. (Not Yet Implemented).
4709 Changed signature of registerKeystrokeListener() to
4710 take a KeySet and KeyEventSeq so that specific keys and event
4711 types could be requested for monitoring, and added a flag
4712 is_synchronous so that either synchronous or asynchronous
4713 notification could be requested. (However this is not all
4714 implemented yet). This also meant adding two new typedefs,
4715 KeyEventSeq and KeySet.
4718 Added two new relations, RELATION_TOOLTIP_FOR and
4719 RELATION_LEAFNODE_OF.
4722 Added new state, STATE_HAS_TOOLTIP.
4724 * libspi/text.c, editabletext.c:
4725 Added new assertions to all casts of bonobo-objects from
4726 CORBA servants, to prevent Text API calls on non-text objects.
4727 Changed suspect casts of int-pointer types, so that we
4728 always send a valid CORBA_long pointer to the CORBA APIs that use
4729 in/out long parameters. We then have to copy from the CORBA_long
4730 into the regular long or int for return to the C bindings, or
4731 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
4734 * libspi/deviceeventcontroller.c:
4735 Cleaned these sources up.
4737 Changed return type for getCharacterAtOffset to
4738 CORBA_unsigned_long, to allow for 32-bit characters.
4741 2001-10-08 Bill Haneman <bill.haneman@sun.com>
4745 Fixed 'make dist' so that distro compiles...
4746 * libspi/keymasks.h:
4748 * cspi/spi-listener.c:
4749 KeystrokeListenerCB now returns a boolean.
4751 Added KeyEventType struct, and KeyStroke.
4752 Also added createKeystrokeListener(),
4753 KeystrokeListener_addCallback(),
4754 KeystrokeListener_removeCallback(), and added a keymask to
4755 registerKeystrokeListener().
4756 * cspi/spi_accessible.c:
4757 Changed numerous return types for interfaces from
4758 AccessibleComponent to Accessible<InterfaceName>; this was
4759 probably a cut-and-paste error.
4761 Implementations of new KeystrokeListener api (from spi.h,
4764 Changes to key modifier mapping.
4765 Created ControllerEventMask struct.
4766 Made DeviceEventController derive from Bonobo::Unknown.
4768 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
4769 * libspi/deviceeventcontroller.c:
4770 Added a number of new internal (private) methods.
4771 * libspi/editabletext.c:
4772 * libspi/editabletext.h:
4773 Fixed a number of bugs related to the fact that
4774 editabletext inherits from text. Fixed the EditableText struct,
4775 the init() call, and use correct casts when calling Text methods
4776 from an EditableText object. Removed (duplicate) atko from the
4777 EditableText structure, we use the one in the parent Text
4778 structure via the casts mentioned above.
4779 * libspi/keystrokelistener.[ch]:
4780 * libspi/registry.c:
4781 Changes in support of keyboard handling (above).
4783 Keyboard handling, though partly functional, is still not
4784 recommended for at-spi client use as there is considerable
4785 work yet to be done.
4788 Changed some places where pointers to various int types
4789 are cast to be pointers to CORBA_long types and vice-versa:
4790 pointer casting is not safe so we pass pointers of the correct
4791 types and then cast the result before putting it into the target
4794 * libspi/text.h: minor typos corrected.
4796 We now speak not only the name of a Text element, but the
4797 first sentence of its content, when it receives focus.
4798 I also changed the text compression to 75% from 50%.
4799 * util/Accessibility_Util.server.in:
4800 Changed the default magnifier type to be a 3x vertical
4801 splitscreen magnifier (was previously a 2x horizontal one).
4803 2001-10-03 Bill Haneman <bill.haneman@sun.com>
4805 * libspi/keystrokelistener.h:
4806 * libspi/keystrokelistener.c:
4807 Initial functional implementations of KeystrokeListener.
4810 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
4812 Fixed string handling for NULL strings in libspi.
4813 Added spi_freeString to free strings returned by C bindings.
4815 2001-09-30 Bill Haneman <bill.haneman@sun.com>
4817 * libspi/keystrokelistener.h:
4818 * libspi/keystrokelistener.c:
4819 Began (no-op) implementations of KeystrokeListener
4821 * libspi/deviceeventcontroller.c:
4822 * libspi/deviceeventcontroller.h:
4823 Began creating implementations of DeviceEventController,
4824 to handle keystroke and mouse event listening and
4826 * libspi/accessible.c:
4827 Stubbed-in the implementations for
4828 Accessibility_Accessible_getState and
4829 Accessibility_Accessible_getRelationSet.
4830 * libspi/registry.c:
4831 Improved de-registration process and fixed some bugs,
4832 deregistration now works correctly.
4834 Added initialization of applications list (to NULL).
4836 Reduced speech compression from 0.5 to 0.7, for demo.
4837 Changed call to gdk_window_set_decorations()
4838 to gtk_window_set_decorated().
4839 * at-bridge/bridge.c:
4840 Bridge now deregisters when app exits, via
4841 registration of a cleanup function
4842 with the g_atexit() call.
4843 Required making 'app' static, renamed 'this_app'.
4844 Fixed broken use of bonobo_init, passing argv wrongly.
4846 2001-09-27 Bill Haneman <bill.haneman@sun.com>
4850 Created a new directory for
4851 accessibility-related utilities, primarily for
4852 testing and demo purposes, but with possible
4859 Onscreen magnifier utility that
4860 is implemented as a bonobo service.
4862 * util/mag_client.c:
4863 * util/mag_client.h:
4864 Client-side support (simple C bindings)
4865 for Magnification service
4867 * util/mag_control.c:
4868 Client program example for
4869 Magnification service
4871 * util/Accessibility_Magnifier.server.in:
4872 Bonobo-activation file for the
4873 Magnification service.
4876 * util/idl/Magnifier.idl:
4877 IDL defining the bonobo Magnification
4881 Modifications to use the bonobo-activated magnifier
4882 above, in place of trying to connect to an existing
4883 magnifier that uses socket-listening IPC.
4885 If env variable MAGNIFIER is set, a magnifier service
4886 will be started if one does not exist.
4888 2001-09-25 Bill Haneman <bill.haneman@sun.com>
4890 * at-bridge/bridge.c:
4891 applied patch from Marc to build and run
4892 against new glib and gtk+ (seemed like a change
4893 to bonobo_init signature was made ?)
4895 made festival-server support turned off by default.
4896 Added support for a simple magnifier (off by default)
4897 which will be added to a 'util' directory later.
4898 * at-bridge/Makefile.am:
4899 Changed "application.h" header from a 'source'
4900 to a 'dependency' of libat-bridge.
4902 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
4911 Added interface implementation c files to list of
4912 includes so they are included in libcspi.
4915 Changed prototype of AccessibleAction_doAction to return a
4917 Changed prototype of AccessibleTable_getCaption to
4918 return an Accessible.
4919 Changed prototype of AccessibleTable_getSelectedRows
4920 and AccessibleTable_getSelectedColumns to
4921 return a long (returns the number of selected rows
4922 or columns respectively).
4923 Changed name of AccessibleText_refRunAttributes to
4924 AccessibleText_getAttributes.
4925 Changed prototype of AccessibleText_getCharacterExtents to
4926 return a void rather than a boolean.
4927 Added support for a AccessibleCoordType parameter
4928 specifying what type of coordinates are desired.
4929 Added an AccessibleCordType parameter to
4930 AccessibleText_getPointAtOffset.
4932 * cspi/spi_accessible.c:
4933 Added code to return the outstanding interfaces from
4934 Accessible_queryInterface.
4936 * cspi/spi_action.c:
4938 Corrected call to getNActions to call the c binding
4941 * cspi/spi_editabletext.c:
4943 Changed name from setRunAttributes to setAttributes.
4945 * cspi/spi_hyperlink.c:
4947 Changed call to getNAnchors to correctly call the c
4948 binding for an attribute.
4950 * cspi/spi_hypertext.c:
4952 Changed getImageDescription to correctly call the
4953 binding for an attribute.
4955 * cspi/spi_selection.c:
4956 Changed getNSelectedChildren to correctly call the c
4957 binding for the attribute.
4958 Changed refSelectedChild to getSelectedChild.
4962 Changed getCaption to return an Accessible.
4963 Fixed calls which retrieve attributes.
4964 Changed refAt to getAccessibleAt.
4965 Changed getNSelectedRows and getNSelectedColumns to
4969 Changed getCharacterExtents and getPointAtOffset to accept an
4970 AccessibleCoordType.
4972 Changed calls which retrieve attributes.
4973 Changed refRunAttributes to getAttributes.
4978 * idl/Hyperlink.idl:
4979 Changed n_anchors attribute to nAnchors to keep naming
4980 convention consistent.
4983 Made Table inherit from Bonobo::Unknown.
4984 Added nSelectedColumns and nSelectedRows attributes.
4987 Made Value inherit from Bonobo::Unknown.
4989 * libspi/hyperlink.c:
4990 Change for nAnchors attributte name change.
4992 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5000 Added interface implementation c files to list of
5001 includes so they are included in libcspi.
5004 Changed prototype of AccessibleAction_doAction to return a
5006 Changed prototype of AccessibleTable_getCaption to
5007 return an Accessible.
5008 Changed prototype of AccessibleTable_getSelectedRows
5009 and AccessibleTable_getSelectedColumns to
5010 return a long (returns the number of selected rows
5011 or columns respectively).
5012 Changed name of AccessibleText_refRunAttributes to
5013 AccessibleText_getAttributes.
5014 Changed prototype of AccessibleText_getCharacterExtents to
5015 return a void rather than a boolean.
5016 Added support for a AccessibleCoordType parameter
5017 specifying what type of coordinates are desired.
5018 Added an AccessibleCordType parameter to
5019 AccessibleText_getPointAtOffset.
5021 * cspi/spi_accessible.c:
5022 Added code to return the outstanding interfaces from
5023 Accessible_queryInterface.
5025 * cspi/spi_action.c:
5027 Corrected call to getNActions to call the c binding
5030 * cspi/spi_editabletext.c:
5032 Changed name from setRunAttributes to setAttributes.
5034 * cspi/spi_hyperlink.c:
5036 Changed call to getNAnchors to correctly call the c
5037 binding for an attribute.
5039 * cspi/spi_hypertext.c:
5041 Changed getImageDescription to correctly call the
5042 binding for an attribute.
5044 * cspi/spi_selection.c:
5045 Changed getNSelectedChildren to correctly call the c
5046 binding for the attribute.
5047 Changed refSelectedChild to getSelectedChild.
5051 Changed getCaption to return an Accessible.
5052 Fixed calls which retrieve attributes.
5053 Changed refAt to getAccessibleAt.
5054 Changed getNSelectedRows and getNSelectedColumns to
5058 Changed getCharacterExtents and getPointAtOffset to accept an
5059 AccessibleCoordType.
5061 Changed calls which retrieve attributes.
5062 Changed refRunAttributes to getAttributes.
5067 * idl/Hyperlink.idl:
5068 Changed n_anchors attribute to nAnchors to keep naming
5069 convention consistent.
5072 Made Table inherit from Bonobo::Unknown.
5073 Added nSelectedColumns and nSelectedRows attributes.
5076 Made Value inherit from Bonobo::Unknown.
5078 * libspi/hyperlink.c:
5079 Change for nAnchors attributte name change.
5082 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5084 implementations-- made server implementations own AtkObject pointers
5085 rather than their respective AtkInterrface pointers to fix
5086 refcounting. AtkHyperlink is still broken.
5088 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5089 * cspi/spi_accessible.c:
5090 Added method Accessible_Role_getName(),
5091 and requisite string array (role_names).
5092 Added conversion string_from_corba_strin() call
5093 to Accessible_getName and _getDescription.
5094 * libspi/accessible.c:
5095 Added implementation for Accessible_getRole()
5097 Added festival support, used if environment variable
5100 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5102 * at-bridge/bridge.c:
5103 Now allocate Accessibility_Event using
5104 Accessibility_Event__alloc() instead of g_new0().
5105 * libspi/accessibleeventlistener.c:
5106 Initialize AccessibleEventListener->callbacks to NULL.
5107 Fixed accessible__event_listener_init() param, changed to
5108 "AccessibleEventListener *" type.
5109 Changed a bonobo_object_release_unref() call to
5110 Accessibility_Accessible_unref().
5111 * libspi/listener.c:
5112 Changed Bonobo_Unknown_unref to (equivalent)
5113 Accessibility_Accessible_unref.
5114 * libspi/registry.c:
5115 Changed bonobo_object_release_unref to
5116 Accessibility_Accessible_unref.
5118 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5121 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5122 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5123 spi-util.c spi-util.h
5124 Implementations for C bindings to remaining accessibility
5127 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5130 changed return value of Action from void to boolean to
5131 bring in line with ATK.
5134 Changed getText funcions to return "out" start and end offsets.
5135 Changed getAttributes to take and offset and return the start
5136 and end offset of the attribute run.
5137 Changed getOffsetAtPoint and getCharacterExtents to take an
5138 enum describing whether coordinates are window or screen.
5141 libspi/action.c libspi/action.h libspi/editabletext.c
5142 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5143 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5144 libspi/image.h libspi/selection.c libspi/selection.h
5145 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5146 libspi/value.c libspi/value.h
5147 Added server implementations for outstanding ATK interfaces
5148 not yet implemented.
5150 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5153 Added (missing) getName() method.
5154 Made nActions an attribute.
5155 * idl/EditableText.idl:
5156 Changed order of params in setAttributes.
5157 * idl/Hyperlink.idl:
5158 Removed getAnchor, added getURI.
5160 Changed attributes to methods, for efficiency
5161 (so that getting extents can be done in one call)
5162 * idl/Selection.idl:
5163 Changed nSelectedChildren to attribute, and re-indented.
5164 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5166 * idl/Text.idl: reformatted to match our coding style.
5167 (temporarily?) removed getRowColumnAtOffset().
5168 Changed text selection API to support multi-select and
5169 non-contiguous selections, as in ATK.
5170 * idl/Value.idl: changed some methods to attributes.
5172 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5174 * libspi/listener.c(impl_notify_event):
5175 BonoboUnkown_unref the source instead
5176 of bonobo_object_release_unref - the ORB
5177 handles the releasing.
5179 * configure.in: require ORBit-2.3.94 for
5182 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5184 Tagged CVS repository 'EA_1_0'.
5185 * README.EARLY_ACCESS:
5186 Alphabetized acknowledgements list, and
5188 Listed some known dependencies of at-spi.
5190 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5192 * docs/at-spi-docs.sgml:
5193 * docs/at-spi-sections.txt:
5194 * docs/at-spi-overrides.txt: (Added zero-length file)
5195 Documentation improvements - gtk-doc should build
5196 docs for all implemented C bindings now.
5199 * cspi/spi.c: (New file)
5200 * cspi/spi_event.c: (New file)
5201 * cspi/spi_registry.c: (New file)
5202 * cspi/spi_accessible.c: (New file)
5203 * cspi/spi_application.c: (New file)
5204 * cspi/spi_component.c: (New file)
5205 Split spi_main.c into six parts, and included them from
5206 "spi.c". This is a bit of a hack, probably temporary,
5207 but required by gtk-doc, apparently.
5209 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5212 * docs/at-spi-docs.sgml:
5213 * docs/at-spi-sections.txt:
5215 Initial checkins/modifications for gtk-doc generation.
5218 Added (missing) interface query methods to Accessible's C binding.
5220 Added GenericInterface type definition.
5222 Added query for AccessibleComponent interface to focus event handler.
5223 Added printout of bounding box for focussed component.
5224 * libspi/component.c:
5225 Added partial implementation for AccessibleComponent to C binding.
5226 * idl/Application.idl:
5227 * libspi/registry.c:
5228 * libspi/listener.c:
5229 * libspi/application.c:
5230 * libspi/application.h:
5231 Changed "ID" attribute type from string to long.
5233 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5237 Made method naming consistent: methods taking object args
5238 start with uppercase, other methods (except those using
5239 acronyms) start with lowercase. Underscores delimit between
5240 object names and method names:
5241 SPI_init() - uppercase since it starts with an acronym.
5242 getDesktopCount () - lowercase start since no object param0.
5243 Accessible_getName() - uppercase object type name, studlyCaps method
5247 Added gtk-doc documentation for all currently implemented
5248 methods in the C bindings API.
5250 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5252 * Makefile.am : changed build order to build test last.
5255 Changed "createEventListener" to "CreateEventListener".
5256 * libspi/accessibleeventlistener.c :
5257 Bugfix for addition of callbacks.
5258 * test/Makefile.am :
5259 * test/simple-at.c :
5260 Added new test that uses the C bindings API.
5262 * libspi/listener.c :
5263 * libspi/registry.c :
5264 * libspi/accessibleeventlistener.c :
5265 * at-bridge/bridge.c :
5266 Renamed member "target" of Accessibility_Event to "source",
5267 which is more descriptive.
5270 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5274 * cspi/Makefile.am :
5275 Added makefile support for at-spi/cspi directory.
5278 * cspi/spi-listener.h : (NEW FILE)
5279 Added support for/use of spi-listener.h.
5281 C bindings now build successfully, with no warnings.
5282 * libspi/accessibleeventlistener.h : (NEW FILE)
5283 * libspi/accessibleeventlistener.c : (NEW FILE)
5284 * libspi/Makefile.am :
5285 Added new object type "AccessibleEventListener"
5286 which inherits from Listener, and allows attachment
5287 of in-process callbacks (so that a client with a listening
5288 object instance can add functionality to the local
5289 implementation, dynamically).
5291 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5293 * libspi/accessible.c:
5294 Add implementation for get_index_in_parent().
5296 Added #include of "spi-roletypes.h", and
5297 added enumerated type AccessibleCoordType.
5298 Added definition for KeystrokeListener (function type).
5301 * cspi/spi-statetypes.h :
5302 * cspi/spi-roletypes.h :
5304 Added these headers, used by spi.h.
5306 Added code (NOTE: not yet built by make).
5308 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5310 * libspi/Makefile.am: generate imodule
5311 at the same time as other idl compiler
5314 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5315 * libspi/registry.c :
5316 * libspi/application.c :
5317 * idl/Application.idl :
5318 Made registration with toolkit an application method,
5319 which is required since each app has its own toolkit static
5320 environment. Thus the bridge must register for
5321 notification of toolkit events from each application in turn.
5322 Toolkit notifications are now successfully registered for, and
5323 sent to the listening at client.
5325 Changed toolkit event string to use hyphens rather than underscores.
5326 * libspi/listener.c :
5327 listner now gives more info in debug mode - it reports the
5328 name of the event received, as well as the name of the source.
5331 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5333 * libspi/registry.c :
5334 added more implementation for toolkit events.
5335 Fixed bug such that toolkit event registrations
5336 (via atk) use the whole event name string, not
5338 Removed a useless call to an ORBit_ method.
5339 * at-bridge/bridge.c :
5340 Removed unused local sbuf[] variable.
5342 We now register for Gtk:GtkWidget:button_press_event
5343 events as well as "focus:" events.
5345 Add some more API from Registry.idl that was missing,
5346 for keystroke listening, keystroke and mouse event
5347 synthesis, and enumeration of accessible desktops.
5349 2001-08-16 Michael Meeks <michael@ximian.com>
5351 * configure.in: use AM_GLIB_GNU_GETTEXT.
5353 * Makefile.am (SUBDIRS): kill intl.
5355 2001-08-15 Michael Meeks <michael@ximian.com>
5357 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5359 * configure.in: upd.
5361 * configure.in: depend on a recent bonobo-activation that
5362 will find our server files ...
5364 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5366 * libspi/accessible.c : accessible_new() :
5367 Now we add the Component interface via bonobo_object_add_interface,
5368 if the contained AtkObject implements AtkComponent.
5369 * libspi/accessible.h : now include "component.h"
5370 * libspi/component.h :
5371 * libspi/component.c : added files - implementation of
5372 bonobo wrapper object for Accessibility/Component
5373 * libspi/listener.c :
5374 Added test code to check for Accessibility/Component:1.0
5375 interface and report whether it is implemented by the
5377 * libspi/registry.c :
5378 Now we check for not only the hash of the whole event
5379 string before relaying the event, we also check the
5380 "minor" event string (without the detail string).
5381 This allows event listeners to be registered against
5382 all events of a certain major+minor type, or just
5383 against a specific major+minor+detail type.
5384 * libspi/accessible.c :
5385 Added implementations for Accessible:get_parent(),
5386 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5387 * libspi/registry.c :
5388 * libspi/listener.c :
5389 Replaced calls to Accessibility_Accessible_ref() and
5390 Accessibility_Accessible_unref() with
5391 calls to bonobo_object_dup_ref() and
5392 bonobo_object_release_unref(), so that the CORBA object
5393 is dup-ed and released when relayed, as well as the bonobo object.
5395 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5397 * libspi/Makefile.am,
5398 registryd/Makefile.am,
5399 at-bridge/Makefile.am.
5400 test/Makefile.am, configure.in:
5401 reverse previous changes.
5403 * /idl/Image.idl: fix typo.
5405 * test/Makefile.am: put DEBUG_FLAGS
5408 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5410 * test/app.c: use argv[0] instead of
5413 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5415 * libspi/Makefile.am,
5416 registryd/Makefile.am,
5417 at-bridge/Makefile.am.
5418 test/Makefile.am, configure.in:
5419 cleanup, replace individual LIBS/CFLAGS with
5420 AT_COMMON_{LIBS|CFLAGS}.
5424 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5426 * configure.in, libspi/Makefile.am:
5427 Change IDL path checking for bonobo-activation
5430 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5432 * registryd/registry.c : separated event listeners to use
5433 3 separate lists (focus, window, toolkit). Began testing
5434 event names against hashes before relaying events.
5435 * test/at.c : now register for events of type "focus:"
5436 * test/app.c : now generate events of type "focus:"
5437 * at-bridge/bridge.c : register with ATK for focus events,
5438 and we now relay those focus events to any "focus:" listeners.
5439 This now works with the bridge as a GTK_MODULE when running test/at.
5440 * libspi/registry.c :
5441 * libspi/listener.c :
5442 now we ref event sources before propagating, and unref on receipt.
5443 * libspi/registry.c :
5444 some changes to internal structs, to support event typestring hashes.
5445 * text/app.c : changed the way the appname is generated.
5446 * cspi : added directory that will hold the C bindings library for
5447 non-CORBA/bonobo-savvy clients.
5448 * cspi/spi.h : header file that contains the function prototypes for the C binding.
5449 * idl/Component.idl : added in parameter to indicate coord system for
5450 geometry-related calls.
5451 * idl/Hyperlink.idl : added readonly n_links attribute
5452 * idl/Image.idl : changed methods to attributes.
5454 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5456 * at-bridge/Makefile.am: link against
5457 ../libspi/libspi.la instead of -lspi.
5459 * at-spi/test/app.c: include
5460 bonobo-activation.h. Use a default appname
5461 if one is not provided.
5463 2001-08-14 Bill Haneman <bill.haneman@sun.com>
5465 * idl/Registry.idl : temporarily changed register_Application
5466 to oneway, to work around issue with initial registration
5468 * idl/Application.idl : changed attribute "id" from readonly
5469 to read-write, since it needs to be assigned by Registry.
5470 * registryd/registryd.c : added call to set application id
5472 * registryd/registry.c : changed de-registration procedure to
5473 use CORBA_Object_hash() to find matching object ref in application
5474 lists and listener lists.
5475 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
5476 began distinguishing between event types (work in progress).
5478 2001-08-13 Bill Haneman <bill.haneman@sun.com>
5481 * libspi/application.c:
5482 Added implementations for get/set id, get_toolkitName,
5484 * registryd/registryd.c :
5488 Converted from use of OAF to bonobo-activation.
5489 * libspi/desktop.h :
5490 * libspi/desktop.c :
5492 Removed references to atksimpleobject, since base atkobject
5493 implementation now provides functionality we need.
5494 * libspi/atksimpleobject.c :
5495 * libspi/atksimpleobject.h :
5500 * at-bridge/Makefile.am
5501 * at-bridge/bridge.c
5504 Added directory "bridge" and contents, and added dependencies
5505 in Makefile.am/configure.in.
5506 Initial checkin of "at-bridge".
5507 This code is a GTK_MODULE which automatically registers
5508 GTK+ apps with the accessibility registry, using an object
5509 reference to the root ATK object.
5511 2001-08-10 Mark McLoughlin <mark@skynet.ie>
5513 * po/Makefile.in.in: Remove. Again. If this
5514 doesn't get autogenerated - you need to update
5517 2001-08-07 Mark McLoughlin <mark@skynet.ie>
5519 * po/Makefile.in.in: Add. Again.
5521 2001-07-31 Bill Haneman <bill.haneman@sun.com>
5523 * libspi/accessible.c : added support for 'description' property.
5524 * libspi/accessible.c
5526 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
5527 (since the two are now equivalent in libbonobo)
5535 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
5536 Bonobo::Unknown as does Accessibility::Accessible.
5537 * idl/StreamableContent.idl : as above, and replaced internal InputStream
5538 interface with Bonobo::Stream, since it was redundant with it.
5539 (The Stream returned by a StreamableContext object is expected to
5540 implement only a subset of Bonobo::Stream)
5542 2001-07-28 Anders Carlsson <andersca@gnome.org>
5544 * libspi/accessible.c (accessible_object_finalize): Change
5545 g_free to g_object_unref since the AtkObject is a GObject.
5547 2001-07-30 Bill Haneman <bill.haneman@sun.com>
5549 * idl/Accessibility.idl: add new IDL files
5552 * idl/Action.idl: Definitions of actionable UI object
5553 * idl/Component.idl: Definitions of UI component geometry, etc.
5554 * idl/Hyperlink.idl: Defs of hyperlink behavior
5555 * idl/Image.idl: Def of accessible image
5556 * idl/Selection.idl: Definition of UI object with selectable children
5557 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
5558 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
5559 * idl/Text.idl: Interface defs for UI elements with complex textual content
5560 * idl/Value.idl: Definition of UI element that is a value controller or display
5562 2001-07-27 Michael Meeks <michael@ximian.com>
5564 * po/Makefile.in.in: remove autogenerated file from CVS.
5566 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
5569 * idl/Registry.idl: include guard.
5571 * idl/Accessibility.idl: Add, and include all the other IDL
5574 * idl/*.idl: remove mass of pragmas etc.
5576 2001-07-26 Michael Meeks <michael@ximian.com>
5578 * registryd/Makefile.am (registryd_SOURCES): remove
5581 2001-07-27 Mark McLoughlin <mark@skynet.ie>
5583 * libspi/.cvsignore, registryd/.cvsignore,
5584 test/.cvsignore: updated.
5586 * po/Makefile.in.in: gettext update.
5588 2001-07-25 Bill Haneman <bill.haneman@sun.com>
5590 * initial CVS checkin
5592 2001-06-29 Michael Meeks <michael@ximian.com>
5594 * configure.in: add AM_CONFIG_HEADER to gen config.h