1 2003-06-26 Padraig O'Briain <padraig.obriain@sun.com>
4 (spi_atk_bridge_init_event_type_consts): Ensure that this function only
6 (atk_bridge_init): Call spi_atk_bridge_init_event_type_consts only
8 (spi_atk_bridge_toplevel_added): Call spi_bridge_init_event_type_consts
9 when doing registration.
11 This fixes bug #115014.
13 2003-06-25 Padraig O'Briain <padraig.obriain@sun.com>
15 * atk-bridge/bridge.c:
16 (atk_bridge_init): Add signal handler for children-changed:remove on
17 root when in a BonoboComponent.
18 (spi_atk_bridge_toplevel_added): Call spi_atk_bridge_do_registration
19 for first toplevel only other incrememt variable toplevels.
20 (spi_atk_bridge_toplevel_removed): For last toplevel deregister
21 application and remove listeners.
22 (spi_atk_bridge_get-registry): Change NULL to CORBA_OBJECT_NIL for
24 (spi_atk_deregister_event_listeners): New function which removes
26 (reinit_register_vars): New fuction which reinitializes variables.
28 This fixes bug #111578.
30 2003-06-13 Bill Haneman <bill.haneman@sun.com>
32 * configure.in: version 1.3.4.
34 * cspi/spi_accessible.c:
35 Changed test of obj==NULL to obj==CORBA_OBJECT_NIL.
38 2003-06-13 Michael Meeks <michael@ximian.com>
40 * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
42 * cspi/spi_main.c (cspi_peek_ev): impl.
44 2003-06-11 Padraig O'Briain <padraig.obriain@sun.com>
46 * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
48 * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
50 * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role
53 * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
55 * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
56 for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
58 2003-06-11 Bill Haneman <bill.haneman@sun.com>
60 * libspi/streamablecontent.h:
61 * libspi/streamablecontent.c:
62 New files, provide implementation/wrappers for
63 Accessibility_StreamableContent.
65 * cspi/spi_streamablecontent.c:
66 Connected the C wrappers to the libspi C bindings.
67 (AccessibleStreamableContent_close): New method.
70 (AccessibleStreamableContent_close): New method, needed
71 since we have an "open, [seek], read, close" model in cspi.
73 2003-06-11 Bill Haneman <bill.haneman@sun.com>
75 Fix for #108664; Padraig's revision of my original patch.
77 * registryd/registry.h:
78 Added event queue list, is_queuing, and exit_notify_timeout
79 to the registry struct.
81 * registryd/registry.c:
82 (registry_init): Initialize new struct from registry.h.
83 (impl_registry_notify_event):
84 Filter events before notifying, in case some need to be
86 (registry_filter_event): New,
87 we defer certain incoming events (for instance
88 window:deactivate) because we may wish to hide
89 or reject them based on pending events. This is
90 mostly a workaround for bug #108664.
91 (registry_queue_event, registry_start_queue): New.
92 (registry_defer_on_event): Test event to see if it
94 (registry_reset_on_event): Returns TRUE if the
95 event should cause a queue reset.
96 (registry_discard_on_event): Returns TRUE if the event
97 should cause the previous queue contents to be discarded.
98 (registry_timeout_flush_queue): Flushes the pending event
99 queue if no reset/discard-triggering events have come in
100 within the timeout period.
101 (registry_emit_event): New.
102 (registry_clone_notify_context): New, used when queueing the
103 event notify contexts.
105 2003-06-10 Bill Haneman <bill.haneman@sun.com>
107 * configure.in: Version revved to 1.3.2, lt 0.9.2
108 Incremented ATK required version to 1.3.4.
110 * cspi/spi_registry.c:
111 (SPI_generateKeyEvent):
112 We now pass the keystring along if it's non-null.
114 * registryd/deviceeventcontroller.c:
115 (keysym_mod_mask): New method, returns modifier mask
116 required to generate a keysym from a given keycode.
117 (dec_synth_keysym): New method.
118 (dec_synth_keystring): New method.
119 (dec_get_modifier_state): New method.
120 (dec_lock_modifiers): New
121 (dec_unlock_modifiers): New.
122 (dec_keysym_for_unichar): New, rather brute-force
123 conversion from UCS-4 to X KeySyms. Only works for
124 Latin at the moment, with partial implementations for
125 Greek, Hebrew, and (incomplete) Katakana.
126 (impl_generate_keyboard_event): Now implement
127 "KEYSTRING" synthesis and implement "KEYSYM"
129 (keycode_from_keysym): Improved, passes a returned
130 modmask value now if the corresponding param is non-NULL.
132 Fixes bugs #92143 and #109776.
135 * test/keysynth-test.c:
136 New test program for key synthesis, to confirm fixes for
140 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
142 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
144 * cspi/spi_accessible.c (cspi_init_relation_type_table):
145 Add line for RELATION_POPUP_FOR
147 * docs/reference/cspi/tmpl/spi_relation.sgml:
148 Add relation SPI_RELATION_POPUP_FOR
150 * docs/reference/cspi/tmpl/spi_stateset.sgml:
151 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
153 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
155 * libspi/relation.c (spi_init_relation_type_table):
156 Add line for RELATION_POPUP_FOR
158 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
160 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
161 there are still windows which have not been deleted and emit
162 window:deactivate, if necessary and window:destroy events.
163 This fixes bug #114370. The change on June 5th was not correct.
165 2003-06-09 Bill Haneman <bill.haneman@sun.com>
167 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
170 (SPI_dupString): Allow dup-ing of a string such that it's safe to
172 New methods for client exception handling and interception.
173 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
174 (SPI_exceptionHandlerPop): You guessed it...
175 (SPI_getSourceType): Return the type of object which offended.
176 (SPI_getExceptionCode): Return an enum code telling, possibly,
177 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
178 (SPIAccessibleException_getSource): get the source object for
179 exceptions that come from Accessibles, if SPIExceptionSourceType is
180 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
181 (SPIException_getDescription): New, returns a string description of
182 the problem. [Not yet a stable ABI, strings are not frozen]
184 * cspi/spi-private.h:
185 Added implementation details of opaque SPIException
189 Implementations of above. Also
190 (_cspi_exception_throw): new private method that
191 dispatches exceptions to handlers, called from cspi-bonobo.c
193 * cspi/bonobo/cspi-bonobo.c:
194 (cspi_check_ev): call _cspi_exception_throw.
195 Don't print a warning message if the exception has been
196 handled by _cspi_exception_throw.
198 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
200 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
201 there are still windows which have not been deleted and emit
202 window:deactivate, if necessary and window:destroy events.
203 This fixes bug #114370.
205 2003-06-03 Bill Haneman <bill.haneman@sun.com>
208 (cspi_accessible_is_a): Make non-fatal
209 if the object reference is dead.
211 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
213 * cspi/spi_main.c: #include <stdio.h>
214 * test/simple-at.c: ditto
215 * test/event-listener-test.c: ditto
216 * test/screen-review-test.c: ditto
218 2003-05-30 Michael Meeks <michael@ximian.com>
220 * test/test-simple.c (main): use CORBA_ORB_perform_work
221 instead of an unnecessary linc_ call.
223 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
225 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
226 Add SPI_STATE_INDETERMINATE.
228 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
231 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
233 * libspi/stateset.c (init_state_type_tables): Add support for
236 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
238 * configure: Update versions of atk and gail required.
239 This fixes bug #113268.
241 2003-05-02 Bill Haneman <bill.haneman@sun.com>
243 * configure.in: Revved micro version to 1.3.1 (because of build fix).
245 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
247 * libspi/Makefile.am:
248 Ensure headers are generated before being used by c sources.
250 2003-05-01 Bill Haneman <bill.haneman@sun.com>
253 Simplified lt versioning rules.
254 Incremented version to 1.3.0, to indicate that we're on the
257 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
259 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
260 Add MKDB_OPTIONS=--outtput-format=xml
262 * docs/reference/cspi/at-spi-cspi-docs.sgml
263 docs/reference/idl/at-spi-idl-docs.sgml:
264 Convert to Docbook XML.
266 This fixes bug #111793.
268 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
270 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
271 AcccessibleKeyEventType, AccessibleKeyMaskType.
273 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
275 * cspi/state-types.h: Add documentation for AccessibleState.
277 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
278 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
279 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
280 AccessibleComponentLayer.
282 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
285 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
287 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
288 Accessible. Add description of AccessibleEvent,
289 AccessibleEventListenerCB.
291 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
294 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
295 documentation. Add description of AccessibleKeystrokeListenerCB,
296 AccessibleKeyEventMask, AccessibleModifierMaskType,
297 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
298 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
300 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
303 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
306 This fixes bug #104730.
308 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
310 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
311 Set is_text field of Accessibility_DeviceEvent data structure.
313 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
314 is-text field of AccessibleDeviceEvent data structure.
316 This addresses part of bug #108666.
318 * registryd/devcieeventcontroller.c: Unset debug option.
320 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
323 (cpi_initial_relation_type_table): New function which initializes
324 mapping between Accessibility_RelationType and AccessibleRelationType.
325 (cspi_relation_type_from_spi_relation_type): New function which
326 translates an Accessibility_RelationType into an AccessibleRelationType.
327 (AccessibleRelation_getRelationType): Use
328 cpi_relation_type_get_spi_relation_type to return correct value.
329 (spi_state_to_corba): Return correct type for default case.
331 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
332 Use Accessibility_EventType instead of Accessibility_KeyEventType.
334 * cspi/cspi-bonobo-listener.c:
335 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
338 * libspi/accessible.c, libspi/action.c, libspi/application.c,
339 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
340 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
341 libspi/image.c, libspi/listener.c, libspi/selection.c,
342 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
343 registryd/desktop.c, registryd/registry.c:
344 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
346 * libspi/eventlistener.c
347 Remove semicolon after BONOBO_TYPE_FUNC.
350 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
351 (spi_init_relation_type_table): Initialize using correct type.
353 * registryd/desktop.c:
354 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
355 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
356 of Accessibility_KeyEventType.
358 * test/key-listener-test.c (report_tab_key_event): Use fprintf
361 * tests/simple-at.c, tests/screen-review-test.c:
362 Add include for <strings.h>.
364 * tests.stress-test.c:
365 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
367 These changes fix compiler warnings when using FORTE compiler on
368 Solaris; fixes bug #107479.
371 2003-04-10 Bill Haneman <bill.haneman@sun.com>
374 * configure.in: revved to 1.1.10
377 (SPI_KEYMASK_NUMLOCK): Added.
379 * registryd/deviceeventcontroller.c:
380 (spi_key_event_matches_listener): AND with a smaller
381 bitmask (as we should).
382 (spi_dec_translate_mask):
383 New method, sets the virtual NumLock modifier bit
384 if numlock is on. Eventually it can handle other virtual
385 modifier bits if needed, or other marshalling from
386 at-spi modifier masks to platform (X) masks.
387 (spi_dec_key_listener_new):
388 Call spi_dec_translate_mask to set up virtual mod bits
389 in the 'mask' field when creating a new listener struct.
390 (spi_dec_emit_modifier_event):
391 Set the virtual (i.e. NumLock) bits before emitting event.
392 (spi_controller_register_with_devices):
393 Query for the NumLock modifier 'physical' bit if Xkb is
394 present, for use in above methods.
398 2003-04-10 Bill Haneman <bill.haneman@sun.com>
400 * registryd/deviceeventcontroller.c:
401 (spi_keystroke_from_x_key_event):
402 Instead of checking to see if the keysym is
403 printable, check the string from XLookupString
404 if available, get the first unicode character from it,
405 and call g_unichar_isprint to determine whether the
406 is_text flag should be TRUE or FALSE.
410 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
412 * atk-bridge/bridge.c: Add support for extended events
413 * cspi/spi_event.c: Add documentation and implementation for
415 * tests/event-listener-test.c: Add tests for extended events.
417 This fixes bugs #100424 and #100426.
419 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
421 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
422 of LT_CURRENT. This fixes bug #89350.
424 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
426 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
427 number of signal parameter values before accessing them. This fixes
430 2003-04-01 Bill Haneman <bill.haneman@sun.com>
432 * configure.in: Fixed duplicate inclusion of -lspi.
433 * branched for gnome-2-2/HEAD.
434 [created tag "gnome-2-2"]
436 2003-03-07 Bill Haneman <bill.haneman@sun.com>
438 * configure.in: 1.1.9 release.
441 2003-03-07 Bill Haneman <bill.haneman@sun.com>
443 [needed by GOK, to fix bugs 107985 and 107988]
444 * registryd/deviceeventcontroller.c:
445 (spi_dec_clear_unlatch_pending):
446 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
447 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
448 (spi_dec_init_mouse_listener):Emit warning if mouse button
450 (spi_device_event_controller_forward_mouse_event):
451 Removed unnecessary parens from a conditional.
452 (global_filter_fn):Added TODO comment.
453 (impl_generate_keyboard_event):
454 Cancel a pending relatch if a 'delatching' key was
457 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
459 * atk-bridge/bridge.c:
460 Change atk_signal_child_changed to atk_signal_children_changed.
461 Reorganize code in spi_atk_bridge_signal_listener().
463 * test/event-listener-test.c:
464 Add children_changed_listener and report_children_changed_event()
465 to test AccessibleChildEvent_getChildAccessible.
467 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
469 * cspi/spi_event.c (cspi_internal_event_get_text): Change
470 g_strdup to CORBA_String_dup (bug #105291)
472 * test/event-listener-test.c (report_text_event): Add call to
475 2003-02-28 Bill Haneman <bill.haneman@sun.com>
477 * registryd/deviceeventcontroller.c:
478 (spi_keystroke_from_x_key_event):
479 Fix string and keysym return codes to match modifier state.
482 2003-02-28 Bill Haneman <bill.haneman@sun.com>
484 * registryd/deviceeventcontroller.c:
485 (spi_keystroke_from_x_key_event):
486 Fix segv due to improper use of isprint(c). [bug #107254]
488 2003-02-24 Bill Haneman <bill.haneman@sun.com>
491 (get_accessible_text_boundary_type):
492 Move default return value to (new) default case in switch.
493 (get_accessible_text_clip_type):
494 Move default return value to (new) default case in switch.
496 * libspi/application.c:
497 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
498 Remove unused methods.
499 (impl_accessibility_application_register_object_event_listener):
500 Remove unused methods.
503 Added #include of <math.h>.
505 * registryd/deviceeventcontroller.c:
506 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
507 we don't currently use this method.
508 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
510 (impl_generate_key_event):
511 Remove unused variables.
512 (impl_generate_mouse_event):
513 Initialize button to zero, just in case we get an invalid
514 input. Added support for mouse buttons 4 and 5.
515 (spi_device_event_controller_new):
516 Removed unused variable declaration for 'private'.
518 Added #include of <gdk/gdk.h>
520 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
522 * configure.in: Update to work when X is not installed in expected
523 location. Fixes bug #105836.
525 * atk-bridge/bridge.c
526 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
528 (spi_atk_register_event_listener): Add signal listener for
530 (spi_atk_bridge_signal_listener): Event event when link-selected
531 signal is emitted. (bug #104622)
533 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
534 on returned string. (bug #105291)
536 * test/event-listener-test.c: Add test for link-selected.
538 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
540 * atk-bridge/Makefile.am: Correct typo in previous commit.
542 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
544 * atk-bridge/Makefile.am: Allow for build directory to be different
545 from source directory
547 * registryd/Makefile.am: Allow for build directory to be different
548 from source directory
552 2003-01-29 Bill Haneman <bill.haneman@sun.com>
555 Fixed dependencies for libcspi so that libspi gets pulled in
556 properly. Fixes 104741.
560 Clean up inline docs a little.
562 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
564 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
565 This is done by implementing AtkComponent for SpiAtkDesktop, which is
566 the AtkObject within an SpiDesktop.
567 This addresses bug #101524.
569 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
570 Remove call to gdk_init().
572 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
573 so that Display is set when SpiDesktop is created.
575 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
577 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
578 This fixes bug #102830.
580 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
582 * test/test-simple.c: Update to take account of fact that GailButton
583 now implements AtkText.
584 (create_text_window): Set name on AtkObject for GtkEntry.
585 (validate_accessible): Check accessible name before calling test_text().
587 * libspi/Makefile.am: Fix problem with building outside of source
588 directory. Bug #98120.
590 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
591 typo in documentation comments. Bug #94275.
593 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
595 * libspi/text.c (impl_getBoundedRanges): Bug fix.
597 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
600 Add includes to avoid compiler warnings on Solaris.
601 (impl_getRangeExtents): Bug fix.
603 2002-12-17 Bill Haneman <bill.haneman@sun.com>
605 Fix for 100944, [API addition approved by Gman and murrayc].
612 * idl/Accessibility_Text.idl:
613 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
614 (Text::getRangeExtents): New method for efficient
615 bounds query of a text range.
616 (Text::getBoundedRanges): New method for efficient
617 clipping of text to bounding boxes.
618 (unImplemented7, unImplemented8):
619 Removed these padding methods to preserve bincompat.
622 (impl_getRangeExtents): implementation of new IDL.
623 (impl_getBoundedRanges): implementation of new IDL.
624 (SpiTextRect): Internal use struct.
625 (_spi_text_rect_union): internal method, calculates union of two
626 SpiTextRect bounding rects.
627 (_spi_text_range_seq_from_gslist): internal method, allows us
628 to build our sequence efficiently as a gslist then convert it
630 (_spi_bounds_contain): internal method, determines whether
631 a text character is "in" or "out" of a clip rect according to
632 values of TEXT_CLIP_TYPE.
633 (spi_text_class_init): Initialize the new methods in the epv.
636 (AccessibleTextClipType): New enum used by screen review api.
637 (AccessibleTextRange): New struct used by screen review api.
638 (AccessibleText_getRangeExtents):
639 cspi binding for Accessibility_Text_getRangeExtents.
640 (AccessibleText_getBoundedRanges):
641 cspi binding for Accessibility_Text_getBoundedRanges.
642 (AccessibleTextRange_freeRanges): convenience method.
645 (AccessibleText_getRangeExtents):
646 cspi binding for Accessibility_Text_getRangeExtents.
647 (AccessibleText_getBoundedRanges):
648 cspi binding for Accessibility_Text_getBoundedRanges.
649 (AccessibleTextRange_freeRanges): convenience method.
650 (get_accessible_text_clip_type): internal conversion method.
651 (get_accessible_text_ranges_from_range_seq): internal conversion method.
653 * registryd/deviceeventcontroller.c:
654 (spi_dec_mouse_check):
655 Improved behavior for mouse:abs events
656 [same granularity as mouse:rel events, and no
657 events when mouse is idle].
659 2002-12-16 Michael Meeks <michael@ximian.com>
661 * cspi/spi_accessible.c (spi_state_to_corba): rename.
663 * libspi/stateset.c (state_spi_to_atk): split out
664 ( fix several remote array bounds nasties )
665 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
666 (impl_remove): make safe from array bounds issues.
667 (spi_atk_state_from_spi_state): impl.
669 * libspi/stateset.h (spi_state_set_cache_is_empty):
670 add a set of wrapper defines to get layering right.
672 * cspi/spi_accessible.c: update state set stuff to
675 2002-12-14 Michael Meeks <michael@ximian.com>
677 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
678 to avoid 2 roundtrips to the registry per key event
679 (spi_atk_bridge_key_listener): upd.
680 (deregister_application): release the dec.
682 * registryd/registry.c (notify_listeners_cb):
683 bin lots of re-enterant complexity - we no longer
684 do a round-trip bonobo ref here, ensure that a single
685 listener's exception failure won't poison all other
687 (impl_registry_notify_event): bin obvious memory leak.
689 2002-12-13 Michael Meeks <michael@ximian.com>
691 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
692 init the ev so the error is meaningful.
693 (spi_atk_bridge_key_listener): ditto.
695 * cspi/spi_main.c (cspi_ev): init the ev so we start
696 with a clean slate, otherwise the first exception
699 * cspi/spi_text.c (get_accessible_text_boundary_type):
700 add a fallthrough for no warnings.
702 * cspi/spi_registry.c: prune unused warnings.
704 * cspi/spi_main.c (cspi_object_take): fix
705 mind-blowing brokenness ( by watching the compile
708 * cspi/spi_accessible.c (Accessible_getStateSet):
709 re-impl. to use an AtkStateSet.
710 (spi_state_type_from_accessible_state),
711 (init_state_table): bin these.
713 * libspi/stateset.c (spi_atk_state_set_from_sequence):
715 (atk_state_set_from_accessibility_state_set): here.
717 * cspi/spi_accessible.c (spi_state_to_atk): impl.
718 (AccessibleStateSet_contains, AccessibleStateSet_ref),
719 (AccessibleStateSet_unref, AccessibleStateSet_contains),
720 (AccessibleStateSet_add, AccessibleStateSet_remove),
721 (AccessibleStateSet_equals, AccessibleStateSet_compare),
722 (AccessibleStateSet_isEmpty): re-write to use a local
725 2002-12-13 Bill Haneman <bill.haneman@sun.com>
727 * configure.in: Revved to 1.1.7 (new keymask vals).
729 2002-12-10 Bill Haneman <bill.haneman@sun.com>
732 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
734 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
737 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
738 to compare two CORBA_TypeCodes.
739 (cspi_internal_event_add): Silence warning from FORTE compiler.
741 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
742 avoid implicit declaration of functions.
744 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
746 * atk-bridge/bridge.c:
747 (spi_atk_bridge_init_event_type_consts): Store signal id for
748 active-descendant-changed signal.
749 (spi_atk_register_event_listeners): Add signal listener for
750 active-descendant-changed signal,
751 (spi_atk_bridge_signal_listener): Move code in function
752 spi_atk-signal_emit_event() into this function.
753 Add support for active-descendant-changed
754 Update support for child-changed signal.
755 (spi_bridge_window_event_listener): Silence warning.
757 * libspi/spi_private.[ch]:
758 (spi_init_any_object): Change second parameter from CORBA_Object to
760 Omit call to CORBA_Object_duplicate().
761 Set CORBA_any's _value to CORBA_Object*.
763 2002-12-06 Bill Haneman <bill.haneman@sun.com>
769 (AccessibleEvent_ref, AccessibleEvent_unref):
770 New methods, for persisting an event outside the emission context.
771 Must be used if the new accessor methods are to be called
772 outside of the event listener's callback.
774 * cspi/bonobo/cspi-bonobo.c:
775 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
776 as second parameter instead of NULL, so we can call
777 cspi_check_ev afterwards.
780 (cspi_object_take): New internal method,
781 converts a CORBA_Object reference to a hard ref on
782 an Accessible if possible, returning NULL if the object
783 reference is invalid or an Accessible * otherwise.
786 (AccessibleEvent_ref):
787 Increment the event's internal private refcount, and
788 add the event's internal struct to an internal cache
789 if it's not already there.
790 (AccessibleEvent_unref):
791 Decrement the event's refcount and remove it from
792 the cspi event cache if refcount==0.
793 (cspi_event_compare): New private method.
794 Compares two event structs via their ids. Used
796 (cspi_internal_event_lookup): New private method.
797 (cspi_internal_event_check): New private method,
798 a 0-order sanity check for events to make sure their
799 private data is intact.
800 (cspi_internal_event_add, cspi_internal_event_remove):
801 New private methods for managiing the event cache.
803 * cspi/bonobo/cspi-bonobo-listener.c:
805 Initialize the new private data elements (id, magic, ref_count).
807 * atk-bridge/bridge.c:
808 (spi_atk_bridge_signal_listener):
809 Fixed bug #100530, passing wrong params to emission func.
811 * registryd/deviceeventcontroller.c:
812 (spi_dec_button_update_and_emit):
813 Fixed type in mask bit operations; fix for #99799.
815 2002-12-02 Bill Haneman <bill.haneman@sun.com>
817 Removed some of the more dangerous workarounds from
818 previous commit; they are only needed by GOK, which
819 in reality should be using another method to accomplish
820 the goals. So on reconsideration some of the workarounds
823 * registryd/deviceeventcontroller.c:
824 (spi_keycodes_contain, spi_dec_init_keycode_list):
825 Removed these methods, used only by a nasty hack to try
826 and detect whether a key synthesis should be allowed
827 to reset the XKB latch state or not. This code was only
828 required to work around an interaction between GOK,
829 button events, and XKB.
830 (impl_generate_key_event):
831 Removed hack at end of key generation that tried to
832 "do the right thing" if XKB latch keys were generated
833 in the midst of button press/release pairs.
836 Added a check for HAVE_XINPUT. Not normally used yet.
838 2002-11-25 Bill Haneman <bill.haneman@sun.com>
840 Workarounds and fixes for mouse event/XKB interaction.
842 * registryd/deviceeventcontroller.c:
843 (spi_keycodes_contain, spi_dec_init_keycode_list):
844 New internal methods.
845 (spi_dec_set_unlatch_pending):
846 Split the method that tells XKB to expect an
847 unlatch (and revert it) out of the rest of the
848 event handling code. This method is called by the
849 two mouse event handlers (the poll and the filter).
850 (spi_dec_update_and_emit, spi_dec_mouse_check):
851 New methods split from spi_dec_poll_mouse_moved.
852 The second one is now called from inside the filterFn
853 when an XKB delatch event is received, to determine
854 whether to revert the delatch or not.
855 (spi_poll_mouse_moved): Refactor; also we can now
856 properly handle the case where multiple button states
857 have changed between polling cycles and we didn't get
858 notified due to another client's grab.
860 Synchronize the server while handling an XKB notification.
861 Ugly, but apparently necessary to avoid nasty races.
862 Check the mouse state on receipt of an XKB latch change,
863 to decide whether to revert the latch or not. (Latches are
864 reverted if there is an immediately preceding mouse button
865 event that a client has consumed, in which case we don't want
866 the user to see the side-effect of the event).
867 (spi_device_event_controller_forward_mouse_event):
868 Check for modifier events and fire before resetting mouse_mask_state,
869 prevents losing modifier events.
871 (impl_generate_keyboard_event):
872 If we've just generated a keyboard event for a non-shift key,
873 we don't want to revert the pending XKB latch.
874 Otherwise, check the modifier state (via a call to
875 spi_dev_mouse_check) and set the relatch mask to
876 that state before returning.
878 2002-11-24 Bill Haneman <bill.haneman@sun.com>
881 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
884 * atk-bridge/bridge.c:
885 (spi_atk_register_event_listeners):
886 Don't re-register for ATK events if the registry has died
887 and the app needs to re-register; the ATK listeners are in
888 process and doing so will cause duplicate emission.
890 * registryd/deviceeventcontroller.c:
891 (spi_poll_mouse_moved):
892 Reformat the source, detect and emit multiple button-change
893 events (i.e. if multiple buttons have changed between poll
895 Add code to detect mouse-down events even when the pointer
896 is grabbed; workaround for GOK bug 98420.
897 (spi_controller_register_with_devices):
898 Call XTestGrabControl with 'impervious' flag set to True,
899 allows us to synthesize events and query the pointer even during
900 an active grab by another client.
901 (spi_device_event_controller_forward_mouse_event):
902 Set the mouse_mask_state to the mouse_button_state from
903 the intercepted event, to synchronize the grab listener with
906 2002-11-20 Bill Haneman <bill.haneman@sun.com>
908 * cspi/spi_accessible.c:
909 (AccessibleRole_getName):
910 Added necessary strings for making this (deprecated)
911 method work with the new role types.
912 (init_role_table, role_table):
913 Added definition of SPI_ROLE_APPLICATION.
915 * libspi/spi-roletypes.h:
916 Added SPI_ROLE_APPLICATION.
918 * idl/Accessibility_Role.idl:
919 Added ROLE_APPLICATION.
921 * docs/reference/cspi/at-spi-cspi-decl.txt:
922 Added SPI_ROLE_APPLICATION to docs.
924 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
926 * cspi/spi_accessible.c
927 (cspi_init_role_table): Do not write beyond end of role_table.
928 (Accessible_getRole): Use correct type for value returned by
929 Accessibility_Accessible_getRole().
931 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
932 beyond end of role_table. (This fixes bug #98269)
934 * libspi/application.c: Add include file spi-private.h for
935 definition of spi_init_any_nil.
937 2002-11-19 Bill Haneman <bill.haneman@sun.com>
941 * libspi/spi-private.h:
942 Added DGB() macro, and extern int _dbg declaration.
944 * registryd/registry.c:
945 (definitions) storage for _dbg.
947 Get environment variable "AT_SPI_DEBUG".
948 (spi_registry_set_debug):
949 New method, to initialize _dbg value.
950 (spi_listener_struct_new, spi_registry_object_finalize):
951 (notify_listeners_cb):
952 Changed fprintfs to use DBG and g_warning().
954 * registryd/deviceeventcontroller.c:
955 (_deregister_keygrab, spi_controller_register_device_listener):
956 Changed debug/warning messages to use DBG macro.
960 Changed warning messages to use DBG macro and g_warning().
962 * atk-bridge/bridge.c:
963 (atk_bridge_init, spi_atk_bridge_get_registry):
964 (spi_atk_bridge_exit_func):
965 (spi_atk_bridge_property_event_listener):
966 Changed status, warning, and error messages to use
967 g_warning, g_message, and DBG macros.
970 Read the state of the AT_SPI_DEBUG environment variable
971 and set a local '_dbg' accordingly.
973 2002-11-19 Bill Haneman <bill.haneman@sun.com>
975 FIXES for 98836, 98842, other bugs.
978 Revved to 1.1.4, interface-age=4, binary-age=4.
980 * registryd/deviceeventcontroller.c:
982 Fixed crasher bug in last_mouse_pos initialization.
984 * registryd/registry.c:
985 (desktop_add_application, desktop_remove_application):
986 Added (and then commented out) some support for
987 object context marshalling. [TODO]
989 * atk-bridge/bridge.c:
990 (spi_atk_bridge_event_context_create):
991 Commented out object context creation until it can
992 be properly tested and debugged.
994 * registryd/registry.c:
995 (impl_registry_notify_event):
996 Fixed crasher bug, we were calling
997 spi_re_entrant_list_foreach () with an empty list.
999 2002-11-18 Bill Haneman <bill.haneman@sun.com>
1001 * idl/Accessibility_Action.idl:
1002 * idl/Accessibility_Component.idl:
1003 * idl/Accessibility_Desktop.idl:
1004 * idl/Accessibility_Event.idl:
1005 * idl/Accessibility_Hyperlink.idl:
1006 * idl/Accessibility_Image.idl:
1007 * idl/Accessibility_Relation.idl:
1008 * idl/Accessibility_Selection.idl:
1009 * idl/Accessibility_State.idl:
1010 * idl/Accessibility_Value.idl:
1011 Updated unimplemented slot count to minimum of
1012 four for all interfaces, for ABI freeze.
1014 * idl/Accessibility_EditableText.idl:
1015 * idl/Accessibility_Text.idl:
1016 Updated unimplemented slot count to six
1019 * idl/Accessibility_Registry.idl:
1020 Updated unimplemented slot count to six
1021 (also for DeviceEventController),
1024 * idl/Accessibility_Table.idl:
1025 Updated unimplemented slot count to eight,
1028 * idl/Accessibility_Event.idl:
1029 Added CORBA_any "any_data" member to Event struct.
1031 * idl/Accessibility_Event.idl:
1032 Added CORBA_any "any_data" member to Event struct.
1034 * atk-bridge/bridge.c:
1036 atk_signal_text_changed, atk_signal_child_changed,
1037 signal ids queried from gtype system.
1038 (AtkBridgeEventContextType): New enum.
1039 (AtkBridgeEventContextData): New struct.
1040 (AtkBridgeEventContext): New struct.
1041 (atk_bridge_init_event_type_consts):
1042 New method, initializes type contants for comparison
1043 prior to emit_eventv.
1044 (atk_bridge_event_context_init): New method,
1045 initializes a CORBA_any from an AtkBridgeEventContext.
1046 (atk_bridge_focus_tracker): Call spi_init_any_nil to
1047 initialize the event.any_data struct.
1048 (spi_atk_bridge_event_context_create): New method,
1049 creates an AtkBridgeEventContext from signal/event info.
1050 (spi_atk_bridge_event_context_free): New method.
1051 (spi_atk_emit_eventv): Changed to take an
1052 AtkBridgeEventContext parameter. We now initialize
1053 the event.any_data member prior to notifying the
1054 Registry, via the AtkBridgeEventContext.
1055 (spi_atk_bridge_property_event_listener):
1056 (spi_atk_bridge_state_event_listener):
1057 Match emit_eventv signature.
1058 (spi_atk_bridge_object_event_listener):
1059 Match emit_eventv signature, and create an
1060 event context from the event details.
1061 Free the event context afterwards.
1062 (spi_atk_bridge_window_event_listener):
1063 Create an event context, pass it to the
1067 (AccessibleEvent_getContextString):
1068 (AccessibleEvent_getContextObject):
1069 New methods, allow query of AccessibleEvent objects
1070 for more context details (via the "any_data" member
1071 of the Event struct, above).
1074 Definitions for AccessibleEvent_getContextString
1075 and AccessibleEvent_getContextObject.
1077 * cspi/spi_listener.h:
1078 (InternalEvent): New struct.
1081 (AccessibleEvent_getContextString):
1082 (AccessibleEvent_getContextObject):
1083 Implementations of new methods, for obtaining
1084 additional context information from some event types.
1086 * cspi/spi_registry.c:
1087 (SPI_registerGlobalEventListener):
1088 Added mention of active-descendant-changed event in docs.
1090 * cspi/cspi-bonobo-listener.c:
1092 Marshal the any into the AccessibleEvent via
1095 * libspi/spi-private.h:
1096 #include <orbit/orbit.h>
1098 (spi_init_any_string):
1099 (spi_init_any_object):
1100 New convenience function declarations.
1104 (spi_init_any_string):
1105 (spi_init_any_object):
1106 New convenience function implementations.
1108 * registryd/deviceeventcontroller.c:
1109 (spi_poll_dec_mouse_moved):
1110 (spi_device_event_controller_forward_mous_event):
1111 Initialize any_data member of event.
1112 (spi_deregister_controller_device_listener):
1113 Fix incorrect param pass which was preventing deregistration.
1115 * registryd/registry.c:
1116 (desktop_add_application):
1117 (desktop_remove_application):
1118 Add object data to event's any_data before dispatch.
1120 Fix for error messages from GAIL.
1122 * test/event-listener-test.c:
1123 Test new ContextString and "any_data" API:
1124 (report_text_event): New method query and output context string.
1125 (main): register a new text listener with report_text_event
1128 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1130 Fixes for bugs 98127 and 97914.
1131 * cspi/spi-roletypes.h:
1132 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1134 * cspi/spi-statetypes.h:
1135 Added SPI_STATE_MANAGES_DESCENDANTS
1137 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1138 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1139 * cspi/spi_accessible.c:
1140 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1141 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1142 Accessibility_STATE_MANAGES_DESCENDANTS
1143 * libspi/accessible.c:
1144 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1145 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1146 As requested by Bill, I also cleaned up the alignment.
1147 * libspi/relation.c:
1148 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1149 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1150 * libspi/stateset.c:
1151 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1152 Accessibility_STATE_MANAGES_DESCENDANTS
1153 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1154 Document changes reflecting modifications to roles.
1155 * docs/reference/cspi/tmpl/spi_relation.sgml:
1156 Document changes reflecting modifications to relations.
1157 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1158 Document changes reflecting modifications to states.
1160 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1163 Revved to 1.1.3, interface-age=3, binary-age=3.
1164 Added REBUILD macro.
1167 Removed accessx-gui from the tests, since we have a nice
1168 keyboard accessibility capplet now :-)
1170 * test/keysynth-demo.c:
1171 (increment_scan): removed do-nothing default: case,
1174 * test/visual-bell.c:
1175 (main) : removed do-nothing default: case,
1178 * cspi/spi_action.c:
1179 (AccessibleAction_getKeyBinding_):
1180 Documented keybinding string format.
1184 (AccessibleText_getAttributes):
1185 Documented the text attribute string format.
1186 It's changed to use semicolon delimiters also,
1187 to prevent clashes with CSS attributes, but the old
1188 trick of looking for ", " strings will still work
1189 (as unreliably as ever). Fix for bug related to 97916.
1192 Include <cspi/bonobo/cspi-bonobo-listener.h>
1193 Fixes build warning.
1194 (SPI_freeAccessibleKeySet):
1195 (AccessibleKeystrokeListener_addCallback):
1196 (AccessibleKeystrokeListener_removeCallback):
1197 Modify to use AccessibleDeviceListener API internally,
1198 instead of AccessibleKeystrokeListener.
1200 * idl/Accessibility_Event.idl:
1201 Added two more empty slots to EventListener (for a total of four).
1203 * idl/Accessibility_Accessible.idl:
1204 Added four empty slots to Accessible interface.
1206 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1208 * idl/Accessibility_Registry.idl:
1209 (KeyEventType, EventType):
1210 Marked KeyEventType as deprecated; it duplicates
1211 functionality of EventType, which has been extended to
1212 include Mouse-button events.
1213 (KeyEventTypeSeq): defined in terms of EventType.
1214 (registerDeviceEventListener, deregisterDeviceEventListener):
1215 New methods, for managing listeners to device events,
1216 which potentially may consume them.
1219 Added definition for AccessibleDeviceListener.
1221 * cspi/spi-listener.h:
1222 (enum AccessibleDeviceEventType):
1223 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1224 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1225 for backwards compat.
1226 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1227 and typedef'd AccessibleKeystroke to it for back-compat.
1228 (AccessibleDeviceListenerCB):
1229 New function prototype typedef.
1232 (AccessibleDeviceEventMask): New typedef.
1233 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1234 (AccessibleKeyMaskType):
1235 Set equivalent to AccessibleModifierMaskType for back-compat.
1236 (SPI_createAccessibleKeystrokeListener):
1237 (AccessibleKeystrokeListener_unref):
1238 Deprecated in favor of equivalent (better-named) new API below..
1239 keystroke listeners are like all device listeners.
1240 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1241 New API names for old features :-).
1242 (AccessibleDeviceListener_addCallback):
1243 (AccessibleDeviceListener_removeCallback):
1244 (SPI_registerDeviceEventListener):
1245 (SPI_deregisterDeviceEventListener):
1249 (SPI_createAccessibleKeystrokeListener):
1250 Use new preferred API, cspi_device_listener_new() and
1251 cspi_device_listener_add_cb().
1252 (AccessibleKeystrokeListener_removeCallback):
1253 Use new preferred API, cspi_device_listener_remove_cb().
1254 (AccessibleKeystrokeListener_unref):
1255 Use new preferred API, cspi_device_listener_unref().
1256 (SPI_createAccessibleDeviceListener):
1257 (AccessibleDeviceListener_addCallback):
1258 (AccessibleDeviceListener_removeCallback):
1259 Implementation of new API.
1261 * cspi/spi_registry.c:
1262 (SPI_registerDeviceEventListener):
1263 (SPI_deregisterDeviceEventListener):
1264 Implementation of new API. Fixed memory leak and removed need to
1265 allocate EventTypeSeq (thanks Michael for catching this).
1266 Squashed a wayward CORBA_exception_free that shouldn't get called.
1268 * cspi/bonobo/cspi-bonobo-listener.c:
1270 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1271 (cspi_key_event): renamed to cspi_device_event().
1272 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1273 Extended to handle mouse button events as well as key events.
1274 (CSpiKeystrokeListener):
1275 Class superceded by CSpiDeviceListener.
1276 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1277 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1279 * cspi/bonobo/cspi-bonobo-listener.h:
1280 (CSpiKeystrokeListener):
1281 Class superceded by CSpiDeviceListener.
1282 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1283 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1285 * libspi/Makefile.am:
1286 Replaced keystrokelistener.h and keystrokelistener.c
1287 with devicelistener.h and devicelistener.c; keystrokelisener.h
1288 stub retained for back-compat.
1290 * libspi/keystrokelistener.c:
1294 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1296 * registryd/deviceeventcontroller.c:
1297 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1298 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1299 (DEControllerPrivateData): Added xkb settings data.
1300 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1301 button release events (which can't be captured via XGrabButton).
1302 Don't dispatch via the 'normal' event mechanism if the device event was
1304 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1305 Handle the typeseq data in its new location (see above).
1306 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1307 New methods, for "generic" device listeners.
1308 (spi_controller_register_device_listener):
1309 Now handle mouse event listeners as well as key listeners.
1310 (spi_controller_notify_mouselisteners):
1311 New internal method.
1312 (spi_device_event_controller_forward_mouse_event):
1313 Now we notify mouse device listeners as well as generating the
1314 non-consumable "mouse:" events.
1316 We must check and restore the XKB
1317 modifier map if we consume the event, since the act of triggering
1318 a mouse event will normally reset the XKB latch. This is required for
1320 (spi_controller_register_with_devices):
1321 Load the XKB settings when registering, and register for XKB
1322 state notify events.
1323 (spi_key_eventtype_seq_contains_event):
1324 Renamed spi_eventtype_seq_contains_event, since it's used
1325 internally for all device event types now.
1326 (spi_key_event_matches_listener):
1327 Uses spi_eventtype_seq_contains_event now.
1328 (spi_device_event_controller_object_finalize):
1329 Free the private data and the XkbKeyboard struct.
1330 (impl_register_device_listener, impl_deregister_device_listener):
1331 Implementation of new IDL.
1332 (spi_deregister_controller_device_listener):
1333 New internal method.
1334 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1335 More efficient implementation, we don't have to create a new
1336 XkbControls structure every time we query.
1337 (spi_device_event_controller_class_init):
1338 Initialize the epv entries for the new IDL. Assign the
1339 "spi-dec-private" quark.
1340 (spi_device_event_controller_init):
1341 Initialize the private data.
1342 (spi_device_event_controller_forward_key_event):
1343 Removed a bogus CORBA_exception_free() call.
1345 * registryd/deviceeventcontroller.h:
1346 Replaced inclusion of keystrokelistener.h with
1349 * test/event-listener-test.c:
1350 (report_mouse_event):
1353 Added mouse-event device listener.
1355 * test/test-simple.c:
1356 (create_test_window):
1357 Fixed regression (we were instantiating a GtkRange,
1358 which is now an abstract class). Also fixed to match
1359 existing AtkRole names, this seems to have changed in ATK
1360 awhile ago; too late now I think, and the new
1361 mechanism is at least elegant and consistent with the
1362 glib enum "nick" APIs.
1364 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1366 * idl/Accessibility_Relation.idl:
1367 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1368 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1369 * idl/Accessibility_Role.idl:
1370 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1371 * idl/Accessibility_State.idl:
1372 add STATE_MANAGES_DESCENDANTS
1373 * test/event-listener-test.c:
1374 Added a listener for active-descendant events.
1376 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1378 * atk-bridge/bridge.c
1379 (atk_bridge_init): If application is Bonobo component wait until top
1380 level is added before registering
1381 (spi_atk_bridge_do_registration): New function which contains code,
1382 formerly in atk_bridge_init, to do application registration.
1383 (spi_atk_bridge_toplevel_added): Signal called when top level
1384 added to Bonobo component
1386 This fixes bug #83134.
1388 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1390 * registryd/deviceeventcontroller.c
1391 Fixed compilation error caused by calling gettimeofday()
1394 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1399 Added template for HAVE_XKB.
1402 Changes to check for XKB, and to set the HAVE_XKB #define if it
1405 * libspi/listener.c:
1406 ()impl_notify_event): Make failure to get event source name
1409 * registryd/deviceeventcontroller.c:
1410 (#include): include X11/XKBlib.h.
1411 (DEControllerPrivateData) : New struct.
1412 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1414 (dec_synth_keycode_press) (dec_synth_keycode_release):
1415 New methods; split the key synthesis code into these methods.
1416 They check XKB settings before determining the "time" values to
1417 pass to Xtest; this fixes bug #95828.
1418 (impl_generate_keyboard_event): Changed to use methods above,
1419 instead of callng Xtest directly.
1420 (spi_device_event_controller_init): Initialize new privae struct s
1422 (spi_device_event_controllr_object_finalize):
1423 Free the (new) private data.
1425 * registryd/deviceeventcontroller.h:
1426 Add new gpointer to end of struct data.
1428 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1431 Incremented revision to 1.1.2, SONAME is still '.so', library
1432 extensions are ".so.0.0.2".
1434 * registryd/deviceeventcontroller.c:
1435 FIXES FOR #93592 and #95940.
1436 (statics): renamed mouse_button_state to mouse_mask_state,
1437 added key_modifier_mask.
1438 (spi_dec_poll_mouse_moved):
1439 Added key modifier checks, and emit "keyboard:modifiers"
1440 events when the key modifiers currently in use change.
1441 Also generate "mouse:abs" events periodically, even if the mouse
1442 is stationary (should we?).
1443 Alternatively we could generate "mouse:abs" events for either all
1444 mouse movements, or every 'nth' mouse movement, or at the
1445 beginning and end of every "active" mouse period.
1447 * test/event-listener-test.c:
1448 (main): Added listener for "keyboard:modifiers" events.
1450 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1452 * libspi/keymasks.h:
1453 Added key mask #defines for mouse buttons; e.g.
1454 SPI_KEYMASK_BUTTON1, etc.
1457 Incremented dependency on ATK to version 1.1.0. (This dependency
1458 is probably premature but will soon be real enough).
1460 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1462 * libspi/hyperlink.[ch]
1463 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1464 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1467 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1472 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1474 * registryd/deviceeventcontroller.c
1475 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1476 events to be ignored.
1477 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1478 keyboard_mode so that XAllowEvents() can be called.
1482 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1484 * cspi/spi-accessible.c: Correct names of roles returned by
1485 AccessibleRole_getName(). Fixes bug #95055.
1487 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1489 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1492 * registryd/registry.c
1493 (desktop_remove_application: Write diagnostic message to stderr for
1496 (impl_accessibility_registry_deregister_global_event_listener):
1497 Correct size of lists array. This addresses bug #94555).
1499 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1501 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1504 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1506 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1509 * registryd/registry.c (impl_registry_notify_event): Remove
1510 unnecessary call to parser_event_type().
1512 * docs/reference/cspi/tmpl/spi_component.sgml:
1513 Add reference to SPI_LAYER_WINDOW.
1515 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1517 * registryd/registry.c
1518 (desktop_add_application): Remove leak.
1519 (desktop_remove_application): Remove leak.
1520 (parser_event_type): Remove leak.
1522 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1524 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1525 bogus call to CORBA_string_dup(). Also removed unnecessary
1526 g_string_dup/g_free calls.
1528 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1530 * registryd/deviceeventcontroller.c:
1531 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1533 * test/event-listener-test.c:
1534 main: commented out three redundant listeners, to reduce output
1535 noise. (They still are potentially useful for testing).
1538 2002-09-13 Michael Meeks <michael@ximian.com>
1540 * Update all the copyrights to include Ximian.
1542 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1544 * cspi/spi.h: add SPI_LAYER_WINDOW.
1546 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1547 add Accessibility_LAYER_WINDOW case.
1549 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1551 * libspi/component.c: (impl_accessibility_component_get_layer):
1552 add ATK_LAYER_WINDOW case.
1554 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1556 * configure.in: incremented micro version.
1558 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1560 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1563 Clarified and reworded our commit policy.
1566 Started an API "todo" addition list for 2.2.
1569 (impl_getSelection):
1570 Free char pointer from atk_text_get_selection, which was being leaked.
1572 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1575 Small revision to author acknowledgement.
1577 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1579 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1580 If signal has detail add it to the type of the event.
1583 2002-08-12 Michael Meeks <michael@ximian.com>
1585 * test/test-simple.c (global_listener_cb): bin bogosity.
1586 (test_keylisteners): disable, still doesn't work reliably,
1587 certainly not on my system anyway.
1589 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1590 don't leak a reference on the DEC. This round-trip
1591 fetching of the DEC per keystroke sucks, it should be
1594 * cspi/spi-private.h,
1595 * cspi/cspi-lowlevel.h,
1596 * cspi/bonobo/cspi-bonobo-listener.[ch],
1597 * cspi/bonobo/cspi-bonobo.c: get the copyright
1598 notices better - there is still a large amount of
1599 work in at-spi falsely attributed solely to Sun.
1601 * cspi/spi_main.c (cspi_object_ref): kill bogus
1602 hash lookup, just increment the ref.
1603 (SPI_freeString): make explicit the fact that we
1604 handle NULL strings just fine.
1605 (report_leaked_ref): obey coding standards.
1606 (cspi_object_hash, cspi_object_equal): kill retval.
1607 (cspi_object_release): only release if not on loan.
1608 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1609 (cspi_object_borrow, cspi_object_return): impl.
1611 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1612 use cspi_object_borrow / return.
1614 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1616 * cspi/bonobo/cspi-bonobo-listener.c:
1618 Don't call cspi_oject_new() because this is creating a new Accessible
1619 every single time that an event is fired. This causes ATs like at-poke
1620 to nolonger recognise the source of the event and thus ignore it.
1621 Re-use the object from the cache, ref it and then unref it after the
1622 listeners have been called.
1624 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1626 * test/event-listener-test.c:
1627 Added command-line options to disable mouse events (m) and
1630 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1632 * configure.in: Update required versions of ATK, GTK+ and GAIL
1634 * cspi-1.0.pc.in: Add dependency for X include files
1637 * cspi/bonobo/Makefile.am:
1638 Add $(X_CFLAGS) so that X include files
1639 are picked up even if not in standard place (bug #71686)
1641 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1643 * registryd/deviceeventcontroller.c: fix for 84261
1644 (spi_dec_mouse_moved):
1645 Added test of mouse button mask, so that we can detect mouse
1646 button release. Unfortunately we can't otherwise detect mouse
1647 button release events without consuming the mouse press event,
1648 because of the way XGrabButton works. This means that our mouse
1649 release events have a latency dependent on the polling period
1650 while the mouse button is down. At least in this case we only
1651 have to poll while the button is down, and not at other times.
1652 If the button masks don't match with what the last press event
1653 reported, we report the appropriate button release event.
1654 (spi_dec_ungrab_mouse):
1655 New method (not yet called).
1656 (spi_device_event_controller_forward_mouse_event):
1657 New method, sends mouse press event from GdkFilter.
1658 (spi_dec_init_mouse_listener):
1659 Added code to call XGrabButton, redirecting mouse button events to
1660 the root window and our Gdk event loop.
1662 Added code to filter mouse button events, and reordered.
1664 * test/event-listener-test.c:
1666 Added registration for mouse events of type "mouse:button".
1668 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1670 * registryd/deviceeventcontroller.c: partial fix for 84261
1671 (spi_dec_poll_mouse_idle):
1672 New method, a timeout which checks to see if the mouse
1674 (spi_dec_poll_mouse_moving):
1675 A timeout to be called when mouse motion is underway.
1676 (spi_dec_poll_mouse_moved):
1677 A method which fires an event if the mouse has moved, and reports
1678 whether or not it did so.
1679 (spi_dec_init_mouse_listener):
1680 A method which sets up the timeouts above.
1681 (spi_device_event_controller_new):
1682 Now calls spi_dec_init_mouse_listener.
1684 * registryd/registry.c:
1685 (spi_registry_init):
1686 Now we initialize the device event controller when the registry is
1687 initialized, instead of waiting until a client has requested a key
1688 event notification; this is because we need the event controller
1689 for mouse events, but the mouse event registration API is a
1690 "registry" call and doesn't explicitly call the
1691 deviceeventcontroller.
1692 We now report mouse motion events with a 100 ms idle latency and
1693 a 20 ms granularity when motion is in progress.
1695 * test/event-listener-test.c:
1697 We now register the "detail listener" for events of type
1698 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1699 delivered only for the first mouse event received, and thereafter
1700 "mouse:abs" events are delivered.)
1702 * cspi/spi_registry.c:
1703 DOCS: Documented the above mouse event typestrings.
1705 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1707 Happy Summer Solstice...
1709 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1710 (spi_controller_notify_keylisteners):
1711 Changes to remove a listener from the listener list, freeing its
1712 open keygrabs, if a notification to that listener fails. This
1713 means that although a dead listener can continue to hold a passive
1714 keygrab, a maximum of one dispatch to such a listener can fail
1715 before the listener is removed from the list, thus the keygrab
1716 will be released on the next occurrence.
1717 As part of this fix:
1718 (spi_notify_keylisteners):
1719 Renamed to spi_controller_notify_keylisteners, as the controller
1720 instance must now be passed as an argument.
1721 The copied 'notify' GList is now a list of DEControllerKeyListener
1722 objects, since we need more than just the CORBA reference if a
1723 notify fails and we need to deregister the listener.
1724 (impl_notify_listeners_sync):
1725 (impl_notify_listeners_async):
1726 (spi_device_event_controller_forward_key_event):
1727 Modify use of notify_keylisteners in accordance with above
1729 (spi_deregister_controller_key_listener):
1730 New method introduced by refactoring, from
1731 impl_deregister_keystroke_listener.
1732 (impl_deregister_keystroke_listener):
1733 Call spi_deregister_controller_key_listener.
1734 (spi_key_listener_clone):
1735 New method to copy a key listner without doing a 'ref' on the
1736 remote object instance; used to create a notifier list.
1737 (spi_key_listener_data_free):
1738 New method, frees data without unreffing the source.
1740 (spi_key_listener_clone_free): new method.
1741 (spi_key_listener_free):
1742 refactored to call spi_key_listener_data_free.
1744 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1746 * registryd/registry.c: [fix for bug 86048]
1747 (notify_listeners_cb):
1748 Clear CORBA system exceptions which occur when notifying
1749 listeners, before returning to the source of the original event,
1750 since the event source doesn't care if the relayed notify failed.
1751 In other words, don't complain to the atk-bridge if the registry
1752 could not notify all its listeners, that's no fault of the
1753 application and thus should not appear to be an error from the
1754 application's perspective.
1756 * cspi/spi_main.c: [fix for bug 85980]
1758 Replaced use of bonobo_object_dup_ref with call to the wrapper
1759 method, csou_dup_ref (); this silences a compiler warning and
1760 provided more portability.
1762 Ping the registry before return, and restart if necessary.
1764 * cspi/bonobo/cspi-bonobo.c:
1766 New internal method.
1768 Fixed this method to return an object reference, as it should have
1771 * cspi/cspi-lowlevel.h:
1772 Added internal definition for cspi_ping() and fixed
1773 return type of cspi_dup_ref().
1776 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1778 * atk-bridge/bridge.c: [fix for bug 85305]
1779 (spi_atk_bridge_register_application):
1780 New method where the initial application registry calls have been
1781 moved; it allows an application to re-register in response to
1782 certain error conditions (such as a registry restart, see below).
1784 Moved some initialization code to the method
1785 spi_atk_bridge_get_registry, below.
1786 (spi_atk_bridge_get_registry):
1787 New, private accessor function for the Accessibility_Registry
1788 instance. If the registry has not been started before, or has
1789 died (as detected by failure of a CORBA exception), it is
1790 restarted before return, and spi_atk_bridge_register_application
1791 is called again to register with the new bridge instance.
1792 (spi_atk_emit_eventv):
1793 Set registry_died on error; use spi_atk_bridge_get_registry () to
1794 access the registry.
1796 * registryd/registry.c:
1797 (impl_accessibility_registry_register_global_event_listener):
1798 Set listener's event_type_quark to etype.minor instead of
1799 etype.major (fix for bug 84856).
1801 * test/event-listener-test.c:
1802 (report_detail_event):
1803 Change the output string so that user/tester can tell that the
1804 'detail listener' was called instead of the 'generic listener'.
1806 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1808 Fixes for bugs 84900, 84908, 84897, 84898.
1813 Revved version to 1.1.0
1814 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1815 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1817 * idl/Accessibility_Registry.idl:
1818 (EventListener::notifyEvent):
1819 Removed 'oneway' directive after extensive consulation with
1820 ORBit2 team and others. This means also that unref() of the event
1821 source can and should be done synchronously after emission, rather
1822 than remotely in the client, after servicing the notify call on
1825 NOTE: This change speeds up listener performance considerably, but
1826 introduces new latency on the application side. We may want to
1827 add an event queue to the atk-bridge.
1829 * atk-bridge/bridge.c:
1830 (spi_atk_bridge_focus_tracker):
1831 Do a local unref() on the event source after emission.
1833 * registryd/registry.c:
1834 (desktop_remove_application):
1835 Do an unref() on the event source after emission.
1836 (desktop_add_application):
1837 Do an unref() on the event source after emission.
1838 (notify_listeners_cb):
1839 When relaying an event, don't automatically add the event source
1840 to the local object cache, just CORBA_dup it instead. Likewise,
1841 if this method reenters, release the ref rather than calling
1843 (impl_registry_notify_event):
1844 No longer call remote unref() on the event source after dispatch.
1846 * libspi/eventlistener.c:
1847 (impl_accessible_event_notify_event):
1848 Removed remote unref ()
1850 * cspi/bonobo/cspi-bonobo-listener.c:
1852 We now call cspi_object_new() instead of cspi_object_add() on
1853 receipt of an event; thus we only have an implicit object ref
1854 while the cspi_event method is being executed. If we need to keep
1855 a reference to the object, the listener must call ref() on the
1856 object. Thus also we don't need to call cspi_object_unref() after
1857 invoking the listener callbacks in this method.
1861 New internal API for creating a new cspi object, without adding it
1862 to the object cache.
1864 Now uses cspi_object_new() to create the cspi object instance.
1866 Now checks to see if the object is in the internal object cache,
1867 and adds it if necessary before incrementing its refcount (note
1868 that new objects are added with a refcount of 1).
1869 (report_leaked_ref):
1870 New method which gives some information on leaked object instances
1871 if leak detection is turned on.
1873 * test/event-listener-test.c:
1874 (timing_test_event):
1875 New method, used for testing event delivery timing for special
1876 events of type "object:test". It reports elapsed time and
1877 events/sec every 500 events.
1879 Added a new listener, 'test listener', to check timing of event
1880 receipt as noted above.
1882 Added some timing output here also, reports elapsed time every 100
1885 * test/stress-test.c:
1886 Emit events of type "object:test", for use with "event-listener-test".
1888 * test/test-simple.c:
1889 (global_listener_cb):
1890 Call Accessible_ref() on the event source before calling
1891 validate_accessible, since the validation process does pointer
1892 comparisons on the event source, meaning that the event source
1893 needs to be added to the local object cache first. Any use of
1894 such pointer comparisons between Accessible objects requires that
1895 the caller hold an explicit reference to those objects.
1896 We also must therefore call Accessible_unref() when leaving this method.
1898 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1900 * registryd/deviceeventcontroller.c:
1901 (spi_controller_update_key_grabs):
1902 Fix for #84735, subsequent keygrab listeners not informed of
1903 registration failure.
1906 (spi_base_construct):
1907 Add an assertion on construct, to make sure the GObject passed in
1908 is really a GObject.
1910 Explicitly initialize object->gobj pointer to NULL;
1912 * cspi/bonobo/cspi-bonobo-listener.c:
1913 (cspi_object_add_ref):
1914 New method, can specify whether to dup-ref a bonobo object passed
1915 in if it's newly added to the object cache.
1917 Now calls cspi_object_add_ref with second param of "FALSE". This
1918 prevents us from doing a pointless dup-ref followed by
1919 release-unref for all those cases where the object is already in
1920 our object cache (fix for #85205).
1922 * atk-bridge/bridge.c:
1923 (spi_atk_bridge_idle_init):
1924 Removed this method, we don't need to initialize in an idle
1927 Changed to call spi_atk_register_event_listeners directly, not via an
1928 idle handler. (fix for #81139)
1929 (gnome_accessibility_module_shutdown):
1930 Removed conditional around deregistration of listeners, since we
1931 don't use the idle handler and thus have always registered when
1933 (spi_init_keystroke_from_atk_key_event):
1934 Changed references to Accessibility_KEY_PRESSED to
1935 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1937 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1939 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1944 * test/stress-test.c:
1947 (may have been an incomplete commit yesterday?)
1949 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1952 Added target for new stress-test.
1954 * test/stress-test.c:
1955 New test, sends 1000 focus notifies in quick succession.
1957 * test/key-listener-test.c:
1958 Now we report whether a keylistener registration
1959 request succeeded or failed.
1961 * test/event-listener-test.c:
1962 Uncommented some listeners which are now implemented.
1965 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1967 * registryd/deviceeventcontroller.c:
1968 (spi_controller_update_key_grabs):
1969 Fix for #82509, lack of failure notification when
1970 ALL_WINDOWS keygrabs fail due to XGrabKey
1971 failure: we synchronize the server when
1972 registering a passive grab, to make sure we get the
1973 error message before the call returns.
1975 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1977 * test/test-simple.c:
1979 Removed #ifdef KEY_IMPL_WORKS guards.
1980 (test_keylisteners):
1981 Removed #ifdef KEY_IMPL_WORKS guards.
1982 Fixed bug which was causing a hang waiting for a
1983 "press" event (which was already overwritten by a "release"
1984 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1986 Added code to set globals 'key_press_received' and
1987 'key_release_received'.
1990 Added section "1.1 API Proposed Additions" which
1991 lists API additions desired for at-spi-1.1 (only one so far).
1992 Updated TODO list a little.
1994 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1996 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1999 * configure.in: Revved to 1.0.0.
2001 * idl/Accessibility_Registry.idl:
2002 (registerKeystrokeListener):
2003 Added boolean return value.
2005 * registryd/registry.c:
2006 (notify_listeners_cb): Minor fix to debug output.
2008 * registryd/Accessibility_Registry.server.in.in:
2009 Revved version number in OAFIID to 1.0.
2011 * registryd/registryd.c:
2013 Use new OAFIID version.
2015 * cspi/bonobo/cspi-bonobo.c:
2017 Use new OAFIID version.
2023 * atk-bridge/bridge.c:
2025 Use new OAFIID version.
2027 * registryd/deviceeventcontroller.c:
2028 (impl_register_keystroke_listener):
2029 Added CORBA_boolean return value.
2030 (spi_controller_register_device_listener):
2031 Added gboolean return value.
2032 (spi_controller_register_global_keygrabs):
2033 Added gboolean return value.
2034 (spi_key_set_contains_key):
2035 Added implementation for many more control keys,
2036 for instance F1-F12, arrow keys, End, Home, Page_Up,
2038 [TODO: some still not implemented].
2040 * text/screen-review-test.c:
2041 (text_chunk_pad_string):
2042 New function: it provides mapping between coordinate
2043 positions of text chunks and character positions in the
2044 screen-review-line output string.
2045 (text_chunk_to_string):
2046 New function, calls text_chunk_pad_string with various
2047 pad/delimiter characters. Pushbuttons are delimited with
2048 square brackets, Frames with vertical 'pipe' lines, and
2049 other text with double quotes.
2050 (text_chunk_list_to_string):
2051 Calls new function text_chunk_to_string.
2052 (toplevel_composite):
2053 New function to composite layers CANVAS through
2054 POPUP in each toplevel (other layers are composited
2055 across toplevels, i.e. BACKGROUND and OVERLAY).
2056 (review_buffer_composite):
2057 Revise to use new methods.
2063 2002-05-31 Laszlo Peter <laca@sun.com>
2065 * configure.in: add the Xtst libdir to the runpath on Solaris,
2066 since it's not in the default library search path.
2068 2002-05-29 jacob berkman <jacob@ximian.com>
2070 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2072 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2074 * test/screen-review-test.c:
2075 (text_chunk_pad_string):
2076 Added method, which pads the string according to the
2077 text bounds of the chunk. It also takes a 3-character
2078 string as a param which indicates the characters to be
2079 used for start, padding, and end delimitation of the chunk.
2080 (text_chunk_to_string):
2081 Changed to use text_chunk_pad_string.
2083 * configure.in: Fixed bug in AC_OUTPUT that was
2084 causing path substitution in Accessibility_Registry.server
2087 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2089 * text/screen-review-test.c:
2090 (guess_string_clip):
2091 New method which attempts a best-guess at clipping
2092 text from components (like Java labels) which don't
2093 actually implement AccessibleText. This inaccurate
2094 clip is based on the assumption that the label is
2095 justified left-and-right, and monospaced.
2096 (text_chunk_get_clipped_string):
2097 We now call guess_string_clip() for text-containing
2098 components that don't implement AccessibleText.
2100 * test/screen-review-test.c:
2101 (review_buffer_get_text_chunk):
2102 We now pull "name" from labels if they do not implement
2103 AccessibleText (i.e. for Java labels).
2104 (get_screen_review_line_at):
2105 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2108 Replaceded AC_OUTPUT target
2109 registryd/Accessibility_Registry.server with
2110 registryd/Accessibility_Registry.server.in.
2112 * registryd/Accessibility_Registry.server.in:
2113 Removed (this is now a Makefile target).
2115 * registryd/Accessibility_Registry.server.in.in:
2116 Added (source for target above). We now use $(libexecdir) as
2117 prefix for the executable at-spi-registryd.
2119 * registry/Makefile.am:
2120 Now install at-spi-registryd into $(libexecdir), and build .server
2121 file with path (see above).
2123 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2125 * test/screen-review-test.c:
2126 (text_chunk_get_clipped_string):
2127 We now check to see if words fall within clip bounds
2128 before resorting to character-by-character clip bounds testing.
2130 * TODO: Added a section for "2.2 Proposed API Additions".
2132 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2134 * test/screen-review-test.c:
2136 Added a screen review benchmarking and test program to test
2139 * cspi/spi_accessible.c:
2141 Made some of the debug strings passed to cspi_check_ev a
2142 little more specific.
2144 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2146 * test/screen-review-test.c: Fix crashes in debug statements
2148 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2150 * test/screen-review-test.c: Added this file.
2152 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2154 * atk-bridge/bridge.c: changed "object:state-change" to
2155 "object:state-changed" to match docs.
2157 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2159 * atk-bridge/bridge.c: Hooked up state-change event details.
2161 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2163 * registryd/registry.c:
2164 Fixed quarking bug in event string parsing; now events with
2165 detail parameters get matched correctly to listeners.
2168 * util/idl/Magnifier.idl: remove.
2170 * util/*.[ch]: Remove.
2171 Magnification utilities and IDL are now in module gnome-mag.
2173 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2175 * registryd/deviceeventcontroller.c:
2176 Fixed bug in grab key conversion which was causing keycode grabs
2177 to be converted to AnyKey grabs.
2180 updated NEWS file to reflect recent spin-off of gnome-mag.
2182 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2184 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2185 busted AccessibleStateSet_compare. Removed redundant casts.
2187 * cspi/spi-action.c: Removed redundant casts.
2189 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2191 * cspi/spi_component.c: Fixed typos and casting error.
2193 * cspi/spi_editabletext.c: Removed redundant casts.
2195 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2197 * cspi/spi_hypertext.c: Eliminated redundant casts.
2199 * cspi/spi_image.c: Eliminated redundant casts.
2201 * cspi/spi_registry.c: Eliminated redundant casts.
2202 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2203 * cspi/spi_selection.c: Removed redundant casts.
2204 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2205 handling. Screen geometry and text offsets were being returned as 0
2206 on error which is technically valid-- changed these to return -1.
2207 Added marshaller for text boundary types to fix bug with boundary
2208 types being passed incorrectly to atk.
2210 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2213 * cspi/spi_registry.c:
2214 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2215 which was uncovered by the recent key changes.
2217 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2219 * test/event-listener-test.c:
2221 Added new test, "event-listener-test";
2222 this code does two things; it benchmarks traversal time
2223 for the accessible hierarchy for the first running accessible
2224 app, and it connects listeners for all supported event types.
2225 It is thus useful as an example event listener and for
2226 diagnostics/debugging of event generation.
2228 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2231 Removed unnecessary dependency on libutil.
2234 Revved micro version: 0.13.1
2236 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2239 Removed util/Makefile from targets.
2242 Removed util subdir from SUBDIRS (temporarily,
2243 pending removal of magnifier-only code
2247 #ifdef-ed out magnifier dependencies, since
2248 magnifier IDL, headers, and binary now live in
2249 module gnome-mag and we don't want at-spi to depend
2250 on gnome-mag. A magnifier demo which can run alongside
2251 simple-at is forthcoming in the gnome-mag module.
2253 NOTE: Split magnifier binary, IDL, and magnification
2254 activation code from at-spi into module gnome-mag.
2256 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2258 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2259 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2261 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2264 Revved to version 0.13.0
2266 * idl/Accessibility_Registry.idl:
2267 Changed definition of KeySet from sequence of longs to sequence of
2268 KeyDefinitions, and added KeyDefinition struct.
2269 Required for fix to bug 80616.
2271 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2272 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2273 to use new definition (see above).
2275 * registryd/deviceeventcontroller.c: handle_keygrab(),
2276 spi_keyset_contains_key():
2277 Changed to make use of new struct; this allows matching based on
2278 string key-name, for instance "Tab". This also allows matching of
2279 composed characters, non-alphanumeric characters in a way that
2280 doesn't involve dependencies on X keysym codes directly, etc.
2282 * test/key-listener-test.c:
2283 Added test for Alt-Tab key using "string" specification of keyset,
2284 and modified one of the tests to use a keycode-based keyset.
2285 Thus this test both tests and demonstrates the creation and use of
2286 keysets of three forms: specified via keycode array,
2287 keysym array, and string array. (The string case only contains a
2288 single string, i.e. a string array of length 1).
2291 Turned on PRINT_TREE option by default. Also fixed a
2292 string-freeing bug in the PRINT_TREE code.
2293 Added a listener to window:minimize events.
2295 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2297 * atk-bridge/bridge.c:
2298 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2299 for window:activate and window:deactiveate
2300 (atk_bridge_property_event_listener atk_bridge_signal_listener
2301 atk_bridge_window_event_listener) Tidy debug code
2303 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2305 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2306 Fixed handling for NULL return value from ATK.
2308 * libspi/action.c libspi/component.c libspi/editabletext.
2309 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2310 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2311 Removed redundant casts.
2313 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2314 Fixed off by one bug.
2316 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2317 function not present in idl)
2319 2002-05-02 jacob berkman <jacob@ximian.com>
2321 * atk-bridge/Makefile.am: make atk-bridge a real module
2323 2002-04-26 Radek Doulik <rodo@ximian.com>
2325 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2326 atk_state_types table
2328 2002-04-22 jacob berkman <jacob@ximian.com>
2331 * libspi/Makefile.am: add deps on the built files to help
2332 automake, and don't version the ORBit typelib
2334 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2336 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2337 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2338 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2339 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2340 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2341 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2342 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2343 libspi/accessible.h libspi/accessible.h libspi/base.h
2344 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2345 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2346 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2347 libspi/spi-private.h libspi/statetset.h libspi/table.h
2348 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2349 util/mag_client.h util/mag_control.c util/mag_image.c
2350 util/mag_image.h util/magnifier.c util/magnifier.h:
2351 Add missing file headers; standardize existing ones
2353 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2355 * atk-bridge/bridge.c: Added window event support.
2357 2002-04-18 Michael Meeks <michael@ximian.com>
2359 * libspi/relation.c (impl_getNTargets): impl.
2360 (impl_getTarget): impl.
2362 * libspi/Makefile.am: fix stateset install.
2364 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2367 Started putting useful info in this file.
2369 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2371 * atk-bridge/bridge.c:
2372 Propagate state-changed notifications to ATs
2374 * cspi/spi_registry.c: update docs to reflect actual behavior of
2375 state-change events.
2377 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2380 Incremented version to 0.12.1
2382 * util/mag_client.h:
2383 Add missing declaration for magnifier_exit,
2384 used by mag_control.c - Forte compiler didn't like
2385 the implicit redeclaration of the function :-(
2388 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2391 Revved version to 0.12 due to API change (see below).
2393 * cspi/spi-roletypes.h:
2394 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2395 definition from the inline docs, and added docs
2396 for SPI_ROLE_LAST_DEFINED.
2399 * cspi/spi_streamablecontent.c:
2400 Added missing seek_type parameter to
2401 (so far unused) method,
2402 AccessibleStreamableContent_seek().
2403 [ RT approval JodyG. ]
2406 Fixed docs for SPI_createAccessibleKeystrokeListener.
2408 * cspi/spi_registry.c:
2409 Fixed docs for SPI_KEYSET_ALL_KEYS.
2411 * docs/reference/cspi/at-spi-cspi-sections.txt:
2412 Added a number of missing APIs to SECTIONS.
2414 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2416 * registryd/Makefile.am:
2418 * cspi/bonobo/Makefile.am:
2419 Add $(X_LIBS) to makefiles.
2421 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2424 Revved version to 0.11.
2426 * libspi/component.c:
2427 Added implementation for grabFocus.
2429 * idl/Accessibility_Component.idl
2430 (Accessibility_Component_grabFocus):
2431 Made this method return boolean to indicate success or failure, to
2432 be consistent with cspi and the corresponding ATK method.
2434 * idl/Accessibility_Selection.idl
2435 (Accessibility_Selection_selectAll) :
2436 Made these methods return boolean to indicate success or
2437 failure, to be consistent with cspi and the corresponding ATK methods.
2439 * idl/Accessibility_EditableText.idl
2440 (Accessibility_EditableText_setTextContents,
2441 Accessibility_EditableText_insertText,
2442 Accessibility_EditableText_cutText,
2443 Accessibility_EditableText_deleteText,
2444 Accessibility_EditableText_pasteText):
2445 Made these methods return boolean to indicate
2448 * cspi/spi_editabletext.c:
2449 Made these methods return booleans.
2451 * libspi/selection.c:
2452 * libspi/component.c:
2453 * libspi/editabletext.c:
2454 Connected the boolean returns from ATK
2455 to the server-side code referenced above.
2457 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2459 * idl/Accessibility_Table.idl: Added missing methods,
2460 Accessibility_Table_addRowSelection,
2461 Accessibility_Table_addColumnSelection,
2462 Accessibility_Table_removeRowSelection,
2463 Accessibility_Table_removeColumnSelection.
2466 Added C wrappers for above IDL:
2467 AccessibleTable_addRowSelection,
2468 AccessibleTable_addColumnSelection,
2469 AccessibleTable_removeRowSelection,
2470 AccessibleTable_removeColumnSelection.
2473 Added server-side implementation code for IDL above, connecting
2474 to pre-existing ATK api.
2476 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2478 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2480 * libspi/accessible.c: Added implementation fo
2481 Accessibility_Accessible_get_state.
2483 * libspi/libspi.h: Added stateset.h to the list of includes.
2485 * libspi/stateset.c: Fixed broken implementation.
2487 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2490 Added implementation code for Accessibility_Magnifier_exit ().
2492 * util/mag_control.c:
2493 Added test code for above method; you can
2494 now kill an existing magnifier via
2495 ./mag_control q, from the util directory.
2497 * test/key-listener-test.c:
2499 Added a new test, for our key listener API.
2501 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2503 * test/app.c, test/keysynth-demo.c:
2505 Replace use of snprintf with g_snprintf.
2506 (fix for bugzilla 78249)
2508 2002-03-27 Michael Meeks <michael@ximian.com>
2512 * util/Makefile.am (INCLUDES): fix.
2513 (DONT_DIST_SOURCE): don't distribute the
2516 * libspi/Makefile.am (dist-hook): ditto.
2518 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2520 * libspi/hypertext.c:
2521 Fix warnings when yelp is used with atk-bridge
2523 2002-03-21 Michael Meeks <michael@ximian.com>
2525 * libspi/application.c (spi_application_new):
2526 use spi_accessible_construct so we use the AtkObject
2529 2002-03-19 Michael Meeks <michael@ximian.com>
2531 * registryd/registry.c (desktop_remove_application),
2532 (desktop_add_application): clean coding style.
2534 * registryd/desktop.c (spi_desktop_remove_application),
2535 (spi_desktop_add_application): kill re-enterency hazards.
2536 (spi_desktop_dispose): remove bogus redundant cast
2537 obscuring bug; fix bug too.
2538 (spi_desktop_init): make the desktop object immortal.
2540 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2543 Added a #define-guarded tree-traversal step
2544 when enumerating the apps (diagnostic tool).
2546 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2548 * idl/Accessibility_Role.idl:
2549 Added ROLE_DRAWING_AREA which seemed to be missing from the
2552 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2554 * cspi/spi-roletypes.h cspi/spi_accessible.c
2555 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2558 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2559 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2560 AT when applications are added and removed from the desktop. This
2561 reverts the previous broken implementation using the backing
2562 AtkObject for the SpiDesktop.
2564 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2566 * registryd/desktop.c: emit the "children-changed::add" and
2567 "children-changed::remove" signals on the backing ATK object for
2568 the desktop so AT can tell when applications are started and shut
2571 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2573 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2575 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2577 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2579 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2581 * cspi/state-types.h: synched with IDL and ATK
2583 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2585 * libspi/accessible.c
2586 (impl_accessibility_accessible_get_child_at_index):
2587 Change return value for g_return_if_fail ()
2588 to CORBA_OBJECT_NIL instead of "0" (!)
2590 * registryd/Makefile.am:
2591 * registryd/Accessibility_Register.server.in:
2592 Changed name of executable, "registryd",
2593 to something more informative:
2596 2002-03-13 Michael Meeks <michael@ximian.com>
2598 * atk-bridge/bridge.c (atk_bridge_init): don't register
2599 if we're in a bonobo-component, rather than a bonobo app.
2601 2002-03-13 Michael Meeks <michael@ximian.com>
2603 * atk-bridge/bridge.c (gtk_module_init): split
2604 out body to (atk_bridge_init): here, since otherwise
2605 we get symbol conflicts and oddness when invoked
2606 from (gnome_accessibility_module_init): here (upd.)
2608 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2611 New file. Explicitly allow "build sheriff" putbacks provided
2612 they are tested on Solaris.
2614 * docs/reference/cspi/Makefile.am:
2615 Added '-' to the "cp" command for index.sgml.
2616 ("patch by thomasvs, soon coming to a GUADEC near you")
2619 Incremented version number (0.9.0) for new release.
2620 Changed macro that checks for popt, to better detect
2621 obsolete versions of popt.
2624 Added X_LIBS to AC_SUBST, for applications
2625 that call Xlib API directly.
2628 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2631 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2634 Fix regression caused by hard-coding major
2635 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2638 * test/test-simple.c (test_editable_text),
2639 (test_test): revert previous change (error was
2640 a regression in gail which is now fixed).
2642 2002-03-04 Michael Meeks <michael@ximian.com>
2644 * test/test-simple.c (test_editable_text),
2645 (test_text): pass G_MAXINT instead of '-1' for
2646 whole string - is this a good thing !?
2648 * cspi/spi_accessible.c
2649 (Accessible_getRelationSet): fix crasher bug
2650 overwriting the end of the array.
2652 * test/test-simple.c (validate_accessible): free,
2653 not g_free returned relation set.
2655 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2657 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2658 implemented stateset support
2660 * idl/Accessibility_State.idl: Made necessary changes to
2661 the IDL to support state sets.
2663 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2665 * registryd/deviceeventcontroller.c:
2666 Added implementation for generateMouseEvent.
2668 * cspi/spi_registry.c:
2669 Connected new implementation for generateMouseEvent
2672 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2675 Incremented revision (but no change in public API
2676 outside of 'utils', which are not installed public yet.)
2678 * libspi/component.c:
2679 Changed to use atk_component API for layers and
2680 mdi_zorder, instead of deprecated atk_object API.
2682 Magnification Utility Enhancements:
2685 Added implementation of createZoomRegion, clearAllZoomRegions,
2686 resizeZoomRegion. Added new commandline argument
2687 "--no-initial-region". Note that clearAllZoomRegions doesn't
2688 unmap the old '0' region as it should (yet), and the other
2689 methods only work when creating/resizing a single region,
2690 which is "region 0".
2691 (Code for multiple region support will be added later.)
2694 Now we raise the magnifier window each time it's refreshed;
2695 this will help keep it on top.
2697 * util/mag_client.h:
2698 Added simple wrappers for above, used by mag_control.
2699 For general use, it's recommended to use the bonobo magnifier
2700 control API directly instead of using these wrappers.
2703 Moved ZoomRegionData from magnifier.c to this file.
2705 * util/mag_control.c:
2706 Added some code to exercise new IDL implementations.
2708 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2710 * libspi/text.c: Provide implementation for getAttributes.
2712 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2715 Incremented revision.
2717 * test/test-simple.c:
2718 Replaced use of deprecated g_main_iteration with
2719 g_main_context_iteration.
2721 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2724 Incremented revision for desktop alpha 2.
2726 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2728 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2731 * test/simple-at.c: include netinet/in.h.
2733 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2735 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2736 use NULL, not CORBA_OBJECT_NIL.
2738 * libspi/accessible.c:
2739 (impl_accessibility_accessible_get_relation_set):
2740 allocate the sequence correctly.
2742 * libspi/remoteobject.h: kill spi_remote_object_new.
2744 * test/test-simple.c: (validate_accessible): add code
2745 to test relation sets, now all we need is to figure
2746 out how to excercise this code path :/
2748 2002-01-18 Michael Meeks <michael@ximian.com>
2750 * test/test-simple.c
2751 (key_listener_cb): consume the key.
2752 (test_keylisteners): update.
2753 (main): wait for any pending unrefs on events.
2755 * registryd/deviceeventcontroller.c
2756 (spi_controller_update_key_grabs): only re-issue the
2757 grab on a key release.
2758 (spi_device_event_controller_forward_key_event):
2759 refresh the keygrabs before we notify the listeners,
2760 to reduce the X ungrab / re-grab race.
2761 (spi_controller_register_with_devices): remove
2762 XSelectInput - we do that with the gdk_window_ call.
2763 (_spi_controller_device_error_handler): return a value.
2764 s/GDK_DISPLAY/spi_get_display/
2766 2002-01-17 Michael Meeks <michael@ximian.com>
2768 * registryd/deviceeventcontroller.c
2769 (_deregister_keygrab): don't blow out the later
2772 * test/test-simple.c (test_keylisteners): do a
2773 more intelligent validation.
2775 2002-01-14 Michael Meeks <michael@ximian.com>
2777 * atk-bridge/bridge.c
2778 (gnome_accessibility_module_init),
2779 (gnome_accessibility_module_shutdown): impl.
2780 (gtk_module_init): protect vs. double inits.
2781 (add_signal_listener): impl.
2782 (spi_atk_bridge_state_event_listener): kill
2783 (deregister_application): split out of
2784 (spi_atk_bridge_exit_func): here.
2786 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2789 Added caret tracking when using magnifier, and
2790 now use text bounds for focus tracking of text elements, rather than
2791 the component bounds - this is helpful for short text fields in long
2792 table cells, at high magnification.
2794 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2796 * registryd/deviceeventcontroller.c:
2797 Regression fix for keylistener de-registration; global keygrabs
2798 were not being released when deregisterKeystrokeListener was
2799 called in cspi, since
2800 Accessibility_DeviceEventController_deregisterKeystrokeListener
2801 was called with a zero-length keyset. That is because the cspi
2802 method, SPI_deregisterKeystrokeListener, does not take a keyset
2803 parameter but instead should remove all the key grabs held be a
2805 The code in impl_deregister_keystroke_listener was changed to copy
2806 the keylist from the listener instance previously registered with
2807 the DeviceEventController before releasing the grabs.
2809 * registryd/registry.c:
2810 * registryd/deviceeventcontroller.c:
2811 * libspi/spi-private.h:
2813 Changed spelling of "re-enterant" to "re-entrant" globally.
2815 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2817 * test/test-simple.c:
2818 Changed key listeners test - the test was slightly mis-using the
2819 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2820 It now uses '=' as the key event listened to and generated,
2821 relying on a keysym match rather than assuming that keycode 33
2822 is always equal to keysym '!'.
2824 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2827 Changed simple-at to use a specific keyset, rather than
2828 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2829 manager, desktop, etc.
2831 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2833 * registryd/deviceeventcontroller.c:
2834 Replaced standard X error handler with a special handler that
2835 is non-fatal for failed keygrabs. This works around
2836 problems with keygrab clashes sometimes observed on
2838 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2839 mouse handling code as yet).
2841 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2844 Incremented revision for desktop alpha release.
2847 Fixed a couple of the more glaring errors (still not
2850 2002-01-11 Michael Meeks <michael@ximian.com>
2852 * registryd/deviceeventcontroller.c
2853 (spi_device_event_controller_forward_key_event): kill
2854 XUngrabKey / XKeyGrab race.
2855 (spi_controller_grab_keyboard): rename to
2856 (spi_controller_update_key_grabs): this, and deal
2857 with incremental adding / removing grabs more
2859 (_register_keygrab): ensure we're not pending a remove.
2860 (spi_grab_mask_free): impl.
2861 (spi_controller_register_global_keygrabs): split out
2863 (handle_keygrab): impl.
2864 (_deregister_keygrab): impl.
2865 (spi_controller_deregister_global_keygrabs): impl.
2866 (spi_controller_update_key_grabs): re-issue the grab if
2867 we just recieved a notification.
2869 * test/test-simple.c (key_listener_cb): remove debug.
2871 * registryd/deviceeventcontroller.c
2872 (spi_controller_register_device_listener): after
2873 registering a global keygrab, actualy register it !
2874 don't wait for a timeout; doh !
2876 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2877 to make it more readable / manipulable.
2878 s/grabmask/grab_mask/ s/refcount/ref_count/
2879 s/keyval/key_val/ s/modmask/mod_mask
2881 2002-01-08 Michael Meeks <michael@ximian.com>
2883 * registryd/deviceeventcontroller.c
2884 (spi_controller_register_with_devices): use gdk calls to
2886 (global_filter_fn): implement the filter.
2887 (spi_device_event_controller_check_key_event): rename to
2888 (spi_device_event_controller_forward_key_event): this & upd.
2889 (spi_get_display): replace with GDK_DISPLAY.
2891 * registryd/deviceeventcontroller.c
2892 (spi_controller_deregister_device_listener): unroll into
2893 (impl_deregister_keystroke_listener): here to simplify.
2894 (spi_controller_register_global_keygrabs): split cut and
2895 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2896 (spi_controller_deregister_device_listener): remove.
2897 (impl_register_mouse_listener): remove, no mouse listener
2898 support in at-spi-1.0
2900 * registryd/registry.c
2901 (_device_event_controller_hook): kill.
2902 (spi_registry_init): upd.
2904 * registryd/deviceeventcontroller.c
2905 (spi_device_event_controller_class_init): upd.
2906 (spi_check_key_event): merge into.
2907 (spi_device_event_controller_check_key_event):
2908 here and kill strange static ev init, don't leak
2909 the x_event - nor dynamicaly allocate it.
2911 * registryd/registry-main.c (main): re-direct
2912 timeout to remove strange vtable mess.
2914 * registryd/deviceeventcontroller.c
2915 (remove_listener_cb): impl.
2916 (spi_controller_deregister_device_listener):
2917 fix re-enterancy hazard.
2919 2002-01-07 Michael Meeks <michael@ximian.com>
2921 * registryd/deviceeventcontroller.c
2922 (spi_device_event_controller_new): upd.
2923 (impl_notify_listeners_sync): upd. debug.
2924 (spi_notify_keylisteners): fix re-enterancy hazards,
2925 prettify, remove O(n*n) iteration.
2926 (spi_controller_grab_keyboard): fix iteration.
2927 (spi_check_key_event): re-format to suit coding style.
2928 Clean all the warnings - we're warning free.
2930 * registryd/deviceeventcontroller.h:
2931 * registryd/registry.h: make mutualy referential with
2932 typesafe forward references instead of (!) void pointer
2935 2002-01-11 Michael Meeks <michael@ximian.com>
2937 * cspi/spi_accessible.c (role_names): add a role name
2938 to sync this array with the enum; and make the regression
2941 2002-01-10 Michael Meeks <michael@ximian.com>
2943 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2944 allow expansion of enumeration & kill warning.
2946 * test/test-simple.c (key_listener_cb): impl.
2947 (test_keylisteners): impl.
2949 * cspi/spi-listener.h: make listener signatures const
2950 on the provided (const) events.
2952 * test/keysynth-demo.c: upd. to const events.
2954 * test/simple-at.c: ditto.
2956 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2959 Rev the version to 0.5 (the previous tarball was named 0.4,
2960 even though the micro number was 3), so we need to rev upwards
2961 again for beta2/"desktop-alpha"
2964 Checked in a demo script, which requires editing before use!
2965 Proceed with caution.
2968 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2970 * cspi/spi_accessible.c:
2971 Add a couple of missing enum initializations, and fix some enum
2974 * cspi/spi_registry.c:
2975 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2977 * docs/reference/cspi/at-spi-cspi-sections.txt:
2978 Remove/fix a couple of broken document references.
2981 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2982 as Alt-Control to listen for commands, since on some systems
2983 Control-Alt may already be grabbed.
2985 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2988 Update version number to 0.4 for Beta2.
2990 * libspi/accessible.c, libspi/accessible.h:
2991 Expose spi_accessible_construct, to enable libgail-gnome
2992 construction from spi_accessible subtype.
2994 * utils/magnifier.c:
2995 Workaround for bug in some non-gnome-compliant window managers
2996 which made magnifier resize improperly.
2998 2002-01-09 Bill Haneman <bill.haneman@sun.com>
3000 * libspi/accessible.c: (spi_accessible_new) :
3001 Move the test for SPI_IS_REMOTE_OBJECT to
3002 spi_accessible_new_return, fixing a bug and compile time warning.
3004 2002-01-08 Michael Meeks <michael@ximian.com>
3006 * registryd/registry.c (parse_event_type): remove strndup.
3008 * libspi/Makefile.am (libspi_la_SOURCES): remove
3009 sources already included in the headers section.
3011 * libspi/util.c: add.
3013 * libspi/spi-private.h: add.
3015 * registryd/registry.c: update to moved list iterators.
3017 2002-01-05 Michael Meeks <michael@ximian.com>
3019 * test/simple-at.c (main): upd. auto-module set to atk-bridge
3021 * test/test-simple.c (main): ditto.
3023 2002-01-04 Michael Meeks <michael@ximian.com>
3025 * libspi/accessible.c (spi_accessible_new): remove 2nd,
3026 redundant construct.
3028 * registryd/registry.c
3029 (get_listener_list): impl.
3030 (impl_accessibility_registry_register_global_event_listener):
3031 re-impl. to simplify using ~, remove dodgy const cast off.
3032 (parse_event_type): constify.
3033 (impl_accessibility_registry_deregister_global_event_listener_all):
3034 re-write, more efficiency and simplicity, kill re-enterancy
3036 (compare_listener_corbaref, compare_corba_objects),
3037 (compare_listener_quarks): define out.
3038 (impl_accessibility_registry_deregister_global_event_listener):
3039 re-write for effiency, and nail re-enterancy hazard.
3040 (impl_accessibility_registry_get_desktop_list): impl.
3041 (re_enterant_list_delete_link): impl.
3042 (re_enterant_list_foreach): impl.
3043 (remove_listener_cb): impl.
3044 (_registry_notify_listeners): kill.
3045 (notify_listeners_cb): impl.
3047 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
3048 (SPI_getDesktopList): impl.
3050 * test/test-simple.c (test_desktop): test the methods.
3052 2002-01-03 Michael Meeks <michael@ximian.com>
3054 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
3055 keystrings since we free them
3056 (SPI_freeAccessibleKeySet): in here.
3058 * libspi/accessible.c (spi_accessible_new): kill warning,
3059 wonder what is going on with the constructor here.
3061 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3063 * libspi/accessible.c (spi_accessible_new ()) :
3064 Added check to see if AtkObject is an SpiRemoteObject before
3065 creating an SpiAccessible.
3067 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3069 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3070 Enable keygrabs using the Control modifier, now that they are
3071 working properly (they were previously disabled).
3074 Change the command keygrab for this demo to "Control+Alt", so as
3075 to conflict with fewer other key commands on the system; this
3076 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3078 Removed a pointlessly-chatty keylistener for unshifted keys
3079 (shifted keys are still reported).
3081 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3083 * libspi/remoteobject.h:
3084 * libspi/remoteobject.c:
3085 Added definitions for special AtkObject subtype, required for
3086 support of remote components (specifically, used by BonoboControl
3087 accessibility implementation).
3089 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3091 * cspi/spi.h: synched relation types with ATK
3093 * cspi/spi_accessible.c: Added implementations of
3094 AcccessibleRelation_* methods
3096 * idl/Accessibility_Relation.idl: added getRelationTypeName
3097 method. Synched known relation types with ATK. Allowed for
3098 relation type extension with the RELATION_EXTENDED type.
3100 * libspi/relation.c: Provided implementations for
3101 AccessibleRelation methods.
3103 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3105 API tweaks for today's API 'freeze'.
3108 Added placeholder functions to allow future compatible expansion
3109 of the IDL interfaces.
3111 * idl/Accessibility_Registry.idl:
3112 Changed generateKeyEvent to generateKeyboardEvent. Changed
3113 signature of this method to accept an optional keystring in
3114 parameter (for complex text input synthesis) and changed use of
3115 simple 'boolean' parameter in registerKeystrokeListener to a
3116 struct, EventListenerMode.
3118 * cspi/spi_accessible.c:
3120 * cspi/spi_streamablecontent.c:
3121 Added references to AccessibleStreamableContent interface, and
3122 definition and implementation of AccessibleStreamableContent
3125 * cspi/spi_registry.c:
3127 Changed generateKeyEvent API to generateKeyboardEvent,
3128 taking a new (optional) keystring parameter to support complex
3133 Renamed directory (to better reflect its actual purpose, bridging
3134 from at-spi to ATK). The .so module is also now named
3137 * idl/Accessibility_Hypertext.idl:
3138 * libspi/accessible.c:
3139 * libspi/hypertext.h:
3140 * libspi/hypertext.c:
3141 Changed Accessibility_Hypertext to *not* derive from
3144 * cspi/spi_registry.c:
3145 Added list of legal event type names for 'window' events, which
3146 completes the registry event API.
3148 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3150 * at-bridge/bridge.c: Added registration for separate
3151 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3152 signals. If either of the first two parameters to the generic
3153 bridge signal handler are ints, they are passed on as event
3154 details. This allows an AT to determine what text was inserted.
3156 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3158 * registryd/deviceeventcontroller.c:
3159 Fixed regressions in generateKeyEvent caused by the removal of
3160 gdk_init from registryd; we now use pure X calls to connect to the
3161 display, which makes sense because deviceeventcontroller already
3162 uses a fair bit of X API (should eventually be migrated to a
3163 'portability layer').
3165 * registryd/desktop.c:
3166 Fixed minor regression in spi_desktop_init, changed the way the
3167 desktop name is being set to work with new spi_base API
3168 (gobject-based, rather than AtkObject-based).
3170 * registryd/Makefile.am:
3171 Minor revision of makefile to use XTST_LIBS variable rather than
3172 hard-wiring the Xtst LD_ADD element.
3174 * test/keysynth-demo.c:
3175 Tweaked an output message; added initialization of the
3176 'keystrings' member of the "switch listener" key_set.
3178 * libspi/relation.c:
3179 Squashed compile-time warning.
3181 * libspi/accessible.c:
3182 Cosmetic and formatting fixes, renamed a static method.
3184 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3186 * libspi/accessible.c
3188 * libspi/application.c
3191 * libspi/component.c
3192 * libspi/editabletext.c
3193 * libspi/hyperlink.c
3194 * libspi/hypertext.c
3196 * libspi/selection.c
3200 * registryd/desktop.c:
3201 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3203 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3205 * idl/Accessibility_Registry.idl:
3206 Added boolean member 'is_text' to DeviceEvent. This is for the
3207 use of key events, and helps prevent ambiguity between composed
3208 key strings and keysym names, since both may potentially be
3209 returned in the 'event_string' member.
3211 * at-bridge/bridge.c:
3212 * registryd/deviceeventcontroller.c:
3213 Use the 'is_text' member when notifying device event listeners.
3214 Knon issue: composed characters are not dealt with correctly by
3215 the global key listener implementation yet.
3217 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3219 * at-bridge/bridge.c:
3220 Namespaced local static methods to spi_atk_bridge_* where
3221 previously named bridge_*, and spi_* elsewhere.
3223 * at-bridge/bridge.c:
3224 * cspi/bonobo/cspi-bonobo-listener.c:
3225 Added demarshalling/conversion for string member of
3226 Accessibility_DeviceEvent to AccessibleKeystroke.
3228 * registryd/deviceeventcontroller.c:
3229 Added code to fill the Accessibility_DeviceEvent key string value
3230 member for global key events (i.e. from XGrabKey), to match
3231 behavior of Accessibility_DeviceEvent from the toolkit key events
3232 from the bridge. Fixed timestamp in global key event notifications.
3235 Added printout of key event's string value to
3236 report_ordinary_key_event, for demo/debugging purposes.
3238 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3240 * idl/Accessibility_Registry.idl:
3241 Removed Accessibility_KeyStroke structure in favor of generic
3242 Accessibility_DeviceEvent structure.
3243 Changed Accessibility_ControllerEventMask from a struct to an
3246 * at-bridge/bridge.c:
3247 Changed APIs to use DeviceEvent structure as above, and removed
3248 bogus casting between these event structures.
3250 * cspi/spi-listener.h:
3251 Added keystring member of AccessibleKeystroke structure, to enable
3252 matching on event "names" rather than only hardware codes and
3256 Added keystrings member of AccessibleKeySet struct, to allow
3257 matching on event names (as above).
3258 Added declarations for SPI_createAccessibleKeySet and
3259 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3260 event modmasks directly as unsigned ints rather than structs with
3261 refcounts, in the DeviceEventController methods.
3263 * cspi/spi_registry.c:
3264 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3266 * cspi/spi-roletypes.h:
3267 Added documentation of newly added SPI Roles.
3269 * cspi/bonobo/cspi-bonobo-listener.c:
3270 Changes in support of API changes above.
3272 * libspi/accessible.c:
3273 Converted APIs to use DeviceEvent structure (see IDL changes
3276 * registryd/deviceeventcontroller.c:
3277 Added DEControllerGrabMask structure to track keygrabs not only by
3278 modmask but by keyset as well; this allows us to do "global"
3279 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3280 grabbing on AnyKey and then filtering after-the-fact.
3281 Bugfixes for event filtration mean that we don't get false matches
3282 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3284 * registryd/deviceeventcontroller.c:
3285 Namespaced a number of static methods to use spi_ prefix. Major
3286 revision to internals of global (i.e. X) key grabs.
3288 * registryd/deviceeventcontroller.h:
3289 Removed keymask_list and added keygrabs_list to
3290 SpiDeviceEventController struct.
3293 Added use of SPI_createAccessibleKeySet API when creating a
3294 listener for only one key. Attach a listener to "shift spacebar
3295 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3296 X key event names to SPI key event names, so that listeners are
3297 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3299 * test/keysynth-demo.c:
3300 Changed (incorrect) use of X key event names (KeyPressed,
3301 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3304 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3306 * libspi/accessible.c:
3307 Convert all AtkRole enumerations to Accessibility_Role enums when
3308 getting a role from an AtkObject.
3310 * cspi/spi_accessible.c:
3311 Complete the conversion of Accessibility_Role enums at runtime to
3312 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3313 role enums correctly match those given in spi-roletypes.h.
3314 Re-synchronize the local names list for AccessibleRole_getName ().
3315 AccessibleRole_getName is now deprecated, since it duplicates the
3316 more reliable Accessible_getRoleName.
3317 Added some role types from Accessibility_Role.idl.
3319 * idl/Accessibility_Role.idl:
3320 Added some role types used by AtkRole.
3322 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3325 * cspi/spi_registry.c:
3327 * cspi/cspi-bonobo-listener.c:
3328 Namespaced all methods that did not begin with an "SPI_" or
3329 "Accessible" prefix to "SPI_".
3332 Homogenized internal function namespace to "cspi_" for statics.
3335 Patched tests to use the new CSPI API.
3337 * docs/reference/cspi/at-spi-cspi-sections.txt:
3338 Updated docs to reflect namespace changes, and added a number of
3339 methods to the documentation.
3341 * registryd/registry.c:
3342 Changed use of strings and string hashes in listener event
3343 matching and parse_event_string to use GQuark, which is guaranteed
3346 * registryd/registry.h:
3347 Squashed annoying warning.
3349 * idl/Accessibility_Role.idl:
3350 Extended range of available Accessibility_Role values.
3352 * cspi/spi_accessible.c:
3353 Re-ordered role names.
3355 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3357 * idl/Accessibility_Value.idl:
3358 Revert use of union back to CORBA_double, since the double type is
3359 more efficient and can contain the other types without loss of
3362 * idl/Accessibility_Accessible.idl:
3363 Added method Accessibility:Accessible:getRoleName, to complement
3364 Accessibility:Accessible:getRole.
3366 * cspi/spi_accessible.c:
3368 Added C binding for above, Accessible_getRoleName (), and changed
3369 signature of Accessible_getRole () to return an AccessibleRole.
3371 * cspi/spi-roletypes.h:
3372 Changed AccessibleRole_getName to return a char * instead of a
3373 const char *. This method is now at least temporarily deprecated
3374 in favor of asking Accessibles for their RoleNames directly.
3377 Revert to match Accessibility_Value.idl;
3381 Change signature of AccessibleValue methods to use double rather
3385 * cspi/spi_accessible.c:
3386 Changed Accessible_getRole to return an AccessibleRole enum rather
3387 than a UTF-8 string. The UTF-8 string can still be obtained via
3388 AccessibleRole_getName ().
3390 * test/test-simple.c:
3391 Add test_action. Small fixup to match API change to Accessible_getRole.
3394 Bugfix for get_action_from_servant ().
3396 2001-12-11 Michael Meeks <michael@ximian.com>
3398 * libspi/libspi.h: remove registry.h and
3399 desktop.h, deviceeventcontroller.h
3401 * libspi/Makefile.am: remove registry.[ch],
3402 desktop.[ch], deviceeventcontroller.[ch]
3404 * registryd/Makefile.am: add registry.[ch],
3405 desktop.[ch], rename registryd.c to registry-main.c.
3406 add deviceeventcontroller.[ch]
3408 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3411 Replace setenv() call with putenv ().
3413 * libspi/component.c:
3414 Bugfix in AccessibleComponent_getExtents (),
3417 2001-12-11 Michael Meeks <michael@ximian.com>
3419 * libspi/image.c (impl_getImageExtents): impl.
3420 (spi_image_class_init): upd.
3423 (AccessibleImage_getImageDescription): fix daft bug
3426 * test/test-simple.c (global_listener_cb): update
3427 to only quit if not --poke
3428 (main): catch --poke.
3429 (validate_accessible): upd. dumping, call test_image
3432 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3435 * idl/Accessibility.idl: update all IDL includes.
3437 * idl/*.idl - rename to namespace - this sucks, blame
3438 mjs' bad decision for oafd.
3440 * test/test-simple.c (create_test_window): add more tests.
3441 (create_tree): split this out.
3442 (validate_accessible): bugfix.
3444 2001-12-11 Michael Meeks <michael@ximian.com>
3446 * cspi/bonobo/cspi-bonobo-listener.c:
3447 (cspi_kestroke_listener_unref),
3448 (cspi_event_listener_unref): impl. undoing previous
3449 homenous environment - for Bill.
3451 * cspi/spi_table.c (long_seq_to_array): use
3454 * cspi/spi_main.c: split out all bonoboish bits into
3457 * cspi/spi-impl.h: upd. typedefs.
3459 * cspi/spi_registry.c: update to lowlevel API,
3460 return booleans to indicate success in some places.
3462 * cspi/spi_event.c: update to lowlevel API.
3464 * cspi/bonobo/Makefile.am: add.
3466 * cspi/bonobo/cspi-lowlevel.h: add
3468 * cspi/bonobo/cspi-bonobo.c: add
3470 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3472 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3473 (SUBDIRS): add bonobo, link in the libs.
3475 * cspi/spi-util.c: kill this file.
3477 * TODO: merge in my bits.
3479 2001-12-11 Michael Meeks <michael@ximian.com>
3481 * test/test-simple.c (test_value, test_table, main):
3482 remove unused variables causing warnings.
3484 * configure.in: cleanup checks - require gail.
3486 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3489 Changed Value interface to use SValue (scalars) rather than
3490 assuming all values are floats. This allows floats, doubles,
3491 longs, shorts, and unsigned values to be manipulated.
3492 Introduced Accessibility:SValue union.
3495 Updated to use new API above, and to work correctly with GValues
3496 of different types in AtkValue.
3499 Updated to use new API above. cspi's API is as yet unchanged.
3502 Updated the Value revision action item.
3504 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3506 * test/test-simple.c:
3507 Added test_table (GtkTreeView widget in test window to follow).
3508 Un-commented test_value, added GtkRange widget.
3509 Added GtkTreeView widget with GtkListStore. It passes regression
3510 test but leaks one SPI object for some reason.
3513 Fixed bug in impl__set_currentValue.
3515 2001-12-10 Michael Meeks <michael@ximian.com>
3517 * cspi/spi_text.c: audit for exception handling,
3518 tolerating NULL object references safely etc.
3520 * cspi/spi_value.c: ditto.
3522 * cspi/spi_table.c (AccessibleTable_getSummary),
3523 (AccessibleTable_getAccessibleAt),
3524 (AccessibleTable_getRowHeader),
3525 (AccessibleTable_getColumnHeader),
3526 (AccessibleTable_getCaption): fix bugs hidden by
3528 (long_seq_to_array): impl.
3529 (AccessibleTable_getSelectedRows),
3530 (AccessibleTable_getSelectedColumns): use it.
3532 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3535 Added a TODO list (rough and short for now).
3537 * cspi/spi_hyperlink.c:
3538 * cspi/spi_hypertext.c:
3539 Fixed macro name typos, and remove use of obsolete macro in
3540 AccessibleHyperlink_getLink.
3542 * cspi/spi_action.c:
3543 * cspi/spi_accessible.c:
3544 * cspi/spi_application.c:
3545 * cspi/spi_component.c:
3546 * cspi/spi_selection.c:
3549 Documentation fixes (removed return values from ref/unref methods).
3551 2001-12-10 Michael Meeks <michael@ximian.com>
3553 * cspi/spi_action.c: audit for exception handling,
3554 tolerating NULL object references safely etc.
3556 * cspi/spi_accessible.c: ditto.
3558 * cspi/spi_component.c: ditto.
3560 * cspi/spi_editabletext.c: ditto.
3562 * cspi/spi_hyperlink.c: ditto.
3564 * cspi/spi_hypertext.c: ditto.
3566 * cspi/spi_image.c: ditto.
3568 * cspi/spi_selection.c: ditto.
3570 2001-12-10 Michael Meeks <michael@ximian.com>
3572 * configure.in: use cspi/libspi.pc.in instead.
3574 * Makefile.am (pkgconfig_DATA): upd. to match.
3576 * test/simple-at.c (report_focus_event): kill hacks around
3577 bad return values, use putenv not setenv
3579 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3580 fire ChildGone - I killed it.
3582 * libspi/component.c
3583 (impl_accessibility_component_get_extents): remove
3586 * idl/Accessible.idl: kill ChildGone exception.
3588 * cspi/*.[ch]: kill int return from ref / unref.
3590 * cspi/spi_main.c (cspi_object_add_check): fold into
3591 (cspi_object_add): here.
3593 * cspi/spi_component.c (AccessibleComponent_getExtents):
3594 handle exceptions elegantly.
3596 * cspi/spi-private.h (cspi_check_ev_return),
3597 (cspi_return_if_fail): impl.
3599 * cspi/spi_accessible.c: use extensively.
3600 (AccessibleStateSet_equals): add direct compare check.
3602 * cspi/spi_selection.c: tolerate NULL objs, and check
3603 exceptions before return.
3605 * cspi/spi-util.c (cspi_warn_ev): rename to
3606 (cspi_check_ev): this & don't pass ev in; no point.
3608 2001-12-10 Michael Meeks <michael@ximian.com>
3610 * test/test-simple.c: use putenv not setenv
3611 (get_environment_vars): more chatty if you're not using
3614 * test/simple-at.c: do the setenv so more people see the
3617 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3619 * libspi/registry.c:
3620 Changed check of CORBA_environment on notification to be a warning
3621 instead of an error for the moment, since we can recover from this
3622 error when caused by a queued notification from a dead app.
3625 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3626 used by all current implementors of AtkValue), and coerce to
3627 CORBA_float. (Proper general case fix may require change to Value.idl).
3629 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3633 * cspi/spi_accessible.c:
3634 Documentation fixes: added user_data params to documentation for
3635 listeners and callbacks.
3637 * cspi/spi_accessible.c:
3638 Changed AccessibleStateSet_compare to return a
3639 StateSet rather than return the difference set into a third parameter.
3642 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3645 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3646 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3650 Remove subdirectory po from SUBDIRS for now.
3652 * at-bridge/bridge.c:
3653 Beefed up a couple of debug printouts.
3654 One-line fix for signal notification name formatting.
3656 * libspi/accessible.c:
3657 Added assertion to spi_accessible_new ().
3659 * libspi/application.c:
3660 Put #ifdef qualifiers around a printf.
3663 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3665 * registryd/Makefile.am:
3667 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3668 INTLTOOL_SERVER_RULE macro.
3671 Added an event listener for several ATK signals, for
3672 testing and debugging. Removed a few g_warnings.
3673 Added test output if focussed item implements the Value interface.
3675 * test/test-simple.c:
3676 Added test_value () function (known not to pass at the moment, so
3677 not actually called yet.
3679 2001-12-08 Michael Meeks <michael@ximian.com>
3681 * at-bridge/bridge.c (bridge_focus_tracker),
3682 (emit_eventv): fix the same ref. leak.
3683 (register_atk_event_listeners): don't leak.
3685 * cspi/spi-listener-impl.c (cspi_event): more
3686 protection from client code.
3688 * test/test-simple.c (test_desktop): unref the app.
3690 * test/Makefile.am: upd. TESTS.
3692 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3694 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3696 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3698 * cspi/spi_registry.c: constify in strings.
3699 (deregisterGlobalEventListenerAll): don't release the ref.
3701 * cspi/spi.h: start removing redundant / conflicting
3702 gtkdoc comments, making the API readable at a glance :-)
3704 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3706 * test/keysynth-demo.c (keysynth_exit, main): upd.
3708 * test/simple-at.c (main, simple_at_exit): upd.
3710 * test/test-simple.c (unutterable_horror): kill.
3711 (utterable_normal_derefs): kill.
3712 (main): upd & do a setenv before gtk_init, so that we
3713 can use memprof - and to save the pain of remembering
3714 this, if we're running under memprof - don't exit.
3716 * cspi/spi_main.c (SPI_exit): return exit status
3718 (SPI_event_quit): impl.
3719 (SPI_event_main): simplify.
3720 (cspi_is_gnome_app): kill.
3721 (SPI_init): kill isGNOMEapp arg.
3723 * at-bridge/bridge.c (register_atk_event_listeners):
3724 re-instate the unref.
3725 (bridge_exit_func): don't re-activate the registry,
3726 protect vs. theoretical re-entry, use the
3727 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3728 assert a clean shutdown - for regression tests.
3730 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3732 * configure.in: Comment out dummy i18n support for now,
3733 otherwise it fails to build.
3734 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3735 EXTRA_DIST. They are missing in tarball.
3737 2001-12-07 Michael Meeks <michael@ximian.com>
3739 * util/magnifier.c: kill bonobo activation reg. race.
3741 * libspi/component.c
3742 (impl_accessibility_component_get_extents): make it match
3745 * libspi/registry.c (_registry_notify_listeners):
3746 re-remove X headers & reconcile conflicts.
3747 (spi_listener_struct_free): bad conflict resolve.
3748 (impl_accessibility_registry_register_application):
3749 more bad merging fixed.
3750 (impl_accessibility_registry_deregister_application): ditto.
3751 (spi_registry_new): ditto.
3752 (spi_registry_init): don't have an applications field.
3754 [ merge fixups2 branch to here ]
3755 2001-12-07 Michael Meeks <michael@ximian.com>
3757 * test/simple-at.c (report_focus_event),
3758 (report_focussed_accessible): remove g_warning debug.
3760 2001-12-07 Michael Meeks <michael@ximian.com>
3762 * test/test-simple.c (validate_tree): comment out some checks.
3763 (test_desktop): app now not registered idly - horay.
3765 2001-12-07 Michael Meeks <michael@ximian.com>
3767 * cspi/spi_registry.c
3768 (registerAccessibleKeystrokeListener): clean, stop it leaking
3769 great swathes of memory, and device event controller references.
3770 ensure we always pass valid sequences.
3771 (deregisterAccessibleKeystrokeListener): ditto.
3772 (generateKeyEvent): upd.
3774 * at-bridge/bridge.c (bridge_key_listener): handle
3775 registry dead exception gracefully.
3776 (bridge_focus_tracker, emit_eventv): free ev.
3778 * test/simple-at.c (report_focus_event): fix polarity.
3780 * libspi/application.c (notify_listeners): kill the ev
3781 argument, and make sure we init the ev we use.
3782 (spi_application_object_event_listener): split out a chunk
3783 (get_atk_object_ref): here & fixup.
3784 (reverse_lookup_name_for_toolkit_event): make const.
3785 (spi_application_toolkit_event_listener): fixup, kill leaks
3788 * at-bridge/bridge.c (register_atk_event_listeners):
3789 don't unref the noop object - causes grief.
3791 * libspi/registry.c: remove the X headers.
3792 turn off the debug churn.
3794 * libspi/accessible.c (spi_accessible_new_return): only
3795 release the ref if we are supposed to [doh]
3797 * test/simple-at.c (report_button_press, report_focus_event):
3798 guard vs. unexpected exit.
3800 * at-bridge/bridge.c (gtk_module_init): prune printf.
3801 (bridge_exit_func): fix app unref.
3803 * libspi/Makefile.am: don't install registry or desktop.h
3805 * libspi/*.h: update includes.
3807 * libspi/application.h: don't include ourself, or
3808 other redundant headers.
3810 2001-12-06 Michael Meeks <michael@ximian.com>
3812 * libspi/accessible.c
3813 (get_accessible_from_servant): impl.
3814 Upd. all CORBA impl.s to use it killing cut and paste.
3816 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3818 (SPI_init): register atexit cleanup handler here.
3820 2001-12-06 Michael Meeks <michael@ximian.com>
3822 * at-bridge/bridge.c (gtk_module_init): g_error on
3823 activation exception
3825 2001-12-06 Michael Meeks <michael@ximian.com>
3827 * at-bridge/bridge.c (gtk_module_init): some sort of
3828 confusing merge clash - reverted.
3829 (bridge_idle_init): ditto.
3831 * test/test-simple.c (main, utterable_normal_derefs):
3832 merge from Bill - somehow not committed.
3834 2001-12-06 Michael Meeks <michael@ximian.com>
3836 * libspi/value.c (spi_value_class_init): upd.
3837 (spi_value_finalize): kill.
3839 * libspi/table.c (spi_table_finalize): kill.
3840 (spi_table_interface_new): upd.
3841 (spi_table_class_init): upd.
3842 (get_table_from_servant): impl.
3843 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3845 * libspi/selection.c (spi_selection_finalize): kill.
3846 (spi_selection_interface_new): upd.
3847 (spi_selection_class_init): upd.
3848 (get_selection_from_servant): impl.
3849 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3851 * libspi/relation.c (spi_relation_finalize): kill.
3852 (spi_relation_class_init, spi_relation_new): upd
3854 * libspi/image.c (spi_image_finalize): kill.
3855 (spi_image_class_init): upd.
3856 (spi_image_interface_new): upd.
3857 (get_image_from_servant): impl.
3858 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3860 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3861 (spi_hyperlink_finalize): kill.
3862 (spi_hyperlink_new): upd.
3863 (get_hyperlink_from_servant): impl.
3864 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3866 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3867 (spi_hypertext_finalize): kill.
3868 (spi_hypertext_class_init): upd.
3869 (get_hypertext_from_servant): impl.
3870 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3872 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3873 (spi_editable_text_interface_new): upd.
3874 (get_editable_text_from_servant): impl.
3875 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3877 * libspi/text.c (get_text_from_servant): impl.
3878 All impls - update to use it killing more cut and paste,
3879 also fix bad string returns on duff args ( a somewhat
3880 impossible case to handle - but hey ).
3881 (spi_text_construct): impl.
3882 (spi_text_interface_new): upd.
3883 (spi_text_object_finalize): kill.
3885 * libspi/component.c
3886 (accessibility_component_object_finalize): kill.
3887 (spi_component_class_init): upd.
3888 (get_component_from_servant): impl. helper to kill cut & paste.
3889 (impl_accessibility_component_contains):
3890 (impl_accessibility_component_get_accessible_at_point):
3891 (impl_accessibility_component_get_position):
3892 (impl_accessibility_component_get_extents):
3893 (impl_accessibility_component_get_mdi_z_order):
3894 (impl_accessibility_component_get_layer):
3895 (spi_component_interface_new): upd.
3897 * libspi/action.c (spi_action_finalize): kill.
3898 (spi_action_class_init): upd. inherit from SpiObject.
3899 (spi_action_interface_new): upd.
3900 (get_action_from_servant): impl. helper to reduce cut & paste.
3901 (impl_getKeyBinding, impl_getName, impl_doAction),
3902 (impl_getDescription): Use it everywhere.
3904 * cspi/spi_main.c (get_live_refs): a pointer hash.
3905 (spi_object_hash, spi_object_equal): comment out.
3906 There are issues with CORBA object hashing that need
3909 * libspi/application.c (spi_application_init),
3910 (spi_application_new): upd.
3912 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3913 (spi_accessible_class_init): upd.
3914 s/accessible/object/ in epv methods.
3916 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3918 * at-bridge/bridge.c:
3919 Reorder the bridge initialization into the bridge gtk_module_init,
3920 an immediate call to bridge_register_app, and an idle_add for
3921 register_atk_event_listeners (the only code that *must* wait until
3922 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3923 the activation, creates the application's Accessible object, and
3924 queues the bridge_idle_init function. Restored call to
3925 Accessibility_Registry_deregisterApplication().
3926 Prior to making this call we obtain a new reference to the
3927 registry, which is a temporary hack that helps us handle apps that
3928 shut down the bonobo mainloop before we get there.
3930 * libspi/registry.c:
3931 Fix string leakage in debug block, and don't segv if a an app
3932 dies before its event notifications have been propagated.
3935 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3936 as stopgap measure until we get proper exception handling when
3937 objects die during or before interrogation.
3941 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3942 Also changed default value of is_gnome_app to TRUE.
3945 * test/keysynth-demo.c:
3946 Changed use of SPI_init and SPI_event_main to reflect API change above.
3949 Made report_focus_event check the warning value from getName
3950 before reporting on focussed accessible; simplifies handling of
3951 notifications from dead objects.
3953 * test/test-simple.c: (Changes not in this patch since source is
3956 2001-12-05 Michael Meeks <michael@ximian.com>
3958 * registryd/registryd.c (main): protect against
3959 bonobo-activation startup race condition.
3961 * cspi/spi_main.c (cspi_object_add_check): cope
3962 with the exception elegantly.
3964 * idl/Accessible.idl: decl. ChildGone
3966 * libspi/desktop.c (spi_desktop_dispose): impl.
3967 (spi_desktop_class_init): upd.
3968 (spi_desktop_add_application),
3969 (spi_desktop_remove_application),
3970 (abnormal_application_termination): impl.
3971 (impl_desktop_get_child_at_index): re-impl.
3974 (impl_accessibility_registry_deregister_application),
3975 (impl_accessibility_registry_register_application):
3976 kill excessive debug clutter.
3978 * test/test-simple.c (test_misc): test some NULL
3979 tolerance. (main): upd.
3981 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3982 implements no interfaces - so let's not crash.
3984 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3986 * libspi/accessible.c (spi_accessible_new_return): impl.
3987 helper to calm the cut and paste, to cope with
3988 NULL AtkObjects effectively and efficiently, and to kill
3989 the referencing bugs.
3991 * libspi/table.c (impl_getAccessibleAt),
3992 (impl_getRowHeader, impl_getColumnHeader): upd.
3994 * libspi/hyperlink.c (impl_getObject): upd.
3996 * libspi/accessible.c
3997 (impl_accessibility_accessible_get_child_at_index): upd.
3999 * libspi/component.c
4000 (impl_accessibility_component_get_accessible_at_point): upd.
4002 * test/test-simple.c (test_editable_text, test_text): impl.
4005 * cspi/spi_editabletext.c
4006 (AccessibleEditableText_insertText): constify.
4008 * test/test-simple.c (focus_me): make more robust.
4010 * libspi/accessible.c: remove some printfs in methods that
4011 we test and work fine, so we can get a clean tree dump.
4013 * test/test-simple.c (validate_accessible),
4014 (validate_tree): make tree dumping pretty too.
4016 * at-bridge/bridge.c (bridge_signal_listener): upd. so
4017 it builds without debug on.
4019 * test/test-simple.c (validate_accessible): fix the most
4022 * cspi/spi_main.c (spi_object_release): leave the nicely
4023 blanked memory around if in debug mode.
4025 * cspi/spi-listener-impl.c (cspi_event): use add_check.
4027 [committed to fixups2]
4028 2001-12-05 Michael Meeks <michael@ximian.com>
4030 * libspi/editabletext.c
4031 (spi_editable_text_class_init): g_type_class_peek_parent,
4032 not interface peek - so we finalize cleanly.
4034 * libspi/accessible.c (spi_accessible_new): kill debug.
4036 * test/test-simple.c (validate_accessible): fix ref.
4037 leak, print strings before freeing them; sigh, comment a
4038 chunk out due to strangeness.
4039 (validate_tree): unref the child after use.
4041 * cspi/spi_component.c (AccessibleComponent_getLayer):
4042 add missing break statement, switch on zlayer not the
4043 uninitialized retval.
4045 * cspi/spi_main.c (cspi_object_add): add assert, local ref
4046 before (possibly re-entering) remote unref.
4048 * test/simple-at.c (main): unref the desktop.
4050 * cspi/spi_accessible.c (cspi_accessible_is_a): move
4053 * cspi/spi_main.c (cspi_accessible_is_a): here to
4054 isolate bonobo API usage more.
4056 * libspi/registry.c (impl_accessibility_registry_register_application):
4057 prune bogus comment.
4059 2001-12-04 Michael Meeks <michael@ximian.com>
4061 * test/test-simple.c (validate_tree): upd.
4062 IndexInParent check to make it more lucid.
4063 (validate_accessible): dump the tree.
4065 * libspi/accessible.c (de_register_public_ref),
4066 (get_public_refs): impl.
4067 (spi_accessible_new): make more efficient & intuitive.
4068 Now IndexInParent check works.
4070 2001-12-04 Michael Meeks <michael@ximian.com>
4072 * cspi/spi-util.h: remove.
4074 * cspi/spi.h: move SPI_freeString here
4076 * libspi/component.c (impl_accessibility_component_get_layer):
4078 (impl_accessibility_component_get_mdi_z_order): ditto,
4079 return -1 on error - is this ok ?
4081 * test/test-simple.c (test_application): impl.
4083 * cspi/spi_accessible.c (Accessible_getApplication),
4084 (Accessible_isApplication): impl.
4086 * libspi/registry.c (spi_listener_struct_free): release
4087 the CORBA reference too.
4089 * libspi/accessible.c
4090 (impl_accessibility_accessible_get_parent): fix ref leak.
4092 * libspi/registry.c (spi_registry_new): make the registry
4093 immortal - we don't want it to go away ever.
4095 * libspi/application.c
4096 (spi_accessible_application_finalize): impl. cleanup.
4098 * cspi/spi_registry.c
4099 (deregisterGlobalEventListenerAll),
4100 (deregisterGlobalEventListener),
4101 (deregisterAccessibleKeystrokeListener): fix ref leak.
4103 * cspi/spi_main.c (SPI_init): remove redundant ref.
4105 * test/test-simple.c (unutterable_horror): impl. to force a
4110 (impl_accessibility_registry_deregister_application): release
4111 the application when we de-register it.
4113 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4114 until we have the infastructure to get it right.
4116 2001-12-03 Michael Meeks <michael@ximian.com>
4118 * libspi/Makefile.am: only build eventlistener.[ch]
4120 * libspi/accessible.c
4121 (impl_accessibility_accessible_get_child_at_index): don't leak.
4123 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4124 before we hit the idle handler.
4126 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4127 debugging than exit.
4129 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4131 * libspi/listener.c (impl_notify_event): check source
4132 not NIL before unref.
4134 * libspi/registry.c (impl_registry_notify_event): ditto.
4136 * libspi/eventlistener.c
4137 (impl_accessible_event_notify_event): unref the source.
4139 * libspi/accessibleeventlistener.c
4140 (impl_accessible_event_notify_event): unref the source.
4142 * idl/Event.idl: remove 'hash_id' attribute - of no
4145 * libspi/application.c (notify_listeners): upd list
4147 (spi_application_object_event_listener),
4148 (spi_application_toolkit_event_listener): upd to do correct
4152 (_registry_notify_listeners): update.
4153 (parse_event_type): this method also leaks like a sieve.
4154 (impl_accessibility_registry_deregister_global_event_listener):
4155 fix ETYPE_WINDOW case.
4157 * libspi/application.c
4158 (impl_accessibility_application_register_object_event_listener):
4161 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4163 * libspi/hypertext.c (impl_getLink): ditto.
4165 * cspi/spi_main.c (cspi_object_add): remove
4166 bogus CORBA_Object_duplicate.
4168 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4171 * cspi/spi_accessible.c
4172 (Accessible_getRelationSet): fix leak / referencing issue.
4174 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4175 (cspi_object_add, cspi_object_unref): upd.
4176 (spi_object_release, get_live_refs): impl.
4177 (cspi_cleanup): simplify.
4179 * *.[ch]: s/boolean/SpiBoolean/
4181 * cspi/spi_accessible.c (role_names): actualy order so it
4182 corresponds with the enum !
4184 * test/test-simple.c (test_roles): check some role strings
4185 vs. enums to detect offset errors.
4187 2001-12-01 Michael Meeks <michael@ximian.com>
4189 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4191 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4193 (Accessible_getChildAtIndex): use cspi_add_check so we
4194 check the ev before using a (possibly) invalid value.
4196 * libspi/accessible.c
4197 (impl_accessibility_accessible_get_parent): don't segv
4200 * at-bridge/bridge.c (gtk_module_init): upd.
4201 (bridge_property_event_listener): don't leak strings
4203 (bridge_state_event_listener),
4204 (bridge_property_event_listener): don't use a static
4205 buffer in case of recursive event emission &
4206 re-enterancy - split out the swathe of cut and paste
4208 (emit_eventv): and fix 2 ref leaks here & comply to the
4210 (bridge_register_app): rename to
4211 (bridge_idle_init): this and kill arg parsing, split
4212 various inits & bonobo-activation registration to module
4213 init time, kill referencing error.
4214 (bridge_exit_func): fix the same leak.
4215 (bridge_focus_tracker): don't leak event structures
4217 (bridge_signal_listener): more leakage and cut & paste
4219 (bridge_key_listener): return the result - FIXME is
4220 this polarity correct ?
4221 (accessibility_keystroke_from_atk_key_event): rename
4222 (accessibility_init_keystroke_from_atk_key_event): and stop
4224 (gtk_module_init): return a value - not that it is checked by
4226 (bridge_key_listener): register my horror at casting between
4227 IDL defined structs.
4228 (bridge_get_registry): kill - not used.
4230 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4232 * test/test-simple.c (test_roles): impl.
4233 (test_desktop, validate_accessible, validate_tree): impl.
4235 * cspi/spi_accessible.c (role_names): fixup bogus
4236 MAX_ROLES setup, make constants const for efficient linkage
4237 (AccessibleRole_getName): conform to coding style, make
4240 2001-11-30 Michael Meeks <michael@ximian.com>
4242 * cspi/spi.h: add missing prototype.
4244 * libspi/registry.c (spi_listener_struct_new): fix sig.
4246 * test/Makefile.am: add test-simple
4248 * test/test-simple.c: add
4250 * test/test.sh: add.
4252 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4254 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4255 do it straight - since otherwise we often get an activation race.
4257 [ work before Bill duplicated a chunk of it ... ]
4258 2001-11-30 Michael Meeks <michael@ximian.com>
4260 * libspi/keystrokelistener.c
4261 (spi_keystroke_listener_class_init): fixup arg
4264 * libspi/eventlistener.c
4265 (spi_event_listener_class_init): ditto.
4267 * tests/test.sh: add.
4269 * cspi/spi-listener-impl.h: update macros.
4271 * cspi/spi-listener-impl.c
4272 (cspi_event_listener_remove_callback): add
4273 correct pre-conditions.
4275 * cspi/spi_main.c (SPI_exit): guard vs. double
4276 exits, exit the mainloop nicely.
4277 (SPI_event_main): make more sense.
4278 (SPI_init): move the atexit evilness here so we
4279 always do it (yuck).
4280 (SPI_event_main): upd.
4282 * test/simple-at.c: update for listener changes.
4284 * registryd/registryd.c (main): prune kruft.
4286 * libspi/libspi.h: upd.
4288 * libspi/eventlistener.[ch]: rename broken macros.
4290 * libspi/accessibleeventlistener.[ch]: remove.
4292 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4294 * test/test-simple.c: Add - automated tests.
4296 * cspi/spi-listener-impl.c (cspi_event),
4297 (cspi_key_event): add user_data to invoke.
4298 (cspi_keystroke_listener_finalize): impl.
4299 (cspi_keystroke_listener_class_init): upd.
4302 (createAccessibleEventListener),
4303 (AccessibleEventListener_addCallback),
4304 (createAccessibleKeystrokeListener),
4305 (AccessibleKeystrokeListener_addCallback): upd.
4307 * libspi/deviceeventcontroller.c
4308 (spi_device_event_controller_check_key_event): add public proto.
4311 (impl_accessibility_registry_deregister_global_event_listener):
4312 always init listeners.
4313 (_registry_notify_listeners): yes it is.
4315 * cspi/spi-listener-impl.c (cspi_key_event):
4317 (cspi_event_listener_finalize): impl.
4318 (cspi_event_listener_class_init): hook up.
4319 (event_handler_new, event_handler_free),
4320 (event_list_remove_by_callback): impl.
4321 (cspi_event_listener_remove_callback),
4322 (cspi_keystroke_listener_remove_callback),
4323 (cspi_keystroke_listener_add_callback),
4324 (cspi_event_listener_add_callback): upd.
4326 * libspi/keystrokelistener.c
4327 (keystroke_listener_object_finalize): kill
4328 (spi_keystroke_listener_class_init): upd.
4329 (spi_keystroke_listener_add_callback),
4330 (spi_keystroke_listener_remove_callback): kill,
4332 (impl_key_event): prune drasticaly.
4334 * libspi/eventlistener.c
4335 (spi_event_listener_add_callback),
4336 (spi_event_listener_remove_callback): kill, use
4338 (impl_accessible_event_notify_event): upd.
4339 (spi_event_listener_object_finalize): remove.
4341 * libspi/Makefile.am: use eventlistener.[ch]
4343 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4345 * libspi/registry.c (_registry_notify_listeners):
4346 Changed listener loop iteration to use preferred convention.
4347 Got rid of string memory leaks caused be calling g_strconcat
4348 inside function calls.
4350 * libspi/registry.c (parse_event_type):
4351 Stopped g_strconcat memory leaks, free the g_strsplit return,
4352 g_strdup the split pieces when used, etc.
4354 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4357 Change method 'compare' to return a 'difference set' rather than
4358 taking a StateSet as an out parameter (more Java-friendly).
4360 * idl/Accessible.idl:
4361 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4363 * idl/Component.idl:
4365 Changed methods 'getExtents' and 'getImageExtents' in these
4366 interfaces to return a BoundingBox structure.
4367 (getPosition and getSize are redundant and possibly should be
4368 removed, rather than creating a corresponding Point struct.)
4370 * cspi/spi_component.c:
4371 Modify implementation of getExtents to reflect the above IDL
4376 Add (missing) AccessibleImage_getExtents () API.
4378 * docs/reference/cspi/at-spi-cspi-sections.txt:
4379 Added AccessibleImage_getImageExtents () to docs.
4381 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4383 * idl/Component.idl:
4384 Added two methods, getLayer () and getMDIZOrder (), to reflect
4385 the new ATK methods atk_object_get_layer and
4386 atk_object_get_mdi_z_order. (Which arguably should be part of the
4387 AtkComponent API and AtkObject). Also added an enum,
4388 ComponentLayer, for the first method's return value.
4390 * libspi/component.c:
4391 Added implementations for these methods.
4393 * cspi/spi_component.c:
4395 Added cspi binding methods for above,
4396 AccessibleComponent_getLayer() and
4397 AccessibleComponent_getMDIZOrder().
4398 Added cspi enum 'AccessibleComponentLayer'.
4400 * docs/reference/cspi/at-spi-cspi-sections.txt:
4401 Added above methods to docs.
4405 Changed typedef for 'boolean' type (and all references to it) to
4406 SPIBoolean, to avoid keyword clashes with C++.
4409 Changed usages of 'boolean' to SPIBoolean.
4411 * test/keysynth-demo.c:
4412 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4413 app), except where SPIBoolean is required by the callbacks API.
4415 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4417 * cspi/spi_registry.c:
4418 Removed obsolete X event loop for passive keygrabs (which now
4421 * registryd/registryd.c:
4422 Removed unnecessary call to gdk_init() [cruft]. This also allows
4423 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4426 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4428 * docs/reference/cspi:
4429 Included docs for SPI_freeString in generated documentation.
4432 Renamed spi_freeString to SPI_freeString, for consistency. Added
4433 documentation for this function.
4436 Renamed spi_freeString to SPI_freeString, for consistency.
4437 Removed obsolete method declaration string_from_corba_string.
4439 * test/keysynth-demo.c:
4440 Small tweak to comments.
4443 Stopped leaking the strings returned from CSPI.
4445 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4447 Merged Michael's branch (see his ChangeLog entries below).
4449 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4450 bridge is alive, release on exit.
4452 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4453 Fix type check macro.
4456 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4459 Added is_gnome_app static, and method cspi_is_gnome_app(),
4460 so we can call the appropriate shutdown routine at exit in SPI_exit.
4462 * cspi/spi_main.c (cspi_object_ref):
4463 Duplicate the corba object passed in, since we're keeping it around.
4465 * cspi/SPI_exit.c, cspi_cleanup:
4466 Moved the releasing of the live refs to its own function, so we
4467 can put it in g_atexit (). Call the appropriate shutdown API
4468 depending on whethe calling client is a gnome app or not
4469 (bonobo_main_quit or CORBA_ORB_shutdown).
4471 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4472 Unref the listener when this method is called, after
4473 deregistration. Updated the API docs to note this behavior.
4475 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4476 Bugfixes: Ref the bonobo object when returning a parent or child
4477 reference, or an AccessibleRelation. Generally made sure
4478 BonoboObject refcount is incremented whenever we return an
4481 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4482 Fixed typo/bug in signal declaration.
4484 * libspi/accessibleeventlistener.h:
4487 * libspi/application.c (spi_application_new):
4488 Fixed leak in initialization.
4491 Remembered to increment bonobo-object refcount when returning
4492 children (applications) from desktop object.
4493 Added (empty) finalize method.
4495 * libspi/deviceeventcontroller.c:
4496 Hold a ref to listeners inside DEControllerKeyListeners.
4497 Added dec_key_listener_free() method. Use prepend instead of
4498 append in key_listener list. Fixed some refcount madness and
4499 leaks in the listener registration/deregistration - deregistration
4500 now calls dec_key_listener_free() on listeners, and on the
4501 temporarily constructed dec_key_listener() used to perform the search/match.
4503 * libspi/hypertext.c (spi_hypertest_finalize):
4504 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4505 class. Also fixed spi_hypertext_interface_new() and
4506 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4508 * libspi/hypertext.h:
4509 Removed pointless and duplicate AtkObject pointer from
4512 * libspi/keystrokelistener.c:
4513 Fixed incorrect type of keystroke_listener_parent_class,
4514 renamed keystroke_listener_object_finalize to
4515 spi_keystroke_listener_object_finalize.
4516 Fixed typo in signal declaration
4517 (spi_keystroke_listener_class_init).
4519 * libspi/registry.c:
4520 Added funcsions spi_listener_struct_new() and
4521 spi_listener_struct_free() to help with memory management issues.
4522 We also now use these methods instead of gnew + poking stuff into
4523 the struct, and to decrement listener counts/free the listeners
4524 when deregistering them.
4525 Fix more refcount bugs in getDesktop() and
4526 getDeviceEventController().
4529 De-ref the desktop after enumerating the applications. Explicitly
4530 decrement the refcounts on the created listeners on exit (using
4531 _unref for keystroke listeners, and via the
4532 deregisterGlobalEventListenerAll command for other event
4535 2001-11-27 Michael Meeks <michael@ximian.com>
4537 * cspi/spi-listener.h: fixup enum.
4539 2001-11-27 Michael Meeks <michael@ximian.com>
4541 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4542 (cspi_keystroke_listener_new): Use the cspi variants.
4544 2001-11-26 Michael Meeks <michael@ximian.com>
4546 * test/keysynth-demo.c: fix 2 compile warnings, missing
4549 * test/simple-at.c (report_focussed_accessible),
4550 (report_focus_event, report_button_press),
4551 (check_property_change, is_command_key),
4552 (report_ordinary_key_event, report_command_key_event): upd.
4554 * util/mag_client.h: include pre-requisites.
4556 * libspi/accessibleeventlistener.c
4557 (spi_event_listener_object_finalize): free any lingering
4560 * libspi/keystrokelistener.c
4561 (keystroke_listener_object_finalize): ditto.
4563 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4564 callbacks, with cspi types.
4566 * cspi/spi_event.c (createAccessibleEventListener): chain to
4567 (AccessibleEventListener_addCallback): here.
4568 (createAccessibleKeystrokeListener): chain to
4569 (AccessibleKeystrokeListener_addCallback): here.
4571 * libspi/keystrokelistener.c
4572 (spi_keystroke_listener_class_init): add signal.
4573 (impl_key_event): emit the event.
4574 (boolean_handled_accumulator): impl.
4575 (marshal_BOOLEAN__POINTER): add, gack.
4577 * libspi/accessibleeventlistener.c
4578 (spi_event_listener_class_init): add signal.
4579 (impl_accessible_event_notify_event): emit the signal &
4580 make the loop efficient.
4581 (spi_event_listener_add_callback): prepend the callback.
4583 * libspi/accessibleeventlistener.h: add an 'event' signal,
4584 decl type on callback.
4586 * libspi/keystrokelistener.h: ditto.
4588 * cspi/spi-listener.h: make methods typesafe and
4589 make them use the new event typedefs.
4591 * test/simple-at.c (report_focussed_accessible):
4592 include mag_client.h
4593 Use *(void *)text_interface not the other thing.
4595 * configure.in: add gtk to registryd bits - since we use
4598 * util/magnifier.c: include libbonobo.h
4600 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4602 * test/keysynth-demo.c:
4603 Turned this into a simple scanning keyboard, to demonstrate the
4604 use of g_timeout_add () as a means of creating timers for
4605 scanning, and the use of GtkStyle for visually indicating when
4606 virtual keyboard elements are selected.
4608 keysynth-demo now listens to any keyboard keys with zero-valued
4609 keycodes (i.e. 'unused' keys) and interprets them as
4612 Reworked the shiftlatch code so that shift-down state isn't held
4613 for long periods (it's only synthesized immediately prior to
4614 the keysynth event it's modifying). Note that shiftlatch in this
4615 demo is a convenience, not intended to take the place of AccessX
4616 which is the better choice for getting 'sticky' modifier keys.
4618 * libspi/deviceeventcontroller.c:
4619 * at-bridge/bridge.c:
4620 * cspi/spi_registry.c:
4621 Removed some debug print stuff, and put other verbosity in #ifdef
4626 Implemented some more of the magnifier IDL for the simple
4627 magnifier: namely, getZoomRegionParams.
4628 Added mag_x and mag_y members to MagnifierData struct, aid of this
4630 Added GtkWindow::realize signal handler to magnifier, to keep it
4631 from receiving keyboard focus from the WM.
4633 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4635 * cspi/spi-private.h: my guess at what michael forgot
4636 before he ran off to NZ :-)
4638 2001-11-23 Michael Meeks <michael@ximian.com>
4640 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4641 comment out non existant method invoke so we link.
4643 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4644 use bonobo_exception_get_text for more friendly warnings.
4646 * cspi/spi.c (Obj_Add): move into spi_main & rename
4647 spi_object_add; kill spi.c
4649 * cspi/spi_registry.c
4650 (deregisterGlobalEventListener),
4651 (deregisterGlobalEventListenerAll),
4652 (registerGlobalEventListener): fix exception leaks.
4654 * cspi/spi_main.c (spi_exception): impl. helper, so we
4655 don't leak exceptions.
4657 * cspi/spi_selection.c
4658 (AccessibleSelection_deselectSelectedChild): return the
4661 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4662 (spi_registry): ditto.
4663 (SPI_init): guard against double inits.
4665 * cspi/*.c: use spi_ev (), and spi_registry () where
4666 appropriate - a temporary hack until we have something
4667 better. Use spi_object_add
4669 2001-11-22 Michael Meeks <michael@ximian.com>
4671 * cspi/Makefile.am: re organise, install the headers.
4673 * cspi/*.h: add G_BEGIN/END_DECLS
4675 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4678 Added non-preemptive keylistener for key events with no modifiers
4679 and shift-only modifier.
4681 * libspi/keystrokelistener.c:
4682 Removed some verbose diagnostics printout.
4684 * cspi/spi_registry.c:
4685 Fixed a bug that caused all key listeners to be registered as
4688 * libspi/deviceeventcontroller.c:
4689 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4690 for non-preemptive key masks.
4693 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4695 * docs/reference/idl/at-spi-idl-docs.sgml:
4696 * docs/reference/idl/at-spi-idl-sections.txt:
4697 * docs/reference/idl/at-spi-idl-overrides.txt:
4698 Added missing files.
4700 * docs/reference/Makefile.am:
4701 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4702 to scan the IDL files :-(
4707 Added .cvsignore files.
4709 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4711 * libspi/deviceeventcontroller.c:
4712 * libspi/keystrokelistener.c:
4714 * cspi/spi_registry.c:
4715 Added filters for KeySets, KeyEventSeq, and event types to key
4716 event dispatching, so listeners should only receive those events
4717 that they requested :-)
4719 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4724 * docs/reference:Makefile.am:
4725 * docs/reference/cspi:
4726 * docs/reference/cspi:Makefile.am:
4727 * docs/reference/cspi:tmpl:
4728 * docs/reference/cspi:tmpl:*.sgml:
4729 * docs/reference/idl:
4730 * docs/reference/idl:Makefile.am:
4731 * docs/reference/idl:at-spi-idl-sections.txt:
4732 * docs/reference/idl:at-spi-idl-docs.sgml:
4733 * docs/reference/idl:tmpl:
4734 * docs/reference/idl:tmpl:*.sgml:
4736 Restructured docs directory to allow separate 'reference' docs
4737 section, and forked idl and cspi docs. Added the sgml template
4738 files to CVS. Added the first sections/structural sgml for the
4741 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4743 * configure.in, libspi/Makefile.am: find libXtst.
4745 2001-11-21 Michael Meeks <michael@ximian.com>
4747 * test/accessx-gui.c: s/spi_value/value/ - doh.
4749 * libspi/base.[ch]: add.
4751 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4753 * idl/Accessible.idl:
4754 * idl/Application.idl:
4757 Started gtk-doc cleanup on IDL.
4759 * libspi/deviceeventcontroller.c:
4760 Added and connected non-preemptive key notification from the
4761 toolkits (in addition to the pre-emptive support from XServer
4762 which we had before, but which causes 'focus flashing'). Filters
4763 are presently limited to key modifiers and global/non-global,
4764 KeySets are presently ignored, as are KeyEvent masks.
4766 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4767 structs into the persistant structure rather than just storing
4768 pointers to things that might not persist across servant
4771 The XGrabKey call now does async keygrabs, because synchronous
4772 ones were deadlocking with GDK_event code in a very nasty way.
4774 Added boolean to internal method notify_keylisteners, to indicate
4775 whether the event came from the 'toolkit source' or the 'global
4776 (XServer) source' - this is used in the notification process to
4777 determine which listeners to send the event to.
4779 deviceeventcontroller.c is now warning-free.
4781 * libspi/registry.c:
4782 Fixed regression in application de-registration.
4783 Also fixed some really brain-dead weirdness having to do with
4784 event dispatching - event structs are now duplicated before being
4785 re-marshalled in the dispatch to listeners. This also fixes a
4786 Solaris build problem.
4789 2001-11-20 Michael Meeks <michael@ximian.com>
4792 (impl_accessibility_registry_deregister_global_event_listener):
4795 * libspi/deviceeventcontroller.c
4796 (spi_device_event_controller_check_key_event): return
4797 FALSE on no virtual method.
4799 * libspi/*..h: make includes work on a correctly pathed install.
4801 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4803 * libspi/application.h: kill unused ( and whacked out )
4804 gboolean *spi_application_set_id (AtkObject *app, long id);
4806 2001-11-20 Michael Meeks <michael@ximian.com>
4808 * libspi/*.[ch]: further convert to bonobo's type func
4809 macros, remove redundnant casts etc.
4811 * libspi/text.c s/accessibility_text/spi_text/g,
4812 re-order to de-cruft.
4814 * libspi/hypertext.c: re-order to kill a huge slew
4815 of redundant forward decls.
4817 * libspi/relation.c: ditto.
4819 * libspi/image.c: ditto.
4821 * */.cvsignore: update
4823 2001-11-20 Michael Meeks <michael@ximian.com>
4825 * libspi/deviceeventcontroller.c
4826 (_controller_register_with_devices): use g_getenv,
4827 kill stdlib.h include.
4829 * libspi/keystrokelistener.c
4830 (spi_keystroke_listener_get_type): kill
4831 (spi_keystroke_listener_class_init),
4832 (spi_keystroke_listener_init): rename to this.
4834 * libspi/text.c (impl_getAttributes): fix warning / bug.
4836 * libspi/*.[ch]: more headers, includes and over commenting.
4838 2001-11-20 Michael Meeks <michael@ximian.com>
4840 * libspi/*.[ch]: fixup headers, includes and over commenting.
4842 * libspi/image.c (impl__get_imageDescription): const
4843 correctness warning fix. remove redundant casting.
4845 * libspi/table.c (impl_getRowDescription): ditto.
4846 (impl_getColumnDescription): ditto.
4848 * libspi/libspi.h: add.
4850 2001-11-19 Michael Meeks <michael@ximian.com>
4852 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4854 * libspi/component.c (accessibility_component_get_type):
4855 rename to (spi_component_get_type): and macroify.
4856 (accessibility_component_init): rename to
4857 (spi_component_init): this
4858 (accessibility_component_class_init): rename to
4859 (spi_component_class_init): this
4861 * libspi/action.c (spi_action_get_type): kill, use the macro.
4863 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4866 * libspi/application.c (spi_application_object_event_listener),
4867 (impl_accessibility_application_register_object_event_listener):
4868 warning fixes / const understanding updates.
4870 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4873 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4875 * libspi/spi_accessible.c: Added docs and C bindings for
4876 AccessibleStateSet. (No implementations yet). Documentation
4877 coverage for C bindings now 100%. Made docs for event listeners
4882 boolean notifyListenersSync (in DeviceEventListener listener,
4883 in DeviceEvent event);
4885 oneway void notifyListenersAsync (in DeviceEventListener listener,
4886 in DeviceEvent event);
4888 Added DeviceEventListener and DeviceEvent structs (may deprecate
4889 KeyStroke and KeystrokeListener in favor of this generic
4890 event/listener framework for devices).
4892 * libspi/deviceeventcontroller.c:
4894 Changed some key listener code to take masks, etc., and paved the
4895 way for integration of toolkit/non-preemptive key events. Changed
4896 signatures of some internal methods.
4898 * at-bridge/bridge.c:
4899 Fixed regression connecting to interface signals, apparently
4900 caused by GTK+ changes.
4902 Added an internal bridge_state_listener to deal with
4903 property-change:accessible-state signals.
4905 Changed the key_listeners GList to store structs (including masks,
4906 etc.) instead of just CORBA_Objects (required for full
4907 implementation of key listener API).
4909 Connected the bridge to all currently supported Atk signals.
4910 Events now supported:
4911 object:property-change
4912 object:property-change:accessible-name
4913 object:property-change:accessible-state
4914 object:property-change:accessible-description
4915 object:property-change:accessible-parent
4916 object:property-change:accessible-value
4917 object:property-change:accessible-role
4918 object:property-change:accessible-table-caption
4919 object:property-change:accessible-table-column-description
4920 object:property-change:accessible-table-column-header
4921 object:property-change:accessible-table-row-description
4922 object:property-change:accessible-table-row-header
4923 object:property-change:accessible-table-summary
4924 object:children-changed
4925 object:visible-data-changed
4926 object:selection-changed
4927 object:text-selection-changed
4929 object:text-caret-moved
4931 object:row-reordered
4933 object:column-inserted
4934 object:column-reordered
4935 object:column-deleted
4936 object:model-changed
4938 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4940 * libspi/hyperlink.c,h:
4941 Fixed some broken stuff in hyperlink.
4943 * libspi/relation.h:
4944 * libspi/relation.c:
4945 * cspi/spi_accessible.c:
4946 Initial implementations of AccessibleRelation methods, and docs.
4948 * libspi/accessible.c:
4949 Fixed a bug that caused SEGV if an accessible
4950 object's description is NULL, and a client
4951 requests it. An empty string is now returned.
4953 * cspi/spi_editabletext.c:
4954 * cspi/spi_hypertext.c:
4956 * cspi/spi_hyperlink.c:
4960 Doc coverage now 95%.
4962 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4964 One last namespacing revision:
4965 * libspi/accessibleeventlistener.[ch]:
4966 Renamed SpiAccessibleEventListener to SpiEventListener,
4967 (no need for two namespaces ;-)
4969 And lots of documentation fixes:
4971 * docs/at-spi-docs.sgml:
4972 Fixed 'underscore vs. hyphen' bug that was preventing
4973 the gtk-doc API docs from being automatically generated.
4976 * cspi/spi-listener.h
4978 * cspi/spi_accessible.c
4980 * cspi/spi_application.c
4981 * cspi/spi_component.c
4982 * cspi/spi_editabletext.c
4984 * cspi/spi_hypertext.c
4986 * cspi/spi_registry.c
4987 * cspi/spi_selection.c
4991 * docs/at-spi-docs.sgml
4992 * docs/at-spi-sections.txt
4994 Added and fixed up gtk-doc documentation in cspi.
4996 Interfaces now (fully) documented (subject to revision and enhancement):
4998 Event Listener Support
5000 AccessibleApplication
5004 AccessibleEditableText
5011 AccessibleRelationSet
5016 2001-11-14 Bill Haneman <bill.haneman@sun.com>
5018 * at-bridge/bridge.c:
5019 Initial work for toolkit-level key snooper connection by bridge.
5024 New typedefs and fixes to support new namespacing, and cleaner
5025 separation of cspi bindings from libspi bonobo implementation.
5026 Removed inconsistent and extraneous Spi* namespace prefix that
5027 had crept into cspi headers.
5028 Lots of comment fixes that sed had missed.
5030 * cspi/spi-roletypes.h:
5031 * cspi/spi-statetypes.h:
5032 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
5033 to AccessibleRoleType.
5035 * libspi/accessibleeventlistener.h:
5036 Fixed minor namespacing weirdness.
5038 * libspi/deviceeventcontroller.c:
5039 Reordered some internal API for device listeners.
5040 Changed the key registry final boolean to 'is_system_global'
5041 rather than 'is_synchronous', which is more descriptive of its
5043 Added spi_device_event_controller_new().
5044 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
5046 * libspi/keystrokelistener.[ch]:
5047 Namespaced KeystrokeListener to SpiKeystrokeListener.
5048 Changed uses of keymasks to use SPI_ prefix, and did other
5051 * libspi/keymasks.h:
5052 Namespaced keymask constants with SPI_ prefix.
5054 * libspi/registry.c:
5055 Some warning fixes, and knock-on fixes from namespace changes.
5058 Added rules for accessx-gui test program.
5060 * test/accessx-gui.c:
5061 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5062 utility. It doesn't actually use at-spi, but it's still cool and
5065 * test/keysynth-demo.c:
5069 Fixes so that these test clients work properly with the namespaced
5070 libraries. (Incompletely tested for technical reasons, fixes may follow)
5073 2001-11-13 Michael Meeks <michael@ximian.com>
5075 * libspi/application.c
5076 (impl_accessibility_application_get_version),
5077 (impl_accessibility_application_get_toolkit_name):
5079 (impl_accessibility_application_set_id),
5080 (impl_accessibility_application_get_id): remove
5081 redundant casting code.
5083 * libspi/action.c (impl_getDescription): fix warnings.
5085 * libspi/accessible.c
5086 (impl_accessibility_accessible_get_parent),
5087 (impl_accessibility_accessible_get_child_at_index),
5088 (impl_accessibility_accessible_get_state),
5089 (impl_accessibility_accessible_get_relation_set):
5090 warning fixes & include action.h
5092 2001-11-13 Michael Meeks <michael@ximian.com>
5094 * *.[ch] fix bits I screwed up:
5096 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5097 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5099 2001-11-13 Michael Meeks <michael@ximian.com>
5101 * *.[ch] Namespace libspi into spi_ and Spi.
5103 2001-13-11 Michael Meeks <michael@ximian.com>
5105 * Makefile.am: dist & install at-spi-1.0.pc
5107 * libspi/Makefile.am: install into at-spi-1.0
5109 * idl/Makefile.am (idldir): install into at-spi-1.0
5111 * at-spi-1.0.pc.in: add.
5113 * configure.in: build it.
5115 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5117 * test/keysynth-demo.c:
5118 Use a 'realize' signal-handler to set the WM properties for
5119 the virtual keyboard, rather than making it a "POPUP" type
5120 override-redirect window (thanks to anders carlsson for that
5123 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5126 * test/keysynth-demo.c:
5127 Added new test of key synthesis, which creates a simple
5128 (mouse-operated) onscreen keyboard. It inserts key events into
5129 the currently-focused window, thus it does not grab keyboard focus
5132 * cspi/spi_registry.c:
5133 Added C binding for AT-SPI generateKeyEvent.
5135 * libspi/deviceeventcontroller.c:
5136 Added call to XFilterEvent so that key listener works with XIM (we
5137 hope). Added event_synth_type to generateKeyEvent, so that we can
5138 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5139 synthesize a press/release pair for KeySyms.
5141 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5143 * libspi/Makefile.am:
5144 * registryd/Makefile.am:
5145 (temporary) hack to include libXtst in libspi and registryd.
5146 (Needed for keystroke synthesis, see below).
5149 Improved API for registerKeystrokeListener, in accordance with
5150 discussions with Gnopernicus team and X server research.
5152 * libspi/registry.c:
5153 * libspi/deviceeventcontroller.c:
5154 * libspi/accessible.c:
5155 * libspi/keystrokelistener.c:
5156 Changes and fixes to support keylisteners for potentially
5157 consumed key events (that is, 'passive grabs').
5158 Added implementation for generateKeyEvent() [untested].
5161 Changes to registerKeystrokeListener() API, as above.
5162 Added deregisterGlobalEventListenerAll(), and
5163 deregisterKeystrokeListener(), which are needed for clean exit of
5165 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5166 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5168 * cspi/spi_registry.c:
5169 Added implementations of function prototypes mentioned above.
5171 * registryd/registryd.c:
5172 Added the key listener event source as a g_timeout(), to allow
5173 receipt of key events that are not caught by GDK (since GDK
5174 doesn't support passive keygrabs, this was necessary).
5177 Changed to attach a keylistener to 'Alt' keys, and
5178 respond to the following keycommands: Alt-M (toggle magnifier);
5179 Alt-F (toggle speech); Alt-Q (quit).
5180 Added an exit routine to deregister the listeners, and a key
5181 listener that prints some key info to the console when a key
5182 matches the listener mask (and is thus received by the listener).
5184 * util/idl/Magnifier.idl:
5185 Changes to magnifier API to support multiple zoom regions,
5186 non-uniform scaling in x and y, markDirty, and a host of other
5187 features that would be useful to magnification.
5190 * util/mag_client.c:
5191 * util/mag_client.h:
5192 * util/mag_control.c:
5194 Source code changes to support the above IDL changes.
5197 As above, and also changes to use a (slower) generic conversion
5198 path for colormap conversions, since the fast RGB conversions have been
5199 reported to fail for 16-bit displays.
5201 2001-10-26 Michael Meeks <michael@ximian.com>
5203 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5205 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5207 * at-bridge/Makefile.am: fix LDFLAGS.
5209 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5211 * at-bridge/bridge.c:
5212 Re-worked listeners for toolkit events, now we have signal
5213 and property listeners. Added a private method
5214 register_atk_event_listeners(), which registers with the
5215 various atk and gtk signals we need to monitor in order to emit
5217 Added emission hook for AtkObject:property-change events, to
5218 support the 'property listeners'.
5219 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5222 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5223 which emit warnings and exit, respectively, if CORBA errors occur
5224 during remote calls, and we now use these methods to check most of
5225 our CORBA calls in the C bindings.
5227 * cspi/spi_accessible.c:
5228 Changed AccessibleSelection_refSelectedChild() to
5229 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5230 now increment refcounts.
5232 * cspi/spi_component.c:
5233 Fixed some long pointer casts (dangerous!) to pass pointers to
5234 CORBA_longs of the proper type to the CORBA stubs, and copy the
5235 data into the longs that were passed into the C bindings code.
5237 * at-bridge/bridge.c:
5239 * libspi/accessible.c:
5240 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5241 hyperlinks, AtkHyperlink is an object type.
5243 * libspi/application.c:
5244 Added various conversions to and from "generic" event types and
5245 atk-specific types; this is really part of the 'bridge'
5246 implementation but is valid for all AtkObject-based accessibility
5249 * libspi/editabletext.c:
5250 Fixed nasty bug wherein editable text's finalize method was
5251 unref'ing tha AtkObject reference that the text parent class was
5252 about to unref _again_. There was also a nasty inheritance bug
5253 that meant that the AccessibleEditableText class was corrupt.
5255 * libspi/selection.c:
5256 Provided implementations for some selection API that was broken.
5258 * idl/Application.idl:
5259 Added registerObjectEventListener () method.
5262 Fixed a number of return values that were Bonobo_Unknowns from
5263 bonobo_object_corba_objref(), which I
5264 forgot to dup before returning. Changed instances of
5265 bonobo_object_corba_objref (bonobo_object(o)) to
5266 BONOBO_OBJREF(o), for concision and clarity.
5268 2001-10-13 Louise Miller <louise.miller@sun.com>
5270 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5271 idl/Event.idl, idl/Registry.idl
5272 Changed these files to include Bonobo_Unknown.idl instead
5275 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5277 * libspi/component.c libspi/component.h:
5278 Fixed typo. Added assertions for object checks in
5279 AccessibleComponent code.
5281 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5283 * idl/Accessible.idl:
5284 Added 'isEqual (Accessible *object)'
5285 method for Accessible. (Not Yet Implemented).
5288 Changed signature of registerKeystrokeListener() to
5289 take a KeySet and KeyEventSeq so that specific keys and event
5290 types could be requested for monitoring, and added a flag
5291 is_synchronous so that either synchronous or asynchronous
5292 notification could be requested. (However this is not all
5293 implemented yet). This also meant adding two new typedefs,
5294 KeyEventSeq and KeySet.
5297 Added two new relations, RELATION_TOOLTIP_FOR and
5298 RELATION_LEAFNODE_OF.
5301 Added new state, STATE_HAS_TOOLTIP.
5303 * libspi/text.c, editabletext.c:
5304 Added new assertions to all casts of bonobo-objects from
5305 CORBA servants, to prevent Text API calls on non-text objects.
5306 Changed suspect casts of int-pointer types, so that we
5307 always send a valid CORBA_long pointer to the CORBA APIs that use
5308 in/out long parameters. We then have to copy from the CORBA_long
5309 into the regular long or int for return to the C bindings, or
5310 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5313 * libspi/deviceeventcontroller.c:
5314 Cleaned these sources up.
5316 Changed return type for getCharacterAtOffset to
5317 CORBA_unsigned_long, to allow for 32-bit characters.
5320 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5324 Fixed 'make dist' so that distro compiles...
5325 * libspi/keymasks.h:
5327 * cspi/spi-listener.c:
5328 KeystrokeListenerCB now returns a boolean.
5330 Added KeyEventType struct, and KeyStroke.
5331 Also added createKeystrokeListener(),
5332 KeystrokeListener_addCallback(),
5333 KeystrokeListener_removeCallback(), and added a keymask to
5334 registerKeystrokeListener().
5335 * cspi/spi_accessible.c:
5336 Changed numerous return types for interfaces from
5337 AccessibleComponent to Accessible<InterfaceName>; this was
5338 probably a cut-and-paste error.
5340 Implementations of new KeystrokeListener api (from spi.h,
5343 Changes to key modifier mapping.
5344 Created ControllerEventMask struct.
5345 Made DeviceEventController derive from Bonobo::Unknown.
5347 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5348 * libspi/deviceeventcontroller.c:
5349 Added a number of new internal (private) methods.
5350 * libspi/editabletext.c:
5351 * libspi/editabletext.h:
5352 Fixed a number of bugs related to the fact that
5353 editabletext inherits from text. Fixed the EditableText struct,
5354 the init() call, and use correct casts when calling Text methods
5355 from an EditableText object. Removed (duplicate) atko from the
5356 EditableText structure, we use the one in the parent Text
5357 structure via the casts mentioned above.
5358 * libspi/keystrokelistener.[ch]:
5359 * libspi/registry.c:
5360 Changes in support of keyboard handling (above).
5362 Keyboard handling, though partly functional, is still not
5363 recommended for at-spi client use as there is considerable
5364 work yet to be done.
5367 Changed some places where pointers to various int types
5368 are cast to be pointers to CORBA_long types and vice-versa:
5369 pointer casting is not safe so we pass pointers of the correct
5370 types and then cast the result before putting it into the target
5373 * libspi/text.h: minor typos corrected.
5375 We now speak not only the name of a Text element, but the
5376 first sentence of its content, when it receives focus.
5377 I also changed the text compression to 75% from 50%.
5378 * util/Accessibility_Util.server.in:
5379 Changed the default magnifier type to be a 3x vertical
5380 splitscreen magnifier (was previously a 2x horizontal one).
5382 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5384 * libspi/keystrokelistener.h:
5385 * libspi/keystrokelistener.c:
5386 Initial functional implementations of KeystrokeListener.
5389 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5391 Fixed string handling for NULL strings in libspi.
5392 Added spi_freeString to free strings returned by C bindings.
5394 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5396 * libspi/keystrokelistener.h:
5397 * libspi/keystrokelistener.c:
5398 Began (no-op) implementations of KeystrokeListener
5400 * libspi/deviceeventcontroller.c:
5401 * libspi/deviceeventcontroller.h:
5402 Began creating implementations of DeviceEventController,
5403 to handle keystroke and mouse event listening and
5405 * libspi/accessible.c:
5406 Stubbed-in the implementations for
5407 Accessibility_Accessible_getState and
5408 Accessibility_Accessible_getRelationSet.
5409 * libspi/registry.c:
5410 Improved de-registration process and fixed some bugs,
5411 deregistration now works correctly.
5413 Added initialization of applications list (to NULL).
5415 Reduced speech compression from 0.5 to 0.7, for demo.
5416 Changed call to gdk_window_set_decorations()
5417 to gtk_window_set_decorated().
5418 * at-bridge/bridge.c:
5419 Bridge now deregisters when app exits, via
5420 registration of a cleanup function
5421 with the g_atexit() call.
5422 Required making 'app' static, renamed 'this_app'.
5423 Fixed broken use of bonobo_init, passing argv wrongly.
5425 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5429 Created a new directory for
5430 accessibility-related utilities, primarily for
5431 testing and demo purposes, but with possible
5438 Onscreen magnifier utility that
5439 is implemented as a bonobo service.
5441 * util/mag_client.c:
5442 * util/mag_client.h:
5443 Client-side support (simple C bindings)
5444 for Magnification service
5446 * util/mag_control.c:
5447 Client program example for
5448 Magnification service
5450 * util/Accessibility_Magnifier.server.in:
5451 Bonobo-activation file for the
5452 Magnification service.
5455 * util/idl/Magnifier.idl:
5456 IDL defining the bonobo Magnification
5460 Modifications to use the bonobo-activated magnifier
5461 above, in place of trying to connect to an existing
5462 magnifier that uses socket-listening IPC.
5464 If env variable MAGNIFIER is set, a magnifier service
5465 will be started if one does not exist.
5467 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5469 * at-bridge/bridge.c:
5470 applied patch from Marc to build and run
5471 against new glib and gtk+ (seemed like a change
5472 to bonobo_init signature was made ?)
5474 made festival-server support turned off by default.
5475 Added support for a simple magnifier (off by default)
5476 which will be added to a 'util' directory later.
5477 * at-bridge/Makefile.am:
5478 Changed "application.h" header from a 'source'
5479 to a 'dependency' of libat-bridge.
5481 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5490 Added interface implementation c files to list of
5491 includes so they are included in libcspi.
5494 Changed prototype of AccessibleAction_doAction to return a
5496 Changed prototype of AccessibleTable_getCaption to
5497 return an Accessible.
5498 Changed prototype of AccessibleTable_getSelectedRows
5499 and AccessibleTable_getSelectedColumns to
5500 return a long (returns the number of selected rows
5501 or columns respectively).
5502 Changed name of AccessibleText_refRunAttributes to
5503 AccessibleText_getAttributes.
5504 Changed prototype of AccessibleText_getCharacterExtents to
5505 return a void rather than a boolean.
5506 Added support for a AccessibleCoordType parameter
5507 specifying what type of coordinates are desired.
5508 Added an AccessibleCordType parameter to
5509 AccessibleText_getPointAtOffset.
5511 * cspi/spi_accessible.c:
5512 Added code to return the outstanding interfaces from
5513 Accessible_queryInterface.
5515 * cspi/spi_action.c:
5517 Corrected call to getNActions to call the c binding
5520 * cspi/spi_editabletext.c:
5522 Changed name from setRunAttributes to setAttributes.
5524 * cspi/spi_hyperlink.c:
5526 Changed call to getNAnchors to correctly call the c
5527 binding for an attribute.
5529 * cspi/spi_hypertext.c:
5531 Changed getImageDescription to correctly call the
5532 binding for an attribute.
5534 * cspi/spi_selection.c:
5535 Changed getNSelectedChildren to correctly call the c
5536 binding for the attribute.
5537 Changed refSelectedChild to getSelectedChild.
5541 Changed getCaption to return an Accessible.
5542 Fixed calls which retrieve attributes.
5543 Changed refAt to getAccessibleAt.
5544 Changed getNSelectedRows and getNSelectedColumns to
5548 Changed getCharacterExtents and getPointAtOffset to accept an
5549 AccessibleCoordType.
5551 Changed calls which retrieve attributes.
5552 Changed refRunAttributes to getAttributes.
5557 * idl/Hyperlink.idl:
5558 Changed n_anchors attribute to nAnchors to keep naming
5559 convention consistent.
5562 Made Table inherit from Bonobo::Unknown.
5563 Added nSelectedColumns and nSelectedRows attributes.
5566 Made Value inherit from Bonobo::Unknown.
5568 * libspi/hyperlink.c:
5569 Change for nAnchors attributte name change.
5571 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5579 Added interface implementation c files to list of
5580 includes so they are included in libcspi.
5583 Changed prototype of AccessibleAction_doAction to return a
5585 Changed prototype of AccessibleTable_getCaption to
5586 return an Accessible.
5587 Changed prototype of AccessibleTable_getSelectedRows
5588 and AccessibleTable_getSelectedColumns to
5589 return a long (returns the number of selected rows
5590 or columns respectively).
5591 Changed name of AccessibleText_refRunAttributes to
5592 AccessibleText_getAttributes.
5593 Changed prototype of AccessibleText_getCharacterExtents to
5594 return a void rather than a boolean.
5595 Added support for a AccessibleCoordType parameter
5596 specifying what type of coordinates are desired.
5597 Added an AccessibleCordType parameter to
5598 AccessibleText_getPointAtOffset.
5600 * cspi/spi_accessible.c:
5601 Added code to return the outstanding interfaces from
5602 Accessible_queryInterface.
5604 * cspi/spi_action.c:
5606 Corrected call to getNActions to call the c binding
5609 * cspi/spi_editabletext.c:
5611 Changed name from setRunAttributes to setAttributes.
5613 * cspi/spi_hyperlink.c:
5615 Changed call to getNAnchors to correctly call the c
5616 binding for an attribute.
5618 * cspi/spi_hypertext.c:
5620 Changed getImageDescription to correctly call the
5621 binding for an attribute.
5623 * cspi/spi_selection.c:
5624 Changed getNSelectedChildren to correctly call the c
5625 binding for the attribute.
5626 Changed refSelectedChild to getSelectedChild.
5630 Changed getCaption to return an Accessible.
5631 Fixed calls which retrieve attributes.
5632 Changed refAt to getAccessibleAt.
5633 Changed getNSelectedRows and getNSelectedColumns to
5637 Changed getCharacterExtents and getPointAtOffset to accept an
5638 AccessibleCoordType.
5640 Changed calls which retrieve attributes.
5641 Changed refRunAttributes to getAttributes.
5646 * idl/Hyperlink.idl:
5647 Changed n_anchors attribute to nAnchors to keep naming
5648 convention consistent.
5651 Made Table inherit from Bonobo::Unknown.
5652 Added nSelectedColumns and nSelectedRows attributes.
5655 Made Value inherit from Bonobo::Unknown.
5657 * libspi/hyperlink.c:
5658 Change for nAnchors attributte name change.
5661 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5663 implementations-- made server implementations own AtkObject pointers
5664 rather than their respective AtkInterrface pointers to fix
5665 refcounting. AtkHyperlink is still broken.
5667 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5668 * cspi/spi_accessible.c:
5669 Added method Accessible_Role_getName(),
5670 and requisite string array (role_names).
5671 Added conversion string_from_corba_strin() call
5672 to Accessible_getName and _getDescription.
5673 * libspi/accessible.c:
5674 Added implementation for Accessible_getRole()
5676 Added festival support, used if environment variable
5679 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5681 * at-bridge/bridge.c:
5682 Now allocate Accessibility_Event using
5683 Accessibility_Event__alloc() instead of g_new0().
5684 * libspi/accessibleeventlistener.c:
5685 Initialize AccessibleEventListener->callbacks to NULL.
5686 Fixed accessible__event_listener_init() param, changed to
5687 "AccessibleEventListener *" type.
5688 Changed a bonobo_object_release_unref() call to
5689 Accessibility_Accessible_unref().
5690 * libspi/listener.c:
5691 Changed Bonobo_Unknown_unref to (equivalent)
5692 Accessibility_Accessible_unref.
5693 * libspi/registry.c:
5694 Changed bonobo_object_release_unref to
5695 Accessibility_Accessible_unref.
5697 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5700 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5701 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5702 spi-util.c spi-util.h
5703 Implementations for C bindings to remaining accessibility
5706 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5709 changed return value of Action from void to boolean to
5710 bring in line with ATK.
5713 Changed getText funcions to return "out" start and end offsets.
5714 Changed getAttributes to take and offset and return the start
5715 and end offset of the attribute run.
5716 Changed getOffsetAtPoint and getCharacterExtents to take an
5717 enum describing whether coordinates are window or screen.
5720 libspi/action.c libspi/action.h libspi/editabletext.c
5721 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5722 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5723 libspi/image.h libspi/selection.c libspi/selection.h
5724 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5725 libspi/value.c libspi/value.h
5726 Added server implementations for outstanding ATK interfaces
5727 not yet implemented.
5729 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5732 Added (missing) getName() method.
5733 Made nActions an attribute.
5734 * idl/EditableText.idl:
5735 Changed order of params in setAttributes.
5736 * idl/Hyperlink.idl:
5737 Removed getAnchor, added getURI.
5739 Changed attributes to methods, for efficiency
5740 (so that getting extents can be done in one call)
5741 * idl/Selection.idl:
5742 Changed nSelectedChildren to attribute, and re-indented.
5743 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5745 * idl/Text.idl: reformatted to match our coding style.
5746 (temporarily?) removed getRowColumnAtOffset().
5747 Changed text selection API to support multi-select and
5748 non-contiguous selections, as in ATK.
5749 * idl/Value.idl: changed some methods to attributes.
5751 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5753 * libspi/listener.c(impl_notify_event):
5754 BonoboUnkown_unref the source instead
5755 of bonobo_object_release_unref - the ORB
5756 handles the releasing.
5758 * configure.in: require ORBit-2.3.94 for
5761 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5763 Tagged CVS repository 'EA_1_0'.
5764 * README.EARLY_ACCESS:
5765 Alphabetized acknowledgements list, and
5767 Listed some known dependencies of at-spi.
5769 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5771 * docs/at-spi-docs.sgml:
5772 * docs/at-spi-sections.txt:
5773 * docs/at-spi-overrides.txt: (Added zero-length file)
5774 Documentation improvements - gtk-doc should build
5775 docs for all implemented C bindings now.
5778 * cspi/spi.c: (New file)
5779 * cspi/spi_event.c: (New file)
5780 * cspi/spi_registry.c: (New file)
5781 * cspi/spi_accessible.c: (New file)
5782 * cspi/spi_application.c: (New file)
5783 * cspi/spi_component.c: (New file)
5784 Split spi_main.c into six parts, and included them from
5785 "spi.c". This is a bit of a hack, probably temporary,
5786 but required by gtk-doc, apparently.
5788 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5791 * docs/at-spi-docs.sgml:
5792 * docs/at-spi-sections.txt:
5794 Initial checkins/modifications for gtk-doc generation.
5797 Added (missing) interface query methods to Accessible's C binding.
5799 Added GenericInterface type definition.
5801 Added query for AccessibleComponent interface to focus event handler.
5802 Added printout of bounding box for focussed component.
5803 * libspi/component.c:
5804 Added partial implementation for AccessibleComponent to C binding.
5805 * idl/Application.idl:
5806 * libspi/registry.c:
5807 * libspi/listener.c:
5808 * libspi/application.c:
5809 * libspi/application.h:
5810 Changed "ID" attribute type from string to long.
5812 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5816 Made method naming consistent: methods taking object args
5817 start with uppercase, other methods (except those using
5818 acronyms) start with lowercase. Underscores delimit between
5819 object names and method names:
5820 SPI_init() - uppercase since it starts with an acronym.
5821 getDesktopCount () - lowercase start since no object param0.
5822 Accessible_getName() - uppercase object type name, studlyCaps method
5826 Added gtk-doc documentation for all currently implemented
5827 methods in the C bindings API.
5829 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5831 * Makefile.am : changed build order to build test last.
5834 Changed "createEventListener" to "CreateEventListener".
5835 * libspi/accessibleeventlistener.c :
5836 Bugfix for addition of callbacks.
5837 * test/Makefile.am :
5838 * test/simple-at.c :
5839 Added new test that uses the C bindings API.
5841 * libspi/listener.c :
5842 * libspi/registry.c :
5843 * libspi/accessibleeventlistener.c :
5844 * at-bridge/bridge.c :
5845 Renamed member "target" of Accessibility_Event to "source",
5846 which is more descriptive.
5849 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5853 * cspi/Makefile.am :
5854 Added makefile support for at-spi/cspi directory.
5857 * cspi/spi-listener.h : (NEW FILE)
5858 Added support for/use of spi-listener.h.
5860 C bindings now build successfully, with no warnings.
5861 * libspi/accessibleeventlistener.h : (NEW FILE)
5862 * libspi/accessibleeventlistener.c : (NEW FILE)
5863 * libspi/Makefile.am :
5864 Added new object type "AccessibleEventListener"
5865 which inherits from Listener, and allows attachment
5866 of in-process callbacks (so that a client with a listening
5867 object instance can add functionality to the local
5868 implementation, dynamically).
5870 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5872 * libspi/accessible.c:
5873 Add implementation for get_index_in_parent().
5875 Added #include of "spi-roletypes.h", and
5876 added enumerated type AccessibleCoordType.
5877 Added definition for KeystrokeListener (function type).
5880 * cspi/spi-statetypes.h :
5881 * cspi/spi-roletypes.h :
5883 Added these headers, used by spi.h.
5885 Added code (NOTE: not yet built by make).
5887 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5889 * libspi/Makefile.am: generate imodule
5890 at the same time as other idl compiler
5893 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5894 * libspi/registry.c :
5895 * libspi/application.c :
5896 * idl/Application.idl :
5897 Made registration with toolkit an application method,
5898 which is required since each app has its own toolkit static
5899 environment. Thus the bridge must register for
5900 notification of toolkit events from each application in turn.
5901 Toolkit notifications are now successfully registered for, and
5902 sent to the listening at client.
5904 Changed toolkit event string to use hyphens rather than underscores.
5905 * libspi/listener.c :
5906 listner now gives more info in debug mode - it reports the
5907 name of the event received, as well as the name of the source.
5910 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5912 * libspi/registry.c :
5913 added more implementation for toolkit events.
5914 Fixed bug such that toolkit event registrations
5915 (via atk) use the whole event name string, not
5917 Removed a useless call to an ORBit_ method.
5918 * at-bridge/bridge.c :
5919 Removed unused local sbuf[] variable.
5921 We now register for Gtk:GtkWidget:button_press_event
5922 events as well as "focus:" events.
5924 Add some more API from Registry.idl that was missing,
5925 for keystroke listening, keystroke and mouse event
5926 synthesis, and enumeration of accessible desktops.
5928 2001-08-16 Michael Meeks <michael@ximian.com>
5930 * configure.in: use AM_GLIB_GNU_GETTEXT.
5932 * Makefile.am (SUBDIRS): kill intl.
5934 2001-08-15 Michael Meeks <michael@ximian.com>
5936 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5938 * configure.in: upd.
5940 * configure.in: depend on a recent bonobo-activation that
5941 will find our server files ...
5943 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5945 * libspi/accessible.c : accessible_new() :
5946 Now we add the Component interface via bonobo_object_add_interface,
5947 if the contained AtkObject implements AtkComponent.
5948 * libspi/accessible.h : now include "component.h"
5949 * libspi/component.h :
5950 * libspi/component.c : added files - implementation of
5951 bonobo wrapper object for Accessibility/Component
5952 * libspi/listener.c :
5953 Added test code to check for Accessibility/Component:1.0
5954 interface and report whether it is implemented by the
5956 * libspi/registry.c :
5957 Now we check for not only the hash of the whole event
5958 string before relaying the event, we also check the
5959 "minor" event string (without the detail string).
5960 This allows event listeners to be registered against
5961 all events of a certain major+minor type, or just
5962 against a specific major+minor+detail type.
5963 * libspi/accessible.c :
5964 Added implementations for Accessible:get_parent(),
5965 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5966 * libspi/registry.c :
5967 * libspi/listener.c :
5968 Replaced calls to Accessibility_Accessible_ref() and
5969 Accessibility_Accessible_unref() with
5970 calls to bonobo_object_dup_ref() and
5971 bonobo_object_release_unref(), so that the CORBA object
5972 is dup-ed and released when relayed, as well as the bonobo object.
5974 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5976 * libspi/Makefile.am,
5977 registryd/Makefile.am,
5978 at-bridge/Makefile.am.
5979 test/Makefile.am, configure.in:
5980 reverse previous changes.
5982 * /idl/Image.idl: fix typo.
5984 * test/Makefile.am: put DEBUG_FLAGS
5987 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5989 * test/app.c: use argv[0] instead of
5992 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5994 * libspi/Makefile.am,
5995 registryd/Makefile.am,
5996 at-bridge/Makefile.am.
5997 test/Makefile.am, configure.in:
5998 cleanup, replace individual LIBS/CFLAGS with
5999 AT_COMMON_{LIBS|CFLAGS}.
6003 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6005 * configure.in, libspi/Makefile.am:
6006 Change IDL path checking for bonobo-activation
6009 2001-08-15 Bill Haneman <bill.haneman@sun.com>
6011 * registryd/registry.c : separated event listeners to use
6012 3 separate lists (focus, window, toolkit). Began testing
6013 event names against hashes before relaying events.
6014 * test/at.c : now register for events of type "focus:"
6015 * test/app.c : now generate events of type "focus:"
6016 * at-bridge/bridge.c : register with ATK for focus events,
6017 and we now relay those focus events to any "focus:" listeners.
6018 This now works with the bridge as a GTK_MODULE when running test/at.
6019 * libspi/registry.c :
6020 * libspi/listener.c :
6021 now we ref event sources before propagating, and unref on receipt.
6022 * libspi/registry.c :
6023 some changes to internal structs, to support event typestring hashes.
6024 * text/app.c : changed the way the appname is generated.
6025 * cspi : added directory that will hold the C bindings library for
6026 non-CORBA/bonobo-savvy clients.
6027 * cspi/spi.h : header file that contains the function prototypes for the C binding.
6028 * idl/Component.idl : added in parameter to indicate coord system for
6029 geometry-related calls.
6030 * idl/Hyperlink.idl : added readonly n_links attribute
6031 * idl/Image.idl : changed methods to attributes.
6033 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6035 * at-bridge/Makefile.am: link against
6036 ../libspi/libspi.la instead of -lspi.
6038 * at-spi/test/app.c: include
6039 bonobo-activation.h. Use a default appname
6040 if one is not provided.
6042 2001-08-14 Bill Haneman <bill.haneman@sun.com>
6044 * idl/Registry.idl : temporarily changed register_Application
6045 to oneway, to work around issue with initial registration
6047 * idl/Application.idl : changed attribute "id" from readonly
6048 to read-write, since it needs to be assigned by Registry.
6049 * registryd/registryd.c : added call to set application id
6051 * registryd/registry.c : changed de-registration procedure to
6052 use CORBA_Object_hash() to find matching object ref in application
6053 lists and listener lists.
6054 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
6055 began distinguishing between event types (work in progress).
6057 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6060 * libspi/application.c:
6061 Added implementations for get/set id, get_toolkitName,
6063 * registryd/registryd.c :
6067 Converted from use of OAF to bonobo-activation.
6068 * libspi/desktop.h :
6069 * libspi/desktop.c :
6071 Removed references to atksimpleobject, since base atkobject
6072 implementation now provides functionality we need.
6073 * libspi/atksimpleobject.c :
6074 * libspi/atksimpleobject.h :
6079 * at-bridge/Makefile.am
6080 * at-bridge/bridge.c
6083 Added directory "bridge" and contents, and added dependencies
6084 in Makefile.am/configure.in.
6085 Initial checkin of "at-bridge".
6086 This code is a GTK_MODULE which automatically registers
6087 GTK+ apps with the accessibility registry, using an object
6088 reference to the root ATK object.
6090 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6092 * po/Makefile.in.in: Remove. Again. If this
6093 doesn't get autogenerated - you need to update
6096 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6098 * po/Makefile.in.in: Add. Again.
6100 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6102 * libspi/accessible.c : added support for 'description' property.
6103 * libspi/accessible.c
6105 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6106 (since the two are now equivalent in libbonobo)
6114 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6115 Bonobo::Unknown as does Accessibility::Accessible.
6116 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6117 interface with Bonobo::Stream, since it was redundant with it.
6118 (The Stream returned by a StreamableContext object is expected to
6119 implement only a subset of Bonobo::Stream)
6121 2001-07-28 Anders Carlsson <andersca@gnome.org>
6123 * libspi/accessible.c (accessible_object_finalize): Change
6124 g_free to g_object_unref since the AtkObject is a GObject.
6126 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6128 * idl/Accessibility.idl: add new IDL files
6131 * idl/Action.idl: Definitions of actionable UI object
6132 * idl/Component.idl: Definitions of UI component geometry, etc.
6133 * idl/Hyperlink.idl: Defs of hyperlink behavior
6134 * idl/Image.idl: Def of accessible image
6135 * idl/Selection.idl: Definition of UI object with selectable children
6136 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6137 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6138 * idl/Text.idl: Interface defs for UI elements with complex textual content
6139 * idl/Value.idl: Definition of UI element that is a value controller or display
6141 2001-07-27 Michael Meeks <michael@ximian.com>
6143 * po/Makefile.in.in: remove autogenerated file from CVS.
6145 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6148 * idl/Registry.idl: include guard.
6150 * idl/Accessibility.idl: Add, and include all the other IDL
6153 * idl/*.idl: remove mass of pragmas etc.
6155 2001-07-26 Michael Meeks <michael@ximian.com>
6157 * registryd/Makefile.am (registryd_SOURCES): remove
6160 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6162 * libspi/.cvsignore, registryd/.cvsignore,
6163 test/.cvsignore: updated.
6165 * po/Makefile.in.in: gettext update.
6167 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6169 * initial CVS checkin
6171 2001-06-29 Michael Meeks <michael@ximian.com>
6173 * configure.in: add AM_CONFIG_HEADER to gen config.h