1 2003-06-25 Padraig O'Briain <padraig.obriain@sun.com>
4 (atk_bridge_init): Add signal handler for children-changed:remove on
5 root when in a BonoboComponent.
6 (spi_atk_bridge_toplevel_added): Call spi_atk_bridge_do_registration
7 for first toplevel only other incrememt variable toplevels.
8 (spi_atk_bridge_toplevel_removed): For last toplevel deregister
9 application and remove listeners.
10 (spi_atk_bridge_get-registry): Change NULL to CORBA_OBJECT_NIL for
12 (spi_atk_deregister_event_listeners): New function which removes
14 (reinit_register_vars): New fuction which reinitializes variables.
16 This fixes bug #111578.
18 2003-06-13 Bill Haneman <bill.haneman@sun.com>
20 * configure.in: version 1.3.4.
22 * cspi/spi_accessible.c:
23 Changed test of obj==NULL to obj==CORBA_OBJECT_NIL.
26 2003-06-13 Michael Meeks <michael@ximian.com>
28 * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
30 * cspi/spi_main.c (cspi_peek_ev): impl.
32 2003-06-11 Padraig O'Briain <padraig.obriain@sun.com>
34 * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
36 * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
38 * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role
41 * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
43 * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
44 for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
46 2003-06-11 Bill Haneman <bill.haneman@sun.com>
48 * libspi/streamablecontent.h:
49 * libspi/streamablecontent.c:
50 New files, provide implementation/wrappers for
51 Accessibility_StreamableContent.
53 * cspi/spi_streamablecontent.c:
54 Connected the C wrappers to the libspi C bindings.
55 (AccessibleStreamableContent_close): New method.
58 (AccessibleStreamableContent_close): New method, needed
59 since we have an "open, [seek], read, close" model in cspi.
61 2003-06-11 Bill Haneman <bill.haneman@sun.com>
63 Fix for #108664; Padraig's revision of my original patch.
65 * registryd/registry.h:
66 Added event queue list, is_queuing, and exit_notify_timeout
67 to the registry struct.
69 * registryd/registry.c:
70 (registry_init): Initialize new struct from registry.h.
71 (impl_registry_notify_event):
72 Filter events before notifying, in case some need to be
74 (registry_filter_event): New,
75 we defer certain incoming events (for instance
76 window:deactivate) because we may wish to hide
77 or reject them based on pending events. This is
78 mostly a workaround for bug #108664.
79 (registry_queue_event, registry_start_queue): New.
80 (registry_defer_on_event): Test event to see if it
82 (registry_reset_on_event): Returns TRUE if the
83 event should cause a queue reset.
84 (registry_discard_on_event): Returns TRUE if the event
85 should cause the previous queue contents to be discarded.
86 (registry_timeout_flush_queue): Flushes the pending event
87 queue if no reset/discard-triggering events have come in
88 within the timeout period.
89 (registry_emit_event): New.
90 (registry_clone_notify_context): New, used when queueing the
91 event notify contexts.
93 2003-06-10 Bill Haneman <bill.haneman@sun.com>
95 * configure.in: Version revved to 1.3.2, lt 0.9.2
96 Incremented ATK required version to 1.3.4.
98 * cspi/spi_registry.c:
99 (SPI_generateKeyEvent):
100 We now pass the keystring along if it's non-null.
102 * registryd/deviceeventcontroller.c:
103 (keysym_mod_mask): New method, returns modifier mask
104 required to generate a keysym from a given keycode.
105 (dec_synth_keysym): New method.
106 (dec_synth_keystring): New method.
107 (dec_get_modifier_state): New method.
108 (dec_lock_modifiers): New
109 (dec_unlock_modifiers): New.
110 (dec_keysym_for_unichar): New, rather brute-force
111 conversion from UCS-4 to X KeySyms. Only works for
112 Latin at the moment, with partial implementations for
113 Greek, Hebrew, and (incomplete) Katakana.
114 (impl_generate_keyboard_event): Now implement
115 "KEYSTRING" synthesis and implement "KEYSYM"
117 (keycode_from_keysym): Improved, passes a returned
118 modmask value now if the corresponding param is non-NULL.
120 Fixes bugs #92143 and #109776.
123 * test/keysynth-test.c:
124 New test program for key synthesis, to confirm fixes for
128 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
130 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
132 * cspi/spi_accessible.c (cspi_init_relation_type_table):
133 Add line for RELATION_POPUP_FOR
135 * docs/reference/cspi/tmpl/spi_relation.sgml:
136 Add relation SPI_RELATION_POPUP_FOR
138 * docs/reference/cspi/tmpl/spi_stateset.sgml:
139 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
141 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
143 * libspi/relation.c (spi_init_relation_type_table):
144 Add line for RELATION_POPUP_FOR
146 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
148 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
149 there are still windows which have not been deleted and emit
150 window:deactivate, if necessary and window:destroy events.
151 This fixes bug #114370. The change on June 5th was not correct.
153 2003-06-09 Bill Haneman <bill.haneman@sun.com>
155 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
158 (SPI_dupString): Allow dup-ing of a string such that it's safe to
160 New methods for client exception handling and interception.
161 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
162 (SPI_exceptionHandlerPop): You guessed it...
163 (SPI_getSourceType): Return the type of object which offended.
164 (SPI_getExceptionCode): Return an enum code telling, possibly,
165 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
166 (SPIAccessibleException_getSource): get the source object for
167 exceptions that come from Accessibles, if SPIExceptionSourceType is
168 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
169 (SPIException_getDescription): New, returns a string description of
170 the problem. [Not yet a stable ABI, strings are not frozen]
172 * cspi/spi-private.h:
173 Added implementation details of opaque SPIException
177 Implementations of above. Also
178 (_cspi_exception_throw): new private method that
179 dispatches exceptions to handlers, called from cspi-bonobo.c
181 * cspi/bonobo/cspi-bonobo.c:
182 (cspi_check_ev): call _cspi_exception_throw.
183 Don't print a warning message if the exception has been
184 handled by _cspi_exception_throw.
186 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
188 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
189 there are still windows which have not been deleted and emit
190 window:deactivate, if necessary and window:destroy events.
191 This fixes bug #114370.
193 2003-06-03 Bill Haneman <bill.haneman@sun.com>
196 (cspi_accessible_is_a): Make non-fatal
197 if the object reference is dead.
199 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
201 * cspi/spi_main.c: #include <stdio.h>
202 * test/simple-at.c: ditto
203 * test/event-listener-test.c: ditto
204 * test/screen-review-test.c: ditto
206 2003-05-30 Michael Meeks <michael@ximian.com>
208 * test/test-simple.c (main): use CORBA_ORB_perform_work
209 instead of an unnecessary linc_ call.
211 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
213 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
214 Add SPI_STATE_INDETERMINATE.
216 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
219 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
221 * libspi/stateset.c (init_state_type_tables): Add support for
224 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
226 * configure: Update versions of atk and gail required.
227 This fixes bug #113268.
229 2003-05-02 Bill Haneman <bill.haneman@sun.com>
231 * configure.in: Revved micro version to 1.3.1 (because of build fix).
233 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
235 * libspi/Makefile.am:
236 Ensure headers are generated before being used by c sources.
238 2003-05-01 Bill Haneman <bill.haneman@sun.com>
241 Simplified lt versioning rules.
242 Incremented version to 1.3.0, to indicate that we're on the
245 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
247 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
248 Add MKDB_OPTIONS=--outtput-format=xml
250 * docs/reference/cspi/at-spi-cspi-docs.sgml
251 docs/reference/idl/at-spi-idl-docs.sgml:
252 Convert to Docbook XML.
254 This fixes bug #111793.
256 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
258 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
259 AcccessibleKeyEventType, AccessibleKeyMaskType.
261 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
263 * cspi/state-types.h: Add documentation for AccessibleState.
265 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
266 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
267 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
268 AccessibleComponentLayer.
270 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
273 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
275 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
276 Accessible. Add description of AccessibleEvent,
277 AccessibleEventListenerCB.
279 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
282 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
283 documentation. Add description of AccessibleKeystrokeListenerCB,
284 AccessibleKeyEventMask, AccessibleModifierMaskType,
285 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
286 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
288 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
291 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
294 This fixes bug #104730.
296 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
298 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
299 Set is_text field of Accessibility_DeviceEvent data structure.
301 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
302 is-text field of AccessibleDeviceEvent data structure.
304 This addresses part of bug #108666.
306 * registryd/devcieeventcontroller.c: Unset debug option.
308 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
311 (cpi_initial_relation_type_table): New function which initializes
312 mapping between Accessibility_RelationType and AccessibleRelationType.
313 (cspi_relation_type_from_spi_relation_type): New function which
314 translates an Accessibility_RelationType into an AccessibleRelationType.
315 (AccessibleRelation_getRelationType): Use
316 cpi_relation_type_get_spi_relation_type to return correct value.
317 (spi_state_to_corba): Return correct type for default case.
319 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
320 Use Accessibility_EventType instead of Accessibility_KeyEventType.
322 * cspi/cspi-bonobo-listener.c:
323 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
326 * libspi/accessible.c, libspi/action.c, libspi/application.c,
327 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
328 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
329 libspi/image.c, libspi/listener.c, libspi/selection.c,
330 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
331 registryd/desktop.c, registryd/registry.c:
332 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
334 * libspi/eventlistener.c
335 Remove semicolon after BONOBO_TYPE_FUNC.
338 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
339 (spi_init_relation_type_table): Initialize using correct type.
341 * registryd/desktop.c:
342 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
343 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
344 of Accessibility_KeyEventType.
346 * test/key-listener-test.c (report_tab_key_event): Use fprintf
349 * tests/simple-at.c, tests/screen-review-test.c:
350 Add include for <strings.h>.
352 * tests.stress-test.c:
353 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
355 These changes fix compiler warnings when using FORTE compiler on
356 Solaris; fixes bug #107479.
359 2003-04-10 Bill Haneman <bill.haneman@sun.com>
362 * configure.in: revved to 1.1.10
365 (SPI_KEYMASK_NUMLOCK): Added.
367 * registryd/deviceeventcontroller.c:
368 (spi_key_event_matches_listener): AND with a smaller
369 bitmask (as we should).
370 (spi_dec_translate_mask):
371 New method, sets the virtual NumLock modifier bit
372 if numlock is on. Eventually it can handle other virtual
373 modifier bits if needed, or other marshalling from
374 at-spi modifier masks to platform (X) masks.
375 (spi_dec_key_listener_new):
376 Call spi_dec_translate_mask to set up virtual mod bits
377 in the 'mask' field when creating a new listener struct.
378 (spi_dec_emit_modifier_event):
379 Set the virtual (i.e. NumLock) bits before emitting event.
380 (spi_controller_register_with_devices):
381 Query for the NumLock modifier 'physical' bit if Xkb is
382 present, for use in above methods.
386 2003-04-10 Bill Haneman <bill.haneman@sun.com>
388 * registryd/deviceeventcontroller.c:
389 (spi_keystroke_from_x_key_event):
390 Instead of checking to see if the keysym is
391 printable, check the string from XLookupString
392 if available, get the first unicode character from it,
393 and call g_unichar_isprint to determine whether the
394 is_text flag should be TRUE or FALSE.
398 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
400 * atk-bridge/bridge.c: Add support for extended events
401 * cspi/spi_event.c: Add documentation and implementation for
403 * tests/event-listener-test.c: Add tests for extended events.
405 This fixes bugs #100424 and #100426.
407 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
409 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
410 of LT_CURRENT. This fixes bug #89350.
412 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
414 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
415 number of signal parameter values before accessing them. This fixes
418 2003-04-01 Bill Haneman <bill.haneman@sun.com>
420 * configure.in: Fixed duplicate inclusion of -lspi.
421 * branched for gnome-2-2/HEAD.
422 [created tag "gnome-2-2"]
424 2003-03-07 Bill Haneman <bill.haneman@sun.com>
426 * configure.in: 1.1.9 release.
429 2003-03-07 Bill Haneman <bill.haneman@sun.com>
431 [needed by GOK, to fix bugs 107985 and 107988]
432 * registryd/deviceeventcontroller.c:
433 (spi_dec_clear_unlatch_pending):
434 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
435 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
436 (spi_dec_init_mouse_listener):Emit warning if mouse button
438 (spi_device_event_controller_forward_mouse_event):
439 Removed unnecessary parens from a conditional.
440 (global_filter_fn):Added TODO comment.
441 (impl_generate_keyboard_event):
442 Cancel a pending relatch if a 'delatching' key was
445 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
447 * atk-bridge/bridge.c:
448 Change atk_signal_child_changed to atk_signal_children_changed.
449 Reorganize code in spi_atk_bridge_signal_listener().
451 * test/event-listener-test.c:
452 Add children_changed_listener and report_children_changed_event()
453 to test AccessibleChildEvent_getChildAccessible.
455 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
457 * cspi/spi_event.c (cspi_internal_event_get_text): Change
458 g_strdup to CORBA_String_dup (bug #105291)
460 * test/event-listener-test.c (report_text_event): Add call to
463 2003-02-28 Bill Haneman <bill.haneman@sun.com>
465 * registryd/deviceeventcontroller.c:
466 (spi_keystroke_from_x_key_event):
467 Fix string and keysym return codes to match modifier state.
470 2003-02-28 Bill Haneman <bill.haneman@sun.com>
472 * registryd/deviceeventcontroller.c:
473 (spi_keystroke_from_x_key_event):
474 Fix segv due to improper use of isprint(c). [bug #107254]
476 2003-02-24 Bill Haneman <bill.haneman@sun.com>
479 (get_accessible_text_boundary_type):
480 Move default return value to (new) default case in switch.
481 (get_accessible_text_clip_type):
482 Move default return value to (new) default case in switch.
484 * libspi/application.c:
485 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
486 Remove unused methods.
487 (impl_accessibility_application_register_object_event_listener):
488 Remove unused methods.
491 Added #include of <math.h>.
493 * registryd/deviceeventcontroller.c:
494 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
495 we don't currently use this method.
496 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
498 (impl_generate_key_event):
499 Remove unused variables.
500 (impl_generate_mouse_event):
501 Initialize button to zero, just in case we get an invalid
502 input. Added support for mouse buttons 4 and 5.
503 (spi_device_event_controller_new):
504 Removed unused variable declaration for 'private'.
506 Added #include of <gdk/gdk.h>
508 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
510 * configure.in: Update to work when X is not installed in expected
511 location. Fixes bug #105836.
513 * atk-bridge/bridge.c
514 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
516 (spi_atk_register_event_listener): Add signal listener for
518 (spi_atk_bridge_signal_listener): Event event when link-selected
519 signal is emitted. (bug #104622)
521 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
522 on returned string. (bug #105291)
524 * test/event-listener-test.c: Add test for link-selected.
526 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
528 * atk-bridge/Makefile.am: Correct typo in previous commit.
530 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
532 * atk-bridge/Makefile.am: Allow for build directory to be different
533 from source directory
535 * registryd/Makefile.am: Allow for build directory to be different
536 from source directory
540 2003-01-29 Bill Haneman <bill.haneman@sun.com>
543 Fixed dependencies for libcspi so that libspi gets pulled in
544 properly. Fixes 104741.
548 Clean up inline docs a little.
550 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
552 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
553 This is done by implementing AtkComponent for SpiAtkDesktop, which is
554 the AtkObject within an SpiDesktop.
555 This addresses bug #101524.
557 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
558 Remove call to gdk_init().
560 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
561 so that Display is set when SpiDesktop is created.
563 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
565 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
566 This fixes bug #102830.
568 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
570 * test/test-simple.c: Update to take account of fact that GailButton
571 now implements AtkText.
572 (create_text_window): Set name on AtkObject for GtkEntry.
573 (validate_accessible): Check accessible name before calling test_text().
575 * libspi/Makefile.am: Fix problem with building outside of source
576 directory. Bug #98120.
578 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
579 typo in documentation comments. Bug #94275.
581 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
583 * libspi/text.c (impl_getBoundedRanges): Bug fix.
585 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
588 Add includes to avoid compiler warnings on Solaris.
589 (impl_getRangeExtents): Bug fix.
591 2002-12-17 Bill Haneman <bill.haneman@sun.com>
593 Fix for 100944, [API addition approved by Gman and murrayc].
600 * idl/Accessibility_Text.idl:
601 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
602 (Text::getRangeExtents): New method for efficient
603 bounds query of a text range.
604 (Text::getBoundedRanges): New method for efficient
605 clipping of text to bounding boxes.
606 (unImplemented7, unImplemented8):
607 Removed these padding methods to preserve bincompat.
610 (impl_getRangeExtents): implementation of new IDL.
611 (impl_getBoundedRanges): implementation of new IDL.
612 (SpiTextRect): Internal use struct.
613 (_spi_text_rect_union): internal method, calculates union of two
614 SpiTextRect bounding rects.
615 (_spi_text_range_seq_from_gslist): internal method, allows us
616 to build our sequence efficiently as a gslist then convert it
618 (_spi_bounds_contain): internal method, determines whether
619 a text character is "in" or "out" of a clip rect according to
620 values of TEXT_CLIP_TYPE.
621 (spi_text_class_init): Initialize the new methods in the epv.
624 (AccessibleTextClipType): New enum used by screen review api.
625 (AccessibleTextRange): New struct used by screen review api.
626 (AccessibleText_getRangeExtents):
627 cspi binding for Accessibility_Text_getRangeExtents.
628 (AccessibleText_getBoundedRanges):
629 cspi binding for Accessibility_Text_getBoundedRanges.
630 (AccessibleTextRange_freeRanges): convenience method.
633 (AccessibleText_getRangeExtents):
634 cspi binding for Accessibility_Text_getRangeExtents.
635 (AccessibleText_getBoundedRanges):
636 cspi binding for Accessibility_Text_getBoundedRanges.
637 (AccessibleTextRange_freeRanges): convenience method.
638 (get_accessible_text_clip_type): internal conversion method.
639 (get_accessible_text_ranges_from_range_seq): internal conversion method.
641 * registryd/deviceeventcontroller.c:
642 (spi_dec_mouse_check):
643 Improved behavior for mouse:abs events
644 [same granularity as mouse:rel events, and no
645 events when mouse is idle].
647 2002-12-16 Michael Meeks <michael@ximian.com>
649 * cspi/spi_accessible.c (spi_state_to_corba): rename.
651 * libspi/stateset.c (state_spi_to_atk): split out
652 ( fix several remote array bounds nasties )
653 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
654 (impl_remove): make safe from array bounds issues.
655 (spi_atk_state_from_spi_state): impl.
657 * libspi/stateset.h (spi_state_set_cache_is_empty):
658 add a set of wrapper defines to get layering right.
660 * cspi/spi_accessible.c: update state set stuff to
663 2002-12-14 Michael Meeks <michael@ximian.com>
665 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
666 to avoid 2 roundtrips to the registry per key event
667 (spi_atk_bridge_key_listener): upd.
668 (deregister_application): release the dec.
670 * registryd/registry.c (notify_listeners_cb):
671 bin lots of re-enterant complexity - we no longer
672 do a round-trip bonobo ref here, ensure that a single
673 listener's exception failure won't poison all other
675 (impl_registry_notify_event): bin obvious memory leak.
677 2002-12-13 Michael Meeks <michael@ximian.com>
679 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
680 init the ev so the error is meaningful.
681 (spi_atk_bridge_key_listener): ditto.
683 * cspi/spi_main.c (cspi_ev): init the ev so we start
684 with a clean slate, otherwise the first exception
687 * cspi/spi_text.c (get_accessible_text_boundary_type):
688 add a fallthrough for no warnings.
690 * cspi/spi_registry.c: prune unused warnings.
692 * cspi/spi_main.c (cspi_object_take): fix
693 mind-blowing brokenness ( by watching the compile
696 * cspi/spi_accessible.c (Accessible_getStateSet):
697 re-impl. to use an AtkStateSet.
698 (spi_state_type_from_accessible_state),
699 (init_state_table): bin these.
701 * libspi/stateset.c (spi_atk_state_set_from_sequence):
703 (atk_state_set_from_accessibility_state_set): here.
705 * cspi/spi_accessible.c (spi_state_to_atk): impl.
706 (AccessibleStateSet_contains, AccessibleStateSet_ref),
707 (AccessibleStateSet_unref, AccessibleStateSet_contains),
708 (AccessibleStateSet_add, AccessibleStateSet_remove),
709 (AccessibleStateSet_equals, AccessibleStateSet_compare),
710 (AccessibleStateSet_isEmpty): re-write to use a local
713 2002-12-13 Bill Haneman <bill.haneman@sun.com>
715 * configure.in: Revved to 1.1.7 (new keymask vals).
717 2002-12-10 Bill Haneman <bill.haneman@sun.com>
720 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
722 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
725 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
726 to compare two CORBA_TypeCodes.
727 (cspi_internal_event_add): Silence warning from FORTE compiler.
729 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
730 avoid implicit declaration of functions.
732 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
734 * atk-bridge/bridge.c:
735 (spi_atk_bridge_init_event_type_consts): Store signal id for
736 active-descendant-changed signal.
737 (spi_atk_register_event_listeners): Add signal listener for
738 active-descendant-changed signal,
739 (spi_atk_bridge_signal_listener): Move code in function
740 spi_atk-signal_emit_event() into this function.
741 Add support for active-descendant-changed
742 Update support for child-changed signal.
743 (spi_bridge_window_event_listener): Silence warning.
745 * libspi/spi_private.[ch]:
746 (spi_init_any_object): Change second parameter from CORBA_Object to
748 Omit call to CORBA_Object_duplicate().
749 Set CORBA_any's _value to CORBA_Object*.
751 2002-12-06 Bill Haneman <bill.haneman@sun.com>
757 (AccessibleEvent_ref, AccessibleEvent_unref):
758 New methods, for persisting an event outside the emission context.
759 Must be used if the new accessor methods are to be called
760 outside of the event listener's callback.
762 * cspi/bonobo/cspi-bonobo.c:
763 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
764 as second parameter instead of NULL, so we can call
765 cspi_check_ev afterwards.
768 (cspi_object_take): New internal method,
769 converts a CORBA_Object reference to a hard ref on
770 an Accessible if possible, returning NULL if the object
771 reference is invalid or an Accessible * otherwise.
774 (AccessibleEvent_ref):
775 Increment the event's internal private refcount, and
776 add the event's internal struct to an internal cache
777 if it's not already there.
778 (AccessibleEvent_unref):
779 Decrement the event's refcount and remove it from
780 the cspi event cache if refcount==0.
781 (cspi_event_compare): New private method.
782 Compares two event structs via their ids. Used
784 (cspi_internal_event_lookup): New private method.
785 (cspi_internal_event_check): New private method,
786 a 0-order sanity check for events to make sure their
787 private data is intact.
788 (cspi_internal_event_add, cspi_internal_event_remove):
789 New private methods for managiing the event cache.
791 * cspi/bonobo/cspi-bonobo-listener.c:
793 Initialize the new private data elements (id, magic, ref_count).
795 * atk-bridge/bridge.c:
796 (spi_atk_bridge_signal_listener):
797 Fixed bug #100530, passing wrong params to emission func.
799 * registryd/deviceeventcontroller.c:
800 (spi_dec_button_update_and_emit):
801 Fixed type in mask bit operations; fix for #99799.
803 2002-12-02 Bill Haneman <bill.haneman@sun.com>
805 Removed some of the more dangerous workarounds from
806 previous commit; they are only needed by GOK, which
807 in reality should be using another method to accomplish
808 the goals. So on reconsideration some of the workarounds
811 * registryd/deviceeventcontroller.c:
812 (spi_keycodes_contain, spi_dec_init_keycode_list):
813 Removed these methods, used only by a nasty hack to try
814 and detect whether a key synthesis should be allowed
815 to reset the XKB latch state or not. This code was only
816 required to work around an interaction between GOK,
817 button events, and XKB.
818 (impl_generate_key_event):
819 Removed hack at end of key generation that tried to
820 "do the right thing" if XKB latch keys were generated
821 in the midst of button press/release pairs.
824 Added a check for HAVE_XINPUT. Not normally used yet.
826 2002-11-25 Bill Haneman <bill.haneman@sun.com>
828 Workarounds and fixes for mouse event/XKB interaction.
830 * registryd/deviceeventcontroller.c:
831 (spi_keycodes_contain, spi_dec_init_keycode_list):
832 New internal methods.
833 (spi_dec_set_unlatch_pending):
834 Split the method that tells XKB to expect an
835 unlatch (and revert it) out of the rest of the
836 event handling code. This method is called by the
837 two mouse event handlers (the poll and the filter).
838 (spi_dec_update_and_emit, spi_dec_mouse_check):
839 New methods split from spi_dec_poll_mouse_moved.
840 The second one is now called from inside the filterFn
841 when an XKB delatch event is received, to determine
842 whether to revert the delatch or not.
843 (spi_poll_mouse_moved): Refactor; also we can now
844 properly handle the case where multiple button states
845 have changed between polling cycles and we didn't get
846 notified due to another client's grab.
848 Synchronize the server while handling an XKB notification.
849 Ugly, but apparently necessary to avoid nasty races.
850 Check the mouse state on receipt of an XKB latch change,
851 to decide whether to revert the latch or not. (Latches are
852 reverted if there is an immediately preceding mouse button
853 event that a client has consumed, in which case we don't want
854 the user to see the side-effect of the event).
855 (spi_device_event_controller_forward_mouse_event):
856 Check for modifier events and fire before resetting mouse_mask_state,
857 prevents losing modifier events.
859 (impl_generate_keyboard_event):
860 If we've just generated a keyboard event for a non-shift key,
861 we don't want to revert the pending XKB latch.
862 Otherwise, check the modifier state (via a call to
863 spi_dev_mouse_check) and set the relatch mask to
864 that state before returning.
866 2002-11-24 Bill Haneman <bill.haneman@sun.com>
869 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
872 * atk-bridge/bridge.c:
873 (spi_atk_register_event_listeners):
874 Don't re-register for ATK events if the registry has died
875 and the app needs to re-register; the ATK listeners are in
876 process and doing so will cause duplicate emission.
878 * registryd/deviceeventcontroller.c:
879 (spi_poll_mouse_moved):
880 Reformat the source, detect and emit multiple button-change
881 events (i.e. if multiple buttons have changed between poll
883 Add code to detect mouse-down events even when the pointer
884 is grabbed; workaround for GOK bug 98420.
885 (spi_controller_register_with_devices):
886 Call XTestGrabControl with 'impervious' flag set to True,
887 allows us to synthesize events and query the pointer even during
888 an active grab by another client.
889 (spi_device_event_controller_forward_mouse_event):
890 Set the mouse_mask_state to the mouse_button_state from
891 the intercepted event, to synchronize the grab listener with
894 2002-11-20 Bill Haneman <bill.haneman@sun.com>
896 * cspi/spi_accessible.c:
897 (AccessibleRole_getName):
898 Added necessary strings for making this (deprecated)
899 method work with the new role types.
900 (init_role_table, role_table):
901 Added definition of SPI_ROLE_APPLICATION.
903 * libspi/spi-roletypes.h:
904 Added SPI_ROLE_APPLICATION.
906 * idl/Accessibility_Role.idl:
907 Added ROLE_APPLICATION.
909 * docs/reference/cspi/at-spi-cspi-decl.txt:
910 Added SPI_ROLE_APPLICATION to docs.
912 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
914 * cspi/spi_accessible.c
915 (cspi_init_role_table): Do not write beyond end of role_table.
916 (Accessible_getRole): Use correct type for value returned by
917 Accessibility_Accessible_getRole().
919 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
920 beyond end of role_table. (This fixes bug #98269)
922 * libspi/application.c: Add include file spi-private.h for
923 definition of spi_init_any_nil.
925 2002-11-19 Bill Haneman <bill.haneman@sun.com>
929 * libspi/spi-private.h:
930 Added DGB() macro, and extern int _dbg declaration.
932 * registryd/registry.c:
933 (definitions) storage for _dbg.
935 Get environment variable "AT_SPI_DEBUG".
936 (spi_registry_set_debug):
937 New method, to initialize _dbg value.
938 (spi_listener_struct_new, spi_registry_object_finalize):
939 (notify_listeners_cb):
940 Changed fprintfs to use DBG and g_warning().
942 * registryd/deviceeventcontroller.c:
943 (_deregister_keygrab, spi_controller_register_device_listener):
944 Changed debug/warning messages to use DBG macro.
948 Changed warning messages to use DBG macro and g_warning().
950 * atk-bridge/bridge.c:
951 (atk_bridge_init, spi_atk_bridge_get_registry):
952 (spi_atk_bridge_exit_func):
953 (spi_atk_bridge_property_event_listener):
954 Changed status, warning, and error messages to use
955 g_warning, g_message, and DBG macros.
958 Read the state of the AT_SPI_DEBUG environment variable
959 and set a local '_dbg' accordingly.
961 2002-11-19 Bill Haneman <bill.haneman@sun.com>
963 FIXES for 98836, 98842, other bugs.
966 Revved to 1.1.4, interface-age=4, binary-age=4.
968 * registryd/deviceeventcontroller.c:
970 Fixed crasher bug in last_mouse_pos initialization.
972 * registryd/registry.c:
973 (desktop_add_application, desktop_remove_application):
974 Added (and then commented out) some support for
975 object context marshalling. [TODO]
977 * atk-bridge/bridge.c:
978 (spi_atk_bridge_event_context_create):
979 Commented out object context creation until it can
980 be properly tested and debugged.
982 * registryd/registry.c:
983 (impl_registry_notify_event):
984 Fixed crasher bug, we were calling
985 spi_re_entrant_list_foreach () with an empty list.
987 2002-11-18 Bill Haneman <bill.haneman@sun.com>
989 * idl/Accessibility_Action.idl:
990 * idl/Accessibility_Component.idl:
991 * idl/Accessibility_Desktop.idl:
992 * idl/Accessibility_Event.idl:
993 * idl/Accessibility_Hyperlink.idl:
994 * idl/Accessibility_Image.idl:
995 * idl/Accessibility_Relation.idl:
996 * idl/Accessibility_Selection.idl:
997 * idl/Accessibility_State.idl:
998 * idl/Accessibility_Value.idl:
999 Updated unimplemented slot count to minimum of
1000 four for all interfaces, for ABI freeze.
1002 * idl/Accessibility_EditableText.idl:
1003 * idl/Accessibility_Text.idl:
1004 Updated unimplemented slot count to six
1007 * idl/Accessibility_Registry.idl:
1008 Updated unimplemented slot count to six
1009 (also for DeviceEventController),
1012 * idl/Accessibility_Table.idl:
1013 Updated unimplemented slot count to eight,
1016 * idl/Accessibility_Event.idl:
1017 Added CORBA_any "any_data" member to Event struct.
1019 * idl/Accessibility_Event.idl:
1020 Added CORBA_any "any_data" member to Event struct.
1022 * atk-bridge/bridge.c:
1024 atk_signal_text_changed, atk_signal_child_changed,
1025 signal ids queried from gtype system.
1026 (AtkBridgeEventContextType): New enum.
1027 (AtkBridgeEventContextData): New struct.
1028 (AtkBridgeEventContext): New struct.
1029 (atk_bridge_init_event_type_consts):
1030 New method, initializes type contants for comparison
1031 prior to emit_eventv.
1032 (atk_bridge_event_context_init): New method,
1033 initializes a CORBA_any from an AtkBridgeEventContext.
1034 (atk_bridge_focus_tracker): Call spi_init_any_nil to
1035 initialize the event.any_data struct.
1036 (spi_atk_bridge_event_context_create): New method,
1037 creates an AtkBridgeEventContext from signal/event info.
1038 (spi_atk_bridge_event_context_free): New method.
1039 (spi_atk_emit_eventv): Changed to take an
1040 AtkBridgeEventContext parameter. We now initialize
1041 the event.any_data member prior to notifying the
1042 Registry, via the AtkBridgeEventContext.
1043 (spi_atk_bridge_property_event_listener):
1044 (spi_atk_bridge_state_event_listener):
1045 Match emit_eventv signature.
1046 (spi_atk_bridge_object_event_listener):
1047 Match emit_eventv signature, and create an
1048 event context from the event details.
1049 Free the event context afterwards.
1050 (spi_atk_bridge_window_event_listener):
1051 Create an event context, pass it to the
1055 (AccessibleEvent_getContextString):
1056 (AccessibleEvent_getContextObject):
1057 New methods, allow query of AccessibleEvent objects
1058 for more context details (via the "any_data" member
1059 of the Event struct, above).
1062 Definitions for AccessibleEvent_getContextString
1063 and AccessibleEvent_getContextObject.
1065 * cspi/spi_listener.h:
1066 (InternalEvent): New struct.
1069 (AccessibleEvent_getContextString):
1070 (AccessibleEvent_getContextObject):
1071 Implementations of new methods, for obtaining
1072 additional context information from some event types.
1074 * cspi/spi_registry.c:
1075 (SPI_registerGlobalEventListener):
1076 Added mention of active-descendant-changed event in docs.
1078 * cspi/cspi-bonobo-listener.c:
1080 Marshal the any into the AccessibleEvent via
1083 * libspi/spi-private.h:
1084 #include <orbit/orbit.h>
1086 (spi_init_any_string):
1087 (spi_init_any_object):
1088 New convenience function declarations.
1092 (spi_init_any_string):
1093 (spi_init_any_object):
1094 New convenience function implementations.
1096 * registryd/deviceeventcontroller.c:
1097 (spi_poll_dec_mouse_moved):
1098 (spi_device_event_controller_forward_mous_event):
1099 Initialize any_data member of event.
1100 (spi_deregister_controller_device_listener):
1101 Fix incorrect param pass which was preventing deregistration.
1103 * registryd/registry.c:
1104 (desktop_add_application):
1105 (desktop_remove_application):
1106 Add object data to event's any_data before dispatch.
1108 Fix for error messages from GAIL.
1110 * test/event-listener-test.c:
1111 Test new ContextString and "any_data" API:
1112 (report_text_event): New method query and output context string.
1113 (main): register a new text listener with report_text_event
1116 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1118 Fixes for bugs 98127 and 97914.
1119 * cspi/spi-roletypes.h:
1120 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1122 * cspi/spi-statetypes.h:
1123 Added SPI_STATE_MANAGES_DESCENDANTS
1125 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1126 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1127 * cspi/spi_accessible.c:
1128 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1129 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1130 Accessibility_STATE_MANAGES_DESCENDANTS
1131 * libspi/accessible.c:
1132 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1133 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1134 As requested by Bill, I also cleaned up the alignment.
1135 * libspi/relation.c:
1136 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1137 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1138 * libspi/stateset.c:
1139 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1140 Accessibility_STATE_MANAGES_DESCENDANTS
1141 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1142 Document changes reflecting modifications to roles.
1143 * docs/reference/cspi/tmpl/spi_relation.sgml:
1144 Document changes reflecting modifications to relations.
1145 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1146 Document changes reflecting modifications to states.
1148 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1151 Revved to 1.1.3, interface-age=3, binary-age=3.
1152 Added REBUILD macro.
1155 Removed accessx-gui from the tests, since we have a nice
1156 keyboard accessibility capplet now :-)
1158 * test/keysynth-demo.c:
1159 (increment_scan): removed do-nothing default: case,
1162 * test/visual-bell.c:
1163 (main) : removed do-nothing default: case,
1166 * cspi/spi_action.c:
1167 (AccessibleAction_getKeyBinding_):
1168 Documented keybinding string format.
1172 (AccessibleText_getAttributes):
1173 Documented the text attribute string format.
1174 It's changed to use semicolon delimiters also,
1175 to prevent clashes with CSS attributes, but the old
1176 trick of looking for ", " strings will still work
1177 (as unreliably as ever). Fix for bug related to 97916.
1180 Include <cspi/bonobo/cspi-bonobo-listener.h>
1181 Fixes build warning.
1182 (SPI_freeAccessibleKeySet):
1183 (AccessibleKeystrokeListener_addCallback):
1184 (AccessibleKeystrokeListener_removeCallback):
1185 Modify to use AccessibleDeviceListener API internally,
1186 instead of AccessibleKeystrokeListener.
1188 * idl/Accessibility_Event.idl:
1189 Added two more empty slots to EventListener (for a total of four).
1191 * idl/Accessibility_Accessible.idl:
1192 Added four empty slots to Accessible interface.
1194 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1196 * idl/Accessibility_Registry.idl:
1197 (KeyEventType, EventType):
1198 Marked KeyEventType as deprecated; it duplicates
1199 functionality of EventType, which has been extended to
1200 include Mouse-button events.
1201 (KeyEventTypeSeq): defined in terms of EventType.
1202 (registerDeviceEventListener, deregisterDeviceEventListener):
1203 New methods, for managing listeners to device events,
1204 which potentially may consume them.
1207 Added definition for AccessibleDeviceListener.
1209 * cspi/spi-listener.h:
1210 (enum AccessibleDeviceEventType):
1211 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1212 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1213 for backwards compat.
1214 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1215 and typedef'd AccessibleKeystroke to it for back-compat.
1216 (AccessibleDeviceListenerCB):
1217 New function prototype typedef.
1220 (AccessibleDeviceEventMask): New typedef.
1221 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1222 (AccessibleKeyMaskType):
1223 Set equivalent to AccessibleModifierMaskType for back-compat.
1224 (SPI_createAccessibleKeystrokeListener):
1225 (AccessibleKeystrokeListener_unref):
1226 Deprecated in favor of equivalent (better-named) new API below..
1227 keystroke listeners are like all device listeners.
1228 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1229 New API names for old features :-).
1230 (AccessibleDeviceListener_addCallback):
1231 (AccessibleDeviceListener_removeCallback):
1232 (SPI_registerDeviceEventListener):
1233 (SPI_deregisterDeviceEventListener):
1237 (SPI_createAccessibleKeystrokeListener):
1238 Use new preferred API, cspi_device_listener_new() and
1239 cspi_device_listener_add_cb().
1240 (AccessibleKeystrokeListener_removeCallback):
1241 Use new preferred API, cspi_device_listener_remove_cb().
1242 (AccessibleKeystrokeListener_unref):
1243 Use new preferred API, cspi_device_listener_unref().
1244 (SPI_createAccessibleDeviceListener):
1245 (AccessibleDeviceListener_addCallback):
1246 (AccessibleDeviceListener_removeCallback):
1247 Implementation of new API.
1249 * cspi/spi_registry.c:
1250 (SPI_registerDeviceEventListener):
1251 (SPI_deregisterDeviceEventListener):
1252 Implementation of new API. Fixed memory leak and removed need to
1253 allocate EventTypeSeq (thanks Michael for catching this).
1254 Squashed a wayward CORBA_exception_free that shouldn't get called.
1256 * cspi/bonobo/cspi-bonobo-listener.c:
1258 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1259 (cspi_key_event): renamed to cspi_device_event().
1260 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1261 Extended to handle mouse button events as well as key events.
1262 (CSpiKeystrokeListener):
1263 Class superceded by CSpiDeviceListener.
1264 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1265 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1267 * cspi/bonobo/cspi-bonobo-listener.h:
1268 (CSpiKeystrokeListener):
1269 Class superceded by CSpiDeviceListener.
1270 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1271 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1273 * libspi/Makefile.am:
1274 Replaced keystrokelistener.h and keystrokelistener.c
1275 with devicelistener.h and devicelistener.c; keystrokelisener.h
1276 stub retained for back-compat.
1278 * libspi/keystrokelistener.c:
1282 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1284 * registryd/deviceeventcontroller.c:
1285 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1286 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1287 (DEControllerPrivateData): Added xkb settings data.
1288 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1289 button release events (which can't be captured via XGrabButton).
1290 Don't dispatch via the 'normal' event mechanism if the device event was
1292 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1293 Handle the typeseq data in its new location (see above).
1294 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1295 New methods, for "generic" device listeners.
1296 (spi_controller_register_device_listener):
1297 Now handle mouse event listeners as well as key listeners.
1298 (spi_controller_notify_mouselisteners):
1299 New internal method.
1300 (spi_device_event_controller_forward_mouse_event):
1301 Now we notify mouse device listeners as well as generating the
1302 non-consumable "mouse:" events.
1304 We must check and restore the XKB
1305 modifier map if we consume the event, since the act of triggering
1306 a mouse event will normally reset the XKB latch. This is required for
1308 (spi_controller_register_with_devices):
1309 Load the XKB settings when registering, and register for XKB
1310 state notify events.
1311 (spi_key_eventtype_seq_contains_event):
1312 Renamed spi_eventtype_seq_contains_event, since it's used
1313 internally for all device event types now.
1314 (spi_key_event_matches_listener):
1315 Uses spi_eventtype_seq_contains_event now.
1316 (spi_device_event_controller_object_finalize):
1317 Free the private data and the XkbKeyboard struct.
1318 (impl_register_device_listener, impl_deregister_device_listener):
1319 Implementation of new IDL.
1320 (spi_deregister_controller_device_listener):
1321 New internal method.
1322 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1323 More efficient implementation, we don't have to create a new
1324 XkbControls structure every time we query.
1325 (spi_device_event_controller_class_init):
1326 Initialize the epv entries for the new IDL. Assign the
1327 "spi-dec-private" quark.
1328 (spi_device_event_controller_init):
1329 Initialize the private data.
1330 (spi_device_event_controller_forward_key_event):
1331 Removed a bogus CORBA_exception_free() call.
1333 * registryd/deviceeventcontroller.h:
1334 Replaced inclusion of keystrokelistener.h with
1337 * test/event-listener-test.c:
1338 (report_mouse_event):
1341 Added mouse-event device listener.
1343 * test/test-simple.c:
1344 (create_test_window):
1345 Fixed regression (we were instantiating a GtkRange,
1346 which is now an abstract class). Also fixed to match
1347 existing AtkRole names, this seems to have changed in ATK
1348 awhile ago; too late now I think, and the new
1349 mechanism is at least elegant and consistent with the
1350 glib enum "nick" APIs.
1352 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1354 * idl/Accessibility_Relation.idl:
1355 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1356 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1357 * idl/Accessibility_Role.idl:
1358 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1359 * idl/Accessibility_State.idl:
1360 add STATE_MANAGES_DESCENDANTS
1361 * test/event-listener-test.c:
1362 Added a listener for active-descendant events.
1364 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1366 * atk-bridge/bridge.c
1367 (atk_bridge_init): If application is Bonobo component wait until top
1368 level is added before registering
1369 (spi_atk_bridge_do_registration): New function which contains code,
1370 formerly in atk_bridge_init, to do application registration.
1371 (spi_atk_bridge_toplevel_added): Signal called when top level
1372 added to Bonobo component
1374 This fixes bug #83134.
1376 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1378 * registryd/deviceeventcontroller.c
1379 Fixed compilation error caused by calling gettimeofday()
1382 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1387 Added template for HAVE_XKB.
1390 Changes to check for XKB, and to set the HAVE_XKB #define if it
1393 * libspi/listener.c:
1394 ()impl_notify_event): Make failure to get event source name
1397 * registryd/deviceeventcontroller.c:
1398 (#include): include X11/XKBlib.h.
1399 (DEControllerPrivateData) : New struct.
1400 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1402 (dec_synth_keycode_press) (dec_synth_keycode_release):
1403 New methods; split the key synthesis code into these methods.
1404 They check XKB settings before determining the "time" values to
1405 pass to Xtest; this fixes bug #95828.
1406 (impl_generate_keyboard_event): Changed to use methods above,
1407 instead of callng Xtest directly.
1408 (spi_device_event_controller_init): Initialize new privae struct s
1410 (spi_device_event_controllr_object_finalize):
1411 Free the (new) private data.
1413 * registryd/deviceeventcontroller.h:
1414 Add new gpointer to end of struct data.
1416 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1419 Incremented revision to 1.1.2, SONAME is still '.so', library
1420 extensions are ".so.0.0.2".
1422 * registryd/deviceeventcontroller.c:
1423 FIXES FOR #93592 and #95940.
1424 (statics): renamed mouse_button_state to mouse_mask_state,
1425 added key_modifier_mask.
1426 (spi_dec_poll_mouse_moved):
1427 Added key modifier checks, and emit "keyboard:modifiers"
1428 events when the key modifiers currently in use change.
1429 Also generate "mouse:abs" events periodically, even if the mouse
1430 is stationary (should we?).
1431 Alternatively we could generate "mouse:abs" events for either all
1432 mouse movements, or every 'nth' mouse movement, or at the
1433 beginning and end of every "active" mouse period.
1435 * test/event-listener-test.c:
1436 (main): Added listener for "keyboard:modifiers" events.
1438 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1440 * libspi/keymasks.h:
1441 Added key mask #defines for mouse buttons; e.g.
1442 SPI_KEYMASK_BUTTON1, etc.
1445 Incremented dependency on ATK to version 1.1.0. (This dependency
1446 is probably premature but will soon be real enough).
1448 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1450 * libspi/hyperlink.[ch]
1451 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1452 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1455 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1460 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1462 * registryd/deviceeventcontroller.c
1463 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1464 events to be ignored.
1465 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1466 keyboard_mode so that XAllowEvents() can be called.
1470 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1472 * cspi/spi-accessible.c: Correct names of roles returned by
1473 AccessibleRole_getName(). Fixes bug #95055.
1475 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1477 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1480 * registryd/registry.c
1481 (desktop_remove_application: Write diagnostic message to stderr for
1484 (impl_accessibility_registry_deregister_global_event_listener):
1485 Correct size of lists array. This addresses bug #94555).
1487 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1489 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1492 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1494 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1497 * registryd/registry.c (impl_registry_notify_event): Remove
1498 unnecessary call to parser_event_type().
1500 * docs/reference/cspi/tmpl/spi_component.sgml:
1501 Add reference to SPI_LAYER_WINDOW.
1503 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1505 * registryd/registry.c
1506 (desktop_add_application): Remove leak.
1507 (desktop_remove_application): Remove leak.
1508 (parser_event_type): Remove leak.
1510 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1512 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1513 bogus call to CORBA_string_dup(). Also removed unnecessary
1514 g_string_dup/g_free calls.
1516 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1518 * registryd/deviceeventcontroller.c:
1519 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1521 * test/event-listener-test.c:
1522 main: commented out three redundant listeners, to reduce output
1523 noise. (They still are potentially useful for testing).
1526 2002-09-13 Michael Meeks <michael@ximian.com>
1528 * Update all the copyrights to include Ximian.
1530 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1532 * cspi/spi.h: add SPI_LAYER_WINDOW.
1534 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1535 add Accessibility_LAYER_WINDOW case.
1537 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1539 * libspi/component.c: (impl_accessibility_component_get_layer):
1540 add ATK_LAYER_WINDOW case.
1542 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1544 * configure.in: incremented micro version.
1546 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1548 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1551 Clarified and reworded our commit policy.
1554 Started an API "todo" addition list for 2.2.
1557 (impl_getSelection):
1558 Free char pointer from atk_text_get_selection, which was being leaked.
1560 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1563 Small revision to author acknowledgement.
1565 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1567 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1568 If signal has detail add it to the type of the event.
1571 2002-08-12 Michael Meeks <michael@ximian.com>
1573 * test/test-simple.c (global_listener_cb): bin bogosity.
1574 (test_keylisteners): disable, still doesn't work reliably,
1575 certainly not on my system anyway.
1577 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1578 don't leak a reference on the DEC. This round-trip
1579 fetching of the DEC per keystroke sucks, it should be
1582 * cspi/spi-private.h,
1583 * cspi/cspi-lowlevel.h,
1584 * cspi/bonobo/cspi-bonobo-listener.[ch],
1585 * cspi/bonobo/cspi-bonobo.c: get the copyright
1586 notices better - there is still a large amount of
1587 work in at-spi falsely attributed solely to Sun.
1589 * cspi/spi_main.c (cspi_object_ref): kill bogus
1590 hash lookup, just increment the ref.
1591 (SPI_freeString): make explicit the fact that we
1592 handle NULL strings just fine.
1593 (report_leaked_ref): obey coding standards.
1594 (cspi_object_hash, cspi_object_equal): kill retval.
1595 (cspi_object_release): only release if not on loan.
1596 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1597 (cspi_object_borrow, cspi_object_return): impl.
1599 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1600 use cspi_object_borrow / return.
1602 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1604 * cspi/bonobo/cspi-bonobo-listener.c:
1606 Don't call cspi_oject_new() because this is creating a new Accessible
1607 every single time that an event is fired. This causes ATs like at-poke
1608 to nolonger recognise the source of the event and thus ignore it.
1609 Re-use the object from the cache, ref it and then unref it after the
1610 listeners have been called.
1612 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1614 * test/event-listener-test.c:
1615 Added command-line options to disable mouse events (m) and
1618 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1620 * configure.in: Update required versions of ATK, GTK+ and GAIL
1622 * cspi-1.0.pc.in: Add dependency for X include files
1625 * cspi/bonobo/Makefile.am:
1626 Add $(X_CFLAGS) so that X include files
1627 are picked up even if not in standard place (bug #71686)
1629 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1631 * registryd/deviceeventcontroller.c: fix for 84261
1632 (spi_dec_mouse_moved):
1633 Added test of mouse button mask, so that we can detect mouse
1634 button release. Unfortunately we can't otherwise detect mouse
1635 button release events without consuming the mouse press event,
1636 because of the way XGrabButton works. This means that our mouse
1637 release events have a latency dependent on the polling period
1638 while the mouse button is down. At least in this case we only
1639 have to poll while the button is down, and not at other times.
1640 If the button masks don't match with what the last press event
1641 reported, we report the appropriate button release event.
1642 (spi_dec_ungrab_mouse):
1643 New method (not yet called).
1644 (spi_device_event_controller_forward_mouse_event):
1645 New method, sends mouse press event from GdkFilter.
1646 (spi_dec_init_mouse_listener):
1647 Added code to call XGrabButton, redirecting mouse button events to
1648 the root window and our Gdk event loop.
1650 Added code to filter mouse button events, and reordered.
1652 * test/event-listener-test.c:
1654 Added registration for mouse events of type "mouse:button".
1656 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1658 * registryd/deviceeventcontroller.c: partial fix for 84261
1659 (spi_dec_poll_mouse_idle):
1660 New method, a timeout which checks to see if the mouse
1662 (spi_dec_poll_mouse_moving):
1663 A timeout to be called when mouse motion is underway.
1664 (spi_dec_poll_mouse_moved):
1665 A method which fires an event if the mouse has moved, and reports
1666 whether or not it did so.
1667 (spi_dec_init_mouse_listener):
1668 A method which sets up the timeouts above.
1669 (spi_device_event_controller_new):
1670 Now calls spi_dec_init_mouse_listener.
1672 * registryd/registry.c:
1673 (spi_registry_init):
1674 Now we initialize the device event controller when the registry is
1675 initialized, instead of waiting until a client has requested a key
1676 event notification; this is because we need the event controller
1677 for mouse events, but the mouse event registration API is a
1678 "registry" call and doesn't explicitly call the
1679 deviceeventcontroller.
1680 We now report mouse motion events with a 100 ms idle latency and
1681 a 20 ms granularity when motion is in progress.
1683 * test/event-listener-test.c:
1685 We now register the "detail listener" for events of type
1686 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1687 delivered only for the first mouse event received, and thereafter
1688 "mouse:abs" events are delivered.)
1690 * cspi/spi_registry.c:
1691 DOCS: Documented the above mouse event typestrings.
1693 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1695 Happy Summer Solstice...
1697 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1698 (spi_controller_notify_keylisteners):
1699 Changes to remove a listener from the listener list, freeing its
1700 open keygrabs, if a notification to that listener fails. This
1701 means that although a dead listener can continue to hold a passive
1702 keygrab, a maximum of one dispatch to such a listener can fail
1703 before the listener is removed from the list, thus the keygrab
1704 will be released on the next occurrence.
1705 As part of this fix:
1706 (spi_notify_keylisteners):
1707 Renamed to spi_controller_notify_keylisteners, as the controller
1708 instance must now be passed as an argument.
1709 The copied 'notify' GList is now a list of DEControllerKeyListener
1710 objects, since we need more than just the CORBA reference if a
1711 notify fails and we need to deregister the listener.
1712 (impl_notify_listeners_sync):
1713 (impl_notify_listeners_async):
1714 (spi_device_event_controller_forward_key_event):
1715 Modify use of notify_keylisteners in accordance with above
1717 (spi_deregister_controller_key_listener):
1718 New method introduced by refactoring, from
1719 impl_deregister_keystroke_listener.
1720 (impl_deregister_keystroke_listener):
1721 Call spi_deregister_controller_key_listener.
1722 (spi_key_listener_clone):
1723 New method to copy a key listner without doing a 'ref' on the
1724 remote object instance; used to create a notifier list.
1725 (spi_key_listener_data_free):
1726 New method, frees data without unreffing the source.
1728 (spi_key_listener_clone_free): new method.
1729 (spi_key_listener_free):
1730 refactored to call spi_key_listener_data_free.
1732 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1734 * registryd/registry.c: [fix for bug 86048]
1735 (notify_listeners_cb):
1736 Clear CORBA system exceptions which occur when notifying
1737 listeners, before returning to the source of the original event,
1738 since the event source doesn't care if the relayed notify failed.
1739 In other words, don't complain to the atk-bridge if the registry
1740 could not notify all its listeners, that's no fault of the
1741 application and thus should not appear to be an error from the
1742 application's perspective.
1744 * cspi/spi_main.c: [fix for bug 85980]
1746 Replaced use of bonobo_object_dup_ref with call to the wrapper
1747 method, csou_dup_ref (); this silences a compiler warning and
1748 provided more portability.
1750 Ping the registry before return, and restart if necessary.
1752 * cspi/bonobo/cspi-bonobo.c:
1754 New internal method.
1756 Fixed this method to return an object reference, as it should have
1759 * cspi/cspi-lowlevel.h:
1760 Added internal definition for cspi_ping() and fixed
1761 return type of cspi_dup_ref().
1764 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1766 * atk-bridge/bridge.c: [fix for bug 85305]
1767 (spi_atk_bridge_register_application):
1768 New method where the initial application registry calls have been
1769 moved; it allows an application to re-register in response to
1770 certain error conditions (such as a registry restart, see below).
1772 Moved some initialization code to the method
1773 spi_atk_bridge_get_registry, below.
1774 (spi_atk_bridge_get_registry):
1775 New, private accessor function for the Accessibility_Registry
1776 instance. If the registry has not been started before, or has
1777 died (as detected by failure of a CORBA exception), it is
1778 restarted before return, and spi_atk_bridge_register_application
1779 is called again to register with the new bridge instance.
1780 (spi_atk_emit_eventv):
1781 Set registry_died on error; use spi_atk_bridge_get_registry () to
1782 access the registry.
1784 * registryd/registry.c:
1785 (impl_accessibility_registry_register_global_event_listener):
1786 Set listener's event_type_quark to etype.minor instead of
1787 etype.major (fix for bug 84856).
1789 * test/event-listener-test.c:
1790 (report_detail_event):
1791 Change the output string so that user/tester can tell that the
1792 'detail listener' was called instead of the 'generic listener'.
1794 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1796 Fixes for bugs 84900, 84908, 84897, 84898.
1801 Revved version to 1.1.0
1802 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1803 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1805 * idl/Accessibility_Registry.idl:
1806 (EventListener::notifyEvent):
1807 Removed 'oneway' directive after extensive consulation with
1808 ORBit2 team and others. This means also that unref() of the event
1809 source can and should be done synchronously after emission, rather
1810 than remotely in the client, after servicing the notify call on
1813 NOTE: This change speeds up listener performance considerably, but
1814 introduces new latency on the application side. We may want to
1815 add an event queue to the atk-bridge.
1817 * atk-bridge/bridge.c:
1818 (spi_atk_bridge_focus_tracker):
1819 Do a local unref() on the event source after emission.
1821 * registryd/registry.c:
1822 (desktop_remove_application):
1823 Do an unref() on the event source after emission.
1824 (desktop_add_application):
1825 Do an unref() on the event source after emission.
1826 (notify_listeners_cb):
1827 When relaying an event, don't automatically add the event source
1828 to the local object cache, just CORBA_dup it instead. Likewise,
1829 if this method reenters, release the ref rather than calling
1831 (impl_registry_notify_event):
1832 No longer call remote unref() on the event source after dispatch.
1834 * libspi/eventlistener.c:
1835 (impl_accessible_event_notify_event):
1836 Removed remote unref ()
1838 * cspi/bonobo/cspi-bonobo-listener.c:
1840 We now call cspi_object_new() instead of cspi_object_add() on
1841 receipt of an event; thus we only have an implicit object ref
1842 while the cspi_event method is being executed. If we need to keep
1843 a reference to the object, the listener must call ref() on the
1844 object. Thus also we don't need to call cspi_object_unref() after
1845 invoking the listener callbacks in this method.
1849 New internal API for creating a new cspi object, without adding it
1850 to the object cache.
1852 Now uses cspi_object_new() to create the cspi object instance.
1854 Now checks to see if the object is in the internal object cache,
1855 and adds it if necessary before incrementing its refcount (note
1856 that new objects are added with a refcount of 1).
1857 (report_leaked_ref):
1858 New method which gives some information on leaked object instances
1859 if leak detection is turned on.
1861 * test/event-listener-test.c:
1862 (timing_test_event):
1863 New method, used for testing event delivery timing for special
1864 events of type "object:test". It reports elapsed time and
1865 events/sec every 500 events.
1867 Added a new listener, 'test listener', to check timing of event
1868 receipt as noted above.
1870 Added some timing output here also, reports elapsed time every 100
1873 * test/stress-test.c:
1874 Emit events of type "object:test", for use with "event-listener-test".
1876 * test/test-simple.c:
1877 (global_listener_cb):
1878 Call Accessible_ref() on the event source before calling
1879 validate_accessible, since the validation process does pointer
1880 comparisons on the event source, meaning that the event source
1881 needs to be added to the local object cache first. Any use of
1882 such pointer comparisons between Accessible objects requires that
1883 the caller hold an explicit reference to those objects.
1884 We also must therefore call Accessible_unref() when leaving this method.
1886 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1888 * registryd/deviceeventcontroller.c:
1889 (spi_controller_update_key_grabs):
1890 Fix for #84735, subsequent keygrab listeners not informed of
1891 registration failure.
1894 (spi_base_construct):
1895 Add an assertion on construct, to make sure the GObject passed in
1896 is really a GObject.
1898 Explicitly initialize object->gobj pointer to NULL;
1900 * cspi/bonobo/cspi-bonobo-listener.c:
1901 (cspi_object_add_ref):
1902 New method, can specify whether to dup-ref a bonobo object passed
1903 in if it's newly added to the object cache.
1905 Now calls cspi_object_add_ref with second param of "FALSE". This
1906 prevents us from doing a pointless dup-ref followed by
1907 release-unref for all those cases where the object is already in
1908 our object cache (fix for #85205).
1910 * atk-bridge/bridge.c:
1911 (spi_atk_bridge_idle_init):
1912 Removed this method, we don't need to initialize in an idle
1915 Changed to call spi_atk_register_event_listeners directly, not via an
1916 idle handler. (fix for #81139)
1917 (gnome_accessibility_module_shutdown):
1918 Removed conditional around deregistration of listeners, since we
1919 don't use the idle handler and thus have always registered when
1921 (spi_init_keystroke_from_atk_key_event):
1922 Changed references to Accessibility_KEY_PRESSED to
1923 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1925 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1927 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1932 * test/stress-test.c:
1935 (may have been an incomplete commit yesterday?)
1937 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1940 Added target for new stress-test.
1942 * test/stress-test.c:
1943 New test, sends 1000 focus notifies in quick succession.
1945 * test/key-listener-test.c:
1946 Now we report whether a keylistener registration
1947 request succeeded or failed.
1949 * test/event-listener-test.c:
1950 Uncommented some listeners which are now implemented.
1953 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1955 * registryd/deviceeventcontroller.c:
1956 (spi_controller_update_key_grabs):
1957 Fix for #82509, lack of failure notification when
1958 ALL_WINDOWS keygrabs fail due to XGrabKey
1959 failure: we synchronize the server when
1960 registering a passive grab, to make sure we get the
1961 error message before the call returns.
1963 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1965 * test/test-simple.c:
1967 Removed #ifdef KEY_IMPL_WORKS guards.
1968 (test_keylisteners):
1969 Removed #ifdef KEY_IMPL_WORKS guards.
1970 Fixed bug which was causing a hang waiting for a
1971 "press" event (which was already overwritten by a "release"
1972 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1974 Added code to set globals 'key_press_received' and
1975 'key_release_received'.
1978 Added section "1.1 API Proposed Additions" which
1979 lists API additions desired for at-spi-1.1 (only one so far).
1980 Updated TODO list a little.
1982 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1984 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1987 * configure.in: Revved to 1.0.0.
1989 * idl/Accessibility_Registry.idl:
1990 (registerKeystrokeListener):
1991 Added boolean return value.
1993 * registryd/registry.c:
1994 (notify_listeners_cb): Minor fix to debug output.
1996 * registryd/Accessibility_Registry.server.in.in:
1997 Revved version number in OAFIID to 1.0.
1999 * registryd/registryd.c:
2001 Use new OAFIID version.
2003 * cspi/bonobo/cspi-bonobo.c:
2005 Use new OAFIID version.
2011 * atk-bridge/bridge.c:
2013 Use new OAFIID version.
2015 * registryd/deviceeventcontroller.c:
2016 (impl_register_keystroke_listener):
2017 Added CORBA_boolean return value.
2018 (spi_controller_register_device_listener):
2019 Added gboolean return value.
2020 (spi_controller_register_global_keygrabs):
2021 Added gboolean return value.
2022 (spi_key_set_contains_key):
2023 Added implementation for many more control keys,
2024 for instance F1-F12, arrow keys, End, Home, Page_Up,
2026 [TODO: some still not implemented].
2028 * text/screen-review-test.c:
2029 (text_chunk_pad_string):
2030 New function: it provides mapping between coordinate
2031 positions of text chunks and character positions in the
2032 screen-review-line output string.
2033 (text_chunk_to_string):
2034 New function, calls text_chunk_pad_string with various
2035 pad/delimiter characters. Pushbuttons are delimited with
2036 square brackets, Frames with vertical 'pipe' lines, and
2037 other text with double quotes.
2038 (text_chunk_list_to_string):
2039 Calls new function text_chunk_to_string.
2040 (toplevel_composite):
2041 New function to composite layers CANVAS through
2042 POPUP in each toplevel (other layers are composited
2043 across toplevels, i.e. BACKGROUND and OVERLAY).
2044 (review_buffer_composite):
2045 Revise to use new methods.
2051 2002-05-31 Laszlo Peter <laca@sun.com>
2053 * configure.in: add the Xtst libdir to the runpath on Solaris,
2054 since it's not in the default library search path.
2056 2002-05-29 jacob berkman <jacob@ximian.com>
2058 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2060 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2062 * test/screen-review-test.c:
2063 (text_chunk_pad_string):
2064 Added method, which pads the string according to the
2065 text bounds of the chunk. It also takes a 3-character
2066 string as a param which indicates the characters to be
2067 used for start, padding, and end delimitation of the chunk.
2068 (text_chunk_to_string):
2069 Changed to use text_chunk_pad_string.
2071 * configure.in: Fixed bug in AC_OUTPUT that was
2072 causing path substitution in Accessibility_Registry.server
2075 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2077 * text/screen-review-test.c:
2078 (guess_string_clip):
2079 New method which attempts a best-guess at clipping
2080 text from components (like Java labels) which don't
2081 actually implement AccessibleText. This inaccurate
2082 clip is based on the assumption that the label is
2083 justified left-and-right, and monospaced.
2084 (text_chunk_get_clipped_string):
2085 We now call guess_string_clip() for text-containing
2086 components that don't implement AccessibleText.
2088 * test/screen-review-test.c:
2089 (review_buffer_get_text_chunk):
2090 We now pull "name" from labels if they do not implement
2091 AccessibleText (i.e. for Java labels).
2092 (get_screen_review_line_at):
2093 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2096 Replaceded AC_OUTPUT target
2097 registryd/Accessibility_Registry.server with
2098 registryd/Accessibility_Registry.server.in.
2100 * registryd/Accessibility_Registry.server.in:
2101 Removed (this is now a Makefile target).
2103 * registryd/Accessibility_Registry.server.in.in:
2104 Added (source for target above). We now use $(libexecdir) as
2105 prefix for the executable at-spi-registryd.
2107 * registry/Makefile.am:
2108 Now install at-spi-registryd into $(libexecdir), and build .server
2109 file with path (see above).
2111 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2113 * test/screen-review-test.c:
2114 (text_chunk_get_clipped_string):
2115 We now check to see if words fall within clip bounds
2116 before resorting to character-by-character clip bounds testing.
2118 * TODO: Added a section for "2.2 Proposed API Additions".
2120 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2122 * test/screen-review-test.c:
2124 Added a screen review benchmarking and test program to test
2127 * cspi/spi_accessible.c:
2129 Made some of the debug strings passed to cspi_check_ev a
2130 little more specific.
2132 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2134 * test/screen-review-test.c: Fix crashes in debug statements
2136 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2138 * test/screen-review-test.c: Added this file.
2140 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2142 * atk-bridge/bridge.c: changed "object:state-change" to
2143 "object:state-changed" to match docs.
2145 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2147 * atk-bridge/bridge.c: Hooked up state-change event details.
2149 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2151 * registryd/registry.c:
2152 Fixed quarking bug in event string parsing; now events with
2153 detail parameters get matched correctly to listeners.
2156 * util/idl/Magnifier.idl: remove.
2158 * util/*.[ch]: Remove.
2159 Magnification utilities and IDL are now in module gnome-mag.
2161 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2163 * registryd/deviceeventcontroller.c:
2164 Fixed bug in grab key conversion which was causing keycode grabs
2165 to be converted to AnyKey grabs.
2168 updated NEWS file to reflect recent spin-off of gnome-mag.
2170 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2172 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2173 busted AccessibleStateSet_compare. Removed redundant casts.
2175 * cspi/spi-action.c: Removed redundant casts.
2177 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2179 * cspi/spi_component.c: Fixed typos and casting error.
2181 * cspi/spi_editabletext.c: Removed redundant casts.
2183 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2185 * cspi/spi_hypertext.c: Eliminated redundant casts.
2187 * cspi/spi_image.c: Eliminated redundant casts.
2189 * cspi/spi_registry.c: Eliminated redundant casts.
2190 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2191 * cspi/spi_selection.c: Removed redundant casts.
2192 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2193 handling. Screen geometry and text offsets were being returned as 0
2194 on error which is technically valid-- changed these to return -1.
2195 Added marshaller for text boundary types to fix bug with boundary
2196 types being passed incorrectly to atk.
2198 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2201 * cspi/spi_registry.c:
2202 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2203 which was uncovered by the recent key changes.
2205 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2207 * test/event-listener-test.c:
2209 Added new test, "event-listener-test";
2210 this code does two things; it benchmarks traversal time
2211 for the accessible hierarchy for the first running accessible
2212 app, and it connects listeners for all supported event types.
2213 It is thus useful as an example event listener and for
2214 diagnostics/debugging of event generation.
2216 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2219 Removed unnecessary dependency on libutil.
2222 Revved micro version: 0.13.1
2224 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2227 Removed util/Makefile from targets.
2230 Removed util subdir from SUBDIRS (temporarily,
2231 pending removal of magnifier-only code
2235 #ifdef-ed out magnifier dependencies, since
2236 magnifier IDL, headers, and binary now live in
2237 module gnome-mag and we don't want at-spi to depend
2238 on gnome-mag. A magnifier demo which can run alongside
2239 simple-at is forthcoming in the gnome-mag module.
2241 NOTE: Split magnifier binary, IDL, and magnification
2242 activation code from at-spi into module gnome-mag.
2244 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2246 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2247 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2249 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2252 Revved to version 0.13.0
2254 * idl/Accessibility_Registry.idl:
2255 Changed definition of KeySet from sequence of longs to sequence of
2256 KeyDefinitions, and added KeyDefinition struct.
2257 Required for fix to bug 80616.
2259 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2260 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2261 to use new definition (see above).
2263 * registryd/deviceeventcontroller.c: handle_keygrab(),
2264 spi_keyset_contains_key():
2265 Changed to make use of new struct; this allows matching based on
2266 string key-name, for instance "Tab". This also allows matching of
2267 composed characters, non-alphanumeric characters in a way that
2268 doesn't involve dependencies on X keysym codes directly, etc.
2270 * test/key-listener-test.c:
2271 Added test for Alt-Tab key using "string" specification of keyset,
2272 and modified one of the tests to use a keycode-based keyset.
2273 Thus this test both tests and demonstrates the creation and use of
2274 keysets of three forms: specified via keycode array,
2275 keysym array, and string array. (The string case only contains a
2276 single string, i.e. a string array of length 1).
2279 Turned on PRINT_TREE option by default. Also fixed a
2280 string-freeing bug in the PRINT_TREE code.
2281 Added a listener to window:minimize events.
2283 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2285 * atk-bridge/bridge.c:
2286 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2287 for window:activate and window:deactiveate
2288 (atk_bridge_property_event_listener atk_bridge_signal_listener
2289 atk_bridge_window_event_listener) Tidy debug code
2291 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2293 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2294 Fixed handling for NULL return value from ATK.
2296 * libspi/action.c libspi/component.c libspi/editabletext.
2297 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2298 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2299 Removed redundant casts.
2301 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2302 Fixed off by one bug.
2304 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2305 function not present in idl)
2307 2002-05-02 jacob berkman <jacob@ximian.com>
2309 * atk-bridge/Makefile.am: make atk-bridge a real module
2311 2002-04-26 Radek Doulik <rodo@ximian.com>
2313 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2314 atk_state_types table
2316 2002-04-22 jacob berkman <jacob@ximian.com>
2319 * libspi/Makefile.am: add deps on the built files to help
2320 automake, and don't version the ORBit typelib
2322 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2324 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2325 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2326 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2327 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2328 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2329 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2330 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2331 libspi/accessible.h libspi/accessible.h libspi/base.h
2332 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2333 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2334 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2335 libspi/spi-private.h libspi/statetset.h libspi/table.h
2336 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2337 util/mag_client.h util/mag_control.c util/mag_image.c
2338 util/mag_image.h util/magnifier.c util/magnifier.h:
2339 Add missing file headers; standardize existing ones
2341 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2343 * atk-bridge/bridge.c: Added window event support.
2345 2002-04-18 Michael Meeks <michael@ximian.com>
2347 * libspi/relation.c (impl_getNTargets): impl.
2348 (impl_getTarget): impl.
2350 * libspi/Makefile.am: fix stateset install.
2352 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2355 Started putting useful info in this file.
2357 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2359 * atk-bridge/bridge.c:
2360 Propagate state-changed notifications to ATs
2362 * cspi/spi_registry.c: update docs to reflect actual behavior of
2363 state-change events.
2365 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2368 Incremented version to 0.12.1
2370 * util/mag_client.h:
2371 Add missing declaration for magnifier_exit,
2372 used by mag_control.c - Forte compiler didn't like
2373 the implicit redeclaration of the function :-(
2376 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2379 Revved version to 0.12 due to API change (see below).
2381 * cspi/spi-roletypes.h:
2382 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2383 definition from the inline docs, and added docs
2384 for SPI_ROLE_LAST_DEFINED.
2387 * cspi/spi_streamablecontent.c:
2388 Added missing seek_type parameter to
2389 (so far unused) method,
2390 AccessibleStreamableContent_seek().
2391 [ RT approval JodyG. ]
2394 Fixed docs for SPI_createAccessibleKeystrokeListener.
2396 * cspi/spi_registry.c:
2397 Fixed docs for SPI_KEYSET_ALL_KEYS.
2399 * docs/reference/cspi/at-spi-cspi-sections.txt:
2400 Added a number of missing APIs to SECTIONS.
2402 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2404 * registryd/Makefile.am:
2406 * cspi/bonobo/Makefile.am:
2407 Add $(X_LIBS) to makefiles.
2409 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2412 Revved version to 0.11.
2414 * libspi/component.c:
2415 Added implementation for grabFocus.
2417 * idl/Accessibility_Component.idl
2418 (Accessibility_Component_grabFocus):
2419 Made this method return boolean to indicate success or failure, to
2420 be consistent with cspi and the corresponding ATK method.
2422 * idl/Accessibility_Selection.idl
2423 (Accessibility_Selection_selectAll) :
2424 Made these methods return boolean to indicate success or
2425 failure, to be consistent with cspi and the corresponding ATK methods.
2427 * idl/Accessibility_EditableText.idl
2428 (Accessibility_EditableText_setTextContents,
2429 Accessibility_EditableText_insertText,
2430 Accessibility_EditableText_cutText,
2431 Accessibility_EditableText_deleteText,
2432 Accessibility_EditableText_pasteText):
2433 Made these methods return boolean to indicate
2436 * cspi/spi_editabletext.c:
2437 Made these methods return booleans.
2439 * libspi/selection.c:
2440 * libspi/component.c:
2441 * libspi/editabletext.c:
2442 Connected the boolean returns from ATK
2443 to the server-side code referenced above.
2445 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2447 * idl/Accessibility_Table.idl: Added missing methods,
2448 Accessibility_Table_addRowSelection,
2449 Accessibility_Table_addColumnSelection,
2450 Accessibility_Table_removeRowSelection,
2451 Accessibility_Table_removeColumnSelection.
2454 Added C wrappers for above IDL:
2455 AccessibleTable_addRowSelection,
2456 AccessibleTable_addColumnSelection,
2457 AccessibleTable_removeRowSelection,
2458 AccessibleTable_removeColumnSelection.
2461 Added server-side implementation code for IDL above, connecting
2462 to pre-existing ATK api.
2464 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2466 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2468 * libspi/accessible.c: Added implementation fo
2469 Accessibility_Accessible_get_state.
2471 * libspi/libspi.h: Added stateset.h to the list of includes.
2473 * libspi/stateset.c: Fixed broken implementation.
2475 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2478 Added implementation code for Accessibility_Magnifier_exit ().
2480 * util/mag_control.c:
2481 Added test code for above method; you can
2482 now kill an existing magnifier via
2483 ./mag_control q, from the util directory.
2485 * test/key-listener-test.c:
2487 Added a new test, for our key listener API.
2489 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2491 * test/app.c, test/keysynth-demo.c:
2493 Replace use of snprintf with g_snprintf.
2494 (fix for bugzilla 78249)
2496 2002-03-27 Michael Meeks <michael@ximian.com>
2500 * util/Makefile.am (INCLUDES): fix.
2501 (DONT_DIST_SOURCE): don't distribute the
2504 * libspi/Makefile.am (dist-hook): ditto.
2506 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2508 * libspi/hypertext.c:
2509 Fix warnings when yelp is used with atk-bridge
2511 2002-03-21 Michael Meeks <michael@ximian.com>
2513 * libspi/application.c (spi_application_new):
2514 use spi_accessible_construct so we use the AtkObject
2517 2002-03-19 Michael Meeks <michael@ximian.com>
2519 * registryd/registry.c (desktop_remove_application),
2520 (desktop_add_application): clean coding style.
2522 * registryd/desktop.c (spi_desktop_remove_application),
2523 (spi_desktop_add_application): kill re-enterency hazards.
2524 (spi_desktop_dispose): remove bogus redundant cast
2525 obscuring bug; fix bug too.
2526 (spi_desktop_init): make the desktop object immortal.
2528 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2531 Added a #define-guarded tree-traversal step
2532 when enumerating the apps (diagnostic tool).
2534 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2536 * idl/Accessibility_Role.idl:
2537 Added ROLE_DRAWING_AREA which seemed to be missing from the
2540 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2542 * cspi/spi-roletypes.h cspi/spi_accessible.c
2543 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2546 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2547 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2548 AT when applications are added and removed from the desktop. This
2549 reverts the previous broken implementation using the backing
2550 AtkObject for the SpiDesktop.
2552 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2554 * registryd/desktop.c: emit the "children-changed::add" and
2555 "children-changed::remove" signals on the backing ATK object for
2556 the desktop so AT can tell when applications are started and shut
2559 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2561 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2563 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2565 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2567 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2569 * cspi/state-types.h: synched with IDL and ATK
2571 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2573 * libspi/accessible.c
2574 (impl_accessibility_accessible_get_child_at_index):
2575 Change return value for g_return_if_fail ()
2576 to CORBA_OBJECT_NIL instead of "0" (!)
2578 * registryd/Makefile.am:
2579 * registryd/Accessibility_Register.server.in:
2580 Changed name of executable, "registryd",
2581 to something more informative:
2584 2002-03-13 Michael Meeks <michael@ximian.com>
2586 * atk-bridge/bridge.c (atk_bridge_init): don't register
2587 if we're in a bonobo-component, rather than a bonobo app.
2589 2002-03-13 Michael Meeks <michael@ximian.com>
2591 * atk-bridge/bridge.c (gtk_module_init): split
2592 out body to (atk_bridge_init): here, since otherwise
2593 we get symbol conflicts and oddness when invoked
2594 from (gnome_accessibility_module_init): here (upd.)
2596 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2599 New file. Explicitly allow "build sheriff" putbacks provided
2600 they are tested on Solaris.
2602 * docs/reference/cspi/Makefile.am:
2603 Added '-' to the "cp" command for index.sgml.
2604 ("patch by thomasvs, soon coming to a GUADEC near you")
2607 Incremented version number (0.9.0) for new release.
2608 Changed macro that checks for popt, to better detect
2609 obsolete versions of popt.
2612 Added X_LIBS to AC_SUBST, for applications
2613 that call Xlib API directly.
2616 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2619 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2622 Fix regression caused by hard-coding major
2623 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2626 * test/test-simple.c (test_editable_text),
2627 (test_test): revert previous change (error was
2628 a regression in gail which is now fixed).
2630 2002-03-04 Michael Meeks <michael@ximian.com>
2632 * test/test-simple.c (test_editable_text),
2633 (test_text): pass G_MAXINT instead of '-1' for
2634 whole string - is this a good thing !?
2636 * cspi/spi_accessible.c
2637 (Accessible_getRelationSet): fix crasher bug
2638 overwriting the end of the array.
2640 * test/test-simple.c (validate_accessible): free,
2641 not g_free returned relation set.
2643 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2645 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2646 implemented stateset support
2648 * idl/Accessibility_State.idl: Made necessary changes to
2649 the IDL to support state sets.
2651 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2653 * registryd/deviceeventcontroller.c:
2654 Added implementation for generateMouseEvent.
2656 * cspi/spi_registry.c:
2657 Connected new implementation for generateMouseEvent
2660 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2663 Incremented revision (but no change in public API
2664 outside of 'utils', which are not installed public yet.)
2666 * libspi/component.c:
2667 Changed to use atk_component API for layers and
2668 mdi_zorder, instead of deprecated atk_object API.
2670 Magnification Utility Enhancements:
2673 Added implementation of createZoomRegion, clearAllZoomRegions,
2674 resizeZoomRegion. Added new commandline argument
2675 "--no-initial-region". Note that clearAllZoomRegions doesn't
2676 unmap the old '0' region as it should (yet), and the other
2677 methods only work when creating/resizing a single region,
2678 which is "region 0".
2679 (Code for multiple region support will be added later.)
2682 Now we raise the magnifier window each time it's refreshed;
2683 this will help keep it on top.
2685 * util/mag_client.h:
2686 Added simple wrappers for above, used by mag_control.
2687 For general use, it's recommended to use the bonobo magnifier
2688 control API directly instead of using these wrappers.
2691 Moved ZoomRegionData from magnifier.c to this file.
2693 * util/mag_control.c:
2694 Added some code to exercise new IDL implementations.
2696 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2698 * libspi/text.c: Provide implementation for getAttributes.
2700 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2703 Incremented revision.
2705 * test/test-simple.c:
2706 Replaced use of deprecated g_main_iteration with
2707 g_main_context_iteration.
2709 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2712 Incremented revision for desktop alpha 2.
2714 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2716 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2719 * test/simple-at.c: include netinet/in.h.
2721 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2723 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2724 use NULL, not CORBA_OBJECT_NIL.
2726 * libspi/accessible.c:
2727 (impl_accessibility_accessible_get_relation_set):
2728 allocate the sequence correctly.
2730 * libspi/remoteobject.h: kill spi_remote_object_new.
2732 * test/test-simple.c: (validate_accessible): add code
2733 to test relation sets, now all we need is to figure
2734 out how to excercise this code path :/
2736 2002-01-18 Michael Meeks <michael@ximian.com>
2738 * test/test-simple.c
2739 (key_listener_cb): consume the key.
2740 (test_keylisteners): update.
2741 (main): wait for any pending unrefs on events.
2743 * registryd/deviceeventcontroller.c
2744 (spi_controller_update_key_grabs): only re-issue the
2745 grab on a key release.
2746 (spi_device_event_controller_forward_key_event):
2747 refresh the keygrabs before we notify the listeners,
2748 to reduce the X ungrab / re-grab race.
2749 (spi_controller_register_with_devices): remove
2750 XSelectInput - we do that with the gdk_window_ call.
2751 (_spi_controller_device_error_handler): return a value.
2752 s/GDK_DISPLAY/spi_get_display/
2754 2002-01-17 Michael Meeks <michael@ximian.com>
2756 * registryd/deviceeventcontroller.c
2757 (_deregister_keygrab): don't blow out the later
2760 * test/test-simple.c (test_keylisteners): do a
2761 more intelligent validation.
2763 2002-01-14 Michael Meeks <michael@ximian.com>
2765 * atk-bridge/bridge.c
2766 (gnome_accessibility_module_init),
2767 (gnome_accessibility_module_shutdown): impl.
2768 (gtk_module_init): protect vs. double inits.
2769 (add_signal_listener): impl.
2770 (spi_atk_bridge_state_event_listener): kill
2771 (deregister_application): split out of
2772 (spi_atk_bridge_exit_func): here.
2774 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2777 Added caret tracking when using magnifier, and
2778 now use text bounds for focus tracking of text elements, rather than
2779 the component bounds - this is helpful for short text fields in long
2780 table cells, at high magnification.
2782 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2784 * registryd/deviceeventcontroller.c:
2785 Regression fix for keylistener de-registration; global keygrabs
2786 were not being released when deregisterKeystrokeListener was
2787 called in cspi, since
2788 Accessibility_DeviceEventController_deregisterKeystrokeListener
2789 was called with a zero-length keyset. That is because the cspi
2790 method, SPI_deregisterKeystrokeListener, does not take a keyset
2791 parameter but instead should remove all the key grabs held be a
2793 The code in impl_deregister_keystroke_listener was changed to copy
2794 the keylist from the listener instance previously registered with
2795 the DeviceEventController before releasing the grabs.
2797 * registryd/registry.c:
2798 * registryd/deviceeventcontroller.c:
2799 * libspi/spi-private.h:
2801 Changed spelling of "re-enterant" to "re-entrant" globally.
2803 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2805 * test/test-simple.c:
2806 Changed key listeners test - the test was slightly mis-using the
2807 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2808 It now uses '=' as the key event listened to and generated,
2809 relying on a keysym match rather than assuming that keycode 33
2810 is always equal to keysym '!'.
2812 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2815 Changed simple-at to use a specific keyset, rather than
2816 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2817 manager, desktop, etc.
2819 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2821 * registryd/deviceeventcontroller.c:
2822 Replaced standard X error handler with a special handler that
2823 is non-fatal for failed keygrabs. This works around
2824 problems with keygrab clashes sometimes observed on
2826 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2827 mouse handling code as yet).
2829 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2832 Incremented revision for desktop alpha release.
2835 Fixed a couple of the more glaring errors (still not
2838 2002-01-11 Michael Meeks <michael@ximian.com>
2840 * registryd/deviceeventcontroller.c
2841 (spi_device_event_controller_forward_key_event): kill
2842 XUngrabKey / XKeyGrab race.
2843 (spi_controller_grab_keyboard): rename to
2844 (spi_controller_update_key_grabs): this, and deal
2845 with incremental adding / removing grabs more
2847 (_register_keygrab): ensure we're not pending a remove.
2848 (spi_grab_mask_free): impl.
2849 (spi_controller_register_global_keygrabs): split out
2851 (handle_keygrab): impl.
2852 (_deregister_keygrab): impl.
2853 (spi_controller_deregister_global_keygrabs): impl.
2854 (spi_controller_update_key_grabs): re-issue the grab if
2855 we just recieved a notification.
2857 * test/test-simple.c (key_listener_cb): remove debug.
2859 * registryd/deviceeventcontroller.c
2860 (spi_controller_register_device_listener): after
2861 registering a global keygrab, actualy register it !
2862 don't wait for a timeout; doh !
2864 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2865 to make it more readable / manipulable.
2866 s/grabmask/grab_mask/ s/refcount/ref_count/
2867 s/keyval/key_val/ s/modmask/mod_mask
2869 2002-01-08 Michael Meeks <michael@ximian.com>
2871 * registryd/deviceeventcontroller.c
2872 (spi_controller_register_with_devices): use gdk calls to
2874 (global_filter_fn): implement the filter.
2875 (spi_device_event_controller_check_key_event): rename to
2876 (spi_device_event_controller_forward_key_event): this & upd.
2877 (spi_get_display): replace with GDK_DISPLAY.
2879 * registryd/deviceeventcontroller.c
2880 (spi_controller_deregister_device_listener): unroll into
2881 (impl_deregister_keystroke_listener): here to simplify.
2882 (spi_controller_register_global_keygrabs): split cut and
2883 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2884 (spi_controller_deregister_device_listener): remove.
2885 (impl_register_mouse_listener): remove, no mouse listener
2886 support in at-spi-1.0
2888 * registryd/registry.c
2889 (_device_event_controller_hook): kill.
2890 (spi_registry_init): upd.
2892 * registryd/deviceeventcontroller.c
2893 (spi_device_event_controller_class_init): upd.
2894 (spi_check_key_event): merge into.
2895 (spi_device_event_controller_check_key_event):
2896 here and kill strange static ev init, don't leak
2897 the x_event - nor dynamicaly allocate it.
2899 * registryd/registry-main.c (main): re-direct
2900 timeout to remove strange vtable mess.
2902 * registryd/deviceeventcontroller.c
2903 (remove_listener_cb): impl.
2904 (spi_controller_deregister_device_listener):
2905 fix re-enterancy hazard.
2907 2002-01-07 Michael Meeks <michael@ximian.com>
2909 * registryd/deviceeventcontroller.c
2910 (spi_device_event_controller_new): upd.
2911 (impl_notify_listeners_sync): upd. debug.
2912 (spi_notify_keylisteners): fix re-enterancy hazards,
2913 prettify, remove O(n*n) iteration.
2914 (spi_controller_grab_keyboard): fix iteration.
2915 (spi_check_key_event): re-format to suit coding style.
2916 Clean all the warnings - we're warning free.
2918 * registryd/deviceeventcontroller.h:
2919 * registryd/registry.h: make mutualy referential with
2920 typesafe forward references instead of (!) void pointer
2923 2002-01-11 Michael Meeks <michael@ximian.com>
2925 * cspi/spi_accessible.c (role_names): add a role name
2926 to sync this array with the enum; and make the regression
2929 2002-01-10 Michael Meeks <michael@ximian.com>
2931 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2932 allow expansion of enumeration & kill warning.
2934 * test/test-simple.c (key_listener_cb): impl.
2935 (test_keylisteners): impl.
2937 * cspi/spi-listener.h: make listener signatures const
2938 on the provided (const) events.
2940 * test/keysynth-demo.c: upd. to const events.
2942 * test/simple-at.c: ditto.
2944 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2947 Rev the version to 0.5 (the previous tarball was named 0.4,
2948 even though the micro number was 3), so we need to rev upwards
2949 again for beta2/"desktop-alpha"
2952 Checked in a demo script, which requires editing before use!
2953 Proceed with caution.
2956 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2958 * cspi/spi_accessible.c:
2959 Add a couple of missing enum initializations, and fix some enum
2962 * cspi/spi_registry.c:
2963 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2965 * docs/reference/cspi/at-spi-cspi-sections.txt:
2966 Remove/fix a couple of broken document references.
2969 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2970 as Alt-Control to listen for commands, since on some systems
2971 Control-Alt may already be grabbed.
2973 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2976 Update version number to 0.4 for Beta2.
2978 * libspi/accessible.c, libspi/accessible.h:
2979 Expose spi_accessible_construct, to enable libgail-gnome
2980 construction from spi_accessible subtype.
2982 * utils/magnifier.c:
2983 Workaround for bug in some non-gnome-compliant window managers
2984 which made magnifier resize improperly.
2986 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2988 * libspi/accessible.c: (spi_accessible_new) :
2989 Move the test for SPI_IS_REMOTE_OBJECT to
2990 spi_accessible_new_return, fixing a bug and compile time warning.
2992 2002-01-08 Michael Meeks <michael@ximian.com>
2994 * registryd/registry.c (parse_event_type): remove strndup.
2996 * libspi/Makefile.am (libspi_la_SOURCES): remove
2997 sources already included in the headers section.
2999 * libspi/util.c: add.
3001 * libspi/spi-private.h: add.
3003 * registryd/registry.c: update to moved list iterators.
3005 2002-01-05 Michael Meeks <michael@ximian.com>
3007 * test/simple-at.c (main): upd. auto-module set to atk-bridge
3009 * test/test-simple.c (main): ditto.
3011 2002-01-04 Michael Meeks <michael@ximian.com>
3013 * libspi/accessible.c (spi_accessible_new): remove 2nd,
3014 redundant construct.
3016 * registryd/registry.c
3017 (get_listener_list): impl.
3018 (impl_accessibility_registry_register_global_event_listener):
3019 re-impl. to simplify using ~, remove dodgy const cast off.
3020 (parse_event_type): constify.
3021 (impl_accessibility_registry_deregister_global_event_listener_all):
3022 re-write, more efficiency and simplicity, kill re-enterancy
3024 (compare_listener_corbaref, compare_corba_objects),
3025 (compare_listener_quarks): define out.
3026 (impl_accessibility_registry_deregister_global_event_listener):
3027 re-write for effiency, and nail re-enterancy hazard.
3028 (impl_accessibility_registry_get_desktop_list): impl.
3029 (re_enterant_list_delete_link): impl.
3030 (re_enterant_list_foreach): impl.
3031 (remove_listener_cb): impl.
3032 (_registry_notify_listeners): kill.
3033 (notify_listeners_cb): impl.
3035 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
3036 (SPI_getDesktopList): impl.
3038 * test/test-simple.c (test_desktop): test the methods.
3040 2002-01-03 Michael Meeks <michael@ximian.com>
3042 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
3043 keystrings since we free them
3044 (SPI_freeAccessibleKeySet): in here.
3046 * libspi/accessible.c (spi_accessible_new): kill warning,
3047 wonder what is going on with the constructor here.
3049 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3051 * libspi/accessible.c (spi_accessible_new ()) :
3052 Added check to see if AtkObject is an SpiRemoteObject before
3053 creating an SpiAccessible.
3055 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3057 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3058 Enable keygrabs using the Control modifier, now that they are
3059 working properly (they were previously disabled).
3062 Change the command keygrab for this demo to "Control+Alt", so as
3063 to conflict with fewer other key commands on the system; this
3064 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3066 Removed a pointlessly-chatty keylistener for unshifted keys
3067 (shifted keys are still reported).
3069 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3071 * libspi/remoteobject.h:
3072 * libspi/remoteobject.c:
3073 Added definitions for special AtkObject subtype, required for
3074 support of remote components (specifically, used by BonoboControl
3075 accessibility implementation).
3077 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3079 * cspi/spi.h: synched relation types with ATK
3081 * cspi/spi_accessible.c: Added implementations of
3082 AcccessibleRelation_* methods
3084 * idl/Accessibility_Relation.idl: added getRelationTypeName
3085 method. Synched known relation types with ATK. Allowed for
3086 relation type extension with the RELATION_EXTENDED type.
3088 * libspi/relation.c: Provided implementations for
3089 AccessibleRelation methods.
3091 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3093 API tweaks for today's API 'freeze'.
3096 Added placeholder functions to allow future compatible expansion
3097 of the IDL interfaces.
3099 * idl/Accessibility_Registry.idl:
3100 Changed generateKeyEvent to generateKeyboardEvent. Changed
3101 signature of this method to accept an optional keystring in
3102 parameter (for complex text input synthesis) and changed use of
3103 simple 'boolean' parameter in registerKeystrokeListener to a
3104 struct, EventListenerMode.
3106 * cspi/spi_accessible.c:
3108 * cspi/spi_streamablecontent.c:
3109 Added references to AccessibleStreamableContent interface, and
3110 definition and implementation of AccessibleStreamableContent
3113 * cspi/spi_registry.c:
3115 Changed generateKeyEvent API to generateKeyboardEvent,
3116 taking a new (optional) keystring parameter to support complex
3121 Renamed directory (to better reflect its actual purpose, bridging
3122 from at-spi to ATK). The .so module is also now named
3125 * idl/Accessibility_Hypertext.idl:
3126 * libspi/accessible.c:
3127 * libspi/hypertext.h:
3128 * libspi/hypertext.c:
3129 Changed Accessibility_Hypertext to *not* derive from
3132 * cspi/spi_registry.c:
3133 Added list of legal event type names for 'window' events, which
3134 completes the registry event API.
3136 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3138 * at-bridge/bridge.c: Added registration for separate
3139 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3140 signals. If either of the first two parameters to the generic
3141 bridge signal handler are ints, they are passed on as event
3142 details. This allows an AT to determine what text was inserted.
3144 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3146 * registryd/deviceeventcontroller.c:
3147 Fixed regressions in generateKeyEvent caused by the removal of
3148 gdk_init from registryd; we now use pure X calls to connect to the
3149 display, which makes sense because deviceeventcontroller already
3150 uses a fair bit of X API (should eventually be migrated to a
3151 'portability layer').
3153 * registryd/desktop.c:
3154 Fixed minor regression in spi_desktop_init, changed the way the
3155 desktop name is being set to work with new spi_base API
3156 (gobject-based, rather than AtkObject-based).
3158 * registryd/Makefile.am:
3159 Minor revision of makefile to use XTST_LIBS variable rather than
3160 hard-wiring the Xtst LD_ADD element.
3162 * test/keysynth-demo.c:
3163 Tweaked an output message; added initialization of the
3164 'keystrings' member of the "switch listener" key_set.
3166 * libspi/relation.c:
3167 Squashed compile-time warning.
3169 * libspi/accessible.c:
3170 Cosmetic and formatting fixes, renamed a static method.
3172 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3174 * libspi/accessible.c
3176 * libspi/application.c
3179 * libspi/component.c
3180 * libspi/editabletext.c
3181 * libspi/hyperlink.c
3182 * libspi/hypertext.c
3184 * libspi/selection.c
3188 * registryd/desktop.c:
3189 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3191 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3193 * idl/Accessibility_Registry.idl:
3194 Added boolean member 'is_text' to DeviceEvent. This is for the
3195 use of key events, and helps prevent ambiguity between composed
3196 key strings and keysym names, since both may potentially be
3197 returned in the 'event_string' member.
3199 * at-bridge/bridge.c:
3200 * registryd/deviceeventcontroller.c:
3201 Use the 'is_text' member when notifying device event listeners.
3202 Knon issue: composed characters are not dealt with correctly by
3203 the global key listener implementation yet.
3205 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3207 * at-bridge/bridge.c:
3208 Namespaced local static methods to spi_atk_bridge_* where
3209 previously named bridge_*, and spi_* elsewhere.
3211 * at-bridge/bridge.c:
3212 * cspi/bonobo/cspi-bonobo-listener.c:
3213 Added demarshalling/conversion for string member of
3214 Accessibility_DeviceEvent to AccessibleKeystroke.
3216 * registryd/deviceeventcontroller.c:
3217 Added code to fill the Accessibility_DeviceEvent key string value
3218 member for global key events (i.e. from XGrabKey), to match
3219 behavior of Accessibility_DeviceEvent from the toolkit key events
3220 from the bridge. Fixed timestamp in global key event notifications.
3223 Added printout of key event's string value to
3224 report_ordinary_key_event, for demo/debugging purposes.
3226 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3228 * idl/Accessibility_Registry.idl:
3229 Removed Accessibility_KeyStroke structure in favor of generic
3230 Accessibility_DeviceEvent structure.
3231 Changed Accessibility_ControllerEventMask from a struct to an
3234 * at-bridge/bridge.c:
3235 Changed APIs to use DeviceEvent structure as above, and removed
3236 bogus casting between these event structures.
3238 * cspi/spi-listener.h:
3239 Added keystring member of AccessibleKeystroke structure, to enable
3240 matching on event "names" rather than only hardware codes and
3244 Added keystrings member of AccessibleKeySet struct, to allow
3245 matching on event names (as above).
3246 Added declarations for SPI_createAccessibleKeySet and
3247 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3248 event modmasks directly as unsigned ints rather than structs with
3249 refcounts, in the DeviceEventController methods.
3251 * cspi/spi_registry.c:
3252 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3254 * cspi/spi-roletypes.h:
3255 Added documentation of newly added SPI Roles.
3257 * cspi/bonobo/cspi-bonobo-listener.c:
3258 Changes in support of API changes above.
3260 * libspi/accessible.c:
3261 Converted APIs to use DeviceEvent structure (see IDL changes
3264 * registryd/deviceeventcontroller.c:
3265 Added DEControllerGrabMask structure to track keygrabs not only by
3266 modmask but by keyset as well; this allows us to do "global"
3267 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3268 grabbing on AnyKey and then filtering after-the-fact.
3269 Bugfixes for event filtration mean that we don't get false matches
3270 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3272 * registryd/deviceeventcontroller.c:
3273 Namespaced a number of static methods to use spi_ prefix. Major
3274 revision to internals of global (i.e. X) key grabs.
3276 * registryd/deviceeventcontroller.h:
3277 Removed keymask_list and added keygrabs_list to
3278 SpiDeviceEventController struct.
3281 Added use of SPI_createAccessibleKeySet API when creating a
3282 listener for only one key. Attach a listener to "shift spacebar
3283 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3284 X key event names to SPI key event names, so that listeners are
3285 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3287 * test/keysynth-demo.c:
3288 Changed (incorrect) use of X key event names (KeyPressed,
3289 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3292 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3294 * libspi/accessible.c:
3295 Convert all AtkRole enumerations to Accessibility_Role enums when
3296 getting a role from an AtkObject.
3298 * cspi/spi_accessible.c:
3299 Complete the conversion of Accessibility_Role enums at runtime to
3300 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3301 role enums correctly match those given in spi-roletypes.h.
3302 Re-synchronize the local names list for AccessibleRole_getName ().
3303 AccessibleRole_getName is now deprecated, since it duplicates the
3304 more reliable Accessible_getRoleName.
3305 Added some role types from Accessibility_Role.idl.
3307 * idl/Accessibility_Role.idl:
3308 Added some role types used by AtkRole.
3310 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3313 * cspi/spi_registry.c:
3315 * cspi/cspi-bonobo-listener.c:
3316 Namespaced all methods that did not begin with an "SPI_" or
3317 "Accessible" prefix to "SPI_".
3320 Homogenized internal function namespace to "cspi_" for statics.
3323 Patched tests to use the new CSPI API.
3325 * docs/reference/cspi/at-spi-cspi-sections.txt:
3326 Updated docs to reflect namespace changes, and added a number of
3327 methods to the documentation.
3329 * registryd/registry.c:
3330 Changed use of strings and string hashes in listener event
3331 matching and parse_event_string to use GQuark, which is guaranteed
3334 * registryd/registry.h:
3335 Squashed annoying warning.
3337 * idl/Accessibility_Role.idl:
3338 Extended range of available Accessibility_Role values.
3340 * cspi/spi_accessible.c:
3341 Re-ordered role names.
3343 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3345 * idl/Accessibility_Value.idl:
3346 Revert use of union back to CORBA_double, since the double type is
3347 more efficient and can contain the other types without loss of
3350 * idl/Accessibility_Accessible.idl:
3351 Added method Accessibility:Accessible:getRoleName, to complement
3352 Accessibility:Accessible:getRole.
3354 * cspi/spi_accessible.c:
3356 Added C binding for above, Accessible_getRoleName (), and changed
3357 signature of Accessible_getRole () to return an AccessibleRole.
3359 * cspi/spi-roletypes.h:
3360 Changed AccessibleRole_getName to return a char * instead of a
3361 const char *. This method is now at least temporarily deprecated
3362 in favor of asking Accessibles for their RoleNames directly.
3365 Revert to match Accessibility_Value.idl;
3369 Change signature of AccessibleValue methods to use double rather
3373 * cspi/spi_accessible.c:
3374 Changed Accessible_getRole to return an AccessibleRole enum rather
3375 than a UTF-8 string. The UTF-8 string can still be obtained via
3376 AccessibleRole_getName ().
3378 * test/test-simple.c:
3379 Add test_action. Small fixup to match API change to Accessible_getRole.
3382 Bugfix for get_action_from_servant ().
3384 2001-12-11 Michael Meeks <michael@ximian.com>
3386 * libspi/libspi.h: remove registry.h and
3387 desktop.h, deviceeventcontroller.h
3389 * libspi/Makefile.am: remove registry.[ch],
3390 desktop.[ch], deviceeventcontroller.[ch]
3392 * registryd/Makefile.am: add registry.[ch],
3393 desktop.[ch], rename registryd.c to registry-main.c.
3394 add deviceeventcontroller.[ch]
3396 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3399 Replace setenv() call with putenv ().
3401 * libspi/component.c:
3402 Bugfix in AccessibleComponent_getExtents (),
3405 2001-12-11 Michael Meeks <michael@ximian.com>
3407 * libspi/image.c (impl_getImageExtents): impl.
3408 (spi_image_class_init): upd.
3411 (AccessibleImage_getImageDescription): fix daft bug
3414 * test/test-simple.c (global_listener_cb): update
3415 to only quit if not --poke
3416 (main): catch --poke.
3417 (validate_accessible): upd. dumping, call test_image
3420 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3423 * idl/Accessibility.idl: update all IDL includes.
3425 * idl/*.idl - rename to namespace - this sucks, blame
3426 mjs' bad decision for oafd.
3428 * test/test-simple.c (create_test_window): add more tests.
3429 (create_tree): split this out.
3430 (validate_accessible): bugfix.
3432 2001-12-11 Michael Meeks <michael@ximian.com>
3434 * cspi/bonobo/cspi-bonobo-listener.c:
3435 (cspi_kestroke_listener_unref),
3436 (cspi_event_listener_unref): impl. undoing previous
3437 homenous environment - for Bill.
3439 * cspi/spi_table.c (long_seq_to_array): use
3442 * cspi/spi_main.c: split out all bonoboish bits into
3445 * cspi/spi-impl.h: upd. typedefs.
3447 * cspi/spi_registry.c: update to lowlevel API,
3448 return booleans to indicate success in some places.
3450 * cspi/spi_event.c: update to lowlevel API.
3452 * cspi/bonobo/Makefile.am: add.
3454 * cspi/bonobo/cspi-lowlevel.h: add
3456 * cspi/bonobo/cspi-bonobo.c: add
3458 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3460 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3461 (SUBDIRS): add bonobo, link in the libs.
3463 * cspi/spi-util.c: kill this file.
3465 * TODO: merge in my bits.
3467 2001-12-11 Michael Meeks <michael@ximian.com>
3469 * test/test-simple.c (test_value, test_table, main):
3470 remove unused variables causing warnings.
3472 * configure.in: cleanup checks - require gail.
3474 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3477 Changed Value interface to use SValue (scalars) rather than
3478 assuming all values are floats. This allows floats, doubles,
3479 longs, shorts, and unsigned values to be manipulated.
3480 Introduced Accessibility:SValue union.
3483 Updated to use new API above, and to work correctly with GValues
3484 of different types in AtkValue.
3487 Updated to use new API above. cspi's API is as yet unchanged.
3490 Updated the Value revision action item.
3492 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3494 * test/test-simple.c:
3495 Added test_table (GtkTreeView widget in test window to follow).
3496 Un-commented test_value, added GtkRange widget.
3497 Added GtkTreeView widget with GtkListStore. It passes regression
3498 test but leaks one SPI object for some reason.
3501 Fixed bug in impl__set_currentValue.
3503 2001-12-10 Michael Meeks <michael@ximian.com>
3505 * cspi/spi_text.c: audit for exception handling,
3506 tolerating NULL object references safely etc.
3508 * cspi/spi_value.c: ditto.
3510 * cspi/spi_table.c (AccessibleTable_getSummary),
3511 (AccessibleTable_getAccessibleAt),
3512 (AccessibleTable_getRowHeader),
3513 (AccessibleTable_getColumnHeader),
3514 (AccessibleTable_getCaption): fix bugs hidden by
3516 (long_seq_to_array): impl.
3517 (AccessibleTable_getSelectedRows),
3518 (AccessibleTable_getSelectedColumns): use it.
3520 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3523 Added a TODO list (rough and short for now).
3525 * cspi/spi_hyperlink.c:
3526 * cspi/spi_hypertext.c:
3527 Fixed macro name typos, and remove use of obsolete macro in
3528 AccessibleHyperlink_getLink.
3530 * cspi/spi_action.c:
3531 * cspi/spi_accessible.c:
3532 * cspi/spi_application.c:
3533 * cspi/spi_component.c:
3534 * cspi/spi_selection.c:
3537 Documentation fixes (removed return values from ref/unref methods).
3539 2001-12-10 Michael Meeks <michael@ximian.com>
3541 * cspi/spi_action.c: audit for exception handling,
3542 tolerating NULL object references safely etc.
3544 * cspi/spi_accessible.c: ditto.
3546 * cspi/spi_component.c: ditto.
3548 * cspi/spi_editabletext.c: ditto.
3550 * cspi/spi_hyperlink.c: ditto.
3552 * cspi/spi_hypertext.c: ditto.
3554 * cspi/spi_image.c: ditto.
3556 * cspi/spi_selection.c: ditto.
3558 2001-12-10 Michael Meeks <michael@ximian.com>
3560 * configure.in: use cspi/libspi.pc.in instead.
3562 * Makefile.am (pkgconfig_DATA): upd. to match.
3564 * test/simple-at.c (report_focus_event): kill hacks around
3565 bad return values, use putenv not setenv
3567 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3568 fire ChildGone - I killed it.
3570 * libspi/component.c
3571 (impl_accessibility_component_get_extents): remove
3574 * idl/Accessible.idl: kill ChildGone exception.
3576 * cspi/*.[ch]: kill int return from ref / unref.
3578 * cspi/spi_main.c (cspi_object_add_check): fold into
3579 (cspi_object_add): here.
3581 * cspi/spi_component.c (AccessibleComponent_getExtents):
3582 handle exceptions elegantly.
3584 * cspi/spi-private.h (cspi_check_ev_return),
3585 (cspi_return_if_fail): impl.
3587 * cspi/spi_accessible.c: use extensively.
3588 (AccessibleStateSet_equals): add direct compare check.
3590 * cspi/spi_selection.c: tolerate NULL objs, and check
3591 exceptions before return.
3593 * cspi/spi-util.c (cspi_warn_ev): rename to
3594 (cspi_check_ev): this & don't pass ev in; no point.
3596 2001-12-10 Michael Meeks <michael@ximian.com>
3598 * test/test-simple.c: use putenv not setenv
3599 (get_environment_vars): more chatty if you're not using
3602 * test/simple-at.c: do the setenv so more people see the
3605 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3607 * libspi/registry.c:
3608 Changed check of CORBA_environment on notification to be a warning
3609 instead of an error for the moment, since we can recover from this
3610 error when caused by a queued notification from a dead app.
3613 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3614 used by all current implementors of AtkValue), and coerce to
3615 CORBA_float. (Proper general case fix may require change to Value.idl).
3617 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3621 * cspi/spi_accessible.c:
3622 Documentation fixes: added user_data params to documentation for
3623 listeners and callbacks.
3625 * cspi/spi_accessible.c:
3626 Changed AccessibleStateSet_compare to return a
3627 StateSet rather than return the difference set into a third parameter.
3630 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3633 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3634 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3638 Remove subdirectory po from SUBDIRS for now.
3640 * at-bridge/bridge.c:
3641 Beefed up a couple of debug printouts.
3642 One-line fix for signal notification name formatting.
3644 * libspi/accessible.c:
3645 Added assertion to spi_accessible_new ().
3647 * libspi/application.c:
3648 Put #ifdef qualifiers around a printf.
3651 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3653 * registryd/Makefile.am:
3655 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3656 INTLTOOL_SERVER_RULE macro.
3659 Added an event listener for several ATK signals, for
3660 testing and debugging. Removed a few g_warnings.
3661 Added test output if focussed item implements the Value interface.
3663 * test/test-simple.c:
3664 Added test_value () function (known not to pass at the moment, so
3665 not actually called yet.
3667 2001-12-08 Michael Meeks <michael@ximian.com>
3669 * at-bridge/bridge.c (bridge_focus_tracker),
3670 (emit_eventv): fix the same ref. leak.
3671 (register_atk_event_listeners): don't leak.
3673 * cspi/spi-listener-impl.c (cspi_event): more
3674 protection from client code.
3676 * test/test-simple.c (test_desktop): unref the app.
3678 * test/Makefile.am: upd. TESTS.
3680 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3682 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3684 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3686 * cspi/spi_registry.c: constify in strings.
3687 (deregisterGlobalEventListenerAll): don't release the ref.
3689 * cspi/spi.h: start removing redundant / conflicting
3690 gtkdoc comments, making the API readable at a glance :-)
3692 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3694 * test/keysynth-demo.c (keysynth_exit, main): upd.
3696 * test/simple-at.c (main, simple_at_exit): upd.
3698 * test/test-simple.c (unutterable_horror): kill.
3699 (utterable_normal_derefs): kill.
3700 (main): upd & do a setenv before gtk_init, so that we
3701 can use memprof - and to save the pain of remembering
3702 this, if we're running under memprof - don't exit.
3704 * cspi/spi_main.c (SPI_exit): return exit status
3706 (SPI_event_quit): impl.
3707 (SPI_event_main): simplify.
3708 (cspi_is_gnome_app): kill.
3709 (SPI_init): kill isGNOMEapp arg.
3711 * at-bridge/bridge.c (register_atk_event_listeners):
3712 re-instate the unref.
3713 (bridge_exit_func): don't re-activate the registry,
3714 protect vs. theoretical re-entry, use the
3715 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3716 assert a clean shutdown - for regression tests.
3718 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3720 * configure.in: Comment out dummy i18n support for now,
3721 otherwise it fails to build.
3722 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3723 EXTRA_DIST. They are missing in tarball.
3725 2001-12-07 Michael Meeks <michael@ximian.com>
3727 * util/magnifier.c: kill bonobo activation reg. race.
3729 * libspi/component.c
3730 (impl_accessibility_component_get_extents): make it match
3733 * libspi/registry.c (_registry_notify_listeners):
3734 re-remove X headers & reconcile conflicts.
3735 (spi_listener_struct_free): bad conflict resolve.
3736 (impl_accessibility_registry_register_application):
3737 more bad merging fixed.
3738 (impl_accessibility_registry_deregister_application): ditto.
3739 (spi_registry_new): ditto.
3740 (spi_registry_init): don't have an applications field.
3742 [ merge fixups2 branch to here ]
3743 2001-12-07 Michael Meeks <michael@ximian.com>
3745 * test/simple-at.c (report_focus_event),
3746 (report_focussed_accessible): remove g_warning debug.
3748 2001-12-07 Michael Meeks <michael@ximian.com>
3750 * test/test-simple.c (validate_tree): comment out some checks.
3751 (test_desktop): app now not registered idly - horay.
3753 2001-12-07 Michael Meeks <michael@ximian.com>
3755 * cspi/spi_registry.c
3756 (registerAccessibleKeystrokeListener): clean, stop it leaking
3757 great swathes of memory, and device event controller references.
3758 ensure we always pass valid sequences.
3759 (deregisterAccessibleKeystrokeListener): ditto.
3760 (generateKeyEvent): upd.
3762 * at-bridge/bridge.c (bridge_key_listener): handle
3763 registry dead exception gracefully.
3764 (bridge_focus_tracker, emit_eventv): free ev.
3766 * test/simple-at.c (report_focus_event): fix polarity.
3768 * libspi/application.c (notify_listeners): kill the ev
3769 argument, and make sure we init the ev we use.
3770 (spi_application_object_event_listener): split out a chunk
3771 (get_atk_object_ref): here & fixup.
3772 (reverse_lookup_name_for_toolkit_event): make const.
3773 (spi_application_toolkit_event_listener): fixup, kill leaks
3776 * at-bridge/bridge.c (register_atk_event_listeners):
3777 don't unref the noop object - causes grief.
3779 * libspi/registry.c: remove the X headers.
3780 turn off the debug churn.
3782 * libspi/accessible.c (spi_accessible_new_return): only
3783 release the ref if we are supposed to [doh]
3785 * test/simple-at.c (report_button_press, report_focus_event):
3786 guard vs. unexpected exit.
3788 * at-bridge/bridge.c (gtk_module_init): prune printf.
3789 (bridge_exit_func): fix app unref.
3791 * libspi/Makefile.am: don't install registry or desktop.h
3793 * libspi/*.h: update includes.
3795 * libspi/application.h: don't include ourself, or
3796 other redundant headers.
3798 2001-12-06 Michael Meeks <michael@ximian.com>
3800 * libspi/accessible.c
3801 (get_accessible_from_servant): impl.
3802 Upd. all CORBA impl.s to use it killing cut and paste.
3804 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3806 (SPI_init): register atexit cleanup handler here.
3808 2001-12-06 Michael Meeks <michael@ximian.com>
3810 * at-bridge/bridge.c (gtk_module_init): g_error on
3811 activation exception
3813 2001-12-06 Michael Meeks <michael@ximian.com>
3815 * at-bridge/bridge.c (gtk_module_init): some sort of
3816 confusing merge clash - reverted.
3817 (bridge_idle_init): ditto.
3819 * test/test-simple.c (main, utterable_normal_derefs):
3820 merge from Bill - somehow not committed.
3822 2001-12-06 Michael Meeks <michael@ximian.com>
3824 * libspi/value.c (spi_value_class_init): upd.
3825 (spi_value_finalize): kill.
3827 * libspi/table.c (spi_table_finalize): kill.
3828 (spi_table_interface_new): upd.
3829 (spi_table_class_init): upd.
3830 (get_table_from_servant): impl.
3831 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3833 * libspi/selection.c (spi_selection_finalize): kill.
3834 (spi_selection_interface_new): upd.
3835 (spi_selection_class_init): upd.
3836 (get_selection_from_servant): impl.
3837 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3839 * libspi/relation.c (spi_relation_finalize): kill.
3840 (spi_relation_class_init, spi_relation_new): upd
3842 * libspi/image.c (spi_image_finalize): kill.
3843 (spi_image_class_init): upd.
3844 (spi_image_interface_new): upd.
3845 (get_image_from_servant): impl.
3846 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3848 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3849 (spi_hyperlink_finalize): kill.
3850 (spi_hyperlink_new): upd.
3851 (get_hyperlink_from_servant): impl.
3852 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3854 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3855 (spi_hypertext_finalize): kill.
3856 (spi_hypertext_class_init): upd.
3857 (get_hypertext_from_servant): impl.
3858 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3860 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3861 (spi_editable_text_interface_new): upd.
3862 (get_editable_text_from_servant): impl.
3863 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3865 * libspi/text.c (get_text_from_servant): impl.
3866 All impls - update to use it killing more cut and paste,
3867 also fix bad string returns on duff args ( a somewhat
3868 impossible case to handle - but hey ).
3869 (spi_text_construct): impl.
3870 (spi_text_interface_new): upd.
3871 (spi_text_object_finalize): kill.
3873 * libspi/component.c
3874 (accessibility_component_object_finalize): kill.
3875 (spi_component_class_init): upd.
3876 (get_component_from_servant): impl. helper to kill cut & paste.
3877 (impl_accessibility_component_contains):
3878 (impl_accessibility_component_get_accessible_at_point):
3879 (impl_accessibility_component_get_position):
3880 (impl_accessibility_component_get_extents):
3881 (impl_accessibility_component_get_mdi_z_order):
3882 (impl_accessibility_component_get_layer):
3883 (spi_component_interface_new): upd.
3885 * libspi/action.c (spi_action_finalize): kill.
3886 (spi_action_class_init): upd. inherit from SpiObject.
3887 (spi_action_interface_new): upd.
3888 (get_action_from_servant): impl. helper to reduce cut & paste.
3889 (impl_getKeyBinding, impl_getName, impl_doAction),
3890 (impl_getDescription): Use it everywhere.
3892 * cspi/spi_main.c (get_live_refs): a pointer hash.
3893 (spi_object_hash, spi_object_equal): comment out.
3894 There are issues with CORBA object hashing that need
3897 * libspi/application.c (spi_application_init),
3898 (spi_application_new): upd.
3900 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3901 (spi_accessible_class_init): upd.
3902 s/accessible/object/ in epv methods.
3904 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3906 * at-bridge/bridge.c:
3907 Reorder the bridge initialization into the bridge gtk_module_init,
3908 an immediate call to bridge_register_app, and an idle_add for
3909 register_atk_event_listeners (the only code that *must* wait until
3910 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3911 the activation, creates the application's Accessible object, and
3912 queues the bridge_idle_init function. Restored call to
3913 Accessibility_Registry_deregisterApplication().
3914 Prior to making this call we obtain a new reference to the
3915 registry, which is a temporary hack that helps us handle apps that
3916 shut down the bonobo mainloop before we get there.
3918 * libspi/registry.c:
3919 Fix string leakage in debug block, and don't segv if a an app
3920 dies before its event notifications have been propagated.
3923 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3924 as stopgap measure until we get proper exception handling when
3925 objects die during or before interrogation.
3929 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3930 Also changed default value of is_gnome_app to TRUE.
3933 * test/keysynth-demo.c:
3934 Changed use of SPI_init and SPI_event_main to reflect API change above.
3937 Made report_focus_event check the warning value from getName
3938 before reporting on focussed accessible; simplifies handling of
3939 notifications from dead objects.
3941 * test/test-simple.c: (Changes not in this patch since source is
3944 2001-12-05 Michael Meeks <michael@ximian.com>
3946 * registryd/registryd.c (main): protect against
3947 bonobo-activation startup race condition.
3949 * cspi/spi_main.c (cspi_object_add_check): cope
3950 with the exception elegantly.
3952 * idl/Accessible.idl: decl. ChildGone
3954 * libspi/desktop.c (spi_desktop_dispose): impl.
3955 (spi_desktop_class_init): upd.
3956 (spi_desktop_add_application),
3957 (spi_desktop_remove_application),
3958 (abnormal_application_termination): impl.
3959 (impl_desktop_get_child_at_index): re-impl.
3962 (impl_accessibility_registry_deregister_application),
3963 (impl_accessibility_registry_register_application):
3964 kill excessive debug clutter.
3966 * test/test-simple.c (test_misc): test some NULL
3967 tolerance. (main): upd.
3969 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3970 implements no interfaces - so let's not crash.
3972 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3974 * libspi/accessible.c (spi_accessible_new_return): impl.
3975 helper to calm the cut and paste, to cope with
3976 NULL AtkObjects effectively and efficiently, and to kill
3977 the referencing bugs.
3979 * libspi/table.c (impl_getAccessibleAt),
3980 (impl_getRowHeader, impl_getColumnHeader): upd.
3982 * libspi/hyperlink.c (impl_getObject): upd.
3984 * libspi/accessible.c
3985 (impl_accessibility_accessible_get_child_at_index): upd.
3987 * libspi/component.c
3988 (impl_accessibility_component_get_accessible_at_point): upd.
3990 * test/test-simple.c (test_editable_text, test_text): impl.
3993 * cspi/spi_editabletext.c
3994 (AccessibleEditableText_insertText): constify.
3996 * test/test-simple.c (focus_me): make more robust.
3998 * libspi/accessible.c: remove some printfs in methods that
3999 we test and work fine, so we can get a clean tree dump.
4001 * test/test-simple.c (validate_accessible),
4002 (validate_tree): make tree dumping pretty too.
4004 * at-bridge/bridge.c (bridge_signal_listener): upd. so
4005 it builds without debug on.
4007 * test/test-simple.c (validate_accessible): fix the most
4010 * cspi/spi_main.c (spi_object_release): leave the nicely
4011 blanked memory around if in debug mode.
4013 * cspi/spi-listener-impl.c (cspi_event): use add_check.
4015 [committed to fixups2]
4016 2001-12-05 Michael Meeks <michael@ximian.com>
4018 * libspi/editabletext.c
4019 (spi_editable_text_class_init): g_type_class_peek_parent,
4020 not interface peek - so we finalize cleanly.
4022 * libspi/accessible.c (spi_accessible_new): kill debug.
4024 * test/test-simple.c (validate_accessible): fix ref.
4025 leak, print strings before freeing them; sigh, comment a
4026 chunk out due to strangeness.
4027 (validate_tree): unref the child after use.
4029 * cspi/spi_component.c (AccessibleComponent_getLayer):
4030 add missing break statement, switch on zlayer not the
4031 uninitialized retval.
4033 * cspi/spi_main.c (cspi_object_add): add assert, local ref
4034 before (possibly re-entering) remote unref.
4036 * test/simple-at.c (main): unref the desktop.
4038 * cspi/spi_accessible.c (cspi_accessible_is_a): move
4041 * cspi/spi_main.c (cspi_accessible_is_a): here to
4042 isolate bonobo API usage more.
4044 * libspi/registry.c (impl_accessibility_registry_register_application):
4045 prune bogus comment.
4047 2001-12-04 Michael Meeks <michael@ximian.com>
4049 * test/test-simple.c (validate_tree): upd.
4050 IndexInParent check to make it more lucid.
4051 (validate_accessible): dump the tree.
4053 * libspi/accessible.c (de_register_public_ref),
4054 (get_public_refs): impl.
4055 (spi_accessible_new): make more efficient & intuitive.
4056 Now IndexInParent check works.
4058 2001-12-04 Michael Meeks <michael@ximian.com>
4060 * cspi/spi-util.h: remove.
4062 * cspi/spi.h: move SPI_freeString here
4064 * libspi/component.c (impl_accessibility_component_get_layer):
4066 (impl_accessibility_component_get_mdi_z_order): ditto,
4067 return -1 on error - is this ok ?
4069 * test/test-simple.c (test_application): impl.
4071 * cspi/spi_accessible.c (Accessible_getApplication),
4072 (Accessible_isApplication): impl.
4074 * libspi/registry.c (spi_listener_struct_free): release
4075 the CORBA reference too.
4077 * libspi/accessible.c
4078 (impl_accessibility_accessible_get_parent): fix ref leak.
4080 * libspi/registry.c (spi_registry_new): make the registry
4081 immortal - we don't want it to go away ever.
4083 * libspi/application.c
4084 (spi_accessible_application_finalize): impl. cleanup.
4086 * cspi/spi_registry.c
4087 (deregisterGlobalEventListenerAll),
4088 (deregisterGlobalEventListener),
4089 (deregisterAccessibleKeystrokeListener): fix ref leak.
4091 * cspi/spi_main.c (SPI_init): remove redundant ref.
4093 * test/test-simple.c (unutterable_horror): impl. to force a
4098 (impl_accessibility_registry_deregister_application): release
4099 the application when we de-register it.
4101 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4102 until we have the infastructure to get it right.
4104 2001-12-03 Michael Meeks <michael@ximian.com>
4106 * libspi/Makefile.am: only build eventlistener.[ch]
4108 * libspi/accessible.c
4109 (impl_accessibility_accessible_get_child_at_index): don't leak.
4111 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4112 before we hit the idle handler.
4114 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4115 debugging than exit.
4117 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4119 * libspi/listener.c (impl_notify_event): check source
4120 not NIL before unref.
4122 * libspi/registry.c (impl_registry_notify_event): ditto.
4124 * libspi/eventlistener.c
4125 (impl_accessible_event_notify_event): unref the source.
4127 * libspi/accessibleeventlistener.c
4128 (impl_accessible_event_notify_event): unref the source.
4130 * idl/Event.idl: remove 'hash_id' attribute - of no
4133 * libspi/application.c (notify_listeners): upd list
4135 (spi_application_object_event_listener),
4136 (spi_application_toolkit_event_listener): upd to do correct
4140 (_registry_notify_listeners): update.
4141 (parse_event_type): this method also leaks like a sieve.
4142 (impl_accessibility_registry_deregister_global_event_listener):
4143 fix ETYPE_WINDOW case.
4145 * libspi/application.c
4146 (impl_accessibility_application_register_object_event_listener):
4149 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4151 * libspi/hypertext.c (impl_getLink): ditto.
4153 * cspi/spi_main.c (cspi_object_add): remove
4154 bogus CORBA_Object_duplicate.
4156 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4159 * cspi/spi_accessible.c
4160 (Accessible_getRelationSet): fix leak / referencing issue.
4162 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4163 (cspi_object_add, cspi_object_unref): upd.
4164 (spi_object_release, get_live_refs): impl.
4165 (cspi_cleanup): simplify.
4167 * *.[ch]: s/boolean/SpiBoolean/
4169 * cspi/spi_accessible.c (role_names): actualy order so it
4170 corresponds with the enum !
4172 * test/test-simple.c (test_roles): check some role strings
4173 vs. enums to detect offset errors.
4175 2001-12-01 Michael Meeks <michael@ximian.com>
4177 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4179 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4181 (Accessible_getChildAtIndex): use cspi_add_check so we
4182 check the ev before using a (possibly) invalid value.
4184 * libspi/accessible.c
4185 (impl_accessibility_accessible_get_parent): don't segv
4188 * at-bridge/bridge.c (gtk_module_init): upd.
4189 (bridge_property_event_listener): don't leak strings
4191 (bridge_state_event_listener),
4192 (bridge_property_event_listener): don't use a static
4193 buffer in case of recursive event emission &
4194 re-enterancy - split out the swathe of cut and paste
4196 (emit_eventv): and fix 2 ref leaks here & comply to the
4198 (bridge_register_app): rename to
4199 (bridge_idle_init): this and kill arg parsing, split
4200 various inits & bonobo-activation registration to module
4201 init time, kill referencing error.
4202 (bridge_exit_func): fix the same leak.
4203 (bridge_focus_tracker): don't leak event structures
4205 (bridge_signal_listener): more leakage and cut & paste
4207 (bridge_key_listener): return the result - FIXME is
4208 this polarity correct ?
4209 (accessibility_keystroke_from_atk_key_event): rename
4210 (accessibility_init_keystroke_from_atk_key_event): and stop
4212 (gtk_module_init): return a value - not that it is checked by
4214 (bridge_key_listener): register my horror at casting between
4215 IDL defined structs.
4216 (bridge_get_registry): kill - not used.
4218 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4220 * test/test-simple.c (test_roles): impl.
4221 (test_desktop, validate_accessible, validate_tree): impl.
4223 * cspi/spi_accessible.c (role_names): fixup bogus
4224 MAX_ROLES setup, make constants const for efficient linkage
4225 (AccessibleRole_getName): conform to coding style, make
4228 2001-11-30 Michael Meeks <michael@ximian.com>
4230 * cspi/spi.h: add missing prototype.
4232 * libspi/registry.c (spi_listener_struct_new): fix sig.
4234 * test/Makefile.am: add test-simple
4236 * test/test-simple.c: add
4238 * test/test.sh: add.
4240 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4242 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4243 do it straight - since otherwise we often get an activation race.
4245 [ work before Bill duplicated a chunk of it ... ]
4246 2001-11-30 Michael Meeks <michael@ximian.com>
4248 * libspi/keystrokelistener.c
4249 (spi_keystroke_listener_class_init): fixup arg
4252 * libspi/eventlistener.c
4253 (spi_event_listener_class_init): ditto.
4255 * tests/test.sh: add.
4257 * cspi/spi-listener-impl.h: update macros.
4259 * cspi/spi-listener-impl.c
4260 (cspi_event_listener_remove_callback): add
4261 correct pre-conditions.
4263 * cspi/spi_main.c (SPI_exit): guard vs. double
4264 exits, exit the mainloop nicely.
4265 (SPI_event_main): make more sense.
4266 (SPI_init): move the atexit evilness here so we
4267 always do it (yuck).
4268 (SPI_event_main): upd.
4270 * test/simple-at.c: update for listener changes.
4272 * registryd/registryd.c (main): prune kruft.
4274 * libspi/libspi.h: upd.
4276 * libspi/eventlistener.[ch]: rename broken macros.
4278 * libspi/accessibleeventlistener.[ch]: remove.
4280 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4282 * test/test-simple.c: Add - automated tests.
4284 * cspi/spi-listener-impl.c (cspi_event),
4285 (cspi_key_event): add user_data to invoke.
4286 (cspi_keystroke_listener_finalize): impl.
4287 (cspi_keystroke_listener_class_init): upd.
4290 (createAccessibleEventListener),
4291 (AccessibleEventListener_addCallback),
4292 (createAccessibleKeystrokeListener),
4293 (AccessibleKeystrokeListener_addCallback): upd.
4295 * libspi/deviceeventcontroller.c
4296 (spi_device_event_controller_check_key_event): add public proto.
4299 (impl_accessibility_registry_deregister_global_event_listener):
4300 always init listeners.
4301 (_registry_notify_listeners): yes it is.
4303 * cspi/spi-listener-impl.c (cspi_key_event):
4305 (cspi_event_listener_finalize): impl.
4306 (cspi_event_listener_class_init): hook up.
4307 (event_handler_new, event_handler_free),
4308 (event_list_remove_by_callback): impl.
4309 (cspi_event_listener_remove_callback),
4310 (cspi_keystroke_listener_remove_callback),
4311 (cspi_keystroke_listener_add_callback),
4312 (cspi_event_listener_add_callback): upd.
4314 * libspi/keystrokelistener.c
4315 (keystroke_listener_object_finalize): kill
4316 (spi_keystroke_listener_class_init): upd.
4317 (spi_keystroke_listener_add_callback),
4318 (spi_keystroke_listener_remove_callback): kill,
4320 (impl_key_event): prune drasticaly.
4322 * libspi/eventlistener.c
4323 (spi_event_listener_add_callback),
4324 (spi_event_listener_remove_callback): kill, use
4326 (impl_accessible_event_notify_event): upd.
4327 (spi_event_listener_object_finalize): remove.
4329 * libspi/Makefile.am: use eventlistener.[ch]
4331 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4333 * libspi/registry.c (_registry_notify_listeners):
4334 Changed listener loop iteration to use preferred convention.
4335 Got rid of string memory leaks caused be calling g_strconcat
4336 inside function calls.
4338 * libspi/registry.c (parse_event_type):
4339 Stopped g_strconcat memory leaks, free the g_strsplit return,
4340 g_strdup the split pieces when used, etc.
4342 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4345 Change method 'compare' to return a 'difference set' rather than
4346 taking a StateSet as an out parameter (more Java-friendly).
4348 * idl/Accessible.idl:
4349 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4351 * idl/Component.idl:
4353 Changed methods 'getExtents' and 'getImageExtents' in these
4354 interfaces to return a BoundingBox structure.
4355 (getPosition and getSize are redundant and possibly should be
4356 removed, rather than creating a corresponding Point struct.)
4358 * cspi/spi_component.c:
4359 Modify implementation of getExtents to reflect the above IDL
4364 Add (missing) AccessibleImage_getExtents () API.
4366 * docs/reference/cspi/at-spi-cspi-sections.txt:
4367 Added AccessibleImage_getImageExtents () to docs.
4369 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4371 * idl/Component.idl:
4372 Added two methods, getLayer () and getMDIZOrder (), to reflect
4373 the new ATK methods atk_object_get_layer and
4374 atk_object_get_mdi_z_order. (Which arguably should be part of the
4375 AtkComponent API and AtkObject). Also added an enum,
4376 ComponentLayer, for the first method's return value.
4378 * libspi/component.c:
4379 Added implementations for these methods.
4381 * cspi/spi_component.c:
4383 Added cspi binding methods for above,
4384 AccessibleComponent_getLayer() and
4385 AccessibleComponent_getMDIZOrder().
4386 Added cspi enum 'AccessibleComponentLayer'.
4388 * docs/reference/cspi/at-spi-cspi-sections.txt:
4389 Added above methods to docs.
4393 Changed typedef for 'boolean' type (and all references to it) to
4394 SPIBoolean, to avoid keyword clashes with C++.
4397 Changed usages of 'boolean' to SPIBoolean.
4399 * test/keysynth-demo.c:
4400 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4401 app), except where SPIBoolean is required by the callbacks API.
4403 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4405 * cspi/spi_registry.c:
4406 Removed obsolete X event loop for passive keygrabs (which now
4409 * registryd/registryd.c:
4410 Removed unnecessary call to gdk_init() [cruft]. This also allows
4411 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4414 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4416 * docs/reference/cspi:
4417 Included docs for SPI_freeString in generated documentation.
4420 Renamed spi_freeString to SPI_freeString, for consistency. Added
4421 documentation for this function.
4424 Renamed spi_freeString to SPI_freeString, for consistency.
4425 Removed obsolete method declaration string_from_corba_string.
4427 * test/keysynth-demo.c:
4428 Small tweak to comments.
4431 Stopped leaking the strings returned from CSPI.
4433 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4435 Merged Michael's branch (see his ChangeLog entries below).
4437 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4438 bridge is alive, release on exit.
4440 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4441 Fix type check macro.
4444 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4447 Added is_gnome_app static, and method cspi_is_gnome_app(),
4448 so we can call the appropriate shutdown routine at exit in SPI_exit.
4450 * cspi/spi_main.c (cspi_object_ref):
4451 Duplicate the corba object passed in, since we're keeping it around.
4453 * cspi/SPI_exit.c, cspi_cleanup:
4454 Moved the releasing of the live refs to its own function, so we
4455 can put it in g_atexit (). Call the appropriate shutdown API
4456 depending on whethe calling client is a gnome app or not
4457 (bonobo_main_quit or CORBA_ORB_shutdown).
4459 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4460 Unref the listener when this method is called, after
4461 deregistration. Updated the API docs to note this behavior.
4463 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4464 Bugfixes: Ref the bonobo object when returning a parent or child
4465 reference, or an AccessibleRelation. Generally made sure
4466 BonoboObject refcount is incremented whenever we return an
4469 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4470 Fixed typo/bug in signal declaration.
4472 * libspi/accessibleeventlistener.h:
4475 * libspi/application.c (spi_application_new):
4476 Fixed leak in initialization.
4479 Remembered to increment bonobo-object refcount when returning
4480 children (applications) from desktop object.
4481 Added (empty) finalize method.
4483 * libspi/deviceeventcontroller.c:
4484 Hold a ref to listeners inside DEControllerKeyListeners.
4485 Added dec_key_listener_free() method. Use prepend instead of
4486 append in key_listener list. Fixed some refcount madness and
4487 leaks in the listener registration/deregistration - deregistration
4488 now calls dec_key_listener_free() on listeners, and on the
4489 temporarily constructed dec_key_listener() used to perform the search/match.
4491 * libspi/hypertext.c (spi_hypertest_finalize):
4492 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4493 class. Also fixed spi_hypertext_interface_new() and
4494 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4496 * libspi/hypertext.h:
4497 Removed pointless and duplicate AtkObject pointer from
4500 * libspi/keystrokelistener.c:
4501 Fixed incorrect type of keystroke_listener_parent_class,
4502 renamed keystroke_listener_object_finalize to
4503 spi_keystroke_listener_object_finalize.
4504 Fixed typo in signal declaration
4505 (spi_keystroke_listener_class_init).
4507 * libspi/registry.c:
4508 Added funcsions spi_listener_struct_new() and
4509 spi_listener_struct_free() to help with memory management issues.
4510 We also now use these methods instead of gnew + poking stuff into
4511 the struct, and to decrement listener counts/free the listeners
4512 when deregistering them.
4513 Fix more refcount bugs in getDesktop() and
4514 getDeviceEventController().
4517 De-ref the desktop after enumerating the applications. Explicitly
4518 decrement the refcounts on the created listeners on exit (using
4519 _unref for keystroke listeners, and via the
4520 deregisterGlobalEventListenerAll command for other event
4523 2001-11-27 Michael Meeks <michael@ximian.com>
4525 * cspi/spi-listener.h: fixup enum.
4527 2001-11-27 Michael Meeks <michael@ximian.com>
4529 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4530 (cspi_keystroke_listener_new): Use the cspi variants.
4532 2001-11-26 Michael Meeks <michael@ximian.com>
4534 * test/keysynth-demo.c: fix 2 compile warnings, missing
4537 * test/simple-at.c (report_focussed_accessible),
4538 (report_focus_event, report_button_press),
4539 (check_property_change, is_command_key),
4540 (report_ordinary_key_event, report_command_key_event): upd.
4542 * util/mag_client.h: include pre-requisites.
4544 * libspi/accessibleeventlistener.c
4545 (spi_event_listener_object_finalize): free any lingering
4548 * libspi/keystrokelistener.c
4549 (keystroke_listener_object_finalize): ditto.
4551 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4552 callbacks, with cspi types.
4554 * cspi/spi_event.c (createAccessibleEventListener): chain to
4555 (AccessibleEventListener_addCallback): here.
4556 (createAccessibleKeystrokeListener): chain to
4557 (AccessibleKeystrokeListener_addCallback): here.
4559 * libspi/keystrokelistener.c
4560 (spi_keystroke_listener_class_init): add signal.
4561 (impl_key_event): emit the event.
4562 (boolean_handled_accumulator): impl.
4563 (marshal_BOOLEAN__POINTER): add, gack.
4565 * libspi/accessibleeventlistener.c
4566 (spi_event_listener_class_init): add signal.
4567 (impl_accessible_event_notify_event): emit the signal &
4568 make the loop efficient.
4569 (spi_event_listener_add_callback): prepend the callback.
4571 * libspi/accessibleeventlistener.h: add an 'event' signal,
4572 decl type on callback.
4574 * libspi/keystrokelistener.h: ditto.
4576 * cspi/spi-listener.h: make methods typesafe and
4577 make them use the new event typedefs.
4579 * test/simple-at.c (report_focussed_accessible):
4580 include mag_client.h
4581 Use *(void *)text_interface not the other thing.
4583 * configure.in: add gtk to registryd bits - since we use
4586 * util/magnifier.c: include libbonobo.h
4588 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4590 * test/keysynth-demo.c:
4591 Turned this into a simple scanning keyboard, to demonstrate the
4592 use of g_timeout_add () as a means of creating timers for
4593 scanning, and the use of GtkStyle for visually indicating when
4594 virtual keyboard elements are selected.
4596 keysynth-demo now listens to any keyboard keys with zero-valued
4597 keycodes (i.e. 'unused' keys) and interprets them as
4600 Reworked the shiftlatch code so that shift-down state isn't held
4601 for long periods (it's only synthesized immediately prior to
4602 the keysynth event it's modifying). Note that shiftlatch in this
4603 demo is a convenience, not intended to take the place of AccessX
4604 which is the better choice for getting 'sticky' modifier keys.
4606 * libspi/deviceeventcontroller.c:
4607 * at-bridge/bridge.c:
4608 * cspi/spi_registry.c:
4609 Removed some debug print stuff, and put other verbosity in #ifdef
4614 Implemented some more of the magnifier IDL for the simple
4615 magnifier: namely, getZoomRegionParams.
4616 Added mag_x and mag_y members to MagnifierData struct, aid of this
4618 Added GtkWindow::realize signal handler to magnifier, to keep it
4619 from receiving keyboard focus from the WM.
4621 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4623 * cspi/spi-private.h: my guess at what michael forgot
4624 before he ran off to NZ :-)
4626 2001-11-23 Michael Meeks <michael@ximian.com>
4628 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4629 comment out non existant method invoke so we link.
4631 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4632 use bonobo_exception_get_text for more friendly warnings.
4634 * cspi/spi.c (Obj_Add): move into spi_main & rename
4635 spi_object_add; kill spi.c
4637 * cspi/spi_registry.c
4638 (deregisterGlobalEventListener),
4639 (deregisterGlobalEventListenerAll),
4640 (registerGlobalEventListener): fix exception leaks.
4642 * cspi/spi_main.c (spi_exception): impl. helper, so we
4643 don't leak exceptions.
4645 * cspi/spi_selection.c
4646 (AccessibleSelection_deselectSelectedChild): return the
4649 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4650 (spi_registry): ditto.
4651 (SPI_init): guard against double inits.
4653 * cspi/*.c: use spi_ev (), and spi_registry () where
4654 appropriate - a temporary hack until we have something
4655 better. Use spi_object_add
4657 2001-11-22 Michael Meeks <michael@ximian.com>
4659 * cspi/Makefile.am: re organise, install the headers.
4661 * cspi/*.h: add G_BEGIN/END_DECLS
4663 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4666 Added non-preemptive keylistener for key events with no modifiers
4667 and shift-only modifier.
4669 * libspi/keystrokelistener.c:
4670 Removed some verbose diagnostics printout.
4672 * cspi/spi_registry.c:
4673 Fixed a bug that caused all key listeners to be registered as
4676 * libspi/deviceeventcontroller.c:
4677 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4678 for non-preemptive key masks.
4681 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4683 * docs/reference/idl/at-spi-idl-docs.sgml:
4684 * docs/reference/idl/at-spi-idl-sections.txt:
4685 * docs/reference/idl/at-spi-idl-overrides.txt:
4686 Added missing files.
4688 * docs/reference/Makefile.am:
4689 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4690 to scan the IDL files :-(
4695 Added .cvsignore files.
4697 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4699 * libspi/deviceeventcontroller.c:
4700 * libspi/keystrokelistener.c:
4702 * cspi/spi_registry.c:
4703 Added filters for KeySets, KeyEventSeq, and event types to key
4704 event dispatching, so listeners should only receive those events
4705 that they requested :-)
4707 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4712 * docs/reference:Makefile.am:
4713 * docs/reference/cspi:
4714 * docs/reference/cspi:Makefile.am:
4715 * docs/reference/cspi:tmpl:
4716 * docs/reference/cspi:tmpl:*.sgml:
4717 * docs/reference/idl:
4718 * docs/reference/idl:Makefile.am:
4719 * docs/reference/idl:at-spi-idl-sections.txt:
4720 * docs/reference/idl:at-spi-idl-docs.sgml:
4721 * docs/reference/idl:tmpl:
4722 * docs/reference/idl:tmpl:*.sgml:
4724 Restructured docs directory to allow separate 'reference' docs
4725 section, and forked idl and cspi docs. Added the sgml template
4726 files to CVS. Added the first sections/structural sgml for the
4729 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4731 * configure.in, libspi/Makefile.am: find libXtst.
4733 2001-11-21 Michael Meeks <michael@ximian.com>
4735 * test/accessx-gui.c: s/spi_value/value/ - doh.
4737 * libspi/base.[ch]: add.
4739 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4741 * idl/Accessible.idl:
4742 * idl/Application.idl:
4745 Started gtk-doc cleanup on IDL.
4747 * libspi/deviceeventcontroller.c:
4748 Added and connected non-preemptive key notification from the
4749 toolkits (in addition to the pre-emptive support from XServer
4750 which we had before, but which causes 'focus flashing'). Filters
4751 are presently limited to key modifiers and global/non-global,
4752 KeySets are presently ignored, as are KeyEvent masks.
4754 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4755 structs into the persistant structure rather than just storing
4756 pointers to things that might not persist across servant
4759 The XGrabKey call now does async keygrabs, because synchronous
4760 ones were deadlocking with GDK_event code in a very nasty way.
4762 Added boolean to internal method notify_keylisteners, to indicate
4763 whether the event came from the 'toolkit source' or the 'global
4764 (XServer) source' - this is used in the notification process to
4765 determine which listeners to send the event to.
4767 deviceeventcontroller.c is now warning-free.
4769 * libspi/registry.c:
4770 Fixed regression in application de-registration.
4771 Also fixed some really brain-dead weirdness having to do with
4772 event dispatching - event structs are now duplicated before being
4773 re-marshalled in the dispatch to listeners. This also fixes a
4774 Solaris build problem.
4777 2001-11-20 Michael Meeks <michael@ximian.com>
4780 (impl_accessibility_registry_deregister_global_event_listener):
4783 * libspi/deviceeventcontroller.c
4784 (spi_device_event_controller_check_key_event): return
4785 FALSE on no virtual method.
4787 * libspi/*..h: make includes work on a correctly pathed install.
4789 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4791 * libspi/application.h: kill unused ( and whacked out )
4792 gboolean *spi_application_set_id (AtkObject *app, long id);
4794 2001-11-20 Michael Meeks <michael@ximian.com>
4796 * libspi/*.[ch]: further convert to bonobo's type func
4797 macros, remove redundnant casts etc.
4799 * libspi/text.c s/accessibility_text/spi_text/g,
4800 re-order to de-cruft.
4802 * libspi/hypertext.c: re-order to kill a huge slew
4803 of redundant forward decls.
4805 * libspi/relation.c: ditto.
4807 * libspi/image.c: ditto.
4809 * */.cvsignore: update
4811 2001-11-20 Michael Meeks <michael@ximian.com>
4813 * libspi/deviceeventcontroller.c
4814 (_controller_register_with_devices): use g_getenv,
4815 kill stdlib.h include.
4817 * libspi/keystrokelistener.c
4818 (spi_keystroke_listener_get_type): kill
4819 (spi_keystroke_listener_class_init),
4820 (spi_keystroke_listener_init): rename to this.
4822 * libspi/text.c (impl_getAttributes): fix warning / bug.
4824 * libspi/*.[ch]: more headers, includes and over commenting.
4826 2001-11-20 Michael Meeks <michael@ximian.com>
4828 * libspi/*.[ch]: fixup headers, includes and over commenting.
4830 * libspi/image.c (impl__get_imageDescription): const
4831 correctness warning fix. remove redundant casting.
4833 * libspi/table.c (impl_getRowDescription): ditto.
4834 (impl_getColumnDescription): ditto.
4836 * libspi/libspi.h: add.
4838 2001-11-19 Michael Meeks <michael@ximian.com>
4840 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4842 * libspi/component.c (accessibility_component_get_type):
4843 rename to (spi_component_get_type): and macroify.
4844 (accessibility_component_init): rename to
4845 (spi_component_init): this
4846 (accessibility_component_class_init): rename to
4847 (spi_component_class_init): this
4849 * libspi/action.c (spi_action_get_type): kill, use the macro.
4851 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4854 * libspi/application.c (spi_application_object_event_listener),
4855 (impl_accessibility_application_register_object_event_listener):
4856 warning fixes / const understanding updates.
4858 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4861 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4863 * libspi/spi_accessible.c: Added docs and C bindings for
4864 AccessibleStateSet. (No implementations yet). Documentation
4865 coverage for C bindings now 100%. Made docs for event listeners
4870 boolean notifyListenersSync (in DeviceEventListener listener,
4871 in DeviceEvent event);
4873 oneway void notifyListenersAsync (in DeviceEventListener listener,
4874 in DeviceEvent event);
4876 Added DeviceEventListener and DeviceEvent structs (may deprecate
4877 KeyStroke and KeystrokeListener in favor of this generic
4878 event/listener framework for devices).
4880 * libspi/deviceeventcontroller.c:
4882 Changed some key listener code to take masks, etc., and paved the
4883 way for integration of toolkit/non-preemptive key events. Changed
4884 signatures of some internal methods.
4886 * at-bridge/bridge.c:
4887 Fixed regression connecting to interface signals, apparently
4888 caused by GTK+ changes.
4890 Added an internal bridge_state_listener to deal with
4891 property-change:accessible-state signals.
4893 Changed the key_listeners GList to store structs (including masks,
4894 etc.) instead of just CORBA_Objects (required for full
4895 implementation of key listener API).
4897 Connected the bridge to all currently supported Atk signals.
4898 Events now supported:
4899 object:property-change
4900 object:property-change:accessible-name
4901 object:property-change:accessible-state
4902 object:property-change:accessible-description
4903 object:property-change:accessible-parent
4904 object:property-change:accessible-value
4905 object:property-change:accessible-role
4906 object:property-change:accessible-table-caption
4907 object:property-change:accessible-table-column-description
4908 object:property-change:accessible-table-column-header
4909 object:property-change:accessible-table-row-description
4910 object:property-change:accessible-table-row-header
4911 object:property-change:accessible-table-summary
4912 object:children-changed
4913 object:visible-data-changed
4914 object:selection-changed
4915 object:text-selection-changed
4917 object:text-caret-moved
4919 object:row-reordered
4921 object:column-inserted
4922 object:column-reordered
4923 object:column-deleted
4924 object:model-changed
4926 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4928 * libspi/hyperlink.c,h:
4929 Fixed some broken stuff in hyperlink.
4931 * libspi/relation.h:
4932 * libspi/relation.c:
4933 * cspi/spi_accessible.c:
4934 Initial implementations of AccessibleRelation methods, and docs.
4936 * libspi/accessible.c:
4937 Fixed a bug that caused SEGV if an accessible
4938 object's description is NULL, and a client
4939 requests it. An empty string is now returned.
4941 * cspi/spi_editabletext.c:
4942 * cspi/spi_hypertext.c:
4944 * cspi/spi_hyperlink.c:
4948 Doc coverage now 95%.
4950 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4952 One last namespacing revision:
4953 * libspi/accessibleeventlistener.[ch]:
4954 Renamed SpiAccessibleEventListener to SpiEventListener,
4955 (no need for two namespaces ;-)
4957 And lots of documentation fixes:
4959 * docs/at-spi-docs.sgml:
4960 Fixed 'underscore vs. hyphen' bug that was preventing
4961 the gtk-doc API docs from being automatically generated.
4964 * cspi/spi-listener.h
4966 * cspi/spi_accessible.c
4968 * cspi/spi_application.c
4969 * cspi/spi_component.c
4970 * cspi/spi_editabletext.c
4972 * cspi/spi_hypertext.c
4974 * cspi/spi_registry.c
4975 * cspi/spi_selection.c
4979 * docs/at-spi-docs.sgml
4980 * docs/at-spi-sections.txt
4982 Added and fixed up gtk-doc documentation in cspi.
4984 Interfaces now (fully) documented (subject to revision and enhancement):
4986 Event Listener Support
4988 AccessibleApplication
4992 AccessibleEditableText
4999 AccessibleRelationSet
5004 2001-11-14 Bill Haneman <bill.haneman@sun.com>
5006 * at-bridge/bridge.c:
5007 Initial work for toolkit-level key snooper connection by bridge.
5012 New typedefs and fixes to support new namespacing, and cleaner
5013 separation of cspi bindings from libspi bonobo implementation.
5014 Removed inconsistent and extraneous Spi* namespace prefix that
5015 had crept into cspi headers.
5016 Lots of comment fixes that sed had missed.
5018 * cspi/spi-roletypes.h:
5019 * cspi/spi-statetypes.h:
5020 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
5021 to AccessibleRoleType.
5023 * libspi/accessibleeventlistener.h:
5024 Fixed minor namespacing weirdness.
5026 * libspi/deviceeventcontroller.c:
5027 Reordered some internal API for device listeners.
5028 Changed the key registry final boolean to 'is_system_global'
5029 rather than 'is_synchronous', which is more descriptive of its
5031 Added spi_device_event_controller_new().
5032 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
5034 * libspi/keystrokelistener.[ch]:
5035 Namespaced KeystrokeListener to SpiKeystrokeListener.
5036 Changed uses of keymasks to use SPI_ prefix, and did other
5039 * libspi/keymasks.h:
5040 Namespaced keymask constants with SPI_ prefix.
5042 * libspi/registry.c:
5043 Some warning fixes, and knock-on fixes from namespace changes.
5046 Added rules for accessx-gui test program.
5048 * test/accessx-gui.c:
5049 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5050 utility. It doesn't actually use at-spi, but it's still cool and
5053 * test/keysynth-demo.c:
5057 Fixes so that these test clients work properly with the namespaced
5058 libraries. (Incompletely tested for technical reasons, fixes may follow)
5061 2001-11-13 Michael Meeks <michael@ximian.com>
5063 * libspi/application.c
5064 (impl_accessibility_application_get_version),
5065 (impl_accessibility_application_get_toolkit_name):
5067 (impl_accessibility_application_set_id),
5068 (impl_accessibility_application_get_id): remove
5069 redundant casting code.
5071 * libspi/action.c (impl_getDescription): fix warnings.
5073 * libspi/accessible.c
5074 (impl_accessibility_accessible_get_parent),
5075 (impl_accessibility_accessible_get_child_at_index),
5076 (impl_accessibility_accessible_get_state),
5077 (impl_accessibility_accessible_get_relation_set):
5078 warning fixes & include action.h
5080 2001-11-13 Michael Meeks <michael@ximian.com>
5082 * *.[ch] fix bits I screwed up:
5084 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5085 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5087 2001-11-13 Michael Meeks <michael@ximian.com>
5089 * *.[ch] Namespace libspi into spi_ and Spi.
5091 2001-13-11 Michael Meeks <michael@ximian.com>
5093 * Makefile.am: dist & install at-spi-1.0.pc
5095 * libspi/Makefile.am: install into at-spi-1.0
5097 * idl/Makefile.am (idldir): install into at-spi-1.0
5099 * at-spi-1.0.pc.in: add.
5101 * configure.in: build it.
5103 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5105 * test/keysynth-demo.c:
5106 Use a 'realize' signal-handler to set the WM properties for
5107 the virtual keyboard, rather than making it a "POPUP" type
5108 override-redirect window (thanks to anders carlsson for that
5111 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5114 * test/keysynth-demo.c:
5115 Added new test of key synthesis, which creates a simple
5116 (mouse-operated) onscreen keyboard. It inserts key events into
5117 the currently-focused window, thus it does not grab keyboard focus
5120 * cspi/spi_registry.c:
5121 Added C binding for AT-SPI generateKeyEvent.
5123 * libspi/deviceeventcontroller.c:
5124 Added call to XFilterEvent so that key listener works with XIM (we
5125 hope). Added event_synth_type to generateKeyEvent, so that we can
5126 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5127 synthesize a press/release pair for KeySyms.
5129 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5131 * libspi/Makefile.am:
5132 * registryd/Makefile.am:
5133 (temporary) hack to include libXtst in libspi and registryd.
5134 (Needed for keystroke synthesis, see below).
5137 Improved API for registerKeystrokeListener, in accordance with
5138 discussions with Gnopernicus team and X server research.
5140 * libspi/registry.c:
5141 * libspi/deviceeventcontroller.c:
5142 * libspi/accessible.c:
5143 * libspi/keystrokelistener.c:
5144 Changes and fixes to support keylisteners for potentially
5145 consumed key events (that is, 'passive grabs').
5146 Added implementation for generateKeyEvent() [untested].
5149 Changes to registerKeystrokeListener() API, as above.
5150 Added deregisterGlobalEventListenerAll(), and
5151 deregisterKeystrokeListener(), which are needed for clean exit of
5153 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5154 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5156 * cspi/spi_registry.c:
5157 Added implementations of function prototypes mentioned above.
5159 * registryd/registryd.c:
5160 Added the key listener event source as a g_timeout(), to allow
5161 receipt of key events that are not caught by GDK (since GDK
5162 doesn't support passive keygrabs, this was necessary).
5165 Changed to attach a keylistener to 'Alt' keys, and
5166 respond to the following keycommands: Alt-M (toggle magnifier);
5167 Alt-F (toggle speech); Alt-Q (quit).
5168 Added an exit routine to deregister the listeners, and a key
5169 listener that prints some key info to the console when a key
5170 matches the listener mask (and is thus received by the listener).
5172 * util/idl/Magnifier.idl:
5173 Changes to magnifier API to support multiple zoom regions,
5174 non-uniform scaling in x and y, markDirty, and a host of other
5175 features that would be useful to magnification.
5178 * util/mag_client.c:
5179 * util/mag_client.h:
5180 * util/mag_control.c:
5182 Source code changes to support the above IDL changes.
5185 As above, and also changes to use a (slower) generic conversion
5186 path for colormap conversions, since the fast RGB conversions have been
5187 reported to fail for 16-bit displays.
5189 2001-10-26 Michael Meeks <michael@ximian.com>
5191 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5193 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5195 * at-bridge/Makefile.am: fix LDFLAGS.
5197 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5199 * at-bridge/bridge.c:
5200 Re-worked listeners for toolkit events, now we have signal
5201 and property listeners. Added a private method
5202 register_atk_event_listeners(), which registers with the
5203 various atk and gtk signals we need to monitor in order to emit
5205 Added emission hook for AtkObject:property-change events, to
5206 support the 'property listeners'.
5207 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5210 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5211 which emit warnings and exit, respectively, if CORBA errors occur
5212 during remote calls, and we now use these methods to check most of
5213 our CORBA calls in the C bindings.
5215 * cspi/spi_accessible.c:
5216 Changed AccessibleSelection_refSelectedChild() to
5217 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5218 now increment refcounts.
5220 * cspi/spi_component.c:
5221 Fixed some long pointer casts (dangerous!) to pass pointers to
5222 CORBA_longs of the proper type to the CORBA stubs, and copy the
5223 data into the longs that were passed into the C bindings code.
5225 * at-bridge/bridge.c:
5227 * libspi/accessible.c:
5228 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5229 hyperlinks, AtkHyperlink is an object type.
5231 * libspi/application.c:
5232 Added various conversions to and from "generic" event types and
5233 atk-specific types; this is really part of the 'bridge'
5234 implementation but is valid for all AtkObject-based accessibility
5237 * libspi/editabletext.c:
5238 Fixed nasty bug wherein editable text's finalize method was
5239 unref'ing tha AtkObject reference that the text parent class was
5240 about to unref _again_. There was also a nasty inheritance bug
5241 that meant that the AccessibleEditableText class was corrupt.
5243 * libspi/selection.c:
5244 Provided implementations for some selection API that was broken.
5246 * idl/Application.idl:
5247 Added registerObjectEventListener () method.
5250 Fixed a number of return values that were Bonobo_Unknowns from
5251 bonobo_object_corba_objref(), which I
5252 forgot to dup before returning. Changed instances of
5253 bonobo_object_corba_objref (bonobo_object(o)) to
5254 BONOBO_OBJREF(o), for concision and clarity.
5256 2001-10-13 Louise Miller <louise.miller@sun.com>
5258 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5259 idl/Event.idl, idl/Registry.idl
5260 Changed these files to include Bonobo_Unknown.idl instead
5263 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5265 * libspi/component.c libspi/component.h:
5266 Fixed typo. Added assertions for object checks in
5267 AccessibleComponent code.
5269 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5271 * idl/Accessible.idl:
5272 Added 'isEqual (Accessible *object)'
5273 method for Accessible. (Not Yet Implemented).
5276 Changed signature of registerKeystrokeListener() to
5277 take a KeySet and KeyEventSeq so that specific keys and event
5278 types could be requested for monitoring, and added a flag
5279 is_synchronous so that either synchronous or asynchronous
5280 notification could be requested. (However this is not all
5281 implemented yet). This also meant adding two new typedefs,
5282 KeyEventSeq and KeySet.
5285 Added two new relations, RELATION_TOOLTIP_FOR and
5286 RELATION_LEAFNODE_OF.
5289 Added new state, STATE_HAS_TOOLTIP.
5291 * libspi/text.c, editabletext.c:
5292 Added new assertions to all casts of bonobo-objects from
5293 CORBA servants, to prevent Text API calls on non-text objects.
5294 Changed suspect casts of int-pointer types, so that we
5295 always send a valid CORBA_long pointer to the CORBA APIs that use
5296 in/out long parameters. We then have to copy from the CORBA_long
5297 into the regular long or int for return to the C bindings, or
5298 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5301 * libspi/deviceeventcontroller.c:
5302 Cleaned these sources up.
5304 Changed return type for getCharacterAtOffset to
5305 CORBA_unsigned_long, to allow for 32-bit characters.
5308 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5312 Fixed 'make dist' so that distro compiles...
5313 * libspi/keymasks.h:
5315 * cspi/spi-listener.c:
5316 KeystrokeListenerCB now returns a boolean.
5318 Added KeyEventType struct, and KeyStroke.
5319 Also added createKeystrokeListener(),
5320 KeystrokeListener_addCallback(),
5321 KeystrokeListener_removeCallback(), and added a keymask to
5322 registerKeystrokeListener().
5323 * cspi/spi_accessible.c:
5324 Changed numerous return types for interfaces from
5325 AccessibleComponent to Accessible<InterfaceName>; this was
5326 probably a cut-and-paste error.
5328 Implementations of new KeystrokeListener api (from spi.h,
5331 Changes to key modifier mapping.
5332 Created ControllerEventMask struct.
5333 Made DeviceEventController derive from Bonobo::Unknown.
5335 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5336 * libspi/deviceeventcontroller.c:
5337 Added a number of new internal (private) methods.
5338 * libspi/editabletext.c:
5339 * libspi/editabletext.h:
5340 Fixed a number of bugs related to the fact that
5341 editabletext inherits from text. Fixed the EditableText struct,
5342 the init() call, and use correct casts when calling Text methods
5343 from an EditableText object. Removed (duplicate) atko from the
5344 EditableText structure, we use the one in the parent Text
5345 structure via the casts mentioned above.
5346 * libspi/keystrokelistener.[ch]:
5347 * libspi/registry.c:
5348 Changes in support of keyboard handling (above).
5350 Keyboard handling, though partly functional, is still not
5351 recommended for at-spi client use as there is considerable
5352 work yet to be done.
5355 Changed some places where pointers to various int types
5356 are cast to be pointers to CORBA_long types and vice-versa:
5357 pointer casting is not safe so we pass pointers of the correct
5358 types and then cast the result before putting it into the target
5361 * libspi/text.h: minor typos corrected.
5363 We now speak not only the name of a Text element, but the
5364 first sentence of its content, when it receives focus.
5365 I also changed the text compression to 75% from 50%.
5366 * util/Accessibility_Util.server.in:
5367 Changed the default magnifier type to be a 3x vertical
5368 splitscreen magnifier (was previously a 2x horizontal one).
5370 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5372 * libspi/keystrokelistener.h:
5373 * libspi/keystrokelistener.c:
5374 Initial functional implementations of KeystrokeListener.
5377 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5379 Fixed string handling for NULL strings in libspi.
5380 Added spi_freeString to free strings returned by C bindings.
5382 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5384 * libspi/keystrokelistener.h:
5385 * libspi/keystrokelistener.c:
5386 Began (no-op) implementations of KeystrokeListener
5388 * libspi/deviceeventcontroller.c:
5389 * libspi/deviceeventcontroller.h:
5390 Began creating implementations of DeviceEventController,
5391 to handle keystroke and mouse event listening and
5393 * libspi/accessible.c:
5394 Stubbed-in the implementations for
5395 Accessibility_Accessible_getState and
5396 Accessibility_Accessible_getRelationSet.
5397 * libspi/registry.c:
5398 Improved de-registration process and fixed some bugs,
5399 deregistration now works correctly.
5401 Added initialization of applications list (to NULL).
5403 Reduced speech compression from 0.5 to 0.7, for demo.
5404 Changed call to gdk_window_set_decorations()
5405 to gtk_window_set_decorated().
5406 * at-bridge/bridge.c:
5407 Bridge now deregisters when app exits, via
5408 registration of a cleanup function
5409 with the g_atexit() call.
5410 Required making 'app' static, renamed 'this_app'.
5411 Fixed broken use of bonobo_init, passing argv wrongly.
5413 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5417 Created a new directory for
5418 accessibility-related utilities, primarily for
5419 testing and demo purposes, but with possible
5426 Onscreen magnifier utility that
5427 is implemented as a bonobo service.
5429 * util/mag_client.c:
5430 * util/mag_client.h:
5431 Client-side support (simple C bindings)
5432 for Magnification service
5434 * util/mag_control.c:
5435 Client program example for
5436 Magnification service
5438 * util/Accessibility_Magnifier.server.in:
5439 Bonobo-activation file for the
5440 Magnification service.
5443 * util/idl/Magnifier.idl:
5444 IDL defining the bonobo Magnification
5448 Modifications to use the bonobo-activated magnifier
5449 above, in place of trying to connect to an existing
5450 magnifier that uses socket-listening IPC.
5452 If env variable MAGNIFIER is set, a magnifier service
5453 will be started if one does not exist.
5455 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5457 * at-bridge/bridge.c:
5458 applied patch from Marc to build and run
5459 against new glib and gtk+ (seemed like a change
5460 to bonobo_init signature was made ?)
5462 made festival-server support turned off by default.
5463 Added support for a simple magnifier (off by default)
5464 which will be added to a 'util' directory later.
5465 * at-bridge/Makefile.am:
5466 Changed "application.h" header from a 'source'
5467 to a 'dependency' of libat-bridge.
5469 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5478 Added interface implementation c files to list of
5479 includes so they are included in libcspi.
5482 Changed prototype of AccessibleAction_doAction to return a
5484 Changed prototype of AccessibleTable_getCaption to
5485 return an Accessible.
5486 Changed prototype of AccessibleTable_getSelectedRows
5487 and AccessibleTable_getSelectedColumns to
5488 return a long (returns the number of selected rows
5489 or columns respectively).
5490 Changed name of AccessibleText_refRunAttributes to
5491 AccessibleText_getAttributes.
5492 Changed prototype of AccessibleText_getCharacterExtents to
5493 return a void rather than a boolean.
5494 Added support for a AccessibleCoordType parameter
5495 specifying what type of coordinates are desired.
5496 Added an AccessibleCordType parameter to
5497 AccessibleText_getPointAtOffset.
5499 * cspi/spi_accessible.c:
5500 Added code to return the outstanding interfaces from
5501 Accessible_queryInterface.
5503 * cspi/spi_action.c:
5505 Corrected call to getNActions to call the c binding
5508 * cspi/spi_editabletext.c:
5510 Changed name from setRunAttributes to setAttributes.
5512 * cspi/spi_hyperlink.c:
5514 Changed call to getNAnchors to correctly call the c
5515 binding for an attribute.
5517 * cspi/spi_hypertext.c:
5519 Changed getImageDescription to correctly call the
5520 binding for an attribute.
5522 * cspi/spi_selection.c:
5523 Changed getNSelectedChildren to correctly call the c
5524 binding for the attribute.
5525 Changed refSelectedChild to getSelectedChild.
5529 Changed getCaption to return an Accessible.
5530 Fixed calls which retrieve attributes.
5531 Changed refAt to getAccessibleAt.
5532 Changed getNSelectedRows and getNSelectedColumns to
5536 Changed getCharacterExtents and getPointAtOffset to accept an
5537 AccessibleCoordType.
5539 Changed calls which retrieve attributes.
5540 Changed refRunAttributes to getAttributes.
5545 * idl/Hyperlink.idl:
5546 Changed n_anchors attribute to nAnchors to keep naming
5547 convention consistent.
5550 Made Table inherit from Bonobo::Unknown.
5551 Added nSelectedColumns and nSelectedRows attributes.
5554 Made Value inherit from Bonobo::Unknown.
5556 * libspi/hyperlink.c:
5557 Change for nAnchors attributte name change.
5559 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5567 Added interface implementation c files to list of
5568 includes so they are included in libcspi.
5571 Changed prototype of AccessibleAction_doAction to return a
5573 Changed prototype of AccessibleTable_getCaption to
5574 return an Accessible.
5575 Changed prototype of AccessibleTable_getSelectedRows
5576 and AccessibleTable_getSelectedColumns to
5577 return a long (returns the number of selected rows
5578 or columns respectively).
5579 Changed name of AccessibleText_refRunAttributes to
5580 AccessibleText_getAttributes.
5581 Changed prototype of AccessibleText_getCharacterExtents to
5582 return a void rather than a boolean.
5583 Added support for a AccessibleCoordType parameter
5584 specifying what type of coordinates are desired.
5585 Added an AccessibleCordType parameter to
5586 AccessibleText_getPointAtOffset.
5588 * cspi/spi_accessible.c:
5589 Added code to return the outstanding interfaces from
5590 Accessible_queryInterface.
5592 * cspi/spi_action.c:
5594 Corrected call to getNActions to call the c binding
5597 * cspi/spi_editabletext.c:
5599 Changed name from setRunAttributes to setAttributes.
5601 * cspi/spi_hyperlink.c:
5603 Changed call to getNAnchors to correctly call the c
5604 binding for an attribute.
5606 * cspi/spi_hypertext.c:
5608 Changed getImageDescription to correctly call the
5609 binding for an attribute.
5611 * cspi/spi_selection.c:
5612 Changed getNSelectedChildren to correctly call the c
5613 binding for the attribute.
5614 Changed refSelectedChild to getSelectedChild.
5618 Changed getCaption to return an Accessible.
5619 Fixed calls which retrieve attributes.
5620 Changed refAt to getAccessibleAt.
5621 Changed getNSelectedRows and getNSelectedColumns to
5625 Changed getCharacterExtents and getPointAtOffset to accept an
5626 AccessibleCoordType.
5628 Changed calls which retrieve attributes.
5629 Changed refRunAttributes to getAttributes.
5634 * idl/Hyperlink.idl:
5635 Changed n_anchors attribute to nAnchors to keep naming
5636 convention consistent.
5639 Made Table inherit from Bonobo::Unknown.
5640 Added nSelectedColumns and nSelectedRows attributes.
5643 Made Value inherit from Bonobo::Unknown.
5645 * libspi/hyperlink.c:
5646 Change for nAnchors attributte name change.
5649 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5651 implementations-- made server implementations own AtkObject pointers
5652 rather than their respective AtkInterrface pointers to fix
5653 refcounting. AtkHyperlink is still broken.
5655 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5656 * cspi/spi_accessible.c:
5657 Added method Accessible_Role_getName(),
5658 and requisite string array (role_names).
5659 Added conversion string_from_corba_strin() call
5660 to Accessible_getName and _getDescription.
5661 * libspi/accessible.c:
5662 Added implementation for Accessible_getRole()
5664 Added festival support, used if environment variable
5667 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5669 * at-bridge/bridge.c:
5670 Now allocate Accessibility_Event using
5671 Accessibility_Event__alloc() instead of g_new0().
5672 * libspi/accessibleeventlistener.c:
5673 Initialize AccessibleEventListener->callbacks to NULL.
5674 Fixed accessible__event_listener_init() param, changed to
5675 "AccessibleEventListener *" type.
5676 Changed a bonobo_object_release_unref() call to
5677 Accessibility_Accessible_unref().
5678 * libspi/listener.c:
5679 Changed Bonobo_Unknown_unref to (equivalent)
5680 Accessibility_Accessible_unref.
5681 * libspi/registry.c:
5682 Changed bonobo_object_release_unref to
5683 Accessibility_Accessible_unref.
5685 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5688 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5689 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5690 spi-util.c spi-util.h
5691 Implementations for C bindings to remaining accessibility
5694 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5697 changed return value of Action from void to boolean to
5698 bring in line with ATK.
5701 Changed getText funcions to return "out" start and end offsets.
5702 Changed getAttributes to take and offset and return the start
5703 and end offset of the attribute run.
5704 Changed getOffsetAtPoint and getCharacterExtents to take an
5705 enum describing whether coordinates are window or screen.
5708 libspi/action.c libspi/action.h libspi/editabletext.c
5709 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5710 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5711 libspi/image.h libspi/selection.c libspi/selection.h
5712 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5713 libspi/value.c libspi/value.h
5714 Added server implementations for outstanding ATK interfaces
5715 not yet implemented.
5717 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5720 Added (missing) getName() method.
5721 Made nActions an attribute.
5722 * idl/EditableText.idl:
5723 Changed order of params in setAttributes.
5724 * idl/Hyperlink.idl:
5725 Removed getAnchor, added getURI.
5727 Changed attributes to methods, for efficiency
5728 (so that getting extents can be done in one call)
5729 * idl/Selection.idl:
5730 Changed nSelectedChildren to attribute, and re-indented.
5731 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5733 * idl/Text.idl: reformatted to match our coding style.
5734 (temporarily?) removed getRowColumnAtOffset().
5735 Changed text selection API to support multi-select and
5736 non-contiguous selections, as in ATK.
5737 * idl/Value.idl: changed some methods to attributes.
5739 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5741 * libspi/listener.c(impl_notify_event):
5742 BonoboUnkown_unref the source instead
5743 of bonobo_object_release_unref - the ORB
5744 handles the releasing.
5746 * configure.in: require ORBit-2.3.94 for
5749 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5751 Tagged CVS repository 'EA_1_0'.
5752 * README.EARLY_ACCESS:
5753 Alphabetized acknowledgements list, and
5755 Listed some known dependencies of at-spi.
5757 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5759 * docs/at-spi-docs.sgml:
5760 * docs/at-spi-sections.txt:
5761 * docs/at-spi-overrides.txt: (Added zero-length file)
5762 Documentation improvements - gtk-doc should build
5763 docs for all implemented C bindings now.
5766 * cspi/spi.c: (New file)
5767 * cspi/spi_event.c: (New file)
5768 * cspi/spi_registry.c: (New file)
5769 * cspi/spi_accessible.c: (New file)
5770 * cspi/spi_application.c: (New file)
5771 * cspi/spi_component.c: (New file)
5772 Split spi_main.c into six parts, and included them from
5773 "spi.c". This is a bit of a hack, probably temporary,
5774 but required by gtk-doc, apparently.
5776 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5779 * docs/at-spi-docs.sgml:
5780 * docs/at-spi-sections.txt:
5782 Initial checkins/modifications for gtk-doc generation.
5785 Added (missing) interface query methods to Accessible's C binding.
5787 Added GenericInterface type definition.
5789 Added query for AccessibleComponent interface to focus event handler.
5790 Added printout of bounding box for focussed component.
5791 * libspi/component.c:
5792 Added partial implementation for AccessibleComponent to C binding.
5793 * idl/Application.idl:
5794 * libspi/registry.c:
5795 * libspi/listener.c:
5796 * libspi/application.c:
5797 * libspi/application.h:
5798 Changed "ID" attribute type from string to long.
5800 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5804 Made method naming consistent: methods taking object args
5805 start with uppercase, other methods (except those using
5806 acronyms) start with lowercase. Underscores delimit between
5807 object names and method names:
5808 SPI_init() - uppercase since it starts with an acronym.
5809 getDesktopCount () - lowercase start since no object param0.
5810 Accessible_getName() - uppercase object type name, studlyCaps method
5814 Added gtk-doc documentation for all currently implemented
5815 methods in the C bindings API.
5817 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5819 * Makefile.am : changed build order to build test last.
5822 Changed "createEventListener" to "CreateEventListener".
5823 * libspi/accessibleeventlistener.c :
5824 Bugfix for addition of callbacks.
5825 * test/Makefile.am :
5826 * test/simple-at.c :
5827 Added new test that uses the C bindings API.
5829 * libspi/listener.c :
5830 * libspi/registry.c :
5831 * libspi/accessibleeventlistener.c :
5832 * at-bridge/bridge.c :
5833 Renamed member "target" of Accessibility_Event to "source",
5834 which is more descriptive.
5837 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5841 * cspi/Makefile.am :
5842 Added makefile support for at-spi/cspi directory.
5845 * cspi/spi-listener.h : (NEW FILE)
5846 Added support for/use of spi-listener.h.
5848 C bindings now build successfully, with no warnings.
5849 * libspi/accessibleeventlistener.h : (NEW FILE)
5850 * libspi/accessibleeventlistener.c : (NEW FILE)
5851 * libspi/Makefile.am :
5852 Added new object type "AccessibleEventListener"
5853 which inherits from Listener, and allows attachment
5854 of in-process callbacks (so that a client with a listening
5855 object instance can add functionality to the local
5856 implementation, dynamically).
5858 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5860 * libspi/accessible.c:
5861 Add implementation for get_index_in_parent().
5863 Added #include of "spi-roletypes.h", and
5864 added enumerated type AccessibleCoordType.
5865 Added definition for KeystrokeListener (function type).
5868 * cspi/spi-statetypes.h :
5869 * cspi/spi-roletypes.h :
5871 Added these headers, used by spi.h.
5873 Added code (NOTE: not yet built by make).
5875 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5877 * libspi/Makefile.am: generate imodule
5878 at the same time as other idl compiler
5881 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5882 * libspi/registry.c :
5883 * libspi/application.c :
5884 * idl/Application.idl :
5885 Made registration with toolkit an application method,
5886 which is required since each app has its own toolkit static
5887 environment. Thus the bridge must register for
5888 notification of toolkit events from each application in turn.
5889 Toolkit notifications are now successfully registered for, and
5890 sent to the listening at client.
5892 Changed toolkit event string to use hyphens rather than underscores.
5893 * libspi/listener.c :
5894 listner now gives more info in debug mode - it reports the
5895 name of the event received, as well as the name of the source.
5898 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5900 * libspi/registry.c :
5901 added more implementation for toolkit events.
5902 Fixed bug such that toolkit event registrations
5903 (via atk) use the whole event name string, not
5905 Removed a useless call to an ORBit_ method.
5906 * at-bridge/bridge.c :
5907 Removed unused local sbuf[] variable.
5909 We now register for Gtk:GtkWidget:button_press_event
5910 events as well as "focus:" events.
5912 Add some more API from Registry.idl that was missing,
5913 for keystroke listening, keystroke and mouse event
5914 synthesis, and enumeration of accessible desktops.
5916 2001-08-16 Michael Meeks <michael@ximian.com>
5918 * configure.in: use AM_GLIB_GNU_GETTEXT.
5920 * Makefile.am (SUBDIRS): kill intl.
5922 2001-08-15 Michael Meeks <michael@ximian.com>
5924 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5926 * configure.in: upd.
5928 * configure.in: depend on a recent bonobo-activation that
5929 will find our server files ...
5931 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5933 * libspi/accessible.c : accessible_new() :
5934 Now we add the Component interface via bonobo_object_add_interface,
5935 if the contained AtkObject implements AtkComponent.
5936 * libspi/accessible.h : now include "component.h"
5937 * libspi/component.h :
5938 * libspi/component.c : added files - implementation of
5939 bonobo wrapper object for Accessibility/Component
5940 * libspi/listener.c :
5941 Added test code to check for Accessibility/Component:1.0
5942 interface and report whether it is implemented by the
5944 * libspi/registry.c :
5945 Now we check for not only the hash of the whole event
5946 string before relaying the event, we also check the
5947 "minor" event string (without the detail string).
5948 This allows event listeners to be registered against
5949 all events of a certain major+minor type, or just
5950 against a specific major+minor+detail type.
5951 * libspi/accessible.c :
5952 Added implementations for Accessible:get_parent(),
5953 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5954 * libspi/registry.c :
5955 * libspi/listener.c :
5956 Replaced calls to Accessibility_Accessible_ref() and
5957 Accessibility_Accessible_unref() with
5958 calls to bonobo_object_dup_ref() and
5959 bonobo_object_release_unref(), so that the CORBA object
5960 is dup-ed and released when relayed, as well as the bonobo object.
5962 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5964 * libspi/Makefile.am,
5965 registryd/Makefile.am,
5966 at-bridge/Makefile.am.
5967 test/Makefile.am, configure.in:
5968 reverse previous changes.
5970 * /idl/Image.idl: fix typo.
5972 * test/Makefile.am: put DEBUG_FLAGS
5975 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5977 * test/app.c: use argv[0] instead of
5980 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5982 * libspi/Makefile.am,
5983 registryd/Makefile.am,
5984 at-bridge/Makefile.am.
5985 test/Makefile.am, configure.in:
5986 cleanup, replace individual LIBS/CFLAGS with
5987 AT_COMMON_{LIBS|CFLAGS}.
5991 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5993 * configure.in, libspi/Makefile.am:
5994 Change IDL path checking for bonobo-activation
5997 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5999 * registryd/registry.c : separated event listeners to use
6000 3 separate lists (focus, window, toolkit). Began testing
6001 event names against hashes before relaying events.
6002 * test/at.c : now register for events of type "focus:"
6003 * test/app.c : now generate events of type "focus:"
6004 * at-bridge/bridge.c : register with ATK for focus events,
6005 and we now relay those focus events to any "focus:" listeners.
6006 This now works with the bridge as a GTK_MODULE when running test/at.
6007 * libspi/registry.c :
6008 * libspi/listener.c :
6009 now we ref event sources before propagating, and unref on receipt.
6010 * libspi/registry.c :
6011 some changes to internal structs, to support event typestring hashes.
6012 * text/app.c : changed the way the appname is generated.
6013 * cspi : added directory that will hold the C bindings library for
6014 non-CORBA/bonobo-savvy clients.
6015 * cspi/spi.h : header file that contains the function prototypes for the C binding.
6016 * idl/Component.idl : added in parameter to indicate coord system for
6017 geometry-related calls.
6018 * idl/Hyperlink.idl : added readonly n_links attribute
6019 * idl/Image.idl : changed methods to attributes.
6021 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6023 * at-bridge/Makefile.am: link against
6024 ../libspi/libspi.la instead of -lspi.
6026 * at-spi/test/app.c: include
6027 bonobo-activation.h. Use a default appname
6028 if one is not provided.
6030 2001-08-14 Bill Haneman <bill.haneman@sun.com>
6032 * idl/Registry.idl : temporarily changed register_Application
6033 to oneway, to work around issue with initial registration
6035 * idl/Application.idl : changed attribute "id" from readonly
6036 to read-write, since it needs to be assigned by Registry.
6037 * registryd/registryd.c : added call to set application id
6039 * registryd/registry.c : changed de-registration procedure to
6040 use CORBA_Object_hash() to find matching object ref in application
6041 lists and listener lists.
6042 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
6043 began distinguishing between event types (work in progress).
6045 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6048 * libspi/application.c:
6049 Added implementations for get/set id, get_toolkitName,
6051 * registryd/registryd.c :
6055 Converted from use of OAF to bonobo-activation.
6056 * libspi/desktop.h :
6057 * libspi/desktop.c :
6059 Removed references to atksimpleobject, since base atkobject
6060 implementation now provides functionality we need.
6061 * libspi/atksimpleobject.c :
6062 * libspi/atksimpleobject.h :
6067 * at-bridge/Makefile.am
6068 * at-bridge/bridge.c
6071 Added directory "bridge" and contents, and added dependencies
6072 in Makefile.am/configure.in.
6073 Initial checkin of "at-bridge".
6074 This code is a GTK_MODULE which automatically registers
6075 GTK+ apps with the accessibility registry, using an object
6076 reference to the root ATK object.
6078 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6080 * po/Makefile.in.in: Remove. Again. If this
6081 doesn't get autogenerated - you need to update
6084 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6086 * po/Makefile.in.in: Add. Again.
6088 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6090 * libspi/accessible.c : added support for 'description' property.
6091 * libspi/accessible.c
6093 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6094 (since the two are now equivalent in libbonobo)
6102 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6103 Bonobo::Unknown as does Accessibility::Accessible.
6104 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6105 interface with Bonobo::Stream, since it was redundant with it.
6106 (The Stream returned by a StreamableContext object is expected to
6107 implement only a subset of Bonobo::Stream)
6109 2001-07-28 Anders Carlsson <andersca@gnome.org>
6111 * libspi/accessible.c (accessible_object_finalize): Change
6112 g_free to g_object_unref since the AtkObject is a GObject.
6114 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6116 * idl/Accessibility.idl: add new IDL files
6119 * idl/Action.idl: Definitions of actionable UI object
6120 * idl/Component.idl: Definitions of UI component geometry, etc.
6121 * idl/Hyperlink.idl: Defs of hyperlink behavior
6122 * idl/Image.idl: Def of accessible image
6123 * idl/Selection.idl: Definition of UI object with selectable children
6124 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6125 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6126 * idl/Text.idl: Interface defs for UI elements with complex textual content
6127 * idl/Value.idl: Definition of UI element that is a value controller or display
6129 2001-07-27 Michael Meeks <michael@ximian.com>
6131 * po/Makefile.in.in: remove autogenerated file from CVS.
6133 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6136 * idl/Registry.idl: include guard.
6138 * idl/Accessibility.idl: Add, and include all the other IDL
6141 * idl/*.idl: remove mass of pragmas etc.
6143 2001-07-26 Michael Meeks <michael@ximian.com>
6145 * registryd/Makefile.am (registryd_SOURCES): remove
6148 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6150 * libspi/.cvsignore, registryd/.cvsignore,
6151 test/.cvsignore: updated.
6153 * po/Makefile.in.in: gettext update.
6155 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6157 * initial CVS checkin
6159 2001-06-29 Michael Meeks <michael@ximian.com>
6161 * configure.in: add AM_CONFIG_HEADER to gen config.h