1 2003-07-01 Gil "Dolfin" Osher <dolfin@rpg.org.il>
3 * configure.in: Added "he" (Hebrew) to ALL_LINGUAS.
5 2003-06-30 Bill Haneman <bill.haneman@sun.com>
8 (get_action_from_servant):
9 Removed assertion that action is implemented on an AtkObject.
13 Aggregate AccessibleAction interface on the hyperlink object if
14 the object implements AtkAction. (This convention is used in
17 2003-06-30 Bill Haneman <bill.haneman@sun.com>
19 * configure.in: Revved to 1.3.5.
21 * registryd/Accessibility_Registry.server.in.in:
22 Marked up appropriate strings for translation.
24 * atk-bridge/bridge.c: Marked a couple of
25 user-visible warnings for translation. Questionable
26 whether they are really useful, but possibly so.
29 2003-06-28 Christian Rose <menthos@menthos.com>
31 * configure.in: Added "sv" to ALL_LINGUAS.
33 2003-06-26 Bill Haneman <bill.haneman@sun.com>
35 * registryd/registry.c:
36 (spi_registry_object_finalize): Unref the deviceeventcontroller.
37 (registry_defer_on_event): Defer focus: events, this is an
38 improvement to the patch for bug #108664.
40 * TODO: Update with 2.4/"Dev Complete" items.
42 2003-06-26 Padraig O'Briain <padraig.obriain@sun.com>
44 * atk-bridge/bridge.c:
45 (spi_atk_bridge_init_event_type_consts): Ensure that this function only
46 looks up signals once.
47 (atk_bridge_init): Call spi_atk_bridge_init_event_type_consts only
48 if doing registration.
49 (spi_atk_bridge_toplevel_added): Call spi_bridge_init_event_type_consts
50 when doing registration.
52 This fixes bug #115014.
54 2003-06-25 Padraig O'Briain <padraig.obriain@sun.com>
56 * atk-bridge/bridge.c:
57 (atk_bridge_init): Add signal handler for children-changed:remove on
58 root when in a BonoboComponent.
59 (spi_atk_bridge_toplevel_added): Call spi_atk_bridge_do_registration
60 for first toplevel only other incrememt variable toplevels.
61 (spi_atk_bridge_toplevel_removed): For last toplevel deregister
62 application and remove listeners.
63 (spi_atk_bridge_get-registry): Change NULL to CORBA_OBJECT_NIL for
65 (spi_atk_deregister_event_listeners): New function which removes
67 (reinit_register_vars): New fuction which reinitializes variables.
69 This fixes bug #111578.
71 2003-06-13 Bill Haneman <bill.haneman@sun.com>
73 * configure.in: version 1.3.4.
75 * cspi/spi_accessible.c:
76 Changed test of obj==NULL to obj==CORBA_OBJECT_NIL.
79 2003-06-13 Michael Meeks <michael@ximian.com>
81 * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
83 * cspi/spi_main.c (cspi_peek_ev): impl.
85 2003-06-11 Padraig O'Briain <padraig.obriain@sun.com>
87 * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
89 * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
91 * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role
94 * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
96 * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
97 for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
99 2003-06-11 Bill Haneman <bill.haneman@sun.com>
101 * libspi/streamablecontent.h:
102 * libspi/streamablecontent.c:
103 New files, provide implementation/wrappers for
104 Accessibility_StreamableContent.
106 * cspi/spi_streamablecontent.c:
107 Connected the C wrappers to the libspi C bindings.
108 (AccessibleStreamableContent_close): New method.
111 (AccessibleStreamableContent_close): New method, needed
112 since we have an "open, [seek], read, close" model in cspi.
114 2003-06-11 Bill Haneman <bill.haneman@sun.com>
116 Fix for #108664; Padraig's revision of my original patch.
118 * registryd/registry.h:
119 Added event queue list, is_queuing, and exit_notify_timeout
120 to the registry struct.
122 * registryd/registry.c:
123 (registry_init): Initialize new struct from registry.h.
124 (impl_registry_notify_event):
125 Filter events before notifying, in case some need to be
127 (registry_filter_event): New,
128 we defer certain incoming events (for instance
129 window:deactivate) because we may wish to hide
130 or reject them based on pending events. This is
131 mostly a workaround for bug #108664.
132 (registry_queue_event, registry_start_queue): New.
133 (registry_defer_on_event): Test event to see if it
135 (registry_reset_on_event): Returns TRUE if the
136 event should cause a queue reset.
137 (registry_discard_on_event): Returns TRUE if the event
138 should cause the previous queue contents to be discarded.
139 (registry_timeout_flush_queue): Flushes the pending event
140 queue if no reset/discard-triggering events have come in
141 within the timeout period.
142 (registry_emit_event): New.
143 (registry_clone_notify_context): New, used when queueing the
144 event notify contexts.
146 2003-06-10 Bill Haneman <bill.haneman@sun.com>
148 * configure.in: Version revved to 1.3.2, lt 0.9.2
149 Incremented ATK required version to 1.3.4.
151 * cspi/spi_registry.c:
152 (SPI_generateKeyEvent):
153 We now pass the keystring along if it's non-null.
155 * registryd/deviceeventcontroller.c:
156 (keysym_mod_mask): New method, returns modifier mask
157 required to generate a keysym from a given keycode.
158 (dec_synth_keysym): New method.
159 (dec_synth_keystring): New method.
160 (dec_get_modifier_state): New method.
161 (dec_lock_modifiers): New
162 (dec_unlock_modifiers): New.
163 (dec_keysym_for_unichar): New, rather brute-force
164 conversion from UCS-4 to X KeySyms. Only works for
165 Latin at the moment, with partial implementations for
166 Greek, Hebrew, and (incomplete) Katakana.
167 (impl_generate_keyboard_event): Now implement
168 "KEYSTRING" synthesis and implement "KEYSYM"
170 (keycode_from_keysym): Improved, passes a returned
171 modmask value now if the corresponding param is non-NULL.
173 Fixes bugs #92143 and #109776.
176 * test/keysynth-test.c:
177 New test program for key synthesis, to confirm fixes for
181 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
183 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
185 * cspi/spi_accessible.c (cspi_init_relation_type_table):
186 Add line for RELATION_POPUP_FOR
188 * docs/reference/cspi/tmpl/spi_relation.sgml:
189 Add relation SPI_RELATION_POPUP_FOR
191 * docs/reference/cspi/tmpl/spi_stateset.sgml:
192 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
194 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
196 * libspi/relation.c (spi_init_relation_type_table):
197 Add line for RELATION_POPUP_FOR
199 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
201 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
202 there are still windows which have not been deleted and emit
203 window:deactivate, if necessary and window:destroy events.
204 This fixes bug #114370. The change on June 5th was not correct.
206 2003-06-09 Bill Haneman <bill.haneman@sun.com>
208 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
211 (SPI_dupString): Allow dup-ing of a string such that it's safe to
213 New methods for client exception handling and interception.
214 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
215 (SPI_exceptionHandlerPop): You guessed it...
216 (SPI_getSourceType): Return the type of object which offended.
217 (SPI_getExceptionCode): Return an enum code telling, possibly,
218 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
219 (SPIAccessibleException_getSource): get the source object for
220 exceptions that come from Accessibles, if SPIExceptionSourceType is
221 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
222 (SPIException_getDescription): New, returns a string description of
223 the problem. [Not yet a stable ABI, strings are not frozen]
225 * cspi/spi-private.h:
226 Added implementation details of opaque SPIException
230 Implementations of above. Also
231 (_cspi_exception_throw): new private method that
232 dispatches exceptions to handlers, called from cspi-bonobo.c
234 * cspi/bonobo/cspi-bonobo.c:
235 (cspi_check_ev): call _cspi_exception_throw.
236 Don't print a warning message if the exception has been
237 handled by _cspi_exception_throw.
239 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
241 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
242 there are still windows which have not been deleted and emit
243 window:deactivate, if necessary and window:destroy events.
244 This fixes bug #114370.
246 2003-06-03 Bill Haneman <bill.haneman@sun.com>
249 (cspi_accessible_is_a): Make non-fatal
250 if the object reference is dead.
252 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
254 * cspi/spi_main.c: #include <stdio.h>
255 * test/simple-at.c: ditto
256 * test/event-listener-test.c: ditto
257 * test/screen-review-test.c: ditto
259 2003-05-30 Michael Meeks <michael@ximian.com>
261 * test/test-simple.c (main): use CORBA_ORB_perform_work
262 instead of an unnecessary linc_ call.
264 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
266 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
267 Add SPI_STATE_INDETERMINATE.
269 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
272 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
274 * libspi/stateset.c (init_state_type_tables): Add support for
277 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
279 * configure: Update versions of atk and gail required.
280 This fixes bug #113268.
282 2003-05-02 Bill Haneman <bill.haneman@sun.com>
284 * configure.in: Revved micro version to 1.3.1 (because of build fix).
286 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
288 * libspi/Makefile.am:
289 Ensure headers are generated before being used by c sources.
291 2003-05-01 Bill Haneman <bill.haneman@sun.com>
294 Simplified lt versioning rules.
295 Incremented version to 1.3.0, to indicate that we're on the
298 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
300 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
301 Add MKDB_OPTIONS=--outtput-format=xml
303 * docs/reference/cspi/at-spi-cspi-docs.sgml
304 docs/reference/idl/at-spi-idl-docs.sgml:
305 Convert to Docbook XML.
307 This fixes bug #111793.
309 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
311 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
312 AcccessibleKeyEventType, AccessibleKeyMaskType.
314 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
316 * cspi/state-types.h: Add documentation for AccessibleState.
318 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
319 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
320 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
321 AccessibleComponentLayer.
323 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
326 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
328 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
329 Accessible. Add description of AccessibleEvent,
330 AccessibleEventListenerCB.
332 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
335 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
336 documentation. Add description of AccessibleKeystrokeListenerCB,
337 AccessibleKeyEventMask, AccessibleModifierMaskType,
338 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
339 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
341 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
344 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
347 This fixes bug #104730.
349 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
351 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
352 Set is_text field of Accessibility_DeviceEvent data structure.
354 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
355 is-text field of AccessibleDeviceEvent data structure.
357 This addresses part of bug #108666.
359 * registryd/devcieeventcontroller.c: Unset debug option.
361 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
364 (cpi_initial_relation_type_table): New function which initializes
365 mapping between Accessibility_RelationType and AccessibleRelationType.
366 (cspi_relation_type_from_spi_relation_type): New function which
367 translates an Accessibility_RelationType into an AccessibleRelationType.
368 (AccessibleRelation_getRelationType): Use
369 cpi_relation_type_get_spi_relation_type to return correct value.
370 (spi_state_to_corba): Return correct type for default case.
372 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
373 Use Accessibility_EventType instead of Accessibility_KeyEventType.
375 * cspi/cspi-bonobo-listener.c:
376 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
379 * libspi/accessible.c, libspi/action.c, libspi/application.c,
380 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
381 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
382 libspi/image.c, libspi/listener.c, libspi/selection.c,
383 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
384 registryd/desktop.c, registryd/registry.c:
385 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
387 * libspi/eventlistener.c
388 Remove semicolon after BONOBO_TYPE_FUNC.
391 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
392 (spi_init_relation_type_table): Initialize using correct type.
394 * registryd/desktop.c:
395 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
396 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
397 of Accessibility_KeyEventType.
399 * test/key-listener-test.c (report_tab_key_event): Use fprintf
402 * tests/simple-at.c, tests/screen-review-test.c:
403 Add include for <strings.h>.
405 * tests.stress-test.c:
406 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
408 These changes fix compiler warnings when using FORTE compiler on
409 Solaris; fixes bug #107479.
412 2003-04-10 Bill Haneman <bill.haneman@sun.com>
415 * configure.in: revved to 1.1.10
418 (SPI_KEYMASK_NUMLOCK): Added.
420 * registryd/deviceeventcontroller.c:
421 (spi_key_event_matches_listener): AND with a smaller
422 bitmask (as we should).
423 (spi_dec_translate_mask):
424 New method, sets the virtual NumLock modifier bit
425 if numlock is on. Eventually it can handle other virtual
426 modifier bits if needed, or other marshalling from
427 at-spi modifier masks to platform (X) masks.
428 (spi_dec_key_listener_new):
429 Call spi_dec_translate_mask to set up virtual mod bits
430 in the 'mask' field when creating a new listener struct.
431 (spi_dec_emit_modifier_event):
432 Set the virtual (i.e. NumLock) bits before emitting event.
433 (spi_controller_register_with_devices):
434 Query for the NumLock modifier 'physical' bit if Xkb is
435 present, for use in above methods.
439 2003-04-10 Bill Haneman <bill.haneman@sun.com>
441 * registryd/deviceeventcontroller.c:
442 (spi_keystroke_from_x_key_event):
443 Instead of checking to see if the keysym is
444 printable, check the string from XLookupString
445 if available, get the first unicode character from it,
446 and call g_unichar_isprint to determine whether the
447 is_text flag should be TRUE or FALSE.
451 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
453 * atk-bridge/bridge.c: Add support for extended events
454 * cspi/spi_event.c: Add documentation and implementation for
456 * tests/event-listener-test.c: Add tests for extended events.
458 This fixes bugs #100424 and #100426.
460 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
462 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
463 of LT_CURRENT. This fixes bug #89350.
465 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
467 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
468 number of signal parameter values before accessing them. This fixes
471 2003-04-01 Bill Haneman <bill.haneman@sun.com>
473 * configure.in: Fixed duplicate inclusion of -lspi.
474 * branched for gnome-2-2/HEAD.
475 [created tag "gnome-2-2"]
477 2003-03-07 Bill Haneman <bill.haneman@sun.com>
479 * configure.in: 1.1.9 release.
482 2003-03-07 Bill Haneman <bill.haneman@sun.com>
484 [needed by GOK, to fix bugs 107985 and 107988]
485 * registryd/deviceeventcontroller.c:
486 (spi_dec_clear_unlatch_pending):
487 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
488 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
489 (spi_dec_init_mouse_listener):Emit warning if mouse button
491 (spi_device_event_controller_forward_mouse_event):
492 Removed unnecessary parens from a conditional.
493 (global_filter_fn):Added TODO comment.
494 (impl_generate_keyboard_event):
495 Cancel a pending relatch if a 'delatching' key was
498 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
500 * atk-bridge/bridge.c:
501 Change atk_signal_child_changed to atk_signal_children_changed.
502 Reorganize code in spi_atk_bridge_signal_listener().
504 * test/event-listener-test.c:
505 Add children_changed_listener and report_children_changed_event()
506 to test AccessibleChildEvent_getChildAccessible.
508 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
510 * cspi/spi_event.c (cspi_internal_event_get_text): Change
511 g_strdup to CORBA_String_dup (bug #105291)
513 * test/event-listener-test.c (report_text_event): Add call to
516 2003-02-28 Bill Haneman <bill.haneman@sun.com>
518 * registryd/deviceeventcontroller.c:
519 (spi_keystroke_from_x_key_event):
520 Fix string and keysym return codes to match modifier state.
523 2003-02-28 Bill Haneman <bill.haneman@sun.com>
525 * registryd/deviceeventcontroller.c:
526 (spi_keystroke_from_x_key_event):
527 Fix segv due to improper use of isprint(c). [bug #107254]
529 2003-02-24 Bill Haneman <bill.haneman@sun.com>
532 (get_accessible_text_boundary_type):
533 Move default return value to (new) default case in switch.
534 (get_accessible_text_clip_type):
535 Move default return value to (new) default case in switch.
537 * libspi/application.c:
538 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
539 Remove unused methods.
540 (impl_accessibility_application_register_object_event_listener):
541 Remove unused methods.
544 Added #include of <math.h>.
546 * registryd/deviceeventcontroller.c:
547 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
548 we don't currently use this method.
549 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
551 (impl_generate_key_event):
552 Remove unused variables.
553 (impl_generate_mouse_event):
554 Initialize button to zero, just in case we get an invalid
555 input. Added support for mouse buttons 4 and 5.
556 (spi_device_event_controller_new):
557 Removed unused variable declaration for 'private'.
559 Added #include of <gdk/gdk.h>
561 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
563 * configure.in: Update to work when X is not installed in expected
564 location. Fixes bug #105836.
566 * atk-bridge/bridge.c
567 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
569 (spi_atk_register_event_listener): Add signal listener for
571 (spi_atk_bridge_signal_listener): Event event when link-selected
572 signal is emitted. (bug #104622)
574 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
575 on returned string. (bug #105291)
577 * test/event-listener-test.c: Add test for link-selected.
579 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
581 * atk-bridge/Makefile.am: Correct typo in previous commit.
583 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
585 * atk-bridge/Makefile.am: Allow for build directory to be different
586 from source directory
588 * registryd/Makefile.am: Allow for build directory to be different
589 from source directory
593 2003-01-29 Bill Haneman <bill.haneman@sun.com>
596 Fixed dependencies for libcspi so that libspi gets pulled in
597 properly. Fixes 104741.
601 Clean up inline docs a little.
603 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
605 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
606 This is done by implementing AtkComponent for SpiAtkDesktop, which is
607 the AtkObject within an SpiDesktop.
608 This addresses bug #101524.
610 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
611 Remove call to gdk_init().
613 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
614 so that Display is set when SpiDesktop is created.
616 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
618 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
619 This fixes bug #102830.
621 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
623 * test/test-simple.c: Update to take account of fact that GailButton
624 now implements AtkText.
625 (create_text_window): Set name on AtkObject for GtkEntry.
626 (validate_accessible): Check accessible name before calling test_text().
628 * libspi/Makefile.am: Fix problem with building outside of source
629 directory. Bug #98120.
631 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
632 typo in documentation comments. Bug #94275.
634 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
636 * libspi/text.c (impl_getBoundedRanges): Bug fix.
638 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
641 Add includes to avoid compiler warnings on Solaris.
642 (impl_getRangeExtents): Bug fix.
644 2002-12-17 Bill Haneman <bill.haneman@sun.com>
646 Fix for 100944, [API addition approved by Gman and murrayc].
653 * idl/Accessibility_Text.idl:
654 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
655 (Text::getRangeExtents): New method for efficient
656 bounds query of a text range.
657 (Text::getBoundedRanges): New method for efficient
658 clipping of text to bounding boxes.
659 (unImplemented7, unImplemented8):
660 Removed these padding methods to preserve bincompat.
663 (impl_getRangeExtents): implementation of new IDL.
664 (impl_getBoundedRanges): implementation of new IDL.
665 (SpiTextRect): Internal use struct.
666 (_spi_text_rect_union): internal method, calculates union of two
667 SpiTextRect bounding rects.
668 (_spi_text_range_seq_from_gslist): internal method, allows us
669 to build our sequence efficiently as a gslist then convert it
671 (_spi_bounds_contain): internal method, determines whether
672 a text character is "in" or "out" of a clip rect according to
673 values of TEXT_CLIP_TYPE.
674 (spi_text_class_init): Initialize the new methods in the epv.
677 (AccessibleTextClipType): New enum used by screen review api.
678 (AccessibleTextRange): New struct used by screen review api.
679 (AccessibleText_getRangeExtents):
680 cspi binding for Accessibility_Text_getRangeExtents.
681 (AccessibleText_getBoundedRanges):
682 cspi binding for Accessibility_Text_getBoundedRanges.
683 (AccessibleTextRange_freeRanges): convenience method.
686 (AccessibleText_getRangeExtents):
687 cspi binding for Accessibility_Text_getRangeExtents.
688 (AccessibleText_getBoundedRanges):
689 cspi binding for Accessibility_Text_getBoundedRanges.
690 (AccessibleTextRange_freeRanges): convenience method.
691 (get_accessible_text_clip_type): internal conversion method.
692 (get_accessible_text_ranges_from_range_seq): internal conversion method.
694 * registryd/deviceeventcontroller.c:
695 (spi_dec_mouse_check):
696 Improved behavior for mouse:abs events
697 [same granularity as mouse:rel events, and no
698 events when mouse is idle].
700 2002-12-16 Michael Meeks <michael@ximian.com>
702 * cspi/spi_accessible.c (spi_state_to_corba): rename.
704 * libspi/stateset.c (state_spi_to_atk): split out
705 ( fix several remote array bounds nasties )
706 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
707 (impl_remove): make safe from array bounds issues.
708 (spi_atk_state_from_spi_state): impl.
710 * libspi/stateset.h (spi_state_set_cache_is_empty):
711 add a set of wrapper defines to get layering right.
713 * cspi/spi_accessible.c: update state set stuff to
716 2002-12-14 Michael Meeks <michael@ximian.com>
718 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
719 to avoid 2 roundtrips to the registry per key event
720 (spi_atk_bridge_key_listener): upd.
721 (deregister_application): release the dec.
723 * registryd/registry.c (notify_listeners_cb):
724 bin lots of re-enterant complexity - we no longer
725 do a round-trip bonobo ref here, ensure that a single
726 listener's exception failure won't poison all other
728 (impl_registry_notify_event): bin obvious memory leak.
730 2002-12-13 Michael Meeks <michael@ximian.com>
732 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
733 init the ev so the error is meaningful.
734 (spi_atk_bridge_key_listener): ditto.
736 * cspi/spi_main.c (cspi_ev): init the ev so we start
737 with a clean slate, otherwise the first exception
740 * cspi/spi_text.c (get_accessible_text_boundary_type):
741 add a fallthrough for no warnings.
743 * cspi/spi_registry.c: prune unused warnings.
745 * cspi/spi_main.c (cspi_object_take): fix
746 mind-blowing brokenness ( by watching the compile
749 * cspi/spi_accessible.c (Accessible_getStateSet):
750 re-impl. to use an AtkStateSet.
751 (spi_state_type_from_accessible_state),
752 (init_state_table): bin these.
754 * libspi/stateset.c (spi_atk_state_set_from_sequence):
756 (atk_state_set_from_accessibility_state_set): here.
758 * cspi/spi_accessible.c (spi_state_to_atk): impl.
759 (AccessibleStateSet_contains, AccessibleStateSet_ref),
760 (AccessibleStateSet_unref, AccessibleStateSet_contains),
761 (AccessibleStateSet_add, AccessibleStateSet_remove),
762 (AccessibleStateSet_equals, AccessibleStateSet_compare),
763 (AccessibleStateSet_isEmpty): re-write to use a local
766 2002-12-13 Bill Haneman <bill.haneman@sun.com>
768 * configure.in: Revved to 1.1.7 (new keymask vals).
770 2002-12-10 Bill Haneman <bill.haneman@sun.com>
773 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
775 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
778 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
779 to compare two CORBA_TypeCodes.
780 (cspi_internal_event_add): Silence warning from FORTE compiler.
782 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
783 avoid implicit declaration of functions.
785 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
787 * atk-bridge/bridge.c:
788 (spi_atk_bridge_init_event_type_consts): Store signal id for
789 active-descendant-changed signal.
790 (spi_atk_register_event_listeners): Add signal listener for
791 active-descendant-changed signal,
792 (spi_atk_bridge_signal_listener): Move code in function
793 spi_atk-signal_emit_event() into this function.
794 Add support for active-descendant-changed
795 Update support for child-changed signal.
796 (spi_bridge_window_event_listener): Silence warning.
798 * libspi/spi_private.[ch]:
799 (spi_init_any_object): Change second parameter from CORBA_Object to
801 Omit call to CORBA_Object_duplicate().
802 Set CORBA_any's _value to CORBA_Object*.
804 2002-12-06 Bill Haneman <bill.haneman@sun.com>
810 (AccessibleEvent_ref, AccessibleEvent_unref):
811 New methods, for persisting an event outside the emission context.
812 Must be used if the new accessor methods are to be called
813 outside of the event listener's callback.
815 * cspi/bonobo/cspi-bonobo.c:
816 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
817 as second parameter instead of NULL, so we can call
818 cspi_check_ev afterwards.
821 (cspi_object_take): New internal method,
822 converts a CORBA_Object reference to a hard ref on
823 an Accessible if possible, returning NULL if the object
824 reference is invalid or an Accessible * otherwise.
827 (AccessibleEvent_ref):
828 Increment the event's internal private refcount, and
829 add the event's internal struct to an internal cache
830 if it's not already there.
831 (AccessibleEvent_unref):
832 Decrement the event's refcount and remove it from
833 the cspi event cache if refcount==0.
834 (cspi_event_compare): New private method.
835 Compares two event structs via their ids. Used
837 (cspi_internal_event_lookup): New private method.
838 (cspi_internal_event_check): New private method,
839 a 0-order sanity check for events to make sure their
840 private data is intact.
841 (cspi_internal_event_add, cspi_internal_event_remove):
842 New private methods for managiing the event cache.
844 * cspi/bonobo/cspi-bonobo-listener.c:
846 Initialize the new private data elements (id, magic, ref_count).
848 * atk-bridge/bridge.c:
849 (spi_atk_bridge_signal_listener):
850 Fixed bug #100530, passing wrong params to emission func.
852 * registryd/deviceeventcontroller.c:
853 (spi_dec_button_update_and_emit):
854 Fixed type in mask bit operations; fix for #99799.
856 2002-12-02 Bill Haneman <bill.haneman@sun.com>
858 Removed some of the more dangerous workarounds from
859 previous commit; they are only needed by GOK, which
860 in reality should be using another method to accomplish
861 the goals. So on reconsideration some of the workarounds
864 * registryd/deviceeventcontroller.c:
865 (spi_keycodes_contain, spi_dec_init_keycode_list):
866 Removed these methods, used only by a nasty hack to try
867 and detect whether a key synthesis should be allowed
868 to reset the XKB latch state or not. This code was only
869 required to work around an interaction between GOK,
870 button events, and XKB.
871 (impl_generate_key_event):
872 Removed hack at end of key generation that tried to
873 "do the right thing" if XKB latch keys were generated
874 in the midst of button press/release pairs.
877 Added a check for HAVE_XINPUT. Not normally used yet.
879 2002-11-25 Bill Haneman <bill.haneman@sun.com>
881 Workarounds and fixes for mouse event/XKB interaction.
883 * registryd/deviceeventcontroller.c:
884 (spi_keycodes_contain, spi_dec_init_keycode_list):
885 New internal methods.
886 (spi_dec_set_unlatch_pending):
887 Split the method that tells XKB to expect an
888 unlatch (and revert it) out of the rest of the
889 event handling code. This method is called by the
890 two mouse event handlers (the poll and the filter).
891 (spi_dec_update_and_emit, spi_dec_mouse_check):
892 New methods split from spi_dec_poll_mouse_moved.
893 The second one is now called from inside the filterFn
894 when an XKB delatch event is received, to determine
895 whether to revert the delatch or not.
896 (spi_poll_mouse_moved): Refactor; also we can now
897 properly handle the case where multiple button states
898 have changed between polling cycles and we didn't get
899 notified due to another client's grab.
901 Synchronize the server while handling an XKB notification.
902 Ugly, but apparently necessary to avoid nasty races.
903 Check the mouse state on receipt of an XKB latch change,
904 to decide whether to revert the latch or not. (Latches are
905 reverted if there is an immediately preceding mouse button
906 event that a client has consumed, in which case we don't want
907 the user to see the side-effect of the event).
908 (spi_device_event_controller_forward_mouse_event):
909 Check for modifier events and fire before resetting mouse_mask_state,
910 prevents losing modifier events.
912 (impl_generate_keyboard_event):
913 If we've just generated a keyboard event for a non-shift key,
914 we don't want to revert the pending XKB latch.
915 Otherwise, check the modifier state (via a call to
916 spi_dev_mouse_check) and set the relatch mask to
917 that state before returning.
919 2002-11-24 Bill Haneman <bill.haneman@sun.com>
922 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
925 * atk-bridge/bridge.c:
926 (spi_atk_register_event_listeners):
927 Don't re-register for ATK events if the registry has died
928 and the app needs to re-register; the ATK listeners are in
929 process and doing so will cause duplicate emission.
931 * registryd/deviceeventcontroller.c:
932 (spi_poll_mouse_moved):
933 Reformat the source, detect and emit multiple button-change
934 events (i.e. if multiple buttons have changed between poll
936 Add code to detect mouse-down events even when the pointer
937 is grabbed; workaround for GOK bug 98420.
938 (spi_controller_register_with_devices):
939 Call XTestGrabControl with 'impervious' flag set to True,
940 allows us to synthesize events and query the pointer even during
941 an active grab by another client.
942 (spi_device_event_controller_forward_mouse_event):
943 Set the mouse_mask_state to the mouse_button_state from
944 the intercepted event, to synchronize the grab listener with
947 2002-11-20 Bill Haneman <bill.haneman@sun.com>
949 * cspi/spi_accessible.c:
950 (AccessibleRole_getName):
951 Added necessary strings for making this (deprecated)
952 method work with the new role types.
953 (init_role_table, role_table):
954 Added definition of SPI_ROLE_APPLICATION.
956 * libspi/spi-roletypes.h:
957 Added SPI_ROLE_APPLICATION.
959 * idl/Accessibility_Role.idl:
960 Added ROLE_APPLICATION.
962 * docs/reference/cspi/at-spi-cspi-decl.txt:
963 Added SPI_ROLE_APPLICATION to docs.
965 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
967 * cspi/spi_accessible.c
968 (cspi_init_role_table): Do not write beyond end of role_table.
969 (Accessible_getRole): Use correct type for value returned by
970 Accessibility_Accessible_getRole().
972 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
973 beyond end of role_table. (This fixes bug #98269)
975 * libspi/application.c: Add include file spi-private.h for
976 definition of spi_init_any_nil.
978 2002-11-19 Bill Haneman <bill.haneman@sun.com>
982 * libspi/spi-private.h:
983 Added DGB() macro, and extern int _dbg declaration.
985 * registryd/registry.c:
986 (definitions) storage for _dbg.
988 Get environment variable "AT_SPI_DEBUG".
989 (spi_registry_set_debug):
990 New method, to initialize _dbg value.
991 (spi_listener_struct_new, spi_registry_object_finalize):
992 (notify_listeners_cb):
993 Changed fprintfs to use DBG and g_warning().
995 * registryd/deviceeventcontroller.c:
996 (_deregister_keygrab, spi_controller_register_device_listener):
997 Changed debug/warning messages to use DBG macro.
1000 (impl_notify_event):
1001 Changed warning messages to use DBG macro and g_warning().
1003 * atk-bridge/bridge.c:
1004 (atk_bridge_init, spi_atk_bridge_get_registry):
1005 (spi_atk_bridge_exit_func):
1006 (spi_atk_bridge_property_event_listener):
1007 Changed status, warning, and error messages to use
1008 g_warning, g_message, and DBG macros.
1011 Read the state of the AT_SPI_DEBUG environment variable
1012 and set a local '_dbg' accordingly.
1014 2002-11-19 Bill Haneman <bill.haneman@sun.com>
1016 FIXES for 98836, 98842, other bugs.
1019 Revved to 1.1.4, interface-age=4, binary-age=4.
1021 * registryd/deviceeventcontroller.c:
1023 Fixed crasher bug in last_mouse_pos initialization.
1025 * registryd/registry.c:
1026 (desktop_add_application, desktop_remove_application):
1027 Added (and then commented out) some support for
1028 object context marshalling. [TODO]
1030 * atk-bridge/bridge.c:
1031 (spi_atk_bridge_event_context_create):
1032 Commented out object context creation until it can
1033 be properly tested and debugged.
1035 * registryd/registry.c:
1036 (impl_registry_notify_event):
1037 Fixed crasher bug, we were calling
1038 spi_re_entrant_list_foreach () with an empty list.
1040 2002-11-18 Bill Haneman <bill.haneman@sun.com>
1042 * idl/Accessibility_Action.idl:
1043 * idl/Accessibility_Component.idl:
1044 * idl/Accessibility_Desktop.idl:
1045 * idl/Accessibility_Event.idl:
1046 * idl/Accessibility_Hyperlink.idl:
1047 * idl/Accessibility_Image.idl:
1048 * idl/Accessibility_Relation.idl:
1049 * idl/Accessibility_Selection.idl:
1050 * idl/Accessibility_State.idl:
1051 * idl/Accessibility_Value.idl:
1052 Updated unimplemented slot count to minimum of
1053 four for all interfaces, for ABI freeze.
1055 * idl/Accessibility_EditableText.idl:
1056 * idl/Accessibility_Text.idl:
1057 Updated unimplemented slot count to six
1060 * idl/Accessibility_Registry.idl:
1061 Updated unimplemented slot count to six
1062 (also for DeviceEventController),
1065 * idl/Accessibility_Table.idl:
1066 Updated unimplemented slot count to eight,
1069 * idl/Accessibility_Event.idl:
1070 Added CORBA_any "any_data" member to Event struct.
1072 * idl/Accessibility_Event.idl:
1073 Added CORBA_any "any_data" member to Event struct.
1075 * atk-bridge/bridge.c:
1077 atk_signal_text_changed, atk_signal_child_changed,
1078 signal ids queried from gtype system.
1079 (AtkBridgeEventContextType): New enum.
1080 (AtkBridgeEventContextData): New struct.
1081 (AtkBridgeEventContext): New struct.
1082 (atk_bridge_init_event_type_consts):
1083 New method, initializes type contants for comparison
1084 prior to emit_eventv.
1085 (atk_bridge_event_context_init): New method,
1086 initializes a CORBA_any from an AtkBridgeEventContext.
1087 (atk_bridge_focus_tracker): Call spi_init_any_nil to
1088 initialize the event.any_data struct.
1089 (spi_atk_bridge_event_context_create): New method,
1090 creates an AtkBridgeEventContext from signal/event info.
1091 (spi_atk_bridge_event_context_free): New method.
1092 (spi_atk_emit_eventv): Changed to take an
1093 AtkBridgeEventContext parameter. We now initialize
1094 the event.any_data member prior to notifying the
1095 Registry, via the AtkBridgeEventContext.
1096 (spi_atk_bridge_property_event_listener):
1097 (spi_atk_bridge_state_event_listener):
1098 Match emit_eventv signature.
1099 (spi_atk_bridge_object_event_listener):
1100 Match emit_eventv signature, and create an
1101 event context from the event details.
1102 Free the event context afterwards.
1103 (spi_atk_bridge_window_event_listener):
1104 Create an event context, pass it to the
1108 (AccessibleEvent_getContextString):
1109 (AccessibleEvent_getContextObject):
1110 New methods, allow query of AccessibleEvent objects
1111 for more context details (via the "any_data" member
1112 of the Event struct, above).
1115 Definitions for AccessibleEvent_getContextString
1116 and AccessibleEvent_getContextObject.
1118 * cspi/spi_listener.h:
1119 (InternalEvent): New struct.
1122 (AccessibleEvent_getContextString):
1123 (AccessibleEvent_getContextObject):
1124 Implementations of new methods, for obtaining
1125 additional context information from some event types.
1127 * cspi/spi_registry.c:
1128 (SPI_registerGlobalEventListener):
1129 Added mention of active-descendant-changed event in docs.
1131 * cspi/cspi-bonobo-listener.c:
1133 Marshal the any into the AccessibleEvent via
1136 * libspi/spi-private.h:
1137 #include <orbit/orbit.h>
1139 (spi_init_any_string):
1140 (spi_init_any_object):
1141 New convenience function declarations.
1145 (spi_init_any_string):
1146 (spi_init_any_object):
1147 New convenience function implementations.
1149 * registryd/deviceeventcontroller.c:
1150 (spi_poll_dec_mouse_moved):
1151 (spi_device_event_controller_forward_mous_event):
1152 Initialize any_data member of event.
1153 (spi_deregister_controller_device_listener):
1154 Fix incorrect param pass which was preventing deregistration.
1156 * registryd/registry.c:
1157 (desktop_add_application):
1158 (desktop_remove_application):
1159 Add object data to event's any_data before dispatch.
1161 Fix for error messages from GAIL.
1163 * test/event-listener-test.c:
1164 Test new ContextString and "any_data" API:
1165 (report_text_event): New method query and output context string.
1166 (main): register a new text listener with report_text_event
1169 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1171 Fixes for bugs 98127 and 97914.
1172 * cspi/spi-roletypes.h:
1173 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1175 * cspi/spi-statetypes.h:
1176 Added SPI_STATE_MANAGES_DESCENDANTS
1178 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1179 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1180 * cspi/spi_accessible.c:
1181 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1182 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1183 Accessibility_STATE_MANAGES_DESCENDANTS
1184 * libspi/accessible.c:
1185 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1186 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1187 As requested by Bill, I also cleaned up the alignment.
1188 * libspi/relation.c:
1189 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1190 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1191 * libspi/stateset.c:
1192 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1193 Accessibility_STATE_MANAGES_DESCENDANTS
1194 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1195 Document changes reflecting modifications to roles.
1196 * docs/reference/cspi/tmpl/spi_relation.sgml:
1197 Document changes reflecting modifications to relations.
1198 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1199 Document changes reflecting modifications to states.
1201 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1204 Revved to 1.1.3, interface-age=3, binary-age=3.
1205 Added REBUILD macro.
1208 Removed accessx-gui from the tests, since we have a nice
1209 keyboard accessibility capplet now :-)
1211 * test/keysynth-demo.c:
1212 (increment_scan): removed do-nothing default: case,
1215 * test/visual-bell.c:
1216 (main) : removed do-nothing default: case,
1219 * cspi/spi_action.c:
1220 (AccessibleAction_getKeyBinding_):
1221 Documented keybinding string format.
1225 (AccessibleText_getAttributes):
1226 Documented the text attribute string format.
1227 It's changed to use semicolon delimiters also,
1228 to prevent clashes with CSS attributes, but the old
1229 trick of looking for ", " strings will still work
1230 (as unreliably as ever). Fix for bug related to 97916.
1233 Include <cspi/bonobo/cspi-bonobo-listener.h>
1234 Fixes build warning.
1235 (SPI_freeAccessibleKeySet):
1236 (AccessibleKeystrokeListener_addCallback):
1237 (AccessibleKeystrokeListener_removeCallback):
1238 Modify to use AccessibleDeviceListener API internally,
1239 instead of AccessibleKeystrokeListener.
1241 * idl/Accessibility_Event.idl:
1242 Added two more empty slots to EventListener (for a total of four).
1244 * idl/Accessibility_Accessible.idl:
1245 Added four empty slots to Accessible interface.
1247 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1249 * idl/Accessibility_Registry.idl:
1250 (KeyEventType, EventType):
1251 Marked KeyEventType as deprecated; it duplicates
1252 functionality of EventType, which has been extended to
1253 include Mouse-button events.
1254 (KeyEventTypeSeq): defined in terms of EventType.
1255 (registerDeviceEventListener, deregisterDeviceEventListener):
1256 New methods, for managing listeners to device events,
1257 which potentially may consume them.
1260 Added definition for AccessibleDeviceListener.
1262 * cspi/spi-listener.h:
1263 (enum AccessibleDeviceEventType):
1264 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1265 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1266 for backwards compat.
1267 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1268 and typedef'd AccessibleKeystroke to it for back-compat.
1269 (AccessibleDeviceListenerCB):
1270 New function prototype typedef.
1273 (AccessibleDeviceEventMask): New typedef.
1274 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1275 (AccessibleKeyMaskType):
1276 Set equivalent to AccessibleModifierMaskType for back-compat.
1277 (SPI_createAccessibleKeystrokeListener):
1278 (AccessibleKeystrokeListener_unref):
1279 Deprecated in favor of equivalent (better-named) new API below..
1280 keystroke listeners are like all device listeners.
1281 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1282 New API names for old features :-).
1283 (AccessibleDeviceListener_addCallback):
1284 (AccessibleDeviceListener_removeCallback):
1285 (SPI_registerDeviceEventListener):
1286 (SPI_deregisterDeviceEventListener):
1290 (SPI_createAccessibleKeystrokeListener):
1291 Use new preferred API, cspi_device_listener_new() and
1292 cspi_device_listener_add_cb().
1293 (AccessibleKeystrokeListener_removeCallback):
1294 Use new preferred API, cspi_device_listener_remove_cb().
1295 (AccessibleKeystrokeListener_unref):
1296 Use new preferred API, cspi_device_listener_unref().
1297 (SPI_createAccessibleDeviceListener):
1298 (AccessibleDeviceListener_addCallback):
1299 (AccessibleDeviceListener_removeCallback):
1300 Implementation of new API.
1302 * cspi/spi_registry.c:
1303 (SPI_registerDeviceEventListener):
1304 (SPI_deregisterDeviceEventListener):
1305 Implementation of new API. Fixed memory leak and removed need to
1306 allocate EventTypeSeq (thanks Michael for catching this).
1307 Squashed a wayward CORBA_exception_free that shouldn't get called.
1309 * cspi/bonobo/cspi-bonobo-listener.c:
1311 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1312 (cspi_key_event): renamed to cspi_device_event().
1313 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1314 Extended to handle mouse button events as well as key events.
1315 (CSpiKeystrokeListener):
1316 Class superceded by CSpiDeviceListener.
1317 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1318 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1320 * cspi/bonobo/cspi-bonobo-listener.h:
1321 (CSpiKeystrokeListener):
1322 Class superceded by CSpiDeviceListener.
1323 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1324 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1326 * libspi/Makefile.am:
1327 Replaced keystrokelistener.h and keystrokelistener.c
1328 with devicelistener.h and devicelistener.c; keystrokelisener.h
1329 stub retained for back-compat.
1331 * libspi/keystrokelistener.c:
1335 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1337 * registryd/deviceeventcontroller.c:
1338 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1339 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1340 (DEControllerPrivateData): Added xkb settings data.
1341 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1342 button release events (which can't be captured via XGrabButton).
1343 Don't dispatch via the 'normal' event mechanism if the device event was
1345 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1346 Handle the typeseq data in its new location (see above).
1347 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1348 New methods, for "generic" device listeners.
1349 (spi_controller_register_device_listener):
1350 Now handle mouse event listeners as well as key listeners.
1351 (spi_controller_notify_mouselisteners):
1352 New internal method.
1353 (spi_device_event_controller_forward_mouse_event):
1354 Now we notify mouse device listeners as well as generating the
1355 non-consumable "mouse:" events.
1357 We must check and restore the XKB
1358 modifier map if we consume the event, since the act of triggering
1359 a mouse event will normally reset the XKB latch. This is required for
1361 (spi_controller_register_with_devices):
1362 Load the XKB settings when registering, and register for XKB
1363 state notify events.
1364 (spi_key_eventtype_seq_contains_event):
1365 Renamed spi_eventtype_seq_contains_event, since it's used
1366 internally for all device event types now.
1367 (spi_key_event_matches_listener):
1368 Uses spi_eventtype_seq_contains_event now.
1369 (spi_device_event_controller_object_finalize):
1370 Free the private data and the XkbKeyboard struct.
1371 (impl_register_device_listener, impl_deregister_device_listener):
1372 Implementation of new IDL.
1373 (spi_deregister_controller_device_listener):
1374 New internal method.
1375 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1376 More efficient implementation, we don't have to create a new
1377 XkbControls structure every time we query.
1378 (spi_device_event_controller_class_init):
1379 Initialize the epv entries for the new IDL. Assign the
1380 "spi-dec-private" quark.
1381 (spi_device_event_controller_init):
1382 Initialize the private data.
1383 (spi_device_event_controller_forward_key_event):
1384 Removed a bogus CORBA_exception_free() call.
1386 * registryd/deviceeventcontroller.h:
1387 Replaced inclusion of keystrokelistener.h with
1390 * test/event-listener-test.c:
1391 (report_mouse_event):
1394 Added mouse-event device listener.
1396 * test/test-simple.c:
1397 (create_test_window):
1398 Fixed regression (we were instantiating a GtkRange,
1399 which is now an abstract class). Also fixed to match
1400 existing AtkRole names, this seems to have changed in ATK
1401 awhile ago; too late now I think, and the new
1402 mechanism is at least elegant and consistent with the
1403 glib enum "nick" APIs.
1405 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1407 * idl/Accessibility_Relation.idl:
1408 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1409 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1410 * idl/Accessibility_Role.idl:
1411 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1412 * idl/Accessibility_State.idl:
1413 add STATE_MANAGES_DESCENDANTS
1414 * test/event-listener-test.c:
1415 Added a listener for active-descendant events.
1417 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1419 * atk-bridge/bridge.c
1420 (atk_bridge_init): If application is Bonobo component wait until top
1421 level is added before registering
1422 (spi_atk_bridge_do_registration): New function which contains code,
1423 formerly in atk_bridge_init, to do application registration.
1424 (spi_atk_bridge_toplevel_added): Signal called when top level
1425 added to Bonobo component
1427 This fixes bug #83134.
1429 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1431 * registryd/deviceeventcontroller.c
1432 Fixed compilation error caused by calling gettimeofday()
1435 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1440 Added template for HAVE_XKB.
1443 Changes to check for XKB, and to set the HAVE_XKB #define if it
1446 * libspi/listener.c:
1447 ()impl_notify_event): Make failure to get event source name
1450 * registryd/deviceeventcontroller.c:
1451 (#include): include X11/XKBlib.h.
1452 (DEControllerPrivateData) : New struct.
1453 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1455 (dec_synth_keycode_press) (dec_synth_keycode_release):
1456 New methods; split the key synthesis code into these methods.
1457 They check XKB settings before determining the "time" values to
1458 pass to Xtest; this fixes bug #95828.
1459 (impl_generate_keyboard_event): Changed to use methods above,
1460 instead of callng Xtest directly.
1461 (spi_device_event_controller_init): Initialize new privae struct s
1463 (spi_device_event_controllr_object_finalize):
1464 Free the (new) private data.
1466 * registryd/deviceeventcontroller.h:
1467 Add new gpointer to end of struct data.
1469 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1472 Incremented revision to 1.1.2, SONAME is still '.so', library
1473 extensions are ".so.0.0.2".
1475 * registryd/deviceeventcontroller.c:
1476 FIXES FOR #93592 and #95940.
1477 (statics): renamed mouse_button_state to mouse_mask_state,
1478 added key_modifier_mask.
1479 (spi_dec_poll_mouse_moved):
1480 Added key modifier checks, and emit "keyboard:modifiers"
1481 events when the key modifiers currently in use change.
1482 Also generate "mouse:abs" events periodically, even if the mouse
1483 is stationary (should we?).
1484 Alternatively we could generate "mouse:abs" events for either all
1485 mouse movements, or every 'nth' mouse movement, or at the
1486 beginning and end of every "active" mouse period.
1488 * test/event-listener-test.c:
1489 (main): Added listener for "keyboard:modifiers" events.
1491 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1493 * libspi/keymasks.h:
1494 Added key mask #defines for mouse buttons; e.g.
1495 SPI_KEYMASK_BUTTON1, etc.
1498 Incremented dependency on ATK to version 1.1.0. (This dependency
1499 is probably premature but will soon be real enough).
1501 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1503 * libspi/hyperlink.[ch]
1504 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1505 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1508 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1513 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1515 * registryd/deviceeventcontroller.c
1516 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1517 events to be ignored.
1518 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1519 keyboard_mode so that XAllowEvents() can be called.
1523 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1525 * cspi/spi-accessible.c: Correct names of roles returned by
1526 AccessibleRole_getName(). Fixes bug #95055.
1528 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1530 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1533 * registryd/registry.c
1534 (desktop_remove_application: Write diagnostic message to stderr for
1537 (impl_accessibility_registry_deregister_global_event_listener):
1538 Correct size of lists array. This addresses bug #94555).
1540 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1542 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1545 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1547 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1550 * registryd/registry.c (impl_registry_notify_event): Remove
1551 unnecessary call to parser_event_type().
1553 * docs/reference/cspi/tmpl/spi_component.sgml:
1554 Add reference to SPI_LAYER_WINDOW.
1556 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1558 * registryd/registry.c
1559 (desktop_add_application): Remove leak.
1560 (desktop_remove_application): Remove leak.
1561 (parser_event_type): Remove leak.
1563 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1565 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1566 bogus call to CORBA_string_dup(). Also removed unnecessary
1567 g_string_dup/g_free calls.
1569 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1571 * registryd/deviceeventcontroller.c:
1572 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1574 * test/event-listener-test.c:
1575 main: commented out three redundant listeners, to reduce output
1576 noise. (They still are potentially useful for testing).
1579 2002-09-13 Michael Meeks <michael@ximian.com>
1581 * Update all the copyrights to include Ximian.
1583 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1585 * cspi/spi.h: add SPI_LAYER_WINDOW.
1587 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1588 add Accessibility_LAYER_WINDOW case.
1590 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1592 * libspi/component.c: (impl_accessibility_component_get_layer):
1593 add ATK_LAYER_WINDOW case.
1595 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1597 * configure.in: incremented micro version.
1599 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1601 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1604 Clarified and reworded our commit policy.
1607 Started an API "todo" addition list for 2.2.
1610 (impl_getSelection):
1611 Free char pointer from atk_text_get_selection, which was being leaked.
1613 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1616 Small revision to author acknowledgement.
1618 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1620 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1621 If signal has detail add it to the type of the event.
1624 2002-08-12 Michael Meeks <michael@ximian.com>
1626 * test/test-simple.c (global_listener_cb): bin bogosity.
1627 (test_keylisteners): disable, still doesn't work reliably,
1628 certainly not on my system anyway.
1630 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1631 don't leak a reference on the DEC. This round-trip
1632 fetching of the DEC per keystroke sucks, it should be
1635 * cspi/spi-private.h,
1636 * cspi/cspi-lowlevel.h,
1637 * cspi/bonobo/cspi-bonobo-listener.[ch],
1638 * cspi/bonobo/cspi-bonobo.c: get the copyright
1639 notices better - there is still a large amount of
1640 work in at-spi falsely attributed solely to Sun.
1642 * cspi/spi_main.c (cspi_object_ref): kill bogus
1643 hash lookup, just increment the ref.
1644 (SPI_freeString): make explicit the fact that we
1645 handle NULL strings just fine.
1646 (report_leaked_ref): obey coding standards.
1647 (cspi_object_hash, cspi_object_equal): kill retval.
1648 (cspi_object_release): only release if not on loan.
1649 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1650 (cspi_object_borrow, cspi_object_return): impl.
1652 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1653 use cspi_object_borrow / return.
1655 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1657 * cspi/bonobo/cspi-bonobo-listener.c:
1659 Don't call cspi_oject_new() because this is creating a new Accessible
1660 every single time that an event is fired. This causes ATs like at-poke
1661 to nolonger recognise the source of the event and thus ignore it.
1662 Re-use the object from the cache, ref it and then unref it after the
1663 listeners have been called.
1665 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1667 * test/event-listener-test.c:
1668 Added command-line options to disable mouse events (m) and
1671 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1673 * configure.in: Update required versions of ATK, GTK+ and GAIL
1675 * cspi-1.0.pc.in: Add dependency for X include files
1678 * cspi/bonobo/Makefile.am:
1679 Add $(X_CFLAGS) so that X include files
1680 are picked up even if not in standard place (bug #71686)
1682 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1684 * registryd/deviceeventcontroller.c: fix for 84261
1685 (spi_dec_mouse_moved):
1686 Added test of mouse button mask, so that we can detect mouse
1687 button release. Unfortunately we can't otherwise detect mouse
1688 button release events without consuming the mouse press event,
1689 because of the way XGrabButton works. This means that our mouse
1690 release events have a latency dependent on the polling period
1691 while the mouse button is down. At least in this case we only
1692 have to poll while the button is down, and not at other times.
1693 If the button masks don't match with what the last press event
1694 reported, we report the appropriate button release event.
1695 (spi_dec_ungrab_mouse):
1696 New method (not yet called).
1697 (spi_device_event_controller_forward_mouse_event):
1698 New method, sends mouse press event from GdkFilter.
1699 (spi_dec_init_mouse_listener):
1700 Added code to call XGrabButton, redirecting mouse button events to
1701 the root window and our Gdk event loop.
1703 Added code to filter mouse button events, and reordered.
1705 * test/event-listener-test.c:
1707 Added registration for mouse events of type "mouse:button".
1709 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1711 * registryd/deviceeventcontroller.c: partial fix for 84261
1712 (spi_dec_poll_mouse_idle):
1713 New method, a timeout which checks to see if the mouse
1715 (spi_dec_poll_mouse_moving):
1716 A timeout to be called when mouse motion is underway.
1717 (spi_dec_poll_mouse_moved):
1718 A method which fires an event if the mouse has moved, and reports
1719 whether or not it did so.
1720 (spi_dec_init_mouse_listener):
1721 A method which sets up the timeouts above.
1722 (spi_device_event_controller_new):
1723 Now calls spi_dec_init_mouse_listener.
1725 * registryd/registry.c:
1726 (spi_registry_init):
1727 Now we initialize the device event controller when the registry is
1728 initialized, instead of waiting until a client has requested a key
1729 event notification; this is because we need the event controller
1730 for mouse events, but the mouse event registration API is a
1731 "registry" call and doesn't explicitly call the
1732 deviceeventcontroller.
1733 We now report mouse motion events with a 100 ms idle latency and
1734 a 20 ms granularity when motion is in progress.
1736 * test/event-listener-test.c:
1738 We now register the "detail listener" for events of type
1739 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1740 delivered only for the first mouse event received, and thereafter
1741 "mouse:abs" events are delivered.)
1743 * cspi/spi_registry.c:
1744 DOCS: Documented the above mouse event typestrings.
1746 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1748 Happy Summer Solstice...
1750 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1751 (spi_controller_notify_keylisteners):
1752 Changes to remove a listener from the listener list, freeing its
1753 open keygrabs, if a notification to that listener fails. This
1754 means that although a dead listener can continue to hold a passive
1755 keygrab, a maximum of one dispatch to such a listener can fail
1756 before the listener is removed from the list, thus the keygrab
1757 will be released on the next occurrence.
1758 As part of this fix:
1759 (spi_notify_keylisteners):
1760 Renamed to spi_controller_notify_keylisteners, as the controller
1761 instance must now be passed as an argument.
1762 The copied 'notify' GList is now a list of DEControllerKeyListener
1763 objects, since we need more than just the CORBA reference if a
1764 notify fails and we need to deregister the listener.
1765 (impl_notify_listeners_sync):
1766 (impl_notify_listeners_async):
1767 (spi_device_event_controller_forward_key_event):
1768 Modify use of notify_keylisteners in accordance with above
1770 (spi_deregister_controller_key_listener):
1771 New method introduced by refactoring, from
1772 impl_deregister_keystroke_listener.
1773 (impl_deregister_keystroke_listener):
1774 Call spi_deregister_controller_key_listener.
1775 (spi_key_listener_clone):
1776 New method to copy a key listner without doing a 'ref' on the
1777 remote object instance; used to create a notifier list.
1778 (spi_key_listener_data_free):
1779 New method, frees data without unreffing the source.
1781 (spi_key_listener_clone_free): new method.
1782 (spi_key_listener_free):
1783 refactored to call spi_key_listener_data_free.
1785 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1787 * registryd/registry.c: [fix for bug 86048]
1788 (notify_listeners_cb):
1789 Clear CORBA system exceptions which occur when notifying
1790 listeners, before returning to the source of the original event,
1791 since the event source doesn't care if the relayed notify failed.
1792 In other words, don't complain to the atk-bridge if the registry
1793 could not notify all its listeners, that's no fault of the
1794 application and thus should not appear to be an error from the
1795 application's perspective.
1797 * cspi/spi_main.c: [fix for bug 85980]
1799 Replaced use of bonobo_object_dup_ref with call to the wrapper
1800 method, csou_dup_ref (); this silences a compiler warning and
1801 provided more portability.
1803 Ping the registry before return, and restart if necessary.
1805 * cspi/bonobo/cspi-bonobo.c:
1807 New internal method.
1809 Fixed this method to return an object reference, as it should have
1812 * cspi/cspi-lowlevel.h:
1813 Added internal definition for cspi_ping() and fixed
1814 return type of cspi_dup_ref().
1817 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1819 * atk-bridge/bridge.c: [fix for bug 85305]
1820 (spi_atk_bridge_register_application):
1821 New method where the initial application registry calls have been
1822 moved; it allows an application to re-register in response to
1823 certain error conditions (such as a registry restart, see below).
1825 Moved some initialization code to the method
1826 spi_atk_bridge_get_registry, below.
1827 (spi_atk_bridge_get_registry):
1828 New, private accessor function for the Accessibility_Registry
1829 instance. If the registry has not been started before, or has
1830 died (as detected by failure of a CORBA exception), it is
1831 restarted before return, and spi_atk_bridge_register_application
1832 is called again to register with the new bridge instance.
1833 (spi_atk_emit_eventv):
1834 Set registry_died on error; use spi_atk_bridge_get_registry () to
1835 access the registry.
1837 * registryd/registry.c:
1838 (impl_accessibility_registry_register_global_event_listener):
1839 Set listener's event_type_quark to etype.minor instead of
1840 etype.major (fix for bug 84856).
1842 * test/event-listener-test.c:
1843 (report_detail_event):
1844 Change the output string so that user/tester can tell that the
1845 'detail listener' was called instead of the 'generic listener'.
1847 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1849 Fixes for bugs 84900, 84908, 84897, 84898.
1854 Revved version to 1.1.0
1855 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1856 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1858 * idl/Accessibility_Registry.idl:
1859 (EventListener::notifyEvent):
1860 Removed 'oneway' directive after extensive consulation with
1861 ORBit2 team and others. This means also that unref() of the event
1862 source can and should be done synchronously after emission, rather
1863 than remotely in the client, after servicing the notify call on
1866 NOTE: This change speeds up listener performance considerably, but
1867 introduces new latency on the application side. We may want to
1868 add an event queue to the atk-bridge.
1870 * atk-bridge/bridge.c:
1871 (spi_atk_bridge_focus_tracker):
1872 Do a local unref() on the event source after emission.
1874 * registryd/registry.c:
1875 (desktop_remove_application):
1876 Do an unref() on the event source after emission.
1877 (desktop_add_application):
1878 Do an unref() on the event source after emission.
1879 (notify_listeners_cb):
1880 When relaying an event, don't automatically add the event source
1881 to the local object cache, just CORBA_dup it instead. Likewise,
1882 if this method reenters, release the ref rather than calling
1884 (impl_registry_notify_event):
1885 No longer call remote unref() on the event source after dispatch.
1887 * libspi/eventlistener.c:
1888 (impl_accessible_event_notify_event):
1889 Removed remote unref ()
1891 * cspi/bonobo/cspi-bonobo-listener.c:
1893 We now call cspi_object_new() instead of cspi_object_add() on
1894 receipt of an event; thus we only have an implicit object ref
1895 while the cspi_event method is being executed. If we need to keep
1896 a reference to the object, the listener must call ref() on the
1897 object. Thus also we don't need to call cspi_object_unref() after
1898 invoking the listener callbacks in this method.
1902 New internal API for creating a new cspi object, without adding it
1903 to the object cache.
1905 Now uses cspi_object_new() to create the cspi object instance.
1907 Now checks to see if the object is in the internal object cache,
1908 and adds it if necessary before incrementing its refcount (note
1909 that new objects are added with a refcount of 1).
1910 (report_leaked_ref):
1911 New method which gives some information on leaked object instances
1912 if leak detection is turned on.
1914 * test/event-listener-test.c:
1915 (timing_test_event):
1916 New method, used for testing event delivery timing for special
1917 events of type "object:test". It reports elapsed time and
1918 events/sec every 500 events.
1920 Added a new listener, 'test listener', to check timing of event
1921 receipt as noted above.
1923 Added some timing output here also, reports elapsed time every 100
1926 * test/stress-test.c:
1927 Emit events of type "object:test", for use with "event-listener-test".
1929 * test/test-simple.c:
1930 (global_listener_cb):
1931 Call Accessible_ref() on the event source before calling
1932 validate_accessible, since the validation process does pointer
1933 comparisons on the event source, meaning that the event source
1934 needs to be added to the local object cache first. Any use of
1935 such pointer comparisons between Accessible objects requires that
1936 the caller hold an explicit reference to those objects.
1937 We also must therefore call Accessible_unref() when leaving this method.
1939 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1941 * registryd/deviceeventcontroller.c:
1942 (spi_controller_update_key_grabs):
1943 Fix for #84735, subsequent keygrab listeners not informed of
1944 registration failure.
1947 (spi_base_construct):
1948 Add an assertion on construct, to make sure the GObject passed in
1949 is really a GObject.
1951 Explicitly initialize object->gobj pointer to NULL;
1953 * cspi/bonobo/cspi-bonobo-listener.c:
1954 (cspi_object_add_ref):
1955 New method, can specify whether to dup-ref a bonobo object passed
1956 in if it's newly added to the object cache.
1958 Now calls cspi_object_add_ref with second param of "FALSE". This
1959 prevents us from doing a pointless dup-ref followed by
1960 release-unref for all those cases where the object is already in
1961 our object cache (fix for #85205).
1963 * atk-bridge/bridge.c:
1964 (spi_atk_bridge_idle_init):
1965 Removed this method, we don't need to initialize in an idle
1968 Changed to call spi_atk_register_event_listeners directly, not via an
1969 idle handler. (fix for #81139)
1970 (gnome_accessibility_module_shutdown):
1971 Removed conditional around deregistration of listeners, since we
1972 don't use the idle handler and thus have always registered when
1974 (spi_init_keystroke_from_atk_key_event):
1975 Changed references to Accessibility_KEY_PRESSED to
1976 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1978 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1980 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1985 * test/stress-test.c:
1988 (may have been an incomplete commit yesterday?)
1990 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1993 Added target for new stress-test.
1995 * test/stress-test.c:
1996 New test, sends 1000 focus notifies in quick succession.
1998 * test/key-listener-test.c:
1999 Now we report whether a keylistener registration
2000 request succeeded or failed.
2002 * test/event-listener-test.c:
2003 Uncommented some listeners which are now implemented.
2006 2002-06-06 Bill Haneman <bill.haneman@sun.com>
2008 * registryd/deviceeventcontroller.c:
2009 (spi_controller_update_key_grabs):
2010 Fix for #82509, lack of failure notification when
2011 ALL_WINDOWS keygrabs fail due to XGrabKey
2012 failure: we synchronize the server when
2013 registering a passive grab, to make sure we get the
2014 error message before the call returns.
2016 2002-06-03 Bill Haneman <bill.haneman@sun.com>
2018 * test/test-simple.c:
2020 Removed #ifdef KEY_IMPL_WORKS guards.
2021 (test_keylisteners):
2022 Removed #ifdef KEY_IMPL_WORKS guards.
2023 Fixed bug which was causing a hang waiting for a
2024 "press" event (which was already overwritten by a "release"
2025 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
2027 Added code to set globals 'key_press_received' and
2028 'key_release_received'.
2031 Added section "1.1 API Proposed Additions" which
2032 lists API additions desired for at-spi-1.1 (only one so far).
2033 Updated TODO list a little.
2035 2002-06-02 Bill Haneman <bill.haneman@sun.com>
2037 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
2040 * configure.in: Revved to 1.0.0.
2042 * idl/Accessibility_Registry.idl:
2043 (registerKeystrokeListener):
2044 Added boolean return value.
2046 * registryd/registry.c:
2047 (notify_listeners_cb): Minor fix to debug output.
2049 * registryd/Accessibility_Registry.server.in.in:
2050 Revved version number in OAFIID to 1.0.
2052 * registryd/registryd.c:
2054 Use new OAFIID version.
2056 * cspi/bonobo/cspi-bonobo.c:
2058 Use new OAFIID version.
2064 * atk-bridge/bridge.c:
2066 Use new OAFIID version.
2068 * registryd/deviceeventcontroller.c:
2069 (impl_register_keystroke_listener):
2070 Added CORBA_boolean return value.
2071 (spi_controller_register_device_listener):
2072 Added gboolean return value.
2073 (spi_controller_register_global_keygrabs):
2074 Added gboolean return value.
2075 (spi_key_set_contains_key):
2076 Added implementation for many more control keys,
2077 for instance F1-F12, arrow keys, End, Home, Page_Up,
2079 [TODO: some still not implemented].
2081 * text/screen-review-test.c:
2082 (text_chunk_pad_string):
2083 New function: it provides mapping between coordinate
2084 positions of text chunks and character positions in the
2085 screen-review-line output string.
2086 (text_chunk_to_string):
2087 New function, calls text_chunk_pad_string with various
2088 pad/delimiter characters. Pushbuttons are delimited with
2089 square brackets, Frames with vertical 'pipe' lines, and
2090 other text with double quotes.
2091 (text_chunk_list_to_string):
2092 Calls new function text_chunk_to_string.
2093 (toplevel_composite):
2094 New function to composite layers CANVAS through
2095 POPUP in each toplevel (other layers are composited
2096 across toplevels, i.e. BACKGROUND and OVERLAY).
2097 (review_buffer_composite):
2098 Revise to use new methods.
2104 2002-05-31 Laszlo Peter <laca@sun.com>
2106 * configure.in: add the Xtst libdir to the runpath on Solaris,
2107 since it's not in the default library search path.
2109 2002-05-29 jacob berkman <jacob@ximian.com>
2111 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2113 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2115 * test/screen-review-test.c:
2116 (text_chunk_pad_string):
2117 Added method, which pads the string according to the
2118 text bounds of the chunk. It also takes a 3-character
2119 string as a param which indicates the characters to be
2120 used for start, padding, and end delimitation of the chunk.
2121 (text_chunk_to_string):
2122 Changed to use text_chunk_pad_string.
2124 * configure.in: Fixed bug in AC_OUTPUT that was
2125 causing path substitution in Accessibility_Registry.server
2128 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2130 * text/screen-review-test.c:
2131 (guess_string_clip):
2132 New method which attempts a best-guess at clipping
2133 text from components (like Java labels) which don't
2134 actually implement AccessibleText. This inaccurate
2135 clip is based on the assumption that the label is
2136 justified left-and-right, and monospaced.
2137 (text_chunk_get_clipped_string):
2138 We now call guess_string_clip() for text-containing
2139 components that don't implement AccessibleText.
2141 * test/screen-review-test.c:
2142 (review_buffer_get_text_chunk):
2143 We now pull "name" from labels if they do not implement
2144 AccessibleText (i.e. for Java labels).
2145 (get_screen_review_line_at):
2146 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2149 Replaceded AC_OUTPUT target
2150 registryd/Accessibility_Registry.server with
2151 registryd/Accessibility_Registry.server.in.
2153 * registryd/Accessibility_Registry.server.in:
2154 Removed (this is now a Makefile target).
2156 * registryd/Accessibility_Registry.server.in.in:
2157 Added (source for target above). We now use $(libexecdir) as
2158 prefix for the executable at-spi-registryd.
2160 * registry/Makefile.am:
2161 Now install at-spi-registryd into $(libexecdir), and build .server
2162 file with path (see above).
2164 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2166 * test/screen-review-test.c:
2167 (text_chunk_get_clipped_string):
2168 We now check to see if words fall within clip bounds
2169 before resorting to character-by-character clip bounds testing.
2171 * TODO: Added a section for "2.2 Proposed API Additions".
2173 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2175 * test/screen-review-test.c:
2177 Added a screen review benchmarking and test program to test
2180 * cspi/spi_accessible.c:
2182 Made some of the debug strings passed to cspi_check_ev a
2183 little more specific.
2185 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2187 * test/screen-review-test.c: Fix crashes in debug statements
2189 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2191 * test/screen-review-test.c: Added this file.
2193 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2195 * atk-bridge/bridge.c: changed "object:state-change" to
2196 "object:state-changed" to match docs.
2198 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2200 * atk-bridge/bridge.c: Hooked up state-change event details.
2202 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2204 * registryd/registry.c:
2205 Fixed quarking bug in event string parsing; now events with
2206 detail parameters get matched correctly to listeners.
2209 * util/idl/Magnifier.idl: remove.
2211 * util/*.[ch]: Remove.
2212 Magnification utilities and IDL are now in module gnome-mag.
2214 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2216 * registryd/deviceeventcontroller.c:
2217 Fixed bug in grab key conversion which was causing keycode grabs
2218 to be converted to AnyKey grabs.
2221 updated NEWS file to reflect recent spin-off of gnome-mag.
2223 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2225 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2226 busted AccessibleStateSet_compare. Removed redundant casts.
2228 * cspi/spi-action.c: Removed redundant casts.
2230 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2232 * cspi/spi_component.c: Fixed typos and casting error.
2234 * cspi/spi_editabletext.c: Removed redundant casts.
2236 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2238 * cspi/spi_hypertext.c: Eliminated redundant casts.
2240 * cspi/spi_image.c: Eliminated redundant casts.
2242 * cspi/spi_registry.c: Eliminated redundant casts.
2243 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2244 * cspi/spi_selection.c: Removed redundant casts.
2245 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2246 handling. Screen geometry and text offsets were being returned as 0
2247 on error which is technically valid-- changed these to return -1.
2248 Added marshaller for text boundary types to fix bug with boundary
2249 types being passed incorrectly to atk.
2251 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2254 * cspi/spi_registry.c:
2255 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2256 which was uncovered by the recent key changes.
2258 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2260 * test/event-listener-test.c:
2262 Added new test, "event-listener-test";
2263 this code does two things; it benchmarks traversal time
2264 for the accessible hierarchy for the first running accessible
2265 app, and it connects listeners for all supported event types.
2266 It is thus useful as an example event listener and for
2267 diagnostics/debugging of event generation.
2269 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2272 Removed unnecessary dependency on libutil.
2275 Revved micro version: 0.13.1
2277 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2280 Removed util/Makefile from targets.
2283 Removed util subdir from SUBDIRS (temporarily,
2284 pending removal of magnifier-only code
2288 #ifdef-ed out magnifier dependencies, since
2289 magnifier IDL, headers, and binary now live in
2290 module gnome-mag and we don't want at-spi to depend
2291 on gnome-mag. A magnifier demo which can run alongside
2292 simple-at is forthcoming in the gnome-mag module.
2294 NOTE: Split magnifier binary, IDL, and magnification
2295 activation code from at-spi into module gnome-mag.
2297 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2299 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2300 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2302 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2305 Revved to version 0.13.0
2307 * idl/Accessibility_Registry.idl:
2308 Changed definition of KeySet from sequence of longs to sequence of
2309 KeyDefinitions, and added KeyDefinition struct.
2310 Required for fix to bug 80616.
2312 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2313 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2314 to use new definition (see above).
2316 * registryd/deviceeventcontroller.c: handle_keygrab(),
2317 spi_keyset_contains_key():
2318 Changed to make use of new struct; this allows matching based on
2319 string key-name, for instance "Tab". This also allows matching of
2320 composed characters, non-alphanumeric characters in a way that
2321 doesn't involve dependencies on X keysym codes directly, etc.
2323 * test/key-listener-test.c:
2324 Added test for Alt-Tab key using "string" specification of keyset,
2325 and modified one of the tests to use a keycode-based keyset.
2326 Thus this test both tests and demonstrates the creation and use of
2327 keysets of three forms: specified via keycode array,
2328 keysym array, and string array. (The string case only contains a
2329 single string, i.e. a string array of length 1).
2332 Turned on PRINT_TREE option by default. Also fixed a
2333 string-freeing bug in the PRINT_TREE code.
2334 Added a listener to window:minimize events.
2336 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2338 * atk-bridge/bridge.c:
2339 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2340 for window:activate and window:deactiveate
2341 (atk_bridge_property_event_listener atk_bridge_signal_listener
2342 atk_bridge_window_event_listener) Tidy debug code
2344 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2346 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2347 Fixed handling for NULL return value from ATK.
2349 * libspi/action.c libspi/component.c libspi/editabletext.
2350 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2351 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2352 Removed redundant casts.
2354 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2355 Fixed off by one bug.
2357 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2358 function not present in idl)
2360 2002-05-02 jacob berkman <jacob@ximian.com>
2362 * atk-bridge/Makefile.am: make atk-bridge a real module
2364 2002-04-26 Radek Doulik <rodo@ximian.com>
2366 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2367 atk_state_types table
2369 2002-04-22 jacob berkman <jacob@ximian.com>
2372 * libspi/Makefile.am: add deps on the built files to help
2373 automake, and don't version the ORBit typelib
2375 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2377 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2378 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2379 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2380 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2381 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2382 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2383 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2384 libspi/accessible.h libspi/accessible.h libspi/base.h
2385 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2386 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2387 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2388 libspi/spi-private.h libspi/statetset.h libspi/table.h
2389 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2390 util/mag_client.h util/mag_control.c util/mag_image.c
2391 util/mag_image.h util/magnifier.c util/magnifier.h:
2392 Add missing file headers; standardize existing ones
2394 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2396 * atk-bridge/bridge.c: Added window event support.
2398 2002-04-18 Michael Meeks <michael@ximian.com>
2400 * libspi/relation.c (impl_getNTargets): impl.
2401 (impl_getTarget): impl.
2403 * libspi/Makefile.am: fix stateset install.
2405 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2408 Started putting useful info in this file.
2410 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2412 * atk-bridge/bridge.c:
2413 Propagate state-changed notifications to ATs
2415 * cspi/spi_registry.c: update docs to reflect actual behavior of
2416 state-change events.
2418 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2421 Incremented version to 0.12.1
2423 * util/mag_client.h:
2424 Add missing declaration for magnifier_exit,
2425 used by mag_control.c - Forte compiler didn't like
2426 the implicit redeclaration of the function :-(
2429 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2432 Revved version to 0.12 due to API change (see below).
2434 * cspi/spi-roletypes.h:
2435 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2436 definition from the inline docs, and added docs
2437 for SPI_ROLE_LAST_DEFINED.
2440 * cspi/spi_streamablecontent.c:
2441 Added missing seek_type parameter to
2442 (so far unused) method,
2443 AccessibleStreamableContent_seek().
2444 [ RT approval JodyG. ]
2447 Fixed docs for SPI_createAccessibleKeystrokeListener.
2449 * cspi/spi_registry.c:
2450 Fixed docs for SPI_KEYSET_ALL_KEYS.
2452 * docs/reference/cspi/at-spi-cspi-sections.txt:
2453 Added a number of missing APIs to SECTIONS.
2455 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2457 * registryd/Makefile.am:
2459 * cspi/bonobo/Makefile.am:
2460 Add $(X_LIBS) to makefiles.
2462 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2465 Revved version to 0.11.
2467 * libspi/component.c:
2468 Added implementation for grabFocus.
2470 * idl/Accessibility_Component.idl
2471 (Accessibility_Component_grabFocus):
2472 Made this method return boolean to indicate success or failure, to
2473 be consistent with cspi and the corresponding ATK method.
2475 * idl/Accessibility_Selection.idl
2476 (Accessibility_Selection_selectAll) :
2477 Made these methods return boolean to indicate success or
2478 failure, to be consistent with cspi and the corresponding ATK methods.
2480 * idl/Accessibility_EditableText.idl
2481 (Accessibility_EditableText_setTextContents,
2482 Accessibility_EditableText_insertText,
2483 Accessibility_EditableText_cutText,
2484 Accessibility_EditableText_deleteText,
2485 Accessibility_EditableText_pasteText):
2486 Made these methods return boolean to indicate
2489 * cspi/spi_editabletext.c:
2490 Made these methods return booleans.
2492 * libspi/selection.c:
2493 * libspi/component.c:
2494 * libspi/editabletext.c:
2495 Connected the boolean returns from ATK
2496 to the server-side code referenced above.
2498 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2500 * idl/Accessibility_Table.idl: Added missing methods,
2501 Accessibility_Table_addRowSelection,
2502 Accessibility_Table_addColumnSelection,
2503 Accessibility_Table_removeRowSelection,
2504 Accessibility_Table_removeColumnSelection.
2507 Added C wrappers for above IDL:
2508 AccessibleTable_addRowSelection,
2509 AccessibleTable_addColumnSelection,
2510 AccessibleTable_removeRowSelection,
2511 AccessibleTable_removeColumnSelection.
2514 Added server-side implementation code for IDL above, connecting
2515 to pre-existing ATK api.
2517 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2519 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2521 * libspi/accessible.c: Added implementation fo
2522 Accessibility_Accessible_get_state.
2524 * libspi/libspi.h: Added stateset.h to the list of includes.
2526 * libspi/stateset.c: Fixed broken implementation.
2528 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2531 Added implementation code for Accessibility_Magnifier_exit ().
2533 * util/mag_control.c:
2534 Added test code for above method; you can
2535 now kill an existing magnifier via
2536 ./mag_control q, from the util directory.
2538 * test/key-listener-test.c:
2540 Added a new test, for our key listener API.
2542 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2544 * test/app.c, test/keysynth-demo.c:
2546 Replace use of snprintf with g_snprintf.
2547 (fix for bugzilla 78249)
2549 2002-03-27 Michael Meeks <michael@ximian.com>
2553 * util/Makefile.am (INCLUDES): fix.
2554 (DONT_DIST_SOURCE): don't distribute the
2557 * libspi/Makefile.am (dist-hook): ditto.
2559 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2561 * libspi/hypertext.c:
2562 Fix warnings when yelp is used with atk-bridge
2564 2002-03-21 Michael Meeks <michael@ximian.com>
2566 * libspi/application.c (spi_application_new):
2567 use spi_accessible_construct so we use the AtkObject
2570 2002-03-19 Michael Meeks <michael@ximian.com>
2572 * registryd/registry.c (desktop_remove_application),
2573 (desktop_add_application): clean coding style.
2575 * registryd/desktop.c (spi_desktop_remove_application),
2576 (spi_desktop_add_application): kill re-enterency hazards.
2577 (spi_desktop_dispose): remove bogus redundant cast
2578 obscuring bug; fix bug too.
2579 (spi_desktop_init): make the desktop object immortal.
2581 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2584 Added a #define-guarded tree-traversal step
2585 when enumerating the apps (diagnostic tool).
2587 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2589 * idl/Accessibility_Role.idl:
2590 Added ROLE_DRAWING_AREA which seemed to be missing from the
2593 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2595 * cspi/spi-roletypes.h cspi/spi_accessible.c
2596 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2599 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2600 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2601 AT when applications are added and removed from the desktop. This
2602 reverts the previous broken implementation using the backing
2603 AtkObject for the SpiDesktop.
2605 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2607 * registryd/desktop.c: emit the "children-changed::add" and
2608 "children-changed::remove" signals on the backing ATK object for
2609 the desktop so AT can tell when applications are started and shut
2612 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2614 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2616 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2618 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2620 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2622 * cspi/state-types.h: synched with IDL and ATK
2624 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2626 * libspi/accessible.c
2627 (impl_accessibility_accessible_get_child_at_index):
2628 Change return value for g_return_if_fail ()
2629 to CORBA_OBJECT_NIL instead of "0" (!)
2631 * registryd/Makefile.am:
2632 * registryd/Accessibility_Register.server.in:
2633 Changed name of executable, "registryd",
2634 to something more informative:
2637 2002-03-13 Michael Meeks <michael@ximian.com>
2639 * atk-bridge/bridge.c (atk_bridge_init): don't register
2640 if we're in a bonobo-component, rather than a bonobo app.
2642 2002-03-13 Michael Meeks <michael@ximian.com>
2644 * atk-bridge/bridge.c (gtk_module_init): split
2645 out body to (atk_bridge_init): here, since otherwise
2646 we get symbol conflicts and oddness when invoked
2647 from (gnome_accessibility_module_init): here (upd.)
2649 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2652 New file. Explicitly allow "build sheriff" putbacks provided
2653 they are tested on Solaris.
2655 * docs/reference/cspi/Makefile.am:
2656 Added '-' to the "cp" command for index.sgml.
2657 ("patch by thomasvs, soon coming to a GUADEC near you")
2660 Incremented version number (0.9.0) for new release.
2661 Changed macro that checks for popt, to better detect
2662 obsolete versions of popt.
2665 Added X_LIBS to AC_SUBST, for applications
2666 that call Xlib API directly.
2669 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2672 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2675 Fix regression caused by hard-coding major
2676 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2679 * test/test-simple.c (test_editable_text),
2680 (test_test): revert previous change (error was
2681 a regression in gail which is now fixed).
2683 2002-03-04 Michael Meeks <michael@ximian.com>
2685 * test/test-simple.c (test_editable_text),
2686 (test_text): pass G_MAXINT instead of '-1' for
2687 whole string - is this a good thing !?
2689 * cspi/spi_accessible.c
2690 (Accessible_getRelationSet): fix crasher bug
2691 overwriting the end of the array.
2693 * test/test-simple.c (validate_accessible): free,
2694 not g_free returned relation set.
2696 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2698 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2699 implemented stateset support
2701 * idl/Accessibility_State.idl: Made necessary changes to
2702 the IDL to support state sets.
2704 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2706 * registryd/deviceeventcontroller.c:
2707 Added implementation for generateMouseEvent.
2709 * cspi/spi_registry.c:
2710 Connected new implementation for generateMouseEvent
2713 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2716 Incremented revision (but no change in public API
2717 outside of 'utils', which are not installed public yet.)
2719 * libspi/component.c:
2720 Changed to use atk_component API for layers and
2721 mdi_zorder, instead of deprecated atk_object API.
2723 Magnification Utility Enhancements:
2726 Added implementation of createZoomRegion, clearAllZoomRegions,
2727 resizeZoomRegion. Added new commandline argument
2728 "--no-initial-region". Note that clearAllZoomRegions doesn't
2729 unmap the old '0' region as it should (yet), and the other
2730 methods only work when creating/resizing a single region,
2731 which is "region 0".
2732 (Code for multiple region support will be added later.)
2735 Now we raise the magnifier window each time it's refreshed;
2736 this will help keep it on top.
2738 * util/mag_client.h:
2739 Added simple wrappers for above, used by mag_control.
2740 For general use, it's recommended to use the bonobo magnifier
2741 control API directly instead of using these wrappers.
2744 Moved ZoomRegionData from magnifier.c to this file.
2746 * util/mag_control.c:
2747 Added some code to exercise new IDL implementations.
2749 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2751 * libspi/text.c: Provide implementation for getAttributes.
2753 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2756 Incremented revision.
2758 * test/test-simple.c:
2759 Replaced use of deprecated g_main_iteration with
2760 g_main_context_iteration.
2762 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2765 Incremented revision for desktop alpha 2.
2767 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2769 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2772 * test/simple-at.c: include netinet/in.h.
2774 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2776 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2777 use NULL, not CORBA_OBJECT_NIL.
2779 * libspi/accessible.c:
2780 (impl_accessibility_accessible_get_relation_set):
2781 allocate the sequence correctly.
2783 * libspi/remoteobject.h: kill spi_remote_object_new.
2785 * test/test-simple.c: (validate_accessible): add code
2786 to test relation sets, now all we need is to figure
2787 out how to excercise this code path :/
2789 2002-01-18 Michael Meeks <michael@ximian.com>
2791 * test/test-simple.c
2792 (key_listener_cb): consume the key.
2793 (test_keylisteners): update.
2794 (main): wait for any pending unrefs on events.
2796 * registryd/deviceeventcontroller.c
2797 (spi_controller_update_key_grabs): only re-issue the
2798 grab on a key release.
2799 (spi_device_event_controller_forward_key_event):
2800 refresh the keygrabs before we notify the listeners,
2801 to reduce the X ungrab / re-grab race.
2802 (spi_controller_register_with_devices): remove
2803 XSelectInput - we do that with the gdk_window_ call.
2804 (_spi_controller_device_error_handler): return a value.
2805 s/GDK_DISPLAY/spi_get_display/
2807 2002-01-17 Michael Meeks <michael@ximian.com>
2809 * registryd/deviceeventcontroller.c
2810 (_deregister_keygrab): don't blow out the later
2813 * test/test-simple.c (test_keylisteners): do a
2814 more intelligent validation.
2816 2002-01-14 Michael Meeks <michael@ximian.com>
2818 * atk-bridge/bridge.c
2819 (gnome_accessibility_module_init),
2820 (gnome_accessibility_module_shutdown): impl.
2821 (gtk_module_init): protect vs. double inits.
2822 (add_signal_listener): impl.
2823 (spi_atk_bridge_state_event_listener): kill
2824 (deregister_application): split out of
2825 (spi_atk_bridge_exit_func): here.
2827 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2830 Added caret tracking when using magnifier, and
2831 now use text bounds for focus tracking of text elements, rather than
2832 the component bounds - this is helpful for short text fields in long
2833 table cells, at high magnification.
2835 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2837 * registryd/deviceeventcontroller.c:
2838 Regression fix for keylistener de-registration; global keygrabs
2839 were not being released when deregisterKeystrokeListener was
2840 called in cspi, since
2841 Accessibility_DeviceEventController_deregisterKeystrokeListener
2842 was called with a zero-length keyset. That is because the cspi
2843 method, SPI_deregisterKeystrokeListener, does not take a keyset
2844 parameter but instead should remove all the key grabs held be a
2846 The code in impl_deregister_keystroke_listener was changed to copy
2847 the keylist from the listener instance previously registered with
2848 the DeviceEventController before releasing the grabs.
2850 * registryd/registry.c:
2851 * registryd/deviceeventcontroller.c:
2852 * libspi/spi-private.h:
2854 Changed spelling of "re-enterant" to "re-entrant" globally.
2856 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2858 * test/test-simple.c:
2859 Changed key listeners test - the test was slightly mis-using the
2860 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2861 It now uses '=' as the key event listened to and generated,
2862 relying on a keysym match rather than assuming that keycode 33
2863 is always equal to keysym '!'.
2865 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2868 Changed simple-at to use a specific keyset, rather than
2869 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2870 manager, desktop, etc.
2872 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2874 * registryd/deviceeventcontroller.c:
2875 Replaced standard X error handler with a special handler that
2876 is non-fatal for failed keygrabs. This works around
2877 problems with keygrab clashes sometimes observed on
2879 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2880 mouse handling code as yet).
2882 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2885 Incremented revision for desktop alpha release.
2888 Fixed a couple of the more glaring errors (still not
2891 2002-01-11 Michael Meeks <michael@ximian.com>
2893 * registryd/deviceeventcontroller.c
2894 (spi_device_event_controller_forward_key_event): kill
2895 XUngrabKey / XKeyGrab race.
2896 (spi_controller_grab_keyboard): rename to
2897 (spi_controller_update_key_grabs): this, and deal
2898 with incremental adding / removing grabs more
2900 (_register_keygrab): ensure we're not pending a remove.
2901 (spi_grab_mask_free): impl.
2902 (spi_controller_register_global_keygrabs): split out
2904 (handle_keygrab): impl.
2905 (_deregister_keygrab): impl.
2906 (spi_controller_deregister_global_keygrabs): impl.
2907 (spi_controller_update_key_grabs): re-issue the grab if
2908 we just recieved a notification.
2910 * test/test-simple.c (key_listener_cb): remove debug.
2912 * registryd/deviceeventcontroller.c
2913 (spi_controller_register_device_listener): after
2914 registering a global keygrab, actualy register it !
2915 don't wait for a timeout; doh !
2917 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2918 to make it more readable / manipulable.
2919 s/grabmask/grab_mask/ s/refcount/ref_count/
2920 s/keyval/key_val/ s/modmask/mod_mask
2922 2002-01-08 Michael Meeks <michael@ximian.com>
2924 * registryd/deviceeventcontroller.c
2925 (spi_controller_register_with_devices): use gdk calls to
2927 (global_filter_fn): implement the filter.
2928 (spi_device_event_controller_check_key_event): rename to
2929 (spi_device_event_controller_forward_key_event): this & upd.
2930 (spi_get_display): replace with GDK_DISPLAY.
2932 * registryd/deviceeventcontroller.c
2933 (spi_controller_deregister_device_listener): unroll into
2934 (impl_deregister_keystroke_listener): here to simplify.
2935 (spi_controller_register_global_keygrabs): split cut and
2936 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2937 (spi_controller_deregister_device_listener): remove.
2938 (impl_register_mouse_listener): remove, no mouse listener
2939 support in at-spi-1.0
2941 * registryd/registry.c
2942 (_device_event_controller_hook): kill.
2943 (spi_registry_init): upd.
2945 * registryd/deviceeventcontroller.c
2946 (spi_device_event_controller_class_init): upd.
2947 (spi_check_key_event): merge into.
2948 (spi_device_event_controller_check_key_event):
2949 here and kill strange static ev init, don't leak
2950 the x_event - nor dynamicaly allocate it.
2952 * registryd/registry-main.c (main): re-direct
2953 timeout to remove strange vtable mess.
2955 * registryd/deviceeventcontroller.c
2956 (remove_listener_cb): impl.
2957 (spi_controller_deregister_device_listener):
2958 fix re-enterancy hazard.
2960 2002-01-07 Michael Meeks <michael@ximian.com>
2962 * registryd/deviceeventcontroller.c
2963 (spi_device_event_controller_new): upd.
2964 (impl_notify_listeners_sync): upd. debug.
2965 (spi_notify_keylisteners): fix re-enterancy hazards,
2966 prettify, remove O(n*n) iteration.
2967 (spi_controller_grab_keyboard): fix iteration.
2968 (spi_check_key_event): re-format to suit coding style.
2969 Clean all the warnings - we're warning free.
2971 * registryd/deviceeventcontroller.h:
2972 * registryd/registry.h: make mutualy referential with
2973 typesafe forward references instead of (!) void pointer
2976 2002-01-11 Michael Meeks <michael@ximian.com>
2978 * cspi/spi_accessible.c (role_names): add a role name
2979 to sync this array with the enum; and make the regression
2982 2002-01-10 Michael Meeks <michael@ximian.com>
2984 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2985 allow expansion of enumeration & kill warning.
2987 * test/test-simple.c (key_listener_cb): impl.
2988 (test_keylisteners): impl.
2990 * cspi/spi-listener.h: make listener signatures const
2991 on the provided (const) events.
2993 * test/keysynth-demo.c: upd. to const events.
2995 * test/simple-at.c: ditto.
2997 2002-01-11 Bill Haneman <bill.haneman@sun.com>
3000 Rev the version to 0.5 (the previous tarball was named 0.4,
3001 even though the micro number was 3), so we need to rev upwards
3002 again for beta2/"desktop-alpha"
3005 Checked in a demo script, which requires editing before use!
3006 Proceed with caution.
3009 Fixed typo in header which was redefining SPI_ACTION_CLASS.
3011 * cspi/spi_accessible.c:
3012 Add a couple of missing enum initializations, and fix some enum
3015 * cspi/spi_registry.c:
3016 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
3018 * docs/reference/cspi/at-spi-cspi-sections.txt:
3019 Remove/fix a couple of broken document references.
3022 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
3023 as Alt-Control to listen for commands, since on some systems
3024 Control-Alt may already be grabbed.
3026 2002-01-10 Bill Haneman <bill.haneman@sun.com>
3029 Update version number to 0.4 for Beta2.
3031 * libspi/accessible.c, libspi/accessible.h:
3032 Expose spi_accessible_construct, to enable libgail-gnome
3033 construction from spi_accessible subtype.
3035 * utils/magnifier.c:
3036 Workaround for bug in some non-gnome-compliant window managers
3037 which made magnifier resize improperly.
3039 2002-01-09 Bill Haneman <bill.haneman@sun.com>
3041 * libspi/accessible.c: (spi_accessible_new) :
3042 Move the test for SPI_IS_REMOTE_OBJECT to
3043 spi_accessible_new_return, fixing a bug and compile time warning.
3045 2002-01-08 Michael Meeks <michael@ximian.com>
3047 * registryd/registry.c (parse_event_type): remove strndup.
3049 * libspi/Makefile.am (libspi_la_SOURCES): remove
3050 sources already included in the headers section.
3052 * libspi/util.c: add.
3054 * libspi/spi-private.h: add.
3056 * registryd/registry.c: update to moved list iterators.
3058 2002-01-05 Michael Meeks <michael@ximian.com>
3060 * test/simple-at.c (main): upd. auto-module set to atk-bridge
3062 * test/test-simple.c (main): ditto.
3064 2002-01-04 Michael Meeks <michael@ximian.com>
3066 * libspi/accessible.c (spi_accessible_new): remove 2nd,
3067 redundant construct.
3069 * registryd/registry.c
3070 (get_listener_list): impl.
3071 (impl_accessibility_registry_register_global_event_listener):
3072 re-impl. to simplify using ~, remove dodgy const cast off.
3073 (parse_event_type): constify.
3074 (impl_accessibility_registry_deregister_global_event_listener_all):
3075 re-write, more efficiency and simplicity, kill re-enterancy
3077 (compare_listener_corbaref, compare_corba_objects),
3078 (compare_listener_quarks): define out.
3079 (impl_accessibility_registry_deregister_global_event_listener):
3080 re-write for effiency, and nail re-enterancy hazard.
3081 (impl_accessibility_registry_get_desktop_list): impl.
3082 (re_enterant_list_delete_link): impl.
3083 (re_enterant_list_foreach): impl.
3084 (remove_listener_cb): impl.
3085 (_registry_notify_listeners): kill.
3086 (notify_listeners_cb): impl.
3088 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
3089 (SPI_getDesktopList): impl.
3091 * test/test-simple.c (test_desktop): test the methods.
3093 2002-01-03 Michael Meeks <michael@ximian.com>
3095 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
3096 keystrings since we free them
3097 (SPI_freeAccessibleKeySet): in here.
3099 * libspi/accessible.c (spi_accessible_new): kill warning,
3100 wonder what is going on with the constructor here.
3102 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3104 * libspi/accessible.c (spi_accessible_new ()) :
3105 Added check to see if AtkObject is an SpiRemoteObject before
3106 creating an SpiAccessible.
3108 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3110 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3111 Enable keygrabs using the Control modifier, now that they are
3112 working properly (they were previously disabled).
3115 Change the command keygrab for this demo to "Control+Alt", so as
3116 to conflict with fewer other key commands on the system; this
3117 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3119 Removed a pointlessly-chatty keylistener for unshifted keys
3120 (shifted keys are still reported).
3122 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3124 * libspi/remoteobject.h:
3125 * libspi/remoteobject.c:
3126 Added definitions for special AtkObject subtype, required for
3127 support of remote components (specifically, used by BonoboControl
3128 accessibility implementation).
3130 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3132 * cspi/spi.h: synched relation types with ATK
3134 * cspi/spi_accessible.c: Added implementations of
3135 AcccessibleRelation_* methods
3137 * idl/Accessibility_Relation.idl: added getRelationTypeName
3138 method. Synched known relation types with ATK. Allowed for
3139 relation type extension with the RELATION_EXTENDED type.
3141 * libspi/relation.c: Provided implementations for
3142 AccessibleRelation methods.
3144 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3146 API tweaks for today's API 'freeze'.
3149 Added placeholder functions to allow future compatible expansion
3150 of the IDL interfaces.
3152 * idl/Accessibility_Registry.idl:
3153 Changed generateKeyEvent to generateKeyboardEvent. Changed
3154 signature of this method to accept an optional keystring in
3155 parameter (for complex text input synthesis) and changed use of
3156 simple 'boolean' parameter in registerKeystrokeListener to a
3157 struct, EventListenerMode.
3159 * cspi/spi_accessible.c:
3161 * cspi/spi_streamablecontent.c:
3162 Added references to AccessibleStreamableContent interface, and
3163 definition and implementation of AccessibleStreamableContent
3166 * cspi/spi_registry.c:
3168 Changed generateKeyEvent API to generateKeyboardEvent,
3169 taking a new (optional) keystring parameter to support complex
3174 Renamed directory (to better reflect its actual purpose, bridging
3175 from at-spi to ATK). The .so module is also now named
3178 * idl/Accessibility_Hypertext.idl:
3179 * libspi/accessible.c:
3180 * libspi/hypertext.h:
3181 * libspi/hypertext.c:
3182 Changed Accessibility_Hypertext to *not* derive from
3185 * cspi/spi_registry.c:
3186 Added list of legal event type names for 'window' events, which
3187 completes the registry event API.
3189 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3191 * at-bridge/bridge.c: Added registration for separate
3192 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3193 signals. If either of the first two parameters to the generic
3194 bridge signal handler are ints, they are passed on as event
3195 details. This allows an AT to determine what text was inserted.
3197 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3199 * registryd/deviceeventcontroller.c:
3200 Fixed regressions in generateKeyEvent caused by the removal of
3201 gdk_init from registryd; we now use pure X calls to connect to the
3202 display, which makes sense because deviceeventcontroller already
3203 uses a fair bit of X API (should eventually be migrated to a
3204 'portability layer').
3206 * registryd/desktop.c:
3207 Fixed minor regression in spi_desktop_init, changed the way the
3208 desktop name is being set to work with new spi_base API
3209 (gobject-based, rather than AtkObject-based).
3211 * registryd/Makefile.am:
3212 Minor revision of makefile to use XTST_LIBS variable rather than
3213 hard-wiring the Xtst LD_ADD element.
3215 * test/keysynth-demo.c:
3216 Tweaked an output message; added initialization of the
3217 'keystrings' member of the "switch listener" key_set.
3219 * libspi/relation.c:
3220 Squashed compile-time warning.
3222 * libspi/accessible.c:
3223 Cosmetic and formatting fixes, renamed a static method.
3225 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3227 * libspi/accessible.c
3229 * libspi/application.c
3232 * libspi/component.c
3233 * libspi/editabletext.c
3234 * libspi/hyperlink.c
3235 * libspi/hypertext.c
3237 * libspi/selection.c
3241 * registryd/desktop.c:
3242 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3244 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3246 * idl/Accessibility_Registry.idl:
3247 Added boolean member 'is_text' to DeviceEvent. This is for the
3248 use of key events, and helps prevent ambiguity between composed
3249 key strings and keysym names, since both may potentially be
3250 returned in the 'event_string' member.
3252 * at-bridge/bridge.c:
3253 * registryd/deviceeventcontroller.c:
3254 Use the 'is_text' member when notifying device event listeners.
3255 Knon issue: composed characters are not dealt with correctly by
3256 the global key listener implementation yet.
3258 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3260 * at-bridge/bridge.c:
3261 Namespaced local static methods to spi_atk_bridge_* where
3262 previously named bridge_*, and spi_* elsewhere.
3264 * at-bridge/bridge.c:
3265 * cspi/bonobo/cspi-bonobo-listener.c:
3266 Added demarshalling/conversion for string member of
3267 Accessibility_DeviceEvent to AccessibleKeystroke.
3269 * registryd/deviceeventcontroller.c:
3270 Added code to fill the Accessibility_DeviceEvent key string value
3271 member for global key events (i.e. from XGrabKey), to match
3272 behavior of Accessibility_DeviceEvent from the toolkit key events
3273 from the bridge. Fixed timestamp in global key event notifications.
3276 Added printout of key event's string value to
3277 report_ordinary_key_event, for demo/debugging purposes.
3279 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3281 * idl/Accessibility_Registry.idl:
3282 Removed Accessibility_KeyStroke structure in favor of generic
3283 Accessibility_DeviceEvent structure.
3284 Changed Accessibility_ControllerEventMask from a struct to an
3287 * at-bridge/bridge.c:
3288 Changed APIs to use DeviceEvent structure as above, and removed
3289 bogus casting between these event structures.
3291 * cspi/spi-listener.h:
3292 Added keystring member of AccessibleKeystroke structure, to enable
3293 matching on event "names" rather than only hardware codes and
3297 Added keystrings member of AccessibleKeySet struct, to allow
3298 matching on event names (as above).
3299 Added declarations for SPI_createAccessibleKeySet and
3300 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3301 event modmasks directly as unsigned ints rather than structs with
3302 refcounts, in the DeviceEventController methods.
3304 * cspi/spi_registry.c:
3305 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3307 * cspi/spi-roletypes.h:
3308 Added documentation of newly added SPI Roles.
3310 * cspi/bonobo/cspi-bonobo-listener.c:
3311 Changes in support of API changes above.
3313 * libspi/accessible.c:
3314 Converted APIs to use DeviceEvent structure (see IDL changes
3317 * registryd/deviceeventcontroller.c:
3318 Added DEControllerGrabMask structure to track keygrabs not only by
3319 modmask but by keyset as well; this allows us to do "global"
3320 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3321 grabbing on AnyKey and then filtering after-the-fact.
3322 Bugfixes for event filtration mean that we don't get false matches
3323 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3325 * registryd/deviceeventcontroller.c:
3326 Namespaced a number of static methods to use spi_ prefix. Major
3327 revision to internals of global (i.e. X) key grabs.
3329 * registryd/deviceeventcontroller.h:
3330 Removed keymask_list and added keygrabs_list to
3331 SpiDeviceEventController struct.
3334 Added use of SPI_createAccessibleKeySet API when creating a
3335 listener for only one key. Attach a listener to "shift spacebar
3336 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3337 X key event names to SPI key event names, so that listeners are
3338 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3340 * test/keysynth-demo.c:
3341 Changed (incorrect) use of X key event names (KeyPressed,
3342 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3345 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3347 * libspi/accessible.c:
3348 Convert all AtkRole enumerations to Accessibility_Role enums when
3349 getting a role from an AtkObject.
3351 * cspi/spi_accessible.c:
3352 Complete the conversion of Accessibility_Role enums at runtime to
3353 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3354 role enums correctly match those given in spi-roletypes.h.
3355 Re-synchronize the local names list for AccessibleRole_getName ().
3356 AccessibleRole_getName is now deprecated, since it duplicates the
3357 more reliable Accessible_getRoleName.
3358 Added some role types from Accessibility_Role.idl.
3360 * idl/Accessibility_Role.idl:
3361 Added some role types used by AtkRole.
3363 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3366 * cspi/spi_registry.c:
3368 * cspi/cspi-bonobo-listener.c:
3369 Namespaced all methods that did not begin with an "SPI_" or
3370 "Accessible" prefix to "SPI_".
3373 Homogenized internal function namespace to "cspi_" for statics.
3376 Patched tests to use the new CSPI API.
3378 * docs/reference/cspi/at-spi-cspi-sections.txt:
3379 Updated docs to reflect namespace changes, and added a number of
3380 methods to the documentation.
3382 * registryd/registry.c:
3383 Changed use of strings and string hashes in listener event
3384 matching and parse_event_string to use GQuark, which is guaranteed
3387 * registryd/registry.h:
3388 Squashed annoying warning.
3390 * idl/Accessibility_Role.idl:
3391 Extended range of available Accessibility_Role values.
3393 * cspi/spi_accessible.c:
3394 Re-ordered role names.
3396 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3398 * idl/Accessibility_Value.idl:
3399 Revert use of union back to CORBA_double, since the double type is
3400 more efficient and can contain the other types without loss of
3403 * idl/Accessibility_Accessible.idl:
3404 Added method Accessibility:Accessible:getRoleName, to complement
3405 Accessibility:Accessible:getRole.
3407 * cspi/spi_accessible.c:
3409 Added C binding for above, Accessible_getRoleName (), and changed
3410 signature of Accessible_getRole () to return an AccessibleRole.
3412 * cspi/spi-roletypes.h:
3413 Changed AccessibleRole_getName to return a char * instead of a
3414 const char *. This method is now at least temporarily deprecated
3415 in favor of asking Accessibles for their RoleNames directly.
3418 Revert to match Accessibility_Value.idl;
3422 Change signature of AccessibleValue methods to use double rather
3426 * cspi/spi_accessible.c:
3427 Changed Accessible_getRole to return an AccessibleRole enum rather
3428 than a UTF-8 string. The UTF-8 string can still be obtained via
3429 AccessibleRole_getName ().
3431 * test/test-simple.c:
3432 Add test_action. Small fixup to match API change to Accessible_getRole.
3435 Bugfix for get_action_from_servant ().
3437 2001-12-11 Michael Meeks <michael@ximian.com>
3439 * libspi/libspi.h: remove registry.h and
3440 desktop.h, deviceeventcontroller.h
3442 * libspi/Makefile.am: remove registry.[ch],
3443 desktop.[ch], deviceeventcontroller.[ch]
3445 * registryd/Makefile.am: add registry.[ch],
3446 desktop.[ch], rename registryd.c to registry-main.c.
3447 add deviceeventcontroller.[ch]
3449 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3452 Replace setenv() call with putenv ().
3454 * libspi/component.c:
3455 Bugfix in AccessibleComponent_getExtents (),
3458 2001-12-11 Michael Meeks <michael@ximian.com>
3460 * libspi/image.c (impl_getImageExtents): impl.
3461 (spi_image_class_init): upd.
3464 (AccessibleImage_getImageDescription): fix daft bug
3467 * test/test-simple.c (global_listener_cb): update
3468 to only quit if not --poke
3469 (main): catch --poke.
3470 (validate_accessible): upd. dumping, call test_image
3473 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3476 * idl/Accessibility.idl: update all IDL includes.
3478 * idl/*.idl - rename to namespace - this sucks, blame
3479 mjs' bad decision for oafd.
3481 * test/test-simple.c (create_test_window): add more tests.
3482 (create_tree): split this out.
3483 (validate_accessible): bugfix.
3485 2001-12-11 Michael Meeks <michael@ximian.com>
3487 * cspi/bonobo/cspi-bonobo-listener.c:
3488 (cspi_kestroke_listener_unref),
3489 (cspi_event_listener_unref): impl. undoing previous
3490 homenous environment - for Bill.
3492 * cspi/spi_table.c (long_seq_to_array): use
3495 * cspi/spi_main.c: split out all bonoboish bits into
3498 * cspi/spi-impl.h: upd. typedefs.
3500 * cspi/spi_registry.c: update to lowlevel API,
3501 return booleans to indicate success in some places.
3503 * cspi/spi_event.c: update to lowlevel API.
3505 * cspi/bonobo/Makefile.am: add.
3507 * cspi/bonobo/cspi-lowlevel.h: add
3509 * cspi/bonobo/cspi-bonobo.c: add
3511 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3513 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3514 (SUBDIRS): add bonobo, link in the libs.
3516 * cspi/spi-util.c: kill this file.
3518 * TODO: merge in my bits.
3520 2001-12-11 Michael Meeks <michael@ximian.com>
3522 * test/test-simple.c (test_value, test_table, main):
3523 remove unused variables causing warnings.
3525 * configure.in: cleanup checks - require gail.
3527 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3530 Changed Value interface to use SValue (scalars) rather than
3531 assuming all values are floats. This allows floats, doubles,
3532 longs, shorts, and unsigned values to be manipulated.
3533 Introduced Accessibility:SValue union.
3536 Updated to use new API above, and to work correctly with GValues
3537 of different types in AtkValue.
3540 Updated to use new API above. cspi's API is as yet unchanged.
3543 Updated the Value revision action item.
3545 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3547 * test/test-simple.c:
3548 Added test_table (GtkTreeView widget in test window to follow).
3549 Un-commented test_value, added GtkRange widget.
3550 Added GtkTreeView widget with GtkListStore. It passes regression
3551 test but leaks one SPI object for some reason.
3554 Fixed bug in impl__set_currentValue.
3556 2001-12-10 Michael Meeks <michael@ximian.com>
3558 * cspi/spi_text.c: audit for exception handling,
3559 tolerating NULL object references safely etc.
3561 * cspi/spi_value.c: ditto.
3563 * cspi/spi_table.c (AccessibleTable_getSummary),
3564 (AccessibleTable_getAccessibleAt),
3565 (AccessibleTable_getRowHeader),
3566 (AccessibleTable_getColumnHeader),
3567 (AccessibleTable_getCaption): fix bugs hidden by
3569 (long_seq_to_array): impl.
3570 (AccessibleTable_getSelectedRows),
3571 (AccessibleTable_getSelectedColumns): use it.
3573 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3576 Added a TODO list (rough and short for now).
3578 * cspi/spi_hyperlink.c:
3579 * cspi/spi_hypertext.c:
3580 Fixed macro name typos, and remove use of obsolete macro in
3581 AccessibleHyperlink_getLink.
3583 * cspi/spi_action.c:
3584 * cspi/spi_accessible.c:
3585 * cspi/spi_application.c:
3586 * cspi/spi_component.c:
3587 * cspi/spi_selection.c:
3590 Documentation fixes (removed return values from ref/unref methods).
3592 2001-12-10 Michael Meeks <michael@ximian.com>
3594 * cspi/spi_action.c: audit for exception handling,
3595 tolerating NULL object references safely etc.
3597 * cspi/spi_accessible.c: ditto.
3599 * cspi/spi_component.c: ditto.
3601 * cspi/spi_editabletext.c: ditto.
3603 * cspi/spi_hyperlink.c: ditto.
3605 * cspi/spi_hypertext.c: ditto.
3607 * cspi/spi_image.c: ditto.
3609 * cspi/spi_selection.c: ditto.
3611 2001-12-10 Michael Meeks <michael@ximian.com>
3613 * configure.in: use cspi/libspi.pc.in instead.
3615 * Makefile.am (pkgconfig_DATA): upd. to match.
3617 * test/simple-at.c (report_focus_event): kill hacks around
3618 bad return values, use putenv not setenv
3620 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3621 fire ChildGone - I killed it.
3623 * libspi/component.c
3624 (impl_accessibility_component_get_extents): remove
3627 * idl/Accessible.idl: kill ChildGone exception.
3629 * cspi/*.[ch]: kill int return from ref / unref.
3631 * cspi/spi_main.c (cspi_object_add_check): fold into
3632 (cspi_object_add): here.
3634 * cspi/spi_component.c (AccessibleComponent_getExtents):
3635 handle exceptions elegantly.
3637 * cspi/spi-private.h (cspi_check_ev_return),
3638 (cspi_return_if_fail): impl.
3640 * cspi/spi_accessible.c: use extensively.
3641 (AccessibleStateSet_equals): add direct compare check.
3643 * cspi/spi_selection.c: tolerate NULL objs, and check
3644 exceptions before return.
3646 * cspi/spi-util.c (cspi_warn_ev): rename to
3647 (cspi_check_ev): this & don't pass ev in; no point.
3649 2001-12-10 Michael Meeks <michael@ximian.com>
3651 * test/test-simple.c: use putenv not setenv
3652 (get_environment_vars): more chatty if you're not using
3655 * test/simple-at.c: do the setenv so more people see the
3658 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3660 * libspi/registry.c:
3661 Changed check of CORBA_environment on notification to be a warning
3662 instead of an error for the moment, since we can recover from this
3663 error when caused by a queued notification from a dead app.
3666 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3667 used by all current implementors of AtkValue), and coerce to
3668 CORBA_float. (Proper general case fix may require change to Value.idl).
3670 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3674 * cspi/spi_accessible.c:
3675 Documentation fixes: added user_data params to documentation for
3676 listeners and callbacks.
3678 * cspi/spi_accessible.c:
3679 Changed AccessibleStateSet_compare to return a
3680 StateSet rather than return the difference set into a third parameter.
3683 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3686 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3687 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3691 Remove subdirectory po from SUBDIRS for now.
3693 * at-bridge/bridge.c:
3694 Beefed up a couple of debug printouts.
3695 One-line fix for signal notification name formatting.
3697 * libspi/accessible.c:
3698 Added assertion to spi_accessible_new ().
3700 * libspi/application.c:
3701 Put #ifdef qualifiers around a printf.
3704 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3706 * registryd/Makefile.am:
3708 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3709 INTLTOOL_SERVER_RULE macro.
3712 Added an event listener for several ATK signals, for
3713 testing and debugging. Removed a few g_warnings.
3714 Added test output if focussed item implements the Value interface.
3716 * test/test-simple.c:
3717 Added test_value () function (known not to pass at the moment, so
3718 not actually called yet.
3720 2001-12-08 Michael Meeks <michael@ximian.com>
3722 * at-bridge/bridge.c (bridge_focus_tracker),
3723 (emit_eventv): fix the same ref. leak.
3724 (register_atk_event_listeners): don't leak.
3726 * cspi/spi-listener-impl.c (cspi_event): more
3727 protection from client code.
3729 * test/test-simple.c (test_desktop): unref the app.
3731 * test/Makefile.am: upd. TESTS.
3733 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3735 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3737 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3739 * cspi/spi_registry.c: constify in strings.
3740 (deregisterGlobalEventListenerAll): don't release the ref.
3742 * cspi/spi.h: start removing redundant / conflicting
3743 gtkdoc comments, making the API readable at a glance :-)
3745 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3747 * test/keysynth-demo.c (keysynth_exit, main): upd.
3749 * test/simple-at.c (main, simple_at_exit): upd.
3751 * test/test-simple.c (unutterable_horror): kill.
3752 (utterable_normal_derefs): kill.
3753 (main): upd & do a setenv before gtk_init, so that we
3754 can use memprof - and to save the pain of remembering
3755 this, if we're running under memprof - don't exit.
3757 * cspi/spi_main.c (SPI_exit): return exit status
3759 (SPI_event_quit): impl.
3760 (SPI_event_main): simplify.
3761 (cspi_is_gnome_app): kill.
3762 (SPI_init): kill isGNOMEapp arg.
3764 * at-bridge/bridge.c (register_atk_event_listeners):
3765 re-instate the unref.
3766 (bridge_exit_func): don't re-activate the registry,
3767 protect vs. theoretical re-entry, use the
3768 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3769 assert a clean shutdown - for regression tests.
3771 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3773 * configure.in: Comment out dummy i18n support for now,
3774 otherwise it fails to build.
3775 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3776 EXTRA_DIST. They are missing in tarball.
3778 2001-12-07 Michael Meeks <michael@ximian.com>
3780 * util/magnifier.c: kill bonobo activation reg. race.
3782 * libspi/component.c
3783 (impl_accessibility_component_get_extents): make it match
3786 * libspi/registry.c (_registry_notify_listeners):
3787 re-remove X headers & reconcile conflicts.
3788 (spi_listener_struct_free): bad conflict resolve.
3789 (impl_accessibility_registry_register_application):
3790 more bad merging fixed.
3791 (impl_accessibility_registry_deregister_application): ditto.
3792 (spi_registry_new): ditto.
3793 (spi_registry_init): don't have an applications field.
3795 [ merge fixups2 branch to here ]
3796 2001-12-07 Michael Meeks <michael@ximian.com>
3798 * test/simple-at.c (report_focus_event),
3799 (report_focussed_accessible): remove g_warning debug.
3801 2001-12-07 Michael Meeks <michael@ximian.com>
3803 * test/test-simple.c (validate_tree): comment out some checks.
3804 (test_desktop): app now not registered idly - horay.
3806 2001-12-07 Michael Meeks <michael@ximian.com>
3808 * cspi/spi_registry.c
3809 (registerAccessibleKeystrokeListener): clean, stop it leaking
3810 great swathes of memory, and device event controller references.
3811 ensure we always pass valid sequences.
3812 (deregisterAccessibleKeystrokeListener): ditto.
3813 (generateKeyEvent): upd.
3815 * at-bridge/bridge.c (bridge_key_listener): handle
3816 registry dead exception gracefully.
3817 (bridge_focus_tracker, emit_eventv): free ev.
3819 * test/simple-at.c (report_focus_event): fix polarity.
3821 * libspi/application.c (notify_listeners): kill the ev
3822 argument, and make sure we init the ev we use.
3823 (spi_application_object_event_listener): split out a chunk
3824 (get_atk_object_ref): here & fixup.
3825 (reverse_lookup_name_for_toolkit_event): make const.
3826 (spi_application_toolkit_event_listener): fixup, kill leaks
3829 * at-bridge/bridge.c (register_atk_event_listeners):
3830 don't unref the noop object - causes grief.
3832 * libspi/registry.c: remove the X headers.
3833 turn off the debug churn.
3835 * libspi/accessible.c (spi_accessible_new_return): only
3836 release the ref if we are supposed to [doh]
3838 * test/simple-at.c (report_button_press, report_focus_event):
3839 guard vs. unexpected exit.
3841 * at-bridge/bridge.c (gtk_module_init): prune printf.
3842 (bridge_exit_func): fix app unref.
3844 * libspi/Makefile.am: don't install registry or desktop.h
3846 * libspi/*.h: update includes.
3848 * libspi/application.h: don't include ourself, or
3849 other redundant headers.
3851 2001-12-06 Michael Meeks <michael@ximian.com>
3853 * libspi/accessible.c
3854 (get_accessible_from_servant): impl.
3855 Upd. all CORBA impl.s to use it killing cut and paste.
3857 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3859 (SPI_init): register atexit cleanup handler here.
3861 2001-12-06 Michael Meeks <michael@ximian.com>
3863 * at-bridge/bridge.c (gtk_module_init): g_error on
3864 activation exception
3866 2001-12-06 Michael Meeks <michael@ximian.com>
3868 * at-bridge/bridge.c (gtk_module_init): some sort of
3869 confusing merge clash - reverted.
3870 (bridge_idle_init): ditto.
3872 * test/test-simple.c (main, utterable_normal_derefs):
3873 merge from Bill - somehow not committed.
3875 2001-12-06 Michael Meeks <michael@ximian.com>
3877 * libspi/value.c (spi_value_class_init): upd.
3878 (spi_value_finalize): kill.
3880 * libspi/table.c (spi_table_finalize): kill.
3881 (spi_table_interface_new): upd.
3882 (spi_table_class_init): upd.
3883 (get_table_from_servant): impl.
3884 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3886 * libspi/selection.c (spi_selection_finalize): kill.
3887 (spi_selection_interface_new): upd.
3888 (spi_selection_class_init): upd.
3889 (get_selection_from_servant): impl.
3890 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3892 * libspi/relation.c (spi_relation_finalize): kill.
3893 (spi_relation_class_init, spi_relation_new): upd
3895 * libspi/image.c (spi_image_finalize): kill.
3896 (spi_image_class_init): upd.
3897 (spi_image_interface_new): upd.
3898 (get_image_from_servant): impl.
3899 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3901 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3902 (spi_hyperlink_finalize): kill.
3903 (spi_hyperlink_new): upd.
3904 (get_hyperlink_from_servant): impl.
3905 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3907 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3908 (spi_hypertext_finalize): kill.
3909 (spi_hypertext_class_init): upd.
3910 (get_hypertext_from_servant): impl.
3911 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3913 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3914 (spi_editable_text_interface_new): upd.
3915 (get_editable_text_from_servant): impl.
3916 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3918 * libspi/text.c (get_text_from_servant): impl.
3919 All impls - update to use it killing more cut and paste,
3920 also fix bad string returns on duff args ( a somewhat
3921 impossible case to handle - but hey ).
3922 (spi_text_construct): impl.
3923 (spi_text_interface_new): upd.
3924 (spi_text_object_finalize): kill.
3926 * libspi/component.c
3927 (accessibility_component_object_finalize): kill.
3928 (spi_component_class_init): upd.
3929 (get_component_from_servant): impl. helper to kill cut & paste.
3930 (impl_accessibility_component_contains):
3931 (impl_accessibility_component_get_accessible_at_point):
3932 (impl_accessibility_component_get_position):
3933 (impl_accessibility_component_get_extents):
3934 (impl_accessibility_component_get_mdi_z_order):
3935 (impl_accessibility_component_get_layer):
3936 (spi_component_interface_new): upd.
3938 * libspi/action.c (spi_action_finalize): kill.
3939 (spi_action_class_init): upd. inherit from SpiObject.
3940 (spi_action_interface_new): upd.
3941 (get_action_from_servant): impl. helper to reduce cut & paste.
3942 (impl_getKeyBinding, impl_getName, impl_doAction),
3943 (impl_getDescription): Use it everywhere.
3945 * cspi/spi_main.c (get_live_refs): a pointer hash.
3946 (spi_object_hash, spi_object_equal): comment out.
3947 There are issues with CORBA object hashing that need
3950 * libspi/application.c (spi_application_init),
3951 (spi_application_new): upd.
3953 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3954 (spi_accessible_class_init): upd.
3955 s/accessible/object/ in epv methods.
3957 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3959 * at-bridge/bridge.c:
3960 Reorder the bridge initialization into the bridge gtk_module_init,
3961 an immediate call to bridge_register_app, and an idle_add for
3962 register_atk_event_listeners (the only code that *must* wait until
3963 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3964 the activation, creates the application's Accessible object, and
3965 queues the bridge_idle_init function. Restored call to
3966 Accessibility_Registry_deregisterApplication().
3967 Prior to making this call we obtain a new reference to the
3968 registry, which is a temporary hack that helps us handle apps that
3969 shut down the bonobo mainloop before we get there.
3971 * libspi/registry.c:
3972 Fix string leakage in debug block, and don't segv if a an app
3973 dies before its event notifications have been propagated.
3976 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3977 as stopgap measure until we get proper exception handling when
3978 objects die during or before interrogation.
3982 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3983 Also changed default value of is_gnome_app to TRUE.
3986 * test/keysynth-demo.c:
3987 Changed use of SPI_init and SPI_event_main to reflect API change above.
3990 Made report_focus_event check the warning value from getName
3991 before reporting on focussed accessible; simplifies handling of
3992 notifications from dead objects.
3994 * test/test-simple.c: (Changes not in this patch since source is
3997 2001-12-05 Michael Meeks <michael@ximian.com>
3999 * registryd/registryd.c (main): protect against
4000 bonobo-activation startup race condition.
4002 * cspi/spi_main.c (cspi_object_add_check): cope
4003 with the exception elegantly.
4005 * idl/Accessible.idl: decl. ChildGone
4007 * libspi/desktop.c (spi_desktop_dispose): impl.
4008 (spi_desktop_class_init): upd.
4009 (spi_desktop_add_application),
4010 (spi_desktop_remove_application),
4011 (abnormal_application_termination): impl.
4012 (impl_desktop_get_child_at_index): re-impl.
4015 (impl_accessibility_registry_deregister_application),
4016 (impl_accessibility_registry_register_application):
4017 kill excessive debug clutter.
4019 * test/test-simple.c (test_misc): test some NULL
4020 tolerance. (main): upd.
4022 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
4023 implements no interfaces - so let's not crash.
4025 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
4027 * libspi/accessible.c (spi_accessible_new_return): impl.
4028 helper to calm the cut and paste, to cope with
4029 NULL AtkObjects effectively and efficiently, and to kill
4030 the referencing bugs.
4032 * libspi/table.c (impl_getAccessibleAt),
4033 (impl_getRowHeader, impl_getColumnHeader): upd.
4035 * libspi/hyperlink.c (impl_getObject): upd.
4037 * libspi/accessible.c
4038 (impl_accessibility_accessible_get_child_at_index): upd.
4040 * libspi/component.c
4041 (impl_accessibility_component_get_accessible_at_point): upd.
4043 * test/test-simple.c (test_editable_text, test_text): impl.
4046 * cspi/spi_editabletext.c
4047 (AccessibleEditableText_insertText): constify.
4049 * test/test-simple.c (focus_me): make more robust.
4051 * libspi/accessible.c: remove some printfs in methods that
4052 we test and work fine, so we can get a clean tree dump.
4054 * test/test-simple.c (validate_accessible),
4055 (validate_tree): make tree dumping pretty too.
4057 * at-bridge/bridge.c (bridge_signal_listener): upd. so
4058 it builds without debug on.
4060 * test/test-simple.c (validate_accessible): fix the most
4063 * cspi/spi_main.c (spi_object_release): leave the nicely
4064 blanked memory around if in debug mode.
4066 * cspi/spi-listener-impl.c (cspi_event): use add_check.
4068 [committed to fixups2]
4069 2001-12-05 Michael Meeks <michael@ximian.com>
4071 * libspi/editabletext.c
4072 (spi_editable_text_class_init): g_type_class_peek_parent,
4073 not interface peek - so we finalize cleanly.
4075 * libspi/accessible.c (spi_accessible_new): kill debug.
4077 * test/test-simple.c (validate_accessible): fix ref.
4078 leak, print strings before freeing them; sigh, comment a
4079 chunk out due to strangeness.
4080 (validate_tree): unref the child after use.
4082 * cspi/spi_component.c (AccessibleComponent_getLayer):
4083 add missing break statement, switch on zlayer not the
4084 uninitialized retval.
4086 * cspi/spi_main.c (cspi_object_add): add assert, local ref
4087 before (possibly re-entering) remote unref.
4089 * test/simple-at.c (main): unref the desktop.
4091 * cspi/spi_accessible.c (cspi_accessible_is_a): move
4094 * cspi/spi_main.c (cspi_accessible_is_a): here to
4095 isolate bonobo API usage more.
4097 * libspi/registry.c (impl_accessibility_registry_register_application):
4098 prune bogus comment.
4100 2001-12-04 Michael Meeks <michael@ximian.com>
4102 * test/test-simple.c (validate_tree): upd.
4103 IndexInParent check to make it more lucid.
4104 (validate_accessible): dump the tree.
4106 * libspi/accessible.c (de_register_public_ref),
4107 (get_public_refs): impl.
4108 (spi_accessible_new): make more efficient & intuitive.
4109 Now IndexInParent check works.
4111 2001-12-04 Michael Meeks <michael@ximian.com>
4113 * cspi/spi-util.h: remove.
4115 * cspi/spi.h: move SPI_freeString here
4117 * libspi/component.c (impl_accessibility_component_get_layer):
4119 (impl_accessibility_component_get_mdi_z_order): ditto,
4120 return -1 on error - is this ok ?
4122 * test/test-simple.c (test_application): impl.
4124 * cspi/spi_accessible.c (Accessible_getApplication),
4125 (Accessible_isApplication): impl.
4127 * libspi/registry.c (spi_listener_struct_free): release
4128 the CORBA reference too.
4130 * libspi/accessible.c
4131 (impl_accessibility_accessible_get_parent): fix ref leak.
4133 * libspi/registry.c (spi_registry_new): make the registry
4134 immortal - we don't want it to go away ever.
4136 * libspi/application.c
4137 (spi_accessible_application_finalize): impl. cleanup.
4139 * cspi/spi_registry.c
4140 (deregisterGlobalEventListenerAll),
4141 (deregisterGlobalEventListener),
4142 (deregisterAccessibleKeystrokeListener): fix ref leak.
4144 * cspi/spi_main.c (SPI_init): remove redundant ref.
4146 * test/test-simple.c (unutterable_horror): impl. to force a
4151 (impl_accessibility_registry_deregister_application): release
4152 the application when we de-register it.
4154 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4155 until we have the infastructure to get it right.
4157 2001-12-03 Michael Meeks <michael@ximian.com>
4159 * libspi/Makefile.am: only build eventlistener.[ch]
4161 * libspi/accessible.c
4162 (impl_accessibility_accessible_get_child_at_index): don't leak.
4164 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4165 before we hit the idle handler.
4167 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4168 debugging than exit.
4170 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4172 * libspi/listener.c (impl_notify_event): check source
4173 not NIL before unref.
4175 * libspi/registry.c (impl_registry_notify_event): ditto.
4177 * libspi/eventlistener.c
4178 (impl_accessible_event_notify_event): unref the source.
4180 * libspi/accessibleeventlistener.c
4181 (impl_accessible_event_notify_event): unref the source.
4183 * idl/Event.idl: remove 'hash_id' attribute - of no
4186 * libspi/application.c (notify_listeners): upd list
4188 (spi_application_object_event_listener),
4189 (spi_application_toolkit_event_listener): upd to do correct
4193 (_registry_notify_listeners): update.
4194 (parse_event_type): this method also leaks like a sieve.
4195 (impl_accessibility_registry_deregister_global_event_listener):
4196 fix ETYPE_WINDOW case.
4198 * libspi/application.c
4199 (impl_accessibility_application_register_object_event_listener):
4202 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4204 * libspi/hypertext.c (impl_getLink): ditto.
4206 * cspi/spi_main.c (cspi_object_add): remove
4207 bogus CORBA_Object_duplicate.
4209 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4212 * cspi/spi_accessible.c
4213 (Accessible_getRelationSet): fix leak / referencing issue.
4215 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4216 (cspi_object_add, cspi_object_unref): upd.
4217 (spi_object_release, get_live_refs): impl.
4218 (cspi_cleanup): simplify.
4220 * *.[ch]: s/boolean/SpiBoolean/
4222 * cspi/spi_accessible.c (role_names): actualy order so it
4223 corresponds with the enum !
4225 * test/test-simple.c (test_roles): check some role strings
4226 vs. enums to detect offset errors.
4228 2001-12-01 Michael Meeks <michael@ximian.com>
4230 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4232 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4234 (Accessible_getChildAtIndex): use cspi_add_check so we
4235 check the ev before using a (possibly) invalid value.
4237 * libspi/accessible.c
4238 (impl_accessibility_accessible_get_parent): don't segv
4241 * at-bridge/bridge.c (gtk_module_init): upd.
4242 (bridge_property_event_listener): don't leak strings
4244 (bridge_state_event_listener),
4245 (bridge_property_event_listener): don't use a static
4246 buffer in case of recursive event emission &
4247 re-enterancy - split out the swathe of cut and paste
4249 (emit_eventv): and fix 2 ref leaks here & comply to the
4251 (bridge_register_app): rename to
4252 (bridge_idle_init): this and kill arg parsing, split
4253 various inits & bonobo-activation registration to module
4254 init time, kill referencing error.
4255 (bridge_exit_func): fix the same leak.
4256 (bridge_focus_tracker): don't leak event structures
4258 (bridge_signal_listener): more leakage and cut & paste
4260 (bridge_key_listener): return the result - FIXME is
4261 this polarity correct ?
4262 (accessibility_keystroke_from_atk_key_event): rename
4263 (accessibility_init_keystroke_from_atk_key_event): and stop
4265 (gtk_module_init): return a value - not that it is checked by
4267 (bridge_key_listener): register my horror at casting between
4268 IDL defined structs.
4269 (bridge_get_registry): kill - not used.
4271 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4273 * test/test-simple.c (test_roles): impl.
4274 (test_desktop, validate_accessible, validate_tree): impl.
4276 * cspi/spi_accessible.c (role_names): fixup bogus
4277 MAX_ROLES setup, make constants const for efficient linkage
4278 (AccessibleRole_getName): conform to coding style, make
4281 2001-11-30 Michael Meeks <michael@ximian.com>
4283 * cspi/spi.h: add missing prototype.
4285 * libspi/registry.c (spi_listener_struct_new): fix sig.
4287 * test/Makefile.am: add test-simple
4289 * test/test-simple.c: add
4291 * test/test.sh: add.
4293 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4295 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4296 do it straight - since otherwise we often get an activation race.
4298 [ work before Bill duplicated a chunk of it ... ]
4299 2001-11-30 Michael Meeks <michael@ximian.com>
4301 * libspi/keystrokelistener.c
4302 (spi_keystroke_listener_class_init): fixup arg
4305 * libspi/eventlistener.c
4306 (spi_event_listener_class_init): ditto.
4308 * tests/test.sh: add.
4310 * cspi/spi-listener-impl.h: update macros.
4312 * cspi/spi-listener-impl.c
4313 (cspi_event_listener_remove_callback): add
4314 correct pre-conditions.
4316 * cspi/spi_main.c (SPI_exit): guard vs. double
4317 exits, exit the mainloop nicely.
4318 (SPI_event_main): make more sense.
4319 (SPI_init): move the atexit evilness here so we
4320 always do it (yuck).
4321 (SPI_event_main): upd.
4323 * test/simple-at.c: update for listener changes.
4325 * registryd/registryd.c (main): prune kruft.
4327 * libspi/libspi.h: upd.
4329 * libspi/eventlistener.[ch]: rename broken macros.
4331 * libspi/accessibleeventlistener.[ch]: remove.
4333 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4335 * test/test-simple.c: Add - automated tests.
4337 * cspi/spi-listener-impl.c (cspi_event),
4338 (cspi_key_event): add user_data to invoke.
4339 (cspi_keystroke_listener_finalize): impl.
4340 (cspi_keystroke_listener_class_init): upd.
4343 (createAccessibleEventListener),
4344 (AccessibleEventListener_addCallback),
4345 (createAccessibleKeystrokeListener),
4346 (AccessibleKeystrokeListener_addCallback): upd.
4348 * libspi/deviceeventcontroller.c
4349 (spi_device_event_controller_check_key_event): add public proto.
4352 (impl_accessibility_registry_deregister_global_event_listener):
4353 always init listeners.
4354 (_registry_notify_listeners): yes it is.
4356 * cspi/spi-listener-impl.c (cspi_key_event):
4358 (cspi_event_listener_finalize): impl.
4359 (cspi_event_listener_class_init): hook up.
4360 (event_handler_new, event_handler_free),
4361 (event_list_remove_by_callback): impl.
4362 (cspi_event_listener_remove_callback),
4363 (cspi_keystroke_listener_remove_callback),
4364 (cspi_keystroke_listener_add_callback),
4365 (cspi_event_listener_add_callback): upd.
4367 * libspi/keystrokelistener.c
4368 (keystroke_listener_object_finalize): kill
4369 (spi_keystroke_listener_class_init): upd.
4370 (spi_keystroke_listener_add_callback),
4371 (spi_keystroke_listener_remove_callback): kill,
4373 (impl_key_event): prune drasticaly.
4375 * libspi/eventlistener.c
4376 (spi_event_listener_add_callback),
4377 (spi_event_listener_remove_callback): kill, use
4379 (impl_accessible_event_notify_event): upd.
4380 (spi_event_listener_object_finalize): remove.
4382 * libspi/Makefile.am: use eventlistener.[ch]
4384 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4386 * libspi/registry.c (_registry_notify_listeners):
4387 Changed listener loop iteration to use preferred convention.
4388 Got rid of string memory leaks caused be calling g_strconcat
4389 inside function calls.
4391 * libspi/registry.c (parse_event_type):
4392 Stopped g_strconcat memory leaks, free the g_strsplit return,
4393 g_strdup the split pieces when used, etc.
4395 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4398 Change method 'compare' to return a 'difference set' rather than
4399 taking a StateSet as an out parameter (more Java-friendly).
4401 * idl/Accessible.idl:
4402 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4404 * idl/Component.idl:
4406 Changed methods 'getExtents' and 'getImageExtents' in these
4407 interfaces to return a BoundingBox structure.
4408 (getPosition and getSize are redundant and possibly should be
4409 removed, rather than creating a corresponding Point struct.)
4411 * cspi/spi_component.c:
4412 Modify implementation of getExtents to reflect the above IDL
4417 Add (missing) AccessibleImage_getExtents () API.
4419 * docs/reference/cspi/at-spi-cspi-sections.txt:
4420 Added AccessibleImage_getImageExtents () to docs.
4422 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4424 * idl/Component.idl:
4425 Added two methods, getLayer () and getMDIZOrder (), to reflect
4426 the new ATK methods atk_object_get_layer and
4427 atk_object_get_mdi_z_order. (Which arguably should be part of the
4428 AtkComponent API and AtkObject). Also added an enum,
4429 ComponentLayer, for the first method's return value.
4431 * libspi/component.c:
4432 Added implementations for these methods.
4434 * cspi/spi_component.c:
4436 Added cspi binding methods for above,
4437 AccessibleComponent_getLayer() and
4438 AccessibleComponent_getMDIZOrder().
4439 Added cspi enum 'AccessibleComponentLayer'.
4441 * docs/reference/cspi/at-spi-cspi-sections.txt:
4442 Added above methods to docs.
4446 Changed typedef for 'boolean' type (and all references to it) to
4447 SPIBoolean, to avoid keyword clashes with C++.
4450 Changed usages of 'boolean' to SPIBoolean.
4452 * test/keysynth-demo.c:
4453 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4454 app), except where SPIBoolean is required by the callbacks API.
4456 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4458 * cspi/spi_registry.c:
4459 Removed obsolete X event loop for passive keygrabs (which now
4462 * registryd/registryd.c:
4463 Removed unnecessary call to gdk_init() [cruft]. This also allows
4464 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4467 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4469 * docs/reference/cspi:
4470 Included docs for SPI_freeString in generated documentation.
4473 Renamed spi_freeString to SPI_freeString, for consistency. Added
4474 documentation for this function.
4477 Renamed spi_freeString to SPI_freeString, for consistency.
4478 Removed obsolete method declaration string_from_corba_string.
4480 * test/keysynth-demo.c:
4481 Small tweak to comments.
4484 Stopped leaking the strings returned from CSPI.
4486 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4488 Merged Michael's branch (see his ChangeLog entries below).
4490 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4491 bridge is alive, release on exit.
4493 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4494 Fix type check macro.
4497 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4500 Added is_gnome_app static, and method cspi_is_gnome_app(),
4501 so we can call the appropriate shutdown routine at exit in SPI_exit.
4503 * cspi/spi_main.c (cspi_object_ref):
4504 Duplicate the corba object passed in, since we're keeping it around.
4506 * cspi/SPI_exit.c, cspi_cleanup:
4507 Moved the releasing of the live refs to its own function, so we
4508 can put it in g_atexit (). Call the appropriate shutdown API
4509 depending on whethe calling client is a gnome app or not
4510 (bonobo_main_quit or CORBA_ORB_shutdown).
4512 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4513 Unref the listener when this method is called, after
4514 deregistration. Updated the API docs to note this behavior.
4516 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4517 Bugfixes: Ref the bonobo object when returning a parent or child
4518 reference, or an AccessibleRelation. Generally made sure
4519 BonoboObject refcount is incremented whenever we return an
4522 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4523 Fixed typo/bug in signal declaration.
4525 * libspi/accessibleeventlistener.h:
4528 * libspi/application.c (spi_application_new):
4529 Fixed leak in initialization.
4532 Remembered to increment bonobo-object refcount when returning
4533 children (applications) from desktop object.
4534 Added (empty) finalize method.
4536 * libspi/deviceeventcontroller.c:
4537 Hold a ref to listeners inside DEControllerKeyListeners.
4538 Added dec_key_listener_free() method. Use prepend instead of
4539 append in key_listener list. Fixed some refcount madness and
4540 leaks in the listener registration/deregistration - deregistration
4541 now calls dec_key_listener_free() on listeners, and on the
4542 temporarily constructed dec_key_listener() used to perform the search/match.
4544 * libspi/hypertext.c (spi_hypertest_finalize):
4545 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4546 class. Also fixed spi_hypertext_interface_new() and
4547 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4549 * libspi/hypertext.h:
4550 Removed pointless and duplicate AtkObject pointer from
4553 * libspi/keystrokelistener.c:
4554 Fixed incorrect type of keystroke_listener_parent_class,
4555 renamed keystroke_listener_object_finalize to
4556 spi_keystroke_listener_object_finalize.
4557 Fixed typo in signal declaration
4558 (spi_keystroke_listener_class_init).
4560 * libspi/registry.c:
4561 Added funcsions spi_listener_struct_new() and
4562 spi_listener_struct_free() to help with memory management issues.
4563 We also now use these methods instead of gnew + poking stuff into
4564 the struct, and to decrement listener counts/free the listeners
4565 when deregistering them.
4566 Fix more refcount bugs in getDesktop() and
4567 getDeviceEventController().
4570 De-ref the desktop after enumerating the applications. Explicitly
4571 decrement the refcounts on the created listeners on exit (using
4572 _unref for keystroke listeners, and via the
4573 deregisterGlobalEventListenerAll command for other event
4576 2001-11-27 Michael Meeks <michael@ximian.com>
4578 * cspi/spi-listener.h: fixup enum.
4580 2001-11-27 Michael Meeks <michael@ximian.com>
4582 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4583 (cspi_keystroke_listener_new): Use the cspi variants.
4585 2001-11-26 Michael Meeks <michael@ximian.com>
4587 * test/keysynth-demo.c: fix 2 compile warnings, missing
4590 * test/simple-at.c (report_focussed_accessible),
4591 (report_focus_event, report_button_press),
4592 (check_property_change, is_command_key),
4593 (report_ordinary_key_event, report_command_key_event): upd.
4595 * util/mag_client.h: include pre-requisites.
4597 * libspi/accessibleeventlistener.c
4598 (spi_event_listener_object_finalize): free any lingering
4601 * libspi/keystrokelistener.c
4602 (keystroke_listener_object_finalize): ditto.
4604 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4605 callbacks, with cspi types.
4607 * cspi/spi_event.c (createAccessibleEventListener): chain to
4608 (AccessibleEventListener_addCallback): here.
4609 (createAccessibleKeystrokeListener): chain to
4610 (AccessibleKeystrokeListener_addCallback): here.
4612 * libspi/keystrokelistener.c
4613 (spi_keystroke_listener_class_init): add signal.
4614 (impl_key_event): emit the event.
4615 (boolean_handled_accumulator): impl.
4616 (marshal_BOOLEAN__POINTER): add, gack.
4618 * libspi/accessibleeventlistener.c
4619 (spi_event_listener_class_init): add signal.
4620 (impl_accessible_event_notify_event): emit the signal &
4621 make the loop efficient.
4622 (spi_event_listener_add_callback): prepend the callback.
4624 * libspi/accessibleeventlistener.h: add an 'event' signal,
4625 decl type on callback.
4627 * libspi/keystrokelistener.h: ditto.
4629 * cspi/spi-listener.h: make methods typesafe and
4630 make them use the new event typedefs.
4632 * test/simple-at.c (report_focussed_accessible):
4633 include mag_client.h
4634 Use *(void *)text_interface not the other thing.
4636 * configure.in: add gtk to registryd bits - since we use
4639 * util/magnifier.c: include libbonobo.h
4641 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4643 * test/keysynth-demo.c:
4644 Turned this into a simple scanning keyboard, to demonstrate the
4645 use of g_timeout_add () as a means of creating timers for
4646 scanning, and the use of GtkStyle for visually indicating when
4647 virtual keyboard elements are selected.
4649 keysynth-demo now listens to any keyboard keys with zero-valued
4650 keycodes (i.e. 'unused' keys) and interprets them as
4653 Reworked the shiftlatch code so that shift-down state isn't held
4654 for long periods (it's only synthesized immediately prior to
4655 the keysynth event it's modifying). Note that shiftlatch in this
4656 demo is a convenience, not intended to take the place of AccessX
4657 which is the better choice for getting 'sticky' modifier keys.
4659 * libspi/deviceeventcontroller.c:
4660 * at-bridge/bridge.c:
4661 * cspi/spi_registry.c:
4662 Removed some debug print stuff, and put other verbosity in #ifdef
4667 Implemented some more of the magnifier IDL for the simple
4668 magnifier: namely, getZoomRegionParams.
4669 Added mag_x and mag_y members to MagnifierData struct, aid of this
4671 Added GtkWindow::realize signal handler to magnifier, to keep it
4672 from receiving keyboard focus from the WM.
4674 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4676 * cspi/spi-private.h: my guess at what michael forgot
4677 before he ran off to NZ :-)
4679 2001-11-23 Michael Meeks <michael@ximian.com>
4681 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4682 comment out non existant method invoke so we link.
4684 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4685 use bonobo_exception_get_text for more friendly warnings.
4687 * cspi/spi.c (Obj_Add): move into spi_main & rename
4688 spi_object_add; kill spi.c
4690 * cspi/spi_registry.c
4691 (deregisterGlobalEventListener),
4692 (deregisterGlobalEventListenerAll),
4693 (registerGlobalEventListener): fix exception leaks.
4695 * cspi/spi_main.c (spi_exception): impl. helper, so we
4696 don't leak exceptions.
4698 * cspi/spi_selection.c
4699 (AccessibleSelection_deselectSelectedChild): return the
4702 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4703 (spi_registry): ditto.
4704 (SPI_init): guard against double inits.
4706 * cspi/*.c: use spi_ev (), and spi_registry () where
4707 appropriate - a temporary hack until we have something
4708 better. Use spi_object_add
4710 2001-11-22 Michael Meeks <michael@ximian.com>
4712 * cspi/Makefile.am: re organise, install the headers.
4714 * cspi/*.h: add G_BEGIN/END_DECLS
4716 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4719 Added non-preemptive keylistener for key events with no modifiers
4720 and shift-only modifier.
4722 * libspi/keystrokelistener.c:
4723 Removed some verbose diagnostics printout.
4725 * cspi/spi_registry.c:
4726 Fixed a bug that caused all key listeners to be registered as
4729 * libspi/deviceeventcontroller.c:
4730 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4731 for non-preemptive key masks.
4734 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4736 * docs/reference/idl/at-spi-idl-docs.sgml:
4737 * docs/reference/idl/at-spi-idl-sections.txt:
4738 * docs/reference/idl/at-spi-idl-overrides.txt:
4739 Added missing files.
4741 * docs/reference/Makefile.am:
4742 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4743 to scan the IDL files :-(
4748 Added .cvsignore files.
4750 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4752 * libspi/deviceeventcontroller.c:
4753 * libspi/keystrokelistener.c:
4755 * cspi/spi_registry.c:
4756 Added filters for KeySets, KeyEventSeq, and event types to key
4757 event dispatching, so listeners should only receive those events
4758 that they requested :-)
4760 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4765 * docs/reference:Makefile.am:
4766 * docs/reference/cspi:
4767 * docs/reference/cspi:Makefile.am:
4768 * docs/reference/cspi:tmpl:
4769 * docs/reference/cspi:tmpl:*.sgml:
4770 * docs/reference/idl:
4771 * docs/reference/idl:Makefile.am:
4772 * docs/reference/idl:at-spi-idl-sections.txt:
4773 * docs/reference/idl:at-spi-idl-docs.sgml:
4774 * docs/reference/idl:tmpl:
4775 * docs/reference/idl:tmpl:*.sgml:
4777 Restructured docs directory to allow separate 'reference' docs
4778 section, and forked idl and cspi docs. Added the sgml template
4779 files to CVS. Added the first sections/structural sgml for the
4782 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4784 * configure.in, libspi/Makefile.am: find libXtst.
4786 2001-11-21 Michael Meeks <michael@ximian.com>
4788 * test/accessx-gui.c: s/spi_value/value/ - doh.
4790 * libspi/base.[ch]: add.
4792 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4794 * idl/Accessible.idl:
4795 * idl/Application.idl:
4798 Started gtk-doc cleanup on IDL.
4800 * libspi/deviceeventcontroller.c:
4801 Added and connected non-preemptive key notification from the
4802 toolkits (in addition to the pre-emptive support from XServer
4803 which we had before, but which causes 'focus flashing'). Filters
4804 are presently limited to key modifiers and global/non-global,
4805 KeySets are presently ignored, as are KeyEvent masks.
4807 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4808 structs into the persistant structure rather than just storing
4809 pointers to things that might not persist across servant
4812 The XGrabKey call now does async keygrabs, because synchronous
4813 ones were deadlocking with GDK_event code in a very nasty way.
4815 Added boolean to internal method notify_keylisteners, to indicate
4816 whether the event came from the 'toolkit source' or the 'global
4817 (XServer) source' - this is used in the notification process to
4818 determine which listeners to send the event to.
4820 deviceeventcontroller.c is now warning-free.
4822 * libspi/registry.c:
4823 Fixed regression in application de-registration.
4824 Also fixed some really brain-dead weirdness having to do with
4825 event dispatching - event structs are now duplicated before being
4826 re-marshalled in the dispatch to listeners. This also fixes a
4827 Solaris build problem.
4830 2001-11-20 Michael Meeks <michael@ximian.com>
4833 (impl_accessibility_registry_deregister_global_event_listener):
4836 * libspi/deviceeventcontroller.c
4837 (spi_device_event_controller_check_key_event): return
4838 FALSE on no virtual method.
4840 * libspi/*..h: make includes work on a correctly pathed install.
4842 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4844 * libspi/application.h: kill unused ( and whacked out )
4845 gboolean *spi_application_set_id (AtkObject *app, long id);
4847 2001-11-20 Michael Meeks <michael@ximian.com>
4849 * libspi/*.[ch]: further convert to bonobo's type func
4850 macros, remove redundnant casts etc.
4852 * libspi/text.c s/accessibility_text/spi_text/g,
4853 re-order to de-cruft.
4855 * libspi/hypertext.c: re-order to kill a huge slew
4856 of redundant forward decls.
4858 * libspi/relation.c: ditto.
4860 * libspi/image.c: ditto.
4862 * */.cvsignore: update
4864 2001-11-20 Michael Meeks <michael@ximian.com>
4866 * libspi/deviceeventcontroller.c
4867 (_controller_register_with_devices): use g_getenv,
4868 kill stdlib.h include.
4870 * libspi/keystrokelistener.c
4871 (spi_keystroke_listener_get_type): kill
4872 (spi_keystroke_listener_class_init),
4873 (spi_keystroke_listener_init): rename to this.
4875 * libspi/text.c (impl_getAttributes): fix warning / bug.
4877 * libspi/*.[ch]: more headers, includes and over commenting.
4879 2001-11-20 Michael Meeks <michael@ximian.com>
4881 * libspi/*.[ch]: fixup headers, includes and over commenting.
4883 * libspi/image.c (impl__get_imageDescription): const
4884 correctness warning fix. remove redundant casting.
4886 * libspi/table.c (impl_getRowDescription): ditto.
4887 (impl_getColumnDescription): ditto.
4889 * libspi/libspi.h: add.
4891 2001-11-19 Michael Meeks <michael@ximian.com>
4893 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4895 * libspi/component.c (accessibility_component_get_type):
4896 rename to (spi_component_get_type): and macroify.
4897 (accessibility_component_init): rename to
4898 (spi_component_init): this
4899 (accessibility_component_class_init): rename to
4900 (spi_component_class_init): this
4902 * libspi/action.c (spi_action_get_type): kill, use the macro.
4904 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4907 * libspi/application.c (spi_application_object_event_listener),
4908 (impl_accessibility_application_register_object_event_listener):
4909 warning fixes / const understanding updates.
4911 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4914 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4916 * libspi/spi_accessible.c: Added docs and C bindings for
4917 AccessibleStateSet. (No implementations yet). Documentation
4918 coverage for C bindings now 100%. Made docs for event listeners
4923 boolean notifyListenersSync (in DeviceEventListener listener,
4924 in DeviceEvent event);
4926 oneway void notifyListenersAsync (in DeviceEventListener listener,
4927 in DeviceEvent event);
4929 Added DeviceEventListener and DeviceEvent structs (may deprecate
4930 KeyStroke and KeystrokeListener in favor of this generic
4931 event/listener framework for devices).
4933 * libspi/deviceeventcontroller.c:
4935 Changed some key listener code to take masks, etc., and paved the
4936 way for integration of toolkit/non-preemptive key events. Changed
4937 signatures of some internal methods.
4939 * at-bridge/bridge.c:
4940 Fixed regression connecting to interface signals, apparently
4941 caused by GTK+ changes.
4943 Added an internal bridge_state_listener to deal with
4944 property-change:accessible-state signals.
4946 Changed the key_listeners GList to store structs (including masks,
4947 etc.) instead of just CORBA_Objects (required for full
4948 implementation of key listener API).
4950 Connected the bridge to all currently supported Atk signals.
4951 Events now supported:
4952 object:property-change
4953 object:property-change:accessible-name
4954 object:property-change:accessible-state
4955 object:property-change:accessible-description
4956 object:property-change:accessible-parent
4957 object:property-change:accessible-value
4958 object:property-change:accessible-role
4959 object:property-change:accessible-table-caption
4960 object:property-change:accessible-table-column-description
4961 object:property-change:accessible-table-column-header
4962 object:property-change:accessible-table-row-description
4963 object:property-change:accessible-table-row-header
4964 object:property-change:accessible-table-summary
4965 object:children-changed
4966 object:visible-data-changed
4967 object:selection-changed
4968 object:text-selection-changed
4970 object:text-caret-moved
4972 object:row-reordered
4974 object:column-inserted
4975 object:column-reordered
4976 object:column-deleted
4977 object:model-changed
4979 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4981 * libspi/hyperlink.c,h:
4982 Fixed some broken stuff in hyperlink.
4984 * libspi/relation.h:
4985 * libspi/relation.c:
4986 * cspi/spi_accessible.c:
4987 Initial implementations of AccessibleRelation methods, and docs.
4989 * libspi/accessible.c:
4990 Fixed a bug that caused SEGV if an accessible
4991 object's description is NULL, and a client
4992 requests it. An empty string is now returned.
4994 * cspi/spi_editabletext.c:
4995 * cspi/spi_hypertext.c:
4997 * cspi/spi_hyperlink.c:
5001 Doc coverage now 95%.
5003 2001-11-16 Bill Haneman <bill.haneman@sun.com>
5005 One last namespacing revision:
5006 * libspi/accessibleeventlistener.[ch]:
5007 Renamed SpiAccessibleEventListener to SpiEventListener,
5008 (no need for two namespaces ;-)
5010 And lots of documentation fixes:
5012 * docs/at-spi-docs.sgml:
5013 Fixed 'underscore vs. hyphen' bug that was preventing
5014 the gtk-doc API docs from being automatically generated.
5017 * cspi/spi-listener.h
5019 * cspi/spi_accessible.c
5021 * cspi/spi_application.c
5022 * cspi/spi_component.c
5023 * cspi/spi_editabletext.c
5025 * cspi/spi_hypertext.c
5027 * cspi/spi_registry.c
5028 * cspi/spi_selection.c
5032 * docs/at-spi-docs.sgml
5033 * docs/at-spi-sections.txt
5035 Added and fixed up gtk-doc documentation in cspi.
5037 Interfaces now (fully) documented (subject to revision and enhancement):
5039 Event Listener Support
5041 AccessibleApplication
5045 AccessibleEditableText
5052 AccessibleRelationSet
5057 2001-11-14 Bill Haneman <bill.haneman@sun.com>
5059 * at-bridge/bridge.c:
5060 Initial work for toolkit-level key snooper connection by bridge.
5065 New typedefs and fixes to support new namespacing, and cleaner
5066 separation of cspi bindings from libspi bonobo implementation.
5067 Removed inconsistent and extraneous Spi* namespace prefix that
5068 had crept into cspi headers.
5069 Lots of comment fixes that sed had missed.
5071 * cspi/spi-roletypes.h:
5072 * cspi/spi-statetypes.h:
5073 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
5074 to AccessibleRoleType.
5076 * libspi/accessibleeventlistener.h:
5077 Fixed minor namespacing weirdness.
5079 * libspi/deviceeventcontroller.c:
5080 Reordered some internal API for device listeners.
5081 Changed the key registry final boolean to 'is_system_global'
5082 rather than 'is_synchronous', which is more descriptive of its
5084 Added spi_device_event_controller_new().
5085 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
5087 * libspi/keystrokelistener.[ch]:
5088 Namespaced KeystrokeListener to SpiKeystrokeListener.
5089 Changed uses of keymasks to use SPI_ prefix, and did other
5092 * libspi/keymasks.h:
5093 Namespaced keymask constants with SPI_ prefix.
5095 * libspi/registry.c:
5096 Some warning fixes, and knock-on fixes from namespace changes.
5099 Added rules for accessx-gui test program.
5101 * test/accessx-gui.c:
5102 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5103 utility. It doesn't actually use at-spi, but it's still cool and
5106 * test/keysynth-demo.c:
5110 Fixes so that these test clients work properly with the namespaced
5111 libraries. (Incompletely tested for technical reasons, fixes may follow)
5114 2001-11-13 Michael Meeks <michael@ximian.com>
5116 * libspi/application.c
5117 (impl_accessibility_application_get_version),
5118 (impl_accessibility_application_get_toolkit_name):
5120 (impl_accessibility_application_set_id),
5121 (impl_accessibility_application_get_id): remove
5122 redundant casting code.
5124 * libspi/action.c (impl_getDescription): fix warnings.
5126 * libspi/accessible.c
5127 (impl_accessibility_accessible_get_parent),
5128 (impl_accessibility_accessible_get_child_at_index),
5129 (impl_accessibility_accessible_get_state),
5130 (impl_accessibility_accessible_get_relation_set):
5131 warning fixes & include action.h
5133 2001-11-13 Michael Meeks <michael@ximian.com>
5135 * *.[ch] fix bits I screwed up:
5137 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5138 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5140 2001-11-13 Michael Meeks <michael@ximian.com>
5142 * *.[ch] Namespace libspi into spi_ and Spi.
5144 2001-13-11 Michael Meeks <michael@ximian.com>
5146 * Makefile.am: dist & install at-spi-1.0.pc
5148 * libspi/Makefile.am: install into at-spi-1.0
5150 * idl/Makefile.am (idldir): install into at-spi-1.0
5152 * at-spi-1.0.pc.in: add.
5154 * configure.in: build it.
5156 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5158 * test/keysynth-demo.c:
5159 Use a 'realize' signal-handler to set the WM properties for
5160 the virtual keyboard, rather than making it a "POPUP" type
5161 override-redirect window (thanks to anders carlsson for that
5164 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5167 * test/keysynth-demo.c:
5168 Added new test of key synthesis, which creates a simple
5169 (mouse-operated) onscreen keyboard. It inserts key events into
5170 the currently-focused window, thus it does not grab keyboard focus
5173 * cspi/spi_registry.c:
5174 Added C binding for AT-SPI generateKeyEvent.
5176 * libspi/deviceeventcontroller.c:
5177 Added call to XFilterEvent so that key listener works with XIM (we
5178 hope). Added event_synth_type to generateKeyEvent, so that we can
5179 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5180 synthesize a press/release pair for KeySyms.
5182 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5184 * libspi/Makefile.am:
5185 * registryd/Makefile.am:
5186 (temporary) hack to include libXtst in libspi and registryd.
5187 (Needed for keystroke synthesis, see below).
5190 Improved API for registerKeystrokeListener, in accordance with
5191 discussions with Gnopernicus team and X server research.
5193 * libspi/registry.c:
5194 * libspi/deviceeventcontroller.c:
5195 * libspi/accessible.c:
5196 * libspi/keystrokelistener.c:
5197 Changes and fixes to support keylisteners for potentially
5198 consumed key events (that is, 'passive grabs').
5199 Added implementation for generateKeyEvent() [untested].
5202 Changes to registerKeystrokeListener() API, as above.
5203 Added deregisterGlobalEventListenerAll(), and
5204 deregisterKeystrokeListener(), which are needed for clean exit of
5206 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5207 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5209 * cspi/spi_registry.c:
5210 Added implementations of function prototypes mentioned above.
5212 * registryd/registryd.c:
5213 Added the key listener event source as a g_timeout(), to allow
5214 receipt of key events that are not caught by GDK (since GDK
5215 doesn't support passive keygrabs, this was necessary).
5218 Changed to attach a keylistener to 'Alt' keys, and
5219 respond to the following keycommands: Alt-M (toggle magnifier);
5220 Alt-F (toggle speech); Alt-Q (quit).
5221 Added an exit routine to deregister the listeners, and a key
5222 listener that prints some key info to the console when a key
5223 matches the listener mask (and is thus received by the listener).
5225 * util/idl/Magnifier.idl:
5226 Changes to magnifier API to support multiple zoom regions,
5227 non-uniform scaling in x and y, markDirty, and a host of other
5228 features that would be useful to magnification.
5231 * util/mag_client.c:
5232 * util/mag_client.h:
5233 * util/mag_control.c:
5235 Source code changes to support the above IDL changes.
5238 As above, and also changes to use a (slower) generic conversion
5239 path for colormap conversions, since the fast RGB conversions have been
5240 reported to fail for 16-bit displays.
5242 2001-10-26 Michael Meeks <michael@ximian.com>
5244 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5246 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5248 * at-bridge/Makefile.am: fix LDFLAGS.
5250 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5252 * at-bridge/bridge.c:
5253 Re-worked listeners for toolkit events, now we have signal
5254 and property listeners. Added a private method
5255 register_atk_event_listeners(), which registers with the
5256 various atk and gtk signals we need to monitor in order to emit
5258 Added emission hook for AtkObject:property-change events, to
5259 support the 'property listeners'.
5260 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5263 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5264 which emit warnings and exit, respectively, if CORBA errors occur
5265 during remote calls, and we now use these methods to check most of
5266 our CORBA calls in the C bindings.
5268 * cspi/spi_accessible.c:
5269 Changed AccessibleSelection_refSelectedChild() to
5270 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5271 now increment refcounts.
5273 * cspi/spi_component.c:
5274 Fixed some long pointer casts (dangerous!) to pass pointers to
5275 CORBA_longs of the proper type to the CORBA stubs, and copy the
5276 data into the longs that were passed into the C bindings code.
5278 * at-bridge/bridge.c:
5280 * libspi/accessible.c:
5281 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5282 hyperlinks, AtkHyperlink is an object type.
5284 * libspi/application.c:
5285 Added various conversions to and from "generic" event types and
5286 atk-specific types; this is really part of the 'bridge'
5287 implementation but is valid for all AtkObject-based accessibility
5290 * libspi/editabletext.c:
5291 Fixed nasty bug wherein editable text's finalize method was
5292 unref'ing tha AtkObject reference that the text parent class was
5293 about to unref _again_. There was also a nasty inheritance bug
5294 that meant that the AccessibleEditableText class was corrupt.
5296 * libspi/selection.c:
5297 Provided implementations for some selection API that was broken.
5299 * idl/Application.idl:
5300 Added registerObjectEventListener () method.
5303 Fixed a number of return values that were Bonobo_Unknowns from
5304 bonobo_object_corba_objref(), which I
5305 forgot to dup before returning. Changed instances of
5306 bonobo_object_corba_objref (bonobo_object(o)) to
5307 BONOBO_OBJREF(o), for concision and clarity.
5309 2001-10-13 Louise Miller <louise.miller@sun.com>
5311 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5312 idl/Event.idl, idl/Registry.idl
5313 Changed these files to include Bonobo_Unknown.idl instead
5316 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5318 * libspi/component.c libspi/component.h:
5319 Fixed typo. Added assertions for object checks in
5320 AccessibleComponent code.
5322 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5324 * idl/Accessible.idl:
5325 Added 'isEqual (Accessible *object)'
5326 method for Accessible. (Not Yet Implemented).
5329 Changed signature of registerKeystrokeListener() to
5330 take a KeySet and KeyEventSeq so that specific keys and event
5331 types could be requested for monitoring, and added a flag
5332 is_synchronous so that either synchronous or asynchronous
5333 notification could be requested. (However this is not all
5334 implemented yet). This also meant adding two new typedefs,
5335 KeyEventSeq and KeySet.
5338 Added two new relations, RELATION_TOOLTIP_FOR and
5339 RELATION_LEAFNODE_OF.
5342 Added new state, STATE_HAS_TOOLTIP.
5344 * libspi/text.c, editabletext.c:
5345 Added new assertions to all casts of bonobo-objects from
5346 CORBA servants, to prevent Text API calls on non-text objects.
5347 Changed suspect casts of int-pointer types, so that we
5348 always send a valid CORBA_long pointer to the CORBA APIs that use
5349 in/out long parameters. We then have to copy from the CORBA_long
5350 into the regular long or int for return to the C bindings, or
5351 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5354 * libspi/deviceeventcontroller.c:
5355 Cleaned these sources up.
5357 Changed return type for getCharacterAtOffset to
5358 CORBA_unsigned_long, to allow for 32-bit characters.
5361 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5365 Fixed 'make dist' so that distro compiles...
5366 * libspi/keymasks.h:
5368 * cspi/spi-listener.c:
5369 KeystrokeListenerCB now returns a boolean.
5371 Added KeyEventType struct, and KeyStroke.
5372 Also added createKeystrokeListener(),
5373 KeystrokeListener_addCallback(),
5374 KeystrokeListener_removeCallback(), and added a keymask to
5375 registerKeystrokeListener().
5376 * cspi/spi_accessible.c:
5377 Changed numerous return types for interfaces from
5378 AccessibleComponent to Accessible<InterfaceName>; this was
5379 probably a cut-and-paste error.
5381 Implementations of new KeystrokeListener api (from spi.h,
5384 Changes to key modifier mapping.
5385 Created ControllerEventMask struct.
5386 Made DeviceEventController derive from Bonobo::Unknown.
5388 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5389 * libspi/deviceeventcontroller.c:
5390 Added a number of new internal (private) methods.
5391 * libspi/editabletext.c:
5392 * libspi/editabletext.h:
5393 Fixed a number of bugs related to the fact that
5394 editabletext inherits from text. Fixed the EditableText struct,
5395 the init() call, and use correct casts when calling Text methods
5396 from an EditableText object. Removed (duplicate) atko from the
5397 EditableText structure, we use the one in the parent Text
5398 structure via the casts mentioned above.
5399 * libspi/keystrokelistener.[ch]:
5400 * libspi/registry.c:
5401 Changes in support of keyboard handling (above).
5403 Keyboard handling, though partly functional, is still not
5404 recommended for at-spi client use as there is considerable
5405 work yet to be done.
5408 Changed some places where pointers to various int types
5409 are cast to be pointers to CORBA_long types and vice-versa:
5410 pointer casting is not safe so we pass pointers of the correct
5411 types and then cast the result before putting it into the target
5414 * libspi/text.h: minor typos corrected.
5416 We now speak not only the name of a Text element, but the
5417 first sentence of its content, when it receives focus.
5418 I also changed the text compression to 75% from 50%.
5419 * util/Accessibility_Util.server.in:
5420 Changed the default magnifier type to be a 3x vertical
5421 splitscreen magnifier (was previously a 2x horizontal one).
5423 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5425 * libspi/keystrokelistener.h:
5426 * libspi/keystrokelistener.c:
5427 Initial functional implementations of KeystrokeListener.
5430 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5432 Fixed string handling for NULL strings in libspi.
5433 Added spi_freeString to free strings returned by C bindings.
5435 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5437 * libspi/keystrokelistener.h:
5438 * libspi/keystrokelistener.c:
5439 Began (no-op) implementations of KeystrokeListener
5441 * libspi/deviceeventcontroller.c:
5442 * libspi/deviceeventcontroller.h:
5443 Began creating implementations of DeviceEventController,
5444 to handle keystroke and mouse event listening and
5446 * libspi/accessible.c:
5447 Stubbed-in the implementations for
5448 Accessibility_Accessible_getState and
5449 Accessibility_Accessible_getRelationSet.
5450 * libspi/registry.c:
5451 Improved de-registration process and fixed some bugs,
5452 deregistration now works correctly.
5454 Added initialization of applications list (to NULL).
5456 Reduced speech compression from 0.5 to 0.7, for demo.
5457 Changed call to gdk_window_set_decorations()
5458 to gtk_window_set_decorated().
5459 * at-bridge/bridge.c:
5460 Bridge now deregisters when app exits, via
5461 registration of a cleanup function
5462 with the g_atexit() call.
5463 Required making 'app' static, renamed 'this_app'.
5464 Fixed broken use of bonobo_init, passing argv wrongly.
5466 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5470 Created a new directory for
5471 accessibility-related utilities, primarily for
5472 testing and demo purposes, but with possible
5479 Onscreen magnifier utility that
5480 is implemented as a bonobo service.
5482 * util/mag_client.c:
5483 * util/mag_client.h:
5484 Client-side support (simple C bindings)
5485 for Magnification service
5487 * util/mag_control.c:
5488 Client program example for
5489 Magnification service
5491 * util/Accessibility_Magnifier.server.in:
5492 Bonobo-activation file for the
5493 Magnification service.
5496 * util/idl/Magnifier.idl:
5497 IDL defining the bonobo Magnification
5501 Modifications to use the bonobo-activated magnifier
5502 above, in place of trying to connect to an existing
5503 magnifier that uses socket-listening IPC.
5505 If env variable MAGNIFIER is set, a magnifier service
5506 will be started if one does not exist.
5508 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5510 * at-bridge/bridge.c:
5511 applied patch from Marc to build and run
5512 against new glib and gtk+ (seemed like a change
5513 to bonobo_init signature was made ?)
5515 made festival-server support turned off by default.
5516 Added support for a simple magnifier (off by default)
5517 which will be added to a 'util' directory later.
5518 * at-bridge/Makefile.am:
5519 Changed "application.h" header from a 'source'
5520 to a 'dependency' of libat-bridge.
5522 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5531 Added interface implementation c files to list of
5532 includes so they are included in libcspi.
5535 Changed prototype of AccessibleAction_doAction to return a
5537 Changed prototype of AccessibleTable_getCaption to
5538 return an Accessible.
5539 Changed prototype of AccessibleTable_getSelectedRows
5540 and AccessibleTable_getSelectedColumns to
5541 return a long (returns the number of selected rows
5542 or columns respectively).
5543 Changed name of AccessibleText_refRunAttributes to
5544 AccessibleText_getAttributes.
5545 Changed prototype of AccessibleText_getCharacterExtents to
5546 return a void rather than a boolean.
5547 Added support for a AccessibleCoordType parameter
5548 specifying what type of coordinates are desired.
5549 Added an AccessibleCordType parameter to
5550 AccessibleText_getPointAtOffset.
5552 * cspi/spi_accessible.c:
5553 Added code to return the outstanding interfaces from
5554 Accessible_queryInterface.
5556 * cspi/spi_action.c:
5558 Corrected call to getNActions to call the c binding
5561 * cspi/spi_editabletext.c:
5563 Changed name from setRunAttributes to setAttributes.
5565 * cspi/spi_hyperlink.c:
5567 Changed call to getNAnchors to correctly call the c
5568 binding for an attribute.
5570 * cspi/spi_hypertext.c:
5572 Changed getImageDescription to correctly call the
5573 binding for an attribute.
5575 * cspi/spi_selection.c:
5576 Changed getNSelectedChildren to correctly call the c
5577 binding for the attribute.
5578 Changed refSelectedChild to getSelectedChild.
5582 Changed getCaption to return an Accessible.
5583 Fixed calls which retrieve attributes.
5584 Changed refAt to getAccessibleAt.
5585 Changed getNSelectedRows and getNSelectedColumns to
5589 Changed getCharacterExtents and getPointAtOffset to accept an
5590 AccessibleCoordType.
5592 Changed calls which retrieve attributes.
5593 Changed refRunAttributes to getAttributes.
5598 * idl/Hyperlink.idl:
5599 Changed n_anchors attribute to nAnchors to keep naming
5600 convention consistent.
5603 Made Table inherit from Bonobo::Unknown.
5604 Added nSelectedColumns and nSelectedRows attributes.
5607 Made Value inherit from Bonobo::Unknown.
5609 * libspi/hyperlink.c:
5610 Change for nAnchors attributte name change.
5612 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5620 Added interface implementation c files to list of
5621 includes so they are included in libcspi.
5624 Changed prototype of AccessibleAction_doAction to return a
5626 Changed prototype of AccessibleTable_getCaption to
5627 return an Accessible.
5628 Changed prototype of AccessibleTable_getSelectedRows
5629 and AccessibleTable_getSelectedColumns to
5630 return a long (returns the number of selected rows
5631 or columns respectively).
5632 Changed name of AccessibleText_refRunAttributes to
5633 AccessibleText_getAttributes.
5634 Changed prototype of AccessibleText_getCharacterExtents to
5635 return a void rather than a boolean.
5636 Added support for a AccessibleCoordType parameter
5637 specifying what type of coordinates are desired.
5638 Added an AccessibleCordType parameter to
5639 AccessibleText_getPointAtOffset.
5641 * cspi/spi_accessible.c:
5642 Added code to return the outstanding interfaces from
5643 Accessible_queryInterface.
5645 * cspi/spi_action.c:
5647 Corrected call to getNActions to call the c binding
5650 * cspi/spi_editabletext.c:
5652 Changed name from setRunAttributes to setAttributes.
5654 * cspi/spi_hyperlink.c:
5656 Changed call to getNAnchors to correctly call the c
5657 binding for an attribute.
5659 * cspi/spi_hypertext.c:
5661 Changed getImageDescription to correctly call the
5662 binding for an attribute.
5664 * cspi/spi_selection.c:
5665 Changed getNSelectedChildren to correctly call the c
5666 binding for the attribute.
5667 Changed refSelectedChild to getSelectedChild.
5671 Changed getCaption to return an Accessible.
5672 Fixed calls which retrieve attributes.
5673 Changed refAt to getAccessibleAt.
5674 Changed getNSelectedRows and getNSelectedColumns to
5678 Changed getCharacterExtents and getPointAtOffset to accept an
5679 AccessibleCoordType.
5681 Changed calls which retrieve attributes.
5682 Changed refRunAttributes to getAttributes.
5687 * idl/Hyperlink.idl:
5688 Changed n_anchors attribute to nAnchors to keep naming
5689 convention consistent.
5692 Made Table inherit from Bonobo::Unknown.
5693 Added nSelectedColumns and nSelectedRows attributes.
5696 Made Value inherit from Bonobo::Unknown.
5698 * libspi/hyperlink.c:
5699 Change for nAnchors attributte name change.
5702 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5704 implementations-- made server implementations own AtkObject pointers
5705 rather than their respective AtkInterrface pointers to fix
5706 refcounting. AtkHyperlink is still broken.
5708 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5709 * cspi/spi_accessible.c:
5710 Added method Accessible_Role_getName(),
5711 and requisite string array (role_names).
5712 Added conversion string_from_corba_strin() call
5713 to Accessible_getName and _getDescription.
5714 * libspi/accessible.c:
5715 Added implementation for Accessible_getRole()
5717 Added festival support, used if environment variable
5720 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5722 * at-bridge/bridge.c:
5723 Now allocate Accessibility_Event using
5724 Accessibility_Event__alloc() instead of g_new0().
5725 * libspi/accessibleeventlistener.c:
5726 Initialize AccessibleEventListener->callbacks to NULL.
5727 Fixed accessible__event_listener_init() param, changed to
5728 "AccessibleEventListener *" type.
5729 Changed a bonobo_object_release_unref() call to
5730 Accessibility_Accessible_unref().
5731 * libspi/listener.c:
5732 Changed Bonobo_Unknown_unref to (equivalent)
5733 Accessibility_Accessible_unref.
5734 * libspi/registry.c:
5735 Changed bonobo_object_release_unref to
5736 Accessibility_Accessible_unref.
5738 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5741 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5742 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5743 spi-util.c spi-util.h
5744 Implementations for C bindings to remaining accessibility
5747 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5750 changed return value of Action from void to boolean to
5751 bring in line with ATK.
5754 Changed getText funcions to return "out" start and end offsets.
5755 Changed getAttributes to take and offset and return the start
5756 and end offset of the attribute run.
5757 Changed getOffsetAtPoint and getCharacterExtents to take an
5758 enum describing whether coordinates are window or screen.
5761 libspi/action.c libspi/action.h libspi/editabletext.c
5762 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5763 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5764 libspi/image.h libspi/selection.c libspi/selection.h
5765 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5766 libspi/value.c libspi/value.h
5767 Added server implementations for outstanding ATK interfaces
5768 not yet implemented.
5770 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5773 Added (missing) getName() method.
5774 Made nActions an attribute.
5775 * idl/EditableText.idl:
5776 Changed order of params in setAttributes.
5777 * idl/Hyperlink.idl:
5778 Removed getAnchor, added getURI.
5780 Changed attributes to methods, for efficiency
5781 (so that getting extents can be done in one call)
5782 * idl/Selection.idl:
5783 Changed nSelectedChildren to attribute, and re-indented.
5784 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5786 * idl/Text.idl: reformatted to match our coding style.
5787 (temporarily?) removed getRowColumnAtOffset().
5788 Changed text selection API to support multi-select and
5789 non-contiguous selections, as in ATK.
5790 * idl/Value.idl: changed some methods to attributes.
5792 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5794 * libspi/listener.c(impl_notify_event):
5795 BonoboUnkown_unref the source instead
5796 of bonobo_object_release_unref - the ORB
5797 handles the releasing.
5799 * configure.in: require ORBit-2.3.94 for
5802 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5804 Tagged CVS repository 'EA_1_0'.
5805 * README.EARLY_ACCESS:
5806 Alphabetized acknowledgements list, and
5808 Listed some known dependencies of at-spi.
5810 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5812 * docs/at-spi-docs.sgml:
5813 * docs/at-spi-sections.txt:
5814 * docs/at-spi-overrides.txt: (Added zero-length file)
5815 Documentation improvements - gtk-doc should build
5816 docs for all implemented C bindings now.
5819 * cspi/spi.c: (New file)
5820 * cspi/spi_event.c: (New file)
5821 * cspi/spi_registry.c: (New file)
5822 * cspi/spi_accessible.c: (New file)
5823 * cspi/spi_application.c: (New file)
5824 * cspi/spi_component.c: (New file)
5825 Split spi_main.c into six parts, and included them from
5826 "spi.c". This is a bit of a hack, probably temporary,
5827 but required by gtk-doc, apparently.
5829 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5832 * docs/at-spi-docs.sgml:
5833 * docs/at-spi-sections.txt:
5835 Initial checkins/modifications for gtk-doc generation.
5838 Added (missing) interface query methods to Accessible's C binding.
5840 Added GenericInterface type definition.
5842 Added query for AccessibleComponent interface to focus event handler.
5843 Added printout of bounding box for focussed component.
5844 * libspi/component.c:
5845 Added partial implementation for AccessibleComponent to C binding.
5846 * idl/Application.idl:
5847 * libspi/registry.c:
5848 * libspi/listener.c:
5849 * libspi/application.c:
5850 * libspi/application.h:
5851 Changed "ID" attribute type from string to long.
5853 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5857 Made method naming consistent: methods taking object args
5858 start with uppercase, other methods (except those using
5859 acronyms) start with lowercase. Underscores delimit between
5860 object names and method names:
5861 SPI_init() - uppercase since it starts with an acronym.
5862 getDesktopCount () - lowercase start since no object param0.
5863 Accessible_getName() - uppercase object type name, studlyCaps method
5867 Added gtk-doc documentation for all currently implemented
5868 methods in the C bindings API.
5870 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5872 * Makefile.am : changed build order to build test last.
5875 Changed "createEventListener" to "CreateEventListener".
5876 * libspi/accessibleeventlistener.c :
5877 Bugfix for addition of callbacks.
5878 * test/Makefile.am :
5879 * test/simple-at.c :
5880 Added new test that uses the C bindings API.
5882 * libspi/listener.c :
5883 * libspi/registry.c :
5884 * libspi/accessibleeventlistener.c :
5885 * at-bridge/bridge.c :
5886 Renamed member "target" of Accessibility_Event to "source",
5887 which is more descriptive.
5890 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5894 * cspi/Makefile.am :
5895 Added makefile support for at-spi/cspi directory.
5898 * cspi/spi-listener.h : (NEW FILE)
5899 Added support for/use of spi-listener.h.
5901 C bindings now build successfully, with no warnings.
5902 * libspi/accessibleeventlistener.h : (NEW FILE)
5903 * libspi/accessibleeventlistener.c : (NEW FILE)
5904 * libspi/Makefile.am :
5905 Added new object type "AccessibleEventListener"
5906 which inherits from Listener, and allows attachment
5907 of in-process callbacks (so that a client with a listening
5908 object instance can add functionality to the local
5909 implementation, dynamically).
5911 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5913 * libspi/accessible.c:
5914 Add implementation for get_index_in_parent().
5916 Added #include of "spi-roletypes.h", and
5917 added enumerated type AccessibleCoordType.
5918 Added definition for KeystrokeListener (function type).
5921 * cspi/spi-statetypes.h :
5922 * cspi/spi-roletypes.h :
5924 Added these headers, used by spi.h.
5926 Added code (NOTE: not yet built by make).
5928 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5930 * libspi/Makefile.am: generate imodule
5931 at the same time as other idl compiler
5934 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5935 * libspi/registry.c :
5936 * libspi/application.c :
5937 * idl/Application.idl :
5938 Made registration with toolkit an application method,
5939 which is required since each app has its own toolkit static
5940 environment. Thus the bridge must register for
5941 notification of toolkit events from each application in turn.
5942 Toolkit notifications are now successfully registered for, and
5943 sent to the listening at client.
5945 Changed toolkit event string to use hyphens rather than underscores.
5946 * libspi/listener.c :
5947 listner now gives more info in debug mode - it reports the
5948 name of the event received, as well as the name of the source.
5951 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5953 * libspi/registry.c :
5954 added more implementation for toolkit events.
5955 Fixed bug such that toolkit event registrations
5956 (via atk) use the whole event name string, not
5958 Removed a useless call to an ORBit_ method.
5959 * at-bridge/bridge.c :
5960 Removed unused local sbuf[] variable.
5962 We now register for Gtk:GtkWidget:button_press_event
5963 events as well as "focus:" events.
5965 Add some more API from Registry.idl that was missing,
5966 for keystroke listening, keystroke and mouse event
5967 synthesis, and enumeration of accessible desktops.
5969 2001-08-16 Michael Meeks <michael@ximian.com>
5971 * configure.in: use AM_GLIB_GNU_GETTEXT.
5973 * Makefile.am (SUBDIRS): kill intl.
5975 2001-08-15 Michael Meeks <michael@ximian.com>
5977 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5979 * configure.in: upd.
5981 * configure.in: depend on a recent bonobo-activation that
5982 will find our server files ...
5984 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5986 * libspi/accessible.c : accessible_new() :
5987 Now we add the Component interface via bonobo_object_add_interface,
5988 if the contained AtkObject implements AtkComponent.
5989 * libspi/accessible.h : now include "component.h"
5990 * libspi/component.h :
5991 * libspi/component.c : added files - implementation of
5992 bonobo wrapper object for Accessibility/Component
5993 * libspi/listener.c :
5994 Added test code to check for Accessibility/Component:1.0
5995 interface and report whether it is implemented by the
5997 * libspi/registry.c :
5998 Now we check for not only the hash of the whole event
5999 string before relaying the event, we also check the
6000 "minor" event string (without the detail string).
6001 This allows event listeners to be registered against
6002 all events of a certain major+minor type, or just
6003 against a specific major+minor+detail type.
6004 * libspi/accessible.c :
6005 Added implementations for Accessible:get_parent(),
6006 Accessible:getChildCount(), and Accessible:getChildAtIndex().
6007 * libspi/registry.c :
6008 * libspi/listener.c :
6009 Replaced calls to Accessibility_Accessible_ref() and
6010 Accessibility_Accessible_unref() with
6011 calls to bonobo_object_dup_ref() and
6012 bonobo_object_release_unref(), so that the CORBA object
6013 is dup-ed and released when relayed, as well as the bonobo object.
6015 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6017 * libspi/Makefile.am,
6018 registryd/Makefile.am,
6019 at-bridge/Makefile.am.
6020 test/Makefile.am, configure.in:
6021 reverse previous changes.
6023 * /idl/Image.idl: fix typo.
6025 * test/Makefile.am: put DEBUG_FLAGS
6028 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6030 * test/app.c: use argv[0] instead of
6033 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6035 * libspi/Makefile.am,
6036 registryd/Makefile.am,
6037 at-bridge/Makefile.am.
6038 test/Makefile.am, configure.in:
6039 cleanup, replace individual LIBS/CFLAGS with
6040 AT_COMMON_{LIBS|CFLAGS}.
6044 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6046 * configure.in, libspi/Makefile.am:
6047 Change IDL path checking for bonobo-activation
6050 2001-08-15 Bill Haneman <bill.haneman@sun.com>
6052 * registryd/registry.c : separated event listeners to use
6053 3 separate lists (focus, window, toolkit). Began testing
6054 event names against hashes before relaying events.
6055 * test/at.c : now register for events of type "focus:"
6056 * test/app.c : now generate events of type "focus:"
6057 * at-bridge/bridge.c : register with ATK for focus events,
6058 and we now relay those focus events to any "focus:" listeners.
6059 This now works with the bridge as a GTK_MODULE when running test/at.
6060 * libspi/registry.c :
6061 * libspi/listener.c :
6062 now we ref event sources before propagating, and unref on receipt.
6063 * libspi/registry.c :
6064 some changes to internal structs, to support event typestring hashes.
6065 * text/app.c : changed the way the appname is generated.
6066 * cspi : added directory that will hold the C bindings library for
6067 non-CORBA/bonobo-savvy clients.
6068 * cspi/spi.h : header file that contains the function prototypes for the C binding.
6069 * idl/Component.idl : added in parameter to indicate coord system for
6070 geometry-related calls.
6071 * idl/Hyperlink.idl : added readonly n_links attribute
6072 * idl/Image.idl : changed methods to attributes.
6074 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6076 * at-bridge/Makefile.am: link against
6077 ../libspi/libspi.la instead of -lspi.
6079 * at-spi/test/app.c: include
6080 bonobo-activation.h. Use a default appname
6081 if one is not provided.
6083 2001-08-14 Bill Haneman <bill.haneman@sun.com>
6085 * idl/Registry.idl : temporarily changed register_Application
6086 to oneway, to work around issue with initial registration
6088 * idl/Application.idl : changed attribute "id" from readonly
6089 to read-write, since it needs to be assigned by Registry.
6090 * registryd/registryd.c : added call to set application id
6092 * registryd/registry.c : changed de-registration procedure to
6093 use CORBA_Object_hash() to find matching object ref in application
6094 lists and listener lists.
6095 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
6096 began distinguishing between event types (work in progress).
6098 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6101 * libspi/application.c:
6102 Added implementations for get/set id, get_toolkitName,
6104 * registryd/registryd.c :
6108 Converted from use of OAF to bonobo-activation.
6109 * libspi/desktop.h :
6110 * libspi/desktop.c :
6112 Removed references to atksimpleobject, since base atkobject
6113 implementation now provides functionality we need.
6114 * libspi/atksimpleobject.c :
6115 * libspi/atksimpleobject.h :
6120 * at-bridge/Makefile.am
6121 * at-bridge/bridge.c
6124 Added directory "bridge" and contents, and added dependencies
6125 in Makefile.am/configure.in.
6126 Initial checkin of "at-bridge".
6127 This code is a GTK_MODULE which automatically registers
6128 GTK+ apps with the accessibility registry, using an object
6129 reference to the root ATK object.
6131 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6133 * po/Makefile.in.in: Remove. Again. If this
6134 doesn't get autogenerated - you need to update
6137 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6139 * po/Makefile.in.in: Add. Again.
6141 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6143 * libspi/accessible.c : added support for 'description' property.
6144 * libspi/accessible.c
6146 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6147 (since the two are now equivalent in libbonobo)
6155 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6156 Bonobo::Unknown as does Accessibility::Accessible.
6157 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6158 interface with Bonobo::Stream, since it was redundant with it.
6159 (The Stream returned by a StreamableContext object is expected to
6160 implement only a subset of Bonobo::Stream)
6162 2001-07-28 Anders Carlsson <andersca@gnome.org>
6164 * libspi/accessible.c (accessible_object_finalize): Change
6165 g_free to g_object_unref since the AtkObject is a GObject.
6167 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6169 * idl/Accessibility.idl: add new IDL files
6172 * idl/Action.idl: Definitions of actionable UI object
6173 * idl/Component.idl: Definitions of UI component geometry, etc.
6174 * idl/Hyperlink.idl: Defs of hyperlink behavior
6175 * idl/Image.idl: Def of accessible image
6176 * idl/Selection.idl: Definition of UI object with selectable children
6177 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6178 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6179 * idl/Text.idl: Interface defs for UI elements with complex textual content
6180 * idl/Value.idl: Definition of UI element that is a value controller or display
6182 2001-07-27 Michael Meeks <michael@ximian.com>
6184 * po/Makefile.in.in: remove autogenerated file from CVS.
6186 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6189 * idl/Registry.idl: include guard.
6191 * idl/Accessibility.idl: Add, and include all the other IDL
6194 * idl/*.idl: remove mass of pragmas etc.
6196 2001-07-26 Michael Meeks <michael@ximian.com>
6198 * registryd/Makefile.am (registryd_SOURCES): remove
6201 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6203 * libspi/.cvsignore, registryd/.cvsignore,
6204 test/.cvsignore: updated.
6206 * po/Makefile.in.in: gettext update.
6208 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6210 * initial CVS checkin
6212 2001-06-29 Michael Meeks <michael@ximian.com>
6214 * configure.in: add AM_CONFIG_HEADER to gen config.h