1 2003-06-13 Bill Haneman <bill.haneman@sun.com>
3 * configure.in: version 1.3.4.
5 * cspi/spi_accessible.c:
6 Changed test of obj==NULL to obj==CORBA_OBJECT_NIL.
9 2003-06-13 Michael Meeks <michael@ximian.com>
11 * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
13 * cspi/spi_main.c (cspi_peek_ev): impl.
15 2003-06-11 Padraig O'Briain <padraig.obriain@sun.com>
17 * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
19 * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
21 * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role
24 * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
26 * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
27 for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
29 2003-06-11 Bill Haneman <bill.haneman@sun.com>
31 * libspi/streamablecontent.h:
32 * libspi/streamablecontent.c:
33 New files, provide implementation/wrappers for
34 Accessibility_StreamableContent.
36 * cspi/spi_streamablecontent.c:
37 Connected the C wrappers to the libspi C bindings.
38 (AccessibleStreamableContent_close): New method.
41 (AccessibleStreamableContent_close): New method, needed
42 since we have an "open, [seek], read, close" model in cspi.
44 2003-06-11 Bill Haneman <bill.haneman@sun.com>
46 Fix for #108664; Padraig's revision of my original patch.
48 * registryd/registry.h:
49 Added event queue list, is_queuing, and exit_notify_timeout
50 to the registry struct.
52 * registryd/registry.c:
53 (registry_init): Initialize new struct from registry.h.
54 (impl_registry_notify_event):
55 Filter events before notifying, in case some need to be
57 (registry_filter_event): New,
58 we defer certain incoming events (for instance
59 window:deactivate) because we may wish to hide
60 or reject them based on pending events. This is
61 mostly a workaround for bug #108664.
62 (registry_queue_event, registry_start_queue): New.
63 (registry_defer_on_event): Test event to see if it
65 (registry_reset_on_event): Returns TRUE if the
66 event should cause a queue reset.
67 (registry_discard_on_event): Returns TRUE if the event
68 should cause the previous queue contents to be discarded.
69 (registry_timeout_flush_queue): Flushes the pending event
70 queue if no reset/discard-triggering events have come in
71 within the timeout period.
72 (registry_emit_event): New.
73 (registry_clone_notify_context): New, used when queueing the
74 event notify contexts.
76 2003-06-10 Bill Haneman <bill.haneman@sun.com>
78 * configure.in: Version revved to 1.3.2, lt 0.9.2
79 Incremented ATK required version to 1.3.4.
81 * cspi/spi_registry.c:
82 (SPI_generateKeyEvent):
83 We now pass the keystring along if it's non-null.
85 * registryd/deviceeventcontroller.c:
86 (keysym_mod_mask): New method, returns modifier mask
87 required to generate a keysym from a given keycode.
88 (dec_synth_keysym): New method.
89 (dec_synth_keystring): New method.
90 (dec_get_modifier_state): New method.
91 (dec_lock_modifiers): New
92 (dec_unlock_modifiers): New.
93 (dec_keysym_for_unichar): New, rather brute-force
94 conversion from UCS-4 to X KeySyms. Only works for
95 Latin at the moment, with partial implementations for
96 Greek, Hebrew, and (incomplete) Katakana.
97 (impl_generate_keyboard_event): Now implement
98 "KEYSTRING" synthesis and implement "KEYSYM"
100 (keycode_from_keysym): Improved, passes a returned
101 modmask value now if the corresponding param is non-NULL.
103 Fixes bugs #92143 and #109776.
106 * test/keysynth-test.c:
107 New test program for key synthesis, to confirm fixes for
111 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
113 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
115 * cspi/spi_accessible.c (cspi_init_relation_type_table):
116 Add line for RELATION_POPUP_FOR
118 * docs/reference/cspi/tmpl/spi_relation.sgml:
119 Add relation SPI_RELATION_POPUP_FOR
121 * docs/reference/cspi/tmpl/spi_stateset.sgml:
122 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
124 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
126 * libspi/relation.c (spi_init_relation_type_table):
127 Add line for RELATION_POPUP_FOR
129 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
131 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
132 there are still windows which have not been deleted and emit
133 window:deactivate, if necessary and window:destroy events.
134 This fixes bug #114370. The change on June 5th was not correct.
136 2003-06-09 Bill Haneman <bill.haneman@sun.com>
138 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
141 (SPI_dupString): Allow dup-ing of a string such that it's safe to
143 New methods for client exception handling and interception.
144 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
145 (SPI_exceptionHandlerPop): You guessed it...
146 (SPI_getSourceType): Return the type of object which offended.
147 (SPI_getExceptionCode): Return an enum code telling, possibly,
148 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
149 (SPIAccessibleException_getSource): get the source object for
150 exceptions that come from Accessibles, if SPIExceptionSourceType is
151 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
152 (SPIException_getDescription): New, returns a string description of
153 the problem. [Not yet a stable ABI, strings are not frozen]
155 * cspi/spi-private.h:
156 Added implementation details of opaque SPIException
160 Implementations of above. Also
161 (_cspi_exception_throw): new private method that
162 dispatches exceptions to handlers, called from cspi-bonobo.c
164 * cspi/bonobo/cspi-bonobo.c:
165 (cspi_check_ev): call _cspi_exception_throw.
166 Don't print a warning message if the exception has been
167 handled by _cspi_exception_throw.
169 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
171 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
172 there are still windows which have not been deleted and emit
173 window:deactivate, if necessary and window:destroy events.
174 This fixes bug #114370.
176 2003-06-03 Bill Haneman <bill.haneman@sun.com>
179 (cspi_accessible_is_a): Make non-fatal
180 if the object reference is dead.
182 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
184 * cspi/spi_main.c: #include <stdio.h>
185 * test/simple-at.c: ditto
186 * test/event-listener-test.c: ditto
187 * test/screen-review-test.c: ditto
189 2003-05-30 Michael Meeks <michael@ximian.com>
191 * test/test-simple.c (main): use CORBA_ORB_perform_work
192 instead of an unnecessary linc_ call.
194 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
196 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
197 Add SPI_STATE_INDETERMINATE.
199 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
202 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
204 * libspi/stateset.c (init_state_type_tables): Add support for
207 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
209 * configure: Update versions of atk and gail required.
210 This fixes bug #113268.
212 2003-05-02 Bill Haneman <bill.haneman@sun.com>
214 * configure.in: Revved micro version to 1.3.1 (because of build fix).
216 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
218 * libspi/Makefile.am:
219 Ensure headers are generated before being used by c sources.
221 2003-05-01 Bill Haneman <bill.haneman@sun.com>
224 Simplified lt versioning rules.
225 Incremented version to 1.3.0, to indicate that we're on the
228 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
230 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
231 Add MKDB_OPTIONS=--outtput-format=xml
233 * docs/reference/cspi/at-spi-cspi-docs.sgml
234 docs/reference/idl/at-spi-idl-docs.sgml:
235 Convert to Docbook XML.
237 This fixes bug #111793.
239 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
241 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
242 AcccessibleKeyEventType, AccessibleKeyMaskType.
244 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
246 * cspi/state-types.h: Add documentation for AccessibleState.
248 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
249 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
250 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
251 AccessibleComponentLayer.
253 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
256 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
258 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
259 Accessible. Add description of AccessibleEvent,
260 AccessibleEventListenerCB.
262 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
265 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
266 documentation. Add description of AccessibleKeystrokeListenerCB,
267 AccessibleKeyEventMask, AccessibleModifierMaskType,
268 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
269 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
271 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
274 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
277 This fixes bug #104730.
279 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
281 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
282 Set is_text field of Accessibility_DeviceEvent data structure.
284 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
285 is-text field of AccessibleDeviceEvent data structure.
287 This addresses part of bug #108666.
289 * registryd/devcieeventcontroller.c: Unset debug option.
291 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
294 (cpi_initial_relation_type_table): New function which initializes
295 mapping between Accessibility_RelationType and AccessibleRelationType.
296 (cspi_relation_type_from_spi_relation_type): New function which
297 translates an Accessibility_RelationType into an AccessibleRelationType.
298 (AccessibleRelation_getRelationType): Use
299 cpi_relation_type_get_spi_relation_type to return correct value.
300 (spi_state_to_corba): Return correct type for default case.
302 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
303 Use Accessibility_EventType instead of Accessibility_KeyEventType.
305 * cspi/cspi-bonobo-listener.c:
306 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
309 * libspi/accessible.c, libspi/action.c, libspi/application.c,
310 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
311 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
312 libspi/image.c, libspi/listener.c, libspi/selection.c,
313 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
314 registryd/desktop.c, registryd/registry.c:
315 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
317 * libspi/eventlistener.c
318 Remove semicolon after BONOBO_TYPE_FUNC.
321 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
322 (spi_init_relation_type_table): Initialize using correct type.
324 * registryd/desktop.c:
325 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
326 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
327 of Accessibility_KeyEventType.
329 * test/key-listener-test.c (report_tab_key_event): Use fprintf
332 * tests/simple-at.c, tests/screen-review-test.c:
333 Add include for <strings.h>.
335 * tests.stress-test.c:
336 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
338 These changes fix compiler warnings when using FORTE compiler on
339 Solaris; fixes bug #107479.
342 2003-04-10 Bill Haneman <bill.haneman@sun.com>
345 * configure.in: revved to 1.1.10
348 (SPI_KEYMASK_NUMLOCK): Added.
350 * registryd/deviceeventcontroller.c:
351 (spi_key_event_matches_listener): AND with a smaller
352 bitmask (as we should).
353 (spi_dec_translate_mask):
354 New method, sets the virtual NumLock modifier bit
355 if numlock is on. Eventually it can handle other virtual
356 modifier bits if needed, or other marshalling from
357 at-spi modifier masks to platform (X) masks.
358 (spi_dec_key_listener_new):
359 Call spi_dec_translate_mask to set up virtual mod bits
360 in the 'mask' field when creating a new listener struct.
361 (spi_dec_emit_modifier_event):
362 Set the virtual (i.e. NumLock) bits before emitting event.
363 (spi_controller_register_with_devices):
364 Query for the NumLock modifier 'physical' bit if Xkb is
365 present, for use in above methods.
369 2003-04-10 Bill Haneman <bill.haneman@sun.com>
371 * registryd/deviceeventcontroller.c:
372 (spi_keystroke_from_x_key_event):
373 Instead of checking to see if the keysym is
374 printable, check the string from XLookupString
375 if available, get the first unicode character from it,
376 and call g_unichar_isprint to determine whether the
377 is_text flag should be TRUE or FALSE.
381 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
383 * atk-bridge/bridge.c: Add support for extended events
384 * cspi/spi_event.c: Add documentation and implementation for
386 * tests/event-listener-test.c: Add tests for extended events.
388 This fixes bugs #100424 and #100426.
390 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
392 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
393 of LT_CURRENT. This fixes bug #89350.
395 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
397 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
398 number of signal parameter values before accessing them. This fixes
401 2003-04-01 Bill Haneman <bill.haneman@sun.com>
403 * configure.in: Fixed duplicate inclusion of -lspi.
404 * branched for gnome-2-2/HEAD.
405 [created tag "gnome-2-2"]
407 2003-03-07 Bill Haneman <bill.haneman@sun.com>
409 * configure.in: 1.1.9 release.
412 2003-03-07 Bill Haneman <bill.haneman@sun.com>
414 [needed by GOK, to fix bugs 107985 and 107988]
415 * registryd/deviceeventcontroller.c:
416 (spi_dec_clear_unlatch_pending):
417 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
418 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
419 (spi_dec_init_mouse_listener):Emit warning if mouse button
421 (spi_device_event_controller_forward_mouse_event):
422 Removed unnecessary parens from a conditional.
423 (global_filter_fn):Added TODO comment.
424 (impl_generate_keyboard_event):
425 Cancel a pending relatch if a 'delatching' key was
428 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
430 * atk-bridge/bridge.c:
431 Change atk_signal_child_changed to atk_signal_children_changed.
432 Reorganize code in spi_atk_bridge_signal_listener().
434 * test/event-listener-test.c:
435 Add children_changed_listener and report_children_changed_event()
436 to test AccessibleChildEvent_getChildAccessible.
438 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
440 * cspi/spi_event.c (cspi_internal_event_get_text): Change
441 g_strdup to CORBA_String_dup (bug #105291)
443 * test/event-listener-test.c (report_text_event): Add call to
446 2003-02-28 Bill Haneman <bill.haneman@sun.com>
448 * registryd/deviceeventcontroller.c:
449 (spi_keystroke_from_x_key_event):
450 Fix string and keysym return codes to match modifier state.
453 2003-02-28 Bill Haneman <bill.haneman@sun.com>
455 * registryd/deviceeventcontroller.c:
456 (spi_keystroke_from_x_key_event):
457 Fix segv due to improper use of isprint(c). [bug #107254]
459 2003-02-24 Bill Haneman <bill.haneman@sun.com>
462 (get_accessible_text_boundary_type):
463 Move default return value to (new) default case in switch.
464 (get_accessible_text_clip_type):
465 Move default return value to (new) default case in switch.
467 * libspi/application.c:
468 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
469 Remove unused methods.
470 (impl_accessibility_application_register_object_event_listener):
471 Remove unused methods.
474 Added #include of <math.h>.
476 * registryd/deviceeventcontroller.c:
477 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
478 we don't currently use this method.
479 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
481 (impl_generate_key_event):
482 Remove unused variables.
483 (impl_generate_mouse_event):
484 Initialize button to zero, just in case we get an invalid
485 input. Added support for mouse buttons 4 and 5.
486 (spi_device_event_controller_new):
487 Removed unused variable declaration for 'private'.
489 Added #include of <gdk/gdk.h>
491 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
493 * configure.in: Update to work when X is not installed in expected
494 location. Fixes bug #105836.
496 * atk-bridge/bridge.c
497 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
499 (spi_atk_register_event_listener): Add signal listener for
501 (spi_atk_bridge_signal_listener): Event event when link-selected
502 signal is emitted. (bug #104622)
504 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
505 on returned string. (bug #105291)
507 * test/event-listener-test.c: Add test for link-selected.
509 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
511 * atk-bridge/Makefile.am: Correct typo in previous commit.
513 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
515 * atk-bridge/Makefile.am: Allow for build directory to be different
516 from source directory
518 * registryd/Makefile.am: Allow for build directory to be different
519 from source directory
523 2003-01-29 Bill Haneman <bill.haneman@sun.com>
526 Fixed dependencies for libcspi so that libspi gets pulled in
527 properly. Fixes 104741.
531 Clean up inline docs a little.
533 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
535 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
536 This is done by implementing AtkComponent for SpiAtkDesktop, which is
537 the AtkObject within an SpiDesktop.
538 This addresses bug #101524.
540 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
541 Remove call to gdk_init().
543 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
544 so that Display is set when SpiDesktop is created.
546 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
548 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
549 This fixes bug #102830.
551 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
553 * test/test-simple.c: Update to take account of fact that GailButton
554 now implements AtkText.
555 (create_text_window): Set name on AtkObject for GtkEntry.
556 (validate_accessible): Check accessible name before calling test_text().
558 * libspi/Makefile.am: Fix problem with building outside of source
559 directory. Bug #98120.
561 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
562 typo in documentation comments. Bug #94275.
564 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
566 * libspi/text.c (impl_getBoundedRanges): Bug fix.
568 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
571 Add includes to avoid compiler warnings on Solaris.
572 (impl_getRangeExtents): Bug fix.
574 2002-12-17 Bill Haneman <bill.haneman@sun.com>
576 Fix for 100944, [API addition approved by Gman and murrayc].
583 * idl/Accessibility_Text.idl:
584 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
585 (Text::getRangeExtents): New method for efficient
586 bounds query of a text range.
587 (Text::getBoundedRanges): New method for efficient
588 clipping of text to bounding boxes.
589 (unImplemented7, unImplemented8):
590 Removed these padding methods to preserve bincompat.
593 (impl_getRangeExtents): implementation of new IDL.
594 (impl_getBoundedRanges): implementation of new IDL.
595 (SpiTextRect): Internal use struct.
596 (_spi_text_rect_union): internal method, calculates union of two
597 SpiTextRect bounding rects.
598 (_spi_text_range_seq_from_gslist): internal method, allows us
599 to build our sequence efficiently as a gslist then convert it
601 (_spi_bounds_contain): internal method, determines whether
602 a text character is "in" or "out" of a clip rect according to
603 values of TEXT_CLIP_TYPE.
604 (spi_text_class_init): Initialize the new methods in the epv.
607 (AccessibleTextClipType): New enum used by screen review api.
608 (AccessibleTextRange): New struct used by screen review api.
609 (AccessibleText_getRangeExtents):
610 cspi binding for Accessibility_Text_getRangeExtents.
611 (AccessibleText_getBoundedRanges):
612 cspi binding for Accessibility_Text_getBoundedRanges.
613 (AccessibleTextRange_freeRanges): convenience method.
616 (AccessibleText_getRangeExtents):
617 cspi binding for Accessibility_Text_getRangeExtents.
618 (AccessibleText_getBoundedRanges):
619 cspi binding for Accessibility_Text_getBoundedRanges.
620 (AccessibleTextRange_freeRanges): convenience method.
621 (get_accessible_text_clip_type): internal conversion method.
622 (get_accessible_text_ranges_from_range_seq): internal conversion method.
624 * registryd/deviceeventcontroller.c:
625 (spi_dec_mouse_check):
626 Improved behavior for mouse:abs events
627 [same granularity as mouse:rel events, and no
628 events when mouse is idle].
630 2002-12-16 Michael Meeks <michael@ximian.com>
632 * cspi/spi_accessible.c (spi_state_to_corba): rename.
634 * libspi/stateset.c (state_spi_to_atk): split out
635 ( fix several remote array bounds nasties )
636 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
637 (impl_remove): make safe from array bounds issues.
638 (spi_atk_state_from_spi_state): impl.
640 * libspi/stateset.h (spi_state_set_cache_is_empty):
641 add a set of wrapper defines to get layering right.
643 * cspi/spi_accessible.c: update state set stuff to
646 2002-12-14 Michael Meeks <michael@ximian.com>
648 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
649 to avoid 2 roundtrips to the registry per key event
650 (spi_atk_bridge_key_listener): upd.
651 (deregister_application): release the dec.
653 * registryd/registry.c (notify_listeners_cb):
654 bin lots of re-enterant complexity - we no longer
655 do a round-trip bonobo ref here, ensure that a single
656 listener's exception failure won't poison all other
658 (impl_registry_notify_event): bin obvious memory leak.
660 2002-12-13 Michael Meeks <michael@ximian.com>
662 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
663 init the ev so the error is meaningful.
664 (spi_atk_bridge_key_listener): ditto.
666 * cspi/spi_main.c (cspi_ev): init the ev so we start
667 with a clean slate, otherwise the first exception
670 * cspi/spi_text.c (get_accessible_text_boundary_type):
671 add a fallthrough for no warnings.
673 * cspi/spi_registry.c: prune unused warnings.
675 * cspi/spi_main.c (cspi_object_take): fix
676 mind-blowing brokenness ( by watching the compile
679 * cspi/spi_accessible.c (Accessible_getStateSet):
680 re-impl. to use an AtkStateSet.
681 (spi_state_type_from_accessible_state),
682 (init_state_table): bin these.
684 * libspi/stateset.c (spi_atk_state_set_from_sequence):
686 (atk_state_set_from_accessibility_state_set): here.
688 * cspi/spi_accessible.c (spi_state_to_atk): impl.
689 (AccessibleStateSet_contains, AccessibleStateSet_ref),
690 (AccessibleStateSet_unref, AccessibleStateSet_contains),
691 (AccessibleStateSet_add, AccessibleStateSet_remove),
692 (AccessibleStateSet_equals, AccessibleStateSet_compare),
693 (AccessibleStateSet_isEmpty): re-write to use a local
696 2002-12-13 Bill Haneman <bill.haneman@sun.com>
698 * configure.in: Revved to 1.1.7 (new keymask vals).
700 2002-12-10 Bill Haneman <bill.haneman@sun.com>
703 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
705 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
708 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
709 to compare two CORBA_TypeCodes.
710 (cspi_internal_event_add): Silence warning from FORTE compiler.
712 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
713 avoid implicit declaration of functions.
715 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
717 * atk-bridge/bridge.c:
718 (spi_atk_bridge_init_event_type_consts): Store signal id for
719 active-descendant-changed signal.
720 (spi_atk_register_event_listeners): Add signal listener for
721 active-descendant-changed signal,
722 (spi_atk_bridge_signal_listener): Move code in function
723 spi_atk-signal_emit_event() into this function.
724 Add support for active-descendant-changed
725 Update support for child-changed signal.
726 (spi_bridge_window_event_listener): Silence warning.
728 * libspi/spi_private.[ch]:
729 (spi_init_any_object): Change second parameter from CORBA_Object to
731 Omit call to CORBA_Object_duplicate().
732 Set CORBA_any's _value to CORBA_Object*.
734 2002-12-06 Bill Haneman <bill.haneman@sun.com>
740 (AccessibleEvent_ref, AccessibleEvent_unref):
741 New methods, for persisting an event outside the emission context.
742 Must be used if the new accessor methods are to be called
743 outside of the event listener's callback.
745 * cspi/bonobo/cspi-bonobo.c:
746 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
747 as second parameter instead of NULL, so we can call
748 cspi_check_ev afterwards.
751 (cspi_object_take): New internal method,
752 converts a CORBA_Object reference to a hard ref on
753 an Accessible if possible, returning NULL if the object
754 reference is invalid or an Accessible * otherwise.
757 (AccessibleEvent_ref):
758 Increment the event's internal private refcount, and
759 add the event's internal struct to an internal cache
760 if it's not already there.
761 (AccessibleEvent_unref):
762 Decrement the event's refcount and remove it from
763 the cspi event cache if refcount==0.
764 (cspi_event_compare): New private method.
765 Compares two event structs via their ids. Used
767 (cspi_internal_event_lookup): New private method.
768 (cspi_internal_event_check): New private method,
769 a 0-order sanity check for events to make sure their
770 private data is intact.
771 (cspi_internal_event_add, cspi_internal_event_remove):
772 New private methods for managiing the event cache.
774 * cspi/bonobo/cspi-bonobo-listener.c:
776 Initialize the new private data elements (id, magic, ref_count).
778 * atk-bridge/bridge.c:
779 (spi_atk_bridge_signal_listener):
780 Fixed bug #100530, passing wrong params to emission func.
782 * registryd/deviceeventcontroller.c:
783 (spi_dec_button_update_and_emit):
784 Fixed type in mask bit operations; fix for #99799.
786 2002-12-02 Bill Haneman <bill.haneman@sun.com>
788 Removed some of the more dangerous workarounds from
789 previous commit; they are only needed by GOK, which
790 in reality should be using another method to accomplish
791 the goals. So on reconsideration some of the workarounds
794 * registryd/deviceeventcontroller.c:
795 (spi_keycodes_contain, spi_dec_init_keycode_list):
796 Removed these methods, used only by a nasty hack to try
797 and detect whether a key synthesis should be allowed
798 to reset the XKB latch state or not. This code was only
799 required to work around an interaction between GOK,
800 button events, and XKB.
801 (impl_generate_key_event):
802 Removed hack at end of key generation that tried to
803 "do the right thing" if XKB latch keys were generated
804 in the midst of button press/release pairs.
807 Added a check for HAVE_XINPUT. Not normally used yet.
809 2002-11-25 Bill Haneman <bill.haneman@sun.com>
811 Workarounds and fixes for mouse event/XKB interaction.
813 * registryd/deviceeventcontroller.c:
814 (spi_keycodes_contain, spi_dec_init_keycode_list):
815 New internal methods.
816 (spi_dec_set_unlatch_pending):
817 Split the method that tells XKB to expect an
818 unlatch (and revert it) out of the rest of the
819 event handling code. This method is called by the
820 two mouse event handlers (the poll and the filter).
821 (spi_dec_update_and_emit, spi_dec_mouse_check):
822 New methods split from spi_dec_poll_mouse_moved.
823 The second one is now called from inside the filterFn
824 when an XKB delatch event is received, to determine
825 whether to revert the delatch or not.
826 (spi_poll_mouse_moved): Refactor; also we can now
827 properly handle the case where multiple button states
828 have changed between polling cycles and we didn't get
829 notified due to another client's grab.
831 Synchronize the server while handling an XKB notification.
832 Ugly, but apparently necessary to avoid nasty races.
833 Check the mouse state on receipt of an XKB latch change,
834 to decide whether to revert the latch or not. (Latches are
835 reverted if there is an immediately preceding mouse button
836 event that a client has consumed, in which case we don't want
837 the user to see the side-effect of the event).
838 (spi_device_event_controller_forward_mouse_event):
839 Check for modifier events and fire before resetting mouse_mask_state,
840 prevents losing modifier events.
842 (impl_generate_keyboard_event):
843 If we've just generated a keyboard event for a non-shift key,
844 we don't want to revert the pending XKB latch.
845 Otherwise, check the modifier state (via a call to
846 spi_dev_mouse_check) and set the relatch mask to
847 that state before returning.
849 2002-11-24 Bill Haneman <bill.haneman@sun.com>
852 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
855 * atk-bridge/bridge.c:
856 (spi_atk_register_event_listeners):
857 Don't re-register for ATK events if the registry has died
858 and the app needs to re-register; the ATK listeners are in
859 process and doing so will cause duplicate emission.
861 * registryd/deviceeventcontroller.c:
862 (spi_poll_mouse_moved):
863 Reformat the source, detect and emit multiple button-change
864 events (i.e. if multiple buttons have changed between poll
866 Add code to detect mouse-down events even when the pointer
867 is grabbed; workaround for GOK bug 98420.
868 (spi_controller_register_with_devices):
869 Call XTestGrabControl with 'impervious' flag set to True,
870 allows us to synthesize events and query the pointer even during
871 an active grab by another client.
872 (spi_device_event_controller_forward_mouse_event):
873 Set the mouse_mask_state to the mouse_button_state from
874 the intercepted event, to synchronize the grab listener with
877 2002-11-20 Bill Haneman <bill.haneman@sun.com>
879 * cspi/spi_accessible.c:
880 (AccessibleRole_getName):
881 Added necessary strings for making this (deprecated)
882 method work with the new role types.
883 (init_role_table, role_table):
884 Added definition of SPI_ROLE_APPLICATION.
886 * libspi/spi-roletypes.h:
887 Added SPI_ROLE_APPLICATION.
889 * idl/Accessibility_Role.idl:
890 Added ROLE_APPLICATION.
892 * docs/reference/cspi/at-spi-cspi-decl.txt:
893 Added SPI_ROLE_APPLICATION to docs.
895 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
897 * cspi/spi_accessible.c
898 (cspi_init_role_table): Do not write beyond end of role_table.
899 (Accessible_getRole): Use correct type for value returned by
900 Accessibility_Accessible_getRole().
902 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
903 beyond end of role_table. (This fixes bug #98269)
905 * libspi/application.c: Add include file spi-private.h for
906 definition of spi_init_any_nil.
908 2002-11-19 Bill Haneman <bill.haneman@sun.com>
912 * libspi/spi-private.h:
913 Added DGB() macro, and extern int _dbg declaration.
915 * registryd/registry.c:
916 (definitions) storage for _dbg.
918 Get environment variable "AT_SPI_DEBUG".
919 (spi_registry_set_debug):
920 New method, to initialize _dbg value.
921 (spi_listener_struct_new, spi_registry_object_finalize):
922 (notify_listeners_cb):
923 Changed fprintfs to use DBG and g_warning().
925 * registryd/deviceeventcontroller.c:
926 (_deregister_keygrab, spi_controller_register_device_listener):
927 Changed debug/warning messages to use DBG macro.
931 Changed warning messages to use DBG macro and g_warning().
933 * atk-bridge/bridge.c:
934 (atk_bridge_init, spi_atk_bridge_get_registry):
935 (spi_atk_bridge_exit_func):
936 (spi_atk_bridge_property_event_listener):
937 Changed status, warning, and error messages to use
938 g_warning, g_message, and DBG macros.
941 Read the state of the AT_SPI_DEBUG environment variable
942 and set a local '_dbg' accordingly.
944 2002-11-19 Bill Haneman <bill.haneman@sun.com>
946 FIXES for 98836, 98842, other bugs.
949 Revved to 1.1.4, interface-age=4, binary-age=4.
951 * registryd/deviceeventcontroller.c:
953 Fixed crasher bug in last_mouse_pos initialization.
955 * registryd/registry.c:
956 (desktop_add_application, desktop_remove_application):
957 Added (and then commented out) some support for
958 object context marshalling. [TODO]
960 * atk-bridge/bridge.c:
961 (spi_atk_bridge_event_context_create):
962 Commented out object context creation until it can
963 be properly tested and debugged.
965 * registryd/registry.c:
966 (impl_registry_notify_event):
967 Fixed crasher bug, we were calling
968 spi_re_entrant_list_foreach () with an empty list.
970 2002-11-18 Bill Haneman <bill.haneman@sun.com>
972 * idl/Accessibility_Action.idl:
973 * idl/Accessibility_Component.idl:
974 * idl/Accessibility_Desktop.idl:
975 * idl/Accessibility_Event.idl:
976 * idl/Accessibility_Hyperlink.idl:
977 * idl/Accessibility_Image.idl:
978 * idl/Accessibility_Relation.idl:
979 * idl/Accessibility_Selection.idl:
980 * idl/Accessibility_State.idl:
981 * idl/Accessibility_Value.idl:
982 Updated unimplemented slot count to minimum of
983 four for all interfaces, for ABI freeze.
985 * idl/Accessibility_EditableText.idl:
986 * idl/Accessibility_Text.idl:
987 Updated unimplemented slot count to six
990 * idl/Accessibility_Registry.idl:
991 Updated unimplemented slot count to six
992 (also for DeviceEventController),
995 * idl/Accessibility_Table.idl:
996 Updated unimplemented slot count to eight,
999 * idl/Accessibility_Event.idl:
1000 Added CORBA_any "any_data" member to Event struct.
1002 * idl/Accessibility_Event.idl:
1003 Added CORBA_any "any_data" member to Event struct.
1005 * atk-bridge/bridge.c:
1007 atk_signal_text_changed, atk_signal_child_changed,
1008 signal ids queried from gtype system.
1009 (AtkBridgeEventContextType): New enum.
1010 (AtkBridgeEventContextData): New struct.
1011 (AtkBridgeEventContext): New struct.
1012 (atk_bridge_init_event_type_consts):
1013 New method, initializes type contants for comparison
1014 prior to emit_eventv.
1015 (atk_bridge_event_context_init): New method,
1016 initializes a CORBA_any from an AtkBridgeEventContext.
1017 (atk_bridge_focus_tracker): Call spi_init_any_nil to
1018 initialize the event.any_data struct.
1019 (spi_atk_bridge_event_context_create): New method,
1020 creates an AtkBridgeEventContext from signal/event info.
1021 (spi_atk_bridge_event_context_free): New method.
1022 (spi_atk_emit_eventv): Changed to take an
1023 AtkBridgeEventContext parameter. We now initialize
1024 the event.any_data member prior to notifying the
1025 Registry, via the AtkBridgeEventContext.
1026 (spi_atk_bridge_property_event_listener):
1027 (spi_atk_bridge_state_event_listener):
1028 Match emit_eventv signature.
1029 (spi_atk_bridge_object_event_listener):
1030 Match emit_eventv signature, and create an
1031 event context from the event details.
1032 Free the event context afterwards.
1033 (spi_atk_bridge_window_event_listener):
1034 Create an event context, pass it to the
1038 (AccessibleEvent_getContextString):
1039 (AccessibleEvent_getContextObject):
1040 New methods, allow query of AccessibleEvent objects
1041 for more context details (via the "any_data" member
1042 of the Event struct, above).
1045 Definitions for AccessibleEvent_getContextString
1046 and AccessibleEvent_getContextObject.
1048 * cspi/spi_listener.h:
1049 (InternalEvent): New struct.
1052 (AccessibleEvent_getContextString):
1053 (AccessibleEvent_getContextObject):
1054 Implementations of new methods, for obtaining
1055 additional context information from some event types.
1057 * cspi/spi_registry.c:
1058 (SPI_registerGlobalEventListener):
1059 Added mention of active-descendant-changed event in docs.
1061 * cspi/cspi-bonobo-listener.c:
1063 Marshal the any into the AccessibleEvent via
1066 * libspi/spi-private.h:
1067 #include <orbit/orbit.h>
1069 (spi_init_any_string):
1070 (spi_init_any_object):
1071 New convenience function declarations.
1075 (spi_init_any_string):
1076 (spi_init_any_object):
1077 New convenience function implementations.
1079 * registryd/deviceeventcontroller.c:
1080 (spi_poll_dec_mouse_moved):
1081 (spi_device_event_controller_forward_mous_event):
1082 Initialize any_data member of event.
1083 (spi_deregister_controller_device_listener):
1084 Fix incorrect param pass which was preventing deregistration.
1086 * registryd/registry.c:
1087 (desktop_add_application):
1088 (desktop_remove_application):
1089 Add object data to event's any_data before dispatch.
1091 Fix for error messages from GAIL.
1093 * test/event-listener-test.c:
1094 Test new ContextString and "any_data" API:
1095 (report_text_event): New method query and output context string.
1096 (main): register a new text listener with report_text_event
1099 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1101 Fixes for bugs 98127 and 97914.
1102 * cspi/spi-roletypes.h:
1103 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1105 * cspi/spi-statetypes.h:
1106 Added SPI_STATE_MANAGES_DESCENDANTS
1108 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1109 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1110 * cspi/spi_accessible.c:
1111 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1112 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1113 Accessibility_STATE_MANAGES_DESCENDANTS
1114 * libspi/accessible.c:
1115 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1116 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1117 As requested by Bill, I also cleaned up the alignment.
1118 * libspi/relation.c:
1119 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1120 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1121 * libspi/stateset.c:
1122 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1123 Accessibility_STATE_MANAGES_DESCENDANTS
1124 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1125 Document changes reflecting modifications to roles.
1126 * docs/reference/cspi/tmpl/spi_relation.sgml:
1127 Document changes reflecting modifications to relations.
1128 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1129 Document changes reflecting modifications to states.
1131 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1134 Revved to 1.1.3, interface-age=3, binary-age=3.
1135 Added REBUILD macro.
1138 Removed accessx-gui from the tests, since we have a nice
1139 keyboard accessibility capplet now :-)
1141 * test/keysynth-demo.c:
1142 (increment_scan): removed do-nothing default: case,
1145 * test/visual-bell.c:
1146 (main) : removed do-nothing default: case,
1149 * cspi/spi_action.c:
1150 (AccessibleAction_getKeyBinding_):
1151 Documented keybinding string format.
1155 (AccessibleText_getAttributes):
1156 Documented the text attribute string format.
1157 It's changed to use semicolon delimiters also,
1158 to prevent clashes with CSS attributes, but the old
1159 trick of looking for ", " strings will still work
1160 (as unreliably as ever). Fix for bug related to 97916.
1163 Include <cspi/bonobo/cspi-bonobo-listener.h>
1164 Fixes build warning.
1165 (SPI_freeAccessibleKeySet):
1166 (AccessibleKeystrokeListener_addCallback):
1167 (AccessibleKeystrokeListener_removeCallback):
1168 Modify to use AccessibleDeviceListener API internally,
1169 instead of AccessibleKeystrokeListener.
1171 * idl/Accessibility_Event.idl:
1172 Added two more empty slots to EventListener (for a total of four).
1174 * idl/Accessibility_Accessible.idl:
1175 Added four empty slots to Accessible interface.
1177 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1179 * idl/Accessibility_Registry.idl:
1180 (KeyEventType, EventType):
1181 Marked KeyEventType as deprecated; it duplicates
1182 functionality of EventType, which has been extended to
1183 include Mouse-button events.
1184 (KeyEventTypeSeq): defined in terms of EventType.
1185 (registerDeviceEventListener, deregisterDeviceEventListener):
1186 New methods, for managing listeners to device events,
1187 which potentially may consume them.
1190 Added definition for AccessibleDeviceListener.
1192 * cspi/spi-listener.h:
1193 (enum AccessibleDeviceEventType):
1194 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1195 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1196 for backwards compat.
1197 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1198 and typedef'd AccessibleKeystroke to it for back-compat.
1199 (AccessibleDeviceListenerCB):
1200 New function prototype typedef.
1203 (AccessibleDeviceEventMask): New typedef.
1204 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1205 (AccessibleKeyMaskType):
1206 Set equivalent to AccessibleModifierMaskType for back-compat.
1207 (SPI_createAccessibleKeystrokeListener):
1208 (AccessibleKeystrokeListener_unref):
1209 Deprecated in favor of equivalent (better-named) new API below..
1210 keystroke listeners are like all device listeners.
1211 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1212 New API names for old features :-).
1213 (AccessibleDeviceListener_addCallback):
1214 (AccessibleDeviceListener_removeCallback):
1215 (SPI_registerDeviceEventListener):
1216 (SPI_deregisterDeviceEventListener):
1220 (SPI_createAccessibleKeystrokeListener):
1221 Use new preferred API, cspi_device_listener_new() and
1222 cspi_device_listener_add_cb().
1223 (AccessibleKeystrokeListener_removeCallback):
1224 Use new preferred API, cspi_device_listener_remove_cb().
1225 (AccessibleKeystrokeListener_unref):
1226 Use new preferred API, cspi_device_listener_unref().
1227 (SPI_createAccessibleDeviceListener):
1228 (AccessibleDeviceListener_addCallback):
1229 (AccessibleDeviceListener_removeCallback):
1230 Implementation of new API.
1232 * cspi/spi_registry.c:
1233 (SPI_registerDeviceEventListener):
1234 (SPI_deregisterDeviceEventListener):
1235 Implementation of new API. Fixed memory leak and removed need to
1236 allocate EventTypeSeq (thanks Michael for catching this).
1237 Squashed a wayward CORBA_exception_free that shouldn't get called.
1239 * cspi/bonobo/cspi-bonobo-listener.c:
1241 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1242 (cspi_key_event): renamed to cspi_device_event().
1243 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1244 Extended to handle mouse button events as well as key events.
1245 (CSpiKeystrokeListener):
1246 Class superceded by CSpiDeviceListener.
1247 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1248 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1250 * cspi/bonobo/cspi-bonobo-listener.h:
1251 (CSpiKeystrokeListener):
1252 Class superceded by CSpiDeviceListener.
1253 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1254 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1256 * libspi/Makefile.am:
1257 Replaced keystrokelistener.h and keystrokelistener.c
1258 with devicelistener.h and devicelistener.c; keystrokelisener.h
1259 stub retained for back-compat.
1261 * libspi/keystrokelistener.c:
1265 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1267 * registryd/deviceeventcontroller.c:
1268 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1269 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1270 (DEControllerPrivateData): Added xkb settings data.
1271 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1272 button release events (which can't be captured via XGrabButton).
1273 Don't dispatch via the 'normal' event mechanism if the device event was
1275 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1276 Handle the typeseq data in its new location (see above).
1277 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1278 New methods, for "generic" device listeners.
1279 (spi_controller_register_device_listener):
1280 Now handle mouse event listeners as well as key listeners.
1281 (spi_controller_notify_mouselisteners):
1282 New internal method.
1283 (spi_device_event_controller_forward_mouse_event):
1284 Now we notify mouse device listeners as well as generating the
1285 non-consumable "mouse:" events.
1287 We must check and restore the XKB
1288 modifier map if we consume the event, since the act of triggering
1289 a mouse event will normally reset the XKB latch. This is required for
1291 (spi_controller_register_with_devices):
1292 Load the XKB settings when registering, and register for XKB
1293 state notify events.
1294 (spi_key_eventtype_seq_contains_event):
1295 Renamed spi_eventtype_seq_contains_event, since it's used
1296 internally for all device event types now.
1297 (spi_key_event_matches_listener):
1298 Uses spi_eventtype_seq_contains_event now.
1299 (spi_device_event_controller_object_finalize):
1300 Free the private data and the XkbKeyboard struct.
1301 (impl_register_device_listener, impl_deregister_device_listener):
1302 Implementation of new IDL.
1303 (spi_deregister_controller_device_listener):
1304 New internal method.
1305 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1306 More efficient implementation, we don't have to create a new
1307 XkbControls structure every time we query.
1308 (spi_device_event_controller_class_init):
1309 Initialize the epv entries for the new IDL. Assign the
1310 "spi-dec-private" quark.
1311 (spi_device_event_controller_init):
1312 Initialize the private data.
1313 (spi_device_event_controller_forward_key_event):
1314 Removed a bogus CORBA_exception_free() call.
1316 * registryd/deviceeventcontroller.h:
1317 Replaced inclusion of keystrokelistener.h with
1320 * test/event-listener-test.c:
1321 (report_mouse_event):
1324 Added mouse-event device listener.
1326 * test/test-simple.c:
1327 (create_test_window):
1328 Fixed regression (we were instantiating a GtkRange,
1329 which is now an abstract class). Also fixed to match
1330 existing AtkRole names, this seems to have changed in ATK
1331 awhile ago; too late now I think, and the new
1332 mechanism is at least elegant and consistent with the
1333 glib enum "nick" APIs.
1335 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1337 * idl/Accessibility_Relation.idl:
1338 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1339 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1340 * idl/Accessibility_Role.idl:
1341 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1342 * idl/Accessibility_State.idl:
1343 add STATE_MANAGES_DESCENDANTS
1344 * test/event-listener-test.c:
1345 Added a listener for active-descendant events.
1347 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1349 * atk-bridge/bridge.c
1350 (atk_bridge_init): If application is Bonobo component wait until top
1351 level is added before registering
1352 (spi_atk_bridge_do_registration): New function which contains code,
1353 formerly in atk_bridge_init, to do application registration.
1354 (spi_atk_bridge_toplevel_added): Signal called when top level
1355 added to Bonobo component
1357 This fixes bug #83134.
1359 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1361 * registryd/deviceeventcontroller.c
1362 Fixed compilation error caused by calling gettimeofday()
1365 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1370 Added template for HAVE_XKB.
1373 Changes to check for XKB, and to set the HAVE_XKB #define if it
1376 * libspi/listener.c:
1377 ()impl_notify_event): Make failure to get event source name
1380 * registryd/deviceeventcontroller.c:
1381 (#include): include X11/XKBlib.h.
1382 (DEControllerPrivateData) : New struct.
1383 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1385 (dec_synth_keycode_press) (dec_synth_keycode_release):
1386 New methods; split the key synthesis code into these methods.
1387 They check XKB settings before determining the "time" values to
1388 pass to Xtest; this fixes bug #95828.
1389 (impl_generate_keyboard_event): Changed to use methods above,
1390 instead of callng Xtest directly.
1391 (spi_device_event_controller_init): Initialize new privae struct s
1393 (spi_device_event_controllr_object_finalize):
1394 Free the (new) private data.
1396 * registryd/deviceeventcontroller.h:
1397 Add new gpointer to end of struct data.
1399 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1402 Incremented revision to 1.1.2, SONAME is still '.so', library
1403 extensions are ".so.0.0.2".
1405 * registryd/deviceeventcontroller.c:
1406 FIXES FOR #93592 and #95940.
1407 (statics): renamed mouse_button_state to mouse_mask_state,
1408 added key_modifier_mask.
1409 (spi_dec_poll_mouse_moved):
1410 Added key modifier checks, and emit "keyboard:modifiers"
1411 events when the key modifiers currently in use change.
1412 Also generate "mouse:abs" events periodically, even if the mouse
1413 is stationary (should we?).
1414 Alternatively we could generate "mouse:abs" events for either all
1415 mouse movements, or every 'nth' mouse movement, or at the
1416 beginning and end of every "active" mouse period.
1418 * test/event-listener-test.c:
1419 (main): Added listener for "keyboard:modifiers" events.
1421 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1423 * libspi/keymasks.h:
1424 Added key mask #defines for mouse buttons; e.g.
1425 SPI_KEYMASK_BUTTON1, etc.
1428 Incremented dependency on ATK to version 1.1.0. (This dependency
1429 is probably premature but will soon be real enough).
1431 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1433 * libspi/hyperlink.[ch]
1434 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1435 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1438 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1443 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1445 * registryd/deviceeventcontroller.c
1446 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1447 events to be ignored.
1448 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1449 keyboard_mode so that XAllowEvents() can be called.
1453 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1455 * cspi/spi-accessible.c: Correct names of roles returned by
1456 AccessibleRole_getName(). Fixes bug #95055.
1458 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1460 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1463 * registryd/registry.c
1464 (desktop_remove_application: Write diagnostic message to stderr for
1467 (impl_accessibility_registry_deregister_global_event_listener):
1468 Correct size of lists array. This addresses bug #94555).
1470 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1472 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1475 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1477 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1480 * registryd/registry.c (impl_registry_notify_event): Remove
1481 unnecessary call to parser_event_type().
1483 * docs/reference/cspi/tmpl/spi_component.sgml:
1484 Add reference to SPI_LAYER_WINDOW.
1486 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1488 * registryd/registry.c
1489 (desktop_add_application): Remove leak.
1490 (desktop_remove_application): Remove leak.
1491 (parser_event_type): Remove leak.
1493 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1495 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1496 bogus call to CORBA_string_dup(). Also removed unnecessary
1497 g_string_dup/g_free calls.
1499 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1501 * registryd/deviceeventcontroller.c:
1502 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1504 * test/event-listener-test.c:
1505 main: commented out three redundant listeners, to reduce output
1506 noise. (They still are potentially useful for testing).
1509 2002-09-13 Michael Meeks <michael@ximian.com>
1511 * Update all the copyrights to include Ximian.
1513 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1515 * cspi/spi.h: add SPI_LAYER_WINDOW.
1517 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1518 add Accessibility_LAYER_WINDOW case.
1520 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1522 * libspi/component.c: (impl_accessibility_component_get_layer):
1523 add ATK_LAYER_WINDOW case.
1525 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1527 * configure.in: incremented micro version.
1529 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1531 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1534 Clarified and reworded our commit policy.
1537 Started an API "todo" addition list for 2.2.
1540 (impl_getSelection):
1541 Free char pointer from atk_text_get_selection, which was being leaked.
1543 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1546 Small revision to author acknowledgement.
1548 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1550 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1551 If signal has detail add it to the type of the event.
1554 2002-08-12 Michael Meeks <michael@ximian.com>
1556 * test/test-simple.c (global_listener_cb): bin bogosity.
1557 (test_keylisteners): disable, still doesn't work reliably,
1558 certainly not on my system anyway.
1560 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1561 don't leak a reference on the DEC. This round-trip
1562 fetching of the DEC per keystroke sucks, it should be
1565 * cspi/spi-private.h,
1566 * cspi/cspi-lowlevel.h,
1567 * cspi/bonobo/cspi-bonobo-listener.[ch],
1568 * cspi/bonobo/cspi-bonobo.c: get the copyright
1569 notices better - there is still a large amount of
1570 work in at-spi falsely attributed solely to Sun.
1572 * cspi/spi_main.c (cspi_object_ref): kill bogus
1573 hash lookup, just increment the ref.
1574 (SPI_freeString): make explicit the fact that we
1575 handle NULL strings just fine.
1576 (report_leaked_ref): obey coding standards.
1577 (cspi_object_hash, cspi_object_equal): kill retval.
1578 (cspi_object_release): only release if not on loan.
1579 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1580 (cspi_object_borrow, cspi_object_return): impl.
1582 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1583 use cspi_object_borrow / return.
1585 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1587 * cspi/bonobo/cspi-bonobo-listener.c:
1589 Don't call cspi_oject_new() because this is creating a new Accessible
1590 every single time that an event is fired. This causes ATs like at-poke
1591 to nolonger recognise the source of the event and thus ignore it.
1592 Re-use the object from the cache, ref it and then unref it after the
1593 listeners have been called.
1595 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1597 * test/event-listener-test.c:
1598 Added command-line options to disable mouse events (m) and
1601 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1603 * configure.in: Update required versions of ATK, GTK+ and GAIL
1605 * cspi-1.0.pc.in: Add dependency for X include files
1608 * cspi/bonobo/Makefile.am:
1609 Add $(X_CFLAGS) so that X include files
1610 are picked up even if not in standard place (bug #71686)
1612 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1614 * registryd/deviceeventcontroller.c: fix for 84261
1615 (spi_dec_mouse_moved):
1616 Added test of mouse button mask, so that we can detect mouse
1617 button release. Unfortunately we can't otherwise detect mouse
1618 button release events without consuming the mouse press event,
1619 because of the way XGrabButton works. This means that our mouse
1620 release events have a latency dependent on the polling period
1621 while the mouse button is down. At least in this case we only
1622 have to poll while the button is down, and not at other times.
1623 If the button masks don't match with what the last press event
1624 reported, we report the appropriate button release event.
1625 (spi_dec_ungrab_mouse):
1626 New method (not yet called).
1627 (spi_device_event_controller_forward_mouse_event):
1628 New method, sends mouse press event from GdkFilter.
1629 (spi_dec_init_mouse_listener):
1630 Added code to call XGrabButton, redirecting mouse button events to
1631 the root window and our Gdk event loop.
1633 Added code to filter mouse button events, and reordered.
1635 * test/event-listener-test.c:
1637 Added registration for mouse events of type "mouse:button".
1639 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1641 * registryd/deviceeventcontroller.c: partial fix for 84261
1642 (spi_dec_poll_mouse_idle):
1643 New method, a timeout which checks to see if the mouse
1645 (spi_dec_poll_mouse_moving):
1646 A timeout to be called when mouse motion is underway.
1647 (spi_dec_poll_mouse_moved):
1648 A method which fires an event if the mouse has moved, and reports
1649 whether or not it did so.
1650 (spi_dec_init_mouse_listener):
1651 A method which sets up the timeouts above.
1652 (spi_device_event_controller_new):
1653 Now calls spi_dec_init_mouse_listener.
1655 * registryd/registry.c:
1656 (spi_registry_init):
1657 Now we initialize the device event controller when the registry is
1658 initialized, instead of waiting until a client has requested a key
1659 event notification; this is because we need the event controller
1660 for mouse events, but the mouse event registration API is a
1661 "registry" call and doesn't explicitly call the
1662 deviceeventcontroller.
1663 We now report mouse motion events with a 100 ms idle latency and
1664 a 20 ms granularity when motion is in progress.
1666 * test/event-listener-test.c:
1668 We now register the "detail listener" for events of type
1669 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1670 delivered only for the first mouse event received, and thereafter
1671 "mouse:abs" events are delivered.)
1673 * cspi/spi_registry.c:
1674 DOCS: Documented the above mouse event typestrings.
1676 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1678 Happy Summer Solstice...
1680 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1681 (spi_controller_notify_keylisteners):
1682 Changes to remove a listener from the listener list, freeing its
1683 open keygrabs, if a notification to that listener fails. This
1684 means that although a dead listener can continue to hold a passive
1685 keygrab, a maximum of one dispatch to such a listener can fail
1686 before the listener is removed from the list, thus the keygrab
1687 will be released on the next occurrence.
1688 As part of this fix:
1689 (spi_notify_keylisteners):
1690 Renamed to spi_controller_notify_keylisteners, as the controller
1691 instance must now be passed as an argument.
1692 The copied 'notify' GList is now a list of DEControllerKeyListener
1693 objects, since we need more than just the CORBA reference if a
1694 notify fails and we need to deregister the listener.
1695 (impl_notify_listeners_sync):
1696 (impl_notify_listeners_async):
1697 (spi_device_event_controller_forward_key_event):
1698 Modify use of notify_keylisteners in accordance with above
1700 (spi_deregister_controller_key_listener):
1701 New method introduced by refactoring, from
1702 impl_deregister_keystroke_listener.
1703 (impl_deregister_keystroke_listener):
1704 Call spi_deregister_controller_key_listener.
1705 (spi_key_listener_clone):
1706 New method to copy a key listner without doing a 'ref' on the
1707 remote object instance; used to create a notifier list.
1708 (spi_key_listener_data_free):
1709 New method, frees data without unreffing the source.
1711 (spi_key_listener_clone_free): new method.
1712 (spi_key_listener_free):
1713 refactored to call spi_key_listener_data_free.
1715 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1717 * registryd/registry.c: [fix for bug 86048]
1718 (notify_listeners_cb):
1719 Clear CORBA system exceptions which occur when notifying
1720 listeners, before returning to the source of the original event,
1721 since the event source doesn't care if the relayed notify failed.
1722 In other words, don't complain to the atk-bridge if the registry
1723 could not notify all its listeners, that's no fault of the
1724 application and thus should not appear to be an error from the
1725 application's perspective.
1727 * cspi/spi_main.c: [fix for bug 85980]
1729 Replaced use of bonobo_object_dup_ref with call to the wrapper
1730 method, csou_dup_ref (); this silences a compiler warning and
1731 provided more portability.
1733 Ping the registry before return, and restart if necessary.
1735 * cspi/bonobo/cspi-bonobo.c:
1737 New internal method.
1739 Fixed this method to return an object reference, as it should have
1742 * cspi/cspi-lowlevel.h:
1743 Added internal definition for cspi_ping() and fixed
1744 return type of cspi_dup_ref().
1747 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1749 * atk-bridge/bridge.c: [fix for bug 85305]
1750 (spi_atk_bridge_register_application):
1751 New method where the initial application registry calls have been
1752 moved; it allows an application to re-register in response to
1753 certain error conditions (such as a registry restart, see below).
1755 Moved some initialization code to the method
1756 spi_atk_bridge_get_registry, below.
1757 (spi_atk_bridge_get_registry):
1758 New, private accessor function for the Accessibility_Registry
1759 instance. If the registry has not been started before, or has
1760 died (as detected by failure of a CORBA exception), it is
1761 restarted before return, and spi_atk_bridge_register_application
1762 is called again to register with the new bridge instance.
1763 (spi_atk_emit_eventv):
1764 Set registry_died on error; use spi_atk_bridge_get_registry () to
1765 access the registry.
1767 * registryd/registry.c:
1768 (impl_accessibility_registry_register_global_event_listener):
1769 Set listener's event_type_quark to etype.minor instead of
1770 etype.major (fix for bug 84856).
1772 * test/event-listener-test.c:
1773 (report_detail_event):
1774 Change the output string so that user/tester can tell that the
1775 'detail listener' was called instead of the 'generic listener'.
1777 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1779 Fixes for bugs 84900, 84908, 84897, 84898.
1784 Revved version to 1.1.0
1785 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1786 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1788 * idl/Accessibility_Registry.idl:
1789 (EventListener::notifyEvent):
1790 Removed 'oneway' directive after extensive consulation with
1791 ORBit2 team and others. This means also that unref() of the event
1792 source can and should be done synchronously after emission, rather
1793 than remotely in the client, after servicing the notify call on
1796 NOTE: This change speeds up listener performance considerably, but
1797 introduces new latency on the application side. We may want to
1798 add an event queue to the atk-bridge.
1800 * atk-bridge/bridge.c:
1801 (spi_atk_bridge_focus_tracker):
1802 Do a local unref() on the event source after emission.
1804 * registryd/registry.c:
1805 (desktop_remove_application):
1806 Do an unref() on the event source after emission.
1807 (desktop_add_application):
1808 Do an unref() on the event source after emission.
1809 (notify_listeners_cb):
1810 When relaying an event, don't automatically add the event source
1811 to the local object cache, just CORBA_dup it instead. Likewise,
1812 if this method reenters, release the ref rather than calling
1814 (impl_registry_notify_event):
1815 No longer call remote unref() on the event source after dispatch.
1817 * libspi/eventlistener.c:
1818 (impl_accessible_event_notify_event):
1819 Removed remote unref ()
1821 * cspi/bonobo/cspi-bonobo-listener.c:
1823 We now call cspi_object_new() instead of cspi_object_add() on
1824 receipt of an event; thus we only have an implicit object ref
1825 while the cspi_event method is being executed. If we need to keep
1826 a reference to the object, the listener must call ref() on the
1827 object. Thus also we don't need to call cspi_object_unref() after
1828 invoking the listener callbacks in this method.
1832 New internal API for creating a new cspi object, without adding it
1833 to the object cache.
1835 Now uses cspi_object_new() to create the cspi object instance.
1837 Now checks to see if the object is in the internal object cache,
1838 and adds it if necessary before incrementing its refcount (note
1839 that new objects are added with a refcount of 1).
1840 (report_leaked_ref):
1841 New method which gives some information on leaked object instances
1842 if leak detection is turned on.
1844 * test/event-listener-test.c:
1845 (timing_test_event):
1846 New method, used for testing event delivery timing for special
1847 events of type "object:test". It reports elapsed time and
1848 events/sec every 500 events.
1850 Added a new listener, 'test listener', to check timing of event
1851 receipt as noted above.
1853 Added some timing output here also, reports elapsed time every 100
1856 * test/stress-test.c:
1857 Emit events of type "object:test", for use with "event-listener-test".
1859 * test/test-simple.c:
1860 (global_listener_cb):
1861 Call Accessible_ref() on the event source before calling
1862 validate_accessible, since the validation process does pointer
1863 comparisons on the event source, meaning that the event source
1864 needs to be added to the local object cache first. Any use of
1865 such pointer comparisons between Accessible objects requires that
1866 the caller hold an explicit reference to those objects.
1867 We also must therefore call Accessible_unref() when leaving this method.
1869 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1871 * registryd/deviceeventcontroller.c:
1872 (spi_controller_update_key_grabs):
1873 Fix for #84735, subsequent keygrab listeners not informed of
1874 registration failure.
1877 (spi_base_construct):
1878 Add an assertion on construct, to make sure the GObject passed in
1879 is really a GObject.
1881 Explicitly initialize object->gobj pointer to NULL;
1883 * cspi/bonobo/cspi-bonobo-listener.c:
1884 (cspi_object_add_ref):
1885 New method, can specify whether to dup-ref a bonobo object passed
1886 in if it's newly added to the object cache.
1888 Now calls cspi_object_add_ref with second param of "FALSE". This
1889 prevents us from doing a pointless dup-ref followed by
1890 release-unref for all those cases where the object is already in
1891 our object cache (fix for #85205).
1893 * atk-bridge/bridge.c:
1894 (spi_atk_bridge_idle_init):
1895 Removed this method, we don't need to initialize in an idle
1898 Changed to call spi_atk_register_event_listeners directly, not via an
1899 idle handler. (fix for #81139)
1900 (gnome_accessibility_module_shutdown):
1901 Removed conditional around deregistration of listeners, since we
1902 don't use the idle handler and thus have always registered when
1904 (spi_init_keystroke_from_atk_key_event):
1905 Changed references to Accessibility_KEY_PRESSED to
1906 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1908 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1910 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1915 * test/stress-test.c:
1918 (may have been an incomplete commit yesterday?)
1920 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1923 Added target for new stress-test.
1925 * test/stress-test.c:
1926 New test, sends 1000 focus notifies in quick succession.
1928 * test/key-listener-test.c:
1929 Now we report whether a keylistener registration
1930 request succeeded or failed.
1932 * test/event-listener-test.c:
1933 Uncommented some listeners which are now implemented.
1936 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1938 * registryd/deviceeventcontroller.c:
1939 (spi_controller_update_key_grabs):
1940 Fix for #82509, lack of failure notification when
1941 ALL_WINDOWS keygrabs fail due to XGrabKey
1942 failure: we synchronize the server when
1943 registering a passive grab, to make sure we get the
1944 error message before the call returns.
1946 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1948 * test/test-simple.c:
1950 Removed #ifdef KEY_IMPL_WORKS guards.
1951 (test_keylisteners):
1952 Removed #ifdef KEY_IMPL_WORKS guards.
1953 Fixed bug which was causing a hang waiting for a
1954 "press" event (which was already overwritten by a "release"
1955 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1957 Added code to set globals 'key_press_received' and
1958 'key_release_received'.
1961 Added section "1.1 API Proposed Additions" which
1962 lists API additions desired for at-spi-1.1 (only one so far).
1963 Updated TODO list a little.
1965 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1967 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1970 * configure.in: Revved to 1.0.0.
1972 * idl/Accessibility_Registry.idl:
1973 (registerKeystrokeListener):
1974 Added boolean return value.
1976 * registryd/registry.c:
1977 (notify_listeners_cb): Minor fix to debug output.
1979 * registryd/Accessibility_Registry.server.in.in:
1980 Revved version number in OAFIID to 1.0.
1982 * registryd/registryd.c:
1984 Use new OAFIID version.
1986 * cspi/bonobo/cspi-bonobo.c:
1988 Use new OAFIID version.
1994 * atk-bridge/bridge.c:
1996 Use new OAFIID version.
1998 * registryd/deviceeventcontroller.c:
1999 (impl_register_keystroke_listener):
2000 Added CORBA_boolean return value.
2001 (spi_controller_register_device_listener):
2002 Added gboolean return value.
2003 (spi_controller_register_global_keygrabs):
2004 Added gboolean return value.
2005 (spi_key_set_contains_key):
2006 Added implementation for many more control keys,
2007 for instance F1-F12, arrow keys, End, Home, Page_Up,
2009 [TODO: some still not implemented].
2011 * text/screen-review-test.c:
2012 (text_chunk_pad_string):
2013 New function: it provides mapping between coordinate
2014 positions of text chunks and character positions in the
2015 screen-review-line output string.
2016 (text_chunk_to_string):
2017 New function, calls text_chunk_pad_string with various
2018 pad/delimiter characters. Pushbuttons are delimited with
2019 square brackets, Frames with vertical 'pipe' lines, and
2020 other text with double quotes.
2021 (text_chunk_list_to_string):
2022 Calls new function text_chunk_to_string.
2023 (toplevel_composite):
2024 New function to composite layers CANVAS through
2025 POPUP in each toplevel (other layers are composited
2026 across toplevels, i.e. BACKGROUND and OVERLAY).
2027 (review_buffer_composite):
2028 Revise to use new methods.
2034 2002-05-31 Laszlo Peter <laca@sun.com>
2036 * configure.in: add the Xtst libdir to the runpath on Solaris,
2037 since it's not in the default library search path.
2039 2002-05-29 jacob berkman <jacob@ximian.com>
2041 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2043 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2045 * test/screen-review-test.c:
2046 (text_chunk_pad_string):
2047 Added method, which pads the string according to the
2048 text bounds of the chunk. It also takes a 3-character
2049 string as a param which indicates the characters to be
2050 used for start, padding, and end delimitation of the chunk.
2051 (text_chunk_to_string):
2052 Changed to use text_chunk_pad_string.
2054 * configure.in: Fixed bug in AC_OUTPUT that was
2055 causing path substitution in Accessibility_Registry.server
2058 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2060 * text/screen-review-test.c:
2061 (guess_string_clip):
2062 New method which attempts a best-guess at clipping
2063 text from components (like Java labels) which don't
2064 actually implement AccessibleText. This inaccurate
2065 clip is based on the assumption that the label is
2066 justified left-and-right, and monospaced.
2067 (text_chunk_get_clipped_string):
2068 We now call guess_string_clip() for text-containing
2069 components that don't implement AccessibleText.
2071 * test/screen-review-test.c:
2072 (review_buffer_get_text_chunk):
2073 We now pull "name" from labels if they do not implement
2074 AccessibleText (i.e. for Java labels).
2075 (get_screen_review_line_at):
2076 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2079 Replaceded AC_OUTPUT target
2080 registryd/Accessibility_Registry.server with
2081 registryd/Accessibility_Registry.server.in.
2083 * registryd/Accessibility_Registry.server.in:
2084 Removed (this is now a Makefile target).
2086 * registryd/Accessibility_Registry.server.in.in:
2087 Added (source for target above). We now use $(libexecdir) as
2088 prefix for the executable at-spi-registryd.
2090 * registry/Makefile.am:
2091 Now install at-spi-registryd into $(libexecdir), and build .server
2092 file with path (see above).
2094 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2096 * test/screen-review-test.c:
2097 (text_chunk_get_clipped_string):
2098 We now check to see if words fall within clip bounds
2099 before resorting to character-by-character clip bounds testing.
2101 * TODO: Added a section for "2.2 Proposed API Additions".
2103 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2105 * test/screen-review-test.c:
2107 Added a screen review benchmarking and test program to test
2110 * cspi/spi_accessible.c:
2112 Made some of the debug strings passed to cspi_check_ev a
2113 little more specific.
2115 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2117 * test/screen-review-test.c: Fix crashes in debug statements
2119 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2121 * test/screen-review-test.c: Added this file.
2123 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2125 * atk-bridge/bridge.c: changed "object:state-change" to
2126 "object:state-changed" to match docs.
2128 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2130 * atk-bridge/bridge.c: Hooked up state-change event details.
2132 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2134 * registryd/registry.c:
2135 Fixed quarking bug in event string parsing; now events with
2136 detail parameters get matched correctly to listeners.
2139 * util/idl/Magnifier.idl: remove.
2141 * util/*.[ch]: Remove.
2142 Magnification utilities and IDL are now in module gnome-mag.
2144 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2146 * registryd/deviceeventcontroller.c:
2147 Fixed bug in grab key conversion which was causing keycode grabs
2148 to be converted to AnyKey grabs.
2151 updated NEWS file to reflect recent spin-off of gnome-mag.
2153 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2155 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2156 busted AccessibleStateSet_compare. Removed redundant casts.
2158 * cspi/spi-action.c: Removed redundant casts.
2160 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2162 * cspi/spi_component.c: Fixed typos and casting error.
2164 * cspi/spi_editabletext.c: Removed redundant casts.
2166 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2168 * cspi/spi_hypertext.c: Eliminated redundant casts.
2170 * cspi/spi_image.c: Eliminated redundant casts.
2172 * cspi/spi_registry.c: Eliminated redundant casts.
2173 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2174 * cspi/spi_selection.c: Removed redundant casts.
2175 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2176 handling. Screen geometry and text offsets were being returned as 0
2177 on error which is technically valid-- changed these to return -1.
2178 Added marshaller for text boundary types to fix bug with boundary
2179 types being passed incorrectly to atk.
2181 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2184 * cspi/spi_registry.c:
2185 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2186 which was uncovered by the recent key changes.
2188 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2190 * test/event-listener-test.c:
2192 Added new test, "event-listener-test";
2193 this code does two things; it benchmarks traversal time
2194 for the accessible hierarchy for the first running accessible
2195 app, and it connects listeners for all supported event types.
2196 It is thus useful as an example event listener and for
2197 diagnostics/debugging of event generation.
2199 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2202 Removed unnecessary dependency on libutil.
2205 Revved micro version: 0.13.1
2207 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2210 Removed util/Makefile from targets.
2213 Removed util subdir from SUBDIRS (temporarily,
2214 pending removal of magnifier-only code
2218 #ifdef-ed out magnifier dependencies, since
2219 magnifier IDL, headers, and binary now live in
2220 module gnome-mag and we don't want at-spi to depend
2221 on gnome-mag. A magnifier demo which can run alongside
2222 simple-at is forthcoming in the gnome-mag module.
2224 NOTE: Split magnifier binary, IDL, and magnification
2225 activation code from at-spi into module gnome-mag.
2227 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2229 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2230 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2232 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2235 Revved to version 0.13.0
2237 * idl/Accessibility_Registry.idl:
2238 Changed definition of KeySet from sequence of longs to sequence of
2239 KeyDefinitions, and added KeyDefinition struct.
2240 Required for fix to bug 80616.
2242 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2243 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2244 to use new definition (see above).
2246 * registryd/deviceeventcontroller.c: handle_keygrab(),
2247 spi_keyset_contains_key():
2248 Changed to make use of new struct; this allows matching based on
2249 string key-name, for instance "Tab". This also allows matching of
2250 composed characters, non-alphanumeric characters in a way that
2251 doesn't involve dependencies on X keysym codes directly, etc.
2253 * test/key-listener-test.c:
2254 Added test for Alt-Tab key using "string" specification of keyset,
2255 and modified one of the tests to use a keycode-based keyset.
2256 Thus this test both tests and demonstrates the creation and use of
2257 keysets of three forms: specified via keycode array,
2258 keysym array, and string array. (The string case only contains a
2259 single string, i.e. a string array of length 1).
2262 Turned on PRINT_TREE option by default. Also fixed a
2263 string-freeing bug in the PRINT_TREE code.
2264 Added a listener to window:minimize events.
2266 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2268 * atk-bridge/bridge.c:
2269 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2270 for window:activate and window:deactiveate
2271 (atk_bridge_property_event_listener atk_bridge_signal_listener
2272 atk_bridge_window_event_listener) Tidy debug code
2274 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2276 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2277 Fixed handling for NULL return value from ATK.
2279 * libspi/action.c libspi/component.c libspi/editabletext.
2280 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2281 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2282 Removed redundant casts.
2284 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2285 Fixed off by one bug.
2287 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2288 function not present in idl)
2290 2002-05-02 jacob berkman <jacob@ximian.com>
2292 * atk-bridge/Makefile.am: make atk-bridge a real module
2294 2002-04-26 Radek Doulik <rodo@ximian.com>
2296 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2297 atk_state_types table
2299 2002-04-22 jacob berkman <jacob@ximian.com>
2302 * libspi/Makefile.am: add deps on the built files to help
2303 automake, and don't version the ORBit typelib
2305 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2307 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2308 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2309 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2310 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2311 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2312 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2313 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2314 libspi/accessible.h libspi/accessible.h libspi/base.h
2315 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2316 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2317 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2318 libspi/spi-private.h libspi/statetset.h libspi/table.h
2319 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2320 util/mag_client.h util/mag_control.c util/mag_image.c
2321 util/mag_image.h util/magnifier.c util/magnifier.h:
2322 Add missing file headers; standardize existing ones
2324 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2326 * atk-bridge/bridge.c: Added window event support.
2328 2002-04-18 Michael Meeks <michael@ximian.com>
2330 * libspi/relation.c (impl_getNTargets): impl.
2331 (impl_getTarget): impl.
2333 * libspi/Makefile.am: fix stateset install.
2335 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2338 Started putting useful info in this file.
2340 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2342 * atk-bridge/bridge.c:
2343 Propagate state-changed notifications to ATs
2345 * cspi/spi_registry.c: update docs to reflect actual behavior of
2346 state-change events.
2348 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2351 Incremented version to 0.12.1
2353 * util/mag_client.h:
2354 Add missing declaration for magnifier_exit,
2355 used by mag_control.c - Forte compiler didn't like
2356 the implicit redeclaration of the function :-(
2359 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2362 Revved version to 0.12 due to API change (see below).
2364 * cspi/spi-roletypes.h:
2365 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2366 definition from the inline docs, and added docs
2367 for SPI_ROLE_LAST_DEFINED.
2370 * cspi/spi_streamablecontent.c:
2371 Added missing seek_type parameter to
2372 (so far unused) method,
2373 AccessibleStreamableContent_seek().
2374 [ RT approval JodyG. ]
2377 Fixed docs for SPI_createAccessibleKeystrokeListener.
2379 * cspi/spi_registry.c:
2380 Fixed docs for SPI_KEYSET_ALL_KEYS.
2382 * docs/reference/cspi/at-spi-cspi-sections.txt:
2383 Added a number of missing APIs to SECTIONS.
2385 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2387 * registryd/Makefile.am:
2389 * cspi/bonobo/Makefile.am:
2390 Add $(X_LIBS) to makefiles.
2392 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2395 Revved version to 0.11.
2397 * libspi/component.c:
2398 Added implementation for grabFocus.
2400 * idl/Accessibility_Component.idl
2401 (Accessibility_Component_grabFocus):
2402 Made this method return boolean to indicate success or failure, to
2403 be consistent with cspi and the corresponding ATK method.
2405 * idl/Accessibility_Selection.idl
2406 (Accessibility_Selection_selectAll) :
2407 Made these methods return boolean to indicate success or
2408 failure, to be consistent with cspi and the corresponding ATK methods.
2410 * idl/Accessibility_EditableText.idl
2411 (Accessibility_EditableText_setTextContents,
2412 Accessibility_EditableText_insertText,
2413 Accessibility_EditableText_cutText,
2414 Accessibility_EditableText_deleteText,
2415 Accessibility_EditableText_pasteText):
2416 Made these methods return boolean to indicate
2419 * cspi/spi_editabletext.c:
2420 Made these methods return booleans.
2422 * libspi/selection.c:
2423 * libspi/component.c:
2424 * libspi/editabletext.c:
2425 Connected the boolean returns from ATK
2426 to the server-side code referenced above.
2428 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2430 * idl/Accessibility_Table.idl: Added missing methods,
2431 Accessibility_Table_addRowSelection,
2432 Accessibility_Table_addColumnSelection,
2433 Accessibility_Table_removeRowSelection,
2434 Accessibility_Table_removeColumnSelection.
2437 Added C wrappers for above IDL:
2438 AccessibleTable_addRowSelection,
2439 AccessibleTable_addColumnSelection,
2440 AccessibleTable_removeRowSelection,
2441 AccessibleTable_removeColumnSelection.
2444 Added server-side implementation code for IDL above, connecting
2445 to pre-existing ATK api.
2447 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2449 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2451 * libspi/accessible.c: Added implementation fo
2452 Accessibility_Accessible_get_state.
2454 * libspi/libspi.h: Added stateset.h to the list of includes.
2456 * libspi/stateset.c: Fixed broken implementation.
2458 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2461 Added implementation code for Accessibility_Magnifier_exit ().
2463 * util/mag_control.c:
2464 Added test code for above method; you can
2465 now kill an existing magnifier via
2466 ./mag_control q, from the util directory.
2468 * test/key-listener-test.c:
2470 Added a new test, for our key listener API.
2472 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2474 * test/app.c, test/keysynth-demo.c:
2476 Replace use of snprintf with g_snprintf.
2477 (fix for bugzilla 78249)
2479 2002-03-27 Michael Meeks <michael@ximian.com>
2483 * util/Makefile.am (INCLUDES): fix.
2484 (DONT_DIST_SOURCE): don't distribute the
2487 * libspi/Makefile.am (dist-hook): ditto.
2489 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2491 * libspi/hypertext.c:
2492 Fix warnings when yelp is used with atk-bridge
2494 2002-03-21 Michael Meeks <michael@ximian.com>
2496 * libspi/application.c (spi_application_new):
2497 use spi_accessible_construct so we use the AtkObject
2500 2002-03-19 Michael Meeks <michael@ximian.com>
2502 * registryd/registry.c (desktop_remove_application),
2503 (desktop_add_application): clean coding style.
2505 * registryd/desktop.c (spi_desktop_remove_application),
2506 (spi_desktop_add_application): kill re-enterency hazards.
2507 (spi_desktop_dispose): remove bogus redundant cast
2508 obscuring bug; fix bug too.
2509 (spi_desktop_init): make the desktop object immortal.
2511 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2514 Added a #define-guarded tree-traversal step
2515 when enumerating the apps (diagnostic tool).
2517 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2519 * idl/Accessibility_Role.idl:
2520 Added ROLE_DRAWING_AREA which seemed to be missing from the
2523 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2525 * cspi/spi-roletypes.h cspi/spi_accessible.c
2526 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2529 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2530 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2531 AT when applications are added and removed from the desktop. This
2532 reverts the previous broken implementation using the backing
2533 AtkObject for the SpiDesktop.
2535 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2537 * registryd/desktop.c: emit the "children-changed::add" and
2538 "children-changed::remove" signals on the backing ATK object for
2539 the desktop so AT can tell when applications are started and shut
2542 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2544 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2546 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2548 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2550 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2552 * cspi/state-types.h: synched with IDL and ATK
2554 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2556 * libspi/accessible.c
2557 (impl_accessibility_accessible_get_child_at_index):
2558 Change return value for g_return_if_fail ()
2559 to CORBA_OBJECT_NIL instead of "0" (!)
2561 * registryd/Makefile.am:
2562 * registryd/Accessibility_Register.server.in:
2563 Changed name of executable, "registryd",
2564 to something more informative:
2567 2002-03-13 Michael Meeks <michael@ximian.com>
2569 * atk-bridge/bridge.c (atk_bridge_init): don't register
2570 if we're in a bonobo-component, rather than a bonobo app.
2572 2002-03-13 Michael Meeks <michael@ximian.com>
2574 * atk-bridge/bridge.c (gtk_module_init): split
2575 out body to (atk_bridge_init): here, since otherwise
2576 we get symbol conflicts and oddness when invoked
2577 from (gnome_accessibility_module_init): here (upd.)
2579 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2582 New file. Explicitly allow "build sheriff" putbacks provided
2583 they are tested on Solaris.
2585 * docs/reference/cspi/Makefile.am:
2586 Added '-' to the "cp" command for index.sgml.
2587 ("patch by thomasvs, soon coming to a GUADEC near you")
2590 Incremented version number (0.9.0) for new release.
2591 Changed macro that checks for popt, to better detect
2592 obsolete versions of popt.
2595 Added X_LIBS to AC_SUBST, for applications
2596 that call Xlib API directly.
2599 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2602 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2605 Fix regression caused by hard-coding major
2606 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2609 * test/test-simple.c (test_editable_text),
2610 (test_test): revert previous change (error was
2611 a regression in gail which is now fixed).
2613 2002-03-04 Michael Meeks <michael@ximian.com>
2615 * test/test-simple.c (test_editable_text),
2616 (test_text): pass G_MAXINT instead of '-1' for
2617 whole string - is this a good thing !?
2619 * cspi/spi_accessible.c
2620 (Accessible_getRelationSet): fix crasher bug
2621 overwriting the end of the array.
2623 * test/test-simple.c (validate_accessible): free,
2624 not g_free returned relation set.
2626 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2628 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2629 implemented stateset support
2631 * idl/Accessibility_State.idl: Made necessary changes to
2632 the IDL to support state sets.
2634 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2636 * registryd/deviceeventcontroller.c:
2637 Added implementation for generateMouseEvent.
2639 * cspi/spi_registry.c:
2640 Connected new implementation for generateMouseEvent
2643 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2646 Incremented revision (but no change in public API
2647 outside of 'utils', which are not installed public yet.)
2649 * libspi/component.c:
2650 Changed to use atk_component API for layers and
2651 mdi_zorder, instead of deprecated atk_object API.
2653 Magnification Utility Enhancements:
2656 Added implementation of createZoomRegion, clearAllZoomRegions,
2657 resizeZoomRegion. Added new commandline argument
2658 "--no-initial-region". Note that clearAllZoomRegions doesn't
2659 unmap the old '0' region as it should (yet), and the other
2660 methods only work when creating/resizing a single region,
2661 which is "region 0".
2662 (Code for multiple region support will be added later.)
2665 Now we raise the magnifier window each time it's refreshed;
2666 this will help keep it on top.
2668 * util/mag_client.h:
2669 Added simple wrappers for above, used by mag_control.
2670 For general use, it's recommended to use the bonobo magnifier
2671 control API directly instead of using these wrappers.
2674 Moved ZoomRegionData from magnifier.c to this file.
2676 * util/mag_control.c:
2677 Added some code to exercise new IDL implementations.
2679 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2681 * libspi/text.c: Provide implementation for getAttributes.
2683 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2686 Incremented revision.
2688 * test/test-simple.c:
2689 Replaced use of deprecated g_main_iteration with
2690 g_main_context_iteration.
2692 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2695 Incremented revision for desktop alpha 2.
2697 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2699 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2702 * test/simple-at.c: include netinet/in.h.
2704 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2706 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2707 use NULL, not CORBA_OBJECT_NIL.
2709 * libspi/accessible.c:
2710 (impl_accessibility_accessible_get_relation_set):
2711 allocate the sequence correctly.
2713 * libspi/remoteobject.h: kill spi_remote_object_new.
2715 * test/test-simple.c: (validate_accessible): add code
2716 to test relation sets, now all we need is to figure
2717 out how to excercise this code path :/
2719 2002-01-18 Michael Meeks <michael@ximian.com>
2721 * test/test-simple.c
2722 (key_listener_cb): consume the key.
2723 (test_keylisteners): update.
2724 (main): wait for any pending unrefs on events.
2726 * registryd/deviceeventcontroller.c
2727 (spi_controller_update_key_grabs): only re-issue the
2728 grab on a key release.
2729 (spi_device_event_controller_forward_key_event):
2730 refresh the keygrabs before we notify the listeners,
2731 to reduce the X ungrab / re-grab race.
2732 (spi_controller_register_with_devices): remove
2733 XSelectInput - we do that with the gdk_window_ call.
2734 (_spi_controller_device_error_handler): return a value.
2735 s/GDK_DISPLAY/spi_get_display/
2737 2002-01-17 Michael Meeks <michael@ximian.com>
2739 * registryd/deviceeventcontroller.c
2740 (_deregister_keygrab): don't blow out the later
2743 * test/test-simple.c (test_keylisteners): do a
2744 more intelligent validation.
2746 2002-01-14 Michael Meeks <michael@ximian.com>
2748 * atk-bridge/bridge.c
2749 (gnome_accessibility_module_init),
2750 (gnome_accessibility_module_shutdown): impl.
2751 (gtk_module_init): protect vs. double inits.
2752 (add_signal_listener): impl.
2753 (spi_atk_bridge_state_event_listener): kill
2754 (deregister_application): split out of
2755 (spi_atk_bridge_exit_func): here.
2757 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2760 Added caret tracking when using magnifier, and
2761 now use text bounds for focus tracking of text elements, rather than
2762 the component bounds - this is helpful for short text fields in long
2763 table cells, at high magnification.
2765 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2767 * registryd/deviceeventcontroller.c:
2768 Regression fix for keylistener de-registration; global keygrabs
2769 were not being released when deregisterKeystrokeListener was
2770 called in cspi, since
2771 Accessibility_DeviceEventController_deregisterKeystrokeListener
2772 was called with a zero-length keyset. That is because the cspi
2773 method, SPI_deregisterKeystrokeListener, does not take a keyset
2774 parameter but instead should remove all the key grabs held be a
2776 The code in impl_deregister_keystroke_listener was changed to copy
2777 the keylist from the listener instance previously registered with
2778 the DeviceEventController before releasing the grabs.
2780 * registryd/registry.c:
2781 * registryd/deviceeventcontroller.c:
2782 * libspi/spi-private.h:
2784 Changed spelling of "re-enterant" to "re-entrant" globally.
2786 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2788 * test/test-simple.c:
2789 Changed key listeners test - the test was slightly mis-using the
2790 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2791 It now uses '=' as the key event listened to and generated,
2792 relying on a keysym match rather than assuming that keycode 33
2793 is always equal to keysym '!'.
2795 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2798 Changed simple-at to use a specific keyset, rather than
2799 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2800 manager, desktop, etc.
2802 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2804 * registryd/deviceeventcontroller.c:
2805 Replaced standard X error handler with a special handler that
2806 is non-fatal for failed keygrabs. This works around
2807 problems with keygrab clashes sometimes observed on
2809 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2810 mouse handling code as yet).
2812 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2815 Incremented revision for desktop alpha release.
2818 Fixed a couple of the more glaring errors (still not
2821 2002-01-11 Michael Meeks <michael@ximian.com>
2823 * registryd/deviceeventcontroller.c
2824 (spi_device_event_controller_forward_key_event): kill
2825 XUngrabKey / XKeyGrab race.
2826 (spi_controller_grab_keyboard): rename to
2827 (spi_controller_update_key_grabs): this, and deal
2828 with incremental adding / removing grabs more
2830 (_register_keygrab): ensure we're not pending a remove.
2831 (spi_grab_mask_free): impl.
2832 (spi_controller_register_global_keygrabs): split out
2834 (handle_keygrab): impl.
2835 (_deregister_keygrab): impl.
2836 (spi_controller_deregister_global_keygrabs): impl.
2837 (spi_controller_update_key_grabs): re-issue the grab if
2838 we just recieved a notification.
2840 * test/test-simple.c (key_listener_cb): remove debug.
2842 * registryd/deviceeventcontroller.c
2843 (spi_controller_register_device_listener): after
2844 registering a global keygrab, actualy register it !
2845 don't wait for a timeout; doh !
2847 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2848 to make it more readable / manipulable.
2849 s/grabmask/grab_mask/ s/refcount/ref_count/
2850 s/keyval/key_val/ s/modmask/mod_mask
2852 2002-01-08 Michael Meeks <michael@ximian.com>
2854 * registryd/deviceeventcontroller.c
2855 (spi_controller_register_with_devices): use gdk calls to
2857 (global_filter_fn): implement the filter.
2858 (spi_device_event_controller_check_key_event): rename to
2859 (spi_device_event_controller_forward_key_event): this & upd.
2860 (spi_get_display): replace with GDK_DISPLAY.
2862 * registryd/deviceeventcontroller.c
2863 (spi_controller_deregister_device_listener): unroll into
2864 (impl_deregister_keystroke_listener): here to simplify.
2865 (spi_controller_register_global_keygrabs): split cut and
2866 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2867 (spi_controller_deregister_device_listener): remove.
2868 (impl_register_mouse_listener): remove, no mouse listener
2869 support in at-spi-1.0
2871 * registryd/registry.c
2872 (_device_event_controller_hook): kill.
2873 (spi_registry_init): upd.
2875 * registryd/deviceeventcontroller.c
2876 (spi_device_event_controller_class_init): upd.
2877 (spi_check_key_event): merge into.
2878 (spi_device_event_controller_check_key_event):
2879 here and kill strange static ev init, don't leak
2880 the x_event - nor dynamicaly allocate it.
2882 * registryd/registry-main.c (main): re-direct
2883 timeout to remove strange vtable mess.
2885 * registryd/deviceeventcontroller.c
2886 (remove_listener_cb): impl.
2887 (spi_controller_deregister_device_listener):
2888 fix re-enterancy hazard.
2890 2002-01-07 Michael Meeks <michael@ximian.com>
2892 * registryd/deviceeventcontroller.c
2893 (spi_device_event_controller_new): upd.
2894 (impl_notify_listeners_sync): upd. debug.
2895 (spi_notify_keylisteners): fix re-enterancy hazards,
2896 prettify, remove O(n*n) iteration.
2897 (spi_controller_grab_keyboard): fix iteration.
2898 (spi_check_key_event): re-format to suit coding style.
2899 Clean all the warnings - we're warning free.
2901 * registryd/deviceeventcontroller.h:
2902 * registryd/registry.h: make mutualy referential with
2903 typesafe forward references instead of (!) void pointer
2906 2002-01-11 Michael Meeks <michael@ximian.com>
2908 * cspi/spi_accessible.c (role_names): add a role name
2909 to sync this array with the enum; and make the regression
2912 2002-01-10 Michael Meeks <michael@ximian.com>
2914 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2915 allow expansion of enumeration & kill warning.
2917 * test/test-simple.c (key_listener_cb): impl.
2918 (test_keylisteners): impl.
2920 * cspi/spi-listener.h: make listener signatures const
2921 on the provided (const) events.
2923 * test/keysynth-demo.c: upd. to const events.
2925 * test/simple-at.c: ditto.
2927 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2930 Rev the version to 0.5 (the previous tarball was named 0.4,
2931 even though the micro number was 3), so we need to rev upwards
2932 again for beta2/"desktop-alpha"
2935 Checked in a demo script, which requires editing before use!
2936 Proceed with caution.
2939 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2941 * cspi/spi_accessible.c:
2942 Add a couple of missing enum initializations, and fix some enum
2945 * cspi/spi_registry.c:
2946 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2948 * docs/reference/cspi/at-spi-cspi-sections.txt:
2949 Remove/fix a couple of broken document references.
2952 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2953 as Alt-Control to listen for commands, since on some systems
2954 Control-Alt may already be grabbed.
2956 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2959 Update version number to 0.4 for Beta2.
2961 * libspi/accessible.c, libspi/accessible.h:
2962 Expose spi_accessible_construct, to enable libgail-gnome
2963 construction from spi_accessible subtype.
2965 * utils/magnifier.c:
2966 Workaround for bug in some non-gnome-compliant window managers
2967 which made magnifier resize improperly.
2969 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2971 * libspi/accessible.c: (spi_accessible_new) :
2972 Move the test for SPI_IS_REMOTE_OBJECT to
2973 spi_accessible_new_return, fixing a bug and compile time warning.
2975 2002-01-08 Michael Meeks <michael@ximian.com>
2977 * registryd/registry.c (parse_event_type): remove strndup.
2979 * libspi/Makefile.am (libspi_la_SOURCES): remove
2980 sources already included in the headers section.
2982 * libspi/util.c: add.
2984 * libspi/spi-private.h: add.
2986 * registryd/registry.c: update to moved list iterators.
2988 2002-01-05 Michael Meeks <michael@ximian.com>
2990 * test/simple-at.c (main): upd. auto-module set to atk-bridge
2992 * test/test-simple.c (main): ditto.
2994 2002-01-04 Michael Meeks <michael@ximian.com>
2996 * libspi/accessible.c (spi_accessible_new): remove 2nd,
2997 redundant construct.
2999 * registryd/registry.c
3000 (get_listener_list): impl.
3001 (impl_accessibility_registry_register_global_event_listener):
3002 re-impl. to simplify using ~, remove dodgy const cast off.
3003 (parse_event_type): constify.
3004 (impl_accessibility_registry_deregister_global_event_listener_all):
3005 re-write, more efficiency and simplicity, kill re-enterancy
3007 (compare_listener_corbaref, compare_corba_objects),
3008 (compare_listener_quarks): define out.
3009 (impl_accessibility_registry_deregister_global_event_listener):
3010 re-write for effiency, and nail re-enterancy hazard.
3011 (impl_accessibility_registry_get_desktop_list): impl.
3012 (re_enterant_list_delete_link): impl.
3013 (re_enterant_list_foreach): impl.
3014 (remove_listener_cb): impl.
3015 (_registry_notify_listeners): kill.
3016 (notify_listeners_cb): impl.
3018 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
3019 (SPI_getDesktopList): impl.
3021 * test/test-simple.c (test_desktop): test the methods.
3023 2002-01-03 Michael Meeks <michael@ximian.com>
3025 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
3026 keystrings since we free them
3027 (SPI_freeAccessibleKeySet): in here.
3029 * libspi/accessible.c (spi_accessible_new): kill warning,
3030 wonder what is going on with the constructor here.
3032 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3034 * libspi/accessible.c (spi_accessible_new ()) :
3035 Added check to see if AtkObject is an SpiRemoteObject before
3036 creating an SpiAccessible.
3038 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3040 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3041 Enable keygrabs using the Control modifier, now that they are
3042 working properly (they were previously disabled).
3045 Change the command keygrab for this demo to "Control+Alt", so as
3046 to conflict with fewer other key commands on the system; this
3047 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3049 Removed a pointlessly-chatty keylistener for unshifted keys
3050 (shifted keys are still reported).
3052 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3054 * libspi/remoteobject.h:
3055 * libspi/remoteobject.c:
3056 Added definitions for special AtkObject subtype, required for
3057 support of remote components (specifically, used by BonoboControl
3058 accessibility implementation).
3060 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3062 * cspi/spi.h: synched relation types with ATK
3064 * cspi/spi_accessible.c: Added implementations of
3065 AcccessibleRelation_* methods
3067 * idl/Accessibility_Relation.idl: added getRelationTypeName
3068 method. Synched known relation types with ATK. Allowed for
3069 relation type extension with the RELATION_EXTENDED type.
3071 * libspi/relation.c: Provided implementations for
3072 AccessibleRelation methods.
3074 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3076 API tweaks for today's API 'freeze'.
3079 Added placeholder functions to allow future compatible expansion
3080 of the IDL interfaces.
3082 * idl/Accessibility_Registry.idl:
3083 Changed generateKeyEvent to generateKeyboardEvent. Changed
3084 signature of this method to accept an optional keystring in
3085 parameter (for complex text input synthesis) and changed use of
3086 simple 'boolean' parameter in registerKeystrokeListener to a
3087 struct, EventListenerMode.
3089 * cspi/spi_accessible.c:
3091 * cspi/spi_streamablecontent.c:
3092 Added references to AccessibleStreamableContent interface, and
3093 definition and implementation of AccessibleStreamableContent
3096 * cspi/spi_registry.c:
3098 Changed generateKeyEvent API to generateKeyboardEvent,
3099 taking a new (optional) keystring parameter to support complex
3104 Renamed directory (to better reflect its actual purpose, bridging
3105 from at-spi to ATK). The .so module is also now named
3108 * idl/Accessibility_Hypertext.idl:
3109 * libspi/accessible.c:
3110 * libspi/hypertext.h:
3111 * libspi/hypertext.c:
3112 Changed Accessibility_Hypertext to *not* derive from
3115 * cspi/spi_registry.c:
3116 Added list of legal event type names for 'window' events, which
3117 completes the registry event API.
3119 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3121 * at-bridge/bridge.c: Added registration for separate
3122 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3123 signals. If either of the first two parameters to the generic
3124 bridge signal handler are ints, they are passed on as event
3125 details. This allows an AT to determine what text was inserted.
3127 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3129 * registryd/deviceeventcontroller.c:
3130 Fixed regressions in generateKeyEvent caused by the removal of
3131 gdk_init from registryd; we now use pure X calls to connect to the
3132 display, which makes sense because deviceeventcontroller already
3133 uses a fair bit of X API (should eventually be migrated to a
3134 'portability layer').
3136 * registryd/desktop.c:
3137 Fixed minor regression in spi_desktop_init, changed the way the
3138 desktop name is being set to work with new spi_base API
3139 (gobject-based, rather than AtkObject-based).
3141 * registryd/Makefile.am:
3142 Minor revision of makefile to use XTST_LIBS variable rather than
3143 hard-wiring the Xtst LD_ADD element.
3145 * test/keysynth-demo.c:
3146 Tweaked an output message; added initialization of the
3147 'keystrings' member of the "switch listener" key_set.
3149 * libspi/relation.c:
3150 Squashed compile-time warning.
3152 * libspi/accessible.c:
3153 Cosmetic and formatting fixes, renamed a static method.
3155 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3157 * libspi/accessible.c
3159 * libspi/application.c
3162 * libspi/component.c
3163 * libspi/editabletext.c
3164 * libspi/hyperlink.c
3165 * libspi/hypertext.c
3167 * libspi/selection.c
3171 * registryd/desktop.c:
3172 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3174 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3176 * idl/Accessibility_Registry.idl:
3177 Added boolean member 'is_text' to DeviceEvent. This is for the
3178 use of key events, and helps prevent ambiguity between composed
3179 key strings and keysym names, since both may potentially be
3180 returned in the 'event_string' member.
3182 * at-bridge/bridge.c:
3183 * registryd/deviceeventcontroller.c:
3184 Use the 'is_text' member when notifying device event listeners.
3185 Knon issue: composed characters are not dealt with correctly by
3186 the global key listener implementation yet.
3188 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3190 * at-bridge/bridge.c:
3191 Namespaced local static methods to spi_atk_bridge_* where
3192 previously named bridge_*, and spi_* elsewhere.
3194 * at-bridge/bridge.c:
3195 * cspi/bonobo/cspi-bonobo-listener.c:
3196 Added demarshalling/conversion for string member of
3197 Accessibility_DeviceEvent to AccessibleKeystroke.
3199 * registryd/deviceeventcontroller.c:
3200 Added code to fill the Accessibility_DeviceEvent key string value
3201 member for global key events (i.e. from XGrabKey), to match
3202 behavior of Accessibility_DeviceEvent from the toolkit key events
3203 from the bridge. Fixed timestamp in global key event notifications.
3206 Added printout of key event's string value to
3207 report_ordinary_key_event, for demo/debugging purposes.
3209 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3211 * idl/Accessibility_Registry.idl:
3212 Removed Accessibility_KeyStroke structure in favor of generic
3213 Accessibility_DeviceEvent structure.
3214 Changed Accessibility_ControllerEventMask from a struct to an
3217 * at-bridge/bridge.c:
3218 Changed APIs to use DeviceEvent structure as above, and removed
3219 bogus casting between these event structures.
3221 * cspi/spi-listener.h:
3222 Added keystring member of AccessibleKeystroke structure, to enable
3223 matching on event "names" rather than only hardware codes and
3227 Added keystrings member of AccessibleKeySet struct, to allow
3228 matching on event names (as above).
3229 Added declarations for SPI_createAccessibleKeySet and
3230 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3231 event modmasks directly as unsigned ints rather than structs with
3232 refcounts, in the DeviceEventController methods.
3234 * cspi/spi_registry.c:
3235 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3237 * cspi/spi-roletypes.h:
3238 Added documentation of newly added SPI Roles.
3240 * cspi/bonobo/cspi-bonobo-listener.c:
3241 Changes in support of API changes above.
3243 * libspi/accessible.c:
3244 Converted APIs to use DeviceEvent structure (see IDL changes
3247 * registryd/deviceeventcontroller.c:
3248 Added DEControllerGrabMask structure to track keygrabs not only by
3249 modmask but by keyset as well; this allows us to do "global"
3250 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3251 grabbing on AnyKey and then filtering after-the-fact.
3252 Bugfixes for event filtration mean that we don't get false matches
3253 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3255 * registryd/deviceeventcontroller.c:
3256 Namespaced a number of static methods to use spi_ prefix. Major
3257 revision to internals of global (i.e. X) key grabs.
3259 * registryd/deviceeventcontroller.h:
3260 Removed keymask_list and added keygrabs_list to
3261 SpiDeviceEventController struct.
3264 Added use of SPI_createAccessibleKeySet API when creating a
3265 listener for only one key. Attach a listener to "shift spacebar
3266 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3267 X key event names to SPI key event names, so that listeners are
3268 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3270 * test/keysynth-demo.c:
3271 Changed (incorrect) use of X key event names (KeyPressed,
3272 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3275 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3277 * libspi/accessible.c:
3278 Convert all AtkRole enumerations to Accessibility_Role enums when
3279 getting a role from an AtkObject.
3281 * cspi/spi_accessible.c:
3282 Complete the conversion of Accessibility_Role enums at runtime to
3283 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3284 role enums correctly match those given in spi-roletypes.h.
3285 Re-synchronize the local names list for AccessibleRole_getName ().
3286 AccessibleRole_getName is now deprecated, since it duplicates the
3287 more reliable Accessible_getRoleName.
3288 Added some role types from Accessibility_Role.idl.
3290 * idl/Accessibility_Role.idl:
3291 Added some role types used by AtkRole.
3293 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3296 * cspi/spi_registry.c:
3298 * cspi/cspi-bonobo-listener.c:
3299 Namespaced all methods that did not begin with an "SPI_" or
3300 "Accessible" prefix to "SPI_".
3303 Homogenized internal function namespace to "cspi_" for statics.
3306 Patched tests to use the new CSPI API.
3308 * docs/reference/cspi/at-spi-cspi-sections.txt:
3309 Updated docs to reflect namespace changes, and added a number of
3310 methods to the documentation.
3312 * registryd/registry.c:
3313 Changed use of strings and string hashes in listener event
3314 matching and parse_event_string to use GQuark, which is guaranteed
3317 * registryd/registry.h:
3318 Squashed annoying warning.
3320 * idl/Accessibility_Role.idl:
3321 Extended range of available Accessibility_Role values.
3323 * cspi/spi_accessible.c:
3324 Re-ordered role names.
3326 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3328 * idl/Accessibility_Value.idl:
3329 Revert use of union back to CORBA_double, since the double type is
3330 more efficient and can contain the other types without loss of
3333 * idl/Accessibility_Accessible.idl:
3334 Added method Accessibility:Accessible:getRoleName, to complement
3335 Accessibility:Accessible:getRole.
3337 * cspi/spi_accessible.c:
3339 Added C binding for above, Accessible_getRoleName (), and changed
3340 signature of Accessible_getRole () to return an AccessibleRole.
3342 * cspi/spi-roletypes.h:
3343 Changed AccessibleRole_getName to return a char * instead of a
3344 const char *. This method is now at least temporarily deprecated
3345 in favor of asking Accessibles for their RoleNames directly.
3348 Revert to match Accessibility_Value.idl;
3352 Change signature of AccessibleValue methods to use double rather
3356 * cspi/spi_accessible.c:
3357 Changed Accessible_getRole to return an AccessibleRole enum rather
3358 than a UTF-8 string. The UTF-8 string can still be obtained via
3359 AccessibleRole_getName ().
3361 * test/test-simple.c:
3362 Add test_action. Small fixup to match API change to Accessible_getRole.
3365 Bugfix for get_action_from_servant ().
3367 2001-12-11 Michael Meeks <michael@ximian.com>
3369 * libspi/libspi.h: remove registry.h and
3370 desktop.h, deviceeventcontroller.h
3372 * libspi/Makefile.am: remove registry.[ch],
3373 desktop.[ch], deviceeventcontroller.[ch]
3375 * registryd/Makefile.am: add registry.[ch],
3376 desktop.[ch], rename registryd.c to registry-main.c.
3377 add deviceeventcontroller.[ch]
3379 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3382 Replace setenv() call with putenv ().
3384 * libspi/component.c:
3385 Bugfix in AccessibleComponent_getExtents (),
3388 2001-12-11 Michael Meeks <michael@ximian.com>
3390 * libspi/image.c (impl_getImageExtents): impl.
3391 (spi_image_class_init): upd.
3394 (AccessibleImage_getImageDescription): fix daft bug
3397 * test/test-simple.c (global_listener_cb): update
3398 to only quit if not --poke
3399 (main): catch --poke.
3400 (validate_accessible): upd. dumping, call test_image
3403 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3406 * idl/Accessibility.idl: update all IDL includes.
3408 * idl/*.idl - rename to namespace - this sucks, blame
3409 mjs' bad decision for oafd.
3411 * test/test-simple.c (create_test_window): add more tests.
3412 (create_tree): split this out.
3413 (validate_accessible): bugfix.
3415 2001-12-11 Michael Meeks <michael@ximian.com>
3417 * cspi/bonobo/cspi-bonobo-listener.c:
3418 (cspi_kestroke_listener_unref),
3419 (cspi_event_listener_unref): impl. undoing previous
3420 homenous environment - for Bill.
3422 * cspi/spi_table.c (long_seq_to_array): use
3425 * cspi/spi_main.c: split out all bonoboish bits into
3428 * cspi/spi-impl.h: upd. typedefs.
3430 * cspi/spi_registry.c: update to lowlevel API,
3431 return booleans to indicate success in some places.
3433 * cspi/spi_event.c: update to lowlevel API.
3435 * cspi/bonobo/Makefile.am: add.
3437 * cspi/bonobo/cspi-lowlevel.h: add
3439 * cspi/bonobo/cspi-bonobo.c: add
3441 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3443 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3444 (SUBDIRS): add bonobo, link in the libs.
3446 * cspi/spi-util.c: kill this file.
3448 * TODO: merge in my bits.
3450 2001-12-11 Michael Meeks <michael@ximian.com>
3452 * test/test-simple.c (test_value, test_table, main):
3453 remove unused variables causing warnings.
3455 * configure.in: cleanup checks - require gail.
3457 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3460 Changed Value interface to use SValue (scalars) rather than
3461 assuming all values are floats. This allows floats, doubles,
3462 longs, shorts, and unsigned values to be manipulated.
3463 Introduced Accessibility:SValue union.
3466 Updated to use new API above, and to work correctly with GValues
3467 of different types in AtkValue.
3470 Updated to use new API above. cspi's API is as yet unchanged.
3473 Updated the Value revision action item.
3475 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3477 * test/test-simple.c:
3478 Added test_table (GtkTreeView widget in test window to follow).
3479 Un-commented test_value, added GtkRange widget.
3480 Added GtkTreeView widget with GtkListStore. It passes regression
3481 test but leaks one SPI object for some reason.
3484 Fixed bug in impl__set_currentValue.
3486 2001-12-10 Michael Meeks <michael@ximian.com>
3488 * cspi/spi_text.c: audit for exception handling,
3489 tolerating NULL object references safely etc.
3491 * cspi/spi_value.c: ditto.
3493 * cspi/spi_table.c (AccessibleTable_getSummary),
3494 (AccessibleTable_getAccessibleAt),
3495 (AccessibleTable_getRowHeader),
3496 (AccessibleTable_getColumnHeader),
3497 (AccessibleTable_getCaption): fix bugs hidden by
3499 (long_seq_to_array): impl.
3500 (AccessibleTable_getSelectedRows),
3501 (AccessibleTable_getSelectedColumns): use it.
3503 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3506 Added a TODO list (rough and short for now).
3508 * cspi/spi_hyperlink.c:
3509 * cspi/spi_hypertext.c:
3510 Fixed macro name typos, and remove use of obsolete macro in
3511 AccessibleHyperlink_getLink.
3513 * cspi/spi_action.c:
3514 * cspi/spi_accessible.c:
3515 * cspi/spi_application.c:
3516 * cspi/spi_component.c:
3517 * cspi/spi_selection.c:
3520 Documentation fixes (removed return values from ref/unref methods).
3522 2001-12-10 Michael Meeks <michael@ximian.com>
3524 * cspi/spi_action.c: audit for exception handling,
3525 tolerating NULL object references safely etc.
3527 * cspi/spi_accessible.c: ditto.
3529 * cspi/spi_component.c: ditto.
3531 * cspi/spi_editabletext.c: ditto.
3533 * cspi/spi_hyperlink.c: ditto.
3535 * cspi/spi_hypertext.c: ditto.
3537 * cspi/spi_image.c: ditto.
3539 * cspi/spi_selection.c: ditto.
3541 2001-12-10 Michael Meeks <michael@ximian.com>
3543 * configure.in: use cspi/libspi.pc.in instead.
3545 * Makefile.am (pkgconfig_DATA): upd. to match.
3547 * test/simple-at.c (report_focus_event): kill hacks around
3548 bad return values, use putenv not setenv
3550 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3551 fire ChildGone - I killed it.
3553 * libspi/component.c
3554 (impl_accessibility_component_get_extents): remove
3557 * idl/Accessible.idl: kill ChildGone exception.
3559 * cspi/*.[ch]: kill int return from ref / unref.
3561 * cspi/spi_main.c (cspi_object_add_check): fold into
3562 (cspi_object_add): here.
3564 * cspi/spi_component.c (AccessibleComponent_getExtents):
3565 handle exceptions elegantly.
3567 * cspi/spi-private.h (cspi_check_ev_return),
3568 (cspi_return_if_fail): impl.
3570 * cspi/spi_accessible.c: use extensively.
3571 (AccessibleStateSet_equals): add direct compare check.
3573 * cspi/spi_selection.c: tolerate NULL objs, and check
3574 exceptions before return.
3576 * cspi/spi-util.c (cspi_warn_ev): rename to
3577 (cspi_check_ev): this & don't pass ev in; no point.
3579 2001-12-10 Michael Meeks <michael@ximian.com>
3581 * test/test-simple.c: use putenv not setenv
3582 (get_environment_vars): more chatty if you're not using
3585 * test/simple-at.c: do the setenv so more people see the
3588 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3590 * libspi/registry.c:
3591 Changed check of CORBA_environment on notification to be a warning
3592 instead of an error for the moment, since we can recover from this
3593 error when caused by a queued notification from a dead app.
3596 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3597 used by all current implementors of AtkValue), and coerce to
3598 CORBA_float. (Proper general case fix may require change to Value.idl).
3600 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3604 * cspi/spi_accessible.c:
3605 Documentation fixes: added user_data params to documentation for
3606 listeners and callbacks.
3608 * cspi/spi_accessible.c:
3609 Changed AccessibleStateSet_compare to return a
3610 StateSet rather than return the difference set into a third parameter.
3613 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3616 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3617 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3621 Remove subdirectory po from SUBDIRS for now.
3623 * at-bridge/bridge.c:
3624 Beefed up a couple of debug printouts.
3625 One-line fix for signal notification name formatting.
3627 * libspi/accessible.c:
3628 Added assertion to spi_accessible_new ().
3630 * libspi/application.c:
3631 Put #ifdef qualifiers around a printf.
3634 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3636 * registryd/Makefile.am:
3638 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3639 INTLTOOL_SERVER_RULE macro.
3642 Added an event listener for several ATK signals, for
3643 testing and debugging. Removed a few g_warnings.
3644 Added test output if focussed item implements the Value interface.
3646 * test/test-simple.c:
3647 Added test_value () function (known not to pass at the moment, so
3648 not actually called yet.
3650 2001-12-08 Michael Meeks <michael@ximian.com>
3652 * at-bridge/bridge.c (bridge_focus_tracker),
3653 (emit_eventv): fix the same ref. leak.
3654 (register_atk_event_listeners): don't leak.
3656 * cspi/spi-listener-impl.c (cspi_event): more
3657 protection from client code.
3659 * test/test-simple.c (test_desktop): unref the app.
3661 * test/Makefile.am: upd. TESTS.
3663 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3665 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3667 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3669 * cspi/spi_registry.c: constify in strings.
3670 (deregisterGlobalEventListenerAll): don't release the ref.
3672 * cspi/spi.h: start removing redundant / conflicting
3673 gtkdoc comments, making the API readable at a glance :-)
3675 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3677 * test/keysynth-demo.c (keysynth_exit, main): upd.
3679 * test/simple-at.c (main, simple_at_exit): upd.
3681 * test/test-simple.c (unutterable_horror): kill.
3682 (utterable_normal_derefs): kill.
3683 (main): upd & do a setenv before gtk_init, so that we
3684 can use memprof - and to save the pain of remembering
3685 this, if we're running under memprof - don't exit.
3687 * cspi/spi_main.c (SPI_exit): return exit status
3689 (SPI_event_quit): impl.
3690 (SPI_event_main): simplify.
3691 (cspi_is_gnome_app): kill.
3692 (SPI_init): kill isGNOMEapp arg.
3694 * at-bridge/bridge.c (register_atk_event_listeners):
3695 re-instate the unref.
3696 (bridge_exit_func): don't re-activate the registry,
3697 protect vs. theoretical re-entry, use the
3698 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3699 assert a clean shutdown - for regression tests.
3701 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3703 * configure.in: Comment out dummy i18n support for now,
3704 otherwise it fails to build.
3705 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3706 EXTRA_DIST. They are missing in tarball.
3708 2001-12-07 Michael Meeks <michael@ximian.com>
3710 * util/magnifier.c: kill bonobo activation reg. race.
3712 * libspi/component.c
3713 (impl_accessibility_component_get_extents): make it match
3716 * libspi/registry.c (_registry_notify_listeners):
3717 re-remove X headers & reconcile conflicts.
3718 (spi_listener_struct_free): bad conflict resolve.
3719 (impl_accessibility_registry_register_application):
3720 more bad merging fixed.
3721 (impl_accessibility_registry_deregister_application): ditto.
3722 (spi_registry_new): ditto.
3723 (spi_registry_init): don't have an applications field.
3725 [ merge fixups2 branch to here ]
3726 2001-12-07 Michael Meeks <michael@ximian.com>
3728 * test/simple-at.c (report_focus_event),
3729 (report_focussed_accessible): remove g_warning debug.
3731 2001-12-07 Michael Meeks <michael@ximian.com>
3733 * test/test-simple.c (validate_tree): comment out some checks.
3734 (test_desktop): app now not registered idly - horay.
3736 2001-12-07 Michael Meeks <michael@ximian.com>
3738 * cspi/spi_registry.c
3739 (registerAccessibleKeystrokeListener): clean, stop it leaking
3740 great swathes of memory, and device event controller references.
3741 ensure we always pass valid sequences.
3742 (deregisterAccessibleKeystrokeListener): ditto.
3743 (generateKeyEvent): upd.
3745 * at-bridge/bridge.c (bridge_key_listener): handle
3746 registry dead exception gracefully.
3747 (bridge_focus_tracker, emit_eventv): free ev.
3749 * test/simple-at.c (report_focus_event): fix polarity.
3751 * libspi/application.c (notify_listeners): kill the ev
3752 argument, and make sure we init the ev we use.
3753 (spi_application_object_event_listener): split out a chunk
3754 (get_atk_object_ref): here & fixup.
3755 (reverse_lookup_name_for_toolkit_event): make const.
3756 (spi_application_toolkit_event_listener): fixup, kill leaks
3759 * at-bridge/bridge.c (register_atk_event_listeners):
3760 don't unref the noop object - causes grief.
3762 * libspi/registry.c: remove the X headers.
3763 turn off the debug churn.
3765 * libspi/accessible.c (spi_accessible_new_return): only
3766 release the ref if we are supposed to [doh]
3768 * test/simple-at.c (report_button_press, report_focus_event):
3769 guard vs. unexpected exit.
3771 * at-bridge/bridge.c (gtk_module_init): prune printf.
3772 (bridge_exit_func): fix app unref.
3774 * libspi/Makefile.am: don't install registry or desktop.h
3776 * libspi/*.h: update includes.
3778 * libspi/application.h: don't include ourself, or
3779 other redundant headers.
3781 2001-12-06 Michael Meeks <michael@ximian.com>
3783 * libspi/accessible.c
3784 (get_accessible_from_servant): impl.
3785 Upd. all CORBA impl.s to use it killing cut and paste.
3787 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3789 (SPI_init): register atexit cleanup handler here.
3791 2001-12-06 Michael Meeks <michael@ximian.com>
3793 * at-bridge/bridge.c (gtk_module_init): g_error on
3794 activation exception
3796 2001-12-06 Michael Meeks <michael@ximian.com>
3798 * at-bridge/bridge.c (gtk_module_init): some sort of
3799 confusing merge clash - reverted.
3800 (bridge_idle_init): ditto.
3802 * test/test-simple.c (main, utterable_normal_derefs):
3803 merge from Bill - somehow not committed.
3805 2001-12-06 Michael Meeks <michael@ximian.com>
3807 * libspi/value.c (spi_value_class_init): upd.
3808 (spi_value_finalize): kill.
3810 * libspi/table.c (spi_table_finalize): kill.
3811 (spi_table_interface_new): upd.
3812 (spi_table_class_init): upd.
3813 (get_table_from_servant): impl.
3814 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3816 * libspi/selection.c (spi_selection_finalize): kill.
3817 (spi_selection_interface_new): upd.
3818 (spi_selection_class_init): upd.
3819 (get_selection_from_servant): impl.
3820 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3822 * libspi/relation.c (spi_relation_finalize): kill.
3823 (spi_relation_class_init, spi_relation_new): upd
3825 * libspi/image.c (spi_image_finalize): kill.
3826 (spi_image_class_init): upd.
3827 (spi_image_interface_new): upd.
3828 (get_image_from_servant): impl.
3829 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3831 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3832 (spi_hyperlink_finalize): kill.
3833 (spi_hyperlink_new): upd.
3834 (get_hyperlink_from_servant): impl.
3835 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3837 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3838 (spi_hypertext_finalize): kill.
3839 (spi_hypertext_class_init): upd.
3840 (get_hypertext_from_servant): impl.
3841 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3843 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3844 (spi_editable_text_interface_new): upd.
3845 (get_editable_text_from_servant): impl.
3846 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3848 * libspi/text.c (get_text_from_servant): impl.
3849 All impls - update to use it killing more cut and paste,
3850 also fix bad string returns on duff args ( a somewhat
3851 impossible case to handle - but hey ).
3852 (spi_text_construct): impl.
3853 (spi_text_interface_new): upd.
3854 (spi_text_object_finalize): kill.
3856 * libspi/component.c
3857 (accessibility_component_object_finalize): kill.
3858 (spi_component_class_init): upd.
3859 (get_component_from_servant): impl. helper to kill cut & paste.
3860 (impl_accessibility_component_contains):
3861 (impl_accessibility_component_get_accessible_at_point):
3862 (impl_accessibility_component_get_position):
3863 (impl_accessibility_component_get_extents):
3864 (impl_accessibility_component_get_mdi_z_order):
3865 (impl_accessibility_component_get_layer):
3866 (spi_component_interface_new): upd.
3868 * libspi/action.c (spi_action_finalize): kill.
3869 (spi_action_class_init): upd. inherit from SpiObject.
3870 (spi_action_interface_new): upd.
3871 (get_action_from_servant): impl. helper to reduce cut & paste.
3872 (impl_getKeyBinding, impl_getName, impl_doAction),
3873 (impl_getDescription): Use it everywhere.
3875 * cspi/spi_main.c (get_live_refs): a pointer hash.
3876 (spi_object_hash, spi_object_equal): comment out.
3877 There are issues with CORBA object hashing that need
3880 * libspi/application.c (spi_application_init),
3881 (spi_application_new): upd.
3883 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3884 (spi_accessible_class_init): upd.
3885 s/accessible/object/ in epv methods.
3887 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3889 * at-bridge/bridge.c:
3890 Reorder the bridge initialization into the bridge gtk_module_init,
3891 an immediate call to bridge_register_app, and an idle_add for
3892 register_atk_event_listeners (the only code that *must* wait until
3893 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3894 the activation, creates the application's Accessible object, and
3895 queues the bridge_idle_init function. Restored call to
3896 Accessibility_Registry_deregisterApplication().
3897 Prior to making this call we obtain a new reference to the
3898 registry, which is a temporary hack that helps us handle apps that
3899 shut down the bonobo mainloop before we get there.
3901 * libspi/registry.c:
3902 Fix string leakage in debug block, and don't segv if a an app
3903 dies before its event notifications have been propagated.
3906 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3907 as stopgap measure until we get proper exception handling when
3908 objects die during or before interrogation.
3912 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3913 Also changed default value of is_gnome_app to TRUE.
3916 * test/keysynth-demo.c:
3917 Changed use of SPI_init and SPI_event_main to reflect API change above.
3920 Made report_focus_event check the warning value from getName
3921 before reporting on focussed accessible; simplifies handling of
3922 notifications from dead objects.
3924 * test/test-simple.c: (Changes not in this patch since source is
3927 2001-12-05 Michael Meeks <michael@ximian.com>
3929 * registryd/registryd.c (main): protect against
3930 bonobo-activation startup race condition.
3932 * cspi/spi_main.c (cspi_object_add_check): cope
3933 with the exception elegantly.
3935 * idl/Accessible.idl: decl. ChildGone
3937 * libspi/desktop.c (spi_desktop_dispose): impl.
3938 (spi_desktop_class_init): upd.
3939 (spi_desktop_add_application),
3940 (spi_desktop_remove_application),
3941 (abnormal_application_termination): impl.
3942 (impl_desktop_get_child_at_index): re-impl.
3945 (impl_accessibility_registry_deregister_application),
3946 (impl_accessibility_registry_register_application):
3947 kill excessive debug clutter.
3949 * test/test-simple.c (test_misc): test some NULL
3950 tolerance. (main): upd.
3952 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3953 implements no interfaces - so let's not crash.
3955 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3957 * libspi/accessible.c (spi_accessible_new_return): impl.
3958 helper to calm the cut and paste, to cope with
3959 NULL AtkObjects effectively and efficiently, and to kill
3960 the referencing bugs.
3962 * libspi/table.c (impl_getAccessibleAt),
3963 (impl_getRowHeader, impl_getColumnHeader): upd.
3965 * libspi/hyperlink.c (impl_getObject): upd.
3967 * libspi/accessible.c
3968 (impl_accessibility_accessible_get_child_at_index): upd.
3970 * libspi/component.c
3971 (impl_accessibility_component_get_accessible_at_point): upd.
3973 * test/test-simple.c (test_editable_text, test_text): impl.
3976 * cspi/spi_editabletext.c
3977 (AccessibleEditableText_insertText): constify.
3979 * test/test-simple.c (focus_me): make more robust.
3981 * libspi/accessible.c: remove some printfs in methods that
3982 we test and work fine, so we can get a clean tree dump.
3984 * test/test-simple.c (validate_accessible),
3985 (validate_tree): make tree dumping pretty too.
3987 * at-bridge/bridge.c (bridge_signal_listener): upd. so
3988 it builds without debug on.
3990 * test/test-simple.c (validate_accessible): fix the most
3993 * cspi/spi_main.c (spi_object_release): leave the nicely
3994 blanked memory around if in debug mode.
3996 * cspi/spi-listener-impl.c (cspi_event): use add_check.
3998 [committed to fixups2]
3999 2001-12-05 Michael Meeks <michael@ximian.com>
4001 * libspi/editabletext.c
4002 (spi_editable_text_class_init): g_type_class_peek_parent,
4003 not interface peek - so we finalize cleanly.
4005 * libspi/accessible.c (spi_accessible_new): kill debug.
4007 * test/test-simple.c (validate_accessible): fix ref.
4008 leak, print strings before freeing them; sigh, comment a
4009 chunk out due to strangeness.
4010 (validate_tree): unref the child after use.
4012 * cspi/spi_component.c (AccessibleComponent_getLayer):
4013 add missing break statement, switch on zlayer not the
4014 uninitialized retval.
4016 * cspi/spi_main.c (cspi_object_add): add assert, local ref
4017 before (possibly re-entering) remote unref.
4019 * test/simple-at.c (main): unref the desktop.
4021 * cspi/spi_accessible.c (cspi_accessible_is_a): move
4024 * cspi/spi_main.c (cspi_accessible_is_a): here to
4025 isolate bonobo API usage more.
4027 * libspi/registry.c (impl_accessibility_registry_register_application):
4028 prune bogus comment.
4030 2001-12-04 Michael Meeks <michael@ximian.com>
4032 * test/test-simple.c (validate_tree): upd.
4033 IndexInParent check to make it more lucid.
4034 (validate_accessible): dump the tree.
4036 * libspi/accessible.c (de_register_public_ref),
4037 (get_public_refs): impl.
4038 (spi_accessible_new): make more efficient & intuitive.
4039 Now IndexInParent check works.
4041 2001-12-04 Michael Meeks <michael@ximian.com>
4043 * cspi/spi-util.h: remove.
4045 * cspi/spi.h: move SPI_freeString here
4047 * libspi/component.c (impl_accessibility_component_get_layer):
4049 (impl_accessibility_component_get_mdi_z_order): ditto,
4050 return -1 on error - is this ok ?
4052 * test/test-simple.c (test_application): impl.
4054 * cspi/spi_accessible.c (Accessible_getApplication),
4055 (Accessible_isApplication): impl.
4057 * libspi/registry.c (spi_listener_struct_free): release
4058 the CORBA reference too.
4060 * libspi/accessible.c
4061 (impl_accessibility_accessible_get_parent): fix ref leak.
4063 * libspi/registry.c (spi_registry_new): make the registry
4064 immortal - we don't want it to go away ever.
4066 * libspi/application.c
4067 (spi_accessible_application_finalize): impl. cleanup.
4069 * cspi/spi_registry.c
4070 (deregisterGlobalEventListenerAll),
4071 (deregisterGlobalEventListener),
4072 (deregisterAccessibleKeystrokeListener): fix ref leak.
4074 * cspi/spi_main.c (SPI_init): remove redundant ref.
4076 * test/test-simple.c (unutterable_horror): impl. to force a
4081 (impl_accessibility_registry_deregister_application): release
4082 the application when we de-register it.
4084 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4085 until we have the infastructure to get it right.
4087 2001-12-03 Michael Meeks <michael@ximian.com>
4089 * libspi/Makefile.am: only build eventlistener.[ch]
4091 * libspi/accessible.c
4092 (impl_accessibility_accessible_get_child_at_index): don't leak.
4094 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4095 before we hit the idle handler.
4097 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4098 debugging than exit.
4100 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4102 * libspi/listener.c (impl_notify_event): check source
4103 not NIL before unref.
4105 * libspi/registry.c (impl_registry_notify_event): ditto.
4107 * libspi/eventlistener.c
4108 (impl_accessible_event_notify_event): unref the source.
4110 * libspi/accessibleeventlistener.c
4111 (impl_accessible_event_notify_event): unref the source.
4113 * idl/Event.idl: remove 'hash_id' attribute - of no
4116 * libspi/application.c (notify_listeners): upd list
4118 (spi_application_object_event_listener),
4119 (spi_application_toolkit_event_listener): upd to do correct
4123 (_registry_notify_listeners): update.
4124 (parse_event_type): this method also leaks like a sieve.
4125 (impl_accessibility_registry_deregister_global_event_listener):
4126 fix ETYPE_WINDOW case.
4128 * libspi/application.c
4129 (impl_accessibility_application_register_object_event_listener):
4132 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4134 * libspi/hypertext.c (impl_getLink): ditto.
4136 * cspi/spi_main.c (cspi_object_add): remove
4137 bogus CORBA_Object_duplicate.
4139 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4142 * cspi/spi_accessible.c
4143 (Accessible_getRelationSet): fix leak / referencing issue.
4145 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4146 (cspi_object_add, cspi_object_unref): upd.
4147 (spi_object_release, get_live_refs): impl.
4148 (cspi_cleanup): simplify.
4150 * *.[ch]: s/boolean/SpiBoolean/
4152 * cspi/spi_accessible.c (role_names): actualy order so it
4153 corresponds with the enum !
4155 * test/test-simple.c (test_roles): check some role strings
4156 vs. enums to detect offset errors.
4158 2001-12-01 Michael Meeks <michael@ximian.com>
4160 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4162 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4164 (Accessible_getChildAtIndex): use cspi_add_check so we
4165 check the ev before using a (possibly) invalid value.
4167 * libspi/accessible.c
4168 (impl_accessibility_accessible_get_parent): don't segv
4171 * at-bridge/bridge.c (gtk_module_init): upd.
4172 (bridge_property_event_listener): don't leak strings
4174 (bridge_state_event_listener),
4175 (bridge_property_event_listener): don't use a static
4176 buffer in case of recursive event emission &
4177 re-enterancy - split out the swathe of cut and paste
4179 (emit_eventv): and fix 2 ref leaks here & comply to the
4181 (bridge_register_app): rename to
4182 (bridge_idle_init): this and kill arg parsing, split
4183 various inits & bonobo-activation registration to module
4184 init time, kill referencing error.
4185 (bridge_exit_func): fix the same leak.
4186 (bridge_focus_tracker): don't leak event structures
4188 (bridge_signal_listener): more leakage and cut & paste
4190 (bridge_key_listener): return the result - FIXME is
4191 this polarity correct ?
4192 (accessibility_keystroke_from_atk_key_event): rename
4193 (accessibility_init_keystroke_from_atk_key_event): and stop
4195 (gtk_module_init): return a value - not that it is checked by
4197 (bridge_key_listener): register my horror at casting between
4198 IDL defined structs.
4199 (bridge_get_registry): kill - not used.
4201 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4203 * test/test-simple.c (test_roles): impl.
4204 (test_desktop, validate_accessible, validate_tree): impl.
4206 * cspi/spi_accessible.c (role_names): fixup bogus
4207 MAX_ROLES setup, make constants const for efficient linkage
4208 (AccessibleRole_getName): conform to coding style, make
4211 2001-11-30 Michael Meeks <michael@ximian.com>
4213 * cspi/spi.h: add missing prototype.
4215 * libspi/registry.c (spi_listener_struct_new): fix sig.
4217 * test/Makefile.am: add test-simple
4219 * test/test-simple.c: add
4221 * test/test.sh: add.
4223 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4225 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4226 do it straight - since otherwise we often get an activation race.
4228 [ work before Bill duplicated a chunk of it ... ]
4229 2001-11-30 Michael Meeks <michael@ximian.com>
4231 * libspi/keystrokelistener.c
4232 (spi_keystroke_listener_class_init): fixup arg
4235 * libspi/eventlistener.c
4236 (spi_event_listener_class_init): ditto.
4238 * tests/test.sh: add.
4240 * cspi/spi-listener-impl.h: update macros.
4242 * cspi/spi-listener-impl.c
4243 (cspi_event_listener_remove_callback): add
4244 correct pre-conditions.
4246 * cspi/spi_main.c (SPI_exit): guard vs. double
4247 exits, exit the mainloop nicely.
4248 (SPI_event_main): make more sense.
4249 (SPI_init): move the atexit evilness here so we
4250 always do it (yuck).
4251 (SPI_event_main): upd.
4253 * test/simple-at.c: update for listener changes.
4255 * registryd/registryd.c (main): prune kruft.
4257 * libspi/libspi.h: upd.
4259 * libspi/eventlistener.[ch]: rename broken macros.
4261 * libspi/accessibleeventlistener.[ch]: remove.
4263 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4265 * test/test-simple.c: Add - automated tests.
4267 * cspi/spi-listener-impl.c (cspi_event),
4268 (cspi_key_event): add user_data to invoke.
4269 (cspi_keystroke_listener_finalize): impl.
4270 (cspi_keystroke_listener_class_init): upd.
4273 (createAccessibleEventListener),
4274 (AccessibleEventListener_addCallback),
4275 (createAccessibleKeystrokeListener),
4276 (AccessibleKeystrokeListener_addCallback): upd.
4278 * libspi/deviceeventcontroller.c
4279 (spi_device_event_controller_check_key_event): add public proto.
4282 (impl_accessibility_registry_deregister_global_event_listener):
4283 always init listeners.
4284 (_registry_notify_listeners): yes it is.
4286 * cspi/spi-listener-impl.c (cspi_key_event):
4288 (cspi_event_listener_finalize): impl.
4289 (cspi_event_listener_class_init): hook up.
4290 (event_handler_new, event_handler_free),
4291 (event_list_remove_by_callback): impl.
4292 (cspi_event_listener_remove_callback),
4293 (cspi_keystroke_listener_remove_callback),
4294 (cspi_keystroke_listener_add_callback),
4295 (cspi_event_listener_add_callback): upd.
4297 * libspi/keystrokelistener.c
4298 (keystroke_listener_object_finalize): kill
4299 (spi_keystroke_listener_class_init): upd.
4300 (spi_keystroke_listener_add_callback),
4301 (spi_keystroke_listener_remove_callback): kill,
4303 (impl_key_event): prune drasticaly.
4305 * libspi/eventlistener.c
4306 (spi_event_listener_add_callback),
4307 (spi_event_listener_remove_callback): kill, use
4309 (impl_accessible_event_notify_event): upd.
4310 (spi_event_listener_object_finalize): remove.
4312 * libspi/Makefile.am: use eventlistener.[ch]
4314 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4316 * libspi/registry.c (_registry_notify_listeners):
4317 Changed listener loop iteration to use preferred convention.
4318 Got rid of string memory leaks caused be calling g_strconcat
4319 inside function calls.
4321 * libspi/registry.c (parse_event_type):
4322 Stopped g_strconcat memory leaks, free the g_strsplit return,
4323 g_strdup the split pieces when used, etc.
4325 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4328 Change method 'compare' to return a 'difference set' rather than
4329 taking a StateSet as an out parameter (more Java-friendly).
4331 * idl/Accessible.idl:
4332 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4334 * idl/Component.idl:
4336 Changed methods 'getExtents' and 'getImageExtents' in these
4337 interfaces to return a BoundingBox structure.
4338 (getPosition and getSize are redundant and possibly should be
4339 removed, rather than creating a corresponding Point struct.)
4341 * cspi/spi_component.c:
4342 Modify implementation of getExtents to reflect the above IDL
4347 Add (missing) AccessibleImage_getExtents () API.
4349 * docs/reference/cspi/at-spi-cspi-sections.txt:
4350 Added AccessibleImage_getImageExtents () to docs.
4352 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4354 * idl/Component.idl:
4355 Added two methods, getLayer () and getMDIZOrder (), to reflect
4356 the new ATK methods atk_object_get_layer and
4357 atk_object_get_mdi_z_order. (Which arguably should be part of the
4358 AtkComponent API and AtkObject). Also added an enum,
4359 ComponentLayer, for the first method's return value.
4361 * libspi/component.c:
4362 Added implementations for these methods.
4364 * cspi/spi_component.c:
4366 Added cspi binding methods for above,
4367 AccessibleComponent_getLayer() and
4368 AccessibleComponent_getMDIZOrder().
4369 Added cspi enum 'AccessibleComponentLayer'.
4371 * docs/reference/cspi/at-spi-cspi-sections.txt:
4372 Added above methods to docs.
4376 Changed typedef for 'boolean' type (and all references to it) to
4377 SPIBoolean, to avoid keyword clashes with C++.
4380 Changed usages of 'boolean' to SPIBoolean.
4382 * test/keysynth-demo.c:
4383 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4384 app), except where SPIBoolean is required by the callbacks API.
4386 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4388 * cspi/spi_registry.c:
4389 Removed obsolete X event loop for passive keygrabs (which now
4392 * registryd/registryd.c:
4393 Removed unnecessary call to gdk_init() [cruft]. This also allows
4394 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4397 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4399 * docs/reference/cspi:
4400 Included docs for SPI_freeString in generated documentation.
4403 Renamed spi_freeString to SPI_freeString, for consistency. Added
4404 documentation for this function.
4407 Renamed spi_freeString to SPI_freeString, for consistency.
4408 Removed obsolete method declaration string_from_corba_string.
4410 * test/keysynth-demo.c:
4411 Small tweak to comments.
4414 Stopped leaking the strings returned from CSPI.
4416 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4418 Merged Michael's branch (see his ChangeLog entries below).
4420 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4421 bridge is alive, release on exit.
4423 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4424 Fix type check macro.
4427 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4430 Added is_gnome_app static, and method cspi_is_gnome_app(),
4431 so we can call the appropriate shutdown routine at exit in SPI_exit.
4433 * cspi/spi_main.c (cspi_object_ref):
4434 Duplicate the corba object passed in, since we're keeping it around.
4436 * cspi/SPI_exit.c, cspi_cleanup:
4437 Moved the releasing of the live refs to its own function, so we
4438 can put it in g_atexit (). Call the appropriate shutdown API
4439 depending on whethe calling client is a gnome app or not
4440 (bonobo_main_quit or CORBA_ORB_shutdown).
4442 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4443 Unref the listener when this method is called, after
4444 deregistration. Updated the API docs to note this behavior.
4446 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4447 Bugfixes: Ref the bonobo object when returning a parent or child
4448 reference, or an AccessibleRelation. Generally made sure
4449 BonoboObject refcount is incremented whenever we return an
4452 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4453 Fixed typo/bug in signal declaration.
4455 * libspi/accessibleeventlistener.h:
4458 * libspi/application.c (spi_application_new):
4459 Fixed leak in initialization.
4462 Remembered to increment bonobo-object refcount when returning
4463 children (applications) from desktop object.
4464 Added (empty) finalize method.
4466 * libspi/deviceeventcontroller.c:
4467 Hold a ref to listeners inside DEControllerKeyListeners.
4468 Added dec_key_listener_free() method. Use prepend instead of
4469 append in key_listener list. Fixed some refcount madness and
4470 leaks in the listener registration/deregistration - deregistration
4471 now calls dec_key_listener_free() on listeners, and on the
4472 temporarily constructed dec_key_listener() used to perform the search/match.
4474 * libspi/hypertext.c (spi_hypertest_finalize):
4475 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4476 class. Also fixed spi_hypertext_interface_new() and
4477 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4479 * libspi/hypertext.h:
4480 Removed pointless and duplicate AtkObject pointer from
4483 * libspi/keystrokelistener.c:
4484 Fixed incorrect type of keystroke_listener_parent_class,
4485 renamed keystroke_listener_object_finalize to
4486 spi_keystroke_listener_object_finalize.
4487 Fixed typo in signal declaration
4488 (spi_keystroke_listener_class_init).
4490 * libspi/registry.c:
4491 Added funcsions spi_listener_struct_new() and
4492 spi_listener_struct_free() to help with memory management issues.
4493 We also now use these methods instead of gnew + poking stuff into
4494 the struct, and to decrement listener counts/free the listeners
4495 when deregistering them.
4496 Fix more refcount bugs in getDesktop() and
4497 getDeviceEventController().
4500 De-ref the desktop after enumerating the applications. Explicitly
4501 decrement the refcounts on the created listeners on exit (using
4502 _unref for keystroke listeners, and via the
4503 deregisterGlobalEventListenerAll command for other event
4506 2001-11-27 Michael Meeks <michael@ximian.com>
4508 * cspi/spi-listener.h: fixup enum.
4510 2001-11-27 Michael Meeks <michael@ximian.com>
4512 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4513 (cspi_keystroke_listener_new): Use the cspi variants.
4515 2001-11-26 Michael Meeks <michael@ximian.com>
4517 * test/keysynth-demo.c: fix 2 compile warnings, missing
4520 * test/simple-at.c (report_focussed_accessible),
4521 (report_focus_event, report_button_press),
4522 (check_property_change, is_command_key),
4523 (report_ordinary_key_event, report_command_key_event): upd.
4525 * util/mag_client.h: include pre-requisites.
4527 * libspi/accessibleeventlistener.c
4528 (spi_event_listener_object_finalize): free any lingering
4531 * libspi/keystrokelistener.c
4532 (keystroke_listener_object_finalize): ditto.
4534 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4535 callbacks, with cspi types.
4537 * cspi/spi_event.c (createAccessibleEventListener): chain to
4538 (AccessibleEventListener_addCallback): here.
4539 (createAccessibleKeystrokeListener): chain to
4540 (AccessibleKeystrokeListener_addCallback): here.
4542 * libspi/keystrokelistener.c
4543 (spi_keystroke_listener_class_init): add signal.
4544 (impl_key_event): emit the event.
4545 (boolean_handled_accumulator): impl.
4546 (marshal_BOOLEAN__POINTER): add, gack.
4548 * libspi/accessibleeventlistener.c
4549 (spi_event_listener_class_init): add signal.
4550 (impl_accessible_event_notify_event): emit the signal &
4551 make the loop efficient.
4552 (spi_event_listener_add_callback): prepend the callback.
4554 * libspi/accessibleeventlistener.h: add an 'event' signal,
4555 decl type on callback.
4557 * libspi/keystrokelistener.h: ditto.
4559 * cspi/spi-listener.h: make methods typesafe and
4560 make them use the new event typedefs.
4562 * test/simple-at.c (report_focussed_accessible):
4563 include mag_client.h
4564 Use *(void *)text_interface not the other thing.
4566 * configure.in: add gtk to registryd bits - since we use
4569 * util/magnifier.c: include libbonobo.h
4571 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4573 * test/keysynth-demo.c:
4574 Turned this into a simple scanning keyboard, to demonstrate the
4575 use of g_timeout_add () as a means of creating timers for
4576 scanning, and the use of GtkStyle for visually indicating when
4577 virtual keyboard elements are selected.
4579 keysynth-demo now listens to any keyboard keys with zero-valued
4580 keycodes (i.e. 'unused' keys) and interprets them as
4583 Reworked the shiftlatch code so that shift-down state isn't held
4584 for long periods (it's only synthesized immediately prior to
4585 the keysynth event it's modifying). Note that shiftlatch in this
4586 demo is a convenience, not intended to take the place of AccessX
4587 which is the better choice for getting 'sticky' modifier keys.
4589 * libspi/deviceeventcontroller.c:
4590 * at-bridge/bridge.c:
4591 * cspi/spi_registry.c:
4592 Removed some debug print stuff, and put other verbosity in #ifdef
4597 Implemented some more of the magnifier IDL for the simple
4598 magnifier: namely, getZoomRegionParams.
4599 Added mag_x and mag_y members to MagnifierData struct, aid of this
4601 Added GtkWindow::realize signal handler to magnifier, to keep it
4602 from receiving keyboard focus from the WM.
4604 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4606 * cspi/spi-private.h: my guess at what michael forgot
4607 before he ran off to NZ :-)
4609 2001-11-23 Michael Meeks <michael@ximian.com>
4611 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4612 comment out non existant method invoke so we link.
4614 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4615 use bonobo_exception_get_text for more friendly warnings.
4617 * cspi/spi.c (Obj_Add): move into spi_main & rename
4618 spi_object_add; kill spi.c
4620 * cspi/spi_registry.c
4621 (deregisterGlobalEventListener),
4622 (deregisterGlobalEventListenerAll),
4623 (registerGlobalEventListener): fix exception leaks.
4625 * cspi/spi_main.c (spi_exception): impl. helper, so we
4626 don't leak exceptions.
4628 * cspi/spi_selection.c
4629 (AccessibleSelection_deselectSelectedChild): return the
4632 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4633 (spi_registry): ditto.
4634 (SPI_init): guard against double inits.
4636 * cspi/*.c: use spi_ev (), and spi_registry () where
4637 appropriate - a temporary hack until we have something
4638 better. Use spi_object_add
4640 2001-11-22 Michael Meeks <michael@ximian.com>
4642 * cspi/Makefile.am: re organise, install the headers.
4644 * cspi/*.h: add G_BEGIN/END_DECLS
4646 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4649 Added non-preemptive keylistener for key events with no modifiers
4650 and shift-only modifier.
4652 * libspi/keystrokelistener.c:
4653 Removed some verbose diagnostics printout.
4655 * cspi/spi_registry.c:
4656 Fixed a bug that caused all key listeners to be registered as
4659 * libspi/deviceeventcontroller.c:
4660 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4661 for non-preemptive key masks.
4664 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4666 * docs/reference/idl/at-spi-idl-docs.sgml:
4667 * docs/reference/idl/at-spi-idl-sections.txt:
4668 * docs/reference/idl/at-spi-idl-overrides.txt:
4669 Added missing files.
4671 * docs/reference/Makefile.am:
4672 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4673 to scan the IDL files :-(
4678 Added .cvsignore files.
4680 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4682 * libspi/deviceeventcontroller.c:
4683 * libspi/keystrokelistener.c:
4685 * cspi/spi_registry.c:
4686 Added filters for KeySets, KeyEventSeq, and event types to key
4687 event dispatching, so listeners should only receive those events
4688 that they requested :-)
4690 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4695 * docs/reference:Makefile.am:
4696 * docs/reference/cspi:
4697 * docs/reference/cspi:Makefile.am:
4698 * docs/reference/cspi:tmpl:
4699 * docs/reference/cspi:tmpl:*.sgml:
4700 * docs/reference/idl:
4701 * docs/reference/idl:Makefile.am:
4702 * docs/reference/idl:at-spi-idl-sections.txt:
4703 * docs/reference/idl:at-spi-idl-docs.sgml:
4704 * docs/reference/idl:tmpl:
4705 * docs/reference/idl:tmpl:*.sgml:
4707 Restructured docs directory to allow separate 'reference' docs
4708 section, and forked idl and cspi docs. Added the sgml template
4709 files to CVS. Added the first sections/structural sgml for the
4712 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4714 * configure.in, libspi/Makefile.am: find libXtst.
4716 2001-11-21 Michael Meeks <michael@ximian.com>
4718 * test/accessx-gui.c: s/spi_value/value/ - doh.
4720 * libspi/base.[ch]: add.
4722 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4724 * idl/Accessible.idl:
4725 * idl/Application.idl:
4728 Started gtk-doc cleanup on IDL.
4730 * libspi/deviceeventcontroller.c:
4731 Added and connected non-preemptive key notification from the
4732 toolkits (in addition to the pre-emptive support from XServer
4733 which we had before, but which causes 'focus flashing'). Filters
4734 are presently limited to key modifiers and global/non-global,
4735 KeySets are presently ignored, as are KeyEvent masks.
4737 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4738 structs into the persistant structure rather than just storing
4739 pointers to things that might not persist across servant
4742 The XGrabKey call now does async keygrabs, because synchronous
4743 ones were deadlocking with GDK_event code in a very nasty way.
4745 Added boolean to internal method notify_keylisteners, to indicate
4746 whether the event came from the 'toolkit source' or the 'global
4747 (XServer) source' - this is used in the notification process to
4748 determine which listeners to send the event to.
4750 deviceeventcontroller.c is now warning-free.
4752 * libspi/registry.c:
4753 Fixed regression in application de-registration.
4754 Also fixed some really brain-dead weirdness having to do with
4755 event dispatching - event structs are now duplicated before being
4756 re-marshalled in the dispatch to listeners. This also fixes a
4757 Solaris build problem.
4760 2001-11-20 Michael Meeks <michael@ximian.com>
4763 (impl_accessibility_registry_deregister_global_event_listener):
4766 * libspi/deviceeventcontroller.c
4767 (spi_device_event_controller_check_key_event): return
4768 FALSE on no virtual method.
4770 * libspi/*..h: make includes work on a correctly pathed install.
4772 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4774 * libspi/application.h: kill unused ( and whacked out )
4775 gboolean *spi_application_set_id (AtkObject *app, long id);
4777 2001-11-20 Michael Meeks <michael@ximian.com>
4779 * libspi/*.[ch]: further convert to bonobo's type func
4780 macros, remove redundnant casts etc.
4782 * libspi/text.c s/accessibility_text/spi_text/g,
4783 re-order to de-cruft.
4785 * libspi/hypertext.c: re-order to kill a huge slew
4786 of redundant forward decls.
4788 * libspi/relation.c: ditto.
4790 * libspi/image.c: ditto.
4792 * */.cvsignore: update
4794 2001-11-20 Michael Meeks <michael@ximian.com>
4796 * libspi/deviceeventcontroller.c
4797 (_controller_register_with_devices): use g_getenv,
4798 kill stdlib.h include.
4800 * libspi/keystrokelistener.c
4801 (spi_keystroke_listener_get_type): kill
4802 (spi_keystroke_listener_class_init),
4803 (spi_keystroke_listener_init): rename to this.
4805 * libspi/text.c (impl_getAttributes): fix warning / bug.
4807 * libspi/*.[ch]: more headers, includes and over commenting.
4809 2001-11-20 Michael Meeks <michael@ximian.com>
4811 * libspi/*.[ch]: fixup headers, includes and over commenting.
4813 * libspi/image.c (impl__get_imageDescription): const
4814 correctness warning fix. remove redundant casting.
4816 * libspi/table.c (impl_getRowDescription): ditto.
4817 (impl_getColumnDescription): ditto.
4819 * libspi/libspi.h: add.
4821 2001-11-19 Michael Meeks <michael@ximian.com>
4823 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4825 * libspi/component.c (accessibility_component_get_type):
4826 rename to (spi_component_get_type): and macroify.
4827 (accessibility_component_init): rename to
4828 (spi_component_init): this
4829 (accessibility_component_class_init): rename to
4830 (spi_component_class_init): this
4832 * libspi/action.c (spi_action_get_type): kill, use the macro.
4834 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4837 * libspi/application.c (spi_application_object_event_listener),
4838 (impl_accessibility_application_register_object_event_listener):
4839 warning fixes / const understanding updates.
4841 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4844 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4846 * libspi/spi_accessible.c: Added docs and C bindings for
4847 AccessibleStateSet. (No implementations yet). Documentation
4848 coverage for C bindings now 100%. Made docs for event listeners
4853 boolean notifyListenersSync (in DeviceEventListener listener,
4854 in DeviceEvent event);
4856 oneway void notifyListenersAsync (in DeviceEventListener listener,
4857 in DeviceEvent event);
4859 Added DeviceEventListener and DeviceEvent structs (may deprecate
4860 KeyStroke and KeystrokeListener in favor of this generic
4861 event/listener framework for devices).
4863 * libspi/deviceeventcontroller.c:
4865 Changed some key listener code to take masks, etc., and paved the
4866 way for integration of toolkit/non-preemptive key events. Changed
4867 signatures of some internal methods.
4869 * at-bridge/bridge.c:
4870 Fixed regression connecting to interface signals, apparently
4871 caused by GTK+ changes.
4873 Added an internal bridge_state_listener to deal with
4874 property-change:accessible-state signals.
4876 Changed the key_listeners GList to store structs (including masks,
4877 etc.) instead of just CORBA_Objects (required for full
4878 implementation of key listener API).
4880 Connected the bridge to all currently supported Atk signals.
4881 Events now supported:
4882 object:property-change
4883 object:property-change:accessible-name
4884 object:property-change:accessible-state
4885 object:property-change:accessible-description
4886 object:property-change:accessible-parent
4887 object:property-change:accessible-value
4888 object:property-change:accessible-role
4889 object:property-change:accessible-table-caption
4890 object:property-change:accessible-table-column-description
4891 object:property-change:accessible-table-column-header
4892 object:property-change:accessible-table-row-description
4893 object:property-change:accessible-table-row-header
4894 object:property-change:accessible-table-summary
4895 object:children-changed
4896 object:visible-data-changed
4897 object:selection-changed
4898 object:text-selection-changed
4900 object:text-caret-moved
4902 object:row-reordered
4904 object:column-inserted
4905 object:column-reordered
4906 object:column-deleted
4907 object:model-changed
4909 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4911 * libspi/hyperlink.c,h:
4912 Fixed some broken stuff in hyperlink.
4914 * libspi/relation.h:
4915 * libspi/relation.c:
4916 * cspi/spi_accessible.c:
4917 Initial implementations of AccessibleRelation methods, and docs.
4919 * libspi/accessible.c:
4920 Fixed a bug that caused SEGV if an accessible
4921 object's description is NULL, and a client
4922 requests it. An empty string is now returned.
4924 * cspi/spi_editabletext.c:
4925 * cspi/spi_hypertext.c:
4927 * cspi/spi_hyperlink.c:
4931 Doc coverage now 95%.
4933 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4935 One last namespacing revision:
4936 * libspi/accessibleeventlistener.[ch]:
4937 Renamed SpiAccessibleEventListener to SpiEventListener,
4938 (no need for two namespaces ;-)
4940 And lots of documentation fixes:
4942 * docs/at-spi-docs.sgml:
4943 Fixed 'underscore vs. hyphen' bug that was preventing
4944 the gtk-doc API docs from being automatically generated.
4947 * cspi/spi-listener.h
4949 * cspi/spi_accessible.c
4951 * cspi/spi_application.c
4952 * cspi/spi_component.c
4953 * cspi/spi_editabletext.c
4955 * cspi/spi_hypertext.c
4957 * cspi/spi_registry.c
4958 * cspi/spi_selection.c
4962 * docs/at-spi-docs.sgml
4963 * docs/at-spi-sections.txt
4965 Added and fixed up gtk-doc documentation in cspi.
4967 Interfaces now (fully) documented (subject to revision and enhancement):
4969 Event Listener Support
4971 AccessibleApplication
4975 AccessibleEditableText
4982 AccessibleRelationSet
4987 2001-11-14 Bill Haneman <bill.haneman@sun.com>
4989 * at-bridge/bridge.c:
4990 Initial work for toolkit-level key snooper connection by bridge.
4995 New typedefs and fixes to support new namespacing, and cleaner
4996 separation of cspi bindings from libspi bonobo implementation.
4997 Removed inconsistent and extraneous Spi* namespace prefix that
4998 had crept into cspi headers.
4999 Lots of comment fixes that sed had missed.
5001 * cspi/spi-roletypes.h:
5002 * cspi/spi-statetypes.h:
5003 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
5004 to AccessibleRoleType.
5006 * libspi/accessibleeventlistener.h:
5007 Fixed minor namespacing weirdness.
5009 * libspi/deviceeventcontroller.c:
5010 Reordered some internal API for device listeners.
5011 Changed the key registry final boolean to 'is_system_global'
5012 rather than 'is_synchronous', which is more descriptive of its
5014 Added spi_device_event_controller_new().
5015 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
5017 * libspi/keystrokelistener.[ch]:
5018 Namespaced KeystrokeListener to SpiKeystrokeListener.
5019 Changed uses of keymasks to use SPI_ prefix, and did other
5022 * libspi/keymasks.h:
5023 Namespaced keymask constants with SPI_ prefix.
5025 * libspi/registry.c:
5026 Some warning fixes, and knock-on fixes from namespace changes.
5029 Added rules for accessx-gui test program.
5031 * test/accessx-gui.c:
5032 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5033 utility. It doesn't actually use at-spi, but it's still cool and
5036 * test/keysynth-demo.c:
5040 Fixes so that these test clients work properly with the namespaced
5041 libraries. (Incompletely tested for technical reasons, fixes may follow)
5044 2001-11-13 Michael Meeks <michael@ximian.com>
5046 * libspi/application.c
5047 (impl_accessibility_application_get_version),
5048 (impl_accessibility_application_get_toolkit_name):
5050 (impl_accessibility_application_set_id),
5051 (impl_accessibility_application_get_id): remove
5052 redundant casting code.
5054 * libspi/action.c (impl_getDescription): fix warnings.
5056 * libspi/accessible.c
5057 (impl_accessibility_accessible_get_parent),
5058 (impl_accessibility_accessible_get_child_at_index),
5059 (impl_accessibility_accessible_get_state),
5060 (impl_accessibility_accessible_get_relation_set):
5061 warning fixes & include action.h
5063 2001-11-13 Michael Meeks <michael@ximian.com>
5065 * *.[ch] fix bits I screwed up:
5067 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5068 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5070 2001-11-13 Michael Meeks <michael@ximian.com>
5072 * *.[ch] Namespace libspi into spi_ and Spi.
5074 2001-13-11 Michael Meeks <michael@ximian.com>
5076 * Makefile.am: dist & install at-spi-1.0.pc
5078 * libspi/Makefile.am: install into at-spi-1.0
5080 * idl/Makefile.am (idldir): install into at-spi-1.0
5082 * at-spi-1.0.pc.in: add.
5084 * configure.in: build it.
5086 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5088 * test/keysynth-demo.c:
5089 Use a 'realize' signal-handler to set the WM properties for
5090 the virtual keyboard, rather than making it a "POPUP" type
5091 override-redirect window (thanks to anders carlsson for that
5094 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5097 * test/keysynth-demo.c:
5098 Added new test of key synthesis, which creates a simple
5099 (mouse-operated) onscreen keyboard. It inserts key events into
5100 the currently-focused window, thus it does not grab keyboard focus
5103 * cspi/spi_registry.c:
5104 Added C binding for AT-SPI generateKeyEvent.
5106 * libspi/deviceeventcontroller.c:
5107 Added call to XFilterEvent so that key listener works with XIM (we
5108 hope). Added event_synth_type to generateKeyEvent, so that we can
5109 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5110 synthesize a press/release pair for KeySyms.
5112 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5114 * libspi/Makefile.am:
5115 * registryd/Makefile.am:
5116 (temporary) hack to include libXtst in libspi and registryd.
5117 (Needed for keystroke synthesis, see below).
5120 Improved API for registerKeystrokeListener, in accordance with
5121 discussions with Gnopernicus team and X server research.
5123 * libspi/registry.c:
5124 * libspi/deviceeventcontroller.c:
5125 * libspi/accessible.c:
5126 * libspi/keystrokelistener.c:
5127 Changes and fixes to support keylisteners for potentially
5128 consumed key events (that is, 'passive grabs').
5129 Added implementation for generateKeyEvent() [untested].
5132 Changes to registerKeystrokeListener() API, as above.
5133 Added deregisterGlobalEventListenerAll(), and
5134 deregisterKeystrokeListener(), which are needed for clean exit of
5136 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5137 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5139 * cspi/spi_registry.c:
5140 Added implementations of function prototypes mentioned above.
5142 * registryd/registryd.c:
5143 Added the key listener event source as a g_timeout(), to allow
5144 receipt of key events that are not caught by GDK (since GDK
5145 doesn't support passive keygrabs, this was necessary).
5148 Changed to attach a keylistener to 'Alt' keys, and
5149 respond to the following keycommands: Alt-M (toggle magnifier);
5150 Alt-F (toggle speech); Alt-Q (quit).
5151 Added an exit routine to deregister the listeners, and a key
5152 listener that prints some key info to the console when a key
5153 matches the listener mask (and is thus received by the listener).
5155 * util/idl/Magnifier.idl:
5156 Changes to magnifier API to support multiple zoom regions,
5157 non-uniform scaling in x and y, markDirty, and a host of other
5158 features that would be useful to magnification.
5161 * util/mag_client.c:
5162 * util/mag_client.h:
5163 * util/mag_control.c:
5165 Source code changes to support the above IDL changes.
5168 As above, and also changes to use a (slower) generic conversion
5169 path for colormap conversions, since the fast RGB conversions have been
5170 reported to fail for 16-bit displays.
5172 2001-10-26 Michael Meeks <michael@ximian.com>
5174 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5176 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5178 * at-bridge/Makefile.am: fix LDFLAGS.
5180 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5182 * at-bridge/bridge.c:
5183 Re-worked listeners for toolkit events, now we have signal
5184 and property listeners. Added a private method
5185 register_atk_event_listeners(), which registers with the
5186 various atk and gtk signals we need to monitor in order to emit
5188 Added emission hook for AtkObject:property-change events, to
5189 support the 'property listeners'.
5190 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5193 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5194 which emit warnings and exit, respectively, if CORBA errors occur
5195 during remote calls, and we now use these methods to check most of
5196 our CORBA calls in the C bindings.
5198 * cspi/spi_accessible.c:
5199 Changed AccessibleSelection_refSelectedChild() to
5200 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5201 now increment refcounts.
5203 * cspi/spi_component.c:
5204 Fixed some long pointer casts (dangerous!) to pass pointers to
5205 CORBA_longs of the proper type to the CORBA stubs, and copy the
5206 data into the longs that were passed into the C bindings code.
5208 * at-bridge/bridge.c:
5210 * libspi/accessible.c:
5211 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5212 hyperlinks, AtkHyperlink is an object type.
5214 * libspi/application.c:
5215 Added various conversions to and from "generic" event types and
5216 atk-specific types; this is really part of the 'bridge'
5217 implementation but is valid for all AtkObject-based accessibility
5220 * libspi/editabletext.c:
5221 Fixed nasty bug wherein editable text's finalize method was
5222 unref'ing tha AtkObject reference that the text parent class was
5223 about to unref _again_. There was also a nasty inheritance bug
5224 that meant that the AccessibleEditableText class was corrupt.
5226 * libspi/selection.c:
5227 Provided implementations for some selection API that was broken.
5229 * idl/Application.idl:
5230 Added registerObjectEventListener () method.
5233 Fixed a number of return values that were Bonobo_Unknowns from
5234 bonobo_object_corba_objref(), which I
5235 forgot to dup before returning. Changed instances of
5236 bonobo_object_corba_objref (bonobo_object(o)) to
5237 BONOBO_OBJREF(o), for concision and clarity.
5239 2001-10-13 Louise Miller <louise.miller@sun.com>
5241 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5242 idl/Event.idl, idl/Registry.idl
5243 Changed these files to include Bonobo_Unknown.idl instead
5246 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5248 * libspi/component.c libspi/component.h:
5249 Fixed typo. Added assertions for object checks in
5250 AccessibleComponent code.
5252 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5254 * idl/Accessible.idl:
5255 Added 'isEqual (Accessible *object)'
5256 method for Accessible. (Not Yet Implemented).
5259 Changed signature of registerKeystrokeListener() to
5260 take a KeySet and KeyEventSeq so that specific keys and event
5261 types could be requested for monitoring, and added a flag
5262 is_synchronous so that either synchronous or asynchronous
5263 notification could be requested. (However this is not all
5264 implemented yet). This also meant adding two new typedefs,
5265 KeyEventSeq and KeySet.
5268 Added two new relations, RELATION_TOOLTIP_FOR and
5269 RELATION_LEAFNODE_OF.
5272 Added new state, STATE_HAS_TOOLTIP.
5274 * libspi/text.c, editabletext.c:
5275 Added new assertions to all casts of bonobo-objects from
5276 CORBA servants, to prevent Text API calls on non-text objects.
5277 Changed suspect casts of int-pointer types, so that we
5278 always send a valid CORBA_long pointer to the CORBA APIs that use
5279 in/out long parameters. We then have to copy from the CORBA_long
5280 into the regular long or int for return to the C bindings, or
5281 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5284 * libspi/deviceeventcontroller.c:
5285 Cleaned these sources up.
5287 Changed return type for getCharacterAtOffset to
5288 CORBA_unsigned_long, to allow for 32-bit characters.
5291 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5295 Fixed 'make dist' so that distro compiles...
5296 * libspi/keymasks.h:
5298 * cspi/spi-listener.c:
5299 KeystrokeListenerCB now returns a boolean.
5301 Added KeyEventType struct, and KeyStroke.
5302 Also added createKeystrokeListener(),
5303 KeystrokeListener_addCallback(),
5304 KeystrokeListener_removeCallback(), and added a keymask to
5305 registerKeystrokeListener().
5306 * cspi/spi_accessible.c:
5307 Changed numerous return types for interfaces from
5308 AccessibleComponent to Accessible<InterfaceName>; this was
5309 probably a cut-and-paste error.
5311 Implementations of new KeystrokeListener api (from spi.h,
5314 Changes to key modifier mapping.
5315 Created ControllerEventMask struct.
5316 Made DeviceEventController derive from Bonobo::Unknown.
5318 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5319 * libspi/deviceeventcontroller.c:
5320 Added a number of new internal (private) methods.
5321 * libspi/editabletext.c:
5322 * libspi/editabletext.h:
5323 Fixed a number of bugs related to the fact that
5324 editabletext inherits from text. Fixed the EditableText struct,
5325 the init() call, and use correct casts when calling Text methods
5326 from an EditableText object. Removed (duplicate) atko from the
5327 EditableText structure, we use the one in the parent Text
5328 structure via the casts mentioned above.
5329 * libspi/keystrokelistener.[ch]:
5330 * libspi/registry.c:
5331 Changes in support of keyboard handling (above).
5333 Keyboard handling, though partly functional, is still not
5334 recommended for at-spi client use as there is considerable
5335 work yet to be done.
5338 Changed some places where pointers to various int types
5339 are cast to be pointers to CORBA_long types and vice-versa:
5340 pointer casting is not safe so we pass pointers of the correct
5341 types and then cast the result before putting it into the target
5344 * libspi/text.h: minor typos corrected.
5346 We now speak not only the name of a Text element, but the
5347 first sentence of its content, when it receives focus.
5348 I also changed the text compression to 75% from 50%.
5349 * util/Accessibility_Util.server.in:
5350 Changed the default magnifier type to be a 3x vertical
5351 splitscreen magnifier (was previously a 2x horizontal one).
5353 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5355 * libspi/keystrokelistener.h:
5356 * libspi/keystrokelistener.c:
5357 Initial functional implementations of KeystrokeListener.
5360 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5362 Fixed string handling for NULL strings in libspi.
5363 Added spi_freeString to free strings returned by C bindings.
5365 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5367 * libspi/keystrokelistener.h:
5368 * libspi/keystrokelistener.c:
5369 Began (no-op) implementations of KeystrokeListener
5371 * libspi/deviceeventcontroller.c:
5372 * libspi/deviceeventcontroller.h:
5373 Began creating implementations of DeviceEventController,
5374 to handle keystroke and mouse event listening and
5376 * libspi/accessible.c:
5377 Stubbed-in the implementations for
5378 Accessibility_Accessible_getState and
5379 Accessibility_Accessible_getRelationSet.
5380 * libspi/registry.c:
5381 Improved de-registration process and fixed some bugs,
5382 deregistration now works correctly.
5384 Added initialization of applications list (to NULL).
5386 Reduced speech compression from 0.5 to 0.7, for demo.
5387 Changed call to gdk_window_set_decorations()
5388 to gtk_window_set_decorated().
5389 * at-bridge/bridge.c:
5390 Bridge now deregisters when app exits, via
5391 registration of a cleanup function
5392 with the g_atexit() call.
5393 Required making 'app' static, renamed 'this_app'.
5394 Fixed broken use of bonobo_init, passing argv wrongly.
5396 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5400 Created a new directory for
5401 accessibility-related utilities, primarily for
5402 testing and demo purposes, but with possible
5409 Onscreen magnifier utility that
5410 is implemented as a bonobo service.
5412 * util/mag_client.c:
5413 * util/mag_client.h:
5414 Client-side support (simple C bindings)
5415 for Magnification service
5417 * util/mag_control.c:
5418 Client program example for
5419 Magnification service
5421 * util/Accessibility_Magnifier.server.in:
5422 Bonobo-activation file for the
5423 Magnification service.
5426 * util/idl/Magnifier.idl:
5427 IDL defining the bonobo Magnification
5431 Modifications to use the bonobo-activated magnifier
5432 above, in place of trying to connect to an existing
5433 magnifier that uses socket-listening IPC.
5435 If env variable MAGNIFIER is set, a magnifier service
5436 will be started if one does not exist.
5438 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5440 * at-bridge/bridge.c:
5441 applied patch from Marc to build and run
5442 against new glib and gtk+ (seemed like a change
5443 to bonobo_init signature was made ?)
5445 made festival-server support turned off by default.
5446 Added support for a simple magnifier (off by default)
5447 which will be added to a 'util' directory later.
5448 * at-bridge/Makefile.am:
5449 Changed "application.h" header from a 'source'
5450 to a 'dependency' of libat-bridge.
5452 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5461 Added interface implementation c files to list of
5462 includes so they are included in libcspi.
5465 Changed prototype of AccessibleAction_doAction to return a
5467 Changed prototype of AccessibleTable_getCaption to
5468 return an Accessible.
5469 Changed prototype of AccessibleTable_getSelectedRows
5470 and AccessibleTable_getSelectedColumns to
5471 return a long (returns the number of selected rows
5472 or columns respectively).
5473 Changed name of AccessibleText_refRunAttributes to
5474 AccessibleText_getAttributes.
5475 Changed prototype of AccessibleText_getCharacterExtents to
5476 return a void rather than a boolean.
5477 Added support for a AccessibleCoordType parameter
5478 specifying what type of coordinates are desired.
5479 Added an AccessibleCordType parameter to
5480 AccessibleText_getPointAtOffset.
5482 * cspi/spi_accessible.c:
5483 Added code to return the outstanding interfaces from
5484 Accessible_queryInterface.
5486 * cspi/spi_action.c:
5488 Corrected call to getNActions to call the c binding
5491 * cspi/spi_editabletext.c:
5493 Changed name from setRunAttributes to setAttributes.
5495 * cspi/spi_hyperlink.c:
5497 Changed call to getNAnchors to correctly call the c
5498 binding for an attribute.
5500 * cspi/spi_hypertext.c:
5502 Changed getImageDescription to correctly call the
5503 binding for an attribute.
5505 * cspi/spi_selection.c:
5506 Changed getNSelectedChildren to correctly call the c
5507 binding for the attribute.
5508 Changed refSelectedChild to getSelectedChild.
5512 Changed getCaption to return an Accessible.
5513 Fixed calls which retrieve attributes.
5514 Changed refAt to getAccessibleAt.
5515 Changed getNSelectedRows and getNSelectedColumns to
5519 Changed getCharacterExtents and getPointAtOffset to accept an
5520 AccessibleCoordType.
5522 Changed calls which retrieve attributes.
5523 Changed refRunAttributes to getAttributes.
5528 * idl/Hyperlink.idl:
5529 Changed n_anchors attribute to nAnchors to keep naming
5530 convention consistent.
5533 Made Table inherit from Bonobo::Unknown.
5534 Added nSelectedColumns and nSelectedRows attributes.
5537 Made Value inherit from Bonobo::Unknown.
5539 * libspi/hyperlink.c:
5540 Change for nAnchors attributte name change.
5542 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5550 Added interface implementation c files to list of
5551 includes so they are included in libcspi.
5554 Changed prototype of AccessibleAction_doAction to return a
5556 Changed prototype of AccessibleTable_getCaption to
5557 return an Accessible.
5558 Changed prototype of AccessibleTable_getSelectedRows
5559 and AccessibleTable_getSelectedColumns to
5560 return a long (returns the number of selected rows
5561 or columns respectively).
5562 Changed name of AccessibleText_refRunAttributes to
5563 AccessibleText_getAttributes.
5564 Changed prototype of AccessibleText_getCharacterExtents to
5565 return a void rather than a boolean.
5566 Added support for a AccessibleCoordType parameter
5567 specifying what type of coordinates are desired.
5568 Added an AccessibleCordType parameter to
5569 AccessibleText_getPointAtOffset.
5571 * cspi/spi_accessible.c:
5572 Added code to return the outstanding interfaces from
5573 Accessible_queryInterface.
5575 * cspi/spi_action.c:
5577 Corrected call to getNActions to call the c binding
5580 * cspi/spi_editabletext.c:
5582 Changed name from setRunAttributes to setAttributes.
5584 * cspi/spi_hyperlink.c:
5586 Changed call to getNAnchors to correctly call the c
5587 binding for an attribute.
5589 * cspi/spi_hypertext.c:
5591 Changed getImageDescription to correctly call the
5592 binding for an attribute.
5594 * cspi/spi_selection.c:
5595 Changed getNSelectedChildren to correctly call the c
5596 binding for the attribute.
5597 Changed refSelectedChild to getSelectedChild.
5601 Changed getCaption to return an Accessible.
5602 Fixed calls which retrieve attributes.
5603 Changed refAt to getAccessibleAt.
5604 Changed getNSelectedRows and getNSelectedColumns to
5608 Changed getCharacterExtents and getPointAtOffset to accept an
5609 AccessibleCoordType.
5611 Changed calls which retrieve attributes.
5612 Changed refRunAttributes to getAttributes.
5617 * idl/Hyperlink.idl:
5618 Changed n_anchors attribute to nAnchors to keep naming
5619 convention consistent.
5622 Made Table inherit from Bonobo::Unknown.
5623 Added nSelectedColumns and nSelectedRows attributes.
5626 Made Value inherit from Bonobo::Unknown.
5628 * libspi/hyperlink.c:
5629 Change for nAnchors attributte name change.
5632 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5634 implementations-- made server implementations own AtkObject pointers
5635 rather than their respective AtkInterrface pointers to fix
5636 refcounting. AtkHyperlink is still broken.
5638 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5639 * cspi/spi_accessible.c:
5640 Added method Accessible_Role_getName(),
5641 and requisite string array (role_names).
5642 Added conversion string_from_corba_strin() call
5643 to Accessible_getName and _getDescription.
5644 * libspi/accessible.c:
5645 Added implementation for Accessible_getRole()
5647 Added festival support, used if environment variable
5650 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5652 * at-bridge/bridge.c:
5653 Now allocate Accessibility_Event using
5654 Accessibility_Event__alloc() instead of g_new0().
5655 * libspi/accessibleeventlistener.c:
5656 Initialize AccessibleEventListener->callbacks to NULL.
5657 Fixed accessible__event_listener_init() param, changed to
5658 "AccessibleEventListener *" type.
5659 Changed a bonobo_object_release_unref() call to
5660 Accessibility_Accessible_unref().
5661 * libspi/listener.c:
5662 Changed Bonobo_Unknown_unref to (equivalent)
5663 Accessibility_Accessible_unref.
5664 * libspi/registry.c:
5665 Changed bonobo_object_release_unref to
5666 Accessibility_Accessible_unref.
5668 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5671 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5672 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5673 spi-util.c spi-util.h
5674 Implementations for C bindings to remaining accessibility
5677 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5680 changed return value of Action from void to boolean to
5681 bring in line with ATK.
5684 Changed getText funcions to return "out" start and end offsets.
5685 Changed getAttributes to take and offset and return the start
5686 and end offset of the attribute run.
5687 Changed getOffsetAtPoint and getCharacterExtents to take an
5688 enum describing whether coordinates are window or screen.
5691 libspi/action.c libspi/action.h libspi/editabletext.c
5692 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5693 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5694 libspi/image.h libspi/selection.c libspi/selection.h
5695 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5696 libspi/value.c libspi/value.h
5697 Added server implementations for outstanding ATK interfaces
5698 not yet implemented.
5700 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5703 Added (missing) getName() method.
5704 Made nActions an attribute.
5705 * idl/EditableText.idl:
5706 Changed order of params in setAttributes.
5707 * idl/Hyperlink.idl:
5708 Removed getAnchor, added getURI.
5710 Changed attributes to methods, for efficiency
5711 (so that getting extents can be done in one call)
5712 * idl/Selection.idl:
5713 Changed nSelectedChildren to attribute, and re-indented.
5714 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5716 * idl/Text.idl: reformatted to match our coding style.
5717 (temporarily?) removed getRowColumnAtOffset().
5718 Changed text selection API to support multi-select and
5719 non-contiguous selections, as in ATK.
5720 * idl/Value.idl: changed some methods to attributes.
5722 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5724 * libspi/listener.c(impl_notify_event):
5725 BonoboUnkown_unref the source instead
5726 of bonobo_object_release_unref - the ORB
5727 handles the releasing.
5729 * configure.in: require ORBit-2.3.94 for
5732 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5734 Tagged CVS repository 'EA_1_0'.
5735 * README.EARLY_ACCESS:
5736 Alphabetized acknowledgements list, and
5738 Listed some known dependencies of at-spi.
5740 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5742 * docs/at-spi-docs.sgml:
5743 * docs/at-spi-sections.txt:
5744 * docs/at-spi-overrides.txt: (Added zero-length file)
5745 Documentation improvements - gtk-doc should build
5746 docs for all implemented C bindings now.
5749 * cspi/spi.c: (New file)
5750 * cspi/spi_event.c: (New file)
5751 * cspi/spi_registry.c: (New file)
5752 * cspi/spi_accessible.c: (New file)
5753 * cspi/spi_application.c: (New file)
5754 * cspi/spi_component.c: (New file)
5755 Split spi_main.c into six parts, and included them from
5756 "spi.c". This is a bit of a hack, probably temporary,
5757 but required by gtk-doc, apparently.
5759 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5762 * docs/at-spi-docs.sgml:
5763 * docs/at-spi-sections.txt:
5765 Initial checkins/modifications for gtk-doc generation.
5768 Added (missing) interface query methods to Accessible's C binding.
5770 Added GenericInterface type definition.
5772 Added query for AccessibleComponent interface to focus event handler.
5773 Added printout of bounding box for focussed component.
5774 * libspi/component.c:
5775 Added partial implementation for AccessibleComponent to C binding.
5776 * idl/Application.idl:
5777 * libspi/registry.c:
5778 * libspi/listener.c:
5779 * libspi/application.c:
5780 * libspi/application.h:
5781 Changed "ID" attribute type from string to long.
5783 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5787 Made method naming consistent: methods taking object args
5788 start with uppercase, other methods (except those using
5789 acronyms) start with lowercase. Underscores delimit between
5790 object names and method names:
5791 SPI_init() - uppercase since it starts with an acronym.
5792 getDesktopCount () - lowercase start since no object param0.
5793 Accessible_getName() - uppercase object type name, studlyCaps method
5797 Added gtk-doc documentation for all currently implemented
5798 methods in the C bindings API.
5800 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5802 * Makefile.am : changed build order to build test last.
5805 Changed "createEventListener" to "CreateEventListener".
5806 * libspi/accessibleeventlistener.c :
5807 Bugfix for addition of callbacks.
5808 * test/Makefile.am :
5809 * test/simple-at.c :
5810 Added new test that uses the C bindings API.
5812 * libspi/listener.c :
5813 * libspi/registry.c :
5814 * libspi/accessibleeventlistener.c :
5815 * at-bridge/bridge.c :
5816 Renamed member "target" of Accessibility_Event to "source",
5817 which is more descriptive.
5820 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5824 * cspi/Makefile.am :
5825 Added makefile support for at-spi/cspi directory.
5828 * cspi/spi-listener.h : (NEW FILE)
5829 Added support for/use of spi-listener.h.
5831 C bindings now build successfully, with no warnings.
5832 * libspi/accessibleeventlistener.h : (NEW FILE)
5833 * libspi/accessibleeventlistener.c : (NEW FILE)
5834 * libspi/Makefile.am :
5835 Added new object type "AccessibleEventListener"
5836 which inherits from Listener, and allows attachment
5837 of in-process callbacks (so that a client with a listening
5838 object instance can add functionality to the local
5839 implementation, dynamically).
5841 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5843 * libspi/accessible.c:
5844 Add implementation for get_index_in_parent().
5846 Added #include of "spi-roletypes.h", and
5847 added enumerated type AccessibleCoordType.
5848 Added definition for KeystrokeListener (function type).
5851 * cspi/spi-statetypes.h :
5852 * cspi/spi-roletypes.h :
5854 Added these headers, used by spi.h.
5856 Added code (NOTE: not yet built by make).
5858 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5860 * libspi/Makefile.am: generate imodule
5861 at the same time as other idl compiler
5864 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5865 * libspi/registry.c :
5866 * libspi/application.c :
5867 * idl/Application.idl :
5868 Made registration with toolkit an application method,
5869 which is required since each app has its own toolkit static
5870 environment. Thus the bridge must register for
5871 notification of toolkit events from each application in turn.
5872 Toolkit notifications are now successfully registered for, and
5873 sent to the listening at client.
5875 Changed toolkit event string to use hyphens rather than underscores.
5876 * libspi/listener.c :
5877 listner now gives more info in debug mode - it reports the
5878 name of the event received, as well as the name of the source.
5881 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5883 * libspi/registry.c :
5884 added more implementation for toolkit events.
5885 Fixed bug such that toolkit event registrations
5886 (via atk) use the whole event name string, not
5888 Removed a useless call to an ORBit_ method.
5889 * at-bridge/bridge.c :
5890 Removed unused local sbuf[] variable.
5892 We now register for Gtk:GtkWidget:button_press_event
5893 events as well as "focus:" events.
5895 Add some more API from Registry.idl that was missing,
5896 for keystroke listening, keystroke and mouse event
5897 synthesis, and enumeration of accessible desktops.
5899 2001-08-16 Michael Meeks <michael@ximian.com>
5901 * configure.in: use AM_GLIB_GNU_GETTEXT.
5903 * Makefile.am (SUBDIRS): kill intl.
5905 2001-08-15 Michael Meeks <michael@ximian.com>
5907 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5909 * configure.in: upd.
5911 * configure.in: depend on a recent bonobo-activation that
5912 will find our server files ...
5914 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5916 * libspi/accessible.c : accessible_new() :
5917 Now we add the Component interface via bonobo_object_add_interface,
5918 if the contained AtkObject implements AtkComponent.
5919 * libspi/accessible.h : now include "component.h"
5920 * libspi/component.h :
5921 * libspi/component.c : added files - implementation of
5922 bonobo wrapper object for Accessibility/Component
5923 * libspi/listener.c :
5924 Added test code to check for Accessibility/Component:1.0
5925 interface and report whether it is implemented by the
5927 * libspi/registry.c :
5928 Now we check for not only the hash of the whole event
5929 string before relaying the event, we also check the
5930 "minor" event string (without the detail string).
5931 This allows event listeners to be registered against
5932 all events of a certain major+minor type, or just
5933 against a specific major+minor+detail type.
5934 * libspi/accessible.c :
5935 Added implementations for Accessible:get_parent(),
5936 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5937 * libspi/registry.c :
5938 * libspi/listener.c :
5939 Replaced calls to Accessibility_Accessible_ref() and
5940 Accessibility_Accessible_unref() with
5941 calls to bonobo_object_dup_ref() and
5942 bonobo_object_release_unref(), so that the CORBA object
5943 is dup-ed and released when relayed, as well as the bonobo object.
5945 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5947 * libspi/Makefile.am,
5948 registryd/Makefile.am,
5949 at-bridge/Makefile.am.
5950 test/Makefile.am, configure.in:
5951 reverse previous changes.
5953 * /idl/Image.idl: fix typo.
5955 * test/Makefile.am: put DEBUG_FLAGS
5958 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5960 * test/app.c: use argv[0] instead of
5963 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5965 * libspi/Makefile.am,
5966 registryd/Makefile.am,
5967 at-bridge/Makefile.am.
5968 test/Makefile.am, configure.in:
5969 cleanup, replace individual LIBS/CFLAGS with
5970 AT_COMMON_{LIBS|CFLAGS}.
5974 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5976 * configure.in, libspi/Makefile.am:
5977 Change IDL path checking for bonobo-activation
5980 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5982 * registryd/registry.c : separated event listeners to use
5983 3 separate lists (focus, window, toolkit). Began testing
5984 event names against hashes before relaying events.
5985 * test/at.c : now register for events of type "focus:"
5986 * test/app.c : now generate events of type "focus:"
5987 * at-bridge/bridge.c : register with ATK for focus events,
5988 and we now relay those focus events to any "focus:" listeners.
5989 This now works with the bridge as a GTK_MODULE when running test/at.
5990 * libspi/registry.c :
5991 * libspi/listener.c :
5992 now we ref event sources before propagating, and unref on receipt.
5993 * libspi/registry.c :
5994 some changes to internal structs, to support event typestring hashes.
5995 * text/app.c : changed the way the appname is generated.
5996 * cspi : added directory that will hold the C bindings library for
5997 non-CORBA/bonobo-savvy clients.
5998 * cspi/spi.h : header file that contains the function prototypes for the C binding.
5999 * idl/Component.idl : added in parameter to indicate coord system for
6000 geometry-related calls.
6001 * idl/Hyperlink.idl : added readonly n_links attribute
6002 * idl/Image.idl : changed methods to attributes.
6004 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6006 * at-bridge/Makefile.am: link against
6007 ../libspi/libspi.la instead of -lspi.
6009 * at-spi/test/app.c: include
6010 bonobo-activation.h. Use a default appname
6011 if one is not provided.
6013 2001-08-14 Bill Haneman <bill.haneman@sun.com>
6015 * idl/Registry.idl : temporarily changed register_Application
6016 to oneway, to work around issue with initial registration
6018 * idl/Application.idl : changed attribute "id" from readonly
6019 to read-write, since it needs to be assigned by Registry.
6020 * registryd/registryd.c : added call to set application id
6022 * registryd/registry.c : changed de-registration procedure to
6023 use CORBA_Object_hash() to find matching object ref in application
6024 lists and listener lists.
6025 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
6026 began distinguishing between event types (work in progress).
6028 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6031 * libspi/application.c:
6032 Added implementations for get/set id, get_toolkitName,
6034 * registryd/registryd.c :
6038 Converted from use of OAF to bonobo-activation.
6039 * libspi/desktop.h :
6040 * libspi/desktop.c :
6042 Removed references to atksimpleobject, since base atkobject
6043 implementation now provides functionality we need.
6044 * libspi/atksimpleobject.c :
6045 * libspi/atksimpleobject.h :
6050 * at-bridge/Makefile.am
6051 * at-bridge/bridge.c
6054 Added directory "bridge" and contents, and added dependencies
6055 in Makefile.am/configure.in.
6056 Initial checkin of "at-bridge".
6057 This code is a GTK_MODULE which automatically registers
6058 GTK+ apps with the accessibility registry, using an object
6059 reference to the root ATK object.
6061 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6063 * po/Makefile.in.in: Remove. Again. If this
6064 doesn't get autogenerated - you need to update
6067 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6069 * po/Makefile.in.in: Add. Again.
6071 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6073 * libspi/accessible.c : added support for 'description' property.
6074 * libspi/accessible.c
6076 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6077 (since the two are now equivalent in libbonobo)
6085 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6086 Bonobo::Unknown as does Accessibility::Accessible.
6087 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6088 interface with Bonobo::Stream, since it was redundant with it.
6089 (The Stream returned by a StreamableContext object is expected to
6090 implement only a subset of Bonobo::Stream)
6092 2001-07-28 Anders Carlsson <andersca@gnome.org>
6094 * libspi/accessible.c (accessible_object_finalize): Change
6095 g_free to g_object_unref since the AtkObject is a GObject.
6097 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6099 * idl/Accessibility.idl: add new IDL files
6102 * idl/Action.idl: Definitions of actionable UI object
6103 * idl/Component.idl: Definitions of UI component geometry, etc.
6104 * idl/Hyperlink.idl: Defs of hyperlink behavior
6105 * idl/Image.idl: Def of accessible image
6106 * idl/Selection.idl: Definition of UI object with selectable children
6107 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6108 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6109 * idl/Text.idl: Interface defs for UI elements with complex textual content
6110 * idl/Value.idl: Definition of UI element that is a value controller or display
6112 2001-07-27 Michael Meeks <michael@ximian.com>
6114 * po/Makefile.in.in: remove autogenerated file from CVS.
6116 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6119 * idl/Registry.idl: include guard.
6121 * idl/Accessibility.idl: Add, and include all the other IDL
6124 * idl/*.idl: remove mass of pragmas etc.
6126 2001-07-26 Michael Meeks <michael@ximian.com>
6128 * registryd/Makefile.am (registryd_SOURCES): remove
6131 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6133 * libspi/.cvsignore, registryd/.cvsignore,
6134 test/.cvsignore: updated.
6136 * po/Makefile.in.in: gettext update.
6138 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6140 * initial CVS checkin
6142 2001-06-29 Michael Meeks <michael@ximian.com>
6144 * configure.in: add AM_CONFIG_HEADER to gen config.h