1 2003-06-26 Bill Haneman <bill.haneman@sun.com>
3 * registryd/registry.c:
4 (spi_registry_object_finalize): Unref the deviceeventcontroller.
5 (registry_defer_on_event): Defer focus: events, this is an
6 improvement to the patch for bug #108664.
8 * TODO: Update with 2.4/"Dev Complete" items.
10 2003-06-26 Padraig O'Briain <padraig.obriain@sun.com>
12 * atk-bridge/bridge.c:
13 (spi_atk_bridge_init_event_type_consts): Ensure that this function only
14 looks up signals once.
15 (atk_bridge_init): Call spi_atk_bridge_init_event_type_consts only
16 if doing registration.
17 (spi_atk_bridge_toplevel_added): Call spi_bridge_init_event_type_consts
18 when doing registration.
20 This fixes bug #115014.
22 2003-06-25 Padraig O'Briain <padraig.obriain@sun.com>
24 * atk-bridge/bridge.c:
25 (atk_bridge_init): Add signal handler for children-changed:remove on
26 root when in a BonoboComponent.
27 (spi_atk_bridge_toplevel_added): Call spi_atk_bridge_do_registration
28 for first toplevel only other incrememt variable toplevels.
29 (spi_atk_bridge_toplevel_removed): For last toplevel deregister
30 application and remove listeners.
31 (spi_atk_bridge_get-registry): Change NULL to CORBA_OBJECT_NIL for
33 (spi_atk_deregister_event_listeners): New function which removes
35 (reinit_register_vars): New fuction which reinitializes variables.
37 This fixes bug #111578.
39 2003-06-13 Bill Haneman <bill.haneman@sun.com>
41 * configure.in: version 1.3.4.
43 * cspi/spi_accessible.c:
44 Changed test of obj==NULL to obj==CORBA_OBJECT_NIL.
47 2003-06-13 Michael Meeks <michael@ximian.com>
49 * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
51 * cspi/spi_main.c (cspi_peek_ev): impl.
53 2003-06-11 Padraig O'Briain <padraig.obriain@sun.com>
55 * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
57 * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
59 * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role
62 * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
64 * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
65 for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
67 2003-06-11 Bill Haneman <bill.haneman@sun.com>
69 * libspi/streamablecontent.h:
70 * libspi/streamablecontent.c:
71 New files, provide implementation/wrappers for
72 Accessibility_StreamableContent.
74 * cspi/spi_streamablecontent.c:
75 Connected the C wrappers to the libspi C bindings.
76 (AccessibleStreamableContent_close): New method.
79 (AccessibleStreamableContent_close): New method, needed
80 since we have an "open, [seek], read, close" model in cspi.
82 2003-06-11 Bill Haneman <bill.haneman@sun.com>
84 Fix for #108664; Padraig's revision of my original patch.
86 * registryd/registry.h:
87 Added event queue list, is_queuing, and exit_notify_timeout
88 to the registry struct.
90 * registryd/registry.c:
91 (registry_init): Initialize new struct from registry.h.
92 (impl_registry_notify_event):
93 Filter events before notifying, in case some need to be
95 (registry_filter_event): New,
96 we defer certain incoming events (for instance
97 window:deactivate) because we may wish to hide
98 or reject them based on pending events. This is
99 mostly a workaround for bug #108664.
100 (registry_queue_event, registry_start_queue): New.
101 (registry_defer_on_event): Test event to see if it
103 (registry_reset_on_event): Returns TRUE if the
104 event should cause a queue reset.
105 (registry_discard_on_event): Returns TRUE if the event
106 should cause the previous queue contents to be discarded.
107 (registry_timeout_flush_queue): Flushes the pending event
108 queue if no reset/discard-triggering events have come in
109 within the timeout period.
110 (registry_emit_event): New.
111 (registry_clone_notify_context): New, used when queueing the
112 event notify contexts.
114 2003-06-10 Bill Haneman <bill.haneman@sun.com>
116 * configure.in: Version revved to 1.3.2, lt 0.9.2
117 Incremented ATK required version to 1.3.4.
119 * cspi/spi_registry.c:
120 (SPI_generateKeyEvent):
121 We now pass the keystring along if it's non-null.
123 * registryd/deviceeventcontroller.c:
124 (keysym_mod_mask): New method, returns modifier mask
125 required to generate a keysym from a given keycode.
126 (dec_synth_keysym): New method.
127 (dec_synth_keystring): New method.
128 (dec_get_modifier_state): New method.
129 (dec_lock_modifiers): New
130 (dec_unlock_modifiers): New.
131 (dec_keysym_for_unichar): New, rather brute-force
132 conversion from UCS-4 to X KeySyms. Only works for
133 Latin at the moment, with partial implementations for
134 Greek, Hebrew, and (incomplete) Katakana.
135 (impl_generate_keyboard_event): Now implement
136 "KEYSTRING" synthesis and implement "KEYSYM"
138 (keycode_from_keysym): Improved, passes a returned
139 modmask value now if the corresponding param is non-NULL.
141 Fixes bugs #92143 and #109776.
144 * test/keysynth-test.c:
145 New test program for key synthesis, to confirm fixes for
149 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
151 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
153 * cspi/spi_accessible.c (cspi_init_relation_type_table):
154 Add line for RELATION_POPUP_FOR
156 * docs/reference/cspi/tmpl/spi_relation.sgml:
157 Add relation SPI_RELATION_POPUP_FOR
159 * docs/reference/cspi/tmpl/spi_stateset.sgml:
160 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
162 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
164 * libspi/relation.c (spi_init_relation_type_table):
165 Add line for RELATION_POPUP_FOR
167 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
169 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
170 there are still windows which have not been deleted and emit
171 window:deactivate, if necessary and window:destroy events.
172 This fixes bug #114370. The change on June 5th was not correct.
174 2003-06-09 Bill Haneman <bill.haneman@sun.com>
176 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
179 (SPI_dupString): Allow dup-ing of a string such that it's safe to
181 New methods for client exception handling and interception.
182 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
183 (SPI_exceptionHandlerPop): You guessed it...
184 (SPI_getSourceType): Return the type of object which offended.
185 (SPI_getExceptionCode): Return an enum code telling, possibly,
186 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
187 (SPIAccessibleException_getSource): get the source object for
188 exceptions that come from Accessibles, if SPIExceptionSourceType is
189 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
190 (SPIException_getDescription): New, returns a string description of
191 the problem. [Not yet a stable ABI, strings are not frozen]
193 * cspi/spi-private.h:
194 Added implementation details of opaque SPIException
198 Implementations of above. Also
199 (_cspi_exception_throw): new private method that
200 dispatches exceptions to handlers, called from cspi-bonobo.c
202 * cspi/bonobo/cspi-bonobo.c:
203 (cspi_check_ev): call _cspi_exception_throw.
204 Don't print a warning message if the exception has been
205 handled by _cspi_exception_throw.
207 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
209 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
210 there are still windows which have not been deleted and emit
211 window:deactivate, if necessary and window:destroy events.
212 This fixes bug #114370.
214 2003-06-03 Bill Haneman <bill.haneman@sun.com>
217 (cspi_accessible_is_a): Make non-fatal
218 if the object reference is dead.
220 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
222 * cspi/spi_main.c: #include <stdio.h>
223 * test/simple-at.c: ditto
224 * test/event-listener-test.c: ditto
225 * test/screen-review-test.c: ditto
227 2003-05-30 Michael Meeks <michael@ximian.com>
229 * test/test-simple.c (main): use CORBA_ORB_perform_work
230 instead of an unnecessary linc_ call.
232 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
234 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
235 Add SPI_STATE_INDETERMINATE.
237 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
240 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
242 * libspi/stateset.c (init_state_type_tables): Add support for
245 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
247 * configure: Update versions of atk and gail required.
248 This fixes bug #113268.
250 2003-05-02 Bill Haneman <bill.haneman@sun.com>
252 * configure.in: Revved micro version to 1.3.1 (because of build fix).
254 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
256 * libspi/Makefile.am:
257 Ensure headers are generated before being used by c sources.
259 2003-05-01 Bill Haneman <bill.haneman@sun.com>
262 Simplified lt versioning rules.
263 Incremented version to 1.3.0, to indicate that we're on the
266 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
268 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
269 Add MKDB_OPTIONS=--outtput-format=xml
271 * docs/reference/cspi/at-spi-cspi-docs.sgml
272 docs/reference/idl/at-spi-idl-docs.sgml:
273 Convert to Docbook XML.
275 This fixes bug #111793.
277 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
279 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
280 AcccessibleKeyEventType, AccessibleKeyMaskType.
282 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
284 * cspi/state-types.h: Add documentation for AccessibleState.
286 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
287 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
288 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
289 AccessibleComponentLayer.
291 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
294 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
296 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
297 Accessible. Add description of AccessibleEvent,
298 AccessibleEventListenerCB.
300 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
303 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
304 documentation. Add description of AccessibleKeystrokeListenerCB,
305 AccessibleKeyEventMask, AccessibleModifierMaskType,
306 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
307 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
309 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
312 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
315 This fixes bug #104730.
317 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
319 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
320 Set is_text field of Accessibility_DeviceEvent data structure.
322 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
323 is-text field of AccessibleDeviceEvent data structure.
325 This addresses part of bug #108666.
327 * registryd/devcieeventcontroller.c: Unset debug option.
329 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
332 (cpi_initial_relation_type_table): New function which initializes
333 mapping between Accessibility_RelationType and AccessibleRelationType.
334 (cspi_relation_type_from_spi_relation_type): New function which
335 translates an Accessibility_RelationType into an AccessibleRelationType.
336 (AccessibleRelation_getRelationType): Use
337 cpi_relation_type_get_spi_relation_type to return correct value.
338 (spi_state_to_corba): Return correct type for default case.
340 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
341 Use Accessibility_EventType instead of Accessibility_KeyEventType.
343 * cspi/cspi-bonobo-listener.c:
344 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
347 * libspi/accessible.c, libspi/action.c, libspi/application.c,
348 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
349 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
350 libspi/image.c, libspi/listener.c, libspi/selection.c,
351 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
352 registryd/desktop.c, registryd/registry.c:
353 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
355 * libspi/eventlistener.c
356 Remove semicolon after BONOBO_TYPE_FUNC.
359 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
360 (spi_init_relation_type_table): Initialize using correct type.
362 * registryd/desktop.c:
363 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
364 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
365 of Accessibility_KeyEventType.
367 * test/key-listener-test.c (report_tab_key_event): Use fprintf
370 * tests/simple-at.c, tests/screen-review-test.c:
371 Add include for <strings.h>.
373 * tests.stress-test.c:
374 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
376 These changes fix compiler warnings when using FORTE compiler on
377 Solaris; fixes bug #107479.
380 2003-04-10 Bill Haneman <bill.haneman@sun.com>
383 * configure.in: revved to 1.1.10
386 (SPI_KEYMASK_NUMLOCK): Added.
388 * registryd/deviceeventcontroller.c:
389 (spi_key_event_matches_listener): AND with a smaller
390 bitmask (as we should).
391 (spi_dec_translate_mask):
392 New method, sets the virtual NumLock modifier bit
393 if numlock is on. Eventually it can handle other virtual
394 modifier bits if needed, or other marshalling from
395 at-spi modifier masks to platform (X) masks.
396 (spi_dec_key_listener_new):
397 Call spi_dec_translate_mask to set up virtual mod bits
398 in the 'mask' field when creating a new listener struct.
399 (spi_dec_emit_modifier_event):
400 Set the virtual (i.e. NumLock) bits before emitting event.
401 (spi_controller_register_with_devices):
402 Query for the NumLock modifier 'physical' bit if Xkb is
403 present, for use in above methods.
407 2003-04-10 Bill Haneman <bill.haneman@sun.com>
409 * registryd/deviceeventcontroller.c:
410 (spi_keystroke_from_x_key_event):
411 Instead of checking to see if the keysym is
412 printable, check the string from XLookupString
413 if available, get the first unicode character from it,
414 and call g_unichar_isprint to determine whether the
415 is_text flag should be TRUE or FALSE.
419 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
421 * atk-bridge/bridge.c: Add support for extended events
422 * cspi/spi_event.c: Add documentation and implementation for
424 * tests/event-listener-test.c: Add tests for extended events.
426 This fixes bugs #100424 and #100426.
428 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
430 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
431 of LT_CURRENT. This fixes bug #89350.
433 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
435 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
436 number of signal parameter values before accessing them. This fixes
439 2003-04-01 Bill Haneman <bill.haneman@sun.com>
441 * configure.in: Fixed duplicate inclusion of -lspi.
442 * branched for gnome-2-2/HEAD.
443 [created tag "gnome-2-2"]
445 2003-03-07 Bill Haneman <bill.haneman@sun.com>
447 * configure.in: 1.1.9 release.
450 2003-03-07 Bill Haneman <bill.haneman@sun.com>
452 [needed by GOK, to fix bugs 107985 and 107988]
453 * registryd/deviceeventcontroller.c:
454 (spi_dec_clear_unlatch_pending):
455 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
456 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
457 (spi_dec_init_mouse_listener):Emit warning if mouse button
459 (spi_device_event_controller_forward_mouse_event):
460 Removed unnecessary parens from a conditional.
461 (global_filter_fn):Added TODO comment.
462 (impl_generate_keyboard_event):
463 Cancel a pending relatch if a 'delatching' key was
466 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
468 * atk-bridge/bridge.c:
469 Change atk_signal_child_changed to atk_signal_children_changed.
470 Reorganize code in spi_atk_bridge_signal_listener().
472 * test/event-listener-test.c:
473 Add children_changed_listener and report_children_changed_event()
474 to test AccessibleChildEvent_getChildAccessible.
476 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
478 * cspi/spi_event.c (cspi_internal_event_get_text): Change
479 g_strdup to CORBA_String_dup (bug #105291)
481 * test/event-listener-test.c (report_text_event): Add call to
484 2003-02-28 Bill Haneman <bill.haneman@sun.com>
486 * registryd/deviceeventcontroller.c:
487 (spi_keystroke_from_x_key_event):
488 Fix string and keysym return codes to match modifier state.
491 2003-02-28 Bill Haneman <bill.haneman@sun.com>
493 * registryd/deviceeventcontroller.c:
494 (spi_keystroke_from_x_key_event):
495 Fix segv due to improper use of isprint(c). [bug #107254]
497 2003-02-24 Bill Haneman <bill.haneman@sun.com>
500 (get_accessible_text_boundary_type):
501 Move default return value to (new) default case in switch.
502 (get_accessible_text_clip_type):
503 Move default return value to (new) default case in switch.
505 * libspi/application.c:
506 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
507 Remove unused methods.
508 (impl_accessibility_application_register_object_event_listener):
509 Remove unused methods.
512 Added #include of <math.h>.
514 * registryd/deviceeventcontroller.c:
515 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
516 we don't currently use this method.
517 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
519 (impl_generate_key_event):
520 Remove unused variables.
521 (impl_generate_mouse_event):
522 Initialize button to zero, just in case we get an invalid
523 input. Added support for mouse buttons 4 and 5.
524 (spi_device_event_controller_new):
525 Removed unused variable declaration for 'private'.
527 Added #include of <gdk/gdk.h>
529 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
531 * configure.in: Update to work when X is not installed in expected
532 location. Fixes bug #105836.
534 * atk-bridge/bridge.c
535 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
537 (spi_atk_register_event_listener): Add signal listener for
539 (spi_atk_bridge_signal_listener): Event event when link-selected
540 signal is emitted. (bug #104622)
542 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
543 on returned string. (bug #105291)
545 * test/event-listener-test.c: Add test for link-selected.
547 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
549 * atk-bridge/Makefile.am: Correct typo in previous commit.
551 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
553 * atk-bridge/Makefile.am: Allow for build directory to be different
554 from source directory
556 * registryd/Makefile.am: Allow for build directory to be different
557 from source directory
561 2003-01-29 Bill Haneman <bill.haneman@sun.com>
564 Fixed dependencies for libcspi so that libspi gets pulled in
565 properly. Fixes 104741.
569 Clean up inline docs a little.
571 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
573 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
574 This is done by implementing AtkComponent for SpiAtkDesktop, which is
575 the AtkObject within an SpiDesktop.
576 This addresses bug #101524.
578 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
579 Remove call to gdk_init().
581 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
582 so that Display is set when SpiDesktop is created.
584 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
586 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
587 This fixes bug #102830.
589 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
591 * test/test-simple.c: Update to take account of fact that GailButton
592 now implements AtkText.
593 (create_text_window): Set name on AtkObject for GtkEntry.
594 (validate_accessible): Check accessible name before calling test_text().
596 * libspi/Makefile.am: Fix problem with building outside of source
597 directory. Bug #98120.
599 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
600 typo in documentation comments. Bug #94275.
602 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
604 * libspi/text.c (impl_getBoundedRanges): Bug fix.
606 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
609 Add includes to avoid compiler warnings on Solaris.
610 (impl_getRangeExtents): Bug fix.
612 2002-12-17 Bill Haneman <bill.haneman@sun.com>
614 Fix for 100944, [API addition approved by Gman and murrayc].
621 * idl/Accessibility_Text.idl:
622 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
623 (Text::getRangeExtents): New method for efficient
624 bounds query of a text range.
625 (Text::getBoundedRanges): New method for efficient
626 clipping of text to bounding boxes.
627 (unImplemented7, unImplemented8):
628 Removed these padding methods to preserve bincompat.
631 (impl_getRangeExtents): implementation of new IDL.
632 (impl_getBoundedRanges): implementation of new IDL.
633 (SpiTextRect): Internal use struct.
634 (_spi_text_rect_union): internal method, calculates union of two
635 SpiTextRect bounding rects.
636 (_spi_text_range_seq_from_gslist): internal method, allows us
637 to build our sequence efficiently as a gslist then convert it
639 (_spi_bounds_contain): internal method, determines whether
640 a text character is "in" or "out" of a clip rect according to
641 values of TEXT_CLIP_TYPE.
642 (spi_text_class_init): Initialize the new methods in the epv.
645 (AccessibleTextClipType): New enum used by screen review api.
646 (AccessibleTextRange): New struct used by screen review api.
647 (AccessibleText_getRangeExtents):
648 cspi binding for Accessibility_Text_getRangeExtents.
649 (AccessibleText_getBoundedRanges):
650 cspi binding for Accessibility_Text_getBoundedRanges.
651 (AccessibleTextRange_freeRanges): convenience method.
654 (AccessibleText_getRangeExtents):
655 cspi binding for Accessibility_Text_getRangeExtents.
656 (AccessibleText_getBoundedRanges):
657 cspi binding for Accessibility_Text_getBoundedRanges.
658 (AccessibleTextRange_freeRanges): convenience method.
659 (get_accessible_text_clip_type): internal conversion method.
660 (get_accessible_text_ranges_from_range_seq): internal conversion method.
662 * registryd/deviceeventcontroller.c:
663 (spi_dec_mouse_check):
664 Improved behavior for mouse:abs events
665 [same granularity as mouse:rel events, and no
666 events when mouse is idle].
668 2002-12-16 Michael Meeks <michael@ximian.com>
670 * cspi/spi_accessible.c (spi_state_to_corba): rename.
672 * libspi/stateset.c (state_spi_to_atk): split out
673 ( fix several remote array bounds nasties )
674 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
675 (impl_remove): make safe from array bounds issues.
676 (spi_atk_state_from_spi_state): impl.
678 * libspi/stateset.h (spi_state_set_cache_is_empty):
679 add a set of wrapper defines to get layering right.
681 * cspi/spi_accessible.c: update state set stuff to
684 2002-12-14 Michael Meeks <michael@ximian.com>
686 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
687 to avoid 2 roundtrips to the registry per key event
688 (spi_atk_bridge_key_listener): upd.
689 (deregister_application): release the dec.
691 * registryd/registry.c (notify_listeners_cb):
692 bin lots of re-enterant complexity - we no longer
693 do a round-trip bonobo ref here, ensure that a single
694 listener's exception failure won't poison all other
696 (impl_registry_notify_event): bin obvious memory leak.
698 2002-12-13 Michael Meeks <michael@ximian.com>
700 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
701 init the ev so the error is meaningful.
702 (spi_atk_bridge_key_listener): ditto.
704 * cspi/spi_main.c (cspi_ev): init the ev so we start
705 with a clean slate, otherwise the first exception
708 * cspi/spi_text.c (get_accessible_text_boundary_type):
709 add a fallthrough for no warnings.
711 * cspi/spi_registry.c: prune unused warnings.
713 * cspi/spi_main.c (cspi_object_take): fix
714 mind-blowing brokenness ( by watching the compile
717 * cspi/spi_accessible.c (Accessible_getStateSet):
718 re-impl. to use an AtkStateSet.
719 (spi_state_type_from_accessible_state),
720 (init_state_table): bin these.
722 * libspi/stateset.c (spi_atk_state_set_from_sequence):
724 (atk_state_set_from_accessibility_state_set): here.
726 * cspi/spi_accessible.c (spi_state_to_atk): impl.
727 (AccessibleStateSet_contains, AccessibleStateSet_ref),
728 (AccessibleStateSet_unref, AccessibleStateSet_contains),
729 (AccessibleStateSet_add, AccessibleStateSet_remove),
730 (AccessibleStateSet_equals, AccessibleStateSet_compare),
731 (AccessibleStateSet_isEmpty): re-write to use a local
734 2002-12-13 Bill Haneman <bill.haneman@sun.com>
736 * configure.in: Revved to 1.1.7 (new keymask vals).
738 2002-12-10 Bill Haneman <bill.haneman@sun.com>
741 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
743 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
746 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
747 to compare two CORBA_TypeCodes.
748 (cspi_internal_event_add): Silence warning from FORTE compiler.
750 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
751 avoid implicit declaration of functions.
753 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
755 * atk-bridge/bridge.c:
756 (spi_atk_bridge_init_event_type_consts): Store signal id for
757 active-descendant-changed signal.
758 (spi_atk_register_event_listeners): Add signal listener for
759 active-descendant-changed signal,
760 (spi_atk_bridge_signal_listener): Move code in function
761 spi_atk-signal_emit_event() into this function.
762 Add support for active-descendant-changed
763 Update support for child-changed signal.
764 (spi_bridge_window_event_listener): Silence warning.
766 * libspi/spi_private.[ch]:
767 (spi_init_any_object): Change second parameter from CORBA_Object to
769 Omit call to CORBA_Object_duplicate().
770 Set CORBA_any's _value to CORBA_Object*.
772 2002-12-06 Bill Haneman <bill.haneman@sun.com>
778 (AccessibleEvent_ref, AccessibleEvent_unref):
779 New methods, for persisting an event outside the emission context.
780 Must be used if the new accessor methods are to be called
781 outside of the event listener's callback.
783 * cspi/bonobo/cspi-bonobo.c:
784 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
785 as second parameter instead of NULL, so we can call
786 cspi_check_ev afterwards.
789 (cspi_object_take): New internal method,
790 converts a CORBA_Object reference to a hard ref on
791 an Accessible if possible, returning NULL if the object
792 reference is invalid or an Accessible * otherwise.
795 (AccessibleEvent_ref):
796 Increment the event's internal private refcount, and
797 add the event's internal struct to an internal cache
798 if it's not already there.
799 (AccessibleEvent_unref):
800 Decrement the event's refcount and remove it from
801 the cspi event cache if refcount==0.
802 (cspi_event_compare): New private method.
803 Compares two event structs via their ids. Used
805 (cspi_internal_event_lookup): New private method.
806 (cspi_internal_event_check): New private method,
807 a 0-order sanity check for events to make sure their
808 private data is intact.
809 (cspi_internal_event_add, cspi_internal_event_remove):
810 New private methods for managiing the event cache.
812 * cspi/bonobo/cspi-bonobo-listener.c:
814 Initialize the new private data elements (id, magic, ref_count).
816 * atk-bridge/bridge.c:
817 (spi_atk_bridge_signal_listener):
818 Fixed bug #100530, passing wrong params to emission func.
820 * registryd/deviceeventcontroller.c:
821 (spi_dec_button_update_and_emit):
822 Fixed type in mask bit operations; fix for #99799.
824 2002-12-02 Bill Haneman <bill.haneman@sun.com>
826 Removed some of the more dangerous workarounds from
827 previous commit; they are only needed by GOK, which
828 in reality should be using another method to accomplish
829 the goals. So on reconsideration some of the workarounds
832 * registryd/deviceeventcontroller.c:
833 (spi_keycodes_contain, spi_dec_init_keycode_list):
834 Removed these methods, used only by a nasty hack to try
835 and detect whether a key synthesis should be allowed
836 to reset the XKB latch state or not. This code was only
837 required to work around an interaction between GOK,
838 button events, and XKB.
839 (impl_generate_key_event):
840 Removed hack at end of key generation that tried to
841 "do the right thing" if XKB latch keys were generated
842 in the midst of button press/release pairs.
845 Added a check for HAVE_XINPUT. Not normally used yet.
847 2002-11-25 Bill Haneman <bill.haneman@sun.com>
849 Workarounds and fixes for mouse event/XKB interaction.
851 * registryd/deviceeventcontroller.c:
852 (spi_keycodes_contain, spi_dec_init_keycode_list):
853 New internal methods.
854 (spi_dec_set_unlatch_pending):
855 Split the method that tells XKB to expect an
856 unlatch (and revert it) out of the rest of the
857 event handling code. This method is called by the
858 two mouse event handlers (the poll and the filter).
859 (spi_dec_update_and_emit, spi_dec_mouse_check):
860 New methods split from spi_dec_poll_mouse_moved.
861 The second one is now called from inside the filterFn
862 when an XKB delatch event is received, to determine
863 whether to revert the delatch or not.
864 (spi_poll_mouse_moved): Refactor; also we can now
865 properly handle the case where multiple button states
866 have changed between polling cycles and we didn't get
867 notified due to another client's grab.
869 Synchronize the server while handling an XKB notification.
870 Ugly, but apparently necessary to avoid nasty races.
871 Check the mouse state on receipt of an XKB latch change,
872 to decide whether to revert the latch or not. (Latches are
873 reverted if there is an immediately preceding mouse button
874 event that a client has consumed, in which case we don't want
875 the user to see the side-effect of the event).
876 (spi_device_event_controller_forward_mouse_event):
877 Check for modifier events and fire before resetting mouse_mask_state,
878 prevents losing modifier events.
880 (impl_generate_keyboard_event):
881 If we've just generated a keyboard event for a non-shift key,
882 we don't want to revert the pending XKB latch.
883 Otherwise, check the modifier state (via a call to
884 spi_dev_mouse_check) and set the relatch mask to
885 that state before returning.
887 2002-11-24 Bill Haneman <bill.haneman@sun.com>
890 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
893 * atk-bridge/bridge.c:
894 (spi_atk_register_event_listeners):
895 Don't re-register for ATK events if the registry has died
896 and the app needs to re-register; the ATK listeners are in
897 process and doing so will cause duplicate emission.
899 * registryd/deviceeventcontroller.c:
900 (spi_poll_mouse_moved):
901 Reformat the source, detect and emit multiple button-change
902 events (i.e. if multiple buttons have changed between poll
904 Add code to detect mouse-down events even when the pointer
905 is grabbed; workaround for GOK bug 98420.
906 (spi_controller_register_with_devices):
907 Call XTestGrabControl with 'impervious' flag set to True,
908 allows us to synthesize events and query the pointer even during
909 an active grab by another client.
910 (spi_device_event_controller_forward_mouse_event):
911 Set the mouse_mask_state to the mouse_button_state from
912 the intercepted event, to synchronize the grab listener with
915 2002-11-20 Bill Haneman <bill.haneman@sun.com>
917 * cspi/spi_accessible.c:
918 (AccessibleRole_getName):
919 Added necessary strings for making this (deprecated)
920 method work with the new role types.
921 (init_role_table, role_table):
922 Added definition of SPI_ROLE_APPLICATION.
924 * libspi/spi-roletypes.h:
925 Added SPI_ROLE_APPLICATION.
927 * idl/Accessibility_Role.idl:
928 Added ROLE_APPLICATION.
930 * docs/reference/cspi/at-spi-cspi-decl.txt:
931 Added SPI_ROLE_APPLICATION to docs.
933 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
935 * cspi/spi_accessible.c
936 (cspi_init_role_table): Do not write beyond end of role_table.
937 (Accessible_getRole): Use correct type for value returned by
938 Accessibility_Accessible_getRole().
940 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
941 beyond end of role_table. (This fixes bug #98269)
943 * libspi/application.c: Add include file spi-private.h for
944 definition of spi_init_any_nil.
946 2002-11-19 Bill Haneman <bill.haneman@sun.com>
950 * libspi/spi-private.h:
951 Added DGB() macro, and extern int _dbg declaration.
953 * registryd/registry.c:
954 (definitions) storage for _dbg.
956 Get environment variable "AT_SPI_DEBUG".
957 (spi_registry_set_debug):
958 New method, to initialize _dbg value.
959 (spi_listener_struct_new, spi_registry_object_finalize):
960 (notify_listeners_cb):
961 Changed fprintfs to use DBG and g_warning().
963 * registryd/deviceeventcontroller.c:
964 (_deregister_keygrab, spi_controller_register_device_listener):
965 Changed debug/warning messages to use DBG macro.
969 Changed warning messages to use DBG macro and g_warning().
971 * atk-bridge/bridge.c:
972 (atk_bridge_init, spi_atk_bridge_get_registry):
973 (spi_atk_bridge_exit_func):
974 (spi_atk_bridge_property_event_listener):
975 Changed status, warning, and error messages to use
976 g_warning, g_message, and DBG macros.
979 Read the state of the AT_SPI_DEBUG environment variable
980 and set a local '_dbg' accordingly.
982 2002-11-19 Bill Haneman <bill.haneman@sun.com>
984 FIXES for 98836, 98842, other bugs.
987 Revved to 1.1.4, interface-age=4, binary-age=4.
989 * registryd/deviceeventcontroller.c:
991 Fixed crasher bug in last_mouse_pos initialization.
993 * registryd/registry.c:
994 (desktop_add_application, desktop_remove_application):
995 Added (and then commented out) some support for
996 object context marshalling. [TODO]
998 * atk-bridge/bridge.c:
999 (spi_atk_bridge_event_context_create):
1000 Commented out object context creation until it can
1001 be properly tested and debugged.
1003 * registryd/registry.c:
1004 (impl_registry_notify_event):
1005 Fixed crasher bug, we were calling
1006 spi_re_entrant_list_foreach () with an empty list.
1008 2002-11-18 Bill Haneman <bill.haneman@sun.com>
1010 * idl/Accessibility_Action.idl:
1011 * idl/Accessibility_Component.idl:
1012 * idl/Accessibility_Desktop.idl:
1013 * idl/Accessibility_Event.idl:
1014 * idl/Accessibility_Hyperlink.idl:
1015 * idl/Accessibility_Image.idl:
1016 * idl/Accessibility_Relation.idl:
1017 * idl/Accessibility_Selection.idl:
1018 * idl/Accessibility_State.idl:
1019 * idl/Accessibility_Value.idl:
1020 Updated unimplemented slot count to minimum of
1021 four for all interfaces, for ABI freeze.
1023 * idl/Accessibility_EditableText.idl:
1024 * idl/Accessibility_Text.idl:
1025 Updated unimplemented slot count to six
1028 * idl/Accessibility_Registry.idl:
1029 Updated unimplemented slot count to six
1030 (also for DeviceEventController),
1033 * idl/Accessibility_Table.idl:
1034 Updated unimplemented slot count to eight,
1037 * idl/Accessibility_Event.idl:
1038 Added CORBA_any "any_data" member to Event struct.
1040 * idl/Accessibility_Event.idl:
1041 Added CORBA_any "any_data" member to Event struct.
1043 * atk-bridge/bridge.c:
1045 atk_signal_text_changed, atk_signal_child_changed,
1046 signal ids queried from gtype system.
1047 (AtkBridgeEventContextType): New enum.
1048 (AtkBridgeEventContextData): New struct.
1049 (AtkBridgeEventContext): New struct.
1050 (atk_bridge_init_event_type_consts):
1051 New method, initializes type contants for comparison
1052 prior to emit_eventv.
1053 (atk_bridge_event_context_init): New method,
1054 initializes a CORBA_any from an AtkBridgeEventContext.
1055 (atk_bridge_focus_tracker): Call spi_init_any_nil to
1056 initialize the event.any_data struct.
1057 (spi_atk_bridge_event_context_create): New method,
1058 creates an AtkBridgeEventContext from signal/event info.
1059 (spi_atk_bridge_event_context_free): New method.
1060 (spi_atk_emit_eventv): Changed to take an
1061 AtkBridgeEventContext parameter. We now initialize
1062 the event.any_data member prior to notifying the
1063 Registry, via the AtkBridgeEventContext.
1064 (spi_atk_bridge_property_event_listener):
1065 (spi_atk_bridge_state_event_listener):
1066 Match emit_eventv signature.
1067 (spi_atk_bridge_object_event_listener):
1068 Match emit_eventv signature, and create an
1069 event context from the event details.
1070 Free the event context afterwards.
1071 (spi_atk_bridge_window_event_listener):
1072 Create an event context, pass it to the
1076 (AccessibleEvent_getContextString):
1077 (AccessibleEvent_getContextObject):
1078 New methods, allow query of AccessibleEvent objects
1079 for more context details (via the "any_data" member
1080 of the Event struct, above).
1083 Definitions for AccessibleEvent_getContextString
1084 and AccessibleEvent_getContextObject.
1086 * cspi/spi_listener.h:
1087 (InternalEvent): New struct.
1090 (AccessibleEvent_getContextString):
1091 (AccessibleEvent_getContextObject):
1092 Implementations of new methods, for obtaining
1093 additional context information from some event types.
1095 * cspi/spi_registry.c:
1096 (SPI_registerGlobalEventListener):
1097 Added mention of active-descendant-changed event in docs.
1099 * cspi/cspi-bonobo-listener.c:
1101 Marshal the any into the AccessibleEvent via
1104 * libspi/spi-private.h:
1105 #include <orbit/orbit.h>
1107 (spi_init_any_string):
1108 (spi_init_any_object):
1109 New convenience function declarations.
1113 (spi_init_any_string):
1114 (spi_init_any_object):
1115 New convenience function implementations.
1117 * registryd/deviceeventcontroller.c:
1118 (spi_poll_dec_mouse_moved):
1119 (spi_device_event_controller_forward_mous_event):
1120 Initialize any_data member of event.
1121 (spi_deregister_controller_device_listener):
1122 Fix incorrect param pass which was preventing deregistration.
1124 * registryd/registry.c:
1125 (desktop_add_application):
1126 (desktop_remove_application):
1127 Add object data to event's any_data before dispatch.
1129 Fix for error messages from GAIL.
1131 * test/event-listener-test.c:
1132 Test new ContextString and "any_data" API:
1133 (report_text_event): New method query and output context string.
1134 (main): register a new text listener with report_text_event
1137 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1139 Fixes for bugs 98127 and 97914.
1140 * cspi/spi-roletypes.h:
1141 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1143 * cspi/spi-statetypes.h:
1144 Added SPI_STATE_MANAGES_DESCENDANTS
1146 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1147 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1148 * cspi/spi_accessible.c:
1149 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1150 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1151 Accessibility_STATE_MANAGES_DESCENDANTS
1152 * libspi/accessible.c:
1153 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1154 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1155 As requested by Bill, I also cleaned up the alignment.
1156 * libspi/relation.c:
1157 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1158 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1159 * libspi/stateset.c:
1160 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1161 Accessibility_STATE_MANAGES_DESCENDANTS
1162 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1163 Document changes reflecting modifications to roles.
1164 * docs/reference/cspi/tmpl/spi_relation.sgml:
1165 Document changes reflecting modifications to relations.
1166 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1167 Document changes reflecting modifications to states.
1169 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1172 Revved to 1.1.3, interface-age=3, binary-age=3.
1173 Added REBUILD macro.
1176 Removed accessx-gui from the tests, since we have a nice
1177 keyboard accessibility capplet now :-)
1179 * test/keysynth-demo.c:
1180 (increment_scan): removed do-nothing default: case,
1183 * test/visual-bell.c:
1184 (main) : removed do-nothing default: case,
1187 * cspi/spi_action.c:
1188 (AccessibleAction_getKeyBinding_):
1189 Documented keybinding string format.
1193 (AccessibleText_getAttributes):
1194 Documented the text attribute string format.
1195 It's changed to use semicolon delimiters also,
1196 to prevent clashes with CSS attributes, but the old
1197 trick of looking for ", " strings will still work
1198 (as unreliably as ever). Fix for bug related to 97916.
1201 Include <cspi/bonobo/cspi-bonobo-listener.h>
1202 Fixes build warning.
1203 (SPI_freeAccessibleKeySet):
1204 (AccessibleKeystrokeListener_addCallback):
1205 (AccessibleKeystrokeListener_removeCallback):
1206 Modify to use AccessibleDeviceListener API internally,
1207 instead of AccessibleKeystrokeListener.
1209 * idl/Accessibility_Event.idl:
1210 Added two more empty slots to EventListener (for a total of four).
1212 * idl/Accessibility_Accessible.idl:
1213 Added four empty slots to Accessible interface.
1215 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1217 * idl/Accessibility_Registry.idl:
1218 (KeyEventType, EventType):
1219 Marked KeyEventType as deprecated; it duplicates
1220 functionality of EventType, which has been extended to
1221 include Mouse-button events.
1222 (KeyEventTypeSeq): defined in terms of EventType.
1223 (registerDeviceEventListener, deregisterDeviceEventListener):
1224 New methods, for managing listeners to device events,
1225 which potentially may consume them.
1228 Added definition for AccessibleDeviceListener.
1230 * cspi/spi-listener.h:
1231 (enum AccessibleDeviceEventType):
1232 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1233 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1234 for backwards compat.
1235 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1236 and typedef'd AccessibleKeystroke to it for back-compat.
1237 (AccessibleDeviceListenerCB):
1238 New function prototype typedef.
1241 (AccessibleDeviceEventMask): New typedef.
1242 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1243 (AccessibleKeyMaskType):
1244 Set equivalent to AccessibleModifierMaskType for back-compat.
1245 (SPI_createAccessibleKeystrokeListener):
1246 (AccessibleKeystrokeListener_unref):
1247 Deprecated in favor of equivalent (better-named) new API below..
1248 keystroke listeners are like all device listeners.
1249 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1250 New API names for old features :-).
1251 (AccessibleDeviceListener_addCallback):
1252 (AccessibleDeviceListener_removeCallback):
1253 (SPI_registerDeviceEventListener):
1254 (SPI_deregisterDeviceEventListener):
1258 (SPI_createAccessibleKeystrokeListener):
1259 Use new preferred API, cspi_device_listener_new() and
1260 cspi_device_listener_add_cb().
1261 (AccessibleKeystrokeListener_removeCallback):
1262 Use new preferred API, cspi_device_listener_remove_cb().
1263 (AccessibleKeystrokeListener_unref):
1264 Use new preferred API, cspi_device_listener_unref().
1265 (SPI_createAccessibleDeviceListener):
1266 (AccessibleDeviceListener_addCallback):
1267 (AccessibleDeviceListener_removeCallback):
1268 Implementation of new API.
1270 * cspi/spi_registry.c:
1271 (SPI_registerDeviceEventListener):
1272 (SPI_deregisterDeviceEventListener):
1273 Implementation of new API. Fixed memory leak and removed need to
1274 allocate EventTypeSeq (thanks Michael for catching this).
1275 Squashed a wayward CORBA_exception_free that shouldn't get called.
1277 * cspi/bonobo/cspi-bonobo-listener.c:
1279 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1280 (cspi_key_event): renamed to cspi_device_event().
1281 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1282 Extended to handle mouse button events as well as key events.
1283 (CSpiKeystrokeListener):
1284 Class superceded by CSpiDeviceListener.
1285 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1286 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1288 * cspi/bonobo/cspi-bonobo-listener.h:
1289 (CSpiKeystrokeListener):
1290 Class superceded by CSpiDeviceListener.
1291 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1292 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1294 * libspi/Makefile.am:
1295 Replaced keystrokelistener.h and keystrokelistener.c
1296 with devicelistener.h and devicelistener.c; keystrokelisener.h
1297 stub retained for back-compat.
1299 * libspi/keystrokelistener.c:
1303 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1305 * registryd/deviceeventcontroller.c:
1306 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1307 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1308 (DEControllerPrivateData): Added xkb settings data.
1309 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1310 button release events (which can't be captured via XGrabButton).
1311 Don't dispatch via the 'normal' event mechanism if the device event was
1313 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1314 Handle the typeseq data in its new location (see above).
1315 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1316 New methods, for "generic" device listeners.
1317 (spi_controller_register_device_listener):
1318 Now handle mouse event listeners as well as key listeners.
1319 (spi_controller_notify_mouselisteners):
1320 New internal method.
1321 (spi_device_event_controller_forward_mouse_event):
1322 Now we notify mouse device listeners as well as generating the
1323 non-consumable "mouse:" events.
1325 We must check and restore the XKB
1326 modifier map if we consume the event, since the act of triggering
1327 a mouse event will normally reset the XKB latch. This is required for
1329 (spi_controller_register_with_devices):
1330 Load the XKB settings when registering, and register for XKB
1331 state notify events.
1332 (spi_key_eventtype_seq_contains_event):
1333 Renamed spi_eventtype_seq_contains_event, since it's used
1334 internally for all device event types now.
1335 (spi_key_event_matches_listener):
1336 Uses spi_eventtype_seq_contains_event now.
1337 (spi_device_event_controller_object_finalize):
1338 Free the private data and the XkbKeyboard struct.
1339 (impl_register_device_listener, impl_deregister_device_listener):
1340 Implementation of new IDL.
1341 (spi_deregister_controller_device_listener):
1342 New internal method.
1343 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1344 More efficient implementation, we don't have to create a new
1345 XkbControls structure every time we query.
1346 (spi_device_event_controller_class_init):
1347 Initialize the epv entries for the new IDL. Assign the
1348 "spi-dec-private" quark.
1349 (spi_device_event_controller_init):
1350 Initialize the private data.
1351 (spi_device_event_controller_forward_key_event):
1352 Removed a bogus CORBA_exception_free() call.
1354 * registryd/deviceeventcontroller.h:
1355 Replaced inclusion of keystrokelistener.h with
1358 * test/event-listener-test.c:
1359 (report_mouse_event):
1362 Added mouse-event device listener.
1364 * test/test-simple.c:
1365 (create_test_window):
1366 Fixed regression (we were instantiating a GtkRange,
1367 which is now an abstract class). Also fixed to match
1368 existing AtkRole names, this seems to have changed in ATK
1369 awhile ago; too late now I think, and the new
1370 mechanism is at least elegant and consistent with the
1371 glib enum "nick" APIs.
1373 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1375 * idl/Accessibility_Relation.idl:
1376 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1377 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1378 * idl/Accessibility_Role.idl:
1379 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1380 * idl/Accessibility_State.idl:
1381 add STATE_MANAGES_DESCENDANTS
1382 * test/event-listener-test.c:
1383 Added a listener for active-descendant events.
1385 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1387 * atk-bridge/bridge.c
1388 (atk_bridge_init): If application is Bonobo component wait until top
1389 level is added before registering
1390 (spi_atk_bridge_do_registration): New function which contains code,
1391 formerly in atk_bridge_init, to do application registration.
1392 (spi_atk_bridge_toplevel_added): Signal called when top level
1393 added to Bonobo component
1395 This fixes bug #83134.
1397 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1399 * registryd/deviceeventcontroller.c
1400 Fixed compilation error caused by calling gettimeofday()
1403 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1408 Added template for HAVE_XKB.
1411 Changes to check for XKB, and to set the HAVE_XKB #define if it
1414 * libspi/listener.c:
1415 ()impl_notify_event): Make failure to get event source name
1418 * registryd/deviceeventcontroller.c:
1419 (#include): include X11/XKBlib.h.
1420 (DEControllerPrivateData) : New struct.
1421 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1423 (dec_synth_keycode_press) (dec_synth_keycode_release):
1424 New methods; split the key synthesis code into these methods.
1425 They check XKB settings before determining the "time" values to
1426 pass to Xtest; this fixes bug #95828.
1427 (impl_generate_keyboard_event): Changed to use methods above,
1428 instead of callng Xtest directly.
1429 (spi_device_event_controller_init): Initialize new privae struct s
1431 (spi_device_event_controllr_object_finalize):
1432 Free the (new) private data.
1434 * registryd/deviceeventcontroller.h:
1435 Add new gpointer to end of struct data.
1437 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1440 Incremented revision to 1.1.2, SONAME is still '.so', library
1441 extensions are ".so.0.0.2".
1443 * registryd/deviceeventcontroller.c:
1444 FIXES FOR #93592 and #95940.
1445 (statics): renamed mouse_button_state to mouse_mask_state,
1446 added key_modifier_mask.
1447 (spi_dec_poll_mouse_moved):
1448 Added key modifier checks, and emit "keyboard:modifiers"
1449 events when the key modifiers currently in use change.
1450 Also generate "mouse:abs" events periodically, even if the mouse
1451 is stationary (should we?).
1452 Alternatively we could generate "mouse:abs" events for either all
1453 mouse movements, or every 'nth' mouse movement, or at the
1454 beginning and end of every "active" mouse period.
1456 * test/event-listener-test.c:
1457 (main): Added listener for "keyboard:modifiers" events.
1459 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1461 * libspi/keymasks.h:
1462 Added key mask #defines for mouse buttons; e.g.
1463 SPI_KEYMASK_BUTTON1, etc.
1466 Incremented dependency on ATK to version 1.1.0. (This dependency
1467 is probably premature but will soon be real enough).
1469 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1471 * libspi/hyperlink.[ch]
1472 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1473 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1476 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1481 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1483 * registryd/deviceeventcontroller.c
1484 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1485 events to be ignored.
1486 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1487 keyboard_mode so that XAllowEvents() can be called.
1491 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1493 * cspi/spi-accessible.c: Correct names of roles returned by
1494 AccessibleRole_getName(). Fixes bug #95055.
1496 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1498 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1501 * registryd/registry.c
1502 (desktop_remove_application: Write diagnostic message to stderr for
1505 (impl_accessibility_registry_deregister_global_event_listener):
1506 Correct size of lists array. This addresses bug #94555).
1508 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1510 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1513 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1515 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1518 * registryd/registry.c (impl_registry_notify_event): Remove
1519 unnecessary call to parser_event_type().
1521 * docs/reference/cspi/tmpl/spi_component.sgml:
1522 Add reference to SPI_LAYER_WINDOW.
1524 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1526 * registryd/registry.c
1527 (desktop_add_application): Remove leak.
1528 (desktop_remove_application): Remove leak.
1529 (parser_event_type): Remove leak.
1531 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1533 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1534 bogus call to CORBA_string_dup(). Also removed unnecessary
1535 g_string_dup/g_free calls.
1537 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1539 * registryd/deviceeventcontroller.c:
1540 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1542 * test/event-listener-test.c:
1543 main: commented out three redundant listeners, to reduce output
1544 noise. (They still are potentially useful for testing).
1547 2002-09-13 Michael Meeks <michael@ximian.com>
1549 * Update all the copyrights to include Ximian.
1551 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1553 * cspi/spi.h: add SPI_LAYER_WINDOW.
1555 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1556 add Accessibility_LAYER_WINDOW case.
1558 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1560 * libspi/component.c: (impl_accessibility_component_get_layer):
1561 add ATK_LAYER_WINDOW case.
1563 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1565 * configure.in: incremented micro version.
1567 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1569 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1572 Clarified and reworded our commit policy.
1575 Started an API "todo" addition list for 2.2.
1578 (impl_getSelection):
1579 Free char pointer from atk_text_get_selection, which was being leaked.
1581 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1584 Small revision to author acknowledgement.
1586 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1588 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1589 If signal has detail add it to the type of the event.
1592 2002-08-12 Michael Meeks <michael@ximian.com>
1594 * test/test-simple.c (global_listener_cb): bin bogosity.
1595 (test_keylisteners): disable, still doesn't work reliably,
1596 certainly not on my system anyway.
1598 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1599 don't leak a reference on the DEC. This round-trip
1600 fetching of the DEC per keystroke sucks, it should be
1603 * cspi/spi-private.h,
1604 * cspi/cspi-lowlevel.h,
1605 * cspi/bonobo/cspi-bonobo-listener.[ch],
1606 * cspi/bonobo/cspi-bonobo.c: get the copyright
1607 notices better - there is still a large amount of
1608 work in at-spi falsely attributed solely to Sun.
1610 * cspi/spi_main.c (cspi_object_ref): kill bogus
1611 hash lookup, just increment the ref.
1612 (SPI_freeString): make explicit the fact that we
1613 handle NULL strings just fine.
1614 (report_leaked_ref): obey coding standards.
1615 (cspi_object_hash, cspi_object_equal): kill retval.
1616 (cspi_object_release): only release if not on loan.
1617 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1618 (cspi_object_borrow, cspi_object_return): impl.
1620 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1621 use cspi_object_borrow / return.
1623 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1625 * cspi/bonobo/cspi-bonobo-listener.c:
1627 Don't call cspi_oject_new() because this is creating a new Accessible
1628 every single time that an event is fired. This causes ATs like at-poke
1629 to nolonger recognise the source of the event and thus ignore it.
1630 Re-use the object from the cache, ref it and then unref it after the
1631 listeners have been called.
1633 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1635 * test/event-listener-test.c:
1636 Added command-line options to disable mouse events (m) and
1639 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1641 * configure.in: Update required versions of ATK, GTK+ and GAIL
1643 * cspi-1.0.pc.in: Add dependency for X include files
1646 * cspi/bonobo/Makefile.am:
1647 Add $(X_CFLAGS) so that X include files
1648 are picked up even if not in standard place (bug #71686)
1650 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1652 * registryd/deviceeventcontroller.c: fix for 84261
1653 (spi_dec_mouse_moved):
1654 Added test of mouse button mask, so that we can detect mouse
1655 button release. Unfortunately we can't otherwise detect mouse
1656 button release events without consuming the mouse press event,
1657 because of the way XGrabButton works. This means that our mouse
1658 release events have a latency dependent on the polling period
1659 while the mouse button is down. At least in this case we only
1660 have to poll while the button is down, and not at other times.
1661 If the button masks don't match with what the last press event
1662 reported, we report the appropriate button release event.
1663 (spi_dec_ungrab_mouse):
1664 New method (not yet called).
1665 (spi_device_event_controller_forward_mouse_event):
1666 New method, sends mouse press event from GdkFilter.
1667 (spi_dec_init_mouse_listener):
1668 Added code to call XGrabButton, redirecting mouse button events to
1669 the root window and our Gdk event loop.
1671 Added code to filter mouse button events, and reordered.
1673 * test/event-listener-test.c:
1675 Added registration for mouse events of type "mouse:button".
1677 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1679 * registryd/deviceeventcontroller.c: partial fix for 84261
1680 (spi_dec_poll_mouse_idle):
1681 New method, a timeout which checks to see if the mouse
1683 (spi_dec_poll_mouse_moving):
1684 A timeout to be called when mouse motion is underway.
1685 (spi_dec_poll_mouse_moved):
1686 A method which fires an event if the mouse has moved, and reports
1687 whether or not it did so.
1688 (spi_dec_init_mouse_listener):
1689 A method which sets up the timeouts above.
1690 (spi_device_event_controller_new):
1691 Now calls spi_dec_init_mouse_listener.
1693 * registryd/registry.c:
1694 (spi_registry_init):
1695 Now we initialize the device event controller when the registry is
1696 initialized, instead of waiting until a client has requested a key
1697 event notification; this is because we need the event controller
1698 for mouse events, but the mouse event registration API is a
1699 "registry" call and doesn't explicitly call the
1700 deviceeventcontroller.
1701 We now report mouse motion events with a 100 ms idle latency and
1702 a 20 ms granularity when motion is in progress.
1704 * test/event-listener-test.c:
1706 We now register the "detail listener" for events of type
1707 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1708 delivered only for the first mouse event received, and thereafter
1709 "mouse:abs" events are delivered.)
1711 * cspi/spi_registry.c:
1712 DOCS: Documented the above mouse event typestrings.
1714 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1716 Happy Summer Solstice...
1718 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1719 (spi_controller_notify_keylisteners):
1720 Changes to remove a listener from the listener list, freeing its
1721 open keygrabs, if a notification to that listener fails. This
1722 means that although a dead listener can continue to hold a passive
1723 keygrab, a maximum of one dispatch to such a listener can fail
1724 before the listener is removed from the list, thus the keygrab
1725 will be released on the next occurrence.
1726 As part of this fix:
1727 (spi_notify_keylisteners):
1728 Renamed to spi_controller_notify_keylisteners, as the controller
1729 instance must now be passed as an argument.
1730 The copied 'notify' GList is now a list of DEControllerKeyListener
1731 objects, since we need more than just the CORBA reference if a
1732 notify fails and we need to deregister the listener.
1733 (impl_notify_listeners_sync):
1734 (impl_notify_listeners_async):
1735 (spi_device_event_controller_forward_key_event):
1736 Modify use of notify_keylisteners in accordance with above
1738 (spi_deregister_controller_key_listener):
1739 New method introduced by refactoring, from
1740 impl_deregister_keystroke_listener.
1741 (impl_deregister_keystroke_listener):
1742 Call spi_deregister_controller_key_listener.
1743 (spi_key_listener_clone):
1744 New method to copy a key listner without doing a 'ref' on the
1745 remote object instance; used to create a notifier list.
1746 (spi_key_listener_data_free):
1747 New method, frees data without unreffing the source.
1749 (spi_key_listener_clone_free): new method.
1750 (spi_key_listener_free):
1751 refactored to call spi_key_listener_data_free.
1753 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1755 * registryd/registry.c: [fix for bug 86048]
1756 (notify_listeners_cb):
1757 Clear CORBA system exceptions which occur when notifying
1758 listeners, before returning to the source of the original event,
1759 since the event source doesn't care if the relayed notify failed.
1760 In other words, don't complain to the atk-bridge if the registry
1761 could not notify all its listeners, that's no fault of the
1762 application and thus should not appear to be an error from the
1763 application's perspective.
1765 * cspi/spi_main.c: [fix for bug 85980]
1767 Replaced use of bonobo_object_dup_ref with call to the wrapper
1768 method, csou_dup_ref (); this silences a compiler warning and
1769 provided more portability.
1771 Ping the registry before return, and restart if necessary.
1773 * cspi/bonobo/cspi-bonobo.c:
1775 New internal method.
1777 Fixed this method to return an object reference, as it should have
1780 * cspi/cspi-lowlevel.h:
1781 Added internal definition for cspi_ping() and fixed
1782 return type of cspi_dup_ref().
1785 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1787 * atk-bridge/bridge.c: [fix for bug 85305]
1788 (spi_atk_bridge_register_application):
1789 New method where the initial application registry calls have been
1790 moved; it allows an application to re-register in response to
1791 certain error conditions (such as a registry restart, see below).
1793 Moved some initialization code to the method
1794 spi_atk_bridge_get_registry, below.
1795 (spi_atk_bridge_get_registry):
1796 New, private accessor function for the Accessibility_Registry
1797 instance. If the registry has not been started before, or has
1798 died (as detected by failure of a CORBA exception), it is
1799 restarted before return, and spi_atk_bridge_register_application
1800 is called again to register with the new bridge instance.
1801 (spi_atk_emit_eventv):
1802 Set registry_died on error; use spi_atk_bridge_get_registry () to
1803 access the registry.
1805 * registryd/registry.c:
1806 (impl_accessibility_registry_register_global_event_listener):
1807 Set listener's event_type_quark to etype.minor instead of
1808 etype.major (fix for bug 84856).
1810 * test/event-listener-test.c:
1811 (report_detail_event):
1812 Change the output string so that user/tester can tell that the
1813 'detail listener' was called instead of the 'generic listener'.
1815 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1817 Fixes for bugs 84900, 84908, 84897, 84898.
1822 Revved version to 1.1.0
1823 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1824 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1826 * idl/Accessibility_Registry.idl:
1827 (EventListener::notifyEvent):
1828 Removed 'oneway' directive after extensive consulation with
1829 ORBit2 team and others. This means also that unref() of the event
1830 source can and should be done synchronously after emission, rather
1831 than remotely in the client, after servicing the notify call on
1834 NOTE: This change speeds up listener performance considerably, but
1835 introduces new latency on the application side. We may want to
1836 add an event queue to the atk-bridge.
1838 * atk-bridge/bridge.c:
1839 (spi_atk_bridge_focus_tracker):
1840 Do a local unref() on the event source after emission.
1842 * registryd/registry.c:
1843 (desktop_remove_application):
1844 Do an unref() on the event source after emission.
1845 (desktop_add_application):
1846 Do an unref() on the event source after emission.
1847 (notify_listeners_cb):
1848 When relaying an event, don't automatically add the event source
1849 to the local object cache, just CORBA_dup it instead. Likewise,
1850 if this method reenters, release the ref rather than calling
1852 (impl_registry_notify_event):
1853 No longer call remote unref() on the event source after dispatch.
1855 * libspi/eventlistener.c:
1856 (impl_accessible_event_notify_event):
1857 Removed remote unref ()
1859 * cspi/bonobo/cspi-bonobo-listener.c:
1861 We now call cspi_object_new() instead of cspi_object_add() on
1862 receipt of an event; thus we only have an implicit object ref
1863 while the cspi_event method is being executed. If we need to keep
1864 a reference to the object, the listener must call ref() on the
1865 object. Thus also we don't need to call cspi_object_unref() after
1866 invoking the listener callbacks in this method.
1870 New internal API for creating a new cspi object, without adding it
1871 to the object cache.
1873 Now uses cspi_object_new() to create the cspi object instance.
1875 Now checks to see if the object is in the internal object cache,
1876 and adds it if necessary before incrementing its refcount (note
1877 that new objects are added with a refcount of 1).
1878 (report_leaked_ref):
1879 New method which gives some information on leaked object instances
1880 if leak detection is turned on.
1882 * test/event-listener-test.c:
1883 (timing_test_event):
1884 New method, used for testing event delivery timing for special
1885 events of type "object:test". It reports elapsed time and
1886 events/sec every 500 events.
1888 Added a new listener, 'test listener', to check timing of event
1889 receipt as noted above.
1891 Added some timing output here also, reports elapsed time every 100
1894 * test/stress-test.c:
1895 Emit events of type "object:test", for use with "event-listener-test".
1897 * test/test-simple.c:
1898 (global_listener_cb):
1899 Call Accessible_ref() on the event source before calling
1900 validate_accessible, since the validation process does pointer
1901 comparisons on the event source, meaning that the event source
1902 needs to be added to the local object cache first. Any use of
1903 such pointer comparisons between Accessible objects requires that
1904 the caller hold an explicit reference to those objects.
1905 We also must therefore call Accessible_unref() when leaving this method.
1907 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1909 * registryd/deviceeventcontroller.c:
1910 (spi_controller_update_key_grabs):
1911 Fix for #84735, subsequent keygrab listeners not informed of
1912 registration failure.
1915 (spi_base_construct):
1916 Add an assertion on construct, to make sure the GObject passed in
1917 is really a GObject.
1919 Explicitly initialize object->gobj pointer to NULL;
1921 * cspi/bonobo/cspi-bonobo-listener.c:
1922 (cspi_object_add_ref):
1923 New method, can specify whether to dup-ref a bonobo object passed
1924 in if it's newly added to the object cache.
1926 Now calls cspi_object_add_ref with second param of "FALSE". This
1927 prevents us from doing a pointless dup-ref followed by
1928 release-unref for all those cases where the object is already in
1929 our object cache (fix for #85205).
1931 * atk-bridge/bridge.c:
1932 (spi_atk_bridge_idle_init):
1933 Removed this method, we don't need to initialize in an idle
1936 Changed to call spi_atk_register_event_listeners directly, not via an
1937 idle handler. (fix for #81139)
1938 (gnome_accessibility_module_shutdown):
1939 Removed conditional around deregistration of listeners, since we
1940 don't use the idle handler and thus have always registered when
1942 (spi_init_keystroke_from_atk_key_event):
1943 Changed references to Accessibility_KEY_PRESSED to
1944 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1946 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1948 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1953 * test/stress-test.c:
1956 (may have been an incomplete commit yesterday?)
1958 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1961 Added target for new stress-test.
1963 * test/stress-test.c:
1964 New test, sends 1000 focus notifies in quick succession.
1966 * test/key-listener-test.c:
1967 Now we report whether a keylistener registration
1968 request succeeded or failed.
1970 * test/event-listener-test.c:
1971 Uncommented some listeners which are now implemented.
1974 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1976 * registryd/deviceeventcontroller.c:
1977 (spi_controller_update_key_grabs):
1978 Fix for #82509, lack of failure notification when
1979 ALL_WINDOWS keygrabs fail due to XGrabKey
1980 failure: we synchronize the server when
1981 registering a passive grab, to make sure we get the
1982 error message before the call returns.
1984 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1986 * test/test-simple.c:
1988 Removed #ifdef KEY_IMPL_WORKS guards.
1989 (test_keylisteners):
1990 Removed #ifdef KEY_IMPL_WORKS guards.
1991 Fixed bug which was causing a hang waiting for a
1992 "press" event (which was already overwritten by a "release"
1993 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1995 Added code to set globals 'key_press_received' and
1996 'key_release_received'.
1999 Added section "1.1 API Proposed Additions" which
2000 lists API additions desired for at-spi-1.1 (only one so far).
2001 Updated TODO list a little.
2003 2002-06-02 Bill Haneman <bill.haneman@sun.com>
2005 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
2008 * configure.in: Revved to 1.0.0.
2010 * idl/Accessibility_Registry.idl:
2011 (registerKeystrokeListener):
2012 Added boolean return value.
2014 * registryd/registry.c:
2015 (notify_listeners_cb): Minor fix to debug output.
2017 * registryd/Accessibility_Registry.server.in.in:
2018 Revved version number in OAFIID to 1.0.
2020 * registryd/registryd.c:
2022 Use new OAFIID version.
2024 * cspi/bonobo/cspi-bonobo.c:
2026 Use new OAFIID version.
2032 * atk-bridge/bridge.c:
2034 Use new OAFIID version.
2036 * registryd/deviceeventcontroller.c:
2037 (impl_register_keystroke_listener):
2038 Added CORBA_boolean return value.
2039 (spi_controller_register_device_listener):
2040 Added gboolean return value.
2041 (spi_controller_register_global_keygrabs):
2042 Added gboolean return value.
2043 (spi_key_set_contains_key):
2044 Added implementation for many more control keys,
2045 for instance F1-F12, arrow keys, End, Home, Page_Up,
2047 [TODO: some still not implemented].
2049 * text/screen-review-test.c:
2050 (text_chunk_pad_string):
2051 New function: it provides mapping between coordinate
2052 positions of text chunks and character positions in the
2053 screen-review-line output string.
2054 (text_chunk_to_string):
2055 New function, calls text_chunk_pad_string with various
2056 pad/delimiter characters. Pushbuttons are delimited with
2057 square brackets, Frames with vertical 'pipe' lines, and
2058 other text with double quotes.
2059 (text_chunk_list_to_string):
2060 Calls new function text_chunk_to_string.
2061 (toplevel_composite):
2062 New function to composite layers CANVAS through
2063 POPUP in each toplevel (other layers are composited
2064 across toplevels, i.e. BACKGROUND and OVERLAY).
2065 (review_buffer_composite):
2066 Revise to use new methods.
2072 2002-05-31 Laszlo Peter <laca@sun.com>
2074 * configure.in: add the Xtst libdir to the runpath on Solaris,
2075 since it's not in the default library search path.
2077 2002-05-29 jacob berkman <jacob@ximian.com>
2079 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2081 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2083 * test/screen-review-test.c:
2084 (text_chunk_pad_string):
2085 Added method, which pads the string according to the
2086 text bounds of the chunk. It also takes a 3-character
2087 string as a param which indicates the characters to be
2088 used for start, padding, and end delimitation of the chunk.
2089 (text_chunk_to_string):
2090 Changed to use text_chunk_pad_string.
2092 * configure.in: Fixed bug in AC_OUTPUT that was
2093 causing path substitution in Accessibility_Registry.server
2096 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2098 * text/screen-review-test.c:
2099 (guess_string_clip):
2100 New method which attempts a best-guess at clipping
2101 text from components (like Java labels) which don't
2102 actually implement AccessibleText. This inaccurate
2103 clip is based on the assumption that the label is
2104 justified left-and-right, and monospaced.
2105 (text_chunk_get_clipped_string):
2106 We now call guess_string_clip() for text-containing
2107 components that don't implement AccessibleText.
2109 * test/screen-review-test.c:
2110 (review_buffer_get_text_chunk):
2111 We now pull "name" from labels if they do not implement
2112 AccessibleText (i.e. for Java labels).
2113 (get_screen_review_line_at):
2114 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2117 Replaceded AC_OUTPUT target
2118 registryd/Accessibility_Registry.server with
2119 registryd/Accessibility_Registry.server.in.
2121 * registryd/Accessibility_Registry.server.in:
2122 Removed (this is now a Makefile target).
2124 * registryd/Accessibility_Registry.server.in.in:
2125 Added (source for target above). We now use $(libexecdir) as
2126 prefix for the executable at-spi-registryd.
2128 * registry/Makefile.am:
2129 Now install at-spi-registryd into $(libexecdir), and build .server
2130 file with path (see above).
2132 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2134 * test/screen-review-test.c:
2135 (text_chunk_get_clipped_string):
2136 We now check to see if words fall within clip bounds
2137 before resorting to character-by-character clip bounds testing.
2139 * TODO: Added a section for "2.2 Proposed API Additions".
2141 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2143 * test/screen-review-test.c:
2145 Added a screen review benchmarking and test program to test
2148 * cspi/spi_accessible.c:
2150 Made some of the debug strings passed to cspi_check_ev a
2151 little more specific.
2153 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2155 * test/screen-review-test.c: Fix crashes in debug statements
2157 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2159 * test/screen-review-test.c: Added this file.
2161 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2163 * atk-bridge/bridge.c: changed "object:state-change" to
2164 "object:state-changed" to match docs.
2166 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2168 * atk-bridge/bridge.c: Hooked up state-change event details.
2170 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2172 * registryd/registry.c:
2173 Fixed quarking bug in event string parsing; now events with
2174 detail parameters get matched correctly to listeners.
2177 * util/idl/Magnifier.idl: remove.
2179 * util/*.[ch]: Remove.
2180 Magnification utilities and IDL are now in module gnome-mag.
2182 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2184 * registryd/deviceeventcontroller.c:
2185 Fixed bug in grab key conversion which was causing keycode grabs
2186 to be converted to AnyKey grabs.
2189 updated NEWS file to reflect recent spin-off of gnome-mag.
2191 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2193 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2194 busted AccessibleStateSet_compare. Removed redundant casts.
2196 * cspi/spi-action.c: Removed redundant casts.
2198 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2200 * cspi/spi_component.c: Fixed typos and casting error.
2202 * cspi/spi_editabletext.c: Removed redundant casts.
2204 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2206 * cspi/spi_hypertext.c: Eliminated redundant casts.
2208 * cspi/spi_image.c: Eliminated redundant casts.
2210 * cspi/spi_registry.c: Eliminated redundant casts.
2211 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2212 * cspi/spi_selection.c: Removed redundant casts.
2213 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2214 handling. Screen geometry and text offsets were being returned as 0
2215 on error which is technically valid-- changed these to return -1.
2216 Added marshaller for text boundary types to fix bug with boundary
2217 types being passed incorrectly to atk.
2219 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2222 * cspi/spi_registry.c:
2223 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2224 which was uncovered by the recent key changes.
2226 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2228 * test/event-listener-test.c:
2230 Added new test, "event-listener-test";
2231 this code does two things; it benchmarks traversal time
2232 for the accessible hierarchy for the first running accessible
2233 app, and it connects listeners for all supported event types.
2234 It is thus useful as an example event listener and for
2235 diagnostics/debugging of event generation.
2237 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2240 Removed unnecessary dependency on libutil.
2243 Revved micro version: 0.13.1
2245 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2248 Removed util/Makefile from targets.
2251 Removed util subdir from SUBDIRS (temporarily,
2252 pending removal of magnifier-only code
2256 #ifdef-ed out magnifier dependencies, since
2257 magnifier IDL, headers, and binary now live in
2258 module gnome-mag and we don't want at-spi to depend
2259 on gnome-mag. A magnifier demo which can run alongside
2260 simple-at is forthcoming in the gnome-mag module.
2262 NOTE: Split magnifier binary, IDL, and magnification
2263 activation code from at-spi into module gnome-mag.
2265 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2267 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2268 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2270 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2273 Revved to version 0.13.0
2275 * idl/Accessibility_Registry.idl:
2276 Changed definition of KeySet from sequence of longs to sequence of
2277 KeyDefinitions, and added KeyDefinition struct.
2278 Required for fix to bug 80616.
2280 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2281 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2282 to use new definition (see above).
2284 * registryd/deviceeventcontroller.c: handle_keygrab(),
2285 spi_keyset_contains_key():
2286 Changed to make use of new struct; this allows matching based on
2287 string key-name, for instance "Tab". This also allows matching of
2288 composed characters, non-alphanumeric characters in a way that
2289 doesn't involve dependencies on X keysym codes directly, etc.
2291 * test/key-listener-test.c:
2292 Added test for Alt-Tab key using "string" specification of keyset,
2293 and modified one of the tests to use a keycode-based keyset.
2294 Thus this test both tests and demonstrates the creation and use of
2295 keysets of three forms: specified via keycode array,
2296 keysym array, and string array. (The string case only contains a
2297 single string, i.e. a string array of length 1).
2300 Turned on PRINT_TREE option by default. Also fixed a
2301 string-freeing bug in the PRINT_TREE code.
2302 Added a listener to window:minimize events.
2304 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2306 * atk-bridge/bridge.c:
2307 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2308 for window:activate and window:deactiveate
2309 (atk_bridge_property_event_listener atk_bridge_signal_listener
2310 atk_bridge_window_event_listener) Tidy debug code
2312 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2314 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2315 Fixed handling for NULL return value from ATK.
2317 * libspi/action.c libspi/component.c libspi/editabletext.
2318 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2319 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2320 Removed redundant casts.
2322 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2323 Fixed off by one bug.
2325 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2326 function not present in idl)
2328 2002-05-02 jacob berkman <jacob@ximian.com>
2330 * atk-bridge/Makefile.am: make atk-bridge a real module
2332 2002-04-26 Radek Doulik <rodo@ximian.com>
2334 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2335 atk_state_types table
2337 2002-04-22 jacob berkman <jacob@ximian.com>
2340 * libspi/Makefile.am: add deps on the built files to help
2341 automake, and don't version the ORBit typelib
2343 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2345 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2346 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2347 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2348 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2349 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2350 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2351 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2352 libspi/accessible.h libspi/accessible.h libspi/base.h
2353 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2354 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2355 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2356 libspi/spi-private.h libspi/statetset.h libspi/table.h
2357 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2358 util/mag_client.h util/mag_control.c util/mag_image.c
2359 util/mag_image.h util/magnifier.c util/magnifier.h:
2360 Add missing file headers; standardize existing ones
2362 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2364 * atk-bridge/bridge.c: Added window event support.
2366 2002-04-18 Michael Meeks <michael@ximian.com>
2368 * libspi/relation.c (impl_getNTargets): impl.
2369 (impl_getTarget): impl.
2371 * libspi/Makefile.am: fix stateset install.
2373 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2376 Started putting useful info in this file.
2378 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2380 * atk-bridge/bridge.c:
2381 Propagate state-changed notifications to ATs
2383 * cspi/spi_registry.c: update docs to reflect actual behavior of
2384 state-change events.
2386 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2389 Incremented version to 0.12.1
2391 * util/mag_client.h:
2392 Add missing declaration for magnifier_exit,
2393 used by mag_control.c - Forte compiler didn't like
2394 the implicit redeclaration of the function :-(
2397 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2400 Revved version to 0.12 due to API change (see below).
2402 * cspi/spi-roletypes.h:
2403 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2404 definition from the inline docs, and added docs
2405 for SPI_ROLE_LAST_DEFINED.
2408 * cspi/spi_streamablecontent.c:
2409 Added missing seek_type parameter to
2410 (so far unused) method,
2411 AccessibleStreamableContent_seek().
2412 [ RT approval JodyG. ]
2415 Fixed docs for SPI_createAccessibleKeystrokeListener.
2417 * cspi/spi_registry.c:
2418 Fixed docs for SPI_KEYSET_ALL_KEYS.
2420 * docs/reference/cspi/at-spi-cspi-sections.txt:
2421 Added a number of missing APIs to SECTIONS.
2423 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2425 * registryd/Makefile.am:
2427 * cspi/bonobo/Makefile.am:
2428 Add $(X_LIBS) to makefiles.
2430 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2433 Revved version to 0.11.
2435 * libspi/component.c:
2436 Added implementation for grabFocus.
2438 * idl/Accessibility_Component.idl
2439 (Accessibility_Component_grabFocus):
2440 Made this method return boolean to indicate success or failure, to
2441 be consistent with cspi and the corresponding ATK method.
2443 * idl/Accessibility_Selection.idl
2444 (Accessibility_Selection_selectAll) :
2445 Made these methods return boolean to indicate success or
2446 failure, to be consistent with cspi and the corresponding ATK methods.
2448 * idl/Accessibility_EditableText.idl
2449 (Accessibility_EditableText_setTextContents,
2450 Accessibility_EditableText_insertText,
2451 Accessibility_EditableText_cutText,
2452 Accessibility_EditableText_deleteText,
2453 Accessibility_EditableText_pasteText):
2454 Made these methods return boolean to indicate
2457 * cspi/spi_editabletext.c:
2458 Made these methods return booleans.
2460 * libspi/selection.c:
2461 * libspi/component.c:
2462 * libspi/editabletext.c:
2463 Connected the boolean returns from ATK
2464 to the server-side code referenced above.
2466 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2468 * idl/Accessibility_Table.idl: Added missing methods,
2469 Accessibility_Table_addRowSelection,
2470 Accessibility_Table_addColumnSelection,
2471 Accessibility_Table_removeRowSelection,
2472 Accessibility_Table_removeColumnSelection.
2475 Added C wrappers for above IDL:
2476 AccessibleTable_addRowSelection,
2477 AccessibleTable_addColumnSelection,
2478 AccessibleTable_removeRowSelection,
2479 AccessibleTable_removeColumnSelection.
2482 Added server-side implementation code for IDL above, connecting
2483 to pre-existing ATK api.
2485 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2487 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2489 * libspi/accessible.c: Added implementation fo
2490 Accessibility_Accessible_get_state.
2492 * libspi/libspi.h: Added stateset.h to the list of includes.
2494 * libspi/stateset.c: Fixed broken implementation.
2496 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2499 Added implementation code for Accessibility_Magnifier_exit ().
2501 * util/mag_control.c:
2502 Added test code for above method; you can
2503 now kill an existing magnifier via
2504 ./mag_control q, from the util directory.
2506 * test/key-listener-test.c:
2508 Added a new test, for our key listener API.
2510 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2512 * test/app.c, test/keysynth-demo.c:
2514 Replace use of snprintf with g_snprintf.
2515 (fix for bugzilla 78249)
2517 2002-03-27 Michael Meeks <michael@ximian.com>
2521 * util/Makefile.am (INCLUDES): fix.
2522 (DONT_DIST_SOURCE): don't distribute the
2525 * libspi/Makefile.am (dist-hook): ditto.
2527 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2529 * libspi/hypertext.c:
2530 Fix warnings when yelp is used with atk-bridge
2532 2002-03-21 Michael Meeks <michael@ximian.com>
2534 * libspi/application.c (spi_application_new):
2535 use spi_accessible_construct so we use the AtkObject
2538 2002-03-19 Michael Meeks <michael@ximian.com>
2540 * registryd/registry.c (desktop_remove_application),
2541 (desktop_add_application): clean coding style.
2543 * registryd/desktop.c (spi_desktop_remove_application),
2544 (spi_desktop_add_application): kill re-enterency hazards.
2545 (spi_desktop_dispose): remove bogus redundant cast
2546 obscuring bug; fix bug too.
2547 (spi_desktop_init): make the desktop object immortal.
2549 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2552 Added a #define-guarded tree-traversal step
2553 when enumerating the apps (diagnostic tool).
2555 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2557 * idl/Accessibility_Role.idl:
2558 Added ROLE_DRAWING_AREA which seemed to be missing from the
2561 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2563 * cspi/spi-roletypes.h cspi/spi_accessible.c
2564 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2567 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2568 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2569 AT when applications are added and removed from the desktop. This
2570 reverts the previous broken implementation using the backing
2571 AtkObject for the SpiDesktop.
2573 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2575 * registryd/desktop.c: emit the "children-changed::add" and
2576 "children-changed::remove" signals on the backing ATK object for
2577 the desktop so AT can tell when applications are started and shut
2580 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2582 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2584 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2586 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2588 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2590 * cspi/state-types.h: synched with IDL and ATK
2592 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2594 * libspi/accessible.c
2595 (impl_accessibility_accessible_get_child_at_index):
2596 Change return value for g_return_if_fail ()
2597 to CORBA_OBJECT_NIL instead of "0" (!)
2599 * registryd/Makefile.am:
2600 * registryd/Accessibility_Register.server.in:
2601 Changed name of executable, "registryd",
2602 to something more informative:
2605 2002-03-13 Michael Meeks <michael@ximian.com>
2607 * atk-bridge/bridge.c (atk_bridge_init): don't register
2608 if we're in a bonobo-component, rather than a bonobo app.
2610 2002-03-13 Michael Meeks <michael@ximian.com>
2612 * atk-bridge/bridge.c (gtk_module_init): split
2613 out body to (atk_bridge_init): here, since otherwise
2614 we get symbol conflicts and oddness when invoked
2615 from (gnome_accessibility_module_init): here (upd.)
2617 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2620 New file. Explicitly allow "build sheriff" putbacks provided
2621 they are tested on Solaris.
2623 * docs/reference/cspi/Makefile.am:
2624 Added '-' to the "cp" command for index.sgml.
2625 ("patch by thomasvs, soon coming to a GUADEC near you")
2628 Incremented version number (0.9.0) for new release.
2629 Changed macro that checks for popt, to better detect
2630 obsolete versions of popt.
2633 Added X_LIBS to AC_SUBST, for applications
2634 that call Xlib API directly.
2637 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2640 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2643 Fix regression caused by hard-coding major
2644 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2647 * test/test-simple.c (test_editable_text),
2648 (test_test): revert previous change (error was
2649 a regression in gail which is now fixed).
2651 2002-03-04 Michael Meeks <michael@ximian.com>
2653 * test/test-simple.c (test_editable_text),
2654 (test_text): pass G_MAXINT instead of '-1' for
2655 whole string - is this a good thing !?
2657 * cspi/spi_accessible.c
2658 (Accessible_getRelationSet): fix crasher bug
2659 overwriting the end of the array.
2661 * test/test-simple.c (validate_accessible): free,
2662 not g_free returned relation set.
2664 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2666 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2667 implemented stateset support
2669 * idl/Accessibility_State.idl: Made necessary changes to
2670 the IDL to support state sets.
2672 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2674 * registryd/deviceeventcontroller.c:
2675 Added implementation for generateMouseEvent.
2677 * cspi/spi_registry.c:
2678 Connected new implementation for generateMouseEvent
2681 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2684 Incremented revision (but no change in public API
2685 outside of 'utils', which are not installed public yet.)
2687 * libspi/component.c:
2688 Changed to use atk_component API for layers and
2689 mdi_zorder, instead of deprecated atk_object API.
2691 Magnification Utility Enhancements:
2694 Added implementation of createZoomRegion, clearAllZoomRegions,
2695 resizeZoomRegion. Added new commandline argument
2696 "--no-initial-region". Note that clearAllZoomRegions doesn't
2697 unmap the old '0' region as it should (yet), and the other
2698 methods only work when creating/resizing a single region,
2699 which is "region 0".
2700 (Code for multiple region support will be added later.)
2703 Now we raise the magnifier window each time it's refreshed;
2704 this will help keep it on top.
2706 * util/mag_client.h:
2707 Added simple wrappers for above, used by mag_control.
2708 For general use, it's recommended to use the bonobo magnifier
2709 control API directly instead of using these wrappers.
2712 Moved ZoomRegionData from magnifier.c to this file.
2714 * util/mag_control.c:
2715 Added some code to exercise new IDL implementations.
2717 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2719 * libspi/text.c: Provide implementation for getAttributes.
2721 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2724 Incremented revision.
2726 * test/test-simple.c:
2727 Replaced use of deprecated g_main_iteration with
2728 g_main_context_iteration.
2730 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2733 Incremented revision for desktop alpha 2.
2735 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2737 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2740 * test/simple-at.c: include netinet/in.h.
2742 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2744 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2745 use NULL, not CORBA_OBJECT_NIL.
2747 * libspi/accessible.c:
2748 (impl_accessibility_accessible_get_relation_set):
2749 allocate the sequence correctly.
2751 * libspi/remoteobject.h: kill spi_remote_object_new.
2753 * test/test-simple.c: (validate_accessible): add code
2754 to test relation sets, now all we need is to figure
2755 out how to excercise this code path :/
2757 2002-01-18 Michael Meeks <michael@ximian.com>
2759 * test/test-simple.c
2760 (key_listener_cb): consume the key.
2761 (test_keylisteners): update.
2762 (main): wait for any pending unrefs on events.
2764 * registryd/deviceeventcontroller.c
2765 (spi_controller_update_key_grabs): only re-issue the
2766 grab on a key release.
2767 (spi_device_event_controller_forward_key_event):
2768 refresh the keygrabs before we notify the listeners,
2769 to reduce the X ungrab / re-grab race.
2770 (spi_controller_register_with_devices): remove
2771 XSelectInput - we do that with the gdk_window_ call.
2772 (_spi_controller_device_error_handler): return a value.
2773 s/GDK_DISPLAY/spi_get_display/
2775 2002-01-17 Michael Meeks <michael@ximian.com>
2777 * registryd/deviceeventcontroller.c
2778 (_deregister_keygrab): don't blow out the later
2781 * test/test-simple.c (test_keylisteners): do a
2782 more intelligent validation.
2784 2002-01-14 Michael Meeks <michael@ximian.com>
2786 * atk-bridge/bridge.c
2787 (gnome_accessibility_module_init),
2788 (gnome_accessibility_module_shutdown): impl.
2789 (gtk_module_init): protect vs. double inits.
2790 (add_signal_listener): impl.
2791 (spi_atk_bridge_state_event_listener): kill
2792 (deregister_application): split out of
2793 (spi_atk_bridge_exit_func): here.
2795 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2798 Added caret tracking when using magnifier, and
2799 now use text bounds for focus tracking of text elements, rather than
2800 the component bounds - this is helpful for short text fields in long
2801 table cells, at high magnification.
2803 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2805 * registryd/deviceeventcontroller.c:
2806 Regression fix for keylistener de-registration; global keygrabs
2807 were not being released when deregisterKeystrokeListener was
2808 called in cspi, since
2809 Accessibility_DeviceEventController_deregisterKeystrokeListener
2810 was called with a zero-length keyset. That is because the cspi
2811 method, SPI_deregisterKeystrokeListener, does not take a keyset
2812 parameter but instead should remove all the key grabs held be a
2814 The code in impl_deregister_keystroke_listener was changed to copy
2815 the keylist from the listener instance previously registered with
2816 the DeviceEventController before releasing the grabs.
2818 * registryd/registry.c:
2819 * registryd/deviceeventcontroller.c:
2820 * libspi/spi-private.h:
2822 Changed spelling of "re-enterant" to "re-entrant" globally.
2824 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2826 * test/test-simple.c:
2827 Changed key listeners test - the test was slightly mis-using the
2828 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2829 It now uses '=' as the key event listened to and generated,
2830 relying on a keysym match rather than assuming that keycode 33
2831 is always equal to keysym '!'.
2833 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2836 Changed simple-at to use a specific keyset, rather than
2837 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2838 manager, desktop, etc.
2840 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2842 * registryd/deviceeventcontroller.c:
2843 Replaced standard X error handler with a special handler that
2844 is non-fatal for failed keygrabs. This works around
2845 problems with keygrab clashes sometimes observed on
2847 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2848 mouse handling code as yet).
2850 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2853 Incremented revision for desktop alpha release.
2856 Fixed a couple of the more glaring errors (still not
2859 2002-01-11 Michael Meeks <michael@ximian.com>
2861 * registryd/deviceeventcontroller.c
2862 (spi_device_event_controller_forward_key_event): kill
2863 XUngrabKey / XKeyGrab race.
2864 (spi_controller_grab_keyboard): rename to
2865 (spi_controller_update_key_grabs): this, and deal
2866 with incremental adding / removing grabs more
2868 (_register_keygrab): ensure we're not pending a remove.
2869 (spi_grab_mask_free): impl.
2870 (spi_controller_register_global_keygrabs): split out
2872 (handle_keygrab): impl.
2873 (_deregister_keygrab): impl.
2874 (spi_controller_deregister_global_keygrabs): impl.
2875 (spi_controller_update_key_grabs): re-issue the grab if
2876 we just recieved a notification.
2878 * test/test-simple.c (key_listener_cb): remove debug.
2880 * registryd/deviceeventcontroller.c
2881 (spi_controller_register_device_listener): after
2882 registering a global keygrab, actualy register it !
2883 don't wait for a timeout; doh !
2885 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2886 to make it more readable / manipulable.
2887 s/grabmask/grab_mask/ s/refcount/ref_count/
2888 s/keyval/key_val/ s/modmask/mod_mask
2890 2002-01-08 Michael Meeks <michael@ximian.com>
2892 * registryd/deviceeventcontroller.c
2893 (spi_controller_register_with_devices): use gdk calls to
2895 (global_filter_fn): implement the filter.
2896 (spi_device_event_controller_check_key_event): rename to
2897 (spi_device_event_controller_forward_key_event): this & upd.
2898 (spi_get_display): replace with GDK_DISPLAY.
2900 * registryd/deviceeventcontroller.c
2901 (spi_controller_deregister_device_listener): unroll into
2902 (impl_deregister_keystroke_listener): here to simplify.
2903 (spi_controller_register_global_keygrabs): split cut and
2904 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2905 (spi_controller_deregister_device_listener): remove.
2906 (impl_register_mouse_listener): remove, no mouse listener
2907 support in at-spi-1.0
2909 * registryd/registry.c
2910 (_device_event_controller_hook): kill.
2911 (spi_registry_init): upd.
2913 * registryd/deviceeventcontroller.c
2914 (spi_device_event_controller_class_init): upd.
2915 (spi_check_key_event): merge into.
2916 (spi_device_event_controller_check_key_event):
2917 here and kill strange static ev init, don't leak
2918 the x_event - nor dynamicaly allocate it.
2920 * registryd/registry-main.c (main): re-direct
2921 timeout to remove strange vtable mess.
2923 * registryd/deviceeventcontroller.c
2924 (remove_listener_cb): impl.
2925 (spi_controller_deregister_device_listener):
2926 fix re-enterancy hazard.
2928 2002-01-07 Michael Meeks <michael@ximian.com>
2930 * registryd/deviceeventcontroller.c
2931 (spi_device_event_controller_new): upd.
2932 (impl_notify_listeners_sync): upd. debug.
2933 (spi_notify_keylisteners): fix re-enterancy hazards,
2934 prettify, remove O(n*n) iteration.
2935 (spi_controller_grab_keyboard): fix iteration.
2936 (spi_check_key_event): re-format to suit coding style.
2937 Clean all the warnings - we're warning free.
2939 * registryd/deviceeventcontroller.h:
2940 * registryd/registry.h: make mutualy referential with
2941 typesafe forward references instead of (!) void pointer
2944 2002-01-11 Michael Meeks <michael@ximian.com>
2946 * cspi/spi_accessible.c (role_names): add a role name
2947 to sync this array with the enum; and make the regression
2950 2002-01-10 Michael Meeks <michael@ximian.com>
2952 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2953 allow expansion of enumeration & kill warning.
2955 * test/test-simple.c (key_listener_cb): impl.
2956 (test_keylisteners): impl.
2958 * cspi/spi-listener.h: make listener signatures const
2959 on the provided (const) events.
2961 * test/keysynth-demo.c: upd. to const events.
2963 * test/simple-at.c: ditto.
2965 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2968 Rev the version to 0.5 (the previous tarball was named 0.4,
2969 even though the micro number was 3), so we need to rev upwards
2970 again for beta2/"desktop-alpha"
2973 Checked in a demo script, which requires editing before use!
2974 Proceed with caution.
2977 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2979 * cspi/spi_accessible.c:
2980 Add a couple of missing enum initializations, and fix some enum
2983 * cspi/spi_registry.c:
2984 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2986 * docs/reference/cspi/at-spi-cspi-sections.txt:
2987 Remove/fix a couple of broken document references.
2990 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2991 as Alt-Control to listen for commands, since on some systems
2992 Control-Alt may already be grabbed.
2994 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2997 Update version number to 0.4 for Beta2.
2999 * libspi/accessible.c, libspi/accessible.h:
3000 Expose spi_accessible_construct, to enable libgail-gnome
3001 construction from spi_accessible subtype.
3003 * utils/magnifier.c:
3004 Workaround for bug in some non-gnome-compliant window managers
3005 which made magnifier resize improperly.
3007 2002-01-09 Bill Haneman <bill.haneman@sun.com>
3009 * libspi/accessible.c: (spi_accessible_new) :
3010 Move the test for SPI_IS_REMOTE_OBJECT to
3011 spi_accessible_new_return, fixing a bug and compile time warning.
3013 2002-01-08 Michael Meeks <michael@ximian.com>
3015 * registryd/registry.c (parse_event_type): remove strndup.
3017 * libspi/Makefile.am (libspi_la_SOURCES): remove
3018 sources already included in the headers section.
3020 * libspi/util.c: add.
3022 * libspi/spi-private.h: add.
3024 * registryd/registry.c: update to moved list iterators.
3026 2002-01-05 Michael Meeks <michael@ximian.com>
3028 * test/simple-at.c (main): upd. auto-module set to atk-bridge
3030 * test/test-simple.c (main): ditto.
3032 2002-01-04 Michael Meeks <michael@ximian.com>
3034 * libspi/accessible.c (spi_accessible_new): remove 2nd,
3035 redundant construct.
3037 * registryd/registry.c
3038 (get_listener_list): impl.
3039 (impl_accessibility_registry_register_global_event_listener):
3040 re-impl. to simplify using ~, remove dodgy const cast off.
3041 (parse_event_type): constify.
3042 (impl_accessibility_registry_deregister_global_event_listener_all):
3043 re-write, more efficiency and simplicity, kill re-enterancy
3045 (compare_listener_corbaref, compare_corba_objects),
3046 (compare_listener_quarks): define out.
3047 (impl_accessibility_registry_deregister_global_event_listener):
3048 re-write for effiency, and nail re-enterancy hazard.
3049 (impl_accessibility_registry_get_desktop_list): impl.
3050 (re_enterant_list_delete_link): impl.
3051 (re_enterant_list_foreach): impl.
3052 (remove_listener_cb): impl.
3053 (_registry_notify_listeners): kill.
3054 (notify_listeners_cb): impl.
3056 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
3057 (SPI_getDesktopList): impl.
3059 * test/test-simple.c (test_desktop): test the methods.
3061 2002-01-03 Michael Meeks <michael@ximian.com>
3063 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
3064 keystrings since we free them
3065 (SPI_freeAccessibleKeySet): in here.
3067 * libspi/accessible.c (spi_accessible_new): kill warning,
3068 wonder what is going on with the constructor here.
3070 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3072 * libspi/accessible.c (spi_accessible_new ()) :
3073 Added check to see if AtkObject is an SpiRemoteObject before
3074 creating an SpiAccessible.
3076 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3078 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3079 Enable keygrabs using the Control modifier, now that they are
3080 working properly (they were previously disabled).
3083 Change the command keygrab for this demo to "Control+Alt", so as
3084 to conflict with fewer other key commands on the system; this
3085 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3087 Removed a pointlessly-chatty keylistener for unshifted keys
3088 (shifted keys are still reported).
3090 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3092 * libspi/remoteobject.h:
3093 * libspi/remoteobject.c:
3094 Added definitions for special AtkObject subtype, required for
3095 support of remote components (specifically, used by BonoboControl
3096 accessibility implementation).
3098 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3100 * cspi/spi.h: synched relation types with ATK
3102 * cspi/spi_accessible.c: Added implementations of
3103 AcccessibleRelation_* methods
3105 * idl/Accessibility_Relation.idl: added getRelationTypeName
3106 method. Synched known relation types with ATK. Allowed for
3107 relation type extension with the RELATION_EXTENDED type.
3109 * libspi/relation.c: Provided implementations for
3110 AccessibleRelation methods.
3112 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3114 API tweaks for today's API 'freeze'.
3117 Added placeholder functions to allow future compatible expansion
3118 of the IDL interfaces.
3120 * idl/Accessibility_Registry.idl:
3121 Changed generateKeyEvent to generateKeyboardEvent. Changed
3122 signature of this method to accept an optional keystring in
3123 parameter (for complex text input synthesis) and changed use of
3124 simple 'boolean' parameter in registerKeystrokeListener to a
3125 struct, EventListenerMode.
3127 * cspi/spi_accessible.c:
3129 * cspi/spi_streamablecontent.c:
3130 Added references to AccessibleStreamableContent interface, and
3131 definition and implementation of AccessibleStreamableContent
3134 * cspi/spi_registry.c:
3136 Changed generateKeyEvent API to generateKeyboardEvent,
3137 taking a new (optional) keystring parameter to support complex
3142 Renamed directory (to better reflect its actual purpose, bridging
3143 from at-spi to ATK). The .so module is also now named
3146 * idl/Accessibility_Hypertext.idl:
3147 * libspi/accessible.c:
3148 * libspi/hypertext.h:
3149 * libspi/hypertext.c:
3150 Changed Accessibility_Hypertext to *not* derive from
3153 * cspi/spi_registry.c:
3154 Added list of legal event type names for 'window' events, which
3155 completes the registry event API.
3157 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3159 * at-bridge/bridge.c: Added registration for separate
3160 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3161 signals. If either of the first two parameters to the generic
3162 bridge signal handler are ints, they are passed on as event
3163 details. This allows an AT to determine what text was inserted.
3165 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3167 * registryd/deviceeventcontroller.c:
3168 Fixed regressions in generateKeyEvent caused by the removal of
3169 gdk_init from registryd; we now use pure X calls to connect to the
3170 display, which makes sense because deviceeventcontroller already
3171 uses a fair bit of X API (should eventually be migrated to a
3172 'portability layer').
3174 * registryd/desktop.c:
3175 Fixed minor regression in spi_desktop_init, changed the way the
3176 desktop name is being set to work with new spi_base API
3177 (gobject-based, rather than AtkObject-based).
3179 * registryd/Makefile.am:
3180 Minor revision of makefile to use XTST_LIBS variable rather than
3181 hard-wiring the Xtst LD_ADD element.
3183 * test/keysynth-demo.c:
3184 Tweaked an output message; added initialization of the
3185 'keystrings' member of the "switch listener" key_set.
3187 * libspi/relation.c:
3188 Squashed compile-time warning.
3190 * libspi/accessible.c:
3191 Cosmetic and formatting fixes, renamed a static method.
3193 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3195 * libspi/accessible.c
3197 * libspi/application.c
3200 * libspi/component.c
3201 * libspi/editabletext.c
3202 * libspi/hyperlink.c
3203 * libspi/hypertext.c
3205 * libspi/selection.c
3209 * registryd/desktop.c:
3210 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3212 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3214 * idl/Accessibility_Registry.idl:
3215 Added boolean member 'is_text' to DeviceEvent. This is for the
3216 use of key events, and helps prevent ambiguity between composed
3217 key strings and keysym names, since both may potentially be
3218 returned in the 'event_string' member.
3220 * at-bridge/bridge.c:
3221 * registryd/deviceeventcontroller.c:
3222 Use the 'is_text' member when notifying device event listeners.
3223 Knon issue: composed characters are not dealt with correctly by
3224 the global key listener implementation yet.
3226 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3228 * at-bridge/bridge.c:
3229 Namespaced local static methods to spi_atk_bridge_* where
3230 previously named bridge_*, and spi_* elsewhere.
3232 * at-bridge/bridge.c:
3233 * cspi/bonobo/cspi-bonobo-listener.c:
3234 Added demarshalling/conversion for string member of
3235 Accessibility_DeviceEvent to AccessibleKeystroke.
3237 * registryd/deviceeventcontroller.c:
3238 Added code to fill the Accessibility_DeviceEvent key string value
3239 member for global key events (i.e. from XGrabKey), to match
3240 behavior of Accessibility_DeviceEvent from the toolkit key events
3241 from the bridge. Fixed timestamp in global key event notifications.
3244 Added printout of key event's string value to
3245 report_ordinary_key_event, for demo/debugging purposes.
3247 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3249 * idl/Accessibility_Registry.idl:
3250 Removed Accessibility_KeyStroke structure in favor of generic
3251 Accessibility_DeviceEvent structure.
3252 Changed Accessibility_ControllerEventMask from a struct to an
3255 * at-bridge/bridge.c:
3256 Changed APIs to use DeviceEvent structure as above, and removed
3257 bogus casting between these event structures.
3259 * cspi/spi-listener.h:
3260 Added keystring member of AccessibleKeystroke structure, to enable
3261 matching on event "names" rather than only hardware codes and
3265 Added keystrings member of AccessibleKeySet struct, to allow
3266 matching on event names (as above).
3267 Added declarations for SPI_createAccessibleKeySet and
3268 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3269 event modmasks directly as unsigned ints rather than structs with
3270 refcounts, in the DeviceEventController methods.
3272 * cspi/spi_registry.c:
3273 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3275 * cspi/spi-roletypes.h:
3276 Added documentation of newly added SPI Roles.
3278 * cspi/bonobo/cspi-bonobo-listener.c:
3279 Changes in support of API changes above.
3281 * libspi/accessible.c:
3282 Converted APIs to use DeviceEvent structure (see IDL changes
3285 * registryd/deviceeventcontroller.c:
3286 Added DEControllerGrabMask structure to track keygrabs not only by
3287 modmask but by keyset as well; this allows us to do "global"
3288 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3289 grabbing on AnyKey and then filtering after-the-fact.
3290 Bugfixes for event filtration mean that we don't get false matches
3291 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3293 * registryd/deviceeventcontroller.c:
3294 Namespaced a number of static methods to use spi_ prefix. Major
3295 revision to internals of global (i.e. X) key grabs.
3297 * registryd/deviceeventcontroller.h:
3298 Removed keymask_list and added keygrabs_list to
3299 SpiDeviceEventController struct.
3302 Added use of SPI_createAccessibleKeySet API when creating a
3303 listener for only one key. Attach a listener to "shift spacebar
3304 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3305 X key event names to SPI key event names, so that listeners are
3306 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3308 * test/keysynth-demo.c:
3309 Changed (incorrect) use of X key event names (KeyPressed,
3310 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3313 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3315 * libspi/accessible.c:
3316 Convert all AtkRole enumerations to Accessibility_Role enums when
3317 getting a role from an AtkObject.
3319 * cspi/spi_accessible.c:
3320 Complete the conversion of Accessibility_Role enums at runtime to
3321 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3322 role enums correctly match those given in spi-roletypes.h.
3323 Re-synchronize the local names list for AccessibleRole_getName ().
3324 AccessibleRole_getName is now deprecated, since it duplicates the
3325 more reliable Accessible_getRoleName.
3326 Added some role types from Accessibility_Role.idl.
3328 * idl/Accessibility_Role.idl:
3329 Added some role types used by AtkRole.
3331 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3334 * cspi/spi_registry.c:
3336 * cspi/cspi-bonobo-listener.c:
3337 Namespaced all methods that did not begin with an "SPI_" or
3338 "Accessible" prefix to "SPI_".
3341 Homogenized internal function namespace to "cspi_" for statics.
3344 Patched tests to use the new CSPI API.
3346 * docs/reference/cspi/at-spi-cspi-sections.txt:
3347 Updated docs to reflect namespace changes, and added a number of
3348 methods to the documentation.
3350 * registryd/registry.c:
3351 Changed use of strings and string hashes in listener event
3352 matching and parse_event_string to use GQuark, which is guaranteed
3355 * registryd/registry.h:
3356 Squashed annoying warning.
3358 * idl/Accessibility_Role.idl:
3359 Extended range of available Accessibility_Role values.
3361 * cspi/spi_accessible.c:
3362 Re-ordered role names.
3364 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3366 * idl/Accessibility_Value.idl:
3367 Revert use of union back to CORBA_double, since the double type is
3368 more efficient and can contain the other types without loss of
3371 * idl/Accessibility_Accessible.idl:
3372 Added method Accessibility:Accessible:getRoleName, to complement
3373 Accessibility:Accessible:getRole.
3375 * cspi/spi_accessible.c:
3377 Added C binding for above, Accessible_getRoleName (), and changed
3378 signature of Accessible_getRole () to return an AccessibleRole.
3380 * cspi/spi-roletypes.h:
3381 Changed AccessibleRole_getName to return a char * instead of a
3382 const char *. This method is now at least temporarily deprecated
3383 in favor of asking Accessibles for their RoleNames directly.
3386 Revert to match Accessibility_Value.idl;
3390 Change signature of AccessibleValue methods to use double rather
3394 * cspi/spi_accessible.c:
3395 Changed Accessible_getRole to return an AccessibleRole enum rather
3396 than a UTF-8 string. The UTF-8 string can still be obtained via
3397 AccessibleRole_getName ().
3399 * test/test-simple.c:
3400 Add test_action. Small fixup to match API change to Accessible_getRole.
3403 Bugfix for get_action_from_servant ().
3405 2001-12-11 Michael Meeks <michael@ximian.com>
3407 * libspi/libspi.h: remove registry.h and
3408 desktop.h, deviceeventcontroller.h
3410 * libspi/Makefile.am: remove registry.[ch],
3411 desktop.[ch], deviceeventcontroller.[ch]
3413 * registryd/Makefile.am: add registry.[ch],
3414 desktop.[ch], rename registryd.c to registry-main.c.
3415 add deviceeventcontroller.[ch]
3417 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3420 Replace setenv() call with putenv ().
3422 * libspi/component.c:
3423 Bugfix in AccessibleComponent_getExtents (),
3426 2001-12-11 Michael Meeks <michael@ximian.com>
3428 * libspi/image.c (impl_getImageExtents): impl.
3429 (spi_image_class_init): upd.
3432 (AccessibleImage_getImageDescription): fix daft bug
3435 * test/test-simple.c (global_listener_cb): update
3436 to only quit if not --poke
3437 (main): catch --poke.
3438 (validate_accessible): upd. dumping, call test_image
3441 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3444 * idl/Accessibility.idl: update all IDL includes.
3446 * idl/*.idl - rename to namespace - this sucks, blame
3447 mjs' bad decision for oafd.
3449 * test/test-simple.c (create_test_window): add more tests.
3450 (create_tree): split this out.
3451 (validate_accessible): bugfix.
3453 2001-12-11 Michael Meeks <michael@ximian.com>
3455 * cspi/bonobo/cspi-bonobo-listener.c:
3456 (cspi_kestroke_listener_unref),
3457 (cspi_event_listener_unref): impl. undoing previous
3458 homenous environment - for Bill.
3460 * cspi/spi_table.c (long_seq_to_array): use
3463 * cspi/spi_main.c: split out all bonoboish bits into
3466 * cspi/spi-impl.h: upd. typedefs.
3468 * cspi/spi_registry.c: update to lowlevel API,
3469 return booleans to indicate success in some places.
3471 * cspi/spi_event.c: update to lowlevel API.
3473 * cspi/bonobo/Makefile.am: add.
3475 * cspi/bonobo/cspi-lowlevel.h: add
3477 * cspi/bonobo/cspi-bonobo.c: add
3479 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3481 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3482 (SUBDIRS): add bonobo, link in the libs.
3484 * cspi/spi-util.c: kill this file.
3486 * TODO: merge in my bits.
3488 2001-12-11 Michael Meeks <michael@ximian.com>
3490 * test/test-simple.c (test_value, test_table, main):
3491 remove unused variables causing warnings.
3493 * configure.in: cleanup checks - require gail.
3495 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3498 Changed Value interface to use SValue (scalars) rather than
3499 assuming all values are floats. This allows floats, doubles,
3500 longs, shorts, and unsigned values to be manipulated.
3501 Introduced Accessibility:SValue union.
3504 Updated to use new API above, and to work correctly with GValues
3505 of different types in AtkValue.
3508 Updated to use new API above. cspi's API is as yet unchanged.
3511 Updated the Value revision action item.
3513 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3515 * test/test-simple.c:
3516 Added test_table (GtkTreeView widget in test window to follow).
3517 Un-commented test_value, added GtkRange widget.
3518 Added GtkTreeView widget with GtkListStore. It passes regression
3519 test but leaks one SPI object for some reason.
3522 Fixed bug in impl__set_currentValue.
3524 2001-12-10 Michael Meeks <michael@ximian.com>
3526 * cspi/spi_text.c: audit for exception handling,
3527 tolerating NULL object references safely etc.
3529 * cspi/spi_value.c: ditto.
3531 * cspi/spi_table.c (AccessibleTable_getSummary),
3532 (AccessibleTable_getAccessibleAt),
3533 (AccessibleTable_getRowHeader),
3534 (AccessibleTable_getColumnHeader),
3535 (AccessibleTable_getCaption): fix bugs hidden by
3537 (long_seq_to_array): impl.
3538 (AccessibleTable_getSelectedRows),
3539 (AccessibleTable_getSelectedColumns): use it.
3541 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3544 Added a TODO list (rough and short for now).
3546 * cspi/spi_hyperlink.c:
3547 * cspi/spi_hypertext.c:
3548 Fixed macro name typos, and remove use of obsolete macro in
3549 AccessibleHyperlink_getLink.
3551 * cspi/spi_action.c:
3552 * cspi/spi_accessible.c:
3553 * cspi/spi_application.c:
3554 * cspi/spi_component.c:
3555 * cspi/spi_selection.c:
3558 Documentation fixes (removed return values from ref/unref methods).
3560 2001-12-10 Michael Meeks <michael@ximian.com>
3562 * cspi/spi_action.c: audit for exception handling,
3563 tolerating NULL object references safely etc.
3565 * cspi/spi_accessible.c: ditto.
3567 * cspi/spi_component.c: ditto.
3569 * cspi/spi_editabletext.c: ditto.
3571 * cspi/spi_hyperlink.c: ditto.
3573 * cspi/spi_hypertext.c: ditto.
3575 * cspi/spi_image.c: ditto.
3577 * cspi/spi_selection.c: ditto.
3579 2001-12-10 Michael Meeks <michael@ximian.com>
3581 * configure.in: use cspi/libspi.pc.in instead.
3583 * Makefile.am (pkgconfig_DATA): upd. to match.
3585 * test/simple-at.c (report_focus_event): kill hacks around
3586 bad return values, use putenv not setenv
3588 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3589 fire ChildGone - I killed it.
3591 * libspi/component.c
3592 (impl_accessibility_component_get_extents): remove
3595 * idl/Accessible.idl: kill ChildGone exception.
3597 * cspi/*.[ch]: kill int return from ref / unref.
3599 * cspi/spi_main.c (cspi_object_add_check): fold into
3600 (cspi_object_add): here.
3602 * cspi/spi_component.c (AccessibleComponent_getExtents):
3603 handle exceptions elegantly.
3605 * cspi/spi-private.h (cspi_check_ev_return),
3606 (cspi_return_if_fail): impl.
3608 * cspi/spi_accessible.c: use extensively.
3609 (AccessibleStateSet_equals): add direct compare check.
3611 * cspi/spi_selection.c: tolerate NULL objs, and check
3612 exceptions before return.
3614 * cspi/spi-util.c (cspi_warn_ev): rename to
3615 (cspi_check_ev): this & don't pass ev in; no point.
3617 2001-12-10 Michael Meeks <michael@ximian.com>
3619 * test/test-simple.c: use putenv not setenv
3620 (get_environment_vars): more chatty if you're not using
3623 * test/simple-at.c: do the setenv so more people see the
3626 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3628 * libspi/registry.c:
3629 Changed check of CORBA_environment on notification to be a warning
3630 instead of an error for the moment, since we can recover from this
3631 error when caused by a queued notification from a dead app.
3634 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3635 used by all current implementors of AtkValue), and coerce to
3636 CORBA_float. (Proper general case fix may require change to Value.idl).
3638 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3642 * cspi/spi_accessible.c:
3643 Documentation fixes: added user_data params to documentation for
3644 listeners and callbacks.
3646 * cspi/spi_accessible.c:
3647 Changed AccessibleStateSet_compare to return a
3648 StateSet rather than return the difference set into a third parameter.
3651 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3654 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3655 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3659 Remove subdirectory po from SUBDIRS for now.
3661 * at-bridge/bridge.c:
3662 Beefed up a couple of debug printouts.
3663 One-line fix for signal notification name formatting.
3665 * libspi/accessible.c:
3666 Added assertion to spi_accessible_new ().
3668 * libspi/application.c:
3669 Put #ifdef qualifiers around a printf.
3672 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3674 * registryd/Makefile.am:
3676 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3677 INTLTOOL_SERVER_RULE macro.
3680 Added an event listener for several ATK signals, for
3681 testing and debugging. Removed a few g_warnings.
3682 Added test output if focussed item implements the Value interface.
3684 * test/test-simple.c:
3685 Added test_value () function (known not to pass at the moment, so
3686 not actually called yet.
3688 2001-12-08 Michael Meeks <michael@ximian.com>
3690 * at-bridge/bridge.c (bridge_focus_tracker),
3691 (emit_eventv): fix the same ref. leak.
3692 (register_atk_event_listeners): don't leak.
3694 * cspi/spi-listener-impl.c (cspi_event): more
3695 protection from client code.
3697 * test/test-simple.c (test_desktop): unref the app.
3699 * test/Makefile.am: upd. TESTS.
3701 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3703 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3705 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3707 * cspi/spi_registry.c: constify in strings.
3708 (deregisterGlobalEventListenerAll): don't release the ref.
3710 * cspi/spi.h: start removing redundant / conflicting
3711 gtkdoc comments, making the API readable at a glance :-)
3713 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3715 * test/keysynth-demo.c (keysynth_exit, main): upd.
3717 * test/simple-at.c (main, simple_at_exit): upd.
3719 * test/test-simple.c (unutterable_horror): kill.
3720 (utterable_normal_derefs): kill.
3721 (main): upd & do a setenv before gtk_init, so that we
3722 can use memprof - and to save the pain of remembering
3723 this, if we're running under memprof - don't exit.
3725 * cspi/spi_main.c (SPI_exit): return exit status
3727 (SPI_event_quit): impl.
3728 (SPI_event_main): simplify.
3729 (cspi_is_gnome_app): kill.
3730 (SPI_init): kill isGNOMEapp arg.
3732 * at-bridge/bridge.c (register_atk_event_listeners):
3733 re-instate the unref.
3734 (bridge_exit_func): don't re-activate the registry,
3735 protect vs. theoretical re-entry, use the
3736 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3737 assert a clean shutdown - for regression tests.
3739 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3741 * configure.in: Comment out dummy i18n support for now,
3742 otherwise it fails to build.
3743 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3744 EXTRA_DIST. They are missing in tarball.
3746 2001-12-07 Michael Meeks <michael@ximian.com>
3748 * util/magnifier.c: kill bonobo activation reg. race.
3750 * libspi/component.c
3751 (impl_accessibility_component_get_extents): make it match
3754 * libspi/registry.c (_registry_notify_listeners):
3755 re-remove X headers & reconcile conflicts.
3756 (spi_listener_struct_free): bad conflict resolve.
3757 (impl_accessibility_registry_register_application):
3758 more bad merging fixed.
3759 (impl_accessibility_registry_deregister_application): ditto.
3760 (spi_registry_new): ditto.
3761 (spi_registry_init): don't have an applications field.
3763 [ merge fixups2 branch to here ]
3764 2001-12-07 Michael Meeks <michael@ximian.com>
3766 * test/simple-at.c (report_focus_event),
3767 (report_focussed_accessible): remove g_warning debug.
3769 2001-12-07 Michael Meeks <michael@ximian.com>
3771 * test/test-simple.c (validate_tree): comment out some checks.
3772 (test_desktop): app now not registered idly - horay.
3774 2001-12-07 Michael Meeks <michael@ximian.com>
3776 * cspi/spi_registry.c
3777 (registerAccessibleKeystrokeListener): clean, stop it leaking
3778 great swathes of memory, and device event controller references.
3779 ensure we always pass valid sequences.
3780 (deregisterAccessibleKeystrokeListener): ditto.
3781 (generateKeyEvent): upd.
3783 * at-bridge/bridge.c (bridge_key_listener): handle
3784 registry dead exception gracefully.
3785 (bridge_focus_tracker, emit_eventv): free ev.
3787 * test/simple-at.c (report_focus_event): fix polarity.
3789 * libspi/application.c (notify_listeners): kill the ev
3790 argument, and make sure we init the ev we use.
3791 (spi_application_object_event_listener): split out a chunk
3792 (get_atk_object_ref): here & fixup.
3793 (reverse_lookup_name_for_toolkit_event): make const.
3794 (spi_application_toolkit_event_listener): fixup, kill leaks
3797 * at-bridge/bridge.c (register_atk_event_listeners):
3798 don't unref the noop object - causes grief.
3800 * libspi/registry.c: remove the X headers.
3801 turn off the debug churn.
3803 * libspi/accessible.c (spi_accessible_new_return): only
3804 release the ref if we are supposed to [doh]
3806 * test/simple-at.c (report_button_press, report_focus_event):
3807 guard vs. unexpected exit.
3809 * at-bridge/bridge.c (gtk_module_init): prune printf.
3810 (bridge_exit_func): fix app unref.
3812 * libspi/Makefile.am: don't install registry or desktop.h
3814 * libspi/*.h: update includes.
3816 * libspi/application.h: don't include ourself, or
3817 other redundant headers.
3819 2001-12-06 Michael Meeks <michael@ximian.com>
3821 * libspi/accessible.c
3822 (get_accessible_from_servant): impl.
3823 Upd. all CORBA impl.s to use it killing cut and paste.
3825 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3827 (SPI_init): register atexit cleanup handler here.
3829 2001-12-06 Michael Meeks <michael@ximian.com>
3831 * at-bridge/bridge.c (gtk_module_init): g_error on
3832 activation exception
3834 2001-12-06 Michael Meeks <michael@ximian.com>
3836 * at-bridge/bridge.c (gtk_module_init): some sort of
3837 confusing merge clash - reverted.
3838 (bridge_idle_init): ditto.
3840 * test/test-simple.c (main, utterable_normal_derefs):
3841 merge from Bill - somehow not committed.
3843 2001-12-06 Michael Meeks <michael@ximian.com>
3845 * libspi/value.c (spi_value_class_init): upd.
3846 (spi_value_finalize): kill.
3848 * libspi/table.c (spi_table_finalize): kill.
3849 (spi_table_interface_new): upd.
3850 (spi_table_class_init): upd.
3851 (get_table_from_servant): impl.
3852 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3854 * libspi/selection.c (spi_selection_finalize): kill.
3855 (spi_selection_interface_new): upd.
3856 (spi_selection_class_init): upd.
3857 (get_selection_from_servant): impl.
3858 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3860 * libspi/relation.c (spi_relation_finalize): kill.
3861 (spi_relation_class_init, spi_relation_new): upd
3863 * libspi/image.c (spi_image_finalize): kill.
3864 (spi_image_class_init): upd.
3865 (spi_image_interface_new): upd.
3866 (get_image_from_servant): impl.
3867 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3869 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3870 (spi_hyperlink_finalize): kill.
3871 (spi_hyperlink_new): upd.
3872 (get_hyperlink_from_servant): impl.
3873 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3875 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3876 (spi_hypertext_finalize): kill.
3877 (spi_hypertext_class_init): upd.
3878 (get_hypertext_from_servant): impl.
3879 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3881 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3882 (spi_editable_text_interface_new): upd.
3883 (get_editable_text_from_servant): impl.
3884 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3886 * libspi/text.c (get_text_from_servant): impl.
3887 All impls - update to use it killing more cut and paste,
3888 also fix bad string returns on duff args ( a somewhat
3889 impossible case to handle - but hey ).
3890 (spi_text_construct): impl.
3891 (spi_text_interface_new): upd.
3892 (spi_text_object_finalize): kill.
3894 * libspi/component.c
3895 (accessibility_component_object_finalize): kill.
3896 (spi_component_class_init): upd.
3897 (get_component_from_servant): impl. helper to kill cut & paste.
3898 (impl_accessibility_component_contains):
3899 (impl_accessibility_component_get_accessible_at_point):
3900 (impl_accessibility_component_get_position):
3901 (impl_accessibility_component_get_extents):
3902 (impl_accessibility_component_get_mdi_z_order):
3903 (impl_accessibility_component_get_layer):
3904 (spi_component_interface_new): upd.
3906 * libspi/action.c (spi_action_finalize): kill.
3907 (spi_action_class_init): upd. inherit from SpiObject.
3908 (spi_action_interface_new): upd.
3909 (get_action_from_servant): impl. helper to reduce cut & paste.
3910 (impl_getKeyBinding, impl_getName, impl_doAction),
3911 (impl_getDescription): Use it everywhere.
3913 * cspi/spi_main.c (get_live_refs): a pointer hash.
3914 (spi_object_hash, spi_object_equal): comment out.
3915 There are issues with CORBA object hashing that need
3918 * libspi/application.c (spi_application_init),
3919 (spi_application_new): upd.
3921 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3922 (spi_accessible_class_init): upd.
3923 s/accessible/object/ in epv methods.
3925 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3927 * at-bridge/bridge.c:
3928 Reorder the bridge initialization into the bridge gtk_module_init,
3929 an immediate call to bridge_register_app, and an idle_add for
3930 register_atk_event_listeners (the only code that *must* wait until
3931 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3932 the activation, creates the application's Accessible object, and
3933 queues the bridge_idle_init function. Restored call to
3934 Accessibility_Registry_deregisterApplication().
3935 Prior to making this call we obtain a new reference to the
3936 registry, which is a temporary hack that helps us handle apps that
3937 shut down the bonobo mainloop before we get there.
3939 * libspi/registry.c:
3940 Fix string leakage in debug block, and don't segv if a an app
3941 dies before its event notifications have been propagated.
3944 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3945 as stopgap measure until we get proper exception handling when
3946 objects die during or before interrogation.
3950 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3951 Also changed default value of is_gnome_app to TRUE.
3954 * test/keysynth-demo.c:
3955 Changed use of SPI_init and SPI_event_main to reflect API change above.
3958 Made report_focus_event check the warning value from getName
3959 before reporting on focussed accessible; simplifies handling of
3960 notifications from dead objects.
3962 * test/test-simple.c: (Changes not in this patch since source is
3965 2001-12-05 Michael Meeks <michael@ximian.com>
3967 * registryd/registryd.c (main): protect against
3968 bonobo-activation startup race condition.
3970 * cspi/spi_main.c (cspi_object_add_check): cope
3971 with the exception elegantly.
3973 * idl/Accessible.idl: decl. ChildGone
3975 * libspi/desktop.c (spi_desktop_dispose): impl.
3976 (spi_desktop_class_init): upd.
3977 (spi_desktop_add_application),
3978 (spi_desktop_remove_application),
3979 (abnormal_application_termination): impl.
3980 (impl_desktop_get_child_at_index): re-impl.
3983 (impl_accessibility_registry_deregister_application),
3984 (impl_accessibility_registry_register_application):
3985 kill excessive debug clutter.
3987 * test/test-simple.c (test_misc): test some NULL
3988 tolerance. (main): upd.
3990 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3991 implements no interfaces - so let's not crash.
3993 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3995 * libspi/accessible.c (spi_accessible_new_return): impl.
3996 helper to calm the cut and paste, to cope with
3997 NULL AtkObjects effectively and efficiently, and to kill
3998 the referencing bugs.
4000 * libspi/table.c (impl_getAccessibleAt),
4001 (impl_getRowHeader, impl_getColumnHeader): upd.
4003 * libspi/hyperlink.c (impl_getObject): upd.
4005 * libspi/accessible.c
4006 (impl_accessibility_accessible_get_child_at_index): upd.
4008 * libspi/component.c
4009 (impl_accessibility_component_get_accessible_at_point): upd.
4011 * test/test-simple.c (test_editable_text, test_text): impl.
4014 * cspi/spi_editabletext.c
4015 (AccessibleEditableText_insertText): constify.
4017 * test/test-simple.c (focus_me): make more robust.
4019 * libspi/accessible.c: remove some printfs in methods that
4020 we test and work fine, so we can get a clean tree dump.
4022 * test/test-simple.c (validate_accessible),
4023 (validate_tree): make tree dumping pretty too.
4025 * at-bridge/bridge.c (bridge_signal_listener): upd. so
4026 it builds without debug on.
4028 * test/test-simple.c (validate_accessible): fix the most
4031 * cspi/spi_main.c (spi_object_release): leave the nicely
4032 blanked memory around if in debug mode.
4034 * cspi/spi-listener-impl.c (cspi_event): use add_check.
4036 [committed to fixups2]
4037 2001-12-05 Michael Meeks <michael@ximian.com>
4039 * libspi/editabletext.c
4040 (spi_editable_text_class_init): g_type_class_peek_parent,
4041 not interface peek - so we finalize cleanly.
4043 * libspi/accessible.c (spi_accessible_new): kill debug.
4045 * test/test-simple.c (validate_accessible): fix ref.
4046 leak, print strings before freeing them; sigh, comment a
4047 chunk out due to strangeness.
4048 (validate_tree): unref the child after use.
4050 * cspi/spi_component.c (AccessibleComponent_getLayer):
4051 add missing break statement, switch on zlayer not the
4052 uninitialized retval.
4054 * cspi/spi_main.c (cspi_object_add): add assert, local ref
4055 before (possibly re-entering) remote unref.
4057 * test/simple-at.c (main): unref the desktop.
4059 * cspi/spi_accessible.c (cspi_accessible_is_a): move
4062 * cspi/spi_main.c (cspi_accessible_is_a): here to
4063 isolate bonobo API usage more.
4065 * libspi/registry.c (impl_accessibility_registry_register_application):
4066 prune bogus comment.
4068 2001-12-04 Michael Meeks <michael@ximian.com>
4070 * test/test-simple.c (validate_tree): upd.
4071 IndexInParent check to make it more lucid.
4072 (validate_accessible): dump the tree.
4074 * libspi/accessible.c (de_register_public_ref),
4075 (get_public_refs): impl.
4076 (spi_accessible_new): make more efficient & intuitive.
4077 Now IndexInParent check works.
4079 2001-12-04 Michael Meeks <michael@ximian.com>
4081 * cspi/spi-util.h: remove.
4083 * cspi/spi.h: move SPI_freeString here
4085 * libspi/component.c (impl_accessibility_component_get_layer):
4087 (impl_accessibility_component_get_mdi_z_order): ditto,
4088 return -1 on error - is this ok ?
4090 * test/test-simple.c (test_application): impl.
4092 * cspi/spi_accessible.c (Accessible_getApplication),
4093 (Accessible_isApplication): impl.
4095 * libspi/registry.c (spi_listener_struct_free): release
4096 the CORBA reference too.
4098 * libspi/accessible.c
4099 (impl_accessibility_accessible_get_parent): fix ref leak.
4101 * libspi/registry.c (spi_registry_new): make the registry
4102 immortal - we don't want it to go away ever.
4104 * libspi/application.c
4105 (spi_accessible_application_finalize): impl. cleanup.
4107 * cspi/spi_registry.c
4108 (deregisterGlobalEventListenerAll),
4109 (deregisterGlobalEventListener),
4110 (deregisterAccessibleKeystrokeListener): fix ref leak.
4112 * cspi/spi_main.c (SPI_init): remove redundant ref.
4114 * test/test-simple.c (unutterable_horror): impl. to force a
4119 (impl_accessibility_registry_deregister_application): release
4120 the application when we de-register it.
4122 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4123 until we have the infastructure to get it right.
4125 2001-12-03 Michael Meeks <michael@ximian.com>
4127 * libspi/Makefile.am: only build eventlistener.[ch]
4129 * libspi/accessible.c
4130 (impl_accessibility_accessible_get_child_at_index): don't leak.
4132 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4133 before we hit the idle handler.
4135 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4136 debugging than exit.
4138 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4140 * libspi/listener.c (impl_notify_event): check source
4141 not NIL before unref.
4143 * libspi/registry.c (impl_registry_notify_event): ditto.
4145 * libspi/eventlistener.c
4146 (impl_accessible_event_notify_event): unref the source.
4148 * libspi/accessibleeventlistener.c
4149 (impl_accessible_event_notify_event): unref the source.
4151 * idl/Event.idl: remove 'hash_id' attribute - of no
4154 * libspi/application.c (notify_listeners): upd list
4156 (spi_application_object_event_listener),
4157 (spi_application_toolkit_event_listener): upd to do correct
4161 (_registry_notify_listeners): update.
4162 (parse_event_type): this method also leaks like a sieve.
4163 (impl_accessibility_registry_deregister_global_event_listener):
4164 fix ETYPE_WINDOW case.
4166 * libspi/application.c
4167 (impl_accessibility_application_register_object_event_listener):
4170 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4172 * libspi/hypertext.c (impl_getLink): ditto.
4174 * cspi/spi_main.c (cspi_object_add): remove
4175 bogus CORBA_Object_duplicate.
4177 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4180 * cspi/spi_accessible.c
4181 (Accessible_getRelationSet): fix leak / referencing issue.
4183 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4184 (cspi_object_add, cspi_object_unref): upd.
4185 (spi_object_release, get_live_refs): impl.
4186 (cspi_cleanup): simplify.
4188 * *.[ch]: s/boolean/SpiBoolean/
4190 * cspi/spi_accessible.c (role_names): actualy order so it
4191 corresponds with the enum !
4193 * test/test-simple.c (test_roles): check some role strings
4194 vs. enums to detect offset errors.
4196 2001-12-01 Michael Meeks <michael@ximian.com>
4198 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4200 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4202 (Accessible_getChildAtIndex): use cspi_add_check so we
4203 check the ev before using a (possibly) invalid value.
4205 * libspi/accessible.c
4206 (impl_accessibility_accessible_get_parent): don't segv
4209 * at-bridge/bridge.c (gtk_module_init): upd.
4210 (bridge_property_event_listener): don't leak strings
4212 (bridge_state_event_listener),
4213 (bridge_property_event_listener): don't use a static
4214 buffer in case of recursive event emission &
4215 re-enterancy - split out the swathe of cut and paste
4217 (emit_eventv): and fix 2 ref leaks here & comply to the
4219 (bridge_register_app): rename to
4220 (bridge_idle_init): this and kill arg parsing, split
4221 various inits & bonobo-activation registration to module
4222 init time, kill referencing error.
4223 (bridge_exit_func): fix the same leak.
4224 (bridge_focus_tracker): don't leak event structures
4226 (bridge_signal_listener): more leakage and cut & paste
4228 (bridge_key_listener): return the result - FIXME is
4229 this polarity correct ?
4230 (accessibility_keystroke_from_atk_key_event): rename
4231 (accessibility_init_keystroke_from_atk_key_event): and stop
4233 (gtk_module_init): return a value - not that it is checked by
4235 (bridge_key_listener): register my horror at casting between
4236 IDL defined structs.
4237 (bridge_get_registry): kill - not used.
4239 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4241 * test/test-simple.c (test_roles): impl.
4242 (test_desktop, validate_accessible, validate_tree): impl.
4244 * cspi/spi_accessible.c (role_names): fixup bogus
4245 MAX_ROLES setup, make constants const for efficient linkage
4246 (AccessibleRole_getName): conform to coding style, make
4249 2001-11-30 Michael Meeks <michael@ximian.com>
4251 * cspi/spi.h: add missing prototype.
4253 * libspi/registry.c (spi_listener_struct_new): fix sig.
4255 * test/Makefile.am: add test-simple
4257 * test/test-simple.c: add
4259 * test/test.sh: add.
4261 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4263 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4264 do it straight - since otherwise we often get an activation race.
4266 [ work before Bill duplicated a chunk of it ... ]
4267 2001-11-30 Michael Meeks <michael@ximian.com>
4269 * libspi/keystrokelistener.c
4270 (spi_keystroke_listener_class_init): fixup arg
4273 * libspi/eventlistener.c
4274 (spi_event_listener_class_init): ditto.
4276 * tests/test.sh: add.
4278 * cspi/spi-listener-impl.h: update macros.
4280 * cspi/spi-listener-impl.c
4281 (cspi_event_listener_remove_callback): add
4282 correct pre-conditions.
4284 * cspi/spi_main.c (SPI_exit): guard vs. double
4285 exits, exit the mainloop nicely.
4286 (SPI_event_main): make more sense.
4287 (SPI_init): move the atexit evilness here so we
4288 always do it (yuck).
4289 (SPI_event_main): upd.
4291 * test/simple-at.c: update for listener changes.
4293 * registryd/registryd.c (main): prune kruft.
4295 * libspi/libspi.h: upd.
4297 * libspi/eventlistener.[ch]: rename broken macros.
4299 * libspi/accessibleeventlistener.[ch]: remove.
4301 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4303 * test/test-simple.c: Add - automated tests.
4305 * cspi/spi-listener-impl.c (cspi_event),
4306 (cspi_key_event): add user_data to invoke.
4307 (cspi_keystroke_listener_finalize): impl.
4308 (cspi_keystroke_listener_class_init): upd.
4311 (createAccessibleEventListener),
4312 (AccessibleEventListener_addCallback),
4313 (createAccessibleKeystrokeListener),
4314 (AccessibleKeystrokeListener_addCallback): upd.
4316 * libspi/deviceeventcontroller.c
4317 (spi_device_event_controller_check_key_event): add public proto.
4320 (impl_accessibility_registry_deregister_global_event_listener):
4321 always init listeners.
4322 (_registry_notify_listeners): yes it is.
4324 * cspi/spi-listener-impl.c (cspi_key_event):
4326 (cspi_event_listener_finalize): impl.
4327 (cspi_event_listener_class_init): hook up.
4328 (event_handler_new, event_handler_free),
4329 (event_list_remove_by_callback): impl.
4330 (cspi_event_listener_remove_callback),
4331 (cspi_keystroke_listener_remove_callback),
4332 (cspi_keystroke_listener_add_callback),
4333 (cspi_event_listener_add_callback): upd.
4335 * libspi/keystrokelistener.c
4336 (keystroke_listener_object_finalize): kill
4337 (spi_keystroke_listener_class_init): upd.
4338 (spi_keystroke_listener_add_callback),
4339 (spi_keystroke_listener_remove_callback): kill,
4341 (impl_key_event): prune drasticaly.
4343 * libspi/eventlistener.c
4344 (spi_event_listener_add_callback),
4345 (spi_event_listener_remove_callback): kill, use
4347 (impl_accessible_event_notify_event): upd.
4348 (spi_event_listener_object_finalize): remove.
4350 * libspi/Makefile.am: use eventlistener.[ch]
4352 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4354 * libspi/registry.c (_registry_notify_listeners):
4355 Changed listener loop iteration to use preferred convention.
4356 Got rid of string memory leaks caused be calling g_strconcat
4357 inside function calls.
4359 * libspi/registry.c (parse_event_type):
4360 Stopped g_strconcat memory leaks, free the g_strsplit return,
4361 g_strdup the split pieces when used, etc.
4363 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4366 Change method 'compare' to return a 'difference set' rather than
4367 taking a StateSet as an out parameter (more Java-friendly).
4369 * idl/Accessible.idl:
4370 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4372 * idl/Component.idl:
4374 Changed methods 'getExtents' and 'getImageExtents' in these
4375 interfaces to return a BoundingBox structure.
4376 (getPosition and getSize are redundant and possibly should be
4377 removed, rather than creating a corresponding Point struct.)
4379 * cspi/spi_component.c:
4380 Modify implementation of getExtents to reflect the above IDL
4385 Add (missing) AccessibleImage_getExtents () API.
4387 * docs/reference/cspi/at-spi-cspi-sections.txt:
4388 Added AccessibleImage_getImageExtents () to docs.
4390 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4392 * idl/Component.idl:
4393 Added two methods, getLayer () and getMDIZOrder (), to reflect
4394 the new ATK methods atk_object_get_layer and
4395 atk_object_get_mdi_z_order. (Which arguably should be part of the
4396 AtkComponent API and AtkObject). Also added an enum,
4397 ComponentLayer, for the first method's return value.
4399 * libspi/component.c:
4400 Added implementations for these methods.
4402 * cspi/spi_component.c:
4404 Added cspi binding methods for above,
4405 AccessibleComponent_getLayer() and
4406 AccessibleComponent_getMDIZOrder().
4407 Added cspi enum 'AccessibleComponentLayer'.
4409 * docs/reference/cspi/at-spi-cspi-sections.txt:
4410 Added above methods to docs.
4414 Changed typedef for 'boolean' type (and all references to it) to
4415 SPIBoolean, to avoid keyword clashes with C++.
4418 Changed usages of 'boolean' to SPIBoolean.
4420 * test/keysynth-demo.c:
4421 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4422 app), except where SPIBoolean is required by the callbacks API.
4424 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4426 * cspi/spi_registry.c:
4427 Removed obsolete X event loop for passive keygrabs (which now
4430 * registryd/registryd.c:
4431 Removed unnecessary call to gdk_init() [cruft]. This also allows
4432 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4435 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4437 * docs/reference/cspi:
4438 Included docs for SPI_freeString in generated documentation.
4441 Renamed spi_freeString to SPI_freeString, for consistency. Added
4442 documentation for this function.
4445 Renamed spi_freeString to SPI_freeString, for consistency.
4446 Removed obsolete method declaration string_from_corba_string.
4448 * test/keysynth-demo.c:
4449 Small tweak to comments.
4452 Stopped leaking the strings returned from CSPI.
4454 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4456 Merged Michael's branch (see his ChangeLog entries below).
4458 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4459 bridge is alive, release on exit.
4461 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4462 Fix type check macro.
4465 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4468 Added is_gnome_app static, and method cspi_is_gnome_app(),
4469 so we can call the appropriate shutdown routine at exit in SPI_exit.
4471 * cspi/spi_main.c (cspi_object_ref):
4472 Duplicate the corba object passed in, since we're keeping it around.
4474 * cspi/SPI_exit.c, cspi_cleanup:
4475 Moved the releasing of the live refs to its own function, so we
4476 can put it in g_atexit (). Call the appropriate shutdown API
4477 depending on whethe calling client is a gnome app or not
4478 (bonobo_main_quit or CORBA_ORB_shutdown).
4480 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4481 Unref the listener when this method is called, after
4482 deregistration. Updated the API docs to note this behavior.
4484 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4485 Bugfixes: Ref the bonobo object when returning a parent or child
4486 reference, or an AccessibleRelation. Generally made sure
4487 BonoboObject refcount is incremented whenever we return an
4490 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4491 Fixed typo/bug in signal declaration.
4493 * libspi/accessibleeventlistener.h:
4496 * libspi/application.c (spi_application_new):
4497 Fixed leak in initialization.
4500 Remembered to increment bonobo-object refcount when returning
4501 children (applications) from desktop object.
4502 Added (empty) finalize method.
4504 * libspi/deviceeventcontroller.c:
4505 Hold a ref to listeners inside DEControllerKeyListeners.
4506 Added dec_key_listener_free() method. Use prepend instead of
4507 append in key_listener list. Fixed some refcount madness and
4508 leaks in the listener registration/deregistration - deregistration
4509 now calls dec_key_listener_free() on listeners, and on the
4510 temporarily constructed dec_key_listener() used to perform the search/match.
4512 * libspi/hypertext.c (spi_hypertest_finalize):
4513 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4514 class. Also fixed spi_hypertext_interface_new() and
4515 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4517 * libspi/hypertext.h:
4518 Removed pointless and duplicate AtkObject pointer from
4521 * libspi/keystrokelistener.c:
4522 Fixed incorrect type of keystroke_listener_parent_class,
4523 renamed keystroke_listener_object_finalize to
4524 spi_keystroke_listener_object_finalize.
4525 Fixed typo in signal declaration
4526 (spi_keystroke_listener_class_init).
4528 * libspi/registry.c:
4529 Added funcsions spi_listener_struct_new() and
4530 spi_listener_struct_free() to help with memory management issues.
4531 We also now use these methods instead of gnew + poking stuff into
4532 the struct, and to decrement listener counts/free the listeners
4533 when deregistering them.
4534 Fix more refcount bugs in getDesktop() and
4535 getDeviceEventController().
4538 De-ref the desktop after enumerating the applications. Explicitly
4539 decrement the refcounts on the created listeners on exit (using
4540 _unref for keystroke listeners, and via the
4541 deregisterGlobalEventListenerAll command for other event
4544 2001-11-27 Michael Meeks <michael@ximian.com>
4546 * cspi/spi-listener.h: fixup enum.
4548 2001-11-27 Michael Meeks <michael@ximian.com>
4550 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4551 (cspi_keystroke_listener_new): Use the cspi variants.
4553 2001-11-26 Michael Meeks <michael@ximian.com>
4555 * test/keysynth-demo.c: fix 2 compile warnings, missing
4558 * test/simple-at.c (report_focussed_accessible),
4559 (report_focus_event, report_button_press),
4560 (check_property_change, is_command_key),
4561 (report_ordinary_key_event, report_command_key_event): upd.
4563 * util/mag_client.h: include pre-requisites.
4565 * libspi/accessibleeventlistener.c
4566 (spi_event_listener_object_finalize): free any lingering
4569 * libspi/keystrokelistener.c
4570 (keystroke_listener_object_finalize): ditto.
4572 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4573 callbacks, with cspi types.
4575 * cspi/spi_event.c (createAccessibleEventListener): chain to
4576 (AccessibleEventListener_addCallback): here.
4577 (createAccessibleKeystrokeListener): chain to
4578 (AccessibleKeystrokeListener_addCallback): here.
4580 * libspi/keystrokelistener.c
4581 (spi_keystroke_listener_class_init): add signal.
4582 (impl_key_event): emit the event.
4583 (boolean_handled_accumulator): impl.
4584 (marshal_BOOLEAN__POINTER): add, gack.
4586 * libspi/accessibleeventlistener.c
4587 (spi_event_listener_class_init): add signal.
4588 (impl_accessible_event_notify_event): emit the signal &
4589 make the loop efficient.
4590 (spi_event_listener_add_callback): prepend the callback.
4592 * libspi/accessibleeventlistener.h: add an 'event' signal,
4593 decl type on callback.
4595 * libspi/keystrokelistener.h: ditto.
4597 * cspi/spi-listener.h: make methods typesafe and
4598 make them use the new event typedefs.
4600 * test/simple-at.c (report_focussed_accessible):
4601 include mag_client.h
4602 Use *(void *)text_interface not the other thing.
4604 * configure.in: add gtk to registryd bits - since we use
4607 * util/magnifier.c: include libbonobo.h
4609 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4611 * test/keysynth-demo.c:
4612 Turned this into a simple scanning keyboard, to demonstrate the
4613 use of g_timeout_add () as a means of creating timers for
4614 scanning, and the use of GtkStyle for visually indicating when
4615 virtual keyboard elements are selected.
4617 keysynth-demo now listens to any keyboard keys with zero-valued
4618 keycodes (i.e. 'unused' keys) and interprets them as
4621 Reworked the shiftlatch code so that shift-down state isn't held
4622 for long periods (it's only synthesized immediately prior to
4623 the keysynth event it's modifying). Note that shiftlatch in this
4624 demo is a convenience, not intended to take the place of AccessX
4625 which is the better choice for getting 'sticky' modifier keys.
4627 * libspi/deviceeventcontroller.c:
4628 * at-bridge/bridge.c:
4629 * cspi/spi_registry.c:
4630 Removed some debug print stuff, and put other verbosity in #ifdef
4635 Implemented some more of the magnifier IDL for the simple
4636 magnifier: namely, getZoomRegionParams.
4637 Added mag_x and mag_y members to MagnifierData struct, aid of this
4639 Added GtkWindow::realize signal handler to magnifier, to keep it
4640 from receiving keyboard focus from the WM.
4642 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4644 * cspi/spi-private.h: my guess at what michael forgot
4645 before he ran off to NZ :-)
4647 2001-11-23 Michael Meeks <michael@ximian.com>
4649 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4650 comment out non existant method invoke so we link.
4652 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4653 use bonobo_exception_get_text for more friendly warnings.
4655 * cspi/spi.c (Obj_Add): move into spi_main & rename
4656 spi_object_add; kill spi.c
4658 * cspi/spi_registry.c
4659 (deregisterGlobalEventListener),
4660 (deregisterGlobalEventListenerAll),
4661 (registerGlobalEventListener): fix exception leaks.
4663 * cspi/spi_main.c (spi_exception): impl. helper, so we
4664 don't leak exceptions.
4666 * cspi/spi_selection.c
4667 (AccessibleSelection_deselectSelectedChild): return the
4670 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4671 (spi_registry): ditto.
4672 (SPI_init): guard against double inits.
4674 * cspi/*.c: use spi_ev (), and spi_registry () where
4675 appropriate - a temporary hack until we have something
4676 better. Use spi_object_add
4678 2001-11-22 Michael Meeks <michael@ximian.com>
4680 * cspi/Makefile.am: re organise, install the headers.
4682 * cspi/*.h: add G_BEGIN/END_DECLS
4684 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4687 Added non-preemptive keylistener for key events with no modifiers
4688 and shift-only modifier.
4690 * libspi/keystrokelistener.c:
4691 Removed some verbose diagnostics printout.
4693 * cspi/spi_registry.c:
4694 Fixed a bug that caused all key listeners to be registered as
4697 * libspi/deviceeventcontroller.c:
4698 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4699 for non-preemptive key masks.
4702 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4704 * docs/reference/idl/at-spi-idl-docs.sgml:
4705 * docs/reference/idl/at-spi-idl-sections.txt:
4706 * docs/reference/idl/at-spi-idl-overrides.txt:
4707 Added missing files.
4709 * docs/reference/Makefile.am:
4710 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4711 to scan the IDL files :-(
4716 Added .cvsignore files.
4718 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4720 * libspi/deviceeventcontroller.c:
4721 * libspi/keystrokelistener.c:
4723 * cspi/spi_registry.c:
4724 Added filters for KeySets, KeyEventSeq, and event types to key
4725 event dispatching, so listeners should only receive those events
4726 that they requested :-)
4728 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4733 * docs/reference:Makefile.am:
4734 * docs/reference/cspi:
4735 * docs/reference/cspi:Makefile.am:
4736 * docs/reference/cspi:tmpl:
4737 * docs/reference/cspi:tmpl:*.sgml:
4738 * docs/reference/idl:
4739 * docs/reference/idl:Makefile.am:
4740 * docs/reference/idl:at-spi-idl-sections.txt:
4741 * docs/reference/idl:at-spi-idl-docs.sgml:
4742 * docs/reference/idl:tmpl:
4743 * docs/reference/idl:tmpl:*.sgml:
4745 Restructured docs directory to allow separate 'reference' docs
4746 section, and forked idl and cspi docs. Added the sgml template
4747 files to CVS. Added the first sections/structural sgml for the
4750 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4752 * configure.in, libspi/Makefile.am: find libXtst.
4754 2001-11-21 Michael Meeks <michael@ximian.com>
4756 * test/accessx-gui.c: s/spi_value/value/ - doh.
4758 * libspi/base.[ch]: add.
4760 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4762 * idl/Accessible.idl:
4763 * idl/Application.idl:
4766 Started gtk-doc cleanup on IDL.
4768 * libspi/deviceeventcontroller.c:
4769 Added and connected non-preemptive key notification from the
4770 toolkits (in addition to the pre-emptive support from XServer
4771 which we had before, but which causes 'focus flashing'). Filters
4772 are presently limited to key modifiers and global/non-global,
4773 KeySets are presently ignored, as are KeyEvent masks.
4775 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4776 structs into the persistant structure rather than just storing
4777 pointers to things that might not persist across servant
4780 The XGrabKey call now does async keygrabs, because synchronous
4781 ones were deadlocking with GDK_event code in a very nasty way.
4783 Added boolean to internal method notify_keylisteners, to indicate
4784 whether the event came from the 'toolkit source' or the 'global
4785 (XServer) source' - this is used in the notification process to
4786 determine which listeners to send the event to.
4788 deviceeventcontroller.c is now warning-free.
4790 * libspi/registry.c:
4791 Fixed regression in application de-registration.
4792 Also fixed some really brain-dead weirdness having to do with
4793 event dispatching - event structs are now duplicated before being
4794 re-marshalled in the dispatch to listeners. This also fixes a
4795 Solaris build problem.
4798 2001-11-20 Michael Meeks <michael@ximian.com>
4801 (impl_accessibility_registry_deregister_global_event_listener):
4804 * libspi/deviceeventcontroller.c
4805 (spi_device_event_controller_check_key_event): return
4806 FALSE on no virtual method.
4808 * libspi/*..h: make includes work on a correctly pathed install.
4810 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4812 * libspi/application.h: kill unused ( and whacked out )
4813 gboolean *spi_application_set_id (AtkObject *app, long id);
4815 2001-11-20 Michael Meeks <michael@ximian.com>
4817 * libspi/*.[ch]: further convert to bonobo's type func
4818 macros, remove redundnant casts etc.
4820 * libspi/text.c s/accessibility_text/spi_text/g,
4821 re-order to de-cruft.
4823 * libspi/hypertext.c: re-order to kill a huge slew
4824 of redundant forward decls.
4826 * libspi/relation.c: ditto.
4828 * libspi/image.c: ditto.
4830 * */.cvsignore: update
4832 2001-11-20 Michael Meeks <michael@ximian.com>
4834 * libspi/deviceeventcontroller.c
4835 (_controller_register_with_devices): use g_getenv,
4836 kill stdlib.h include.
4838 * libspi/keystrokelistener.c
4839 (spi_keystroke_listener_get_type): kill
4840 (spi_keystroke_listener_class_init),
4841 (spi_keystroke_listener_init): rename to this.
4843 * libspi/text.c (impl_getAttributes): fix warning / bug.
4845 * libspi/*.[ch]: more headers, includes and over commenting.
4847 2001-11-20 Michael Meeks <michael@ximian.com>
4849 * libspi/*.[ch]: fixup headers, includes and over commenting.
4851 * libspi/image.c (impl__get_imageDescription): const
4852 correctness warning fix. remove redundant casting.
4854 * libspi/table.c (impl_getRowDescription): ditto.
4855 (impl_getColumnDescription): ditto.
4857 * libspi/libspi.h: add.
4859 2001-11-19 Michael Meeks <michael@ximian.com>
4861 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4863 * libspi/component.c (accessibility_component_get_type):
4864 rename to (spi_component_get_type): and macroify.
4865 (accessibility_component_init): rename to
4866 (spi_component_init): this
4867 (accessibility_component_class_init): rename to
4868 (spi_component_class_init): this
4870 * libspi/action.c (spi_action_get_type): kill, use the macro.
4872 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4875 * libspi/application.c (spi_application_object_event_listener),
4876 (impl_accessibility_application_register_object_event_listener):
4877 warning fixes / const understanding updates.
4879 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4882 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4884 * libspi/spi_accessible.c: Added docs and C bindings for
4885 AccessibleStateSet. (No implementations yet). Documentation
4886 coverage for C bindings now 100%. Made docs for event listeners
4891 boolean notifyListenersSync (in DeviceEventListener listener,
4892 in DeviceEvent event);
4894 oneway void notifyListenersAsync (in DeviceEventListener listener,
4895 in DeviceEvent event);
4897 Added DeviceEventListener and DeviceEvent structs (may deprecate
4898 KeyStroke and KeystrokeListener in favor of this generic
4899 event/listener framework for devices).
4901 * libspi/deviceeventcontroller.c:
4903 Changed some key listener code to take masks, etc., and paved the
4904 way for integration of toolkit/non-preemptive key events. Changed
4905 signatures of some internal methods.
4907 * at-bridge/bridge.c:
4908 Fixed regression connecting to interface signals, apparently
4909 caused by GTK+ changes.
4911 Added an internal bridge_state_listener to deal with
4912 property-change:accessible-state signals.
4914 Changed the key_listeners GList to store structs (including masks,
4915 etc.) instead of just CORBA_Objects (required for full
4916 implementation of key listener API).
4918 Connected the bridge to all currently supported Atk signals.
4919 Events now supported:
4920 object:property-change
4921 object:property-change:accessible-name
4922 object:property-change:accessible-state
4923 object:property-change:accessible-description
4924 object:property-change:accessible-parent
4925 object:property-change:accessible-value
4926 object:property-change:accessible-role
4927 object:property-change:accessible-table-caption
4928 object:property-change:accessible-table-column-description
4929 object:property-change:accessible-table-column-header
4930 object:property-change:accessible-table-row-description
4931 object:property-change:accessible-table-row-header
4932 object:property-change:accessible-table-summary
4933 object:children-changed
4934 object:visible-data-changed
4935 object:selection-changed
4936 object:text-selection-changed
4938 object:text-caret-moved
4940 object:row-reordered
4942 object:column-inserted
4943 object:column-reordered
4944 object:column-deleted
4945 object:model-changed
4947 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4949 * libspi/hyperlink.c,h:
4950 Fixed some broken stuff in hyperlink.
4952 * libspi/relation.h:
4953 * libspi/relation.c:
4954 * cspi/spi_accessible.c:
4955 Initial implementations of AccessibleRelation methods, and docs.
4957 * libspi/accessible.c:
4958 Fixed a bug that caused SEGV if an accessible
4959 object's description is NULL, and a client
4960 requests it. An empty string is now returned.
4962 * cspi/spi_editabletext.c:
4963 * cspi/spi_hypertext.c:
4965 * cspi/spi_hyperlink.c:
4969 Doc coverage now 95%.
4971 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4973 One last namespacing revision:
4974 * libspi/accessibleeventlistener.[ch]:
4975 Renamed SpiAccessibleEventListener to SpiEventListener,
4976 (no need for two namespaces ;-)
4978 And lots of documentation fixes:
4980 * docs/at-spi-docs.sgml:
4981 Fixed 'underscore vs. hyphen' bug that was preventing
4982 the gtk-doc API docs from being automatically generated.
4985 * cspi/spi-listener.h
4987 * cspi/spi_accessible.c
4989 * cspi/spi_application.c
4990 * cspi/spi_component.c
4991 * cspi/spi_editabletext.c
4993 * cspi/spi_hypertext.c
4995 * cspi/spi_registry.c
4996 * cspi/spi_selection.c
5000 * docs/at-spi-docs.sgml
5001 * docs/at-spi-sections.txt
5003 Added and fixed up gtk-doc documentation in cspi.
5005 Interfaces now (fully) documented (subject to revision and enhancement):
5007 Event Listener Support
5009 AccessibleApplication
5013 AccessibleEditableText
5020 AccessibleRelationSet
5025 2001-11-14 Bill Haneman <bill.haneman@sun.com>
5027 * at-bridge/bridge.c:
5028 Initial work for toolkit-level key snooper connection by bridge.
5033 New typedefs and fixes to support new namespacing, and cleaner
5034 separation of cspi bindings from libspi bonobo implementation.
5035 Removed inconsistent and extraneous Spi* namespace prefix that
5036 had crept into cspi headers.
5037 Lots of comment fixes that sed had missed.
5039 * cspi/spi-roletypes.h:
5040 * cspi/spi-statetypes.h:
5041 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
5042 to AccessibleRoleType.
5044 * libspi/accessibleeventlistener.h:
5045 Fixed minor namespacing weirdness.
5047 * libspi/deviceeventcontroller.c:
5048 Reordered some internal API for device listeners.
5049 Changed the key registry final boolean to 'is_system_global'
5050 rather than 'is_synchronous', which is more descriptive of its
5052 Added spi_device_event_controller_new().
5053 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
5055 * libspi/keystrokelistener.[ch]:
5056 Namespaced KeystrokeListener to SpiKeystrokeListener.
5057 Changed uses of keymasks to use SPI_ prefix, and did other
5060 * libspi/keymasks.h:
5061 Namespaced keymask constants with SPI_ prefix.
5063 * libspi/registry.c:
5064 Some warning fixes, and knock-on fixes from namespace changes.
5067 Added rules for accessx-gui test program.
5069 * test/accessx-gui.c:
5070 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5071 utility. It doesn't actually use at-spi, but it's still cool and
5074 * test/keysynth-demo.c:
5078 Fixes so that these test clients work properly with the namespaced
5079 libraries. (Incompletely tested for technical reasons, fixes may follow)
5082 2001-11-13 Michael Meeks <michael@ximian.com>
5084 * libspi/application.c
5085 (impl_accessibility_application_get_version),
5086 (impl_accessibility_application_get_toolkit_name):
5088 (impl_accessibility_application_set_id),
5089 (impl_accessibility_application_get_id): remove
5090 redundant casting code.
5092 * libspi/action.c (impl_getDescription): fix warnings.
5094 * libspi/accessible.c
5095 (impl_accessibility_accessible_get_parent),
5096 (impl_accessibility_accessible_get_child_at_index),
5097 (impl_accessibility_accessible_get_state),
5098 (impl_accessibility_accessible_get_relation_set):
5099 warning fixes & include action.h
5101 2001-11-13 Michael Meeks <michael@ximian.com>
5103 * *.[ch] fix bits I screwed up:
5105 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5106 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5108 2001-11-13 Michael Meeks <michael@ximian.com>
5110 * *.[ch] Namespace libspi into spi_ and Spi.
5112 2001-13-11 Michael Meeks <michael@ximian.com>
5114 * Makefile.am: dist & install at-spi-1.0.pc
5116 * libspi/Makefile.am: install into at-spi-1.0
5118 * idl/Makefile.am (idldir): install into at-spi-1.0
5120 * at-spi-1.0.pc.in: add.
5122 * configure.in: build it.
5124 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5126 * test/keysynth-demo.c:
5127 Use a 'realize' signal-handler to set the WM properties for
5128 the virtual keyboard, rather than making it a "POPUP" type
5129 override-redirect window (thanks to anders carlsson for that
5132 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5135 * test/keysynth-demo.c:
5136 Added new test of key synthesis, which creates a simple
5137 (mouse-operated) onscreen keyboard. It inserts key events into
5138 the currently-focused window, thus it does not grab keyboard focus
5141 * cspi/spi_registry.c:
5142 Added C binding for AT-SPI generateKeyEvent.
5144 * libspi/deviceeventcontroller.c:
5145 Added call to XFilterEvent so that key listener works with XIM (we
5146 hope). Added event_synth_type to generateKeyEvent, so that we can
5147 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5148 synthesize a press/release pair for KeySyms.
5150 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5152 * libspi/Makefile.am:
5153 * registryd/Makefile.am:
5154 (temporary) hack to include libXtst in libspi and registryd.
5155 (Needed for keystroke synthesis, see below).
5158 Improved API for registerKeystrokeListener, in accordance with
5159 discussions with Gnopernicus team and X server research.
5161 * libspi/registry.c:
5162 * libspi/deviceeventcontroller.c:
5163 * libspi/accessible.c:
5164 * libspi/keystrokelistener.c:
5165 Changes and fixes to support keylisteners for potentially
5166 consumed key events (that is, 'passive grabs').
5167 Added implementation for generateKeyEvent() [untested].
5170 Changes to registerKeystrokeListener() API, as above.
5171 Added deregisterGlobalEventListenerAll(), and
5172 deregisterKeystrokeListener(), which are needed for clean exit of
5174 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5175 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5177 * cspi/spi_registry.c:
5178 Added implementations of function prototypes mentioned above.
5180 * registryd/registryd.c:
5181 Added the key listener event source as a g_timeout(), to allow
5182 receipt of key events that are not caught by GDK (since GDK
5183 doesn't support passive keygrabs, this was necessary).
5186 Changed to attach a keylistener to 'Alt' keys, and
5187 respond to the following keycommands: Alt-M (toggle magnifier);
5188 Alt-F (toggle speech); Alt-Q (quit).
5189 Added an exit routine to deregister the listeners, and a key
5190 listener that prints some key info to the console when a key
5191 matches the listener mask (and is thus received by the listener).
5193 * util/idl/Magnifier.idl:
5194 Changes to magnifier API to support multiple zoom regions,
5195 non-uniform scaling in x and y, markDirty, and a host of other
5196 features that would be useful to magnification.
5199 * util/mag_client.c:
5200 * util/mag_client.h:
5201 * util/mag_control.c:
5203 Source code changes to support the above IDL changes.
5206 As above, and also changes to use a (slower) generic conversion
5207 path for colormap conversions, since the fast RGB conversions have been
5208 reported to fail for 16-bit displays.
5210 2001-10-26 Michael Meeks <michael@ximian.com>
5212 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5214 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5216 * at-bridge/Makefile.am: fix LDFLAGS.
5218 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5220 * at-bridge/bridge.c:
5221 Re-worked listeners for toolkit events, now we have signal
5222 and property listeners. Added a private method
5223 register_atk_event_listeners(), which registers with the
5224 various atk and gtk signals we need to monitor in order to emit
5226 Added emission hook for AtkObject:property-change events, to
5227 support the 'property listeners'.
5228 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5231 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5232 which emit warnings and exit, respectively, if CORBA errors occur
5233 during remote calls, and we now use these methods to check most of
5234 our CORBA calls in the C bindings.
5236 * cspi/spi_accessible.c:
5237 Changed AccessibleSelection_refSelectedChild() to
5238 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5239 now increment refcounts.
5241 * cspi/spi_component.c:
5242 Fixed some long pointer casts (dangerous!) to pass pointers to
5243 CORBA_longs of the proper type to the CORBA stubs, and copy the
5244 data into the longs that were passed into the C bindings code.
5246 * at-bridge/bridge.c:
5248 * libspi/accessible.c:
5249 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5250 hyperlinks, AtkHyperlink is an object type.
5252 * libspi/application.c:
5253 Added various conversions to and from "generic" event types and
5254 atk-specific types; this is really part of the 'bridge'
5255 implementation but is valid for all AtkObject-based accessibility
5258 * libspi/editabletext.c:
5259 Fixed nasty bug wherein editable text's finalize method was
5260 unref'ing tha AtkObject reference that the text parent class was
5261 about to unref _again_. There was also a nasty inheritance bug
5262 that meant that the AccessibleEditableText class was corrupt.
5264 * libspi/selection.c:
5265 Provided implementations for some selection API that was broken.
5267 * idl/Application.idl:
5268 Added registerObjectEventListener () method.
5271 Fixed a number of return values that were Bonobo_Unknowns from
5272 bonobo_object_corba_objref(), which I
5273 forgot to dup before returning. Changed instances of
5274 bonobo_object_corba_objref (bonobo_object(o)) to
5275 BONOBO_OBJREF(o), for concision and clarity.
5277 2001-10-13 Louise Miller <louise.miller@sun.com>
5279 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5280 idl/Event.idl, idl/Registry.idl
5281 Changed these files to include Bonobo_Unknown.idl instead
5284 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5286 * libspi/component.c libspi/component.h:
5287 Fixed typo. Added assertions for object checks in
5288 AccessibleComponent code.
5290 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5292 * idl/Accessible.idl:
5293 Added 'isEqual (Accessible *object)'
5294 method for Accessible. (Not Yet Implemented).
5297 Changed signature of registerKeystrokeListener() to
5298 take a KeySet and KeyEventSeq so that specific keys and event
5299 types could be requested for monitoring, and added a flag
5300 is_synchronous so that either synchronous or asynchronous
5301 notification could be requested. (However this is not all
5302 implemented yet). This also meant adding two new typedefs,
5303 KeyEventSeq and KeySet.
5306 Added two new relations, RELATION_TOOLTIP_FOR and
5307 RELATION_LEAFNODE_OF.
5310 Added new state, STATE_HAS_TOOLTIP.
5312 * libspi/text.c, editabletext.c:
5313 Added new assertions to all casts of bonobo-objects from
5314 CORBA servants, to prevent Text API calls on non-text objects.
5315 Changed suspect casts of int-pointer types, so that we
5316 always send a valid CORBA_long pointer to the CORBA APIs that use
5317 in/out long parameters. We then have to copy from the CORBA_long
5318 into the regular long or int for return to the C bindings, or
5319 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5322 * libspi/deviceeventcontroller.c:
5323 Cleaned these sources up.
5325 Changed return type for getCharacterAtOffset to
5326 CORBA_unsigned_long, to allow for 32-bit characters.
5329 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5333 Fixed 'make dist' so that distro compiles...
5334 * libspi/keymasks.h:
5336 * cspi/spi-listener.c:
5337 KeystrokeListenerCB now returns a boolean.
5339 Added KeyEventType struct, and KeyStroke.
5340 Also added createKeystrokeListener(),
5341 KeystrokeListener_addCallback(),
5342 KeystrokeListener_removeCallback(), and added a keymask to
5343 registerKeystrokeListener().
5344 * cspi/spi_accessible.c:
5345 Changed numerous return types for interfaces from
5346 AccessibleComponent to Accessible<InterfaceName>; this was
5347 probably a cut-and-paste error.
5349 Implementations of new KeystrokeListener api (from spi.h,
5352 Changes to key modifier mapping.
5353 Created ControllerEventMask struct.
5354 Made DeviceEventController derive from Bonobo::Unknown.
5356 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5357 * libspi/deviceeventcontroller.c:
5358 Added a number of new internal (private) methods.
5359 * libspi/editabletext.c:
5360 * libspi/editabletext.h:
5361 Fixed a number of bugs related to the fact that
5362 editabletext inherits from text. Fixed the EditableText struct,
5363 the init() call, and use correct casts when calling Text methods
5364 from an EditableText object. Removed (duplicate) atko from the
5365 EditableText structure, we use the one in the parent Text
5366 structure via the casts mentioned above.
5367 * libspi/keystrokelistener.[ch]:
5368 * libspi/registry.c:
5369 Changes in support of keyboard handling (above).
5371 Keyboard handling, though partly functional, is still not
5372 recommended for at-spi client use as there is considerable
5373 work yet to be done.
5376 Changed some places where pointers to various int types
5377 are cast to be pointers to CORBA_long types and vice-versa:
5378 pointer casting is not safe so we pass pointers of the correct
5379 types and then cast the result before putting it into the target
5382 * libspi/text.h: minor typos corrected.
5384 We now speak not only the name of a Text element, but the
5385 first sentence of its content, when it receives focus.
5386 I also changed the text compression to 75% from 50%.
5387 * util/Accessibility_Util.server.in:
5388 Changed the default magnifier type to be a 3x vertical
5389 splitscreen magnifier (was previously a 2x horizontal one).
5391 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5393 * libspi/keystrokelistener.h:
5394 * libspi/keystrokelistener.c:
5395 Initial functional implementations of KeystrokeListener.
5398 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5400 Fixed string handling for NULL strings in libspi.
5401 Added spi_freeString to free strings returned by C bindings.
5403 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5405 * libspi/keystrokelistener.h:
5406 * libspi/keystrokelistener.c:
5407 Began (no-op) implementations of KeystrokeListener
5409 * libspi/deviceeventcontroller.c:
5410 * libspi/deviceeventcontroller.h:
5411 Began creating implementations of DeviceEventController,
5412 to handle keystroke and mouse event listening and
5414 * libspi/accessible.c:
5415 Stubbed-in the implementations for
5416 Accessibility_Accessible_getState and
5417 Accessibility_Accessible_getRelationSet.
5418 * libspi/registry.c:
5419 Improved de-registration process and fixed some bugs,
5420 deregistration now works correctly.
5422 Added initialization of applications list (to NULL).
5424 Reduced speech compression from 0.5 to 0.7, for demo.
5425 Changed call to gdk_window_set_decorations()
5426 to gtk_window_set_decorated().
5427 * at-bridge/bridge.c:
5428 Bridge now deregisters when app exits, via
5429 registration of a cleanup function
5430 with the g_atexit() call.
5431 Required making 'app' static, renamed 'this_app'.
5432 Fixed broken use of bonobo_init, passing argv wrongly.
5434 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5438 Created a new directory for
5439 accessibility-related utilities, primarily for
5440 testing and demo purposes, but with possible
5447 Onscreen magnifier utility that
5448 is implemented as a bonobo service.
5450 * util/mag_client.c:
5451 * util/mag_client.h:
5452 Client-side support (simple C bindings)
5453 for Magnification service
5455 * util/mag_control.c:
5456 Client program example for
5457 Magnification service
5459 * util/Accessibility_Magnifier.server.in:
5460 Bonobo-activation file for the
5461 Magnification service.
5464 * util/idl/Magnifier.idl:
5465 IDL defining the bonobo Magnification
5469 Modifications to use the bonobo-activated magnifier
5470 above, in place of trying to connect to an existing
5471 magnifier that uses socket-listening IPC.
5473 If env variable MAGNIFIER is set, a magnifier service
5474 will be started if one does not exist.
5476 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5478 * at-bridge/bridge.c:
5479 applied patch from Marc to build and run
5480 against new glib and gtk+ (seemed like a change
5481 to bonobo_init signature was made ?)
5483 made festival-server support turned off by default.
5484 Added support for a simple magnifier (off by default)
5485 which will be added to a 'util' directory later.
5486 * at-bridge/Makefile.am:
5487 Changed "application.h" header from a 'source'
5488 to a 'dependency' of libat-bridge.
5490 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5499 Added interface implementation c files to list of
5500 includes so they are included in libcspi.
5503 Changed prototype of AccessibleAction_doAction to return a
5505 Changed prototype of AccessibleTable_getCaption to
5506 return an Accessible.
5507 Changed prototype of AccessibleTable_getSelectedRows
5508 and AccessibleTable_getSelectedColumns to
5509 return a long (returns the number of selected rows
5510 or columns respectively).
5511 Changed name of AccessibleText_refRunAttributes to
5512 AccessibleText_getAttributes.
5513 Changed prototype of AccessibleText_getCharacterExtents to
5514 return a void rather than a boolean.
5515 Added support for a AccessibleCoordType parameter
5516 specifying what type of coordinates are desired.
5517 Added an AccessibleCordType parameter to
5518 AccessibleText_getPointAtOffset.
5520 * cspi/spi_accessible.c:
5521 Added code to return the outstanding interfaces from
5522 Accessible_queryInterface.
5524 * cspi/spi_action.c:
5526 Corrected call to getNActions to call the c binding
5529 * cspi/spi_editabletext.c:
5531 Changed name from setRunAttributes to setAttributes.
5533 * cspi/spi_hyperlink.c:
5535 Changed call to getNAnchors to correctly call the c
5536 binding for an attribute.
5538 * cspi/spi_hypertext.c:
5540 Changed getImageDescription to correctly call the
5541 binding for an attribute.
5543 * cspi/spi_selection.c:
5544 Changed getNSelectedChildren to correctly call the c
5545 binding for the attribute.
5546 Changed refSelectedChild to getSelectedChild.
5550 Changed getCaption to return an Accessible.
5551 Fixed calls which retrieve attributes.
5552 Changed refAt to getAccessibleAt.
5553 Changed getNSelectedRows and getNSelectedColumns to
5557 Changed getCharacterExtents and getPointAtOffset to accept an
5558 AccessibleCoordType.
5560 Changed calls which retrieve attributes.
5561 Changed refRunAttributes to getAttributes.
5566 * idl/Hyperlink.idl:
5567 Changed n_anchors attribute to nAnchors to keep naming
5568 convention consistent.
5571 Made Table inherit from Bonobo::Unknown.
5572 Added nSelectedColumns and nSelectedRows attributes.
5575 Made Value inherit from Bonobo::Unknown.
5577 * libspi/hyperlink.c:
5578 Change for nAnchors attributte name change.
5580 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5588 Added interface implementation c files to list of
5589 includes so they are included in libcspi.
5592 Changed prototype of AccessibleAction_doAction to return a
5594 Changed prototype of AccessibleTable_getCaption to
5595 return an Accessible.
5596 Changed prototype of AccessibleTable_getSelectedRows
5597 and AccessibleTable_getSelectedColumns to
5598 return a long (returns the number of selected rows
5599 or columns respectively).
5600 Changed name of AccessibleText_refRunAttributes to
5601 AccessibleText_getAttributes.
5602 Changed prototype of AccessibleText_getCharacterExtents to
5603 return a void rather than a boolean.
5604 Added support for a AccessibleCoordType parameter
5605 specifying what type of coordinates are desired.
5606 Added an AccessibleCordType parameter to
5607 AccessibleText_getPointAtOffset.
5609 * cspi/spi_accessible.c:
5610 Added code to return the outstanding interfaces from
5611 Accessible_queryInterface.
5613 * cspi/spi_action.c:
5615 Corrected call to getNActions to call the c binding
5618 * cspi/spi_editabletext.c:
5620 Changed name from setRunAttributes to setAttributes.
5622 * cspi/spi_hyperlink.c:
5624 Changed call to getNAnchors to correctly call the c
5625 binding for an attribute.
5627 * cspi/spi_hypertext.c:
5629 Changed getImageDescription to correctly call the
5630 binding for an attribute.
5632 * cspi/spi_selection.c:
5633 Changed getNSelectedChildren to correctly call the c
5634 binding for the attribute.
5635 Changed refSelectedChild to getSelectedChild.
5639 Changed getCaption to return an Accessible.
5640 Fixed calls which retrieve attributes.
5641 Changed refAt to getAccessibleAt.
5642 Changed getNSelectedRows and getNSelectedColumns to
5646 Changed getCharacterExtents and getPointAtOffset to accept an
5647 AccessibleCoordType.
5649 Changed calls which retrieve attributes.
5650 Changed refRunAttributes to getAttributes.
5655 * idl/Hyperlink.idl:
5656 Changed n_anchors attribute to nAnchors to keep naming
5657 convention consistent.
5660 Made Table inherit from Bonobo::Unknown.
5661 Added nSelectedColumns and nSelectedRows attributes.
5664 Made Value inherit from Bonobo::Unknown.
5666 * libspi/hyperlink.c:
5667 Change for nAnchors attributte name change.
5670 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5672 implementations-- made server implementations own AtkObject pointers
5673 rather than their respective AtkInterrface pointers to fix
5674 refcounting. AtkHyperlink is still broken.
5676 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5677 * cspi/spi_accessible.c:
5678 Added method Accessible_Role_getName(),
5679 and requisite string array (role_names).
5680 Added conversion string_from_corba_strin() call
5681 to Accessible_getName and _getDescription.
5682 * libspi/accessible.c:
5683 Added implementation for Accessible_getRole()
5685 Added festival support, used if environment variable
5688 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5690 * at-bridge/bridge.c:
5691 Now allocate Accessibility_Event using
5692 Accessibility_Event__alloc() instead of g_new0().
5693 * libspi/accessibleeventlistener.c:
5694 Initialize AccessibleEventListener->callbacks to NULL.
5695 Fixed accessible__event_listener_init() param, changed to
5696 "AccessibleEventListener *" type.
5697 Changed a bonobo_object_release_unref() call to
5698 Accessibility_Accessible_unref().
5699 * libspi/listener.c:
5700 Changed Bonobo_Unknown_unref to (equivalent)
5701 Accessibility_Accessible_unref.
5702 * libspi/registry.c:
5703 Changed bonobo_object_release_unref to
5704 Accessibility_Accessible_unref.
5706 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5709 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5710 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5711 spi-util.c spi-util.h
5712 Implementations for C bindings to remaining accessibility
5715 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5718 changed return value of Action from void to boolean to
5719 bring in line with ATK.
5722 Changed getText funcions to return "out" start and end offsets.
5723 Changed getAttributes to take and offset and return the start
5724 and end offset of the attribute run.
5725 Changed getOffsetAtPoint and getCharacterExtents to take an
5726 enum describing whether coordinates are window or screen.
5729 libspi/action.c libspi/action.h libspi/editabletext.c
5730 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5731 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5732 libspi/image.h libspi/selection.c libspi/selection.h
5733 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5734 libspi/value.c libspi/value.h
5735 Added server implementations for outstanding ATK interfaces
5736 not yet implemented.
5738 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5741 Added (missing) getName() method.
5742 Made nActions an attribute.
5743 * idl/EditableText.idl:
5744 Changed order of params in setAttributes.
5745 * idl/Hyperlink.idl:
5746 Removed getAnchor, added getURI.
5748 Changed attributes to methods, for efficiency
5749 (so that getting extents can be done in one call)
5750 * idl/Selection.idl:
5751 Changed nSelectedChildren to attribute, and re-indented.
5752 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5754 * idl/Text.idl: reformatted to match our coding style.
5755 (temporarily?) removed getRowColumnAtOffset().
5756 Changed text selection API to support multi-select and
5757 non-contiguous selections, as in ATK.
5758 * idl/Value.idl: changed some methods to attributes.
5760 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5762 * libspi/listener.c(impl_notify_event):
5763 BonoboUnkown_unref the source instead
5764 of bonobo_object_release_unref - the ORB
5765 handles the releasing.
5767 * configure.in: require ORBit-2.3.94 for
5770 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5772 Tagged CVS repository 'EA_1_0'.
5773 * README.EARLY_ACCESS:
5774 Alphabetized acknowledgements list, and
5776 Listed some known dependencies of at-spi.
5778 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5780 * docs/at-spi-docs.sgml:
5781 * docs/at-spi-sections.txt:
5782 * docs/at-spi-overrides.txt: (Added zero-length file)
5783 Documentation improvements - gtk-doc should build
5784 docs for all implemented C bindings now.
5787 * cspi/spi.c: (New file)
5788 * cspi/spi_event.c: (New file)
5789 * cspi/spi_registry.c: (New file)
5790 * cspi/spi_accessible.c: (New file)
5791 * cspi/spi_application.c: (New file)
5792 * cspi/spi_component.c: (New file)
5793 Split spi_main.c into six parts, and included them from
5794 "spi.c". This is a bit of a hack, probably temporary,
5795 but required by gtk-doc, apparently.
5797 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5800 * docs/at-spi-docs.sgml:
5801 * docs/at-spi-sections.txt:
5803 Initial checkins/modifications for gtk-doc generation.
5806 Added (missing) interface query methods to Accessible's C binding.
5808 Added GenericInterface type definition.
5810 Added query for AccessibleComponent interface to focus event handler.
5811 Added printout of bounding box for focussed component.
5812 * libspi/component.c:
5813 Added partial implementation for AccessibleComponent to C binding.
5814 * idl/Application.idl:
5815 * libspi/registry.c:
5816 * libspi/listener.c:
5817 * libspi/application.c:
5818 * libspi/application.h:
5819 Changed "ID" attribute type from string to long.
5821 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5825 Made method naming consistent: methods taking object args
5826 start with uppercase, other methods (except those using
5827 acronyms) start with lowercase. Underscores delimit between
5828 object names and method names:
5829 SPI_init() - uppercase since it starts with an acronym.
5830 getDesktopCount () - lowercase start since no object param0.
5831 Accessible_getName() - uppercase object type name, studlyCaps method
5835 Added gtk-doc documentation for all currently implemented
5836 methods in the C bindings API.
5838 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5840 * Makefile.am : changed build order to build test last.
5843 Changed "createEventListener" to "CreateEventListener".
5844 * libspi/accessibleeventlistener.c :
5845 Bugfix for addition of callbacks.
5846 * test/Makefile.am :
5847 * test/simple-at.c :
5848 Added new test that uses the C bindings API.
5850 * libspi/listener.c :
5851 * libspi/registry.c :
5852 * libspi/accessibleeventlistener.c :
5853 * at-bridge/bridge.c :
5854 Renamed member "target" of Accessibility_Event to "source",
5855 which is more descriptive.
5858 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5862 * cspi/Makefile.am :
5863 Added makefile support for at-spi/cspi directory.
5866 * cspi/spi-listener.h : (NEW FILE)
5867 Added support for/use of spi-listener.h.
5869 C bindings now build successfully, with no warnings.
5870 * libspi/accessibleeventlistener.h : (NEW FILE)
5871 * libspi/accessibleeventlistener.c : (NEW FILE)
5872 * libspi/Makefile.am :
5873 Added new object type "AccessibleEventListener"
5874 which inherits from Listener, and allows attachment
5875 of in-process callbacks (so that a client with a listening
5876 object instance can add functionality to the local
5877 implementation, dynamically).
5879 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5881 * libspi/accessible.c:
5882 Add implementation for get_index_in_parent().
5884 Added #include of "spi-roletypes.h", and
5885 added enumerated type AccessibleCoordType.
5886 Added definition for KeystrokeListener (function type).
5889 * cspi/spi-statetypes.h :
5890 * cspi/spi-roletypes.h :
5892 Added these headers, used by spi.h.
5894 Added code (NOTE: not yet built by make).
5896 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5898 * libspi/Makefile.am: generate imodule
5899 at the same time as other idl compiler
5902 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5903 * libspi/registry.c :
5904 * libspi/application.c :
5905 * idl/Application.idl :
5906 Made registration with toolkit an application method,
5907 which is required since each app has its own toolkit static
5908 environment. Thus the bridge must register for
5909 notification of toolkit events from each application in turn.
5910 Toolkit notifications are now successfully registered for, and
5911 sent to the listening at client.
5913 Changed toolkit event string to use hyphens rather than underscores.
5914 * libspi/listener.c :
5915 listner now gives more info in debug mode - it reports the
5916 name of the event received, as well as the name of the source.
5919 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5921 * libspi/registry.c :
5922 added more implementation for toolkit events.
5923 Fixed bug such that toolkit event registrations
5924 (via atk) use the whole event name string, not
5926 Removed a useless call to an ORBit_ method.
5927 * at-bridge/bridge.c :
5928 Removed unused local sbuf[] variable.
5930 We now register for Gtk:GtkWidget:button_press_event
5931 events as well as "focus:" events.
5933 Add some more API from Registry.idl that was missing,
5934 for keystroke listening, keystroke and mouse event
5935 synthesis, and enumeration of accessible desktops.
5937 2001-08-16 Michael Meeks <michael@ximian.com>
5939 * configure.in: use AM_GLIB_GNU_GETTEXT.
5941 * Makefile.am (SUBDIRS): kill intl.
5943 2001-08-15 Michael Meeks <michael@ximian.com>
5945 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5947 * configure.in: upd.
5949 * configure.in: depend on a recent bonobo-activation that
5950 will find our server files ...
5952 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5954 * libspi/accessible.c : accessible_new() :
5955 Now we add the Component interface via bonobo_object_add_interface,
5956 if the contained AtkObject implements AtkComponent.
5957 * libspi/accessible.h : now include "component.h"
5958 * libspi/component.h :
5959 * libspi/component.c : added files - implementation of
5960 bonobo wrapper object for Accessibility/Component
5961 * libspi/listener.c :
5962 Added test code to check for Accessibility/Component:1.0
5963 interface and report whether it is implemented by the
5965 * libspi/registry.c :
5966 Now we check for not only the hash of the whole event
5967 string before relaying the event, we also check the
5968 "minor" event string (without the detail string).
5969 This allows event listeners to be registered against
5970 all events of a certain major+minor type, or just
5971 against a specific major+minor+detail type.
5972 * libspi/accessible.c :
5973 Added implementations for Accessible:get_parent(),
5974 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5975 * libspi/registry.c :
5976 * libspi/listener.c :
5977 Replaced calls to Accessibility_Accessible_ref() and
5978 Accessibility_Accessible_unref() with
5979 calls to bonobo_object_dup_ref() and
5980 bonobo_object_release_unref(), so that the CORBA object
5981 is dup-ed and released when relayed, as well as the bonobo object.
5983 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5985 * libspi/Makefile.am,
5986 registryd/Makefile.am,
5987 at-bridge/Makefile.am.
5988 test/Makefile.am, configure.in:
5989 reverse previous changes.
5991 * /idl/Image.idl: fix typo.
5993 * test/Makefile.am: put DEBUG_FLAGS
5996 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5998 * test/app.c: use argv[0] instead of
6001 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6003 * libspi/Makefile.am,
6004 registryd/Makefile.am,
6005 at-bridge/Makefile.am.
6006 test/Makefile.am, configure.in:
6007 cleanup, replace individual LIBS/CFLAGS with
6008 AT_COMMON_{LIBS|CFLAGS}.
6012 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6014 * configure.in, libspi/Makefile.am:
6015 Change IDL path checking for bonobo-activation
6018 2001-08-15 Bill Haneman <bill.haneman@sun.com>
6020 * registryd/registry.c : separated event listeners to use
6021 3 separate lists (focus, window, toolkit). Began testing
6022 event names against hashes before relaying events.
6023 * test/at.c : now register for events of type "focus:"
6024 * test/app.c : now generate events of type "focus:"
6025 * at-bridge/bridge.c : register with ATK for focus events,
6026 and we now relay those focus events to any "focus:" listeners.
6027 This now works with the bridge as a GTK_MODULE when running test/at.
6028 * libspi/registry.c :
6029 * libspi/listener.c :
6030 now we ref event sources before propagating, and unref on receipt.
6031 * libspi/registry.c :
6032 some changes to internal structs, to support event typestring hashes.
6033 * text/app.c : changed the way the appname is generated.
6034 * cspi : added directory that will hold the C bindings library for
6035 non-CORBA/bonobo-savvy clients.
6036 * cspi/spi.h : header file that contains the function prototypes for the C binding.
6037 * idl/Component.idl : added in parameter to indicate coord system for
6038 geometry-related calls.
6039 * idl/Hyperlink.idl : added readonly n_links attribute
6040 * idl/Image.idl : changed methods to attributes.
6042 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6044 * at-bridge/Makefile.am: link against
6045 ../libspi/libspi.la instead of -lspi.
6047 * at-spi/test/app.c: include
6048 bonobo-activation.h. Use a default appname
6049 if one is not provided.
6051 2001-08-14 Bill Haneman <bill.haneman@sun.com>
6053 * idl/Registry.idl : temporarily changed register_Application
6054 to oneway, to work around issue with initial registration
6056 * idl/Application.idl : changed attribute "id" from readonly
6057 to read-write, since it needs to be assigned by Registry.
6058 * registryd/registryd.c : added call to set application id
6060 * registryd/registry.c : changed de-registration procedure to
6061 use CORBA_Object_hash() to find matching object ref in application
6062 lists and listener lists.
6063 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
6064 began distinguishing between event types (work in progress).
6066 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6069 * libspi/application.c:
6070 Added implementations for get/set id, get_toolkitName,
6072 * registryd/registryd.c :
6076 Converted from use of OAF to bonobo-activation.
6077 * libspi/desktop.h :
6078 * libspi/desktop.c :
6080 Removed references to atksimpleobject, since base atkobject
6081 implementation now provides functionality we need.
6082 * libspi/atksimpleobject.c :
6083 * libspi/atksimpleobject.h :
6088 * at-bridge/Makefile.am
6089 * at-bridge/bridge.c
6092 Added directory "bridge" and contents, and added dependencies
6093 in Makefile.am/configure.in.
6094 Initial checkin of "at-bridge".
6095 This code is a GTK_MODULE which automatically registers
6096 GTK+ apps with the accessibility registry, using an object
6097 reference to the root ATK object.
6099 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6101 * po/Makefile.in.in: Remove. Again. If this
6102 doesn't get autogenerated - you need to update
6105 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6107 * po/Makefile.in.in: Add. Again.
6109 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6111 * libspi/accessible.c : added support for 'description' property.
6112 * libspi/accessible.c
6114 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6115 (since the two are now equivalent in libbonobo)
6123 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6124 Bonobo::Unknown as does Accessibility::Accessible.
6125 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6126 interface with Bonobo::Stream, since it was redundant with it.
6127 (The Stream returned by a StreamableContext object is expected to
6128 implement only a subset of Bonobo::Stream)
6130 2001-07-28 Anders Carlsson <andersca@gnome.org>
6132 * libspi/accessible.c (accessible_object_finalize): Change
6133 g_free to g_object_unref since the AtkObject is a GObject.
6135 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6137 * idl/Accessibility.idl: add new IDL files
6140 * idl/Action.idl: Definitions of actionable UI object
6141 * idl/Component.idl: Definitions of UI component geometry, etc.
6142 * idl/Hyperlink.idl: Defs of hyperlink behavior
6143 * idl/Image.idl: Def of accessible image
6144 * idl/Selection.idl: Definition of UI object with selectable children
6145 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6146 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6147 * idl/Text.idl: Interface defs for UI elements with complex textual content
6148 * idl/Value.idl: Definition of UI element that is a value controller or display
6150 2001-07-27 Michael Meeks <michael@ximian.com>
6152 * po/Makefile.in.in: remove autogenerated file from CVS.
6154 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6157 * idl/Registry.idl: include guard.
6159 * idl/Accessibility.idl: Add, and include all the other IDL
6162 * idl/*.idl: remove mass of pragmas etc.
6164 2001-07-26 Michael Meeks <michael@ximian.com>
6166 * registryd/Makefile.am (registryd_SOURCES): remove
6169 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6171 * libspi/.cvsignore, registryd/.cvsignore,
6172 test/.cvsignore: updated.
6174 * po/Makefile.in.in: gettext update.
6176 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6178 * initial CVS checkin
6180 2001-06-29 Michael Meeks <michael@ximian.com>
6182 * configure.in: add AM_CONFIG_HEADER to gen config.h