1 2003-07-01 Miloslav Trmac <mitr@volny.cz>
3 * configure.in: Addded "cs" to ALL_LINGUAS. Why is it commented out?
5 2003-07-01 Artur Flinta <aflinta@cvs.gnome.org>
7 * configure.in: Added "pl" to ALL_LINGUAS.
9 2003-07-01 Gil "Dolfin" Osher <dolfin@rpg.org.il>
11 * configure.in: Added "he" (Hebrew) to ALL_LINGUAS.
13 2003-06-30 Bill Haneman <bill.haneman@sun.com>
16 (get_action_from_servant):
17 Removed assertion that action is implemented on an AtkObject.
21 Aggregate AccessibleAction interface on the hyperlink object if
22 the object implements AtkAction. (This convention is used in
25 2003-06-30 Bill Haneman <bill.haneman@sun.com>
27 * configure.in: Revved to 1.3.5.
29 * registryd/Accessibility_Registry.server.in.in:
30 Marked up appropriate strings for translation.
32 * atk-bridge/bridge.c: Marked a couple of
33 user-visible warnings for translation. Questionable
34 whether they are really useful, but possibly so.
37 2003-06-28 Christian Rose <menthos@menthos.com>
39 * configure.in: Added "sv" to ALL_LINGUAS.
41 2003-06-26 Bill Haneman <bill.haneman@sun.com>
43 * registryd/registry.c:
44 (spi_registry_object_finalize): Unref the deviceeventcontroller.
45 (registry_defer_on_event): Defer focus: events, this is an
46 improvement to the patch for bug #108664.
48 * TODO: Update with 2.4/"Dev Complete" items.
50 2003-06-26 Padraig O'Briain <padraig.obriain@sun.com>
52 * atk-bridge/bridge.c:
53 (spi_atk_bridge_init_event_type_consts): Ensure that this function only
54 looks up signals once.
55 (atk_bridge_init): Call spi_atk_bridge_init_event_type_consts only
56 if doing registration.
57 (spi_atk_bridge_toplevel_added): Call spi_bridge_init_event_type_consts
58 when doing registration.
60 This fixes bug #115014.
62 2003-06-25 Padraig O'Briain <padraig.obriain@sun.com>
64 * atk-bridge/bridge.c:
65 (atk_bridge_init): Add signal handler for children-changed:remove on
66 root when in a BonoboComponent.
67 (spi_atk_bridge_toplevel_added): Call spi_atk_bridge_do_registration
68 for first toplevel only other incrememt variable toplevels.
69 (spi_atk_bridge_toplevel_removed): For last toplevel deregister
70 application and remove listeners.
71 (spi_atk_bridge_get-registry): Change NULL to CORBA_OBJECT_NIL for
73 (spi_atk_deregister_event_listeners): New function which removes
75 (reinit_register_vars): New fuction which reinitializes variables.
77 This fixes bug #111578.
79 2003-06-13 Bill Haneman <bill.haneman@sun.com>
81 * configure.in: version 1.3.4.
83 * cspi/spi_accessible.c:
84 Changed test of obj==NULL to obj==CORBA_OBJECT_NIL.
87 2003-06-13 Michael Meeks <michael@ximian.com>
89 * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
91 * cspi/spi_main.c (cspi_peek_ev): impl.
93 2003-06-11 Padraig O'Briain <padraig.obriain@sun.com>
95 * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
97 * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
99 * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role
100 SPI_ROLE_AUTOCOMPLETE
102 * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
104 * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
105 for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
107 2003-06-11 Bill Haneman <bill.haneman@sun.com>
109 * libspi/streamablecontent.h:
110 * libspi/streamablecontent.c:
111 New files, provide implementation/wrappers for
112 Accessibility_StreamableContent.
114 * cspi/spi_streamablecontent.c:
115 Connected the C wrappers to the libspi C bindings.
116 (AccessibleStreamableContent_close): New method.
119 (AccessibleStreamableContent_close): New method, needed
120 since we have an "open, [seek], read, close" model in cspi.
122 2003-06-11 Bill Haneman <bill.haneman@sun.com>
124 Fix for #108664; Padraig's revision of my original patch.
126 * registryd/registry.h:
127 Added event queue list, is_queuing, and exit_notify_timeout
128 to the registry struct.
130 * registryd/registry.c:
131 (registry_init): Initialize new struct from registry.h.
132 (impl_registry_notify_event):
133 Filter events before notifying, in case some need to be
135 (registry_filter_event): New,
136 we defer certain incoming events (for instance
137 window:deactivate) because we may wish to hide
138 or reject them based on pending events. This is
139 mostly a workaround for bug #108664.
140 (registry_queue_event, registry_start_queue): New.
141 (registry_defer_on_event): Test event to see if it
143 (registry_reset_on_event): Returns TRUE if the
144 event should cause a queue reset.
145 (registry_discard_on_event): Returns TRUE if the event
146 should cause the previous queue contents to be discarded.
147 (registry_timeout_flush_queue): Flushes the pending event
148 queue if no reset/discard-triggering events have come in
149 within the timeout period.
150 (registry_emit_event): New.
151 (registry_clone_notify_context): New, used when queueing the
152 event notify contexts.
154 2003-06-10 Bill Haneman <bill.haneman@sun.com>
156 * configure.in: Version revved to 1.3.2, lt 0.9.2
157 Incremented ATK required version to 1.3.4.
159 * cspi/spi_registry.c:
160 (SPI_generateKeyEvent):
161 We now pass the keystring along if it's non-null.
163 * registryd/deviceeventcontroller.c:
164 (keysym_mod_mask): New method, returns modifier mask
165 required to generate a keysym from a given keycode.
166 (dec_synth_keysym): New method.
167 (dec_synth_keystring): New method.
168 (dec_get_modifier_state): New method.
169 (dec_lock_modifiers): New
170 (dec_unlock_modifiers): New.
171 (dec_keysym_for_unichar): New, rather brute-force
172 conversion from UCS-4 to X KeySyms. Only works for
173 Latin at the moment, with partial implementations for
174 Greek, Hebrew, and (incomplete) Katakana.
175 (impl_generate_keyboard_event): Now implement
176 "KEYSTRING" synthesis and implement "KEYSYM"
178 (keycode_from_keysym): Improved, passes a returned
179 modmask value now if the corresponding param is non-NULL.
181 Fixes bugs #92143 and #109776.
184 * test/keysynth-test.c:
185 New test program for key synthesis, to confirm fixes for
189 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
191 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
193 * cspi/spi_accessible.c (cspi_init_relation_type_table):
194 Add line for RELATION_POPUP_FOR
196 * docs/reference/cspi/tmpl/spi_relation.sgml:
197 Add relation SPI_RELATION_POPUP_FOR
199 * docs/reference/cspi/tmpl/spi_stateset.sgml:
200 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
202 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
204 * libspi/relation.c (spi_init_relation_type_table):
205 Add line for RELATION_POPUP_FOR
207 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
209 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
210 there are still windows which have not been deleted and emit
211 window:deactivate, if necessary and window:destroy events.
212 This fixes bug #114370. The change on June 5th was not correct.
214 2003-06-09 Bill Haneman <bill.haneman@sun.com>
216 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
219 (SPI_dupString): Allow dup-ing of a string such that it's safe to
221 New methods for client exception handling and interception.
222 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
223 (SPI_exceptionHandlerPop): You guessed it...
224 (SPI_getSourceType): Return the type of object which offended.
225 (SPI_getExceptionCode): Return an enum code telling, possibly,
226 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
227 (SPIAccessibleException_getSource): get the source object for
228 exceptions that come from Accessibles, if SPIExceptionSourceType is
229 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
230 (SPIException_getDescription): New, returns a string description of
231 the problem. [Not yet a stable ABI, strings are not frozen]
233 * cspi/spi-private.h:
234 Added implementation details of opaque SPIException
238 Implementations of above. Also
239 (_cspi_exception_throw): new private method that
240 dispatches exceptions to handlers, called from cspi-bonobo.c
242 * cspi/bonobo/cspi-bonobo.c:
243 (cspi_check_ev): call _cspi_exception_throw.
244 Don't print a warning message if the exception has been
245 handled by _cspi_exception_throw.
247 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
249 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
250 there are still windows which have not been deleted and emit
251 window:deactivate, if necessary and window:destroy events.
252 This fixes bug #114370.
254 2003-06-03 Bill Haneman <bill.haneman@sun.com>
257 (cspi_accessible_is_a): Make non-fatal
258 if the object reference is dead.
260 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
262 * cspi/spi_main.c: #include <stdio.h>
263 * test/simple-at.c: ditto
264 * test/event-listener-test.c: ditto
265 * test/screen-review-test.c: ditto
267 2003-05-30 Michael Meeks <michael@ximian.com>
269 * test/test-simple.c (main): use CORBA_ORB_perform_work
270 instead of an unnecessary linc_ call.
272 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
274 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
275 Add SPI_STATE_INDETERMINATE.
277 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
280 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
282 * libspi/stateset.c (init_state_type_tables): Add support for
285 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
287 * configure: Update versions of atk and gail required.
288 This fixes bug #113268.
290 2003-05-02 Bill Haneman <bill.haneman@sun.com>
292 * configure.in: Revved micro version to 1.3.1 (because of build fix).
294 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
296 * libspi/Makefile.am:
297 Ensure headers are generated before being used by c sources.
299 2003-05-01 Bill Haneman <bill.haneman@sun.com>
302 Simplified lt versioning rules.
303 Incremented version to 1.3.0, to indicate that we're on the
306 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
308 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
309 Add MKDB_OPTIONS=--outtput-format=xml
311 * docs/reference/cspi/at-spi-cspi-docs.sgml
312 docs/reference/idl/at-spi-idl-docs.sgml:
313 Convert to Docbook XML.
315 This fixes bug #111793.
317 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
319 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
320 AcccessibleKeyEventType, AccessibleKeyMaskType.
322 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
324 * cspi/state-types.h: Add documentation for AccessibleState.
326 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
327 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
328 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
329 AccessibleComponentLayer.
331 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
334 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
336 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
337 Accessible. Add description of AccessibleEvent,
338 AccessibleEventListenerCB.
340 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
343 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
344 documentation. Add description of AccessibleKeystrokeListenerCB,
345 AccessibleKeyEventMask, AccessibleModifierMaskType,
346 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
347 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
349 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
352 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
355 This fixes bug #104730.
357 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
359 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
360 Set is_text field of Accessibility_DeviceEvent data structure.
362 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
363 is-text field of AccessibleDeviceEvent data structure.
365 This addresses part of bug #108666.
367 * registryd/devcieeventcontroller.c: Unset debug option.
369 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
372 (cpi_initial_relation_type_table): New function which initializes
373 mapping between Accessibility_RelationType and AccessibleRelationType.
374 (cspi_relation_type_from_spi_relation_type): New function which
375 translates an Accessibility_RelationType into an AccessibleRelationType.
376 (AccessibleRelation_getRelationType): Use
377 cpi_relation_type_get_spi_relation_type to return correct value.
378 (spi_state_to_corba): Return correct type for default case.
380 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
381 Use Accessibility_EventType instead of Accessibility_KeyEventType.
383 * cspi/cspi-bonobo-listener.c:
384 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
387 * libspi/accessible.c, libspi/action.c, libspi/application.c,
388 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
389 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
390 libspi/image.c, libspi/listener.c, libspi/selection.c,
391 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
392 registryd/desktop.c, registryd/registry.c:
393 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
395 * libspi/eventlistener.c
396 Remove semicolon after BONOBO_TYPE_FUNC.
399 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
400 (spi_init_relation_type_table): Initialize using correct type.
402 * registryd/desktop.c:
403 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
404 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
405 of Accessibility_KeyEventType.
407 * test/key-listener-test.c (report_tab_key_event): Use fprintf
410 * tests/simple-at.c, tests/screen-review-test.c:
411 Add include for <strings.h>.
413 * tests.stress-test.c:
414 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
416 These changes fix compiler warnings when using FORTE compiler on
417 Solaris; fixes bug #107479.
420 2003-04-10 Bill Haneman <bill.haneman@sun.com>
423 * configure.in: revved to 1.1.10
426 (SPI_KEYMASK_NUMLOCK): Added.
428 * registryd/deviceeventcontroller.c:
429 (spi_key_event_matches_listener): AND with a smaller
430 bitmask (as we should).
431 (spi_dec_translate_mask):
432 New method, sets the virtual NumLock modifier bit
433 if numlock is on. Eventually it can handle other virtual
434 modifier bits if needed, or other marshalling from
435 at-spi modifier masks to platform (X) masks.
436 (spi_dec_key_listener_new):
437 Call spi_dec_translate_mask to set up virtual mod bits
438 in the 'mask' field when creating a new listener struct.
439 (spi_dec_emit_modifier_event):
440 Set the virtual (i.e. NumLock) bits before emitting event.
441 (spi_controller_register_with_devices):
442 Query for the NumLock modifier 'physical' bit if Xkb is
443 present, for use in above methods.
447 2003-04-10 Bill Haneman <bill.haneman@sun.com>
449 * registryd/deviceeventcontroller.c:
450 (spi_keystroke_from_x_key_event):
451 Instead of checking to see if the keysym is
452 printable, check the string from XLookupString
453 if available, get the first unicode character from it,
454 and call g_unichar_isprint to determine whether the
455 is_text flag should be TRUE or FALSE.
459 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
461 * atk-bridge/bridge.c: Add support for extended events
462 * cspi/spi_event.c: Add documentation and implementation for
464 * tests/event-listener-test.c: Add tests for extended events.
466 This fixes bugs #100424 and #100426.
468 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
470 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
471 of LT_CURRENT. This fixes bug #89350.
473 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
475 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
476 number of signal parameter values before accessing them. This fixes
479 2003-04-01 Bill Haneman <bill.haneman@sun.com>
481 * configure.in: Fixed duplicate inclusion of -lspi.
482 * branched for gnome-2-2/HEAD.
483 [created tag "gnome-2-2"]
485 2003-03-07 Bill Haneman <bill.haneman@sun.com>
487 * configure.in: 1.1.9 release.
490 2003-03-07 Bill Haneman <bill.haneman@sun.com>
492 [needed by GOK, to fix bugs 107985 and 107988]
493 * registryd/deviceeventcontroller.c:
494 (spi_dec_clear_unlatch_pending):
495 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
496 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
497 (spi_dec_init_mouse_listener):Emit warning if mouse button
499 (spi_device_event_controller_forward_mouse_event):
500 Removed unnecessary parens from a conditional.
501 (global_filter_fn):Added TODO comment.
502 (impl_generate_keyboard_event):
503 Cancel a pending relatch if a 'delatching' key was
506 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
508 * atk-bridge/bridge.c:
509 Change atk_signal_child_changed to atk_signal_children_changed.
510 Reorganize code in spi_atk_bridge_signal_listener().
512 * test/event-listener-test.c:
513 Add children_changed_listener and report_children_changed_event()
514 to test AccessibleChildEvent_getChildAccessible.
516 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
518 * cspi/spi_event.c (cspi_internal_event_get_text): Change
519 g_strdup to CORBA_String_dup (bug #105291)
521 * test/event-listener-test.c (report_text_event): Add call to
524 2003-02-28 Bill Haneman <bill.haneman@sun.com>
526 * registryd/deviceeventcontroller.c:
527 (spi_keystroke_from_x_key_event):
528 Fix string and keysym return codes to match modifier state.
531 2003-02-28 Bill Haneman <bill.haneman@sun.com>
533 * registryd/deviceeventcontroller.c:
534 (spi_keystroke_from_x_key_event):
535 Fix segv due to improper use of isprint(c). [bug #107254]
537 2003-02-24 Bill Haneman <bill.haneman@sun.com>
540 (get_accessible_text_boundary_type):
541 Move default return value to (new) default case in switch.
542 (get_accessible_text_clip_type):
543 Move default return value to (new) default case in switch.
545 * libspi/application.c:
546 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
547 Remove unused methods.
548 (impl_accessibility_application_register_object_event_listener):
549 Remove unused methods.
552 Added #include of <math.h>.
554 * registryd/deviceeventcontroller.c:
555 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
556 we don't currently use this method.
557 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
559 (impl_generate_key_event):
560 Remove unused variables.
561 (impl_generate_mouse_event):
562 Initialize button to zero, just in case we get an invalid
563 input. Added support for mouse buttons 4 and 5.
564 (spi_device_event_controller_new):
565 Removed unused variable declaration for 'private'.
567 Added #include of <gdk/gdk.h>
569 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
571 * configure.in: Update to work when X is not installed in expected
572 location. Fixes bug #105836.
574 * atk-bridge/bridge.c
575 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
577 (spi_atk_register_event_listener): Add signal listener for
579 (spi_atk_bridge_signal_listener): Event event when link-selected
580 signal is emitted. (bug #104622)
582 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
583 on returned string. (bug #105291)
585 * test/event-listener-test.c: Add test for link-selected.
587 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
589 * atk-bridge/Makefile.am: Correct typo in previous commit.
591 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
593 * atk-bridge/Makefile.am: Allow for build directory to be different
594 from source directory
596 * registryd/Makefile.am: Allow for build directory to be different
597 from source directory
601 2003-01-29 Bill Haneman <bill.haneman@sun.com>
604 Fixed dependencies for libcspi so that libspi gets pulled in
605 properly. Fixes 104741.
609 Clean up inline docs a little.
611 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
613 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
614 This is done by implementing AtkComponent for SpiAtkDesktop, which is
615 the AtkObject within an SpiDesktop.
616 This addresses bug #101524.
618 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
619 Remove call to gdk_init().
621 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
622 so that Display is set when SpiDesktop is created.
624 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
626 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
627 This fixes bug #102830.
629 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
631 * test/test-simple.c: Update to take account of fact that GailButton
632 now implements AtkText.
633 (create_text_window): Set name on AtkObject for GtkEntry.
634 (validate_accessible): Check accessible name before calling test_text().
636 * libspi/Makefile.am: Fix problem with building outside of source
637 directory. Bug #98120.
639 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
640 typo in documentation comments. Bug #94275.
642 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
644 * libspi/text.c (impl_getBoundedRanges): Bug fix.
646 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
649 Add includes to avoid compiler warnings on Solaris.
650 (impl_getRangeExtents): Bug fix.
652 2002-12-17 Bill Haneman <bill.haneman@sun.com>
654 Fix for 100944, [API addition approved by Gman and murrayc].
661 * idl/Accessibility_Text.idl:
662 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
663 (Text::getRangeExtents): New method for efficient
664 bounds query of a text range.
665 (Text::getBoundedRanges): New method for efficient
666 clipping of text to bounding boxes.
667 (unImplemented7, unImplemented8):
668 Removed these padding methods to preserve bincompat.
671 (impl_getRangeExtents): implementation of new IDL.
672 (impl_getBoundedRanges): implementation of new IDL.
673 (SpiTextRect): Internal use struct.
674 (_spi_text_rect_union): internal method, calculates union of two
675 SpiTextRect bounding rects.
676 (_spi_text_range_seq_from_gslist): internal method, allows us
677 to build our sequence efficiently as a gslist then convert it
679 (_spi_bounds_contain): internal method, determines whether
680 a text character is "in" or "out" of a clip rect according to
681 values of TEXT_CLIP_TYPE.
682 (spi_text_class_init): Initialize the new methods in the epv.
685 (AccessibleTextClipType): New enum used by screen review api.
686 (AccessibleTextRange): New struct used by screen review api.
687 (AccessibleText_getRangeExtents):
688 cspi binding for Accessibility_Text_getRangeExtents.
689 (AccessibleText_getBoundedRanges):
690 cspi binding for Accessibility_Text_getBoundedRanges.
691 (AccessibleTextRange_freeRanges): convenience method.
694 (AccessibleText_getRangeExtents):
695 cspi binding for Accessibility_Text_getRangeExtents.
696 (AccessibleText_getBoundedRanges):
697 cspi binding for Accessibility_Text_getBoundedRanges.
698 (AccessibleTextRange_freeRanges): convenience method.
699 (get_accessible_text_clip_type): internal conversion method.
700 (get_accessible_text_ranges_from_range_seq): internal conversion method.
702 * registryd/deviceeventcontroller.c:
703 (spi_dec_mouse_check):
704 Improved behavior for mouse:abs events
705 [same granularity as mouse:rel events, and no
706 events when mouse is idle].
708 2002-12-16 Michael Meeks <michael@ximian.com>
710 * cspi/spi_accessible.c (spi_state_to_corba): rename.
712 * libspi/stateset.c (state_spi_to_atk): split out
713 ( fix several remote array bounds nasties )
714 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
715 (impl_remove): make safe from array bounds issues.
716 (spi_atk_state_from_spi_state): impl.
718 * libspi/stateset.h (spi_state_set_cache_is_empty):
719 add a set of wrapper defines to get layering right.
721 * cspi/spi_accessible.c: update state set stuff to
724 2002-12-14 Michael Meeks <michael@ximian.com>
726 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
727 to avoid 2 roundtrips to the registry per key event
728 (spi_atk_bridge_key_listener): upd.
729 (deregister_application): release the dec.
731 * registryd/registry.c (notify_listeners_cb):
732 bin lots of re-enterant complexity - we no longer
733 do a round-trip bonobo ref here, ensure that a single
734 listener's exception failure won't poison all other
736 (impl_registry_notify_event): bin obvious memory leak.
738 2002-12-13 Michael Meeks <michael@ximian.com>
740 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
741 init the ev so the error is meaningful.
742 (spi_atk_bridge_key_listener): ditto.
744 * cspi/spi_main.c (cspi_ev): init the ev so we start
745 with a clean slate, otherwise the first exception
748 * cspi/spi_text.c (get_accessible_text_boundary_type):
749 add a fallthrough for no warnings.
751 * cspi/spi_registry.c: prune unused warnings.
753 * cspi/spi_main.c (cspi_object_take): fix
754 mind-blowing brokenness ( by watching the compile
757 * cspi/spi_accessible.c (Accessible_getStateSet):
758 re-impl. to use an AtkStateSet.
759 (spi_state_type_from_accessible_state),
760 (init_state_table): bin these.
762 * libspi/stateset.c (spi_atk_state_set_from_sequence):
764 (atk_state_set_from_accessibility_state_set): here.
766 * cspi/spi_accessible.c (spi_state_to_atk): impl.
767 (AccessibleStateSet_contains, AccessibleStateSet_ref),
768 (AccessibleStateSet_unref, AccessibleStateSet_contains),
769 (AccessibleStateSet_add, AccessibleStateSet_remove),
770 (AccessibleStateSet_equals, AccessibleStateSet_compare),
771 (AccessibleStateSet_isEmpty): re-write to use a local
774 2002-12-13 Bill Haneman <bill.haneman@sun.com>
776 * configure.in: Revved to 1.1.7 (new keymask vals).
778 2002-12-10 Bill Haneman <bill.haneman@sun.com>
781 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
783 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
786 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
787 to compare two CORBA_TypeCodes.
788 (cspi_internal_event_add): Silence warning from FORTE compiler.
790 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
791 avoid implicit declaration of functions.
793 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
795 * atk-bridge/bridge.c:
796 (spi_atk_bridge_init_event_type_consts): Store signal id for
797 active-descendant-changed signal.
798 (spi_atk_register_event_listeners): Add signal listener for
799 active-descendant-changed signal,
800 (spi_atk_bridge_signal_listener): Move code in function
801 spi_atk-signal_emit_event() into this function.
802 Add support for active-descendant-changed
803 Update support for child-changed signal.
804 (spi_bridge_window_event_listener): Silence warning.
806 * libspi/spi_private.[ch]:
807 (spi_init_any_object): Change second parameter from CORBA_Object to
809 Omit call to CORBA_Object_duplicate().
810 Set CORBA_any's _value to CORBA_Object*.
812 2002-12-06 Bill Haneman <bill.haneman@sun.com>
818 (AccessibleEvent_ref, AccessibleEvent_unref):
819 New methods, for persisting an event outside the emission context.
820 Must be used if the new accessor methods are to be called
821 outside of the event listener's callback.
823 * cspi/bonobo/cspi-bonobo.c:
824 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
825 as second parameter instead of NULL, so we can call
826 cspi_check_ev afterwards.
829 (cspi_object_take): New internal method,
830 converts a CORBA_Object reference to a hard ref on
831 an Accessible if possible, returning NULL if the object
832 reference is invalid or an Accessible * otherwise.
835 (AccessibleEvent_ref):
836 Increment the event's internal private refcount, and
837 add the event's internal struct to an internal cache
838 if it's not already there.
839 (AccessibleEvent_unref):
840 Decrement the event's refcount and remove it from
841 the cspi event cache if refcount==0.
842 (cspi_event_compare): New private method.
843 Compares two event structs via their ids. Used
845 (cspi_internal_event_lookup): New private method.
846 (cspi_internal_event_check): New private method,
847 a 0-order sanity check for events to make sure their
848 private data is intact.
849 (cspi_internal_event_add, cspi_internal_event_remove):
850 New private methods for managiing the event cache.
852 * cspi/bonobo/cspi-bonobo-listener.c:
854 Initialize the new private data elements (id, magic, ref_count).
856 * atk-bridge/bridge.c:
857 (spi_atk_bridge_signal_listener):
858 Fixed bug #100530, passing wrong params to emission func.
860 * registryd/deviceeventcontroller.c:
861 (spi_dec_button_update_and_emit):
862 Fixed type in mask bit operations; fix for #99799.
864 2002-12-02 Bill Haneman <bill.haneman@sun.com>
866 Removed some of the more dangerous workarounds from
867 previous commit; they are only needed by GOK, which
868 in reality should be using another method to accomplish
869 the goals. So on reconsideration some of the workarounds
872 * registryd/deviceeventcontroller.c:
873 (spi_keycodes_contain, spi_dec_init_keycode_list):
874 Removed these methods, used only by a nasty hack to try
875 and detect whether a key synthesis should be allowed
876 to reset the XKB latch state or not. This code was only
877 required to work around an interaction between GOK,
878 button events, and XKB.
879 (impl_generate_key_event):
880 Removed hack at end of key generation that tried to
881 "do the right thing" if XKB latch keys were generated
882 in the midst of button press/release pairs.
885 Added a check for HAVE_XINPUT. Not normally used yet.
887 2002-11-25 Bill Haneman <bill.haneman@sun.com>
889 Workarounds and fixes for mouse event/XKB interaction.
891 * registryd/deviceeventcontroller.c:
892 (spi_keycodes_contain, spi_dec_init_keycode_list):
893 New internal methods.
894 (spi_dec_set_unlatch_pending):
895 Split the method that tells XKB to expect an
896 unlatch (and revert it) out of the rest of the
897 event handling code. This method is called by the
898 two mouse event handlers (the poll and the filter).
899 (spi_dec_update_and_emit, spi_dec_mouse_check):
900 New methods split from spi_dec_poll_mouse_moved.
901 The second one is now called from inside the filterFn
902 when an XKB delatch event is received, to determine
903 whether to revert the delatch or not.
904 (spi_poll_mouse_moved): Refactor; also we can now
905 properly handle the case where multiple button states
906 have changed between polling cycles and we didn't get
907 notified due to another client's grab.
909 Synchronize the server while handling an XKB notification.
910 Ugly, but apparently necessary to avoid nasty races.
911 Check the mouse state on receipt of an XKB latch change,
912 to decide whether to revert the latch or not. (Latches are
913 reverted if there is an immediately preceding mouse button
914 event that a client has consumed, in which case we don't want
915 the user to see the side-effect of the event).
916 (spi_device_event_controller_forward_mouse_event):
917 Check for modifier events and fire before resetting mouse_mask_state,
918 prevents losing modifier events.
920 (impl_generate_keyboard_event):
921 If we've just generated a keyboard event for a non-shift key,
922 we don't want to revert the pending XKB latch.
923 Otherwise, check the modifier state (via a call to
924 spi_dev_mouse_check) and set the relatch mask to
925 that state before returning.
927 2002-11-24 Bill Haneman <bill.haneman@sun.com>
930 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
933 * atk-bridge/bridge.c:
934 (spi_atk_register_event_listeners):
935 Don't re-register for ATK events if the registry has died
936 and the app needs to re-register; the ATK listeners are in
937 process and doing so will cause duplicate emission.
939 * registryd/deviceeventcontroller.c:
940 (spi_poll_mouse_moved):
941 Reformat the source, detect and emit multiple button-change
942 events (i.e. if multiple buttons have changed between poll
944 Add code to detect mouse-down events even when the pointer
945 is grabbed; workaround for GOK bug 98420.
946 (spi_controller_register_with_devices):
947 Call XTestGrabControl with 'impervious' flag set to True,
948 allows us to synthesize events and query the pointer even during
949 an active grab by another client.
950 (spi_device_event_controller_forward_mouse_event):
951 Set the mouse_mask_state to the mouse_button_state from
952 the intercepted event, to synchronize the grab listener with
955 2002-11-20 Bill Haneman <bill.haneman@sun.com>
957 * cspi/spi_accessible.c:
958 (AccessibleRole_getName):
959 Added necessary strings for making this (deprecated)
960 method work with the new role types.
961 (init_role_table, role_table):
962 Added definition of SPI_ROLE_APPLICATION.
964 * libspi/spi-roletypes.h:
965 Added SPI_ROLE_APPLICATION.
967 * idl/Accessibility_Role.idl:
968 Added ROLE_APPLICATION.
970 * docs/reference/cspi/at-spi-cspi-decl.txt:
971 Added SPI_ROLE_APPLICATION to docs.
973 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
975 * cspi/spi_accessible.c
976 (cspi_init_role_table): Do not write beyond end of role_table.
977 (Accessible_getRole): Use correct type for value returned by
978 Accessibility_Accessible_getRole().
980 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
981 beyond end of role_table. (This fixes bug #98269)
983 * libspi/application.c: Add include file spi-private.h for
984 definition of spi_init_any_nil.
986 2002-11-19 Bill Haneman <bill.haneman@sun.com>
990 * libspi/spi-private.h:
991 Added DGB() macro, and extern int _dbg declaration.
993 * registryd/registry.c:
994 (definitions) storage for _dbg.
996 Get environment variable "AT_SPI_DEBUG".
997 (spi_registry_set_debug):
998 New method, to initialize _dbg value.
999 (spi_listener_struct_new, spi_registry_object_finalize):
1000 (notify_listeners_cb):
1001 Changed fprintfs to use DBG and g_warning().
1003 * registryd/deviceeventcontroller.c:
1004 (_deregister_keygrab, spi_controller_register_device_listener):
1005 Changed debug/warning messages to use DBG macro.
1007 * libspi/listener.c:
1008 (impl_notify_event):
1009 Changed warning messages to use DBG macro and g_warning().
1011 * atk-bridge/bridge.c:
1012 (atk_bridge_init, spi_atk_bridge_get_registry):
1013 (spi_atk_bridge_exit_func):
1014 (spi_atk_bridge_property_event_listener):
1015 Changed status, warning, and error messages to use
1016 g_warning, g_message, and DBG macros.
1019 Read the state of the AT_SPI_DEBUG environment variable
1020 and set a local '_dbg' accordingly.
1022 2002-11-19 Bill Haneman <bill.haneman@sun.com>
1024 FIXES for 98836, 98842, other bugs.
1027 Revved to 1.1.4, interface-age=4, binary-age=4.
1029 * registryd/deviceeventcontroller.c:
1031 Fixed crasher bug in last_mouse_pos initialization.
1033 * registryd/registry.c:
1034 (desktop_add_application, desktop_remove_application):
1035 Added (and then commented out) some support for
1036 object context marshalling. [TODO]
1038 * atk-bridge/bridge.c:
1039 (spi_atk_bridge_event_context_create):
1040 Commented out object context creation until it can
1041 be properly tested and debugged.
1043 * registryd/registry.c:
1044 (impl_registry_notify_event):
1045 Fixed crasher bug, we were calling
1046 spi_re_entrant_list_foreach () with an empty list.
1048 2002-11-18 Bill Haneman <bill.haneman@sun.com>
1050 * idl/Accessibility_Action.idl:
1051 * idl/Accessibility_Component.idl:
1052 * idl/Accessibility_Desktop.idl:
1053 * idl/Accessibility_Event.idl:
1054 * idl/Accessibility_Hyperlink.idl:
1055 * idl/Accessibility_Image.idl:
1056 * idl/Accessibility_Relation.idl:
1057 * idl/Accessibility_Selection.idl:
1058 * idl/Accessibility_State.idl:
1059 * idl/Accessibility_Value.idl:
1060 Updated unimplemented slot count to minimum of
1061 four for all interfaces, for ABI freeze.
1063 * idl/Accessibility_EditableText.idl:
1064 * idl/Accessibility_Text.idl:
1065 Updated unimplemented slot count to six
1068 * idl/Accessibility_Registry.idl:
1069 Updated unimplemented slot count to six
1070 (also for DeviceEventController),
1073 * idl/Accessibility_Table.idl:
1074 Updated unimplemented slot count to eight,
1077 * idl/Accessibility_Event.idl:
1078 Added CORBA_any "any_data" member to Event struct.
1080 * idl/Accessibility_Event.idl:
1081 Added CORBA_any "any_data" member to Event struct.
1083 * atk-bridge/bridge.c:
1085 atk_signal_text_changed, atk_signal_child_changed,
1086 signal ids queried from gtype system.
1087 (AtkBridgeEventContextType): New enum.
1088 (AtkBridgeEventContextData): New struct.
1089 (AtkBridgeEventContext): New struct.
1090 (atk_bridge_init_event_type_consts):
1091 New method, initializes type contants for comparison
1092 prior to emit_eventv.
1093 (atk_bridge_event_context_init): New method,
1094 initializes a CORBA_any from an AtkBridgeEventContext.
1095 (atk_bridge_focus_tracker): Call spi_init_any_nil to
1096 initialize the event.any_data struct.
1097 (spi_atk_bridge_event_context_create): New method,
1098 creates an AtkBridgeEventContext from signal/event info.
1099 (spi_atk_bridge_event_context_free): New method.
1100 (spi_atk_emit_eventv): Changed to take an
1101 AtkBridgeEventContext parameter. We now initialize
1102 the event.any_data member prior to notifying the
1103 Registry, via the AtkBridgeEventContext.
1104 (spi_atk_bridge_property_event_listener):
1105 (spi_atk_bridge_state_event_listener):
1106 Match emit_eventv signature.
1107 (spi_atk_bridge_object_event_listener):
1108 Match emit_eventv signature, and create an
1109 event context from the event details.
1110 Free the event context afterwards.
1111 (spi_atk_bridge_window_event_listener):
1112 Create an event context, pass it to the
1116 (AccessibleEvent_getContextString):
1117 (AccessibleEvent_getContextObject):
1118 New methods, allow query of AccessibleEvent objects
1119 for more context details (via the "any_data" member
1120 of the Event struct, above).
1123 Definitions for AccessibleEvent_getContextString
1124 and AccessibleEvent_getContextObject.
1126 * cspi/spi_listener.h:
1127 (InternalEvent): New struct.
1130 (AccessibleEvent_getContextString):
1131 (AccessibleEvent_getContextObject):
1132 Implementations of new methods, for obtaining
1133 additional context information from some event types.
1135 * cspi/spi_registry.c:
1136 (SPI_registerGlobalEventListener):
1137 Added mention of active-descendant-changed event in docs.
1139 * cspi/cspi-bonobo-listener.c:
1141 Marshal the any into the AccessibleEvent via
1144 * libspi/spi-private.h:
1145 #include <orbit/orbit.h>
1147 (spi_init_any_string):
1148 (spi_init_any_object):
1149 New convenience function declarations.
1153 (spi_init_any_string):
1154 (spi_init_any_object):
1155 New convenience function implementations.
1157 * registryd/deviceeventcontroller.c:
1158 (spi_poll_dec_mouse_moved):
1159 (spi_device_event_controller_forward_mous_event):
1160 Initialize any_data member of event.
1161 (spi_deregister_controller_device_listener):
1162 Fix incorrect param pass which was preventing deregistration.
1164 * registryd/registry.c:
1165 (desktop_add_application):
1166 (desktop_remove_application):
1167 Add object data to event's any_data before dispatch.
1169 Fix for error messages from GAIL.
1171 * test/event-listener-test.c:
1172 Test new ContextString and "any_data" API:
1173 (report_text_event): New method query and output context string.
1174 (main): register a new text listener with report_text_event
1177 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1179 Fixes for bugs 98127 and 97914.
1180 * cspi/spi-roletypes.h:
1181 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1183 * cspi/spi-statetypes.h:
1184 Added SPI_STATE_MANAGES_DESCENDANTS
1186 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1187 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1188 * cspi/spi_accessible.c:
1189 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1190 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1191 Accessibility_STATE_MANAGES_DESCENDANTS
1192 * libspi/accessible.c:
1193 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1194 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1195 As requested by Bill, I also cleaned up the alignment.
1196 * libspi/relation.c:
1197 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1198 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1199 * libspi/stateset.c:
1200 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1201 Accessibility_STATE_MANAGES_DESCENDANTS
1202 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1203 Document changes reflecting modifications to roles.
1204 * docs/reference/cspi/tmpl/spi_relation.sgml:
1205 Document changes reflecting modifications to relations.
1206 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1207 Document changes reflecting modifications to states.
1209 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1212 Revved to 1.1.3, interface-age=3, binary-age=3.
1213 Added REBUILD macro.
1216 Removed accessx-gui from the tests, since we have a nice
1217 keyboard accessibility capplet now :-)
1219 * test/keysynth-demo.c:
1220 (increment_scan): removed do-nothing default: case,
1223 * test/visual-bell.c:
1224 (main) : removed do-nothing default: case,
1227 * cspi/spi_action.c:
1228 (AccessibleAction_getKeyBinding_):
1229 Documented keybinding string format.
1233 (AccessibleText_getAttributes):
1234 Documented the text attribute string format.
1235 It's changed to use semicolon delimiters also,
1236 to prevent clashes with CSS attributes, but the old
1237 trick of looking for ", " strings will still work
1238 (as unreliably as ever). Fix for bug related to 97916.
1241 Include <cspi/bonobo/cspi-bonobo-listener.h>
1242 Fixes build warning.
1243 (SPI_freeAccessibleKeySet):
1244 (AccessibleKeystrokeListener_addCallback):
1245 (AccessibleKeystrokeListener_removeCallback):
1246 Modify to use AccessibleDeviceListener API internally,
1247 instead of AccessibleKeystrokeListener.
1249 * idl/Accessibility_Event.idl:
1250 Added two more empty slots to EventListener (for a total of four).
1252 * idl/Accessibility_Accessible.idl:
1253 Added four empty slots to Accessible interface.
1255 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1257 * idl/Accessibility_Registry.idl:
1258 (KeyEventType, EventType):
1259 Marked KeyEventType as deprecated; it duplicates
1260 functionality of EventType, which has been extended to
1261 include Mouse-button events.
1262 (KeyEventTypeSeq): defined in terms of EventType.
1263 (registerDeviceEventListener, deregisterDeviceEventListener):
1264 New methods, for managing listeners to device events,
1265 which potentially may consume them.
1268 Added definition for AccessibleDeviceListener.
1270 * cspi/spi-listener.h:
1271 (enum AccessibleDeviceEventType):
1272 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1273 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1274 for backwards compat.
1275 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1276 and typedef'd AccessibleKeystroke to it for back-compat.
1277 (AccessibleDeviceListenerCB):
1278 New function prototype typedef.
1281 (AccessibleDeviceEventMask): New typedef.
1282 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1283 (AccessibleKeyMaskType):
1284 Set equivalent to AccessibleModifierMaskType for back-compat.
1285 (SPI_createAccessibleKeystrokeListener):
1286 (AccessibleKeystrokeListener_unref):
1287 Deprecated in favor of equivalent (better-named) new API below..
1288 keystroke listeners are like all device listeners.
1289 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1290 New API names for old features :-).
1291 (AccessibleDeviceListener_addCallback):
1292 (AccessibleDeviceListener_removeCallback):
1293 (SPI_registerDeviceEventListener):
1294 (SPI_deregisterDeviceEventListener):
1298 (SPI_createAccessibleKeystrokeListener):
1299 Use new preferred API, cspi_device_listener_new() and
1300 cspi_device_listener_add_cb().
1301 (AccessibleKeystrokeListener_removeCallback):
1302 Use new preferred API, cspi_device_listener_remove_cb().
1303 (AccessibleKeystrokeListener_unref):
1304 Use new preferred API, cspi_device_listener_unref().
1305 (SPI_createAccessibleDeviceListener):
1306 (AccessibleDeviceListener_addCallback):
1307 (AccessibleDeviceListener_removeCallback):
1308 Implementation of new API.
1310 * cspi/spi_registry.c:
1311 (SPI_registerDeviceEventListener):
1312 (SPI_deregisterDeviceEventListener):
1313 Implementation of new API. Fixed memory leak and removed need to
1314 allocate EventTypeSeq (thanks Michael for catching this).
1315 Squashed a wayward CORBA_exception_free that shouldn't get called.
1317 * cspi/bonobo/cspi-bonobo-listener.c:
1319 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1320 (cspi_key_event): renamed to cspi_device_event().
1321 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1322 Extended to handle mouse button events as well as key events.
1323 (CSpiKeystrokeListener):
1324 Class superceded by CSpiDeviceListener.
1325 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1326 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1328 * cspi/bonobo/cspi-bonobo-listener.h:
1329 (CSpiKeystrokeListener):
1330 Class superceded by CSpiDeviceListener.
1331 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1332 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1334 * libspi/Makefile.am:
1335 Replaced keystrokelistener.h and keystrokelistener.c
1336 with devicelistener.h and devicelistener.c; keystrokelisener.h
1337 stub retained for back-compat.
1339 * libspi/keystrokelistener.c:
1343 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1345 * registryd/deviceeventcontroller.c:
1346 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1347 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1348 (DEControllerPrivateData): Added xkb settings data.
1349 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1350 button release events (which can't be captured via XGrabButton).
1351 Don't dispatch via the 'normal' event mechanism if the device event was
1353 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1354 Handle the typeseq data in its new location (see above).
1355 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1356 New methods, for "generic" device listeners.
1357 (spi_controller_register_device_listener):
1358 Now handle mouse event listeners as well as key listeners.
1359 (spi_controller_notify_mouselisteners):
1360 New internal method.
1361 (spi_device_event_controller_forward_mouse_event):
1362 Now we notify mouse device listeners as well as generating the
1363 non-consumable "mouse:" events.
1365 We must check and restore the XKB
1366 modifier map if we consume the event, since the act of triggering
1367 a mouse event will normally reset the XKB latch. This is required for
1369 (spi_controller_register_with_devices):
1370 Load the XKB settings when registering, and register for XKB
1371 state notify events.
1372 (spi_key_eventtype_seq_contains_event):
1373 Renamed spi_eventtype_seq_contains_event, since it's used
1374 internally for all device event types now.
1375 (spi_key_event_matches_listener):
1376 Uses spi_eventtype_seq_contains_event now.
1377 (spi_device_event_controller_object_finalize):
1378 Free the private data and the XkbKeyboard struct.
1379 (impl_register_device_listener, impl_deregister_device_listener):
1380 Implementation of new IDL.
1381 (spi_deregister_controller_device_listener):
1382 New internal method.
1383 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1384 More efficient implementation, we don't have to create a new
1385 XkbControls structure every time we query.
1386 (spi_device_event_controller_class_init):
1387 Initialize the epv entries for the new IDL. Assign the
1388 "spi-dec-private" quark.
1389 (spi_device_event_controller_init):
1390 Initialize the private data.
1391 (spi_device_event_controller_forward_key_event):
1392 Removed a bogus CORBA_exception_free() call.
1394 * registryd/deviceeventcontroller.h:
1395 Replaced inclusion of keystrokelistener.h with
1398 * test/event-listener-test.c:
1399 (report_mouse_event):
1402 Added mouse-event device listener.
1404 * test/test-simple.c:
1405 (create_test_window):
1406 Fixed regression (we were instantiating a GtkRange,
1407 which is now an abstract class). Also fixed to match
1408 existing AtkRole names, this seems to have changed in ATK
1409 awhile ago; too late now I think, and the new
1410 mechanism is at least elegant and consistent with the
1411 glib enum "nick" APIs.
1413 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1415 * idl/Accessibility_Relation.idl:
1416 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1417 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1418 * idl/Accessibility_Role.idl:
1419 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1420 * idl/Accessibility_State.idl:
1421 add STATE_MANAGES_DESCENDANTS
1422 * test/event-listener-test.c:
1423 Added a listener for active-descendant events.
1425 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1427 * atk-bridge/bridge.c
1428 (atk_bridge_init): If application is Bonobo component wait until top
1429 level is added before registering
1430 (spi_atk_bridge_do_registration): New function which contains code,
1431 formerly in atk_bridge_init, to do application registration.
1432 (spi_atk_bridge_toplevel_added): Signal called when top level
1433 added to Bonobo component
1435 This fixes bug #83134.
1437 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1439 * registryd/deviceeventcontroller.c
1440 Fixed compilation error caused by calling gettimeofday()
1443 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1448 Added template for HAVE_XKB.
1451 Changes to check for XKB, and to set the HAVE_XKB #define if it
1454 * libspi/listener.c:
1455 ()impl_notify_event): Make failure to get event source name
1458 * registryd/deviceeventcontroller.c:
1459 (#include): include X11/XKBlib.h.
1460 (DEControllerPrivateData) : New struct.
1461 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1463 (dec_synth_keycode_press) (dec_synth_keycode_release):
1464 New methods; split the key synthesis code into these methods.
1465 They check XKB settings before determining the "time" values to
1466 pass to Xtest; this fixes bug #95828.
1467 (impl_generate_keyboard_event): Changed to use methods above,
1468 instead of callng Xtest directly.
1469 (spi_device_event_controller_init): Initialize new privae struct s
1471 (spi_device_event_controllr_object_finalize):
1472 Free the (new) private data.
1474 * registryd/deviceeventcontroller.h:
1475 Add new gpointer to end of struct data.
1477 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1480 Incremented revision to 1.1.2, SONAME is still '.so', library
1481 extensions are ".so.0.0.2".
1483 * registryd/deviceeventcontroller.c:
1484 FIXES FOR #93592 and #95940.
1485 (statics): renamed mouse_button_state to mouse_mask_state,
1486 added key_modifier_mask.
1487 (spi_dec_poll_mouse_moved):
1488 Added key modifier checks, and emit "keyboard:modifiers"
1489 events when the key modifiers currently in use change.
1490 Also generate "mouse:abs" events periodically, even if the mouse
1491 is stationary (should we?).
1492 Alternatively we could generate "mouse:abs" events for either all
1493 mouse movements, or every 'nth' mouse movement, or at the
1494 beginning and end of every "active" mouse period.
1496 * test/event-listener-test.c:
1497 (main): Added listener for "keyboard:modifiers" events.
1499 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1501 * libspi/keymasks.h:
1502 Added key mask #defines for mouse buttons; e.g.
1503 SPI_KEYMASK_BUTTON1, etc.
1506 Incremented dependency on ATK to version 1.1.0. (This dependency
1507 is probably premature but will soon be real enough).
1509 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1511 * libspi/hyperlink.[ch]
1512 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1513 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1516 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1521 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1523 * registryd/deviceeventcontroller.c
1524 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1525 events to be ignored.
1526 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1527 keyboard_mode so that XAllowEvents() can be called.
1531 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1533 * cspi/spi-accessible.c: Correct names of roles returned by
1534 AccessibleRole_getName(). Fixes bug #95055.
1536 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1538 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1541 * registryd/registry.c
1542 (desktop_remove_application: Write diagnostic message to stderr for
1545 (impl_accessibility_registry_deregister_global_event_listener):
1546 Correct size of lists array. This addresses bug #94555).
1548 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1550 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1553 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1555 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1558 * registryd/registry.c (impl_registry_notify_event): Remove
1559 unnecessary call to parser_event_type().
1561 * docs/reference/cspi/tmpl/spi_component.sgml:
1562 Add reference to SPI_LAYER_WINDOW.
1564 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1566 * registryd/registry.c
1567 (desktop_add_application): Remove leak.
1568 (desktop_remove_application): Remove leak.
1569 (parser_event_type): Remove leak.
1571 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1573 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1574 bogus call to CORBA_string_dup(). Also removed unnecessary
1575 g_string_dup/g_free calls.
1577 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1579 * registryd/deviceeventcontroller.c:
1580 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1582 * test/event-listener-test.c:
1583 main: commented out three redundant listeners, to reduce output
1584 noise. (They still are potentially useful for testing).
1587 2002-09-13 Michael Meeks <michael@ximian.com>
1589 * Update all the copyrights to include Ximian.
1591 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1593 * cspi/spi.h: add SPI_LAYER_WINDOW.
1595 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1596 add Accessibility_LAYER_WINDOW case.
1598 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1600 * libspi/component.c: (impl_accessibility_component_get_layer):
1601 add ATK_LAYER_WINDOW case.
1603 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1605 * configure.in: incremented micro version.
1607 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1609 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1612 Clarified and reworded our commit policy.
1615 Started an API "todo" addition list for 2.2.
1618 (impl_getSelection):
1619 Free char pointer from atk_text_get_selection, which was being leaked.
1621 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1624 Small revision to author acknowledgement.
1626 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1628 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1629 If signal has detail add it to the type of the event.
1632 2002-08-12 Michael Meeks <michael@ximian.com>
1634 * test/test-simple.c (global_listener_cb): bin bogosity.
1635 (test_keylisteners): disable, still doesn't work reliably,
1636 certainly not on my system anyway.
1638 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1639 don't leak a reference on the DEC. This round-trip
1640 fetching of the DEC per keystroke sucks, it should be
1643 * cspi/spi-private.h,
1644 * cspi/cspi-lowlevel.h,
1645 * cspi/bonobo/cspi-bonobo-listener.[ch],
1646 * cspi/bonobo/cspi-bonobo.c: get the copyright
1647 notices better - there is still a large amount of
1648 work in at-spi falsely attributed solely to Sun.
1650 * cspi/spi_main.c (cspi_object_ref): kill bogus
1651 hash lookup, just increment the ref.
1652 (SPI_freeString): make explicit the fact that we
1653 handle NULL strings just fine.
1654 (report_leaked_ref): obey coding standards.
1655 (cspi_object_hash, cspi_object_equal): kill retval.
1656 (cspi_object_release): only release if not on loan.
1657 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1658 (cspi_object_borrow, cspi_object_return): impl.
1660 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1661 use cspi_object_borrow / return.
1663 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1665 * cspi/bonobo/cspi-bonobo-listener.c:
1667 Don't call cspi_oject_new() because this is creating a new Accessible
1668 every single time that an event is fired. This causes ATs like at-poke
1669 to nolonger recognise the source of the event and thus ignore it.
1670 Re-use the object from the cache, ref it and then unref it after the
1671 listeners have been called.
1673 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1675 * test/event-listener-test.c:
1676 Added command-line options to disable mouse events (m) and
1679 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1681 * configure.in: Update required versions of ATK, GTK+ and GAIL
1683 * cspi-1.0.pc.in: Add dependency for X include files
1686 * cspi/bonobo/Makefile.am:
1687 Add $(X_CFLAGS) so that X include files
1688 are picked up even if not in standard place (bug #71686)
1690 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1692 * registryd/deviceeventcontroller.c: fix for 84261
1693 (spi_dec_mouse_moved):
1694 Added test of mouse button mask, so that we can detect mouse
1695 button release. Unfortunately we can't otherwise detect mouse
1696 button release events without consuming the mouse press event,
1697 because of the way XGrabButton works. This means that our mouse
1698 release events have a latency dependent on the polling period
1699 while the mouse button is down. At least in this case we only
1700 have to poll while the button is down, and not at other times.
1701 If the button masks don't match with what the last press event
1702 reported, we report the appropriate button release event.
1703 (spi_dec_ungrab_mouse):
1704 New method (not yet called).
1705 (spi_device_event_controller_forward_mouse_event):
1706 New method, sends mouse press event from GdkFilter.
1707 (spi_dec_init_mouse_listener):
1708 Added code to call XGrabButton, redirecting mouse button events to
1709 the root window and our Gdk event loop.
1711 Added code to filter mouse button events, and reordered.
1713 * test/event-listener-test.c:
1715 Added registration for mouse events of type "mouse:button".
1717 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1719 * registryd/deviceeventcontroller.c: partial fix for 84261
1720 (spi_dec_poll_mouse_idle):
1721 New method, a timeout which checks to see if the mouse
1723 (spi_dec_poll_mouse_moving):
1724 A timeout to be called when mouse motion is underway.
1725 (spi_dec_poll_mouse_moved):
1726 A method which fires an event if the mouse has moved, and reports
1727 whether or not it did so.
1728 (spi_dec_init_mouse_listener):
1729 A method which sets up the timeouts above.
1730 (spi_device_event_controller_new):
1731 Now calls spi_dec_init_mouse_listener.
1733 * registryd/registry.c:
1734 (spi_registry_init):
1735 Now we initialize the device event controller when the registry is
1736 initialized, instead of waiting until a client has requested a key
1737 event notification; this is because we need the event controller
1738 for mouse events, but the mouse event registration API is a
1739 "registry" call and doesn't explicitly call the
1740 deviceeventcontroller.
1741 We now report mouse motion events with a 100 ms idle latency and
1742 a 20 ms granularity when motion is in progress.
1744 * test/event-listener-test.c:
1746 We now register the "detail listener" for events of type
1747 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1748 delivered only for the first mouse event received, and thereafter
1749 "mouse:abs" events are delivered.)
1751 * cspi/spi_registry.c:
1752 DOCS: Documented the above mouse event typestrings.
1754 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1756 Happy Summer Solstice...
1758 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1759 (spi_controller_notify_keylisteners):
1760 Changes to remove a listener from the listener list, freeing its
1761 open keygrabs, if a notification to that listener fails. This
1762 means that although a dead listener can continue to hold a passive
1763 keygrab, a maximum of one dispatch to such a listener can fail
1764 before the listener is removed from the list, thus the keygrab
1765 will be released on the next occurrence.
1766 As part of this fix:
1767 (spi_notify_keylisteners):
1768 Renamed to spi_controller_notify_keylisteners, as the controller
1769 instance must now be passed as an argument.
1770 The copied 'notify' GList is now a list of DEControllerKeyListener
1771 objects, since we need more than just the CORBA reference if a
1772 notify fails and we need to deregister the listener.
1773 (impl_notify_listeners_sync):
1774 (impl_notify_listeners_async):
1775 (spi_device_event_controller_forward_key_event):
1776 Modify use of notify_keylisteners in accordance with above
1778 (spi_deregister_controller_key_listener):
1779 New method introduced by refactoring, from
1780 impl_deregister_keystroke_listener.
1781 (impl_deregister_keystroke_listener):
1782 Call spi_deregister_controller_key_listener.
1783 (spi_key_listener_clone):
1784 New method to copy a key listner without doing a 'ref' on the
1785 remote object instance; used to create a notifier list.
1786 (spi_key_listener_data_free):
1787 New method, frees data without unreffing the source.
1789 (spi_key_listener_clone_free): new method.
1790 (spi_key_listener_free):
1791 refactored to call spi_key_listener_data_free.
1793 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1795 * registryd/registry.c: [fix for bug 86048]
1796 (notify_listeners_cb):
1797 Clear CORBA system exceptions which occur when notifying
1798 listeners, before returning to the source of the original event,
1799 since the event source doesn't care if the relayed notify failed.
1800 In other words, don't complain to the atk-bridge if the registry
1801 could not notify all its listeners, that's no fault of the
1802 application and thus should not appear to be an error from the
1803 application's perspective.
1805 * cspi/spi_main.c: [fix for bug 85980]
1807 Replaced use of bonobo_object_dup_ref with call to the wrapper
1808 method, csou_dup_ref (); this silences a compiler warning and
1809 provided more portability.
1811 Ping the registry before return, and restart if necessary.
1813 * cspi/bonobo/cspi-bonobo.c:
1815 New internal method.
1817 Fixed this method to return an object reference, as it should have
1820 * cspi/cspi-lowlevel.h:
1821 Added internal definition for cspi_ping() and fixed
1822 return type of cspi_dup_ref().
1825 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1827 * atk-bridge/bridge.c: [fix for bug 85305]
1828 (spi_atk_bridge_register_application):
1829 New method where the initial application registry calls have been
1830 moved; it allows an application to re-register in response to
1831 certain error conditions (such as a registry restart, see below).
1833 Moved some initialization code to the method
1834 spi_atk_bridge_get_registry, below.
1835 (spi_atk_bridge_get_registry):
1836 New, private accessor function for the Accessibility_Registry
1837 instance. If the registry has not been started before, or has
1838 died (as detected by failure of a CORBA exception), it is
1839 restarted before return, and spi_atk_bridge_register_application
1840 is called again to register with the new bridge instance.
1841 (spi_atk_emit_eventv):
1842 Set registry_died on error; use spi_atk_bridge_get_registry () to
1843 access the registry.
1845 * registryd/registry.c:
1846 (impl_accessibility_registry_register_global_event_listener):
1847 Set listener's event_type_quark to etype.minor instead of
1848 etype.major (fix for bug 84856).
1850 * test/event-listener-test.c:
1851 (report_detail_event):
1852 Change the output string so that user/tester can tell that the
1853 'detail listener' was called instead of the 'generic listener'.
1855 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1857 Fixes for bugs 84900, 84908, 84897, 84898.
1862 Revved version to 1.1.0
1863 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1864 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1866 * idl/Accessibility_Registry.idl:
1867 (EventListener::notifyEvent):
1868 Removed 'oneway' directive after extensive consulation with
1869 ORBit2 team and others. This means also that unref() of the event
1870 source can and should be done synchronously after emission, rather
1871 than remotely in the client, after servicing the notify call on
1874 NOTE: This change speeds up listener performance considerably, but
1875 introduces new latency on the application side. We may want to
1876 add an event queue to the atk-bridge.
1878 * atk-bridge/bridge.c:
1879 (spi_atk_bridge_focus_tracker):
1880 Do a local unref() on the event source after emission.
1882 * registryd/registry.c:
1883 (desktop_remove_application):
1884 Do an unref() on the event source after emission.
1885 (desktop_add_application):
1886 Do an unref() on the event source after emission.
1887 (notify_listeners_cb):
1888 When relaying an event, don't automatically add the event source
1889 to the local object cache, just CORBA_dup it instead. Likewise,
1890 if this method reenters, release the ref rather than calling
1892 (impl_registry_notify_event):
1893 No longer call remote unref() on the event source after dispatch.
1895 * libspi/eventlistener.c:
1896 (impl_accessible_event_notify_event):
1897 Removed remote unref ()
1899 * cspi/bonobo/cspi-bonobo-listener.c:
1901 We now call cspi_object_new() instead of cspi_object_add() on
1902 receipt of an event; thus we only have an implicit object ref
1903 while the cspi_event method is being executed. If we need to keep
1904 a reference to the object, the listener must call ref() on the
1905 object. Thus also we don't need to call cspi_object_unref() after
1906 invoking the listener callbacks in this method.
1910 New internal API for creating a new cspi object, without adding it
1911 to the object cache.
1913 Now uses cspi_object_new() to create the cspi object instance.
1915 Now checks to see if the object is in the internal object cache,
1916 and adds it if necessary before incrementing its refcount (note
1917 that new objects are added with a refcount of 1).
1918 (report_leaked_ref):
1919 New method which gives some information on leaked object instances
1920 if leak detection is turned on.
1922 * test/event-listener-test.c:
1923 (timing_test_event):
1924 New method, used for testing event delivery timing for special
1925 events of type "object:test". It reports elapsed time and
1926 events/sec every 500 events.
1928 Added a new listener, 'test listener', to check timing of event
1929 receipt as noted above.
1931 Added some timing output here also, reports elapsed time every 100
1934 * test/stress-test.c:
1935 Emit events of type "object:test", for use with "event-listener-test".
1937 * test/test-simple.c:
1938 (global_listener_cb):
1939 Call Accessible_ref() on the event source before calling
1940 validate_accessible, since the validation process does pointer
1941 comparisons on the event source, meaning that the event source
1942 needs to be added to the local object cache first. Any use of
1943 such pointer comparisons between Accessible objects requires that
1944 the caller hold an explicit reference to those objects.
1945 We also must therefore call Accessible_unref() when leaving this method.
1947 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1949 * registryd/deviceeventcontroller.c:
1950 (spi_controller_update_key_grabs):
1951 Fix for #84735, subsequent keygrab listeners not informed of
1952 registration failure.
1955 (spi_base_construct):
1956 Add an assertion on construct, to make sure the GObject passed in
1957 is really a GObject.
1959 Explicitly initialize object->gobj pointer to NULL;
1961 * cspi/bonobo/cspi-bonobo-listener.c:
1962 (cspi_object_add_ref):
1963 New method, can specify whether to dup-ref a bonobo object passed
1964 in if it's newly added to the object cache.
1966 Now calls cspi_object_add_ref with second param of "FALSE". This
1967 prevents us from doing a pointless dup-ref followed by
1968 release-unref for all those cases where the object is already in
1969 our object cache (fix for #85205).
1971 * atk-bridge/bridge.c:
1972 (spi_atk_bridge_idle_init):
1973 Removed this method, we don't need to initialize in an idle
1976 Changed to call spi_atk_register_event_listeners directly, not via an
1977 idle handler. (fix for #81139)
1978 (gnome_accessibility_module_shutdown):
1979 Removed conditional around deregistration of listeners, since we
1980 don't use the idle handler and thus have always registered when
1982 (spi_init_keystroke_from_atk_key_event):
1983 Changed references to Accessibility_KEY_PRESSED to
1984 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1986 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1988 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1993 * test/stress-test.c:
1996 (may have been an incomplete commit yesterday?)
1998 2002-06-12 Bill Haneman <bill.haneman@sun.com>
2001 Added target for new stress-test.
2003 * test/stress-test.c:
2004 New test, sends 1000 focus notifies in quick succession.
2006 * test/key-listener-test.c:
2007 Now we report whether a keylistener registration
2008 request succeeded or failed.
2010 * test/event-listener-test.c:
2011 Uncommented some listeners which are now implemented.
2014 2002-06-06 Bill Haneman <bill.haneman@sun.com>
2016 * registryd/deviceeventcontroller.c:
2017 (spi_controller_update_key_grabs):
2018 Fix for #82509, lack of failure notification when
2019 ALL_WINDOWS keygrabs fail due to XGrabKey
2020 failure: we synchronize the server when
2021 registering a passive grab, to make sure we get the
2022 error message before the call returns.
2024 2002-06-03 Bill Haneman <bill.haneman@sun.com>
2026 * test/test-simple.c:
2028 Removed #ifdef KEY_IMPL_WORKS guards.
2029 (test_keylisteners):
2030 Removed #ifdef KEY_IMPL_WORKS guards.
2031 Fixed bug which was causing a hang waiting for a
2032 "press" event (which was already overwritten by a "release"
2033 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
2035 Added code to set globals 'key_press_received' and
2036 'key_release_received'.
2039 Added section "1.1 API Proposed Additions" which
2040 lists API additions desired for at-spi-1.1 (only one so far).
2041 Updated TODO list a little.
2043 2002-06-02 Bill Haneman <bill.haneman@sun.com>
2045 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
2048 * configure.in: Revved to 1.0.0.
2050 * idl/Accessibility_Registry.idl:
2051 (registerKeystrokeListener):
2052 Added boolean return value.
2054 * registryd/registry.c:
2055 (notify_listeners_cb): Minor fix to debug output.
2057 * registryd/Accessibility_Registry.server.in.in:
2058 Revved version number in OAFIID to 1.0.
2060 * registryd/registryd.c:
2062 Use new OAFIID version.
2064 * cspi/bonobo/cspi-bonobo.c:
2066 Use new OAFIID version.
2072 * atk-bridge/bridge.c:
2074 Use new OAFIID version.
2076 * registryd/deviceeventcontroller.c:
2077 (impl_register_keystroke_listener):
2078 Added CORBA_boolean return value.
2079 (spi_controller_register_device_listener):
2080 Added gboolean return value.
2081 (spi_controller_register_global_keygrabs):
2082 Added gboolean return value.
2083 (spi_key_set_contains_key):
2084 Added implementation for many more control keys,
2085 for instance F1-F12, arrow keys, End, Home, Page_Up,
2087 [TODO: some still not implemented].
2089 * text/screen-review-test.c:
2090 (text_chunk_pad_string):
2091 New function: it provides mapping between coordinate
2092 positions of text chunks and character positions in the
2093 screen-review-line output string.
2094 (text_chunk_to_string):
2095 New function, calls text_chunk_pad_string with various
2096 pad/delimiter characters. Pushbuttons are delimited with
2097 square brackets, Frames with vertical 'pipe' lines, and
2098 other text with double quotes.
2099 (text_chunk_list_to_string):
2100 Calls new function text_chunk_to_string.
2101 (toplevel_composite):
2102 New function to composite layers CANVAS through
2103 POPUP in each toplevel (other layers are composited
2104 across toplevels, i.e. BACKGROUND and OVERLAY).
2105 (review_buffer_composite):
2106 Revise to use new methods.
2112 2002-05-31 Laszlo Peter <laca@sun.com>
2114 * configure.in: add the Xtst libdir to the runpath on Solaris,
2115 since it's not in the default library search path.
2117 2002-05-29 jacob berkman <jacob@ximian.com>
2119 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2121 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2123 * test/screen-review-test.c:
2124 (text_chunk_pad_string):
2125 Added method, which pads the string according to the
2126 text bounds of the chunk. It also takes a 3-character
2127 string as a param which indicates the characters to be
2128 used for start, padding, and end delimitation of the chunk.
2129 (text_chunk_to_string):
2130 Changed to use text_chunk_pad_string.
2132 * configure.in: Fixed bug in AC_OUTPUT that was
2133 causing path substitution in Accessibility_Registry.server
2136 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2138 * text/screen-review-test.c:
2139 (guess_string_clip):
2140 New method which attempts a best-guess at clipping
2141 text from components (like Java labels) which don't
2142 actually implement AccessibleText. This inaccurate
2143 clip is based on the assumption that the label is
2144 justified left-and-right, and monospaced.
2145 (text_chunk_get_clipped_string):
2146 We now call guess_string_clip() for text-containing
2147 components that don't implement AccessibleText.
2149 * test/screen-review-test.c:
2150 (review_buffer_get_text_chunk):
2151 We now pull "name" from labels if they do not implement
2152 AccessibleText (i.e. for Java labels).
2153 (get_screen_review_line_at):
2154 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2157 Replaceded AC_OUTPUT target
2158 registryd/Accessibility_Registry.server with
2159 registryd/Accessibility_Registry.server.in.
2161 * registryd/Accessibility_Registry.server.in:
2162 Removed (this is now a Makefile target).
2164 * registryd/Accessibility_Registry.server.in.in:
2165 Added (source for target above). We now use $(libexecdir) as
2166 prefix for the executable at-spi-registryd.
2168 * registry/Makefile.am:
2169 Now install at-spi-registryd into $(libexecdir), and build .server
2170 file with path (see above).
2172 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2174 * test/screen-review-test.c:
2175 (text_chunk_get_clipped_string):
2176 We now check to see if words fall within clip bounds
2177 before resorting to character-by-character clip bounds testing.
2179 * TODO: Added a section for "2.2 Proposed API Additions".
2181 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2183 * test/screen-review-test.c:
2185 Added a screen review benchmarking and test program to test
2188 * cspi/spi_accessible.c:
2190 Made some of the debug strings passed to cspi_check_ev a
2191 little more specific.
2193 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2195 * test/screen-review-test.c: Fix crashes in debug statements
2197 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2199 * test/screen-review-test.c: Added this file.
2201 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2203 * atk-bridge/bridge.c: changed "object:state-change" to
2204 "object:state-changed" to match docs.
2206 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2208 * atk-bridge/bridge.c: Hooked up state-change event details.
2210 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2212 * registryd/registry.c:
2213 Fixed quarking bug in event string parsing; now events with
2214 detail parameters get matched correctly to listeners.
2217 * util/idl/Magnifier.idl: remove.
2219 * util/*.[ch]: Remove.
2220 Magnification utilities and IDL are now in module gnome-mag.
2222 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2224 * registryd/deviceeventcontroller.c:
2225 Fixed bug in grab key conversion which was causing keycode grabs
2226 to be converted to AnyKey grabs.
2229 updated NEWS file to reflect recent spin-off of gnome-mag.
2231 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2233 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2234 busted AccessibleStateSet_compare. Removed redundant casts.
2236 * cspi/spi-action.c: Removed redundant casts.
2238 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2240 * cspi/spi_component.c: Fixed typos and casting error.
2242 * cspi/spi_editabletext.c: Removed redundant casts.
2244 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2246 * cspi/spi_hypertext.c: Eliminated redundant casts.
2248 * cspi/spi_image.c: Eliminated redundant casts.
2250 * cspi/spi_registry.c: Eliminated redundant casts.
2251 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2252 * cspi/spi_selection.c: Removed redundant casts.
2253 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2254 handling. Screen geometry and text offsets were being returned as 0
2255 on error which is technically valid-- changed these to return -1.
2256 Added marshaller for text boundary types to fix bug with boundary
2257 types being passed incorrectly to atk.
2259 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2262 * cspi/spi_registry.c:
2263 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2264 which was uncovered by the recent key changes.
2266 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2268 * test/event-listener-test.c:
2270 Added new test, "event-listener-test";
2271 this code does two things; it benchmarks traversal time
2272 for the accessible hierarchy for the first running accessible
2273 app, and it connects listeners for all supported event types.
2274 It is thus useful as an example event listener and for
2275 diagnostics/debugging of event generation.
2277 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2280 Removed unnecessary dependency on libutil.
2283 Revved micro version: 0.13.1
2285 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2288 Removed util/Makefile from targets.
2291 Removed util subdir from SUBDIRS (temporarily,
2292 pending removal of magnifier-only code
2296 #ifdef-ed out magnifier dependencies, since
2297 magnifier IDL, headers, and binary now live in
2298 module gnome-mag and we don't want at-spi to depend
2299 on gnome-mag. A magnifier demo which can run alongside
2300 simple-at is forthcoming in the gnome-mag module.
2302 NOTE: Split magnifier binary, IDL, and magnification
2303 activation code from at-spi into module gnome-mag.
2305 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2307 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2308 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2310 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2313 Revved to version 0.13.0
2315 * idl/Accessibility_Registry.idl:
2316 Changed definition of KeySet from sequence of longs to sequence of
2317 KeyDefinitions, and added KeyDefinition struct.
2318 Required for fix to bug 80616.
2320 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2321 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2322 to use new definition (see above).
2324 * registryd/deviceeventcontroller.c: handle_keygrab(),
2325 spi_keyset_contains_key():
2326 Changed to make use of new struct; this allows matching based on
2327 string key-name, for instance "Tab". This also allows matching of
2328 composed characters, non-alphanumeric characters in a way that
2329 doesn't involve dependencies on X keysym codes directly, etc.
2331 * test/key-listener-test.c:
2332 Added test for Alt-Tab key using "string" specification of keyset,
2333 and modified one of the tests to use a keycode-based keyset.
2334 Thus this test both tests and demonstrates the creation and use of
2335 keysets of three forms: specified via keycode array,
2336 keysym array, and string array. (The string case only contains a
2337 single string, i.e. a string array of length 1).
2340 Turned on PRINT_TREE option by default. Also fixed a
2341 string-freeing bug in the PRINT_TREE code.
2342 Added a listener to window:minimize events.
2344 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2346 * atk-bridge/bridge.c:
2347 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2348 for window:activate and window:deactiveate
2349 (atk_bridge_property_event_listener atk_bridge_signal_listener
2350 atk_bridge_window_event_listener) Tidy debug code
2352 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2354 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2355 Fixed handling for NULL return value from ATK.
2357 * libspi/action.c libspi/component.c libspi/editabletext.
2358 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2359 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2360 Removed redundant casts.
2362 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2363 Fixed off by one bug.
2365 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2366 function not present in idl)
2368 2002-05-02 jacob berkman <jacob@ximian.com>
2370 * atk-bridge/Makefile.am: make atk-bridge a real module
2372 2002-04-26 Radek Doulik <rodo@ximian.com>
2374 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2375 atk_state_types table
2377 2002-04-22 jacob berkman <jacob@ximian.com>
2380 * libspi/Makefile.am: add deps on the built files to help
2381 automake, and don't version the ORBit typelib
2383 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2385 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2386 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2387 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2388 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2389 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2390 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2391 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2392 libspi/accessible.h libspi/accessible.h libspi/base.h
2393 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2394 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2395 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2396 libspi/spi-private.h libspi/statetset.h libspi/table.h
2397 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2398 util/mag_client.h util/mag_control.c util/mag_image.c
2399 util/mag_image.h util/magnifier.c util/magnifier.h:
2400 Add missing file headers; standardize existing ones
2402 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2404 * atk-bridge/bridge.c: Added window event support.
2406 2002-04-18 Michael Meeks <michael@ximian.com>
2408 * libspi/relation.c (impl_getNTargets): impl.
2409 (impl_getTarget): impl.
2411 * libspi/Makefile.am: fix stateset install.
2413 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2416 Started putting useful info in this file.
2418 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2420 * atk-bridge/bridge.c:
2421 Propagate state-changed notifications to ATs
2423 * cspi/spi_registry.c: update docs to reflect actual behavior of
2424 state-change events.
2426 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2429 Incremented version to 0.12.1
2431 * util/mag_client.h:
2432 Add missing declaration for magnifier_exit,
2433 used by mag_control.c - Forte compiler didn't like
2434 the implicit redeclaration of the function :-(
2437 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2440 Revved version to 0.12 due to API change (see below).
2442 * cspi/spi-roletypes.h:
2443 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2444 definition from the inline docs, and added docs
2445 for SPI_ROLE_LAST_DEFINED.
2448 * cspi/spi_streamablecontent.c:
2449 Added missing seek_type parameter to
2450 (so far unused) method,
2451 AccessibleStreamableContent_seek().
2452 [ RT approval JodyG. ]
2455 Fixed docs for SPI_createAccessibleKeystrokeListener.
2457 * cspi/spi_registry.c:
2458 Fixed docs for SPI_KEYSET_ALL_KEYS.
2460 * docs/reference/cspi/at-spi-cspi-sections.txt:
2461 Added a number of missing APIs to SECTIONS.
2463 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2465 * registryd/Makefile.am:
2467 * cspi/bonobo/Makefile.am:
2468 Add $(X_LIBS) to makefiles.
2470 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2473 Revved version to 0.11.
2475 * libspi/component.c:
2476 Added implementation for grabFocus.
2478 * idl/Accessibility_Component.idl
2479 (Accessibility_Component_grabFocus):
2480 Made this method return boolean to indicate success or failure, to
2481 be consistent with cspi and the corresponding ATK method.
2483 * idl/Accessibility_Selection.idl
2484 (Accessibility_Selection_selectAll) :
2485 Made these methods return boolean to indicate success or
2486 failure, to be consistent with cspi and the corresponding ATK methods.
2488 * idl/Accessibility_EditableText.idl
2489 (Accessibility_EditableText_setTextContents,
2490 Accessibility_EditableText_insertText,
2491 Accessibility_EditableText_cutText,
2492 Accessibility_EditableText_deleteText,
2493 Accessibility_EditableText_pasteText):
2494 Made these methods return boolean to indicate
2497 * cspi/spi_editabletext.c:
2498 Made these methods return booleans.
2500 * libspi/selection.c:
2501 * libspi/component.c:
2502 * libspi/editabletext.c:
2503 Connected the boolean returns from ATK
2504 to the server-side code referenced above.
2506 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2508 * idl/Accessibility_Table.idl: Added missing methods,
2509 Accessibility_Table_addRowSelection,
2510 Accessibility_Table_addColumnSelection,
2511 Accessibility_Table_removeRowSelection,
2512 Accessibility_Table_removeColumnSelection.
2515 Added C wrappers for above IDL:
2516 AccessibleTable_addRowSelection,
2517 AccessibleTable_addColumnSelection,
2518 AccessibleTable_removeRowSelection,
2519 AccessibleTable_removeColumnSelection.
2522 Added server-side implementation code for IDL above, connecting
2523 to pre-existing ATK api.
2525 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2527 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2529 * libspi/accessible.c: Added implementation fo
2530 Accessibility_Accessible_get_state.
2532 * libspi/libspi.h: Added stateset.h to the list of includes.
2534 * libspi/stateset.c: Fixed broken implementation.
2536 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2539 Added implementation code for Accessibility_Magnifier_exit ().
2541 * util/mag_control.c:
2542 Added test code for above method; you can
2543 now kill an existing magnifier via
2544 ./mag_control q, from the util directory.
2546 * test/key-listener-test.c:
2548 Added a new test, for our key listener API.
2550 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2552 * test/app.c, test/keysynth-demo.c:
2554 Replace use of snprintf with g_snprintf.
2555 (fix for bugzilla 78249)
2557 2002-03-27 Michael Meeks <michael@ximian.com>
2561 * util/Makefile.am (INCLUDES): fix.
2562 (DONT_DIST_SOURCE): don't distribute the
2565 * libspi/Makefile.am (dist-hook): ditto.
2567 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2569 * libspi/hypertext.c:
2570 Fix warnings when yelp is used with atk-bridge
2572 2002-03-21 Michael Meeks <michael@ximian.com>
2574 * libspi/application.c (spi_application_new):
2575 use spi_accessible_construct so we use the AtkObject
2578 2002-03-19 Michael Meeks <michael@ximian.com>
2580 * registryd/registry.c (desktop_remove_application),
2581 (desktop_add_application): clean coding style.
2583 * registryd/desktop.c (spi_desktop_remove_application),
2584 (spi_desktop_add_application): kill re-enterency hazards.
2585 (spi_desktop_dispose): remove bogus redundant cast
2586 obscuring bug; fix bug too.
2587 (spi_desktop_init): make the desktop object immortal.
2589 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2592 Added a #define-guarded tree-traversal step
2593 when enumerating the apps (diagnostic tool).
2595 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2597 * idl/Accessibility_Role.idl:
2598 Added ROLE_DRAWING_AREA which seemed to be missing from the
2601 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2603 * cspi/spi-roletypes.h cspi/spi_accessible.c
2604 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2607 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2608 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2609 AT when applications are added and removed from the desktop. This
2610 reverts the previous broken implementation using the backing
2611 AtkObject for the SpiDesktop.
2613 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2615 * registryd/desktop.c: emit the "children-changed::add" and
2616 "children-changed::remove" signals on the backing ATK object for
2617 the desktop so AT can tell when applications are started and shut
2620 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2622 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2624 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2626 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2628 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2630 * cspi/state-types.h: synched with IDL and ATK
2632 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2634 * libspi/accessible.c
2635 (impl_accessibility_accessible_get_child_at_index):
2636 Change return value for g_return_if_fail ()
2637 to CORBA_OBJECT_NIL instead of "0" (!)
2639 * registryd/Makefile.am:
2640 * registryd/Accessibility_Register.server.in:
2641 Changed name of executable, "registryd",
2642 to something more informative:
2645 2002-03-13 Michael Meeks <michael@ximian.com>
2647 * atk-bridge/bridge.c (atk_bridge_init): don't register
2648 if we're in a bonobo-component, rather than a bonobo app.
2650 2002-03-13 Michael Meeks <michael@ximian.com>
2652 * atk-bridge/bridge.c (gtk_module_init): split
2653 out body to (atk_bridge_init): here, since otherwise
2654 we get symbol conflicts and oddness when invoked
2655 from (gnome_accessibility_module_init): here (upd.)
2657 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2660 New file. Explicitly allow "build sheriff" putbacks provided
2661 they are tested on Solaris.
2663 * docs/reference/cspi/Makefile.am:
2664 Added '-' to the "cp" command for index.sgml.
2665 ("patch by thomasvs, soon coming to a GUADEC near you")
2668 Incremented version number (0.9.0) for new release.
2669 Changed macro that checks for popt, to better detect
2670 obsolete versions of popt.
2673 Added X_LIBS to AC_SUBST, for applications
2674 that call Xlib API directly.
2677 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2680 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2683 Fix regression caused by hard-coding major
2684 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2687 * test/test-simple.c (test_editable_text),
2688 (test_test): revert previous change (error was
2689 a regression in gail which is now fixed).
2691 2002-03-04 Michael Meeks <michael@ximian.com>
2693 * test/test-simple.c (test_editable_text),
2694 (test_text): pass G_MAXINT instead of '-1' for
2695 whole string - is this a good thing !?
2697 * cspi/spi_accessible.c
2698 (Accessible_getRelationSet): fix crasher bug
2699 overwriting the end of the array.
2701 * test/test-simple.c (validate_accessible): free,
2702 not g_free returned relation set.
2704 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2706 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2707 implemented stateset support
2709 * idl/Accessibility_State.idl: Made necessary changes to
2710 the IDL to support state sets.
2712 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2714 * registryd/deviceeventcontroller.c:
2715 Added implementation for generateMouseEvent.
2717 * cspi/spi_registry.c:
2718 Connected new implementation for generateMouseEvent
2721 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2724 Incremented revision (but no change in public API
2725 outside of 'utils', which are not installed public yet.)
2727 * libspi/component.c:
2728 Changed to use atk_component API for layers and
2729 mdi_zorder, instead of deprecated atk_object API.
2731 Magnification Utility Enhancements:
2734 Added implementation of createZoomRegion, clearAllZoomRegions,
2735 resizeZoomRegion. Added new commandline argument
2736 "--no-initial-region". Note that clearAllZoomRegions doesn't
2737 unmap the old '0' region as it should (yet), and the other
2738 methods only work when creating/resizing a single region,
2739 which is "region 0".
2740 (Code for multiple region support will be added later.)
2743 Now we raise the magnifier window each time it's refreshed;
2744 this will help keep it on top.
2746 * util/mag_client.h:
2747 Added simple wrappers for above, used by mag_control.
2748 For general use, it's recommended to use the bonobo magnifier
2749 control API directly instead of using these wrappers.
2752 Moved ZoomRegionData from magnifier.c to this file.
2754 * util/mag_control.c:
2755 Added some code to exercise new IDL implementations.
2757 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2759 * libspi/text.c: Provide implementation for getAttributes.
2761 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2764 Incremented revision.
2766 * test/test-simple.c:
2767 Replaced use of deprecated g_main_iteration with
2768 g_main_context_iteration.
2770 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2773 Incremented revision for desktop alpha 2.
2775 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2777 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2780 * test/simple-at.c: include netinet/in.h.
2782 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2784 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2785 use NULL, not CORBA_OBJECT_NIL.
2787 * libspi/accessible.c:
2788 (impl_accessibility_accessible_get_relation_set):
2789 allocate the sequence correctly.
2791 * libspi/remoteobject.h: kill spi_remote_object_new.
2793 * test/test-simple.c: (validate_accessible): add code
2794 to test relation sets, now all we need is to figure
2795 out how to excercise this code path :/
2797 2002-01-18 Michael Meeks <michael@ximian.com>
2799 * test/test-simple.c
2800 (key_listener_cb): consume the key.
2801 (test_keylisteners): update.
2802 (main): wait for any pending unrefs on events.
2804 * registryd/deviceeventcontroller.c
2805 (spi_controller_update_key_grabs): only re-issue the
2806 grab on a key release.
2807 (spi_device_event_controller_forward_key_event):
2808 refresh the keygrabs before we notify the listeners,
2809 to reduce the X ungrab / re-grab race.
2810 (spi_controller_register_with_devices): remove
2811 XSelectInput - we do that with the gdk_window_ call.
2812 (_spi_controller_device_error_handler): return a value.
2813 s/GDK_DISPLAY/spi_get_display/
2815 2002-01-17 Michael Meeks <michael@ximian.com>
2817 * registryd/deviceeventcontroller.c
2818 (_deregister_keygrab): don't blow out the later
2821 * test/test-simple.c (test_keylisteners): do a
2822 more intelligent validation.
2824 2002-01-14 Michael Meeks <michael@ximian.com>
2826 * atk-bridge/bridge.c
2827 (gnome_accessibility_module_init),
2828 (gnome_accessibility_module_shutdown): impl.
2829 (gtk_module_init): protect vs. double inits.
2830 (add_signal_listener): impl.
2831 (spi_atk_bridge_state_event_listener): kill
2832 (deregister_application): split out of
2833 (spi_atk_bridge_exit_func): here.
2835 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2838 Added caret tracking when using magnifier, and
2839 now use text bounds for focus tracking of text elements, rather than
2840 the component bounds - this is helpful for short text fields in long
2841 table cells, at high magnification.
2843 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2845 * registryd/deviceeventcontroller.c:
2846 Regression fix for keylistener de-registration; global keygrabs
2847 were not being released when deregisterKeystrokeListener was
2848 called in cspi, since
2849 Accessibility_DeviceEventController_deregisterKeystrokeListener
2850 was called with a zero-length keyset. That is because the cspi
2851 method, SPI_deregisterKeystrokeListener, does not take a keyset
2852 parameter but instead should remove all the key grabs held be a
2854 The code in impl_deregister_keystroke_listener was changed to copy
2855 the keylist from the listener instance previously registered with
2856 the DeviceEventController before releasing the grabs.
2858 * registryd/registry.c:
2859 * registryd/deviceeventcontroller.c:
2860 * libspi/spi-private.h:
2862 Changed spelling of "re-enterant" to "re-entrant" globally.
2864 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2866 * test/test-simple.c:
2867 Changed key listeners test - the test was slightly mis-using the
2868 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2869 It now uses '=' as the key event listened to and generated,
2870 relying on a keysym match rather than assuming that keycode 33
2871 is always equal to keysym '!'.
2873 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2876 Changed simple-at to use a specific keyset, rather than
2877 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2878 manager, desktop, etc.
2880 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2882 * registryd/deviceeventcontroller.c:
2883 Replaced standard X error handler with a special handler that
2884 is non-fatal for failed keygrabs. This works around
2885 problems with keygrab clashes sometimes observed on
2887 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2888 mouse handling code as yet).
2890 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2893 Incremented revision for desktop alpha release.
2896 Fixed a couple of the more glaring errors (still not
2899 2002-01-11 Michael Meeks <michael@ximian.com>
2901 * registryd/deviceeventcontroller.c
2902 (spi_device_event_controller_forward_key_event): kill
2903 XUngrabKey / XKeyGrab race.
2904 (spi_controller_grab_keyboard): rename to
2905 (spi_controller_update_key_grabs): this, and deal
2906 with incremental adding / removing grabs more
2908 (_register_keygrab): ensure we're not pending a remove.
2909 (spi_grab_mask_free): impl.
2910 (spi_controller_register_global_keygrabs): split out
2912 (handle_keygrab): impl.
2913 (_deregister_keygrab): impl.
2914 (spi_controller_deregister_global_keygrabs): impl.
2915 (spi_controller_update_key_grabs): re-issue the grab if
2916 we just recieved a notification.
2918 * test/test-simple.c (key_listener_cb): remove debug.
2920 * registryd/deviceeventcontroller.c
2921 (spi_controller_register_device_listener): after
2922 registering a global keygrab, actualy register it !
2923 don't wait for a timeout; doh !
2925 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2926 to make it more readable / manipulable.
2927 s/grabmask/grab_mask/ s/refcount/ref_count/
2928 s/keyval/key_val/ s/modmask/mod_mask
2930 2002-01-08 Michael Meeks <michael@ximian.com>
2932 * registryd/deviceeventcontroller.c
2933 (spi_controller_register_with_devices): use gdk calls to
2935 (global_filter_fn): implement the filter.
2936 (spi_device_event_controller_check_key_event): rename to
2937 (spi_device_event_controller_forward_key_event): this & upd.
2938 (spi_get_display): replace with GDK_DISPLAY.
2940 * registryd/deviceeventcontroller.c
2941 (spi_controller_deregister_device_listener): unroll into
2942 (impl_deregister_keystroke_listener): here to simplify.
2943 (spi_controller_register_global_keygrabs): split cut and
2944 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2945 (spi_controller_deregister_device_listener): remove.
2946 (impl_register_mouse_listener): remove, no mouse listener
2947 support in at-spi-1.0
2949 * registryd/registry.c
2950 (_device_event_controller_hook): kill.
2951 (spi_registry_init): upd.
2953 * registryd/deviceeventcontroller.c
2954 (spi_device_event_controller_class_init): upd.
2955 (spi_check_key_event): merge into.
2956 (spi_device_event_controller_check_key_event):
2957 here and kill strange static ev init, don't leak
2958 the x_event - nor dynamicaly allocate it.
2960 * registryd/registry-main.c (main): re-direct
2961 timeout to remove strange vtable mess.
2963 * registryd/deviceeventcontroller.c
2964 (remove_listener_cb): impl.
2965 (spi_controller_deregister_device_listener):
2966 fix re-enterancy hazard.
2968 2002-01-07 Michael Meeks <michael@ximian.com>
2970 * registryd/deviceeventcontroller.c
2971 (spi_device_event_controller_new): upd.
2972 (impl_notify_listeners_sync): upd. debug.
2973 (spi_notify_keylisteners): fix re-enterancy hazards,
2974 prettify, remove O(n*n) iteration.
2975 (spi_controller_grab_keyboard): fix iteration.
2976 (spi_check_key_event): re-format to suit coding style.
2977 Clean all the warnings - we're warning free.
2979 * registryd/deviceeventcontroller.h:
2980 * registryd/registry.h: make mutualy referential with
2981 typesafe forward references instead of (!) void pointer
2984 2002-01-11 Michael Meeks <michael@ximian.com>
2986 * cspi/spi_accessible.c (role_names): add a role name
2987 to sync this array with the enum; and make the regression
2990 2002-01-10 Michael Meeks <michael@ximian.com>
2992 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2993 allow expansion of enumeration & kill warning.
2995 * test/test-simple.c (key_listener_cb): impl.
2996 (test_keylisteners): impl.
2998 * cspi/spi-listener.h: make listener signatures const
2999 on the provided (const) events.
3001 * test/keysynth-demo.c: upd. to const events.
3003 * test/simple-at.c: ditto.
3005 2002-01-11 Bill Haneman <bill.haneman@sun.com>
3008 Rev the version to 0.5 (the previous tarball was named 0.4,
3009 even though the micro number was 3), so we need to rev upwards
3010 again for beta2/"desktop-alpha"
3013 Checked in a demo script, which requires editing before use!
3014 Proceed with caution.
3017 Fixed typo in header which was redefining SPI_ACTION_CLASS.
3019 * cspi/spi_accessible.c:
3020 Add a couple of missing enum initializations, and fix some enum
3023 * cspi/spi_registry.c:
3024 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
3026 * docs/reference/cspi/at-spi-cspi-sections.txt:
3027 Remove/fix a couple of broken document references.
3030 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
3031 as Alt-Control to listen for commands, since on some systems
3032 Control-Alt may already be grabbed.
3034 2002-01-10 Bill Haneman <bill.haneman@sun.com>
3037 Update version number to 0.4 for Beta2.
3039 * libspi/accessible.c, libspi/accessible.h:
3040 Expose spi_accessible_construct, to enable libgail-gnome
3041 construction from spi_accessible subtype.
3043 * utils/magnifier.c:
3044 Workaround for bug in some non-gnome-compliant window managers
3045 which made magnifier resize improperly.
3047 2002-01-09 Bill Haneman <bill.haneman@sun.com>
3049 * libspi/accessible.c: (spi_accessible_new) :
3050 Move the test for SPI_IS_REMOTE_OBJECT to
3051 spi_accessible_new_return, fixing a bug and compile time warning.
3053 2002-01-08 Michael Meeks <michael@ximian.com>
3055 * registryd/registry.c (parse_event_type): remove strndup.
3057 * libspi/Makefile.am (libspi_la_SOURCES): remove
3058 sources already included in the headers section.
3060 * libspi/util.c: add.
3062 * libspi/spi-private.h: add.
3064 * registryd/registry.c: update to moved list iterators.
3066 2002-01-05 Michael Meeks <michael@ximian.com>
3068 * test/simple-at.c (main): upd. auto-module set to atk-bridge
3070 * test/test-simple.c (main): ditto.
3072 2002-01-04 Michael Meeks <michael@ximian.com>
3074 * libspi/accessible.c (spi_accessible_new): remove 2nd,
3075 redundant construct.
3077 * registryd/registry.c
3078 (get_listener_list): impl.
3079 (impl_accessibility_registry_register_global_event_listener):
3080 re-impl. to simplify using ~, remove dodgy const cast off.
3081 (parse_event_type): constify.
3082 (impl_accessibility_registry_deregister_global_event_listener_all):
3083 re-write, more efficiency and simplicity, kill re-enterancy
3085 (compare_listener_corbaref, compare_corba_objects),
3086 (compare_listener_quarks): define out.
3087 (impl_accessibility_registry_deregister_global_event_listener):
3088 re-write for effiency, and nail re-enterancy hazard.
3089 (impl_accessibility_registry_get_desktop_list): impl.
3090 (re_enterant_list_delete_link): impl.
3091 (re_enterant_list_foreach): impl.
3092 (remove_listener_cb): impl.
3093 (_registry_notify_listeners): kill.
3094 (notify_listeners_cb): impl.
3096 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
3097 (SPI_getDesktopList): impl.
3099 * test/test-simple.c (test_desktop): test the methods.
3101 2002-01-03 Michael Meeks <michael@ximian.com>
3103 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
3104 keystrings since we free them
3105 (SPI_freeAccessibleKeySet): in here.
3107 * libspi/accessible.c (spi_accessible_new): kill warning,
3108 wonder what is going on with the constructor here.
3110 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3112 * libspi/accessible.c (spi_accessible_new ()) :
3113 Added check to see if AtkObject is an SpiRemoteObject before
3114 creating an SpiAccessible.
3116 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3118 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3119 Enable keygrabs using the Control modifier, now that they are
3120 working properly (they were previously disabled).
3123 Change the command keygrab for this demo to "Control+Alt", so as
3124 to conflict with fewer other key commands on the system; this
3125 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3127 Removed a pointlessly-chatty keylistener for unshifted keys
3128 (shifted keys are still reported).
3130 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3132 * libspi/remoteobject.h:
3133 * libspi/remoteobject.c:
3134 Added definitions for special AtkObject subtype, required for
3135 support of remote components (specifically, used by BonoboControl
3136 accessibility implementation).
3138 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3140 * cspi/spi.h: synched relation types with ATK
3142 * cspi/spi_accessible.c: Added implementations of
3143 AcccessibleRelation_* methods
3145 * idl/Accessibility_Relation.idl: added getRelationTypeName
3146 method. Synched known relation types with ATK. Allowed for
3147 relation type extension with the RELATION_EXTENDED type.
3149 * libspi/relation.c: Provided implementations for
3150 AccessibleRelation methods.
3152 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3154 API tweaks for today's API 'freeze'.
3157 Added placeholder functions to allow future compatible expansion
3158 of the IDL interfaces.
3160 * idl/Accessibility_Registry.idl:
3161 Changed generateKeyEvent to generateKeyboardEvent. Changed
3162 signature of this method to accept an optional keystring in
3163 parameter (for complex text input synthesis) and changed use of
3164 simple 'boolean' parameter in registerKeystrokeListener to a
3165 struct, EventListenerMode.
3167 * cspi/spi_accessible.c:
3169 * cspi/spi_streamablecontent.c:
3170 Added references to AccessibleStreamableContent interface, and
3171 definition and implementation of AccessibleStreamableContent
3174 * cspi/spi_registry.c:
3176 Changed generateKeyEvent API to generateKeyboardEvent,
3177 taking a new (optional) keystring parameter to support complex
3182 Renamed directory (to better reflect its actual purpose, bridging
3183 from at-spi to ATK). The .so module is also now named
3186 * idl/Accessibility_Hypertext.idl:
3187 * libspi/accessible.c:
3188 * libspi/hypertext.h:
3189 * libspi/hypertext.c:
3190 Changed Accessibility_Hypertext to *not* derive from
3193 * cspi/spi_registry.c:
3194 Added list of legal event type names for 'window' events, which
3195 completes the registry event API.
3197 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3199 * at-bridge/bridge.c: Added registration for separate
3200 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3201 signals. If either of the first two parameters to the generic
3202 bridge signal handler are ints, they are passed on as event
3203 details. This allows an AT to determine what text was inserted.
3205 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3207 * registryd/deviceeventcontroller.c:
3208 Fixed regressions in generateKeyEvent caused by the removal of
3209 gdk_init from registryd; we now use pure X calls to connect to the
3210 display, which makes sense because deviceeventcontroller already
3211 uses a fair bit of X API (should eventually be migrated to a
3212 'portability layer').
3214 * registryd/desktop.c:
3215 Fixed minor regression in spi_desktop_init, changed the way the
3216 desktop name is being set to work with new spi_base API
3217 (gobject-based, rather than AtkObject-based).
3219 * registryd/Makefile.am:
3220 Minor revision of makefile to use XTST_LIBS variable rather than
3221 hard-wiring the Xtst LD_ADD element.
3223 * test/keysynth-demo.c:
3224 Tweaked an output message; added initialization of the
3225 'keystrings' member of the "switch listener" key_set.
3227 * libspi/relation.c:
3228 Squashed compile-time warning.
3230 * libspi/accessible.c:
3231 Cosmetic and formatting fixes, renamed a static method.
3233 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3235 * libspi/accessible.c
3237 * libspi/application.c
3240 * libspi/component.c
3241 * libspi/editabletext.c
3242 * libspi/hyperlink.c
3243 * libspi/hypertext.c
3245 * libspi/selection.c
3249 * registryd/desktop.c:
3250 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3252 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3254 * idl/Accessibility_Registry.idl:
3255 Added boolean member 'is_text' to DeviceEvent. This is for the
3256 use of key events, and helps prevent ambiguity between composed
3257 key strings and keysym names, since both may potentially be
3258 returned in the 'event_string' member.
3260 * at-bridge/bridge.c:
3261 * registryd/deviceeventcontroller.c:
3262 Use the 'is_text' member when notifying device event listeners.
3263 Knon issue: composed characters are not dealt with correctly by
3264 the global key listener implementation yet.
3266 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3268 * at-bridge/bridge.c:
3269 Namespaced local static methods to spi_atk_bridge_* where
3270 previously named bridge_*, and spi_* elsewhere.
3272 * at-bridge/bridge.c:
3273 * cspi/bonobo/cspi-bonobo-listener.c:
3274 Added demarshalling/conversion for string member of
3275 Accessibility_DeviceEvent to AccessibleKeystroke.
3277 * registryd/deviceeventcontroller.c:
3278 Added code to fill the Accessibility_DeviceEvent key string value
3279 member for global key events (i.e. from XGrabKey), to match
3280 behavior of Accessibility_DeviceEvent from the toolkit key events
3281 from the bridge. Fixed timestamp in global key event notifications.
3284 Added printout of key event's string value to
3285 report_ordinary_key_event, for demo/debugging purposes.
3287 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3289 * idl/Accessibility_Registry.idl:
3290 Removed Accessibility_KeyStroke structure in favor of generic
3291 Accessibility_DeviceEvent structure.
3292 Changed Accessibility_ControllerEventMask from a struct to an
3295 * at-bridge/bridge.c:
3296 Changed APIs to use DeviceEvent structure as above, and removed
3297 bogus casting between these event structures.
3299 * cspi/spi-listener.h:
3300 Added keystring member of AccessibleKeystroke structure, to enable
3301 matching on event "names" rather than only hardware codes and
3305 Added keystrings member of AccessibleKeySet struct, to allow
3306 matching on event names (as above).
3307 Added declarations for SPI_createAccessibleKeySet and
3308 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3309 event modmasks directly as unsigned ints rather than structs with
3310 refcounts, in the DeviceEventController methods.
3312 * cspi/spi_registry.c:
3313 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3315 * cspi/spi-roletypes.h:
3316 Added documentation of newly added SPI Roles.
3318 * cspi/bonobo/cspi-bonobo-listener.c:
3319 Changes in support of API changes above.
3321 * libspi/accessible.c:
3322 Converted APIs to use DeviceEvent structure (see IDL changes
3325 * registryd/deviceeventcontroller.c:
3326 Added DEControllerGrabMask structure to track keygrabs not only by
3327 modmask but by keyset as well; this allows us to do "global"
3328 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3329 grabbing on AnyKey and then filtering after-the-fact.
3330 Bugfixes for event filtration mean that we don't get false matches
3331 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3333 * registryd/deviceeventcontroller.c:
3334 Namespaced a number of static methods to use spi_ prefix. Major
3335 revision to internals of global (i.e. X) key grabs.
3337 * registryd/deviceeventcontroller.h:
3338 Removed keymask_list and added keygrabs_list to
3339 SpiDeviceEventController struct.
3342 Added use of SPI_createAccessibleKeySet API when creating a
3343 listener for only one key. Attach a listener to "shift spacebar
3344 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3345 X key event names to SPI key event names, so that listeners are
3346 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3348 * test/keysynth-demo.c:
3349 Changed (incorrect) use of X key event names (KeyPressed,
3350 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3353 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3355 * libspi/accessible.c:
3356 Convert all AtkRole enumerations to Accessibility_Role enums when
3357 getting a role from an AtkObject.
3359 * cspi/spi_accessible.c:
3360 Complete the conversion of Accessibility_Role enums at runtime to
3361 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3362 role enums correctly match those given in spi-roletypes.h.
3363 Re-synchronize the local names list for AccessibleRole_getName ().
3364 AccessibleRole_getName is now deprecated, since it duplicates the
3365 more reliable Accessible_getRoleName.
3366 Added some role types from Accessibility_Role.idl.
3368 * idl/Accessibility_Role.idl:
3369 Added some role types used by AtkRole.
3371 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3374 * cspi/spi_registry.c:
3376 * cspi/cspi-bonobo-listener.c:
3377 Namespaced all methods that did not begin with an "SPI_" or
3378 "Accessible" prefix to "SPI_".
3381 Homogenized internal function namespace to "cspi_" for statics.
3384 Patched tests to use the new CSPI API.
3386 * docs/reference/cspi/at-spi-cspi-sections.txt:
3387 Updated docs to reflect namespace changes, and added a number of
3388 methods to the documentation.
3390 * registryd/registry.c:
3391 Changed use of strings and string hashes in listener event
3392 matching and parse_event_string to use GQuark, which is guaranteed
3395 * registryd/registry.h:
3396 Squashed annoying warning.
3398 * idl/Accessibility_Role.idl:
3399 Extended range of available Accessibility_Role values.
3401 * cspi/spi_accessible.c:
3402 Re-ordered role names.
3404 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3406 * idl/Accessibility_Value.idl:
3407 Revert use of union back to CORBA_double, since the double type is
3408 more efficient and can contain the other types without loss of
3411 * idl/Accessibility_Accessible.idl:
3412 Added method Accessibility:Accessible:getRoleName, to complement
3413 Accessibility:Accessible:getRole.
3415 * cspi/spi_accessible.c:
3417 Added C binding for above, Accessible_getRoleName (), and changed
3418 signature of Accessible_getRole () to return an AccessibleRole.
3420 * cspi/spi-roletypes.h:
3421 Changed AccessibleRole_getName to return a char * instead of a
3422 const char *. This method is now at least temporarily deprecated
3423 in favor of asking Accessibles for their RoleNames directly.
3426 Revert to match Accessibility_Value.idl;
3430 Change signature of AccessibleValue methods to use double rather
3434 * cspi/spi_accessible.c:
3435 Changed Accessible_getRole to return an AccessibleRole enum rather
3436 than a UTF-8 string. The UTF-8 string can still be obtained via
3437 AccessibleRole_getName ().
3439 * test/test-simple.c:
3440 Add test_action. Small fixup to match API change to Accessible_getRole.
3443 Bugfix for get_action_from_servant ().
3445 2001-12-11 Michael Meeks <michael@ximian.com>
3447 * libspi/libspi.h: remove registry.h and
3448 desktop.h, deviceeventcontroller.h
3450 * libspi/Makefile.am: remove registry.[ch],
3451 desktop.[ch], deviceeventcontroller.[ch]
3453 * registryd/Makefile.am: add registry.[ch],
3454 desktop.[ch], rename registryd.c to registry-main.c.
3455 add deviceeventcontroller.[ch]
3457 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3460 Replace setenv() call with putenv ().
3462 * libspi/component.c:
3463 Bugfix in AccessibleComponent_getExtents (),
3466 2001-12-11 Michael Meeks <michael@ximian.com>
3468 * libspi/image.c (impl_getImageExtents): impl.
3469 (spi_image_class_init): upd.
3472 (AccessibleImage_getImageDescription): fix daft bug
3475 * test/test-simple.c (global_listener_cb): update
3476 to only quit if not --poke
3477 (main): catch --poke.
3478 (validate_accessible): upd. dumping, call test_image
3481 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3484 * idl/Accessibility.idl: update all IDL includes.
3486 * idl/*.idl - rename to namespace - this sucks, blame
3487 mjs' bad decision for oafd.
3489 * test/test-simple.c (create_test_window): add more tests.
3490 (create_tree): split this out.
3491 (validate_accessible): bugfix.
3493 2001-12-11 Michael Meeks <michael@ximian.com>
3495 * cspi/bonobo/cspi-bonobo-listener.c:
3496 (cspi_kestroke_listener_unref),
3497 (cspi_event_listener_unref): impl. undoing previous
3498 homenous environment - for Bill.
3500 * cspi/spi_table.c (long_seq_to_array): use
3503 * cspi/spi_main.c: split out all bonoboish bits into
3506 * cspi/spi-impl.h: upd. typedefs.
3508 * cspi/spi_registry.c: update to lowlevel API,
3509 return booleans to indicate success in some places.
3511 * cspi/spi_event.c: update to lowlevel API.
3513 * cspi/bonobo/Makefile.am: add.
3515 * cspi/bonobo/cspi-lowlevel.h: add
3517 * cspi/bonobo/cspi-bonobo.c: add
3519 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3521 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3522 (SUBDIRS): add bonobo, link in the libs.
3524 * cspi/spi-util.c: kill this file.
3526 * TODO: merge in my bits.
3528 2001-12-11 Michael Meeks <michael@ximian.com>
3530 * test/test-simple.c (test_value, test_table, main):
3531 remove unused variables causing warnings.
3533 * configure.in: cleanup checks - require gail.
3535 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3538 Changed Value interface to use SValue (scalars) rather than
3539 assuming all values are floats. This allows floats, doubles,
3540 longs, shorts, and unsigned values to be manipulated.
3541 Introduced Accessibility:SValue union.
3544 Updated to use new API above, and to work correctly with GValues
3545 of different types in AtkValue.
3548 Updated to use new API above. cspi's API is as yet unchanged.
3551 Updated the Value revision action item.
3553 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3555 * test/test-simple.c:
3556 Added test_table (GtkTreeView widget in test window to follow).
3557 Un-commented test_value, added GtkRange widget.
3558 Added GtkTreeView widget with GtkListStore. It passes regression
3559 test but leaks one SPI object for some reason.
3562 Fixed bug in impl__set_currentValue.
3564 2001-12-10 Michael Meeks <michael@ximian.com>
3566 * cspi/spi_text.c: audit for exception handling,
3567 tolerating NULL object references safely etc.
3569 * cspi/spi_value.c: ditto.
3571 * cspi/spi_table.c (AccessibleTable_getSummary),
3572 (AccessibleTable_getAccessibleAt),
3573 (AccessibleTable_getRowHeader),
3574 (AccessibleTable_getColumnHeader),
3575 (AccessibleTable_getCaption): fix bugs hidden by
3577 (long_seq_to_array): impl.
3578 (AccessibleTable_getSelectedRows),
3579 (AccessibleTable_getSelectedColumns): use it.
3581 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3584 Added a TODO list (rough and short for now).
3586 * cspi/spi_hyperlink.c:
3587 * cspi/spi_hypertext.c:
3588 Fixed macro name typos, and remove use of obsolete macro in
3589 AccessibleHyperlink_getLink.
3591 * cspi/spi_action.c:
3592 * cspi/spi_accessible.c:
3593 * cspi/spi_application.c:
3594 * cspi/spi_component.c:
3595 * cspi/spi_selection.c:
3598 Documentation fixes (removed return values from ref/unref methods).
3600 2001-12-10 Michael Meeks <michael@ximian.com>
3602 * cspi/spi_action.c: audit for exception handling,
3603 tolerating NULL object references safely etc.
3605 * cspi/spi_accessible.c: ditto.
3607 * cspi/spi_component.c: ditto.
3609 * cspi/spi_editabletext.c: ditto.
3611 * cspi/spi_hyperlink.c: ditto.
3613 * cspi/spi_hypertext.c: ditto.
3615 * cspi/spi_image.c: ditto.
3617 * cspi/spi_selection.c: ditto.
3619 2001-12-10 Michael Meeks <michael@ximian.com>
3621 * configure.in: use cspi/libspi.pc.in instead.
3623 * Makefile.am (pkgconfig_DATA): upd. to match.
3625 * test/simple-at.c (report_focus_event): kill hacks around
3626 bad return values, use putenv not setenv
3628 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3629 fire ChildGone - I killed it.
3631 * libspi/component.c
3632 (impl_accessibility_component_get_extents): remove
3635 * idl/Accessible.idl: kill ChildGone exception.
3637 * cspi/*.[ch]: kill int return from ref / unref.
3639 * cspi/spi_main.c (cspi_object_add_check): fold into
3640 (cspi_object_add): here.
3642 * cspi/spi_component.c (AccessibleComponent_getExtents):
3643 handle exceptions elegantly.
3645 * cspi/spi-private.h (cspi_check_ev_return),
3646 (cspi_return_if_fail): impl.
3648 * cspi/spi_accessible.c: use extensively.
3649 (AccessibleStateSet_equals): add direct compare check.
3651 * cspi/spi_selection.c: tolerate NULL objs, and check
3652 exceptions before return.
3654 * cspi/spi-util.c (cspi_warn_ev): rename to
3655 (cspi_check_ev): this & don't pass ev in; no point.
3657 2001-12-10 Michael Meeks <michael@ximian.com>
3659 * test/test-simple.c: use putenv not setenv
3660 (get_environment_vars): more chatty if you're not using
3663 * test/simple-at.c: do the setenv so more people see the
3666 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3668 * libspi/registry.c:
3669 Changed check of CORBA_environment on notification to be a warning
3670 instead of an error for the moment, since we can recover from this
3671 error when caused by a queued notification from a dead app.
3674 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3675 used by all current implementors of AtkValue), and coerce to
3676 CORBA_float. (Proper general case fix may require change to Value.idl).
3678 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3682 * cspi/spi_accessible.c:
3683 Documentation fixes: added user_data params to documentation for
3684 listeners and callbacks.
3686 * cspi/spi_accessible.c:
3687 Changed AccessibleStateSet_compare to return a
3688 StateSet rather than return the difference set into a third parameter.
3691 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3694 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3695 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3699 Remove subdirectory po from SUBDIRS for now.
3701 * at-bridge/bridge.c:
3702 Beefed up a couple of debug printouts.
3703 One-line fix for signal notification name formatting.
3705 * libspi/accessible.c:
3706 Added assertion to spi_accessible_new ().
3708 * libspi/application.c:
3709 Put #ifdef qualifiers around a printf.
3712 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3714 * registryd/Makefile.am:
3716 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3717 INTLTOOL_SERVER_RULE macro.
3720 Added an event listener for several ATK signals, for
3721 testing and debugging. Removed a few g_warnings.
3722 Added test output if focussed item implements the Value interface.
3724 * test/test-simple.c:
3725 Added test_value () function (known not to pass at the moment, so
3726 not actually called yet.
3728 2001-12-08 Michael Meeks <michael@ximian.com>
3730 * at-bridge/bridge.c (bridge_focus_tracker),
3731 (emit_eventv): fix the same ref. leak.
3732 (register_atk_event_listeners): don't leak.
3734 * cspi/spi-listener-impl.c (cspi_event): more
3735 protection from client code.
3737 * test/test-simple.c (test_desktop): unref the app.
3739 * test/Makefile.am: upd. TESTS.
3741 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3743 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3745 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3747 * cspi/spi_registry.c: constify in strings.
3748 (deregisterGlobalEventListenerAll): don't release the ref.
3750 * cspi/spi.h: start removing redundant / conflicting
3751 gtkdoc comments, making the API readable at a glance :-)
3753 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3755 * test/keysynth-demo.c (keysynth_exit, main): upd.
3757 * test/simple-at.c (main, simple_at_exit): upd.
3759 * test/test-simple.c (unutterable_horror): kill.
3760 (utterable_normal_derefs): kill.
3761 (main): upd & do a setenv before gtk_init, so that we
3762 can use memprof - and to save the pain of remembering
3763 this, if we're running under memprof - don't exit.
3765 * cspi/spi_main.c (SPI_exit): return exit status
3767 (SPI_event_quit): impl.
3768 (SPI_event_main): simplify.
3769 (cspi_is_gnome_app): kill.
3770 (SPI_init): kill isGNOMEapp arg.
3772 * at-bridge/bridge.c (register_atk_event_listeners):
3773 re-instate the unref.
3774 (bridge_exit_func): don't re-activate the registry,
3775 protect vs. theoretical re-entry, use the
3776 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3777 assert a clean shutdown - for regression tests.
3779 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3781 * configure.in: Comment out dummy i18n support for now,
3782 otherwise it fails to build.
3783 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3784 EXTRA_DIST. They are missing in tarball.
3786 2001-12-07 Michael Meeks <michael@ximian.com>
3788 * util/magnifier.c: kill bonobo activation reg. race.
3790 * libspi/component.c
3791 (impl_accessibility_component_get_extents): make it match
3794 * libspi/registry.c (_registry_notify_listeners):
3795 re-remove X headers & reconcile conflicts.
3796 (spi_listener_struct_free): bad conflict resolve.
3797 (impl_accessibility_registry_register_application):
3798 more bad merging fixed.
3799 (impl_accessibility_registry_deregister_application): ditto.
3800 (spi_registry_new): ditto.
3801 (spi_registry_init): don't have an applications field.
3803 [ merge fixups2 branch to here ]
3804 2001-12-07 Michael Meeks <michael@ximian.com>
3806 * test/simple-at.c (report_focus_event),
3807 (report_focussed_accessible): remove g_warning debug.
3809 2001-12-07 Michael Meeks <michael@ximian.com>
3811 * test/test-simple.c (validate_tree): comment out some checks.
3812 (test_desktop): app now not registered idly - horay.
3814 2001-12-07 Michael Meeks <michael@ximian.com>
3816 * cspi/spi_registry.c
3817 (registerAccessibleKeystrokeListener): clean, stop it leaking
3818 great swathes of memory, and device event controller references.
3819 ensure we always pass valid sequences.
3820 (deregisterAccessibleKeystrokeListener): ditto.
3821 (generateKeyEvent): upd.
3823 * at-bridge/bridge.c (bridge_key_listener): handle
3824 registry dead exception gracefully.
3825 (bridge_focus_tracker, emit_eventv): free ev.
3827 * test/simple-at.c (report_focus_event): fix polarity.
3829 * libspi/application.c (notify_listeners): kill the ev
3830 argument, and make sure we init the ev we use.
3831 (spi_application_object_event_listener): split out a chunk
3832 (get_atk_object_ref): here & fixup.
3833 (reverse_lookup_name_for_toolkit_event): make const.
3834 (spi_application_toolkit_event_listener): fixup, kill leaks
3837 * at-bridge/bridge.c (register_atk_event_listeners):
3838 don't unref the noop object - causes grief.
3840 * libspi/registry.c: remove the X headers.
3841 turn off the debug churn.
3843 * libspi/accessible.c (spi_accessible_new_return): only
3844 release the ref if we are supposed to [doh]
3846 * test/simple-at.c (report_button_press, report_focus_event):
3847 guard vs. unexpected exit.
3849 * at-bridge/bridge.c (gtk_module_init): prune printf.
3850 (bridge_exit_func): fix app unref.
3852 * libspi/Makefile.am: don't install registry or desktop.h
3854 * libspi/*.h: update includes.
3856 * libspi/application.h: don't include ourself, or
3857 other redundant headers.
3859 2001-12-06 Michael Meeks <michael@ximian.com>
3861 * libspi/accessible.c
3862 (get_accessible_from_servant): impl.
3863 Upd. all CORBA impl.s to use it killing cut and paste.
3865 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3867 (SPI_init): register atexit cleanup handler here.
3869 2001-12-06 Michael Meeks <michael@ximian.com>
3871 * at-bridge/bridge.c (gtk_module_init): g_error on
3872 activation exception
3874 2001-12-06 Michael Meeks <michael@ximian.com>
3876 * at-bridge/bridge.c (gtk_module_init): some sort of
3877 confusing merge clash - reverted.
3878 (bridge_idle_init): ditto.
3880 * test/test-simple.c (main, utterable_normal_derefs):
3881 merge from Bill - somehow not committed.
3883 2001-12-06 Michael Meeks <michael@ximian.com>
3885 * libspi/value.c (spi_value_class_init): upd.
3886 (spi_value_finalize): kill.
3888 * libspi/table.c (spi_table_finalize): kill.
3889 (spi_table_interface_new): upd.
3890 (spi_table_class_init): upd.
3891 (get_table_from_servant): impl.
3892 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3894 * libspi/selection.c (spi_selection_finalize): kill.
3895 (spi_selection_interface_new): upd.
3896 (spi_selection_class_init): upd.
3897 (get_selection_from_servant): impl.
3898 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3900 * libspi/relation.c (spi_relation_finalize): kill.
3901 (spi_relation_class_init, spi_relation_new): upd
3903 * libspi/image.c (spi_image_finalize): kill.
3904 (spi_image_class_init): upd.
3905 (spi_image_interface_new): upd.
3906 (get_image_from_servant): impl.
3907 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3909 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3910 (spi_hyperlink_finalize): kill.
3911 (spi_hyperlink_new): upd.
3912 (get_hyperlink_from_servant): impl.
3913 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3915 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3916 (spi_hypertext_finalize): kill.
3917 (spi_hypertext_class_init): upd.
3918 (get_hypertext_from_servant): impl.
3919 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3921 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3922 (spi_editable_text_interface_new): upd.
3923 (get_editable_text_from_servant): impl.
3924 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3926 * libspi/text.c (get_text_from_servant): impl.
3927 All impls - update to use it killing more cut and paste,
3928 also fix bad string returns on duff args ( a somewhat
3929 impossible case to handle - but hey ).
3930 (spi_text_construct): impl.
3931 (spi_text_interface_new): upd.
3932 (spi_text_object_finalize): kill.
3934 * libspi/component.c
3935 (accessibility_component_object_finalize): kill.
3936 (spi_component_class_init): upd.
3937 (get_component_from_servant): impl. helper to kill cut & paste.
3938 (impl_accessibility_component_contains):
3939 (impl_accessibility_component_get_accessible_at_point):
3940 (impl_accessibility_component_get_position):
3941 (impl_accessibility_component_get_extents):
3942 (impl_accessibility_component_get_mdi_z_order):
3943 (impl_accessibility_component_get_layer):
3944 (spi_component_interface_new): upd.
3946 * libspi/action.c (spi_action_finalize): kill.
3947 (spi_action_class_init): upd. inherit from SpiObject.
3948 (spi_action_interface_new): upd.
3949 (get_action_from_servant): impl. helper to reduce cut & paste.
3950 (impl_getKeyBinding, impl_getName, impl_doAction),
3951 (impl_getDescription): Use it everywhere.
3953 * cspi/spi_main.c (get_live_refs): a pointer hash.
3954 (spi_object_hash, spi_object_equal): comment out.
3955 There are issues with CORBA object hashing that need
3958 * libspi/application.c (spi_application_init),
3959 (spi_application_new): upd.
3961 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3962 (spi_accessible_class_init): upd.
3963 s/accessible/object/ in epv methods.
3965 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3967 * at-bridge/bridge.c:
3968 Reorder the bridge initialization into the bridge gtk_module_init,
3969 an immediate call to bridge_register_app, and an idle_add for
3970 register_atk_event_listeners (the only code that *must* wait until
3971 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3972 the activation, creates the application's Accessible object, and
3973 queues the bridge_idle_init function. Restored call to
3974 Accessibility_Registry_deregisterApplication().
3975 Prior to making this call we obtain a new reference to the
3976 registry, which is a temporary hack that helps us handle apps that
3977 shut down the bonobo mainloop before we get there.
3979 * libspi/registry.c:
3980 Fix string leakage in debug block, and don't segv if a an app
3981 dies before its event notifications have been propagated.
3984 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3985 as stopgap measure until we get proper exception handling when
3986 objects die during or before interrogation.
3990 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3991 Also changed default value of is_gnome_app to TRUE.
3994 * test/keysynth-demo.c:
3995 Changed use of SPI_init and SPI_event_main to reflect API change above.
3998 Made report_focus_event check the warning value from getName
3999 before reporting on focussed accessible; simplifies handling of
4000 notifications from dead objects.
4002 * test/test-simple.c: (Changes not in this patch since source is
4005 2001-12-05 Michael Meeks <michael@ximian.com>
4007 * registryd/registryd.c (main): protect against
4008 bonobo-activation startup race condition.
4010 * cspi/spi_main.c (cspi_object_add_check): cope
4011 with the exception elegantly.
4013 * idl/Accessible.idl: decl. ChildGone
4015 * libspi/desktop.c (spi_desktop_dispose): impl.
4016 (spi_desktop_class_init): upd.
4017 (spi_desktop_add_application),
4018 (spi_desktop_remove_application),
4019 (abnormal_application_termination): impl.
4020 (impl_desktop_get_child_at_index): re-impl.
4023 (impl_accessibility_registry_deregister_application),
4024 (impl_accessibility_registry_register_application):
4025 kill excessive debug clutter.
4027 * test/test-simple.c (test_misc): test some NULL
4028 tolerance. (main): upd.
4030 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
4031 implements no interfaces - so let's not crash.
4033 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
4035 * libspi/accessible.c (spi_accessible_new_return): impl.
4036 helper to calm the cut and paste, to cope with
4037 NULL AtkObjects effectively and efficiently, and to kill
4038 the referencing bugs.
4040 * libspi/table.c (impl_getAccessibleAt),
4041 (impl_getRowHeader, impl_getColumnHeader): upd.
4043 * libspi/hyperlink.c (impl_getObject): upd.
4045 * libspi/accessible.c
4046 (impl_accessibility_accessible_get_child_at_index): upd.
4048 * libspi/component.c
4049 (impl_accessibility_component_get_accessible_at_point): upd.
4051 * test/test-simple.c (test_editable_text, test_text): impl.
4054 * cspi/spi_editabletext.c
4055 (AccessibleEditableText_insertText): constify.
4057 * test/test-simple.c (focus_me): make more robust.
4059 * libspi/accessible.c: remove some printfs in methods that
4060 we test and work fine, so we can get a clean tree dump.
4062 * test/test-simple.c (validate_accessible),
4063 (validate_tree): make tree dumping pretty too.
4065 * at-bridge/bridge.c (bridge_signal_listener): upd. so
4066 it builds without debug on.
4068 * test/test-simple.c (validate_accessible): fix the most
4071 * cspi/spi_main.c (spi_object_release): leave the nicely
4072 blanked memory around if in debug mode.
4074 * cspi/spi-listener-impl.c (cspi_event): use add_check.
4076 [committed to fixups2]
4077 2001-12-05 Michael Meeks <michael@ximian.com>
4079 * libspi/editabletext.c
4080 (spi_editable_text_class_init): g_type_class_peek_parent,
4081 not interface peek - so we finalize cleanly.
4083 * libspi/accessible.c (spi_accessible_new): kill debug.
4085 * test/test-simple.c (validate_accessible): fix ref.
4086 leak, print strings before freeing them; sigh, comment a
4087 chunk out due to strangeness.
4088 (validate_tree): unref the child after use.
4090 * cspi/spi_component.c (AccessibleComponent_getLayer):
4091 add missing break statement, switch on zlayer not the
4092 uninitialized retval.
4094 * cspi/spi_main.c (cspi_object_add): add assert, local ref
4095 before (possibly re-entering) remote unref.
4097 * test/simple-at.c (main): unref the desktop.
4099 * cspi/spi_accessible.c (cspi_accessible_is_a): move
4102 * cspi/spi_main.c (cspi_accessible_is_a): here to
4103 isolate bonobo API usage more.
4105 * libspi/registry.c (impl_accessibility_registry_register_application):
4106 prune bogus comment.
4108 2001-12-04 Michael Meeks <michael@ximian.com>
4110 * test/test-simple.c (validate_tree): upd.
4111 IndexInParent check to make it more lucid.
4112 (validate_accessible): dump the tree.
4114 * libspi/accessible.c (de_register_public_ref),
4115 (get_public_refs): impl.
4116 (spi_accessible_new): make more efficient & intuitive.
4117 Now IndexInParent check works.
4119 2001-12-04 Michael Meeks <michael@ximian.com>
4121 * cspi/spi-util.h: remove.
4123 * cspi/spi.h: move SPI_freeString here
4125 * libspi/component.c (impl_accessibility_component_get_layer):
4127 (impl_accessibility_component_get_mdi_z_order): ditto,
4128 return -1 on error - is this ok ?
4130 * test/test-simple.c (test_application): impl.
4132 * cspi/spi_accessible.c (Accessible_getApplication),
4133 (Accessible_isApplication): impl.
4135 * libspi/registry.c (spi_listener_struct_free): release
4136 the CORBA reference too.
4138 * libspi/accessible.c
4139 (impl_accessibility_accessible_get_parent): fix ref leak.
4141 * libspi/registry.c (spi_registry_new): make the registry
4142 immortal - we don't want it to go away ever.
4144 * libspi/application.c
4145 (spi_accessible_application_finalize): impl. cleanup.
4147 * cspi/spi_registry.c
4148 (deregisterGlobalEventListenerAll),
4149 (deregisterGlobalEventListener),
4150 (deregisterAccessibleKeystrokeListener): fix ref leak.
4152 * cspi/spi_main.c (SPI_init): remove redundant ref.
4154 * test/test-simple.c (unutterable_horror): impl. to force a
4159 (impl_accessibility_registry_deregister_application): release
4160 the application when we de-register it.
4162 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4163 until we have the infastructure to get it right.
4165 2001-12-03 Michael Meeks <michael@ximian.com>
4167 * libspi/Makefile.am: only build eventlistener.[ch]
4169 * libspi/accessible.c
4170 (impl_accessibility_accessible_get_child_at_index): don't leak.
4172 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4173 before we hit the idle handler.
4175 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4176 debugging than exit.
4178 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4180 * libspi/listener.c (impl_notify_event): check source
4181 not NIL before unref.
4183 * libspi/registry.c (impl_registry_notify_event): ditto.
4185 * libspi/eventlistener.c
4186 (impl_accessible_event_notify_event): unref the source.
4188 * libspi/accessibleeventlistener.c
4189 (impl_accessible_event_notify_event): unref the source.
4191 * idl/Event.idl: remove 'hash_id' attribute - of no
4194 * libspi/application.c (notify_listeners): upd list
4196 (spi_application_object_event_listener),
4197 (spi_application_toolkit_event_listener): upd to do correct
4201 (_registry_notify_listeners): update.
4202 (parse_event_type): this method also leaks like a sieve.
4203 (impl_accessibility_registry_deregister_global_event_listener):
4204 fix ETYPE_WINDOW case.
4206 * libspi/application.c
4207 (impl_accessibility_application_register_object_event_listener):
4210 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4212 * libspi/hypertext.c (impl_getLink): ditto.
4214 * cspi/spi_main.c (cspi_object_add): remove
4215 bogus CORBA_Object_duplicate.
4217 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4220 * cspi/spi_accessible.c
4221 (Accessible_getRelationSet): fix leak / referencing issue.
4223 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4224 (cspi_object_add, cspi_object_unref): upd.
4225 (spi_object_release, get_live_refs): impl.
4226 (cspi_cleanup): simplify.
4228 * *.[ch]: s/boolean/SpiBoolean/
4230 * cspi/spi_accessible.c (role_names): actualy order so it
4231 corresponds with the enum !
4233 * test/test-simple.c (test_roles): check some role strings
4234 vs. enums to detect offset errors.
4236 2001-12-01 Michael Meeks <michael@ximian.com>
4238 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4240 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4242 (Accessible_getChildAtIndex): use cspi_add_check so we
4243 check the ev before using a (possibly) invalid value.
4245 * libspi/accessible.c
4246 (impl_accessibility_accessible_get_parent): don't segv
4249 * at-bridge/bridge.c (gtk_module_init): upd.
4250 (bridge_property_event_listener): don't leak strings
4252 (bridge_state_event_listener),
4253 (bridge_property_event_listener): don't use a static
4254 buffer in case of recursive event emission &
4255 re-enterancy - split out the swathe of cut and paste
4257 (emit_eventv): and fix 2 ref leaks here & comply to the
4259 (bridge_register_app): rename to
4260 (bridge_idle_init): this and kill arg parsing, split
4261 various inits & bonobo-activation registration to module
4262 init time, kill referencing error.
4263 (bridge_exit_func): fix the same leak.
4264 (bridge_focus_tracker): don't leak event structures
4266 (bridge_signal_listener): more leakage and cut & paste
4268 (bridge_key_listener): return the result - FIXME is
4269 this polarity correct ?
4270 (accessibility_keystroke_from_atk_key_event): rename
4271 (accessibility_init_keystroke_from_atk_key_event): and stop
4273 (gtk_module_init): return a value - not that it is checked by
4275 (bridge_key_listener): register my horror at casting between
4276 IDL defined structs.
4277 (bridge_get_registry): kill - not used.
4279 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4281 * test/test-simple.c (test_roles): impl.
4282 (test_desktop, validate_accessible, validate_tree): impl.
4284 * cspi/spi_accessible.c (role_names): fixup bogus
4285 MAX_ROLES setup, make constants const for efficient linkage
4286 (AccessibleRole_getName): conform to coding style, make
4289 2001-11-30 Michael Meeks <michael@ximian.com>
4291 * cspi/spi.h: add missing prototype.
4293 * libspi/registry.c (spi_listener_struct_new): fix sig.
4295 * test/Makefile.am: add test-simple
4297 * test/test-simple.c: add
4299 * test/test.sh: add.
4301 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4303 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4304 do it straight - since otherwise we often get an activation race.
4306 [ work before Bill duplicated a chunk of it ... ]
4307 2001-11-30 Michael Meeks <michael@ximian.com>
4309 * libspi/keystrokelistener.c
4310 (spi_keystroke_listener_class_init): fixup arg
4313 * libspi/eventlistener.c
4314 (spi_event_listener_class_init): ditto.
4316 * tests/test.sh: add.
4318 * cspi/spi-listener-impl.h: update macros.
4320 * cspi/spi-listener-impl.c
4321 (cspi_event_listener_remove_callback): add
4322 correct pre-conditions.
4324 * cspi/spi_main.c (SPI_exit): guard vs. double
4325 exits, exit the mainloop nicely.
4326 (SPI_event_main): make more sense.
4327 (SPI_init): move the atexit evilness here so we
4328 always do it (yuck).
4329 (SPI_event_main): upd.
4331 * test/simple-at.c: update for listener changes.
4333 * registryd/registryd.c (main): prune kruft.
4335 * libspi/libspi.h: upd.
4337 * libspi/eventlistener.[ch]: rename broken macros.
4339 * libspi/accessibleeventlistener.[ch]: remove.
4341 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4343 * test/test-simple.c: Add - automated tests.
4345 * cspi/spi-listener-impl.c (cspi_event),
4346 (cspi_key_event): add user_data to invoke.
4347 (cspi_keystroke_listener_finalize): impl.
4348 (cspi_keystroke_listener_class_init): upd.
4351 (createAccessibleEventListener),
4352 (AccessibleEventListener_addCallback),
4353 (createAccessibleKeystrokeListener),
4354 (AccessibleKeystrokeListener_addCallback): upd.
4356 * libspi/deviceeventcontroller.c
4357 (spi_device_event_controller_check_key_event): add public proto.
4360 (impl_accessibility_registry_deregister_global_event_listener):
4361 always init listeners.
4362 (_registry_notify_listeners): yes it is.
4364 * cspi/spi-listener-impl.c (cspi_key_event):
4366 (cspi_event_listener_finalize): impl.
4367 (cspi_event_listener_class_init): hook up.
4368 (event_handler_new, event_handler_free),
4369 (event_list_remove_by_callback): impl.
4370 (cspi_event_listener_remove_callback),
4371 (cspi_keystroke_listener_remove_callback),
4372 (cspi_keystroke_listener_add_callback),
4373 (cspi_event_listener_add_callback): upd.
4375 * libspi/keystrokelistener.c
4376 (keystroke_listener_object_finalize): kill
4377 (spi_keystroke_listener_class_init): upd.
4378 (spi_keystroke_listener_add_callback),
4379 (spi_keystroke_listener_remove_callback): kill,
4381 (impl_key_event): prune drasticaly.
4383 * libspi/eventlistener.c
4384 (spi_event_listener_add_callback),
4385 (spi_event_listener_remove_callback): kill, use
4387 (impl_accessible_event_notify_event): upd.
4388 (spi_event_listener_object_finalize): remove.
4390 * libspi/Makefile.am: use eventlistener.[ch]
4392 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4394 * libspi/registry.c (_registry_notify_listeners):
4395 Changed listener loop iteration to use preferred convention.
4396 Got rid of string memory leaks caused be calling g_strconcat
4397 inside function calls.
4399 * libspi/registry.c (parse_event_type):
4400 Stopped g_strconcat memory leaks, free the g_strsplit return,
4401 g_strdup the split pieces when used, etc.
4403 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4406 Change method 'compare' to return a 'difference set' rather than
4407 taking a StateSet as an out parameter (more Java-friendly).
4409 * idl/Accessible.idl:
4410 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4412 * idl/Component.idl:
4414 Changed methods 'getExtents' and 'getImageExtents' in these
4415 interfaces to return a BoundingBox structure.
4416 (getPosition and getSize are redundant and possibly should be
4417 removed, rather than creating a corresponding Point struct.)
4419 * cspi/spi_component.c:
4420 Modify implementation of getExtents to reflect the above IDL
4425 Add (missing) AccessibleImage_getExtents () API.
4427 * docs/reference/cspi/at-spi-cspi-sections.txt:
4428 Added AccessibleImage_getImageExtents () to docs.
4430 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4432 * idl/Component.idl:
4433 Added two methods, getLayer () and getMDIZOrder (), to reflect
4434 the new ATK methods atk_object_get_layer and
4435 atk_object_get_mdi_z_order. (Which arguably should be part of the
4436 AtkComponent API and AtkObject). Also added an enum,
4437 ComponentLayer, for the first method's return value.
4439 * libspi/component.c:
4440 Added implementations for these methods.
4442 * cspi/spi_component.c:
4444 Added cspi binding methods for above,
4445 AccessibleComponent_getLayer() and
4446 AccessibleComponent_getMDIZOrder().
4447 Added cspi enum 'AccessibleComponentLayer'.
4449 * docs/reference/cspi/at-spi-cspi-sections.txt:
4450 Added above methods to docs.
4454 Changed typedef for 'boolean' type (and all references to it) to
4455 SPIBoolean, to avoid keyword clashes with C++.
4458 Changed usages of 'boolean' to SPIBoolean.
4460 * test/keysynth-demo.c:
4461 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4462 app), except where SPIBoolean is required by the callbacks API.
4464 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4466 * cspi/spi_registry.c:
4467 Removed obsolete X event loop for passive keygrabs (which now
4470 * registryd/registryd.c:
4471 Removed unnecessary call to gdk_init() [cruft]. This also allows
4472 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4475 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4477 * docs/reference/cspi:
4478 Included docs for SPI_freeString in generated documentation.
4481 Renamed spi_freeString to SPI_freeString, for consistency. Added
4482 documentation for this function.
4485 Renamed spi_freeString to SPI_freeString, for consistency.
4486 Removed obsolete method declaration string_from_corba_string.
4488 * test/keysynth-demo.c:
4489 Small tweak to comments.
4492 Stopped leaking the strings returned from CSPI.
4494 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4496 Merged Michael's branch (see his ChangeLog entries below).
4498 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4499 bridge is alive, release on exit.
4501 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4502 Fix type check macro.
4505 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4508 Added is_gnome_app static, and method cspi_is_gnome_app(),
4509 so we can call the appropriate shutdown routine at exit in SPI_exit.
4511 * cspi/spi_main.c (cspi_object_ref):
4512 Duplicate the corba object passed in, since we're keeping it around.
4514 * cspi/SPI_exit.c, cspi_cleanup:
4515 Moved the releasing of the live refs to its own function, so we
4516 can put it in g_atexit (). Call the appropriate shutdown API
4517 depending on whethe calling client is a gnome app or not
4518 (bonobo_main_quit or CORBA_ORB_shutdown).
4520 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4521 Unref the listener when this method is called, after
4522 deregistration. Updated the API docs to note this behavior.
4524 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4525 Bugfixes: Ref the bonobo object when returning a parent or child
4526 reference, or an AccessibleRelation. Generally made sure
4527 BonoboObject refcount is incremented whenever we return an
4530 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4531 Fixed typo/bug in signal declaration.
4533 * libspi/accessibleeventlistener.h:
4536 * libspi/application.c (spi_application_new):
4537 Fixed leak in initialization.
4540 Remembered to increment bonobo-object refcount when returning
4541 children (applications) from desktop object.
4542 Added (empty) finalize method.
4544 * libspi/deviceeventcontroller.c:
4545 Hold a ref to listeners inside DEControllerKeyListeners.
4546 Added dec_key_listener_free() method. Use prepend instead of
4547 append in key_listener list. Fixed some refcount madness and
4548 leaks in the listener registration/deregistration - deregistration
4549 now calls dec_key_listener_free() on listeners, and on the
4550 temporarily constructed dec_key_listener() used to perform the search/match.
4552 * libspi/hypertext.c (spi_hypertest_finalize):
4553 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4554 class. Also fixed spi_hypertext_interface_new() and
4555 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4557 * libspi/hypertext.h:
4558 Removed pointless and duplicate AtkObject pointer from
4561 * libspi/keystrokelistener.c:
4562 Fixed incorrect type of keystroke_listener_parent_class,
4563 renamed keystroke_listener_object_finalize to
4564 spi_keystroke_listener_object_finalize.
4565 Fixed typo in signal declaration
4566 (spi_keystroke_listener_class_init).
4568 * libspi/registry.c:
4569 Added funcsions spi_listener_struct_new() and
4570 spi_listener_struct_free() to help with memory management issues.
4571 We also now use these methods instead of gnew + poking stuff into
4572 the struct, and to decrement listener counts/free the listeners
4573 when deregistering them.
4574 Fix more refcount bugs in getDesktop() and
4575 getDeviceEventController().
4578 De-ref the desktop after enumerating the applications. Explicitly
4579 decrement the refcounts on the created listeners on exit (using
4580 _unref for keystroke listeners, and via the
4581 deregisterGlobalEventListenerAll command for other event
4584 2001-11-27 Michael Meeks <michael@ximian.com>
4586 * cspi/spi-listener.h: fixup enum.
4588 2001-11-27 Michael Meeks <michael@ximian.com>
4590 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4591 (cspi_keystroke_listener_new): Use the cspi variants.
4593 2001-11-26 Michael Meeks <michael@ximian.com>
4595 * test/keysynth-demo.c: fix 2 compile warnings, missing
4598 * test/simple-at.c (report_focussed_accessible),
4599 (report_focus_event, report_button_press),
4600 (check_property_change, is_command_key),
4601 (report_ordinary_key_event, report_command_key_event): upd.
4603 * util/mag_client.h: include pre-requisites.
4605 * libspi/accessibleeventlistener.c
4606 (spi_event_listener_object_finalize): free any lingering
4609 * libspi/keystrokelistener.c
4610 (keystroke_listener_object_finalize): ditto.
4612 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4613 callbacks, with cspi types.
4615 * cspi/spi_event.c (createAccessibleEventListener): chain to
4616 (AccessibleEventListener_addCallback): here.
4617 (createAccessibleKeystrokeListener): chain to
4618 (AccessibleKeystrokeListener_addCallback): here.
4620 * libspi/keystrokelistener.c
4621 (spi_keystroke_listener_class_init): add signal.
4622 (impl_key_event): emit the event.
4623 (boolean_handled_accumulator): impl.
4624 (marshal_BOOLEAN__POINTER): add, gack.
4626 * libspi/accessibleeventlistener.c
4627 (spi_event_listener_class_init): add signal.
4628 (impl_accessible_event_notify_event): emit the signal &
4629 make the loop efficient.
4630 (spi_event_listener_add_callback): prepend the callback.
4632 * libspi/accessibleeventlistener.h: add an 'event' signal,
4633 decl type on callback.
4635 * libspi/keystrokelistener.h: ditto.
4637 * cspi/spi-listener.h: make methods typesafe and
4638 make them use the new event typedefs.
4640 * test/simple-at.c (report_focussed_accessible):
4641 include mag_client.h
4642 Use *(void *)text_interface not the other thing.
4644 * configure.in: add gtk to registryd bits - since we use
4647 * util/magnifier.c: include libbonobo.h
4649 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4651 * test/keysynth-demo.c:
4652 Turned this into a simple scanning keyboard, to demonstrate the
4653 use of g_timeout_add () as a means of creating timers for
4654 scanning, and the use of GtkStyle for visually indicating when
4655 virtual keyboard elements are selected.
4657 keysynth-demo now listens to any keyboard keys with zero-valued
4658 keycodes (i.e. 'unused' keys) and interprets them as
4661 Reworked the shiftlatch code so that shift-down state isn't held
4662 for long periods (it's only synthesized immediately prior to
4663 the keysynth event it's modifying). Note that shiftlatch in this
4664 demo is a convenience, not intended to take the place of AccessX
4665 which is the better choice for getting 'sticky' modifier keys.
4667 * libspi/deviceeventcontroller.c:
4668 * at-bridge/bridge.c:
4669 * cspi/spi_registry.c:
4670 Removed some debug print stuff, and put other verbosity in #ifdef
4675 Implemented some more of the magnifier IDL for the simple
4676 magnifier: namely, getZoomRegionParams.
4677 Added mag_x and mag_y members to MagnifierData struct, aid of this
4679 Added GtkWindow::realize signal handler to magnifier, to keep it
4680 from receiving keyboard focus from the WM.
4682 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4684 * cspi/spi-private.h: my guess at what michael forgot
4685 before he ran off to NZ :-)
4687 2001-11-23 Michael Meeks <michael@ximian.com>
4689 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4690 comment out non existant method invoke so we link.
4692 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4693 use bonobo_exception_get_text for more friendly warnings.
4695 * cspi/spi.c (Obj_Add): move into spi_main & rename
4696 spi_object_add; kill spi.c
4698 * cspi/spi_registry.c
4699 (deregisterGlobalEventListener),
4700 (deregisterGlobalEventListenerAll),
4701 (registerGlobalEventListener): fix exception leaks.
4703 * cspi/spi_main.c (spi_exception): impl. helper, so we
4704 don't leak exceptions.
4706 * cspi/spi_selection.c
4707 (AccessibleSelection_deselectSelectedChild): return the
4710 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4711 (spi_registry): ditto.
4712 (SPI_init): guard against double inits.
4714 * cspi/*.c: use spi_ev (), and spi_registry () where
4715 appropriate - a temporary hack until we have something
4716 better. Use spi_object_add
4718 2001-11-22 Michael Meeks <michael@ximian.com>
4720 * cspi/Makefile.am: re organise, install the headers.
4722 * cspi/*.h: add G_BEGIN/END_DECLS
4724 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4727 Added non-preemptive keylistener for key events with no modifiers
4728 and shift-only modifier.
4730 * libspi/keystrokelistener.c:
4731 Removed some verbose diagnostics printout.
4733 * cspi/spi_registry.c:
4734 Fixed a bug that caused all key listeners to be registered as
4737 * libspi/deviceeventcontroller.c:
4738 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4739 for non-preemptive key masks.
4742 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4744 * docs/reference/idl/at-spi-idl-docs.sgml:
4745 * docs/reference/idl/at-spi-idl-sections.txt:
4746 * docs/reference/idl/at-spi-idl-overrides.txt:
4747 Added missing files.
4749 * docs/reference/Makefile.am:
4750 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4751 to scan the IDL files :-(
4756 Added .cvsignore files.
4758 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4760 * libspi/deviceeventcontroller.c:
4761 * libspi/keystrokelistener.c:
4763 * cspi/spi_registry.c:
4764 Added filters for KeySets, KeyEventSeq, and event types to key
4765 event dispatching, so listeners should only receive those events
4766 that they requested :-)
4768 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4773 * docs/reference:Makefile.am:
4774 * docs/reference/cspi:
4775 * docs/reference/cspi:Makefile.am:
4776 * docs/reference/cspi:tmpl:
4777 * docs/reference/cspi:tmpl:*.sgml:
4778 * docs/reference/idl:
4779 * docs/reference/idl:Makefile.am:
4780 * docs/reference/idl:at-spi-idl-sections.txt:
4781 * docs/reference/idl:at-spi-idl-docs.sgml:
4782 * docs/reference/idl:tmpl:
4783 * docs/reference/idl:tmpl:*.sgml:
4785 Restructured docs directory to allow separate 'reference' docs
4786 section, and forked idl and cspi docs. Added the sgml template
4787 files to CVS. Added the first sections/structural sgml for the
4790 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4792 * configure.in, libspi/Makefile.am: find libXtst.
4794 2001-11-21 Michael Meeks <michael@ximian.com>
4796 * test/accessx-gui.c: s/spi_value/value/ - doh.
4798 * libspi/base.[ch]: add.
4800 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4802 * idl/Accessible.idl:
4803 * idl/Application.idl:
4806 Started gtk-doc cleanup on IDL.
4808 * libspi/deviceeventcontroller.c:
4809 Added and connected non-preemptive key notification from the
4810 toolkits (in addition to the pre-emptive support from XServer
4811 which we had before, but which causes 'focus flashing'). Filters
4812 are presently limited to key modifiers and global/non-global,
4813 KeySets are presently ignored, as are KeyEvent masks.
4815 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4816 structs into the persistant structure rather than just storing
4817 pointers to things that might not persist across servant
4820 The XGrabKey call now does async keygrabs, because synchronous
4821 ones were deadlocking with GDK_event code in a very nasty way.
4823 Added boolean to internal method notify_keylisteners, to indicate
4824 whether the event came from the 'toolkit source' or the 'global
4825 (XServer) source' - this is used in the notification process to
4826 determine which listeners to send the event to.
4828 deviceeventcontroller.c is now warning-free.
4830 * libspi/registry.c:
4831 Fixed regression in application de-registration.
4832 Also fixed some really brain-dead weirdness having to do with
4833 event dispatching - event structs are now duplicated before being
4834 re-marshalled in the dispatch to listeners. This also fixes a
4835 Solaris build problem.
4838 2001-11-20 Michael Meeks <michael@ximian.com>
4841 (impl_accessibility_registry_deregister_global_event_listener):
4844 * libspi/deviceeventcontroller.c
4845 (spi_device_event_controller_check_key_event): return
4846 FALSE on no virtual method.
4848 * libspi/*..h: make includes work on a correctly pathed install.
4850 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4852 * libspi/application.h: kill unused ( and whacked out )
4853 gboolean *spi_application_set_id (AtkObject *app, long id);
4855 2001-11-20 Michael Meeks <michael@ximian.com>
4857 * libspi/*.[ch]: further convert to bonobo's type func
4858 macros, remove redundnant casts etc.
4860 * libspi/text.c s/accessibility_text/spi_text/g,
4861 re-order to de-cruft.
4863 * libspi/hypertext.c: re-order to kill a huge slew
4864 of redundant forward decls.
4866 * libspi/relation.c: ditto.
4868 * libspi/image.c: ditto.
4870 * */.cvsignore: update
4872 2001-11-20 Michael Meeks <michael@ximian.com>
4874 * libspi/deviceeventcontroller.c
4875 (_controller_register_with_devices): use g_getenv,
4876 kill stdlib.h include.
4878 * libspi/keystrokelistener.c
4879 (spi_keystroke_listener_get_type): kill
4880 (spi_keystroke_listener_class_init),
4881 (spi_keystroke_listener_init): rename to this.
4883 * libspi/text.c (impl_getAttributes): fix warning / bug.
4885 * libspi/*.[ch]: more headers, includes and over commenting.
4887 2001-11-20 Michael Meeks <michael@ximian.com>
4889 * libspi/*.[ch]: fixup headers, includes and over commenting.
4891 * libspi/image.c (impl__get_imageDescription): const
4892 correctness warning fix. remove redundant casting.
4894 * libspi/table.c (impl_getRowDescription): ditto.
4895 (impl_getColumnDescription): ditto.
4897 * libspi/libspi.h: add.
4899 2001-11-19 Michael Meeks <michael@ximian.com>
4901 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4903 * libspi/component.c (accessibility_component_get_type):
4904 rename to (spi_component_get_type): and macroify.
4905 (accessibility_component_init): rename to
4906 (spi_component_init): this
4907 (accessibility_component_class_init): rename to
4908 (spi_component_class_init): this
4910 * libspi/action.c (spi_action_get_type): kill, use the macro.
4912 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4915 * libspi/application.c (spi_application_object_event_listener),
4916 (impl_accessibility_application_register_object_event_listener):
4917 warning fixes / const understanding updates.
4919 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4922 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4924 * libspi/spi_accessible.c: Added docs and C bindings for
4925 AccessibleStateSet. (No implementations yet). Documentation
4926 coverage for C bindings now 100%. Made docs for event listeners
4931 boolean notifyListenersSync (in DeviceEventListener listener,
4932 in DeviceEvent event);
4934 oneway void notifyListenersAsync (in DeviceEventListener listener,
4935 in DeviceEvent event);
4937 Added DeviceEventListener and DeviceEvent structs (may deprecate
4938 KeyStroke and KeystrokeListener in favor of this generic
4939 event/listener framework for devices).
4941 * libspi/deviceeventcontroller.c:
4943 Changed some key listener code to take masks, etc., and paved the
4944 way for integration of toolkit/non-preemptive key events. Changed
4945 signatures of some internal methods.
4947 * at-bridge/bridge.c:
4948 Fixed regression connecting to interface signals, apparently
4949 caused by GTK+ changes.
4951 Added an internal bridge_state_listener to deal with
4952 property-change:accessible-state signals.
4954 Changed the key_listeners GList to store structs (including masks,
4955 etc.) instead of just CORBA_Objects (required for full
4956 implementation of key listener API).
4958 Connected the bridge to all currently supported Atk signals.
4959 Events now supported:
4960 object:property-change
4961 object:property-change:accessible-name
4962 object:property-change:accessible-state
4963 object:property-change:accessible-description
4964 object:property-change:accessible-parent
4965 object:property-change:accessible-value
4966 object:property-change:accessible-role
4967 object:property-change:accessible-table-caption
4968 object:property-change:accessible-table-column-description
4969 object:property-change:accessible-table-column-header
4970 object:property-change:accessible-table-row-description
4971 object:property-change:accessible-table-row-header
4972 object:property-change:accessible-table-summary
4973 object:children-changed
4974 object:visible-data-changed
4975 object:selection-changed
4976 object:text-selection-changed
4978 object:text-caret-moved
4980 object:row-reordered
4982 object:column-inserted
4983 object:column-reordered
4984 object:column-deleted
4985 object:model-changed
4987 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4989 * libspi/hyperlink.c,h:
4990 Fixed some broken stuff in hyperlink.
4992 * libspi/relation.h:
4993 * libspi/relation.c:
4994 * cspi/spi_accessible.c:
4995 Initial implementations of AccessibleRelation methods, and docs.
4997 * libspi/accessible.c:
4998 Fixed a bug that caused SEGV if an accessible
4999 object's description is NULL, and a client
5000 requests it. An empty string is now returned.
5002 * cspi/spi_editabletext.c:
5003 * cspi/spi_hypertext.c:
5005 * cspi/spi_hyperlink.c:
5009 Doc coverage now 95%.
5011 2001-11-16 Bill Haneman <bill.haneman@sun.com>
5013 One last namespacing revision:
5014 * libspi/accessibleeventlistener.[ch]:
5015 Renamed SpiAccessibleEventListener to SpiEventListener,
5016 (no need for two namespaces ;-)
5018 And lots of documentation fixes:
5020 * docs/at-spi-docs.sgml:
5021 Fixed 'underscore vs. hyphen' bug that was preventing
5022 the gtk-doc API docs from being automatically generated.
5025 * cspi/spi-listener.h
5027 * cspi/spi_accessible.c
5029 * cspi/spi_application.c
5030 * cspi/spi_component.c
5031 * cspi/spi_editabletext.c
5033 * cspi/spi_hypertext.c
5035 * cspi/spi_registry.c
5036 * cspi/spi_selection.c
5040 * docs/at-spi-docs.sgml
5041 * docs/at-spi-sections.txt
5043 Added and fixed up gtk-doc documentation in cspi.
5045 Interfaces now (fully) documented (subject to revision and enhancement):
5047 Event Listener Support
5049 AccessibleApplication
5053 AccessibleEditableText
5060 AccessibleRelationSet
5065 2001-11-14 Bill Haneman <bill.haneman@sun.com>
5067 * at-bridge/bridge.c:
5068 Initial work for toolkit-level key snooper connection by bridge.
5073 New typedefs and fixes to support new namespacing, and cleaner
5074 separation of cspi bindings from libspi bonobo implementation.
5075 Removed inconsistent and extraneous Spi* namespace prefix that
5076 had crept into cspi headers.
5077 Lots of comment fixes that sed had missed.
5079 * cspi/spi-roletypes.h:
5080 * cspi/spi-statetypes.h:
5081 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
5082 to AccessibleRoleType.
5084 * libspi/accessibleeventlistener.h:
5085 Fixed minor namespacing weirdness.
5087 * libspi/deviceeventcontroller.c:
5088 Reordered some internal API for device listeners.
5089 Changed the key registry final boolean to 'is_system_global'
5090 rather than 'is_synchronous', which is more descriptive of its
5092 Added spi_device_event_controller_new().
5093 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
5095 * libspi/keystrokelistener.[ch]:
5096 Namespaced KeystrokeListener to SpiKeystrokeListener.
5097 Changed uses of keymasks to use SPI_ prefix, and did other
5100 * libspi/keymasks.h:
5101 Namespaced keymask constants with SPI_ prefix.
5103 * libspi/registry.c:
5104 Some warning fixes, and knock-on fixes from namespace changes.
5107 Added rules for accessx-gui test program.
5109 * test/accessx-gui.c:
5110 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5111 utility. It doesn't actually use at-spi, but it's still cool and
5114 * test/keysynth-demo.c:
5118 Fixes so that these test clients work properly with the namespaced
5119 libraries. (Incompletely tested for technical reasons, fixes may follow)
5122 2001-11-13 Michael Meeks <michael@ximian.com>
5124 * libspi/application.c
5125 (impl_accessibility_application_get_version),
5126 (impl_accessibility_application_get_toolkit_name):
5128 (impl_accessibility_application_set_id),
5129 (impl_accessibility_application_get_id): remove
5130 redundant casting code.
5132 * libspi/action.c (impl_getDescription): fix warnings.
5134 * libspi/accessible.c
5135 (impl_accessibility_accessible_get_parent),
5136 (impl_accessibility_accessible_get_child_at_index),
5137 (impl_accessibility_accessible_get_state),
5138 (impl_accessibility_accessible_get_relation_set):
5139 warning fixes & include action.h
5141 2001-11-13 Michael Meeks <michael@ximian.com>
5143 * *.[ch] fix bits I screwed up:
5145 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5146 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5148 2001-11-13 Michael Meeks <michael@ximian.com>
5150 * *.[ch] Namespace libspi into spi_ and Spi.
5152 2001-13-11 Michael Meeks <michael@ximian.com>
5154 * Makefile.am: dist & install at-spi-1.0.pc
5156 * libspi/Makefile.am: install into at-spi-1.0
5158 * idl/Makefile.am (idldir): install into at-spi-1.0
5160 * at-spi-1.0.pc.in: add.
5162 * configure.in: build it.
5164 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5166 * test/keysynth-demo.c:
5167 Use a 'realize' signal-handler to set the WM properties for
5168 the virtual keyboard, rather than making it a "POPUP" type
5169 override-redirect window (thanks to anders carlsson for that
5172 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5175 * test/keysynth-demo.c:
5176 Added new test of key synthesis, which creates a simple
5177 (mouse-operated) onscreen keyboard. It inserts key events into
5178 the currently-focused window, thus it does not grab keyboard focus
5181 * cspi/spi_registry.c:
5182 Added C binding for AT-SPI generateKeyEvent.
5184 * libspi/deviceeventcontroller.c:
5185 Added call to XFilterEvent so that key listener works with XIM (we
5186 hope). Added event_synth_type to generateKeyEvent, so that we can
5187 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5188 synthesize a press/release pair for KeySyms.
5190 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5192 * libspi/Makefile.am:
5193 * registryd/Makefile.am:
5194 (temporary) hack to include libXtst in libspi and registryd.
5195 (Needed for keystroke synthesis, see below).
5198 Improved API for registerKeystrokeListener, in accordance with
5199 discussions with Gnopernicus team and X server research.
5201 * libspi/registry.c:
5202 * libspi/deviceeventcontroller.c:
5203 * libspi/accessible.c:
5204 * libspi/keystrokelistener.c:
5205 Changes and fixes to support keylisteners for potentially
5206 consumed key events (that is, 'passive grabs').
5207 Added implementation for generateKeyEvent() [untested].
5210 Changes to registerKeystrokeListener() API, as above.
5211 Added deregisterGlobalEventListenerAll(), and
5212 deregisterKeystrokeListener(), which are needed for clean exit of
5214 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5215 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5217 * cspi/spi_registry.c:
5218 Added implementations of function prototypes mentioned above.
5220 * registryd/registryd.c:
5221 Added the key listener event source as a g_timeout(), to allow
5222 receipt of key events that are not caught by GDK (since GDK
5223 doesn't support passive keygrabs, this was necessary).
5226 Changed to attach a keylistener to 'Alt' keys, and
5227 respond to the following keycommands: Alt-M (toggle magnifier);
5228 Alt-F (toggle speech); Alt-Q (quit).
5229 Added an exit routine to deregister the listeners, and a key
5230 listener that prints some key info to the console when a key
5231 matches the listener mask (and is thus received by the listener).
5233 * util/idl/Magnifier.idl:
5234 Changes to magnifier API to support multiple zoom regions,
5235 non-uniform scaling in x and y, markDirty, and a host of other
5236 features that would be useful to magnification.
5239 * util/mag_client.c:
5240 * util/mag_client.h:
5241 * util/mag_control.c:
5243 Source code changes to support the above IDL changes.
5246 As above, and also changes to use a (slower) generic conversion
5247 path for colormap conversions, since the fast RGB conversions have been
5248 reported to fail for 16-bit displays.
5250 2001-10-26 Michael Meeks <michael@ximian.com>
5252 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5254 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5256 * at-bridge/Makefile.am: fix LDFLAGS.
5258 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5260 * at-bridge/bridge.c:
5261 Re-worked listeners for toolkit events, now we have signal
5262 and property listeners. Added a private method
5263 register_atk_event_listeners(), which registers with the
5264 various atk and gtk signals we need to monitor in order to emit
5266 Added emission hook for AtkObject:property-change events, to
5267 support the 'property listeners'.
5268 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5271 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5272 which emit warnings and exit, respectively, if CORBA errors occur
5273 during remote calls, and we now use these methods to check most of
5274 our CORBA calls in the C bindings.
5276 * cspi/spi_accessible.c:
5277 Changed AccessibleSelection_refSelectedChild() to
5278 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5279 now increment refcounts.
5281 * cspi/spi_component.c:
5282 Fixed some long pointer casts (dangerous!) to pass pointers to
5283 CORBA_longs of the proper type to the CORBA stubs, and copy the
5284 data into the longs that were passed into the C bindings code.
5286 * at-bridge/bridge.c:
5288 * libspi/accessible.c:
5289 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5290 hyperlinks, AtkHyperlink is an object type.
5292 * libspi/application.c:
5293 Added various conversions to and from "generic" event types and
5294 atk-specific types; this is really part of the 'bridge'
5295 implementation but is valid for all AtkObject-based accessibility
5298 * libspi/editabletext.c:
5299 Fixed nasty bug wherein editable text's finalize method was
5300 unref'ing tha AtkObject reference that the text parent class was
5301 about to unref _again_. There was also a nasty inheritance bug
5302 that meant that the AccessibleEditableText class was corrupt.
5304 * libspi/selection.c:
5305 Provided implementations for some selection API that was broken.
5307 * idl/Application.idl:
5308 Added registerObjectEventListener () method.
5311 Fixed a number of return values that were Bonobo_Unknowns from
5312 bonobo_object_corba_objref(), which I
5313 forgot to dup before returning. Changed instances of
5314 bonobo_object_corba_objref (bonobo_object(o)) to
5315 BONOBO_OBJREF(o), for concision and clarity.
5317 2001-10-13 Louise Miller <louise.miller@sun.com>
5319 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5320 idl/Event.idl, idl/Registry.idl
5321 Changed these files to include Bonobo_Unknown.idl instead
5324 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5326 * libspi/component.c libspi/component.h:
5327 Fixed typo. Added assertions for object checks in
5328 AccessibleComponent code.
5330 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5332 * idl/Accessible.idl:
5333 Added 'isEqual (Accessible *object)'
5334 method for Accessible. (Not Yet Implemented).
5337 Changed signature of registerKeystrokeListener() to
5338 take a KeySet and KeyEventSeq so that specific keys and event
5339 types could be requested for monitoring, and added a flag
5340 is_synchronous so that either synchronous or asynchronous
5341 notification could be requested. (However this is not all
5342 implemented yet). This also meant adding two new typedefs,
5343 KeyEventSeq and KeySet.
5346 Added two new relations, RELATION_TOOLTIP_FOR and
5347 RELATION_LEAFNODE_OF.
5350 Added new state, STATE_HAS_TOOLTIP.
5352 * libspi/text.c, editabletext.c:
5353 Added new assertions to all casts of bonobo-objects from
5354 CORBA servants, to prevent Text API calls on non-text objects.
5355 Changed suspect casts of int-pointer types, so that we
5356 always send a valid CORBA_long pointer to the CORBA APIs that use
5357 in/out long parameters. We then have to copy from the CORBA_long
5358 into the regular long or int for return to the C bindings, or
5359 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5362 * libspi/deviceeventcontroller.c:
5363 Cleaned these sources up.
5365 Changed return type for getCharacterAtOffset to
5366 CORBA_unsigned_long, to allow for 32-bit characters.
5369 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5373 Fixed 'make dist' so that distro compiles...
5374 * libspi/keymasks.h:
5376 * cspi/spi-listener.c:
5377 KeystrokeListenerCB now returns a boolean.
5379 Added KeyEventType struct, and KeyStroke.
5380 Also added createKeystrokeListener(),
5381 KeystrokeListener_addCallback(),
5382 KeystrokeListener_removeCallback(), and added a keymask to
5383 registerKeystrokeListener().
5384 * cspi/spi_accessible.c:
5385 Changed numerous return types for interfaces from
5386 AccessibleComponent to Accessible<InterfaceName>; this was
5387 probably a cut-and-paste error.
5389 Implementations of new KeystrokeListener api (from spi.h,
5392 Changes to key modifier mapping.
5393 Created ControllerEventMask struct.
5394 Made DeviceEventController derive from Bonobo::Unknown.
5396 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5397 * libspi/deviceeventcontroller.c:
5398 Added a number of new internal (private) methods.
5399 * libspi/editabletext.c:
5400 * libspi/editabletext.h:
5401 Fixed a number of bugs related to the fact that
5402 editabletext inherits from text. Fixed the EditableText struct,
5403 the init() call, and use correct casts when calling Text methods
5404 from an EditableText object. Removed (duplicate) atko from the
5405 EditableText structure, we use the one in the parent Text
5406 structure via the casts mentioned above.
5407 * libspi/keystrokelistener.[ch]:
5408 * libspi/registry.c:
5409 Changes in support of keyboard handling (above).
5411 Keyboard handling, though partly functional, is still not
5412 recommended for at-spi client use as there is considerable
5413 work yet to be done.
5416 Changed some places where pointers to various int types
5417 are cast to be pointers to CORBA_long types and vice-versa:
5418 pointer casting is not safe so we pass pointers of the correct
5419 types and then cast the result before putting it into the target
5422 * libspi/text.h: minor typos corrected.
5424 We now speak not only the name of a Text element, but the
5425 first sentence of its content, when it receives focus.
5426 I also changed the text compression to 75% from 50%.
5427 * util/Accessibility_Util.server.in:
5428 Changed the default magnifier type to be a 3x vertical
5429 splitscreen magnifier (was previously a 2x horizontal one).
5431 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5433 * libspi/keystrokelistener.h:
5434 * libspi/keystrokelistener.c:
5435 Initial functional implementations of KeystrokeListener.
5438 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5440 Fixed string handling for NULL strings in libspi.
5441 Added spi_freeString to free strings returned by C bindings.
5443 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5445 * libspi/keystrokelistener.h:
5446 * libspi/keystrokelistener.c:
5447 Began (no-op) implementations of KeystrokeListener
5449 * libspi/deviceeventcontroller.c:
5450 * libspi/deviceeventcontroller.h:
5451 Began creating implementations of DeviceEventController,
5452 to handle keystroke and mouse event listening and
5454 * libspi/accessible.c:
5455 Stubbed-in the implementations for
5456 Accessibility_Accessible_getState and
5457 Accessibility_Accessible_getRelationSet.
5458 * libspi/registry.c:
5459 Improved de-registration process and fixed some bugs,
5460 deregistration now works correctly.
5462 Added initialization of applications list (to NULL).
5464 Reduced speech compression from 0.5 to 0.7, for demo.
5465 Changed call to gdk_window_set_decorations()
5466 to gtk_window_set_decorated().
5467 * at-bridge/bridge.c:
5468 Bridge now deregisters when app exits, via
5469 registration of a cleanup function
5470 with the g_atexit() call.
5471 Required making 'app' static, renamed 'this_app'.
5472 Fixed broken use of bonobo_init, passing argv wrongly.
5474 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5478 Created a new directory for
5479 accessibility-related utilities, primarily for
5480 testing and demo purposes, but with possible
5487 Onscreen magnifier utility that
5488 is implemented as a bonobo service.
5490 * util/mag_client.c:
5491 * util/mag_client.h:
5492 Client-side support (simple C bindings)
5493 for Magnification service
5495 * util/mag_control.c:
5496 Client program example for
5497 Magnification service
5499 * util/Accessibility_Magnifier.server.in:
5500 Bonobo-activation file for the
5501 Magnification service.
5504 * util/idl/Magnifier.idl:
5505 IDL defining the bonobo Magnification
5509 Modifications to use the bonobo-activated magnifier
5510 above, in place of trying to connect to an existing
5511 magnifier that uses socket-listening IPC.
5513 If env variable MAGNIFIER is set, a magnifier service
5514 will be started if one does not exist.
5516 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5518 * at-bridge/bridge.c:
5519 applied patch from Marc to build and run
5520 against new glib and gtk+ (seemed like a change
5521 to bonobo_init signature was made ?)
5523 made festival-server support turned off by default.
5524 Added support for a simple magnifier (off by default)
5525 which will be added to a 'util' directory later.
5526 * at-bridge/Makefile.am:
5527 Changed "application.h" header from a 'source'
5528 to a 'dependency' of libat-bridge.
5530 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5539 Added interface implementation c files to list of
5540 includes so they are included in libcspi.
5543 Changed prototype of AccessibleAction_doAction to return a
5545 Changed prototype of AccessibleTable_getCaption to
5546 return an Accessible.
5547 Changed prototype of AccessibleTable_getSelectedRows
5548 and AccessibleTable_getSelectedColumns to
5549 return a long (returns the number of selected rows
5550 or columns respectively).
5551 Changed name of AccessibleText_refRunAttributes to
5552 AccessibleText_getAttributes.
5553 Changed prototype of AccessibleText_getCharacterExtents to
5554 return a void rather than a boolean.
5555 Added support for a AccessibleCoordType parameter
5556 specifying what type of coordinates are desired.
5557 Added an AccessibleCordType parameter to
5558 AccessibleText_getPointAtOffset.
5560 * cspi/spi_accessible.c:
5561 Added code to return the outstanding interfaces from
5562 Accessible_queryInterface.
5564 * cspi/spi_action.c:
5566 Corrected call to getNActions to call the c binding
5569 * cspi/spi_editabletext.c:
5571 Changed name from setRunAttributes to setAttributes.
5573 * cspi/spi_hyperlink.c:
5575 Changed call to getNAnchors to correctly call the c
5576 binding for an attribute.
5578 * cspi/spi_hypertext.c:
5580 Changed getImageDescription to correctly call the
5581 binding for an attribute.
5583 * cspi/spi_selection.c:
5584 Changed getNSelectedChildren to correctly call the c
5585 binding for the attribute.
5586 Changed refSelectedChild to getSelectedChild.
5590 Changed getCaption to return an Accessible.
5591 Fixed calls which retrieve attributes.
5592 Changed refAt to getAccessibleAt.
5593 Changed getNSelectedRows and getNSelectedColumns to
5597 Changed getCharacterExtents and getPointAtOffset to accept an
5598 AccessibleCoordType.
5600 Changed calls which retrieve attributes.
5601 Changed refRunAttributes to getAttributes.
5606 * idl/Hyperlink.idl:
5607 Changed n_anchors attribute to nAnchors to keep naming
5608 convention consistent.
5611 Made Table inherit from Bonobo::Unknown.
5612 Added nSelectedColumns and nSelectedRows attributes.
5615 Made Value inherit from Bonobo::Unknown.
5617 * libspi/hyperlink.c:
5618 Change for nAnchors attributte name change.
5620 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5628 Added interface implementation c files to list of
5629 includes so they are included in libcspi.
5632 Changed prototype of AccessibleAction_doAction to return a
5634 Changed prototype of AccessibleTable_getCaption to
5635 return an Accessible.
5636 Changed prototype of AccessibleTable_getSelectedRows
5637 and AccessibleTable_getSelectedColumns to
5638 return a long (returns the number of selected rows
5639 or columns respectively).
5640 Changed name of AccessibleText_refRunAttributes to
5641 AccessibleText_getAttributes.
5642 Changed prototype of AccessibleText_getCharacterExtents to
5643 return a void rather than a boolean.
5644 Added support for a AccessibleCoordType parameter
5645 specifying what type of coordinates are desired.
5646 Added an AccessibleCordType parameter to
5647 AccessibleText_getPointAtOffset.
5649 * cspi/spi_accessible.c:
5650 Added code to return the outstanding interfaces from
5651 Accessible_queryInterface.
5653 * cspi/spi_action.c:
5655 Corrected call to getNActions to call the c binding
5658 * cspi/spi_editabletext.c:
5660 Changed name from setRunAttributes to setAttributes.
5662 * cspi/spi_hyperlink.c:
5664 Changed call to getNAnchors to correctly call the c
5665 binding for an attribute.
5667 * cspi/spi_hypertext.c:
5669 Changed getImageDescription to correctly call the
5670 binding for an attribute.
5672 * cspi/spi_selection.c:
5673 Changed getNSelectedChildren to correctly call the c
5674 binding for the attribute.
5675 Changed refSelectedChild to getSelectedChild.
5679 Changed getCaption to return an Accessible.
5680 Fixed calls which retrieve attributes.
5681 Changed refAt to getAccessibleAt.
5682 Changed getNSelectedRows and getNSelectedColumns to
5686 Changed getCharacterExtents and getPointAtOffset to accept an
5687 AccessibleCoordType.
5689 Changed calls which retrieve attributes.
5690 Changed refRunAttributes to getAttributes.
5695 * idl/Hyperlink.idl:
5696 Changed n_anchors attribute to nAnchors to keep naming
5697 convention consistent.
5700 Made Table inherit from Bonobo::Unknown.
5701 Added nSelectedColumns and nSelectedRows attributes.
5704 Made Value inherit from Bonobo::Unknown.
5706 * libspi/hyperlink.c:
5707 Change for nAnchors attributte name change.
5710 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5712 implementations-- made server implementations own AtkObject pointers
5713 rather than their respective AtkInterrface pointers to fix
5714 refcounting. AtkHyperlink is still broken.
5716 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5717 * cspi/spi_accessible.c:
5718 Added method Accessible_Role_getName(),
5719 and requisite string array (role_names).
5720 Added conversion string_from_corba_strin() call
5721 to Accessible_getName and _getDescription.
5722 * libspi/accessible.c:
5723 Added implementation for Accessible_getRole()
5725 Added festival support, used if environment variable
5728 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5730 * at-bridge/bridge.c:
5731 Now allocate Accessibility_Event using
5732 Accessibility_Event__alloc() instead of g_new0().
5733 * libspi/accessibleeventlistener.c:
5734 Initialize AccessibleEventListener->callbacks to NULL.
5735 Fixed accessible__event_listener_init() param, changed to
5736 "AccessibleEventListener *" type.
5737 Changed a bonobo_object_release_unref() call to
5738 Accessibility_Accessible_unref().
5739 * libspi/listener.c:
5740 Changed Bonobo_Unknown_unref to (equivalent)
5741 Accessibility_Accessible_unref.
5742 * libspi/registry.c:
5743 Changed bonobo_object_release_unref to
5744 Accessibility_Accessible_unref.
5746 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5749 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5750 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5751 spi-util.c spi-util.h
5752 Implementations for C bindings to remaining accessibility
5755 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5758 changed return value of Action from void to boolean to
5759 bring in line with ATK.
5762 Changed getText funcions to return "out" start and end offsets.
5763 Changed getAttributes to take and offset and return the start
5764 and end offset of the attribute run.
5765 Changed getOffsetAtPoint and getCharacterExtents to take an
5766 enum describing whether coordinates are window or screen.
5769 libspi/action.c libspi/action.h libspi/editabletext.c
5770 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5771 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5772 libspi/image.h libspi/selection.c libspi/selection.h
5773 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5774 libspi/value.c libspi/value.h
5775 Added server implementations for outstanding ATK interfaces
5776 not yet implemented.
5778 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5781 Added (missing) getName() method.
5782 Made nActions an attribute.
5783 * idl/EditableText.idl:
5784 Changed order of params in setAttributes.
5785 * idl/Hyperlink.idl:
5786 Removed getAnchor, added getURI.
5788 Changed attributes to methods, for efficiency
5789 (so that getting extents can be done in one call)
5790 * idl/Selection.idl:
5791 Changed nSelectedChildren to attribute, and re-indented.
5792 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5794 * idl/Text.idl: reformatted to match our coding style.
5795 (temporarily?) removed getRowColumnAtOffset().
5796 Changed text selection API to support multi-select and
5797 non-contiguous selections, as in ATK.
5798 * idl/Value.idl: changed some methods to attributes.
5800 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5802 * libspi/listener.c(impl_notify_event):
5803 BonoboUnkown_unref the source instead
5804 of bonobo_object_release_unref - the ORB
5805 handles the releasing.
5807 * configure.in: require ORBit-2.3.94 for
5810 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5812 Tagged CVS repository 'EA_1_0'.
5813 * README.EARLY_ACCESS:
5814 Alphabetized acknowledgements list, and
5816 Listed some known dependencies of at-spi.
5818 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5820 * docs/at-spi-docs.sgml:
5821 * docs/at-spi-sections.txt:
5822 * docs/at-spi-overrides.txt: (Added zero-length file)
5823 Documentation improvements - gtk-doc should build
5824 docs for all implemented C bindings now.
5827 * cspi/spi.c: (New file)
5828 * cspi/spi_event.c: (New file)
5829 * cspi/spi_registry.c: (New file)
5830 * cspi/spi_accessible.c: (New file)
5831 * cspi/spi_application.c: (New file)
5832 * cspi/spi_component.c: (New file)
5833 Split spi_main.c into six parts, and included them from
5834 "spi.c". This is a bit of a hack, probably temporary,
5835 but required by gtk-doc, apparently.
5837 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5840 * docs/at-spi-docs.sgml:
5841 * docs/at-spi-sections.txt:
5843 Initial checkins/modifications for gtk-doc generation.
5846 Added (missing) interface query methods to Accessible's C binding.
5848 Added GenericInterface type definition.
5850 Added query for AccessibleComponent interface to focus event handler.
5851 Added printout of bounding box for focussed component.
5852 * libspi/component.c:
5853 Added partial implementation for AccessibleComponent to C binding.
5854 * idl/Application.idl:
5855 * libspi/registry.c:
5856 * libspi/listener.c:
5857 * libspi/application.c:
5858 * libspi/application.h:
5859 Changed "ID" attribute type from string to long.
5861 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5865 Made method naming consistent: methods taking object args
5866 start with uppercase, other methods (except those using
5867 acronyms) start with lowercase. Underscores delimit between
5868 object names and method names:
5869 SPI_init() - uppercase since it starts with an acronym.
5870 getDesktopCount () - lowercase start since no object param0.
5871 Accessible_getName() - uppercase object type name, studlyCaps method
5875 Added gtk-doc documentation for all currently implemented
5876 methods in the C bindings API.
5878 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5880 * Makefile.am : changed build order to build test last.
5883 Changed "createEventListener" to "CreateEventListener".
5884 * libspi/accessibleeventlistener.c :
5885 Bugfix for addition of callbacks.
5886 * test/Makefile.am :
5887 * test/simple-at.c :
5888 Added new test that uses the C bindings API.
5890 * libspi/listener.c :
5891 * libspi/registry.c :
5892 * libspi/accessibleeventlistener.c :
5893 * at-bridge/bridge.c :
5894 Renamed member "target" of Accessibility_Event to "source",
5895 which is more descriptive.
5898 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5902 * cspi/Makefile.am :
5903 Added makefile support for at-spi/cspi directory.
5906 * cspi/spi-listener.h : (NEW FILE)
5907 Added support for/use of spi-listener.h.
5909 C bindings now build successfully, with no warnings.
5910 * libspi/accessibleeventlistener.h : (NEW FILE)
5911 * libspi/accessibleeventlistener.c : (NEW FILE)
5912 * libspi/Makefile.am :
5913 Added new object type "AccessibleEventListener"
5914 which inherits from Listener, and allows attachment
5915 of in-process callbacks (so that a client with a listening
5916 object instance can add functionality to the local
5917 implementation, dynamically).
5919 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5921 * libspi/accessible.c:
5922 Add implementation for get_index_in_parent().
5924 Added #include of "spi-roletypes.h", and
5925 added enumerated type AccessibleCoordType.
5926 Added definition for KeystrokeListener (function type).
5929 * cspi/spi-statetypes.h :
5930 * cspi/spi-roletypes.h :
5932 Added these headers, used by spi.h.
5934 Added code (NOTE: not yet built by make).
5936 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5938 * libspi/Makefile.am: generate imodule
5939 at the same time as other idl compiler
5942 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5943 * libspi/registry.c :
5944 * libspi/application.c :
5945 * idl/Application.idl :
5946 Made registration with toolkit an application method,
5947 which is required since each app has its own toolkit static
5948 environment. Thus the bridge must register for
5949 notification of toolkit events from each application in turn.
5950 Toolkit notifications are now successfully registered for, and
5951 sent to the listening at client.
5953 Changed toolkit event string to use hyphens rather than underscores.
5954 * libspi/listener.c :
5955 listner now gives more info in debug mode - it reports the
5956 name of the event received, as well as the name of the source.
5959 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5961 * libspi/registry.c :
5962 added more implementation for toolkit events.
5963 Fixed bug such that toolkit event registrations
5964 (via atk) use the whole event name string, not
5966 Removed a useless call to an ORBit_ method.
5967 * at-bridge/bridge.c :
5968 Removed unused local sbuf[] variable.
5970 We now register for Gtk:GtkWidget:button_press_event
5971 events as well as "focus:" events.
5973 Add some more API from Registry.idl that was missing,
5974 for keystroke listening, keystroke and mouse event
5975 synthesis, and enumeration of accessible desktops.
5977 2001-08-16 Michael Meeks <michael@ximian.com>
5979 * configure.in: use AM_GLIB_GNU_GETTEXT.
5981 * Makefile.am (SUBDIRS): kill intl.
5983 2001-08-15 Michael Meeks <michael@ximian.com>
5985 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5987 * configure.in: upd.
5989 * configure.in: depend on a recent bonobo-activation that
5990 will find our server files ...
5992 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5994 * libspi/accessible.c : accessible_new() :
5995 Now we add the Component interface via bonobo_object_add_interface,
5996 if the contained AtkObject implements AtkComponent.
5997 * libspi/accessible.h : now include "component.h"
5998 * libspi/component.h :
5999 * libspi/component.c : added files - implementation of
6000 bonobo wrapper object for Accessibility/Component
6001 * libspi/listener.c :
6002 Added test code to check for Accessibility/Component:1.0
6003 interface and report whether it is implemented by the
6005 * libspi/registry.c :
6006 Now we check for not only the hash of the whole event
6007 string before relaying the event, we also check the
6008 "minor" event string (without the detail string).
6009 This allows event listeners to be registered against
6010 all events of a certain major+minor type, or just
6011 against a specific major+minor+detail type.
6012 * libspi/accessible.c :
6013 Added implementations for Accessible:get_parent(),
6014 Accessible:getChildCount(), and Accessible:getChildAtIndex().
6015 * libspi/registry.c :
6016 * libspi/listener.c :
6017 Replaced calls to Accessibility_Accessible_ref() and
6018 Accessibility_Accessible_unref() with
6019 calls to bonobo_object_dup_ref() and
6020 bonobo_object_release_unref(), so that the CORBA object
6021 is dup-ed and released when relayed, as well as the bonobo object.
6023 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6025 * libspi/Makefile.am,
6026 registryd/Makefile.am,
6027 at-bridge/Makefile.am.
6028 test/Makefile.am, configure.in:
6029 reverse previous changes.
6031 * /idl/Image.idl: fix typo.
6033 * test/Makefile.am: put DEBUG_FLAGS
6036 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6038 * test/app.c: use argv[0] instead of
6041 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6043 * libspi/Makefile.am,
6044 registryd/Makefile.am,
6045 at-bridge/Makefile.am.
6046 test/Makefile.am, configure.in:
6047 cleanup, replace individual LIBS/CFLAGS with
6048 AT_COMMON_{LIBS|CFLAGS}.
6052 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6054 * configure.in, libspi/Makefile.am:
6055 Change IDL path checking for bonobo-activation
6058 2001-08-15 Bill Haneman <bill.haneman@sun.com>
6060 * registryd/registry.c : separated event listeners to use
6061 3 separate lists (focus, window, toolkit). Began testing
6062 event names against hashes before relaying events.
6063 * test/at.c : now register for events of type "focus:"
6064 * test/app.c : now generate events of type "focus:"
6065 * at-bridge/bridge.c : register with ATK for focus events,
6066 and we now relay those focus events to any "focus:" listeners.
6067 This now works with the bridge as a GTK_MODULE when running test/at.
6068 * libspi/registry.c :
6069 * libspi/listener.c :
6070 now we ref event sources before propagating, and unref on receipt.
6071 * libspi/registry.c :
6072 some changes to internal structs, to support event typestring hashes.
6073 * text/app.c : changed the way the appname is generated.
6074 * cspi : added directory that will hold the C bindings library for
6075 non-CORBA/bonobo-savvy clients.
6076 * cspi/spi.h : header file that contains the function prototypes for the C binding.
6077 * idl/Component.idl : added in parameter to indicate coord system for
6078 geometry-related calls.
6079 * idl/Hyperlink.idl : added readonly n_links attribute
6080 * idl/Image.idl : changed methods to attributes.
6082 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6084 * at-bridge/Makefile.am: link against
6085 ../libspi/libspi.la instead of -lspi.
6087 * at-spi/test/app.c: include
6088 bonobo-activation.h. Use a default appname
6089 if one is not provided.
6091 2001-08-14 Bill Haneman <bill.haneman@sun.com>
6093 * idl/Registry.idl : temporarily changed register_Application
6094 to oneway, to work around issue with initial registration
6096 * idl/Application.idl : changed attribute "id" from readonly
6097 to read-write, since it needs to be assigned by Registry.
6098 * registryd/registryd.c : added call to set application id
6100 * registryd/registry.c : changed de-registration procedure to
6101 use CORBA_Object_hash() to find matching object ref in application
6102 lists and listener lists.
6103 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
6104 began distinguishing between event types (work in progress).
6106 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6109 * libspi/application.c:
6110 Added implementations for get/set id, get_toolkitName,
6112 * registryd/registryd.c :
6116 Converted from use of OAF to bonobo-activation.
6117 * libspi/desktop.h :
6118 * libspi/desktop.c :
6120 Removed references to atksimpleobject, since base atkobject
6121 implementation now provides functionality we need.
6122 * libspi/atksimpleobject.c :
6123 * libspi/atksimpleobject.h :
6128 * at-bridge/Makefile.am
6129 * at-bridge/bridge.c
6132 Added directory "bridge" and contents, and added dependencies
6133 in Makefile.am/configure.in.
6134 Initial checkin of "at-bridge".
6135 This code is a GTK_MODULE which automatically registers
6136 GTK+ apps with the accessibility registry, using an object
6137 reference to the root ATK object.
6139 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6141 * po/Makefile.in.in: Remove. Again. If this
6142 doesn't get autogenerated - you need to update
6145 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6147 * po/Makefile.in.in: Add. Again.
6149 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6151 * libspi/accessible.c : added support for 'description' property.
6152 * libspi/accessible.c
6154 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6155 (since the two are now equivalent in libbonobo)
6163 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6164 Bonobo::Unknown as does Accessibility::Accessible.
6165 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6166 interface with Bonobo::Stream, since it was redundant with it.
6167 (The Stream returned by a StreamableContext object is expected to
6168 implement only a subset of Bonobo::Stream)
6170 2001-07-28 Anders Carlsson <andersca@gnome.org>
6172 * libspi/accessible.c (accessible_object_finalize): Change
6173 g_free to g_object_unref since the AtkObject is a GObject.
6175 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6177 * idl/Accessibility.idl: add new IDL files
6180 * idl/Action.idl: Definitions of actionable UI object
6181 * idl/Component.idl: Definitions of UI component geometry, etc.
6182 * idl/Hyperlink.idl: Defs of hyperlink behavior
6183 * idl/Image.idl: Def of accessible image
6184 * idl/Selection.idl: Definition of UI object with selectable children
6185 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6186 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6187 * idl/Text.idl: Interface defs for UI elements with complex textual content
6188 * idl/Value.idl: Definition of UI element that is a value controller or display
6190 2001-07-27 Michael Meeks <michael@ximian.com>
6192 * po/Makefile.in.in: remove autogenerated file from CVS.
6194 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6197 * idl/Registry.idl: include guard.
6199 * idl/Accessibility.idl: Add, and include all the other IDL
6202 * idl/*.idl: remove mass of pragmas etc.
6204 2001-07-26 Michael Meeks <michael@ximian.com>
6206 * registryd/Makefile.am (registryd_SOURCES): remove
6209 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6211 * libspi/.cvsignore, registryd/.cvsignore,
6212 test/.cvsignore: updated.
6214 * po/Makefile.in.in: gettext update.
6216 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6218 * initial CVS checkin
6220 2001-06-29 Michael Meeks <michael@ximian.com>
6222 * configure.in: add AM_CONFIG_HEADER to gen config.h