1 2003-06-11 Bill Haneman <bill.haneman@sun.com>
3 * libspi/streamablecontent.h:
4 * libspi/streamablecontent.c:
5 New files, provide implementation/wrappers for
6 Accessibility_StreamableContent.
8 * cspi/spi_streamablecontent.c:
9 Connected the C wrappers to the libspi C bindings.
10 (AccessibleStreamableContent_close): New method.
13 (AccessibleStreamableContent_close): New method, needed
14 since we have an "open, [seek], read, close" model in cspi.
16 2003-06-11 Bill Haneman <bill.haneman@sun.com>
18 Fix for #108664; Padraig's revision of my original patch.
20 * registryd/registry.h:
21 Added event queue list, is_queuing, and exit_notify_timeout
22 to the registry struct.
24 * registryd/registry.c:
25 (registry_init): Initialize new struct from registry.h.
26 (impl_registry_notify_event):
27 Filter events before notifying, in case some need to be
29 (registry_filter_event): New,
30 we defer certain incoming events (for instance
31 window:deactivate) because we may wish to hide
32 or reject them based on pending events. This is
33 mostly a workaround for bug #108664.
34 (registry_queue_event, registry_start_queue): New.
35 (registry_defer_on_event): Test event to see if it
37 (registry_reset_on_event): Returns TRUE if the
38 event should cause a queue reset.
39 (registry_discard_on_event): Returns TRUE if the event
40 should cause the previous queue contents to be discarded.
41 (registry_timeout_flush_queue): Flushes the pending event
42 queue if no reset/discard-triggering events have come in
43 within the timeout period.
44 (registry_emit_event): New.
45 (registry_clone_notify_context): New, used when queueing the
46 event notify contexts.
48 2003-06-10 Bill Haneman <bill.haneman@sun.com>
50 * configure.in: Version revved to 1.3.2, lt 0.9.2
51 Incremented ATK required version to 1.3.4.
53 * cspi/spi_registry.c:
54 (SPI_generateKeyEvent):
55 We now pass the keystring along if it's non-null.
57 * registryd/deviceeventcontroller.c:
58 (keysym_mod_mask): New method, returns modifier mask
59 required to generate a keysym from a given keycode.
60 (dec_synth_keysym): New method.
61 (dec_synth_keystring): New method.
62 (dec_get_modifier_state): New method.
63 (dec_lock_modifiers): New
64 (dec_unlock_modifiers): New.
65 (dec_keysym_for_unichar): New, rather brute-force
66 conversion from UCS-4 to X KeySyms. Only works for
67 Latin at the moment, with partial implementations for
68 Greek, Hebrew, and (incomplete) Katakana.
69 (impl_generate_keyboard_event): Now implement
70 "KEYSTRING" synthesis and implement "KEYSYM"
72 (keycode_from_keysym): Improved, passes a returned
73 modmask value now if the corresponding param is non-NULL.
75 Fixes bugs #92143 and #109776.
78 * test/keysynth-test.c:
79 New test program for key synthesis, to confirm fixes for
83 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
85 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
87 * cspi/spi_accessible.c (cspi_init_relation_type_table):
88 Add line for RELATION_POPUP_FOR
90 * docs/reference/cspi/tmpl/spi_relation.sgml:
91 Add relation SPI_RELATION_POPUP_FOR
93 * docs/reference/cspi/tmpl/spi_stateset.sgml:
94 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
96 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
98 * libspi/relation.c (spi_init_relation_type_table):
99 Add line for RELATION_POPUP_FOR
101 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
103 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
104 there are still windows which have not been deleted and emit
105 window:deactivate, if necessary and window:destroy events.
106 This fixes bug #114370. The change on June 5th was not correct.
108 2003-06-09 Bill Haneman <bill.haneman@sun.com>
110 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
113 (SPI_dupString): Allow dup-ing of a string such that it's safe to
115 New methods for client exception handling and interception.
116 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
117 (SPI_exceptionHandlerPop): You guessed it...
118 (SPI_getSourceType): Return the type of object which offended.
119 (SPI_getExceptionCode): Return an enum code telling, possibly,
120 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
121 (SPIAccessibleException_getSource): get the source object for
122 exceptions that come from Accessibles, if SPIExceptionSourceType is
123 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
124 (SPIException_getDescription): New, returns a string description of
125 the problem. [Not yet a stable ABI, strings are not frozen]
127 * cspi/spi-private.h:
128 Added implementation details of opaque SPIException
132 Implementations of above. Also
133 (_cspi_exception_throw): new private method that
134 dispatches exceptions to handlers, called from cspi-bonobo.c
136 * cspi/bonobo/cspi-bonobo.c:
137 (cspi_check_ev): call _cspi_exception_throw.
138 Don't print a warning message if the exception has been
139 handled by _cspi_exception_throw.
141 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
143 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
144 there are still windows which have not been deleted and emit
145 window:deactivate, if necessary and window:destroy events.
146 This fixes bug #114370.
148 2003-06-03 Bill Haneman <bill.haneman@sun.com>
151 (cspi_accessible_is_a): Make non-fatal
152 if the object reference is dead.
154 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
156 * cspi/spi_main.c: #include <stdio.h>
157 * test/simple-at.c: ditto
158 * test/event-listener-test.c: ditto
159 * test/screen-review-test.c: ditto
161 2003-05-30 Michael Meeks <michael@ximian.com>
163 * test/test-simple.c (main): use CORBA_ORB_perform_work
164 instead of an unnecessary linc_ call.
166 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
168 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
169 Add SPI_STATE_INDETERMINATE.
171 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
174 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
176 * libspi/stateset.c (init_state_type_tables): Add support for
179 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
181 * configure: Update versions of atk and gail required.
182 This fixes bug #113268.
184 2003-05-02 Bill Haneman <bill.haneman@sun.com>
186 * configure.in: Revved micro version to 1.3.1 (because of build fix).
188 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
190 * libspi/Makefile.am:
191 Ensure headers are generated before being used by c sources.
193 2003-05-01 Bill Haneman <bill.haneman@sun.com>
196 Simplified lt versioning rules.
197 Incremented version to 1.3.0, to indicate that we're on the
200 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
202 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
203 Add MKDB_OPTIONS=--outtput-format=xml
205 * docs/reference/cspi/at-spi-cspi-docs.sgml
206 docs/reference/idl/at-spi-idl-docs.sgml:
207 Convert to Docbook XML.
209 This fixes bug #111793.
211 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
213 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
214 AcccessibleKeyEventType, AccessibleKeyMaskType.
216 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
218 * cspi/state-types.h: Add documentation for AccessibleState.
220 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
221 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
222 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
223 AccessibleComponentLayer.
225 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
228 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
230 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
231 Accessible. Add description of AccessibleEvent,
232 AccessibleEventListenerCB.
234 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
237 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
238 documentation. Add description of AccessibleKeystrokeListenerCB,
239 AccessibleKeyEventMask, AccessibleModifierMaskType,
240 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
241 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
243 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
246 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
249 This fixes bug #104730.
251 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
253 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
254 Set is_text field of Accessibility_DeviceEvent data structure.
256 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
257 is-text field of AccessibleDeviceEvent data structure.
259 This addresses part of bug #108666.
261 * registryd/devcieeventcontroller.c: Unset debug option.
263 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
266 (cpi_initial_relation_type_table): New function which initializes
267 mapping between Accessibility_RelationType and AccessibleRelationType.
268 (cspi_relation_type_from_spi_relation_type): New function which
269 translates an Accessibility_RelationType into an AccessibleRelationType.
270 (AccessibleRelation_getRelationType): Use
271 cpi_relation_type_get_spi_relation_type to return correct value.
272 (spi_state_to_corba): Return correct type for default case.
274 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
275 Use Accessibility_EventType instead of Accessibility_KeyEventType.
277 * cspi/cspi-bonobo-listener.c:
278 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
281 * libspi/accessible.c, libspi/action.c, libspi/application.c,
282 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
283 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
284 libspi/image.c, libspi/listener.c, libspi/selection.c,
285 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
286 registryd/desktop.c, registryd/registry.c:
287 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
289 * libspi/eventlistener.c
290 Remove semicolon after BONOBO_TYPE_FUNC.
293 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
294 (spi_init_relation_type_table): Initialize using correct type.
296 * registryd/desktop.c:
297 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
298 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
299 of Accessibility_KeyEventType.
301 * test/key-listener-test.c (report_tab_key_event): Use fprintf
304 * tests/simple-at.c, tests/screen-review-test.c:
305 Add include for <strings.h>.
307 * tests.stress-test.c:
308 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
310 These changes fix compiler warnings when using FORTE compiler on
311 Solaris; fixes bug #107479.
314 2003-04-10 Bill Haneman <bill.haneman@sun.com>
317 * configure.in: revved to 1.1.10
320 (SPI_KEYMASK_NUMLOCK): Added.
322 * registryd/deviceeventcontroller.c:
323 (spi_key_event_matches_listener): AND with a smaller
324 bitmask (as we should).
325 (spi_dec_translate_mask):
326 New method, sets the virtual NumLock modifier bit
327 if numlock is on. Eventually it can handle other virtual
328 modifier bits if needed, or other marshalling from
329 at-spi modifier masks to platform (X) masks.
330 (spi_dec_key_listener_new):
331 Call spi_dec_translate_mask to set up virtual mod bits
332 in the 'mask' field when creating a new listener struct.
333 (spi_dec_emit_modifier_event):
334 Set the virtual (i.e. NumLock) bits before emitting event.
335 (spi_controller_register_with_devices):
336 Query for the NumLock modifier 'physical' bit if Xkb is
337 present, for use in above methods.
341 2003-04-10 Bill Haneman <bill.haneman@sun.com>
343 * registryd/deviceeventcontroller.c:
344 (spi_keystroke_from_x_key_event):
345 Instead of checking to see if the keysym is
346 printable, check the string from XLookupString
347 if available, get the first unicode character from it,
348 and call g_unichar_isprint to determine whether the
349 is_text flag should be TRUE or FALSE.
353 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
355 * atk-bridge/bridge.c: Add support for extended events
356 * cspi/spi_event.c: Add documentation and implementation for
358 * tests/event-listener-test.c: Add tests for extended events.
360 This fixes bugs #100424 and #100426.
362 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
364 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
365 of LT_CURRENT. This fixes bug #89350.
367 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
369 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
370 number of signal parameter values before accessing them. This fixes
373 2003-04-01 Bill Haneman <bill.haneman@sun.com>
375 * configure.in: Fixed duplicate inclusion of -lspi.
376 * branched for gnome-2-2/HEAD.
377 [created tag "gnome-2-2"]
379 2003-03-07 Bill Haneman <bill.haneman@sun.com>
381 * configure.in: 1.1.9 release.
384 2003-03-07 Bill Haneman <bill.haneman@sun.com>
386 [needed by GOK, to fix bugs 107985 and 107988]
387 * registryd/deviceeventcontroller.c:
388 (spi_dec_clear_unlatch_pending):
389 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
390 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
391 (spi_dec_init_mouse_listener):Emit warning if mouse button
393 (spi_device_event_controller_forward_mouse_event):
394 Removed unnecessary parens from a conditional.
395 (global_filter_fn):Added TODO comment.
396 (impl_generate_keyboard_event):
397 Cancel a pending relatch if a 'delatching' key was
400 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
402 * atk-bridge/bridge.c:
403 Change atk_signal_child_changed to atk_signal_children_changed.
404 Reorganize code in spi_atk_bridge_signal_listener().
406 * test/event-listener-test.c:
407 Add children_changed_listener and report_children_changed_event()
408 to test AccessibleChildEvent_getChildAccessible.
410 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
412 * cspi/spi_event.c (cspi_internal_event_get_text): Change
413 g_strdup to CORBA_String_dup (bug #105291)
415 * test/event-listener-test.c (report_text_event): Add call to
418 2003-02-28 Bill Haneman <bill.haneman@sun.com>
420 * registryd/deviceeventcontroller.c:
421 (spi_keystroke_from_x_key_event):
422 Fix string and keysym return codes to match modifier state.
425 2003-02-28 Bill Haneman <bill.haneman@sun.com>
427 * registryd/deviceeventcontroller.c:
428 (spi_keystroke_from_x_key_event):
429 Fix segv due to improper use of isprint(c). [bug #107254]
431 2003-02-24 Bill Haneman <bill.haneman@sun.com>
434 (get_accessible_text_boundary_type):
435 Move default return value to (new) default case in switch.
436 (get_accessible_text_clip_type):
437 Move default return value to (new) default case in switch.
439 * libspi/application.c:
440 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
441 Remove unused methods.
442 (impl_accessibility_application_register_object_event_listener):
443 Remove unused methods.
446 Added #include of <math.h>.
448 * registryd/deviceeventcontroller.c:
449 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
450 we don't currently use this method.
451 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
453 (impl_generate_key_event):
454 Remove unused variables.
455 (impl_generate_mouse_event):
456 Initialize button to zero, just in case we get an invalid
457 input. Added support for mouse buttons 4 and 5.
458 (spi_device_event_controller_new):
459 Removed unused variable declaration for 'private'.
461 Added #include of <gdk/gdk.h>
463 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
465 * configure.in: Update to work when X is not installed in expected
466 location. Fixes bug #105836.
468 * atk-bridge/bridge.c
469 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
471 (spi_atk_register_event_listener): Add signal listener for
473 (spi_atk_bridge_signal_listener): Event event when link-selected
474 signal is emitted. (bug #104622)
476 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
477 on returned string. (bug #105291)
479 * test/event-listener-test.c: Add test for link-selected.
481 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
483 * atk-bridge/Makefile.am: Correct typo in previous commit.
485 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
487 * atk-bridge/Makefile.am: Allow for build directory to be different
488 from source directory
490 * registryd/Makefile.am: Allow for build directory to be different
491 from source directory
495 2003-01-29 Bill Haneman <bill.haneman@sun.com>
498 Fixed dependencies for libcspi so that libspi gets pulled in
499 properly. Fixes 104741.
503 Clean up inline docs a little.
505 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
507 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
508 This is done by implementing AtkComponent for SpiAtkDesktop, which is
509 the AtkObject within an SpiDesktop.
510 This addresses bug #101524.
512 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
513 Remove call to gdk_init().
515 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
516 so that Display is set when SpiDesktop is created.
518 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
520 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
521 This fixes bug #102830.
523 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
525 * test/test-simple.c: Update to take account of fact that GailButton
526 now implements AtkText.
527 (create_text_window): Set name on AtkObject for GtkEntry.
528 (validate_accessible): Check accessible name before calling test_text().
530 * libspi/Makefile.am: Fix problem with building outside of source
531 directory. Bug #98120.
533 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
534 typo in documentation comments. Bug #94275.
536 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
538 * libspi/text.c (impl_getBoundedRanges): Bug fix.
540 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
543 Add includes to avoid compiler warnings on Solaris.
544 (impl_getRangeExtents): Bug fix.
546 2002-12-17 Bill Haneman <bill.haneman@sun.com>
548 Fix for 100944, [API addition approved by Gman and murrayc].
555 * idl/Accessibility_Text.idl:
556 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
557 (Text::getRangeExtents): New method for efficient
558 bounds query of a text range.
559 (Text::getBoundedRanges): New method for efficient
560 clipping of text to bounding boxes.
561 (unImplemented7, unImplemented8):
562 Removed these padding methods to preserve bincompat.
565 (impl_getRangeExtents): implementation of new IDL.
566 (impl_getBoundedRanges): implementation of new IDL.
567 (SpiTextRect): Internal use struct.
568 (_spi_text_rect_union): internal method, calculates union of two
569 SpiTextRect bounding rects.
570 (_spi_text_range_seq_from_gslist): internal method, allows us
571 to build our sequence efficiently as a gslist then convert it
573 (_spi_bounds_contain): internal method, determines whether
574 a text character is "in" or "out" of a clip rect according to
575 values of TEXT_CLIP_TYPE.
576 (spi_text_class_init): Initialize the new methods in the epv.
579 (AccessibleTextClipType): New enum used by screen review api.
580 (AccessibleTextRange): New struct used by screen review api.
581 (AccessibleText_getRangeExtents):
582 cspi binding for Accessibility_Text_getRangeExtents.
583 (AccessibleText_getBoundedRanges):
584 cspi binding for Accessibility_Text_getBoundedRanges.
585 (AccessibleTextRange_freeRanges): convenience method.
588 (AccessibleText_getRangeExtents):
589 cspi binding for Accessibility_Text_getRangeExtents.
590 (AccessibleText_getBoundedRanges):
591 cspi binding for Accessibility_Text_getBoundedRanges.
592 (AccessibleTextRange_freeRanges): convenience method.
593 (get_accessible_text_clip_type): internal conversion method.
594 (get_accessible_text_ranges_from_range_seq): internal conversion method.
596 * registryd/deviceeventcontroller.c:
597 (spi_dec_mouse_check):
598 Improved behavior for mouse:abs events
599 [same granularity as mouse:rel events, and no
600 events when mouse is idle].
602 2002-12-16 Michael Meeks <michael@ximian.com>
604 * cspi/spi_accessible.c (spi_state_to_corba): rename.
606 * libspi/stateset.c (state_spi_to_atk): split out
607 ( fix several remote array bounds nasties )
608 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
609 (impl_remove): make safe from array bounds issues.
610 (spi_atk_state_from_spi_state): impl.
612 * libspi/stateset.h (spi_state_set_cache_is_empty):
613 add a set of wrapper defines to get layering right.
615 * cspi/spi_accessible.c: update state set stuff to
618 2002-12-14 Michael Meeks <michael@ximian.com>
620 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
621 to avoid 2 roundtrips to the registry per key event
622 (spi_atk_bridge_key_listener): upd.
623 (deregister_application): release the dec.
625 * registryd/registry.c (notify_listeners_cb):
626 bin lots of re-enterant complexity - we no longer
627 do a round-trip bonobo ref here, ensure that a single
628 listener's exception failure won't poison all other
630 (impl_registry_notify_event): bin obvious memory leak.
632 2002-12-13 Michael Meeks <michael@ximian.com>
634 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
635 init the ev so the error is meaningful.
636 (spi_atk_bridge_key_listener): ditto.
638 * cspi/spi_main.c (cspi_ev): init the ev so we start
639 with a clean slate, otherwise the first exception
642 * cspi/spi_text.c (get_accessible_text_boundary_type):
643 add a fallthrough for no warnings.
645 * cspi/spi_registry.c: prune unused warnings.
647 * cspi/spi_main.c (cspi_object_take): fix
648 mind-blowing brokenness ( by watching the compile
651 * cspi/spi_accessible.c (Accessible_getStateSet):
652 re-impl. to use an AtkStateSet.
653 (spi_state_type_from_accessible_state),
654 (init_state_table): bin these.
656 * libspi/stateset.c (spi_atk_state_set_from_sequence):
658 (atk_state_set_from_accessibility_state_set): here.
660 * cspi/spi_accessible.c (spi_state_to_atk): impl.
661 (AccessibleStateSet_contains, AccessibleStateSet_ref),
662 (AccessibleStateSet_unref, AccessibleStateSet_contains),
663 (AccessibleStateSet_add, AccessibleStateSet_remove),
664 (AccessibleStateSet_equals, AccessibleStateSet_compare),
665 (AccessibleStateSet_isEmpty): re-write to use a local
668 2002-12-13 Bill Haneman <bill.haneman@sun.com>
670 * configure.in: Revved to 1.1.7 (new keymask vals).
672 2002-12-10 Bill Haneman <bill.haneman@sun.com>
675 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
677 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
680 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
681 to compare two CORBA_TypeCodes.
682 (cspi_internal_event_add): Silence warning from FORTE compiler.
684 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
685 avoid implicit declaration of functions.
687 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
689 * atk-bridge/bridge.c:
690 (spi_atk_bridge_init_event_type_consts): Store signal id for
691 active-descendant-changed signal.
692 (spi_atk_register_event_listeners): Add signal listener for
693 active-descendant-changed signal,
694 (spi_atk_bridge_signal_listener): Move code in function
695 spi_atk-signal_emit_event() into this function.
696 Add support for active-descendant-changed
697 Update support for child-changed signal.
698 (spi_bridge_window_event_listener): Silence warning.
700 * libspi/spi_private.[ch]:
701 (spi_init_any_object): Change second parameter from CORBA_Object to
703 Omit call to CORBA_Object_duplicate().
704 Set CORBA_any's _value to CORBA_Object*.
706 2002-12-06 Bill Haneman <bill.haneman@sun.com>
712 (AccessibleEvent_ref, AccessibleEvent_unref):
713 New methods, for persisting an event outside the emission context.
714 Must be used if the new accessor methods are to be called
715 outside of the event listener's callback.
717 * cspi/bonobo/cspi-bonobo.c:
718 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
719 as second parameter instead of NULL, so we can call
720 cspi_check_ev afterwards.
723 (cspi_object_take): New internal method,
724 converts a CORBA_Object reference to a hard ref on
725 an Accessible if possible, returning NULL if the object
726 reference is invalid or an Accessible * otherwise.
729 (AccessibleEvent_ref):
730 Increment the event's internal private refcount, and
731 add the event's internal struct to an internal cache
732 if it's not already there.
733 (AccessibleEvent_unref):
734 Decrement the event's refcount and remove it from
735 the cspi event cache if refcount==0.
736 (cspi_event_compare): New private method.
737 Compares two event structs via their ids. Used
739 (cspi_internal_event_lookup): New private method.
740 (cspi_internal_event_check): New private method,
741 a 0-order sanity check for events to make sure their
742 private data is intact.
743 (cspi_internal_event_add, cspi_internal_event_remove):
744 New private methods for managiing the event cache.
746 * cspi/bonobo/cspi-bonobo-listener.c:
748 Initialize the new private data elements (id, magic, ref_count).
750 * atk-bridge/bridge.c:
751 (spi_atk_bridge_signal_listener):
752 Fixed bug #100530, passing wrong params to emission func.
754 * registryd/deviceeventcontroller.c:
755 (spi_dec_button_update_and_emit):
756 Fixed type in mask bit operations; fix for #99799.
758 2002-12-02 Bill Haneman <bill.haneman@sun.com>
760 Removed some of the more dangerous workarounds from
761 previous commit; they are only needed by GOK, which
762 in reality should be using another method to accomplish
763 the goals. So on reconsideration some of the workarounds
766 * registryd/deviceeventcontroller.c:
767 (spi_keycodes_contain, spi_dec_init_keycode_list):
768 Removed these methods, used only by a nasty hack to try
769 and detect whether a key synthesis should be allowed
770 to reset the XKB latch state or not. This code was only
771 required to work around an interaction between GOK,
772 button events, and XKB.
773 (impl_generate_key_event):
774 Removed hack at end of key generation that tried to
775 "do the right thing" if XKB latch keys were generated
776 in the midst of button press/release pairs.
779 Added a check for HAVE_XINPUT. Not normally used yet.
781 2002-11-25 Bill Haneman <bill.haneman@sun.com>
783 Workarounds and fixes for mouse event/XKB interaction.
785 * registryd/deviceeventcontroller.c:
786 (spi_keycodes_contain, spi_dec_init_keycode_list):
787 New internal methods.
788 (spi_dec_set_unlatch_pending):
789 Split the method that tells XKB to expect an
790 unlatch (and revert it) out of the rest of the
791 event handling code. This method is called by the
792 two mouse event handlers (the poll and the filter).
793 (spi_dec_update_and_emit, spi_dec_mouse_check):
794 New methods split from spi_dec_poll_mouse_moved.
795 The second one is now called from inside the filterFn
796 when an XKB delatch event is received, to determine
797 whether to revert the delatch or not.
798 (spi_poll_mouse_moved): Refactor; also we can now
799 properly handle the case where multiple button states
800 have changed between polling cycles and we didn't get
801 notified due to another client's grab.
803 Synchronize the server while handling an XKB notification.
804 Ugly, but apparently necessary to avoid nasty races.
805 Check the mouse state on receipt of an XKB latch change,
806 to decide whether to revert the latch or not. (Latches are
807 reverted if there is an immediately preceding mouse button
808 event that a client has consumed, in which case we don't want
809 the user to see the side-effect of the event).
810 (spi_device_event_controller_forward_mouse_event):
811 Check for modifier events and fire before resetting mouse_mask_state,
812 prevents losing modifier events.
814 (impl_generate_keyboard_event):
815 If we've just generated a keyboard event for a non-shift key,
816 we don't want to revert the pending XKB latch.
817 Otherwise, check the modifier state (via a call to
818 spi_dev_mouse_check) and set the relatch mask to
819 that state before returning.
821 2002-11-24 Bill Haneman <bill.haneman@sun.com>
824 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
827 * atk-bridge/bridge.c:
828 (spi_atk_register_event_listeners):
829 Don't re-register for ATK events if the registry has died
830 and the app needs to re-register; the ATK listeners are in
831 process and doing so will cause duplicate emission.
833 * registryd/deviceeventcontroller.c:
834 (spi_poll_mouse_moved):
835 Reformat the source, detect and emit multiple button-change
836 events (i.e. if multiple buttons have changed between poll
838 Add code to detect mouse-down events even when the pointer
839 is grabbed; workaround for GOK bug 98420.
840 (spi_controller_register_with_devices):
841 Call XTestGrabControl with 'impervious' flag set to True,
842 allows us to synthesize events and query the pointer even during
843 an active grab by another client.
844 (spi_device_event_controller_forward_mouse_event):
845 Set the mouse_mask_state to the mouse_button_state from
846 the intercepted event, to synchronize the grab listener with
849 2002-11-20 Bill Haneman <bill.haneman@sun.com>
851 * cspi/spi_accessible.c:
852 (AccessibleRole_getName):
853 Added necessary strings for making this (deprecated)
854 method work with the new role types.
855 (init_role_table, role_table):
856 Added definition of SPI_ROLE_APPLICATION.
858 * libspi/spi-roletypes.h:
859 Added SPI_ROLE_APPLICATION.
861 * idl/Accessibility_Role.idl:
862 Added ROLE_APPLICATION.
864 * docs/reference/cspi/at-spi-cspi-decl.txt:
865 Added SPI_ROLE_APPLICATION to docs.
867 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
869 * cspi/spi_accessible.c
870 (cspi_init_role_table): Do not write beyond end of role_table.
871 (Accessible_getRole): Use correct type for value returned by
872 Accessibility_Accessible_getRole().
874 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
875 beyond end of role_table. (This fixes bug #98269)
877 * libspi/application.c: Add include file spi-private.h for
878 definition of spi_init_any_nil.
880 2002-11-19 Bill Haneman <bill.haneman@sun.com>
884 * libspi/spi-private.h:
885 Added DGB() macro, and extern int _dbg declaration.
887 * registryd/registry.c:
888 (definitions) storage for _dbg.
890 Get environment variable "AT_SPI_DEBUG".
891 (spi_registry_set_debug):
892 New method, to initialize _dbg value.
893 (spi_listener_struct_new, spi_registry_object_finalize):
894 (notify_listeners_cb):
895 Changed fprintfs to use DBG and g_warning().
897 * registryd/deviceeventcontroller.c:
898 (_deregister_keygrab, spi_controller_register_device_listener):
899 Changed debug/warning messages to use DBG macro.
903 Changed warning messages to use DBG macro and g_warning().
905 * atk-bridge/bridge.c:
906 (atk_bridge_init, spi_atk_bridge_get_registry):
907 (spi_atk_bridge_exit_func):
908 (spi_atk_bridge_property_event_listener):
909 Changed status, warning, and error messages to use
910 g_warning, g_message, and DBG macros.
913 Read the state of the AT_SPI_DEBUG environment variable
914 and set a local '_dbg' accordingly.
916 2002-11-19 Bill Haneman <bill.haneman@sun.com>
918 FIXES for 98836, 98842, other bugs.
921 Revved to 1.1.4, interface-age=4, binary-age=4.
923 * registryd/deviceeventcontroller.c:
925 Fixed crasher bug in last_mouse_pos initialization.
927 * registryd/registry.c:
928 (desktop_add_application, desktop_remove_application):
929 Added (and then commented out) some support for
930 object context marshalling. [TODO]
932 * atk-bridge/bridge.c:
933 (spi_atk_bridge_event_context_create):
934 Commented out object context creation until it can
935 be properly tested and debugged.
937 * registryd/registry.c:
938 (impl_registry_notify_event):
939 Fixed crasher bug, we were calling
940 spi_re_entrant_list_foreach () with an empty list.
942 2002-11-18 Bill Haneman <bill.haneman@sun.com>
944 * idl/Accessibility_Action.idl:
945 * idl/Accessibility_Component.idl:
946 * idl/Accessibility_Desktop.idl:
947 * idl/Accessibility_Event.idl:
948 * idl/Accessibility_Hyperlink.idl:
949 * idl/Accessibility_Image.idl:
950 * idl/Accessibility_Relation.idl:
951 * idl/Accessibility_Selection.idl:
952 * idl/Accessibility_State.idl:
953 * idl/Accessibility_Value.idl:
954 Updated unimplemented slot count to minimum of
955 four for all interfaces, for ABI freeze.
957 * idl/Accessibility_EditableText.idl:
958 * idl/Accessibility_Text.idl:
959 Updated unimplemented slot count to six
962 * idl/Accessibility_Registry.idl:
963 Updated unimplemented slot count to six
964 (also for DeviceEventController),
967 * idl/Accessibility_Table.idl:
968 Updated unimplemented slot count to eight,
971 * idl/Accessibility_Event.idl:
972 Added CORBA_any "any_data" member to Event struct.
974 * idl/Accessibility_Event.idl:
975 Added CORBA_any "any_data" member to Event struct.
977 * atk-bridge/bridge.c:
979 atk_signal_text_changed, atk_signal_child_changed,
980 signal ids queried from gtype system.
981 (AtkBridgeEventContextType): New enum.
982 (AtkBridgeEventContextData): New struct.
983 (AtkBridgeEventContext): New struct.
984 (atk_bridge_init_event_type_consts):
985 New method, initializes type contants for comparison
986 prior to emit_eventv.
987 (atk_bridge_event_context_init): New method,
988 initializes a CORBA_any from an AtkBridgeEventContext.
989 (atk_bridge_focus_tracker): Call spi_init_any_nil to
990 initialize the event.any_data struct.
991 (spi_atk_bridge_event_context_create): New method,
992 creates an AtkBridgeEventContext from signal/event info.
993 (spi_atk_bridge_event_context_free): New method.
994 (spi_atk_emit_eventv): Changed to take an
995 AtkBridgeEventContext parameter. We now initialize
996 the event.any_data member prior to notifying the
997 Registry, via the AtkBridgeEventContext.
998 (spi_atk_bridge_property_event_listener):
999 (spi_atk_bridge_state_event_listener):
1000 Match emit_eventv signature.
1001 (spi_atk_bridge_object_event_listener):
1002 Match emit_eventv signature, and create an
1003 event context from the event details.
1004 Free the event context afterwards.
1005 (spi_atk_bridge_window_event_listener):
1006 Create an event context, pass it to the
1010 (AccessibleEvent_getContextString):
1011 (AccessibleEvent_getContextObject):
1012 New methods, allow query of AccessibleEvent objects
1013 for more context details (via the "any_data" member
1014 of the Event struct, above).
1017 Definitions for AccessibleEvent_getContextString
1018 and AccessibleEvent_getContextObject.
1020 * cspi/spi_listener.h:
1021 (InternalEvent): New struct.
1024 (AccessibleEvent_getContextString):
1025 (AccessibleEvent_getContextObject):
1026 Implementations of new methods, for obtaining
1027 additional context information from some event types.
1029 * cspi/spi_registry.c:
1030 (SPI_registerGlobalEventListener):
1031 Added mention of active-descendant-changed event in docs.
1033 * cspi/cspi-bonobo-listener.c:
1035 Marshal the any into the AccessibleEvent via
1038 * libspi/spi-private.h:
1039 #include <orbit/orbit.h>
1041 (spi_init_any_string):
1042 (spi_init_any_object):
1043 New convenience function declarations.
1047 (spi_init_any_string):
1048 (spi_init_any_object):
1049 New convenience function implementations.
1051 * registryd/deviceeventcontroller.c:
1052 (spi_poll_dec_mouse_moved):
1053 (spi_device_event_controller_forward_mous_event):
1054 Initialize any_data member of event.
1055 (spi_deregister_controller_device_listener):
1056 Fix incorrect param pass which was preventing deregistration.
1058 * registryd/registry.c:
1059 (desktop_add_application):
1060 (desktop_remove_application):
1061 Add object data to event's any_data before dispatch.
1063 Fix for error messages from GAIL.
1065 * test/event-listener-test.c:
1066 Test new ContextString and "any_data" API:
1067 (report_text_event): New method query and output context string.
1068 (main): register a new text listener with report_text_event
1071 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1073 Fixes for bugs 98127 and 97914.
1074 * cspi/spi-roletypes.h:
1075 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1077 * cspi/spi-statetypes.h:
1078 Added SPI_STATE_MANAGES_DESCENDANTS
1080 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1081 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1082 * cspi/spi_accessible.c:
1083 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1084 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1085 Accessibility_STATE_MANAGES_DESCENDANTS
1086 * libspi/accessible.c:
1087 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1088 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1089 As requested by Bill, I also cleaned up the alignment.
1090 * libspi/relation.c:
1091 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1092 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1093 * libspi/stateset.c:
1094 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1095 Accessibility_STATE_MANAGES_DESCENDANTS
1096 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1097 Document changes reflecting modifications to roles.
1098 * docs/reference/cspi/tmpl/spi_relation.sgml:
1099 Document changes reflecting modifications to relations.
1100 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1101 Document changes reflecting modifications to states.
1103 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1106 Revved to 1.1.3, interface-age=3, binary-age=3.
1107 Added REBUILD macro.
1110 Removed accessx-gui from the tests, since we have a nice
1111 keyboard accessibility capplet now :-)
1113 * test/keysynth-demo.c:
1114 (increment_scan): removed do-nothing default: case,
1117 * test/visual-bell.c:
1118 (main) : removed do-nothing default: case,
1121 * cspi/spi_action.c:
1122 (AccessibleAction_getKeyBinding_):
1123 Documented keybinding string format.
1127 (AccessibleText_getAttributes):
1128 Documented the text attribute string format.
1129 It's changed to use semicolon delimiters also,
1130 to prevent clashes with CSS attributes, but the old
1131 trick of looking for ", " strings will still work
1132 (as unreliably as ever). Fix for bug related to 97916.
1135 Include <cspi/bonobo/cspi-bonobo-listener.h>
1136 Fixes build warning.
1137 (SPI_freeAccessibleKeySet):
1138 (AccessibleKeystrokeListener_addCallback):
1139 (AccessibleKeystrokeListener_removeCallback):
1140 Modify to use AccessibleDeviceListener API internally,
1141 instead of AccessibleKeystrokeListener.
1143 * idl/Accessibility_Event.idl:
1144 Added two more empty slots to EventListener (for a total of four).
1146 * idl/Accessibility_Accessible.idl:
1147 Added four empty slots to Accessible interface.
1149 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1151 * idl/Accessibility_Registry.idl:
1152 (KeyEventType, EventType):
1153 Marked KeyEventType as deprecated; it duplicates
1154 functionality of EventType, which has been extended to
1155 include Mouse-button events.
1156 (KeyEventTypeSeq): defined in terms of EventType.
1157 (registerDeviceEventListener, deregisterDeviceEventListener):
1158 New methods, for managing listeners to device events,
1159 which potentially may consume them.
1162 Added definition for AccessibleDeviceListener.
1164 * cspi/spi-listener.h:
1165 (enum AccessibleDeviceEventType):
1166 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1167 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1168 for backwards compat.
1169 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1170 and typedef'd AccessibleKeystroke to it for back-compat.
1171 (AccessibleDeviceListenerCB):
1172 New function prototype typedef.
1175 (AccessibleDeviceEventMask): New typedef.
1176 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1177 (AccessibleKeyMaskType):
1178 Set equivalent to AccessibleModifierMaskType for back-compat.
1179 (SPI_createAccessibleKeystrokeListener):
1180 (AccessibleKeystrokeListener_unref):
1181 Deprecated in favor of equivalent (better-named) new API below..
1182 keystroke listeners are like all device listeners.
1183 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1184 New API names for old features :-).
1185 (AccessibleDeviceListener_addCallback):
1186 (AccessibleDeviceListener_removeCallback):
1187 (SPI_registerDeviceEventListener):
1188 (SPI_deregisterDeviceEventListener):
1192 (SPI_createAccessibleKeystrokeListener):
1193 Use new preferred API, cspi_device_listener_new() and
1194 cspi_device_listener_add_cb().
1195 (AccessibleKeystrokeListener_removeCallback):
1196 Use new preferred API, cspi_device_listener_remove_cb().
1197 (AccessibleKeystrokeListener_unref):
1198 Use new preferred API, cspi_device_listener_unref().
1199 (SPI_createAccessibleDeviceListener):
1200 (AccessibleDeviceListener_addCallback):
1201 (AccessibleDeviceListener_removeCallback):
1202 Implementation of new API.
1204 * cspi/spi_registry.c:
1205 (SPI_registerDeviceEventListener):
1206 (SPI_deregisterDeviceEventListener):
1207 Implementation of new API. Fixed memory leak and removed need to
1208 allocate EventTypeSeq (thanks Michael for catching this).
1209 Squashed a wayward CORBA_exception_free that shouldn't get called.
1211 * cspi/bonobo/cspi-bonobo-listener.c:
1213 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1214 (cspi_key_event): renamed to cspi_device_event().
1215 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1216 Extended to handle mouse button events as well as key events.
1217 (CSpiKeystrokeListener):
1218 Class superceded by CSpiDeviceListener.
1219 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1220 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1222 * cspi/bonobo/cspi-bonobo-listener.h:
1223 (CSpiKeystrokeListener):
1224 Class superceded by CSpiDeviceListener.
1225 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1226 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1228 * libspi/Makefile.am:
1229 Replaced keystrokelistener.h and keystrokelistener.c
1230 with devicelistener.h and devicelistener.c; keystrokelisener.h
1231 stub retained for back-compat.
1233 * libspi/keystrokelistener.c:
1237 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1239 * registryd/deviceeventcontroller.c:
1240 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1241 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1242 (DEControllerPrivateData): Added xkb settings data.
1243 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1244 button release events (which can't be captured via XGrabButton).
1245 Don't dispatch via the 'normal' event mechanism if the device event was
1247 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1248 Handle the typeseq data in its new location (see above).
1249 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1250 New methods, for "generic" device listeners.
1251 (spi_controller_register_device_listener):
1252 Now handle mouse event listeners as well as key listeners.
1253 (spi_controller_notify_mouselisteners):
1254 New internal method.
1255 (spi_device_event_controller_forward_mouse_event):
1256 Now we notify mouse device listeners as well as generating the
1257 non-consumable "mouse:" events.
1259 We must check and restore the XKB
1260 modifier map if we consume the event, since the act of triggering
1261 a mouse event will normally reset the XKB latch. This is required for
1263 (spi_controller_register_with_devices):
1264 Load the XKB settings when registering, and register for XKB
1265 state notify events.
1266 (spi_key_eventtype_seq_contains_event):
1267 Renamed spi_eventtype_seq_contains_event, since it's used
1268 internally for all device event types now.
1269 (spi_key_event_matches_listener):
1270 Uses spi_eventtype_seq_contains_event now.
1271 (spi_device_event_controller_object_finalize):
1272 Free the private data and the XkbKeyboard struct.
1273 (impl_register_device_listener, impl_deregister_device_listener):
1274 Implementation of new IDL.
1275 (spi_deregister_controller_device_listener):
1276 New internal method.
1277 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1278 More efficient implementation, we don't have to create a new
1279 XkbControls structure every time we query.
1280 (spi_device_event_controller_class_init):
1281 Initialize the epv entries for the new IDL. Assign the
1282 "spi-dec-private" quark.
1283 (spi_device_event_controller_init):
1284 Initialize the private data.
1285 (spi_device_event_controller_forward_key_event):
1286 Removed a bogus CORBA_exception_free() call.
1288 * registryd/deviceeventcontroller.h:
1289 Replaced inclusion of keystrokelistener.h with
1292 * test/event-listener-test.c:
1293 (report_mouse_event):
1296 Added mouse-event device listener.
1298 * test/test-simple.c:
1299 (create_test_window):
1300 Fixed regression (we were instantiating a GtkRange,
1301 which is now an abstract class). Also fixed to match
1302 existing AtkRole names, this seems to have changed in ATK
1303 awhile ago; too late now I think, and the new
1304 mechanism is at least elegant and consistent with the
1305 glib enum "nick" APIs.
1307 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1309 * idl/Accessibility_Relation.idl:
1310 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1311 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1312 * idl/Accessibility_Role.idl:
1313 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1314 * idl/Accessibility_State.idl:
1315 add STATE_MANAGES_DESCENDANTS
1316 * test/event-listener-test.c:
1317 Added a listener for active-descendant events.
1319 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1321 * atk-bridge/bridge.c
1322 (atk_bridge_init): If application is Bonobo component wait until top
1323 level is added before registering
1324 (spi_atk_bridge_do_registration): New function which contains code,
1325 formerly in atk_bridge_init, to do application registration.
1326 (spi_atk_bridge_toplevel_added): Signal called when top level
1327 added to Bonobo component
1329 This fixes bug #83134.
1331 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1333 * registryd/deviceeventcontroller.c
1334 Fixed compilation error caused by calling gettimeofday()
1337 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1342 Added template for HAVE_XKB.
1345 Changes to check for XKB, and to set the HAVE_XKB #define if it
1348 * libspi/listener.c:
1349 ()impl_notify_event): Make failure to get event source name
1352 * registryd/deviceeventcontroller.c:
1353 (#include): include X11/XKBlib.h.
1354 (DEControllerPrivateData) : New struct.
1355 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1357 (dec_synth_keycode_press) (dec_synth_keycode_release):
1358 New methods; split the key synthesis code into these methods.
1359 They check XKB settings before determining the "time" values to
1360 pass to Xtest; this fixes bug #95828.
1361 (impl_generate_keyboard_event): Changed to use methods above,
1362 instead of callng Xtest directly.
1363 (spi_device_event_controller_init): Initialize new privae struct s
1365 (spi_device_event_controllr_object_finalize):
1366 Free the (new) private data.
1368 * registryd/deviceeventcontroller.h:
1369 Add new gpointer to end of struct data.
1371 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1374 Incremented revision to 1.1.2, SONAME is still '.so', library
1375 extensions are ".so.0.0.2".
1377 * registryd/deviceeventcontroller.c:
1378 FIXES FOR #93592 and #95940.
1379 (statics): renamed mouse_button_state to mouse_mask_state,
1380 added key_modifier_mask.
1381 (spi_dec_poll_mouse_moved):
1382 Added key modifier checks, and emit "keyboard:modifiers"
1383 events when the key modifiers currently in use change.
1384 Also generate "mouse:abs" events periodically, even if the mouse
1385 is stationary (should we?).
1386 Alternatively we could generate "mouse:abs" events for either all
1387 mouse movements, or every 'nth' mouse movement, or at the
1388 beginning and end of every "active" mouse period.
1390 * test/event-listener-test.c:
1391 (main): Added listener for "keyboard:modifiers" events.
1393 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1395 * libspi/keymasks.h:
1396 Added key mask #defines for mouse buttons; e.g.
1397 SPI_KEYMASK_BUTTON1, etc.
1400 Incremented dependency on ATK to version 1.1.0. (This dependency
1401 is probably premature but will soon be real enough).
1403 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1405 * libspi/hyperlink.[ch]
1406 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1407 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1410 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1415 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1417 * registryd/deviceeventcontroller.c
1418 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1419 events to be ignored.
1420 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1421 keyboard_mode so that XAllowEvents() can be called.
1425 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1427 * cspi/spi-accessible.c: Correct names of roles returned by
1428 AccessibleRole_getName(). Fixes bug #95055.
1430 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1432 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1435 * registryd/registry.c
1436 (desktop_remove_application: Write diagnostic message to stderr for
1439 (impl_accessibility_registry_deregister_global_event_listener):
1440 Correct size of lists array. This addresses bug #94555).
1442 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1444 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1447 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1449 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1452 * registryd/registry.c (impl_registry_notify_event): Remove
1453 unnecessary call to parser_event_type().
1455 * docs/reference/cspi/tmpl/spi_component.sgml:
1456 Add reference to SPI_LAYER_WINDOW.
1458 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1460 * registryd/registry.c
1461 (desktop_add_application): Remove leak.
1462 (desktop_remove_application): Remove leak.
1463 (parser_event_type): Remove leak.
1465 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1467 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1468 bogus call to CORBA_string_dup(). Also removed unnecessary
1469 g_string_dup/g_free calls.
1471 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1473 * registryd/deviceeventcontroller.c:
1474 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1476 * test/event-listener-test.c:
1477 main: commented out three redundant listeners, to reduce output
1478 noise. (They still are potentially useful for testing).
1481 2002-09-13 Michael Meeks <michael@ximian.com>
1483 * Update all the copyrights to include Ximian.
1485 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1487 * cspi/spi.h: add SPI_LAYER_WINDOW.
1489 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1490 add Accessibility_LAYER_WINDOW case.
1492 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1494 * libspi/component.c: (impl_accessibility_component_get_layer):
1495 add ATK_LAYER_WINDOW case.
1497 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1499 * configure.in: incremented micro version.
1501 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1503 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1506 Clarified and reworded our commit policy.
1509 Started an API "todo" addition list for 2.2.
1512 (impl_getSelection):
1513 Free char pointer from atk_text_get_selection, which was being leaked.
1515 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1518 Small revision to author acknowledgement.
1520 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1522 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1523 If signal has detail add it to the type of the event.
1526 2002-08-12 Michael Meeks <michael@ximian.com>
1528 * test/test-simple.c (global_listener_cb): bin bogosity.
1529 (test_keylisteners): disable, still doesn't work reliably,
1530 certainly not on my system anyway.
1532 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1533 don't leak a reference on the DEC. This round-trip
1534 fetching of the DEC per keystroke sucks, it should be
1537 * cspi/spi-private.h,
1538 * cspi/cspi-lowlevel.h,
1539 * cspi/bonobo/cspi-bonobo-listener.[ch],
1540 * cspi/bonobo/cspi-bonobo.c: get the copyright
1541 notices better - there is still a large amount of
1542 work in at-spi falsely attributed solely to Sun.
1544 * cspi/spi_main.c (cspi_object_ref): kill bogus
1545 hash lookup, just increment the ref.
1546 (SPI_freeString): make explicit the fact that we
1547 handle NULL strings just fine.
1548 (report_leaked_ref): obey coding standards.
1549 (cspi_object_hash, cspi_object_equal): kill retval.
1550 (cspi_object_release): only release if not on loan.
1551 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1552 (cspi_object_borrow, cspi_object_return): impl.
1554 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1555 use cspi_object_borrow / return.
1557 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1559 * cspi/bonobo/cspi-bonobo-listener.c:
1561 Don't call cspi_oject_new() because this is creating a new Accessible
1562 every single time that an event is fired. This causes ATs like at-poke
1563 to nolonger recognise the source of the event and thus ignore it.
1564 Re-use the object from the cache, ref it and then unref it after the
1565 listeners have been called.
1567 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1569 * test/event-listener-test.c:
1570 Added command-line options to disable mouse events (m) and
1573 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1575 * configure.in: Update required versions of ATK, GTK+ and GAIL
1577 * cspi-1.0.pc.in: Add dependency for X include files
1580 * cspi/bonobo/Makefile.am:
1581 Add $(X_CFLAGS) so that X include files
1582 are picked up even if not in standard place (bug #71686)
1584 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1586 * registryd/deviceeventcontroller.c: fix for 84261
1587 (spi_dec_mouse_moved):
1588 Added test of mouse button mask, so that we can detect mouse
1589 button release. Unfortunately we can't otherwise detect mouse
1590 button release events without consuming the mouse press event,
1591 because of the way XGrabButton works. This means that our mouse
1592 release events have a latency dependent on the polling period
1593 while the mouse button is down. At least in this case we only
1594 have to poll while the button is down, and not at other times.
1595 If the button masks don't match with what the last press event
1596 reported, we report the appropriate button release event.
1597 (spi_dec_ungrab_mouse):
1598 New method (not yet called).
1599 (spi_device_event_controller_forward_mouse_event):
1600 New method, sends mouse press event from GdkFilter.
1601 (spi_dec_init_mouse_listener):
1602 Added code to call XGrabButton, redirecting mouse button events to
1603 the root window and our Gdk event loop.
1605 Added code to filter mouse button events, and reordered.
1607 * test/event-listener-test.c:
1609 Added registration for mouse events of type "mouse:button".
1611 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1613 * registryd/deviceeventcontroller.c: partial fix for 84261
1614 (spi_dec_poll_mouse_idle):
1615 New method, a timeout which checks to see if the mouse
1617 (spi_dec_poll_mouse_moving):
1618 A timeout to be called when mouse motion is underway.
1619 (spi_dec_poll_mouse_moved):
1620 A method which fires an event if the mouse has moved, and reports
1621 whether or not it did so.
1622 (spi_dec_init_mouse_listener):
1623 A method which sets up the timeouts above.
1624 (spi_device_event_controller_new):
1625 Now calls spi_dec_init_mouse_listener.
1627 * registryd/registry.c:
1628 (spi_registry_init):
1629 Now we initialize the device event controller when the registry is
1630 initialized, instead of waiting until a client has requested a key
1631 event notification; this is because we need the event controller
1632 for mouse events, but the mouse event registration API is a
1633 "registry" call and doesn't explicitly call the
1634 deviceeventcontroller.
1635 We now report mouse motion events with a 100 ms idle latency and
1636 a 20 ms granularity when motion is in progress.
1638 * test/event-listener-test.c:
1640 We now register the "detail listener" for events of type
1641 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1642 delivered only for the first mouse event received, and thereafter
1643 "mouse:abs" events are delivered.)
1645 * cspi/spi_registry.c:
1646 DOCS: Documented the above mouse event typestrings.
1648 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1650 Happy Summer Solstice...
1652 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1653 (spi_controller_notify_keylisteners):
1654 Changes to remove a listener from the listener list, freeing its
1655 open keygrabs, if a notification to that listener fails. This
1656 means that although a dead listener can continue to hold a passive
1657 keygrab, a maximum of one dispatch to such a listener can fail
1658 before the listener is removed from the list, thus the keygrab
1659 will be released on the next occurrence.
1660 As part of this fix:
1661 (spi_notify_keylisteners):
1662 Renamed to spi_controller_notify_keylisteners, as the controller
1663 instance must now be passed as an argument.
1664 The copied 'notify' GList is now a list of DEControllerKeyListener
1665 objects, since we need more than just the CORBA reference if a
1666 notify fails and we need to deregister the listener.
1667 (impl_notify_listeners_sync):
1668 (impl_notify_listeners_async):
1669 (spi_device_event_controller_forward_key_event):
1670 Modify use of notify_keylisteners in accordance with above
1672 (spi_deregister_controller_key_listener):
1673 New method introduced by refactoring, from
1674 impl_deregister_keystroke_listener.
1675 (impl_deregister_keystroke_listener):
1676 Call spi_deregister_controller_key_listener.
1677 (spi_key_listener_clone):
1678 New method to copy a key listner without doing a 'ref' on the
1679 remote object instance; used to create a notifier list.
1680 (spi_key_listener_data_free):
1681 New method, frees data without unreffing the source.
1683 (spi_key_listener_clone_free): new method.
1684 (spi_key_listener_free):
1685 refactored to call spi_key_listener_data_free.
1687 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1689 * registryd/registry.c: [fix for bug 86048]
1690 (notify_listeners_cb):
1691 Clear CORBA system exceptions which occur when notifying
1692 listeners, before returning to the source of the original event,
1693 since the event source doesn't care if the relayed notify failed.
1694 In other words, don't complain to the atk-bridge if the registry
1695 could not notify all its listeners, that's no fault of the
1696 application and thus should not appear to be an error from the
1697 application's perspective.
1699 * cspi/spi_main.c: [fix for bug 85980]
1701 Replaced use of bonobo_object_dup_ref with call to the wrapper
1702 method, csou_dup_ref (); this silences a compiler warning and
1703 provided more portability.
1705 Ping the registry before return, and restart if necessary.
1707 * cspi/bonobo/cspi-bonobo.c:
1709 New internal method.
1711 Fixed this method to return an object reference, as it should have
1714 * cspi/cspi-lowlevel.h:
1715 Added internal definition for cspi_ping() and fixed
1716 return type of cspi_dup_ref().
1719 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1721 * atk-bridge/bridge.c: [fix for bug 85305]
1722 (spi_atk_bridge_register_application):
1723 New method where the initial application registry calls have been
1724 moved; it allows an application to re-register in response to
1725 certain error conditions (such as a registry restart, see below).
1727 Moved some initialization code to the method
1728 spi_atk_bridge_get_registry, below.
1729 (spi_atk_bridge_get_registry):
1730 New, private accessor function for the Accessibility_Registry
1731 instance. If the registry has not been started before, or has
1732 died (as detected by failure of a CORBA exception), it is
1733 restarted before return, and spi_atk_bridge_register_application
1734 is called again to register with the new bridge instance.
1735 (spi_atk_emit_eventv):
1736 Set registry_died on error; use spi_atk_bridge_get_registry () to
1737 access the registry.
1739 * registryd/registry.c:
1740 (impl_accessibility_registry_register_global_event_listener):
1741 Set listener's event_type_quark to etype.minor instead of
1742 etype.major (fix for bug 84856).
1744 * test/event-listener-test.c:
1745 (report_detail_event):
1746 Change the output string so that user/tester can tell that the
1747 'detail listener' was called instead of the 'generic listener'.
1749 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1751 Fixes for bugs 84900, 84908, 84897, 84898.
1756 Revved version to 1.1.0
1757 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1758 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1760 * idl/Accessibility_Registry.idl:
1761 (EventListener::notifyEvent):
1762 Removed 'oneway' directive after extensive consulation with
1763 ORBit2 team and others. This means also that unref() of the event
1764 source can and should be done synchronously after emission, rather
1765 than remotely in the client, after servicing the notify call on
1768 NOTE: This change speeds up listener performance considerably, but
1769 introduces new latency on the application side. We may want to
1770 add an event queue to the atk-bridge.
1772 * atk-bridge/bridge.c:
1773 (spi_atk_bridge_focus_tracker):
1774 Do a local unref() on the event source after emission.
1776 * registryd/registry.c:
1777 (desktop_remove_application):
1778 Do an unref() on the event source after emission.
1779 (desktop_add_application):
1780 Do an unref() on the event source after emission.
1781 (notify_listeners_cb):
1782 When relaying an event, don't automatically add the event source
1783 to the local object cache, just CORBA_dup it instead. Likewise,
1784 if this method reenters, release the ref rather than calling
1786 (impl_registry_notify_event):
1787 No longer call remote unref() on the event source after dispatch.
1789 * libspi/eventlistener.c:
1790 (impl_accessible_event_notify_event):
1791 Removed remote unref ()
1793 * cspi/bonobo/cspi-bonobo-listener.c:
1795 We now call cspi_object_new() instead of cspi_object_add() on
1796 receipt of an event; thus we only have an implicit object ref
1797 while the cspi_event method is being executed. If we need to keep
1798 a reference to the object, the listener must call ref() on the
1799 object. Thus also we don't need to call cspi_object_unref() after
1800 invoking the listener callbacks in this method.
1804 New internal API for creating a new cspi object, without adding it
1805 to the object cache.
1807 Now uses cspi_object_new() to create the cspi object instance.
1809 Now checks to see if the object is in the internal object cache,
1810 and adds it if necessary before incrementing its refcount (note
1811 that new objects are added with a refcount of 1).
1812 (report_leaked_ref):
1813 New method which gives some information on leaked object instances
1814 if leak detection is turned on.
1816 * test/event-listener-test.c:
1817 (timing_test_event):
1818 New method, used for testing event delivery timing for special
1819 events of type "object:test". It reports elapsed time and
1820 events/sec every 500 events.
1822 Added a new listener, 'test listener', to check timing of event
1823 receipt as noted above.
1825 Added some timing output here also, reports elapsed time every 100
1828 * test/stress-test.c:
1829 Emit events of type "object:test", for use with "event-listener-test".
1831 * test/test-simple.c:
1832 (global_listener_cb):
1833 Call Accessible_ref() on the event source before calling
1834 validate_accessible, since the validation process does pointer
1835 comparisons on the event source, meaning that the event source
1836 needs to be added to the local object cache first. Any use of
1837 such pointer comparisons between Accessible objects requires that
1838 the caller hold an explicit reference to those objects.
1839 We also must therefore call Accessible_unref() when leaving this method.
1841 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1843 * registryd/deviceeventcontroller.c:
1844 (spi_controller_update_key_grabs):
1845 Fix for #84735, subsequent keygrab listeners not informed of
1846 registration failure.
1849 (spi_base_construct):
1850 Add an assertion on construct, to make sure the GObject passed in
1851 is really a GObject.
1853 Explicitly initialize object->gobj pointer to NULL;
1855 * cspi/bonobo/cspi-bonobo-listener.c:
1856 (cspi_object_add_ref):
1857 New method, can specify whether to dup-ref a bonobo object passed
1858 in if it's newly added to the object cache.
1860 Now calls cspi_object_add_ref with second param of "FALSE". This
1861 prevents us from doing a pointless dup-ref followed by
1862 release-unref for all those cases where the object is already in
1863 our object cache (fix for #85205).
1865 * atk-bridge/bridge.c:
1866 (spi_atk_bridge_idle_init):
1867 Removed this method, we don't need to initialize in an idle
1870 Changed to call spi_atk_register_event_listeners directly, not via an
1871 idle handler. (fix for #81139)
1872 (gnome_accessibility_module_shutdown):
1873 Removed conditional around deregistration of listeners, since we
1874 don't use the idle handler and thus have always registered when
1876 (spi_init_keystroke_from_atk_key_event):
1877 Changed references to Accessibility_KEY_PRESSED to
1878 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1880 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1882 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1887 * test/stress-test.c:
1890 (may have been an incomplete commit yesterday?)
1892 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1895 Added target for new stress-test.
1897 * test/stress-test.c:
1898 New test, sends 1000 focus notifies in quick succession.
1900 * test/key-listener-test.c:
1901 Now we report whether a keylistener registration
1902 request succeeded or failed.
1904 * test/event-listener-test.c:
1905 Uncommented some listeners which are now implemented.
1908 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1910 * registryd/deviceeventcontroller.c:
1911 (spi_controller_update_key_grabs):
1912 Fix for #82509, lack of failure notification when
1913 ALL_WINDOWS keygrabs fail due to XGrabKey
1914 failure: we synchronize the server when
1915 registering a passive grab, to make sure we get the
1916 error message before the call returns.
1918 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1920 * test/test-simple.c:
1922 Removed #ifdef KEY_IMPL_WORKS guards.
1923 (test_keylisteners):
1924 Removed #ifdef KEY_IMPL_WORKS guards.
1925 Fixed bug which was causing a hang waiting for a
1926 "press" event (which was already overwritten by a "release"
1927 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1929 Added code to set globals 'key_press_received' and
1930 'key_release_received'.
1933 Added section "1.1 API Proposed Additions" which
1934 lists API additions desired for at-spi-1.1 (only one so far).
1935 Updated TODO list a little.
1937 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1939 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1942 * configure.in: Revved to 1.0.0.
1944 * idl/Accessibility_Registry.idl:
1945 (registerKeystrokeListener):
1946 Added boolean return value.
1948 * registryd/registry.c:
1949 (notify_listeners_cb): Minor fix to debug output.
1951 * registryd/Accessibility_Registry.server.in.in:
1952 Revved version number in OAFIID to 1.0.
1954 * registryd/registryd.c:
1956 Use new OAFIID version.
1958 * cspi/bonobo/cspi-bonobo.c:
1960 Use new OAFIID version.
1966 * atk-bridge/bridge.c:
1968 Use new OAFIID version.
1970 * registryd/deviceeventcontroller.c:
1971 (impl_register_keystroke_listener):
1972 Added CORBA_boolean return value.
1973 (spi_controller_register_device_listener):
1974 Added gboolean return value.
1975 (spi_controller_register_global_keygrabs):
1976 Added gboolean return value.
1977 (spi_key_set_contains_key):
1978 Added implementation for many more control keys,
1979 for instance F1-F12, arrow keys, End, Home, Page_Up,
1981 [TODO: some still not implemented].
1983 * text/screen-review-test.c:
1984 (text_chunk_pad_string):
1985 New function: it provides mapping between coordinate
1986 positions of text chunks and character positions in the
1987 screen-review-line output string.
1988 (text_chunk_to_string):
1989 New function, calls text_chunk_pad_string with various
1990 pad/delimiter characters. Pushbuttons are delimited with
1991 square brackets, Frames with vertical 'pipe' lines, and
1992 other text with double quotes.
1993 (text_chunk_list_to_string):
1994 Calls new function text_chunk_to_string.
1995 (toplevel_composite):
1996 New function to composite layers CANVAS through
1997 POPUP in each toplevel (other layers are composited
1998 across toplevels, i.e. BACKGROUND and OVERLAY).
1999 (review_buffer_composite):
2000 Revise to use new methods.
2006 2002-05-31 Laszlo Peter <laca@sun.com>
2008 * configure.in: add the Xtst libdir to the runpath on Solaris,
2009 since it's not in the default library search path.
2011 2002-05-29 jacob berkman <jacob@ximian.com>
2013 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2015 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2017 * test/screen-review-test.c:
2018 (text_chunk_pad_string):
2019 Added method, which pads the string according to the
2020 text bounds of the chunk. It also takes a 3-character
2021 string as a param which indicates the characters to be
2022 used for start, padding, and end delimitation of the chunk.
2023 (text_chunk_to_string):
2024 Changed to use text_chunk_pad_string.
2026 * configure.in: Fixed bug in AC_OUTPUT that was
2027 causing path substitution in Accessibility_Registry.server
2030 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2032 * text/screen-review-test.c:
2033 (guess_string_clip):
2034 New method which attempts a best-guess at clipping
2035 text from components (like Java labels) which don't
2036 actually implement AccessibleText. This inaccurate
2037 clip is based on the assumption that the label is
2038 justified left-and-right, and monospaced.
2039 (text_chunk_get_clipped_string):
2040 We now call guess_string_clip() for text-containing
2041 components that don't implement AccessibleText.
2043 * test/screen-review-test.c:
2044 (review_buffer_get_text_chunk):
2045 We now pull "name" from labels if they do not implement
2046 AccessibleText (i.e. for Java labels).
2047 (get_screen_review_line_at):
2048 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2051 Replaceded AC_OUTPUT target
2052 registryd/Accessibility_Registry.server with
2053 registryd/Accessibility_Registry.server.in.
2055 * registryd/Accessibility_Registry.server.in:
2056 Removed (this is now a Makefile target).
2058 * registryd/Accessibility_Registry.server.in.in:
2059 Added (source for target above). We now use $(libexecdir) as
2060 prefix for the executable at-spi-registryd.
2062 * registry/Makefile.am:
2063 Now install at-spi-registryd into $(libexecdir), and build .server
2064 file with path (see above).
2066 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2068 * test/screen-review-test.c:
2069 (text_chunk_get_clipped_string):
2070 We now check to see if words fall within clip bounds
2071 before resorting to character-by-character clip bounds testing.
2073 * TODO: Added a section for "2.2 Proposed API Additions".
2075 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2077 * test/screen-review-test.c:
2079 Added a screen review benchmarking and test program to test
2082 * cspi/spi_accessible.c:
2084 Made some of the debug strings passed to cspi_check_ev a
2085 little more specific.
2087 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2089 * test/screen-review-test.c: Fix crashes in debug statements
2091 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2093 * test/screen-review-test.c: Added this file.
2095 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2097 * atk-bridge/bridge.c: changed "object:state-change" to
2098 "object:state-changed" to match docs.
2100 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2102 * atk-bridge/bridge.c: Hooked up state-change event details.
2104 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2106 * registryd/registry.c:
2107 Fixed quarking bug in event string parsing; now events with
2108 detail parameters get matched correctly to listeners.
2111 * util/idl/Magnifier.idl: remove.
2113 * util/*.[ch]: Remove.
2114 Magnification utilities and IDL are now in module gnome-mag.
2116 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2118 * registryd/deviceeventcontroller.c:
2119 Fixed bug in grab key conversion which was causing keycode grabs
2120 to be converted to AnyKey grabs.
2123 updated NEWS file to reflect recent spin-off of gnome-mag.
2125 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2127 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2128 busted AccessibleStateSet_compare. Removed redundant casts.
2130 * cspi/spi-action.c: Removed redundant casts.
2132 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2134 * cspi/spi_component.c: Fixed typos and casting error.
2136 * cspi/spi_editabletext.c: Removed redundant casts.
2138 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2140 * cspi/spi_hypertext.c: Eliminated redundant casts.
2142 * cspi/spi_image.c: Eliminated redundant casts.
2144 * cspi/spi_registry.c: Eliminated redundant casts.
2145 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2146 * cspi/spi_selection.c: Removed redundant casts.
2147 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2148 handling. Screen geometry and text offsets were being returned as 0
2149 on error which is technically valid-- changed these to return -1.
2150 Added marshaller for text boundary types to fix bug with boundary
2151 types being passed incorrectly to atk.
2153 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2156 * cspi/spi_registry.c:
2157 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2158 which was uncovered by the recent key changes.
2160 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2162 * test/event-listener-test.c:
2164 Added new test, "event-listener-test";
2165 this code does two things; it benchmarks traversal time
2166 for the accessible hierarchy for the first running accessible
2167 app, and it connects listeners for all supported event types.
2168 It is thus useful as an example event listener and for
2169 diagnostics/debugging of event generation.
2171 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2174 Removed unnecessary dependency on libutil.
2177 Revved micro version: 0.13.1
2179 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2182 Removed util/Makefile from targets.
2185 Removed util subdir from SUBDIRS (temporarily,
2186 pending removal of magnifier-only code
2190 #ifdef-ed out magnifier dependencies, since
2191 magnifier IDL, headers, and binary now live in
2192 module gnome-mag and we don't want at-spi to depend
2193 on gnome-mag. A magnifier demo which can run alongside
2194 simple-at is forthcoming in the gnome-mag module.
2196 NOTE: Split magnifier binary, IDL, and magnification
2197 activation code from at-spi into module gnome-mag.
2199 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2201 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2202 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2204 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2207 Revved to version 0.13.0
2209 * idl/Accessibility_Registry.idl:
2210 Changed definition of KeySet from sequence of longs to sequence of
2211 KeyDefinitions, and added KeyDefinition struct.
2212 Required for fix to bug 80616.
2214 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2215 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2216 to use new definition (see above).
2218 * registryd/deviceeventcontroller.c: handle_keygrab(),
2219 spi_keyset_contains_key():
2220 Changed to make use of new struct; this allows matching based on
2221 string key-name, for instance "Tab". This also allows matching of
2222 composed characters, non-alphanumeric characters in a way that
2223 doesn't involve dependencies on X keysym codes directly, etc.
2225 * test/key-listener-test.c:
2226 Added test for Alt-Tab key using "string" specification of keyset,
2227 and modified one of the tests to use a keycode-based keyset.
2228 Thus this test both tests and demonstrates the creation and use of
2229 keysets of three forms: specified via keycode array,
2230 keysym array, and string array. (The string case only contains a
2231 single string, i.e. a string array of length 1).
2234 Turned on PRINT_TREE option by default. Also fixed a
2235 string-freeing bug in the PRINT_TREE code.
2236 Added a listener to window:minimize events.
2238 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2240 * atk-bridge/bridge.c:
2241 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2242 for window:activate and window:deactiveate
2243 (atk_bridge_property_event_listener atk_bridge_signal_listener
2244 atk_bridge_window_event_listener) Tidy debug code
2246 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2248 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2249 Fixed handling for NULL return value from ATK.
2251 * libspi/action.c libspi/component.c libspi/editabletext.
2252 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2253 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2254 Removed redundant casts.
2256 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2257 Fixed off by one bug.
2259 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2260 function not present in idl)
2262 2002-05-02 jacob berkman <jacob@ximian.com>
2264 * atk-bridge/Makefile.am: make atk-bridge a real module
2266 2002-04-26 Radek Doulik <rodo@ximian.com>
2268 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2269 atk_state_types table
2271 2002-04-22 jacob berkman <jacob@ximian.com>
2274 * libspi/Makefile.am: add deps on the built files to help
2275 automake, and don't version the ORBit typelib
2277 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2279 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2280 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2281 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2282 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2283 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2284 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2285 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2286 libspi/accessible.h libspi/accessible.h libspi/base.h
2287 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2288 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2289 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2290 libspi/spi-private.h libspi/statetset.h libspi/table.h
2291 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2292 util/mag_client.h util/mag_control.c util/mag_image.c
2293 util/mag_image.h util/magnifier.c util/magnifier.h:
2294 Add missing file headers; standardize existing ones
2296 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2298 * atk-bridge/bridge.c: Added window event support.
2300 2002-04-18 Michael Meeks <michael@ximian.com>
2302 * libspi/relation.c (impl_getNTargets): impl.
2303 (impl_getTarget): impl.
2305 * libspi/Makefile.am: fix stateset install.
2307 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2310 Started putting useful info in this file.
2312 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2314 * atk-bridge/bridge.c:
2315 Propagate state-changed notifications to ATs
2317 * cspi/spi_registry.c: update docs to reflect actual behavior of
2318 state-change events.
2320 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2323 Incremented version to 0.12.1
2325 * util/mag_client.h:
2326 Add missing declaration for magnifier_exit,
2327 used by mag_control.c - Forte compiler didn't like
2328 the implicit redeclaration of the function :-(
2331 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2334 Revved version to 0.12 due to API change (see below).
2336 * cspi/spi-roletypes.h:
2337 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2338 definition from the inline docs, and added docs
2339 for SPI_ROLE_LAST_DEFINED.
2342 * cspi/spi_streamablecontent.c:
2343 Added missing seek_type parameter to
2344 (so far unused) method,
2345 AccessibleStreamableContent_seek().
2346 [ RT approval JodyG. ]
2349 Fixed docs for SPI_createAccessibleKeystrokeListener.
2351 * cspi/spi_registry.c:
2352 Fixed docs for SPI_KEYSET_ALL_KEYS.
2354 * docs/reference/cspi/at-spi-cspi-sections.txt:
2355 Added a number of missing APIs to SECTIONS.
2357 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2359 * registryd/Makefile.am:
2361 * cspi/bonobo/Makefile.am:
2362 Add $(X_LIBS) to makefiles.
2364 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2367 Revved version to 0.11.
2369 * libspi/component.c:
2370 Added implementation for grabFocus.
2372 * idl/Accessibility_Component.idl
2373 (Accessibility_Component_grabFocus):
2374 Made this method return boolean to indicate success or failure, to
2375 be consistent with cspi and the corresponding ATK method.
2377 * idl/Accessibility_Selection.idl
2378 (Accessibility_Selection_selectAll) :
2379 Made these methods return boolean to indicate success or
2380 failure, to be consistent with cspi and the corresponding ATK methods.
2382 * idl/Accessibility_EditableText.idl
2383 (Accessibility_EditableText_setTextContents,
2384 Accessibility_EditableText_insertText,
2385 Accessibility_EditableText_cutText,
2386 Accessibility_EditableText_deleteText,
2387 Accessibility_EditableText_pasteText):
2388 Made these methods return boolean to indicate
2391 * cspi/spi_editabletext.c:
2392 Made these methods return booleans.
2394 * libspi/selection.c:
2395 * libspi/component.c:
2396 * libspi/editabletext.c:
2397 Connected the boolean returns from ATK
2398 to the server-side code referenced above.
2400 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2402 * idl/Accessibility_Table.idl: Added missing methods,
2403 Accessibility_Table_addRowSelection,
2404 Accessibility_Table_addColumnSelection,
2405 Accessibility_Table_removeRowSelection,
2406 Accessibility_Table_removeColumnSelection.
2409 Added C wrappers for above IDL:
2410 AccessibleTable_addRowSelection,
2411 AccessibleTable_addColumnSelection,
2412 AccessibleTable_removeRowSelection,
2413 AccessibleTable_removeColumnSelection.
2416 Added server-side implementation code for IDL above, connecting
2417 to pre-existing ATK api.
2419 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2421 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2423 * libspi/accessible.c: Added implementation fo
2424 Accessibility_Accessible_get_state.
2426 * libspi/libspi.h: Added stateset.h to the list of includes.
2428 * libspi/stateset.c: Fixed broken implementation.
2430 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2433 Added implementation code for Accessibility_Magnifier_exit ().
2435 * util/mag_control.c:
2436 Added test code for above method; you can
2437 now kill an existing magnifier via
2438 ./mag_control q, from the util directory.
2440 * test/key-listener-test.c:
2442 Added a new test, for our key listener API.
2444 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2446 * test/app.c, test/keysynth-demo.c:
2448 Replace use of snprintf with g_snprintf.
2449 (fix for bugzilla 78249)
2451 2002-03-27 Michael Meeks <michael@ximian.com>
2455 * util/Makefile.am (INCLUDES): fix.
2456 (DONT_DIST_SOURCE): don't distribute the
2459 * libspi/Makefile.am (dist-hook): ditto.
2461 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2463 * libspi/hypertext.c:
2464 Fix warnings when yelp is used with atk-bridge
2466 2002-03-21 Michael Meeks <michael@ximian.com>
2468 * libspi/application.c (spi_application_new):
2469 use spi_accessible_construct so we use the AtkObject
2472 2002-03-19 Michael Meeks <michael@ximian.com>
2474 * registryd/registry.c (desktop_remove_application),
2475 (desktop_add_application): clean coding style.
2477 * registryd/desktop.c (spi_desktop_remove_application),
2478 (spi_desktop_add_application): kill re-enterency hazards.
2479 (spi_desktop_dispose): remove bogus redundant cast
2480 obscuring bug; fix bug too.
2481 (spi_desktop_init): make the desktop object immortal.
2483 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2486 Added a #define-guarded tree-traversal step
2487 when enumerating the apps (diagnostic tool).
2489 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2491 * idl/Accessibility_Role.idl:
2492 Added ROLE_DRAWING_AREA which seemed to be missing from the
2495 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2497 * cspi/spi-roletypes.h cspi/spi_accessible.c
2498 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2501 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2502 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2503 AT when applications are added and removed from the desktop. This
2504 reverts the previous broken implementation using the backing
2505 AtkObject for the SpiDesktop.
2507 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2509 * registryd/desktop.c: emit the "children-changed::add" and
2510 "children-changed::remove" signals on the backing ATK object for
2511 the desktop so AT can tell when applications are started and shut
2514 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2516 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2518 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2520 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2522 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2524 * cspi/state-types.h: synched with IDL and ATK
2526 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2528 * libspi/accessible.c
2529 (impl_accessibility_accessible_get_child_at_index):
2530 Change return value for g_return_if_fail ()
2531 to CORBA_OBJECT_NIL instead of "0" (!)
2533 * registryd/Makefile.am:
2534 * registryd/Accessibility_Register.server.in:
2535 Changed name of executable, "registryd",
2536 to something more informative:
2539 2002-03-13 Michael Meeks <michael@ximian.com>
2541 * atk-bridge/bridge.c (atk_bridge_init): don't register
2542 if we're in a bonobo-component, rather than a bonobo app.
2544 2002-03-13 Michael Meeks <michael@ximian.com>
2546 * atk-bridge/bridge.c (gtk_module_init): split
2547 out body to (atk_bridge_init): here, since otherwise
2548 we get symbol conflicts and oddness when invoked
2549 from (gnome_accessibility_module_init): here (upd.)
2551 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2554 New file. Explicitly allow "build sheriff" putbacks provided
2555 they are tested on Solaris.
2557 * docs/reference/cspi/Makefile.am:
2558 Added '-' to the "cp" command for index.sgml.
2559 ("patch by thomasvs, soon coming to a GUADEC near you")
2562 Incremented version number (0.9.0) for new release.
2563 Changed macro that checks for popt, to better detect
2564 obsolete versions of popt.
2567 Added X_LIBS to AC_SUBST, for applications
2568 that call Xlib API directly.
2571 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2574 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2577 Fix regression caused by hard-coding major
2578 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2581 * test/test-simple.c (test_editable_text),
2582 (test_test): revert previous change (error was
2583 a regression in gail which is now fixed).
2585 2002-03-04 Michael Meeks <michael@ximian.com>
2587 * test/test-simple.c (test_editable_text),
2588 (test_text): pass G_MAXINT instead of '-1' for
2589 whole string - is this a good thing !?
2591 * cspi/spi_accessible.c
2592 (Accessible_getRelationSet): fix crasher bug
2593 overwriting the end of the array.
2595 * test/test-simple.c (validate_accessible): free,
2596 not g_free returned relation set.
2598 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2600 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2601 implemented stateset support
2603 * idl/Accessibility_State.idl: Made necessary changes to
2604 the IDL to support state sets.
2606 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2608 * registryd/deviceeventcontroller.c:
2609 Added implementation for generateMouseEvent.
2611 * cspi/spi_registry.c:
2612 Connected new implementation for generateMouseEvent
2615 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2618 Incremented revision (but no change in public API
2619 outside of 'utils', which are not installed public yet.)
2621 * libspi/component.c:
2622 Changed to use atk_component API for layers and
2623 mdi_zorder, instead of deprecated atk_object API.
2625 Magnification Utility Enhancements:
2628 Added implementation of createZoomRegion, clearAllZoomRegions,
2629 resizeZoomRegion. Added new commandline argument
2630 "--no-initial-region". Note that clearAllZoomRegions doesn't
2631 unmap the old '0' region as it should (yet), and the other
2632 methods only work when creating/resizing a single region,
2633 which is "region 0".
2634 (Code for multiple region support will be added later.)
2637 Now we raise the magnifier window each time it's refreshed;
2638 this will help keep it on top.
2640 * util/mag_client.h:
2641 Added simple wrappers for above, used by mag_control.
2642 For general use, it's recommended to use the bonobo magnifier
2643 control API directly instead of using these wrappers.
2646 Moved ZoomRegionData from magnifier.c to this file.
2648 * util/mag_control.c:
2649 Added some code to exercise new IDL implementations.
2651 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2653 * libspi/text.c: Provide implementation for getAttributes.
2655 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2658 Incremented revision.
2660 * test/test-simple.c:
2661 Replaced use of deprecated g_main_iteration with
2662 g_main_context_iteration.
2664 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2667 Incremented revision for desktop alpha 2.
2669 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2671 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2674 * test/simple-at.c: include netinet/in.h.
2676 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2678 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2679 use NULL, not CORBA_OBJECT_NIL.
2681 * libspi/accessible.c:
2682 (impl_accessibility_accessible_get_relation_set):
2683 allocate the sequence correctly.
2685 * libspi/remoteobject.h: kill spi_remote_object_new.
2687 * test/test-simple.c: (validate_accessible): add code
2688 to test relation sets, now all we need is to figure
2689 out how to excercise this code path :/
2691 2002-01-18 Michael Meeks <michael@ximian.com>
2693 * test/test-simple.c
2694 (key_listener_cb): consume the key.
2695 (test_keylisteners): update.
2696 (main): wait for any pending unrefs on events.
2698 * registryd/deviceeventcontroller.c
2699 (spi_controller_update_key_grabs): only re-issue the
2700 grab on a key release.
2701 (spi_device_event_controller_forward_key_event):
2702 refresh the keygrabs before we notify the listeners,
2703 to reduce the X ungrab / re-grab race.
2704 (spi_controller_register_with_devices): remove
2705 XSelectInput - we do that with the gdk_window_ call.
2706 (_spi_controller_device_error_handler): return a value.
2707 s/GDK_DISPLAY/spi_get_display/
2709 2002-01-17 Michael Meeks <michael@ximian.com>
2711 * registryd/deviceeventcontroller.c
2712 (_deregister_keygrab): don't blow out the later
2715 * test/test-simple.c (test_keylisteners): do a
2716 more intelligent validation.
2718 2002-01-14 Michael Meeks <michael@ximian.com>
2720 * atk-bridge/bridge.c
2721 (gnome_accessibility_module_init),
2722 (gnome_accessibility_module_shutdown): impl.
2723 (gtk_module_init): protect vs. double inits.
2724 (add_signal_listener): impl.
2725 (spi_atk_bridge_state_event_listener): kill
2726 (deregister_application): split out of
2727 (spi_atk_bridge_exit_func): here.
2729 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2732 Added caret tracking when using magnifier, and
2733 now use text bounds for focus tracking of text elements, rather than
2734 the component bounds - this is helpful for short text fields in long
2735 table cells, at high magnification.
2737 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2739 * registryd/deviceeventcontroller.c:
2740 Regression fix for keylistener de-registration; global keygrabs
2741 were not being released when deregisterKeystrokeListener was
2742 called in cspi, since
2743 Accessibility_DeviceEventController_deregisterKeystrokeListener
2744 was called with a zero-length keyset. That is because the cspi
2745 method, SPI_deregisterKeystrokeListener, does not take a keyset
2746 parameter but instead should remove all the key grabs held be a
2748 The code in impl_deregister_keystroke_listener was changed to copy
2749 the keylist from the listener instance previously registered with
2750 the DeviceEventController before releasing the grabs.
2752 * registryd/registry.c:
2753 * registryd/deviceeventcontroller.c:
2754 * libspi/spi-private.h:
2756 Changed spelling of "re-enterant" to "re-entrant" globally.
2758 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2760 * test/test-simple.c:
2761 Changed key listeners test - the test was slightly mis-using the
2762 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2763 It now uses '=' as the key event listened to and generated,
2764 relying on a keysym match rather than assuming that keycode 33
2765 is always equal to keysym '!'.
2767 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2770 Changed simple-at to use a specific keyset, rather than
2771 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2772 manager, desktop, etc.
2774 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2776 * registryd/deviceeventcontroller.c:
2777 Replaced standard X error handler with a special handler that
2778 is non-fatal for failed keygrabs. This works around
2779 problems with keygrab clashes sometimes observed on
2781 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2782 mouse handling code as yet).
2784 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2787 Incremented revision for desktop alpha release.
2790 Fixed a couple of the more glaring errors (still not
2793 2002-01-11 Michael Meeks <michael@ximian.com>
2795 * registryd/deviceeventcontroller.c
2796 (spi_device_event_controller_forward_key_event): kill
2797 XUngrabKey / XKeyGrab race.
2798 (spi_controller_grab_keyboard): rename to
2799 (spi_controller_update_key_grabs): this, and deal
2800 with incremental adding / removing grabs more
2802 (_register_keygrab): ensure we're not pending a remove.
2803 (spi_grab_mask_free): impl.
2804 (spi_controller_register_global_keygrabs): split out
2806 (handle_keygrab): impl.
2807 (_deregister_keygrab): impl.
2808 (spi_controller_deregister_global_keygrabs): impl.
2809 (spi_controller_update_key_grabs): re-issue the grab if
2810 we just recieved a notification.
2812 * test/test-simple.c (key_listener_cb): remove debug.
2814 * registryd/deviceeventcontroller.c
2815 (spi_controller_register_device_listener): after
2816 registering a global keygrab, actualy register it !
2817 don't wait for a timeout; doh !
2819 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2820 to make it more readable / manipulable.
2821 s/grabmask/grab_mask/ s/refcount/ref_count/
2822 s/keyval/key_val/ s/modmask/mod_mask
2824 2002-01-08 Michael Meeks <michael@ximian.com>
2826 * registryd/deviceeventcontroller.c
2827 (spi_controller_register_with_devices): use gdk calls to
2829 (global_filter_fn): implement the filter.
2830 (spi_device_event_controller_check_key_event): rename to
2831 (spi_device_event_controller_forward_key_event): this & upd.
2832 (spi_get_display): replace with GDK_DISPLAY.
2834 * registryd/deviceeventcontroller.c
2835 (spi_controller_deregister_device_listener): unroll into
2836 (impl_deregister_keystroke_listener): here to simplify.
2837 (spi_controller_register_global_keygrabs): split cut and
2838 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2839 (spi_controller_deregister_device_listener): remove.
2840 (impl_register_mouse_listener): remove, no mouse listener
2841 support in at-spi-1.0
2843 * registryd/registry.c
2844 (_device_event_controller_hook): kill.
2845 (spi_registry_init): upd.
2847 * registryd/deviceeventcontroller.c
2848 (spi_device_event_controller_class_init): upd.
2849 (spi_check_key_event): merge into.
2850 (spi_device_event_controller_check_key_event):
2851 here and kill strange static ev init, don't leak
2852 the x_event - nor dynamicaly allocate it.
2854 * registryd/registry-main.c (main): re-direct
2855 timeout to remove strange vtable mess.
2857 * registryd/deviceeventcontroller.c
2858 (remove_listener_cb): impl.
2859 (spi_controller_deregister_device_listener):
2860 fix re-enterancy hazard.
2862 2002-01-07 Michael Meeks <michael@ximian.com>
2864 * registryd/deviceeventcontroller.c
2865 (spi_device_event_controller_new): upd.
2866 (impl_notify_listeners_sync): upd. debug.
2867 (spi_notify_keylisteners): fix re-enterancy hazards,
2868 prettify, remove O(n*n) iteration.
2869 (spi_controller_grab_keyboard): fix iteration.
2870 (spi_check_key_event): re-format to suit coding style.
2871 Clean all the warnings - we're warning free.
2873 * registryd/deviceeventcontroller.h:
2874 * registryd/registry.h: make mutualy referential with
2875 typesafe forward references instead of (!) void pointer
2878 2002-01-11 Michael Meeks <michael@ximian.com>
2880 * cspi/spi_accessible.c (role_names): add a role name
2881 to sync this array with the enum; and make the regression
2884 2002-01-10 Michael Meeks <michael@ximian.com>
2886 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2887 allow expansion of enumeration & kill warning.
2889 * test/test-simple.c (key_listener_cb): impl.
2890 (test_keylisteners): impl.
2892 * cspi/spi-listener.h: make listener signatures const
2893 on the provided (const) events.
2895 * test/keysynth-demo.c: upd. to const events.
2897 * test/simple-at.c: ditto.
2899 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2902 Rev the version to 0.5 (the previous tarball was named 0.4,
2903 even though the micro number was 3), so we need to rev upwards
2904 again for beta2/"desktop-alpha"
2907 Checked in a demo script, which requires editing before use!
2908 Proceed with caution.
2911 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2913 * cspi/spi_accessible.c:
2914 Add a couple of missing enum initializations, and fix some enum
2917 * cspi/spi_registry.c:
2918 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2920 * docs/reference/cspi/at-spi-cspi-sections.txt:
2921 Remove/fix a couple of broken document references.
2924 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2925 as Alt-Control to listen for commands, since on some systems
2926 Control-Alt may already be grabbed.
2928 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2931 Update version number to 0.4 for Beta2.
2933 * libspi/accessible.c, libspi/accessible.h:
2934 Expose spi_accessible_construct, to enable libgail-gnome
2935 construction from spi_accessible subtype.
2937 * utils/magnifier.c:
2938 Workaround for bug in some non-gnome-compliant window managers
2939 which made magnifier resize improperly.
2941 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2943 * libspi/accessible.c: (spi_accessible_new) :
2944 Move the test for SPI_IS_REMOTE_OBJECT to
2945 spi_accessible_new_return, fixing a bug and compile time warning.
2947 2002-01-08 Michael Meeks <michael@ximian.com>
2949 * registryd/registry.c (parse_event_type): remove strndup.
2951 * libspi/Makefile.am (libspi_la_SOURCES): remove
2952 sources already included in the headers section.
2954 * libspi/util.c: add.
2956 * libspi/spi-private.h: add.
2958 * registryd/registry.c: update to moved list iterators.
2960 2002-01-05 Michael Meeks <michael@ximian.com>
2962 * test/simple-at.c (main): upd. auto-module set to atk-bridge
2964 * test/test-simple.c (main): ditto.
2966 2002-01-04 Michael Meeks <michael@ximian.com>
2968 * libspi/accessible.c (spi_accessible_new): remove 2nd,
2969 redundant construct.
2971 * registryd/registry.c
2972 (get_listener_list): impl.
2973 (impl_accessibility_registry_register_global_event_listener):
2974 re-impl. to simplify using ~, remove dodgy const cast off.
2975 (parse_event_type): constify.
2976 (impl_accessibility_registry_deregister_global_event_listener_all):
2977 re-write, more efficiency and simplicity, kill re-enterancy
2979 (compare_listener_corbaref, compare_corba_objects),
2980 (compare_listener_quarks): define out.
2981 (impl_accessibility_registry_deregister_global_event_listener):
2982 re-write for effiency, and nail re-enterancy hazard.
2983 (impl_accessibility_registry_get_desktop_list): impl.
2984 (re_enterant_list_delete_link): impl.
2985 (re_enterant_list_foreach): impl.
2986 (remove_listener_cb): impl.
2987 (_registry_notify_listeners): kill.
2988 (notify_listeners_cb): impl.
2990 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
2991 (SPI_getDesktopList): impl.
2993 * test/test-simple.c (test_desktop): test the methods.
2995 2002-01-03 Michael Meeks <michael@ximian.com>
2997 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
2998 keystrings since we free them
2999 (SPI_freeAccessibleKeySet): in here.
3001 * libspi/accessible.c (spi_accessible_new): kill warning,
3002 wonder what is going on with the constructor here.
3004 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3006 * libspi/accessible.c (spi_accessible_new ()) :
3007 Added check to see if AtkObject is an SpiRemoteObject before
3008 creating an SpiAccessible.
3010 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3012 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3013 Enable keygrabs using the Control modifier, now that they are
3014 working properly (they were previously disabled).
3017 Change the command keygrab for this demo to "Control+Alt", so as
3018 to conflict with fewer other key commands on the system; this
3019 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3021 Removed a pointlessly-chatty keylistener for unshifted keys
3022 (shifted keys are still reported).
3024 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3026 * libspi/remoteobject.h:
3027 * libspi/remoteobject.c:
3028 Added definitions for special AtkObject subtype, required for
3029 support of remote components (specifically, used by BonoboControl
3030 accessibility implementation).
3032 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3034 * cspi/spi.h: synched relation types with ATK
3036 * cspi/spi_accessible.c: Added implementations of
3037 AcccessibleRelation_* methods
3039 * idl/Accessibility_Relation.idl: added getRelationTypeName
3040 method. Synched known relation types with ATK. Allowed for
3041 relation type extension with the RELATION_EXTENDED type.
3043 * libspi/relation.c: Provided implementations for
3044 AccessibleRelation methods.
3046 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3048 API tweaks for today's API 'freeze'.
3051 Added placeholder functions to allow future compatible expansion
3052 of the IDL interfaces.
3054 * idl/Accessibility_Registry.idl:
3055 Changed generateKeyEvent to generateKeyboardEvent. Changed
3056 signature of this method to accept an optional keystring in
3057 parameter (for complex text input synthesis) and changed use of
3058 simple 'boolean' parameter in registerKeystrokeListener to a
3059 struct, EventListenerMode.
3061 * cspi/spi_accessible.c:
3063 * cspi/spi_streamablecontent.c:
3064 Added references to AccessibleStreamableContent interface, and
3065 definition and implementation of AccessibleStreamableContent
3068 * cspi/spi_registry.c:
3070 Changed generateKeyEvent API to generateKeyboardEvent,
3071 taking a new (optional) keystring parameter to support complex
3076 Renamed directory (to better reflect its actual purpose, bridging
3077 from at-spi to ATK). The .so module is also now named
3080 * idl/Accessibility_Hypertext.idl:
3081 * libspi/accessible.c:
3082 * libspi/hypertext.h:
3083 * libspi/hypertext.c:
3084 Changed Accessibility_Hypertext to *not* derive from
3087 * cspi/spi_registry.c:
3088 Added list of legal event type names for 'window' events, which
3089 completes the registry event API.
3091 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3093 * at-bridge/bridge.c: Added registration for separate
3094 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3095 signals. If either of the first two parameters to the generic
3096 bridge signal handler are ints, they are passed on as event
3097 details. This allows an AT to determine what text was inserted.
3099 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3101 * registryd/deviceeventcontroller.c:
3102 Fixed regressions in generateKeyEvent caused by the removal of
3103 gdk_init from registryd; we now use pure X calls to connect to the
3104 display, which makes sense because deviceeventcontroller already
3105 uses a fair bit of X API (should eventually be migrated to a
3106 'portability layer').
3108 * registryd/desktop.c:
3109 Fixed minor regression in spi_desktop_init, changed the way the
3110 desktop name is being set to work with new spi_base API
3111 (gobject-based, rather than AtkObject-based).
3113 * registryd/Makefile.am:
3114 Minor revision of makefile to use XTST_LIBS variable rather than
3115 hard-wiring the Xtst LD_ADD element.
3117 * test/keysynth-demo.c:
3118 Tweaked an output message; added initialization of the
3119 'keystrings' member of the "switch listener" key_set.
3121 * libspi/relation.c:
3122 Squashed compile-time warning.
3124 * libspi/accessible.c:
3125 Cosmetic and formatting fixes, renamed a static method.
3127 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3129 * libspi/accessible.c
3131 * libspi/application.c
3134 * libspi/component.c
3135 * libspi/editabletext.c
3136 * libspi/hyperlink.c
3137 * libspi/hypertext.c
3139 * libspi/selection.c
3143 * registryd/desktop.c:
3144 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3146 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3148 * idl/Accessibility_Registry.idl:
3149 Added boolean member 'is_text' to DeviceEvent. This is for the
3150 use of key events, and helps prevent ambiguity between composed
3151 key strings and keysym names, since both may potentially be
3152 returned in the 'event_string' member.
3154 * at-bridge/bridge.c:
3155 * registryd/deviceeventcontroller.c:
3156 Use the 'is_text' member when notifying device event listeners.
3157 Knon issue: composed characters are not dealt with correctly by
3158 the global key listener implementation yet.
3160 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3162 * at-bridge/bridge.c:
3163 Namespaced local static methods to spi_atk_bridge_* where
3164 previously named bridge_*, and spi_* elsewhere.
3166 * at-bridge/bridge.c:
3167 * cspi/bonobo/cspi-bonobo-listener.c:
3168 Added demarshalling/conversion for string member of
3169 Accessibility_DeviceEvent to AccessibleKeystroke.
3171 * registryd/deviceeventcontroller.c:
3172 Added code to fill the Accessibility_DeviceEvent key string value
3173 member for global key events (i.e. from XGrabKey), to match
3174 behavior of Accessibility_DeviceEvent from the toolkit key events
3175 from the bridge. Fixed timestamp in global key event notifications.
3178 Added printout of key event's string value to
3179 report_ordinary_key_event, for demo/debugging purposes.
3181 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3183 * idl/Accessibility_Registry.idl:
3184 Removed Accessibility_KeyStroke structure in favor of generic
3185 Accessibility_DeviceEvent structure.
3186 Changed Accessibility_ControllerEventMask from a struct to an
3189 * at-bridge/bridge.c:
3190 Changed APIs to use DeviceEvent structure as above, and removed
3191 bogus casting between these event structures.
3193 * cspi/spi-listener.h:
3194 Added keystring member of AccessibleKeystroke structure, to enable
3195 matching on event "names" rather than only hardware codes and
3199 Added keystrings member of AccessibleKeySet struct, to allow
3200 matching on event names (as above).
3201 Added declarations for SPI_createAccessibleKeySet and
3202 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3203 event modmasks directly as unsigned ints rather than structs with
3204 refcounts, in the DeviceEventController methods.
3206 * cspi/spi_registry.c:
3207 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3209 * cspi/spi-roletypes.h:
3210 Added documentation of newly added SPI Roles.
3212 * cspi/bonobo/cspi-bonobo-listener.c:
3213 Changes in support of API changes above.
3215 * libspi/accessible.c:
3216 Converted APIs to use DeviceEvent structure (see IDL changes
3219 * registryd/deviceeventcontroller.c:
3220 Added DEControllerGrabMask structure to track keygrabs not only by
3221 modmask but by keyset as well; this allows us to do "global"
3222 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3223 grabbing on AnyKey and then filtering after-the-fact.
3224 Bugfixes for event filtration mean that we don't get false matches
3225 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3227 * registryd/deviceeventcontroller.c:
3228 Namespaced a number of static methods to use spi_ prefix. Major
3229 revision to internals of global (i.e. X) key grabs.
3231 * registryd/deviceeventcontroller.h:
3232 Removed keymask_list and added keygrabs_list to
3233 SpiDeviceEventController struct.
3236 Added use of SPI_createAccessibleKeySet API when creating a
3237 listener for only one key. Attach a listener to "shift spacebar
3238 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3239 X key event names to SPI key event names, so that listeners are
3240 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3242 * test/keysynth-demo.c:
3243 Changed (incorrect) use of X key event names (KeyPressed,
3244 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3247 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3249 * libspi/accessible.c:
3250 Convert all AtkRole enumerations to Accessibility_Role enums when
3251 getting a role from an AtkObject.
3253 * cspi/spi_accessible.c:
3254 Complete the conversion of Accessibility_Role enums at runtime to
3255 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3256 role enums correctly match those given in spi-roletypes.h.
3257 Re-synchronize the local names list for AccessibleRole_getName ().
3258 AccessibleRole_getName is now deprecated, since it duplicates the
3259 more reliable Accessible_getRoleName.
3260 Added some role types from Accessibility_Role.idl.
3262 * idl/Accessibility_Role.idl:
3263 Added some role types used by AtkRole.
3265 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3268 * cspi/spi_registry.c:
3270 * cspi/cspi-bonobo-listener.c:
3271 Namespaced all methods that did not begin with an "SPI_" or
3272 "Accessible" prefix to "SPI_".
3275 Homogenized internal function namespace to "cspi_" for statics.
3278 Patched tests to use the new CSPI API.
3280 * docs/reference/cspi/at-spi-cspi-sections.txt:
3281 Updated docs to reflect namespace changes, and added a number of
3282 methods to the documentation.
3284 * registryd/registry.c:
3285 Changed use of strings and string hashes in listener event
3286 matching and parse_event_string to use GQuark, which is guaranteed
3289 * registryd/registry.h:
3290 Squashed annoying warning.
3292 * idl/Accessibility_Role.idl:
3293 Extended range of available Accessibility_Role values.
3295 * cspi/spi_accessible.c:
3296 Re-ordered role names.
3298 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3300 * idl/Accessibility_Value.idl:
3301 Revert use of union back to CORBA_double, since the double type is
3302 more efficient and can contain the other types without loss of
3305 * idl/Accessibility_Accessible.idl:
3306 Added method Accessibility:Accessible:getRoleName, to complement
3307 Accessibility:Accessible:getRole.
3309 * cspi/spi_accessible.c:
3311 Added C binding for above, Accessible_getRoleName (), and changed
3312 signature of Accessible_getRole () to return an AccessibleRole.
3314 * cspi/spi-roletypes.h:
3315 Changed AccessibleRole_getName to return a char * instead of a
3316 const char *. This method is now at least temporarily deprecated
3317 in favor of asking Accessibles for their RoleNames directly.
3320 Revert to match Accessibility_Value.idl;
3324 Change signature of AccessibleValue methods to use double rather
3328 * cspi/spi_accessible.c:
3329 Changed Accessible_getRole to return an AccessibleRole enum rather
3330 than a UTF-8 string. The UTF-8 string can still be obtained via
3331 AccessibleRole_getName ().
3333 * test/test-simple.c:
3334 Add test_action. Small fixup to match API change to Accessible_getRole.
3337 Bugfix for get_action_from_servant ().
3339 2001-12-11 Michael Meeks <michael@ximian.com>
3341 * libspi/libspi.h: remove registry.h and
3342 desktop.h, deviceeventcontroller.h
3344 * libspi/Makefile.am: remove registry.[ch],
3345 desktop.[ch], deviceeventcontroller.[ch]
3347 * registryd/Makefile.am: add registry.[ch],
3348 desktop.[ch], rename registryd.c to registry-main.c.
3349 add deviceeventcontroller.[ch]
3351 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3354 Replace setenv() call with putenv ().
3356 * libspi/component.c:
3357 Bugfix in AccessibleComponent_getExtents (),
3360 2001-12-11 Michael Meeks <michael@ximian.com>
3362 * libspi/image.c (impl_getImageExtents): impl.
3363 (spi_image_class_init): upd.
3366 (AccessibleImage_getImageDescription): fix daft bug
3369 * test/test-simple.c (global_listener_cb): update
3370 to only quit if not --poke
3371 (main): catch --poke.
3372 (validate_accessible): upd. dumping, call test_image
3375 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3378 * idl/Accessibility.idl: update all IDL includes.
3380 * idl/*.idl - rename to namespace - this sucks, blame
3381 mjs' bad decision for oafd.
3383 * test/test-simple.c (create_test_window): add more tests.
3384 (create_tree): split this out.
3385 (validate_accessible): bugfix.
3387 2001-12-11 Michael Meeks <michael@ximian.com>
3389 * cspi/bonobo/cspi-bonobo-listener.c:
3390 (cspi_kestroke_listener_unref),
3391 (cspi_event_listener_unref): impl. undoing previous
3392 homenous environment - for Bill.
3394 * cspi/spi_table.c (long_seq_to_array): use
3397 * cspi/spi_main.c: split out all bonoboish bits into
3400 * cspi/spi-impl.h: upd. typedefs.
3402 * cspi/spi_registry.c: update to lowlevel API,
3403 return booleans to indicate success in some places.
3405 * cspi/spi_event.c: update to lowlevel API.
3407 * cspi/bonobo/Makefile.am: add.
3409 * cspi/bonobo/cspi-lowlevel.h: add
3411 * cspi/bonobo/cspi-bonobo.c: add
3413 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3415 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3416 (SUBDIRS): add bonobo, link in the libs.
3418 * cspi/spi-util.c: kill this file.
3420 * TODO: merge in my bits.
3422 2001-12-11 Michael Meeks <michael@ximian.com>
3424 * test/test-simple.c (test_value, test_table, main):
3425 remove unused variables causing warnings.
3427 * configure.in: cleanup checks - require gail.
3429 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3432 Changed Value interface to use SValue (scalars) rather than
3433 assuming all values are floats. This allows floats, doubles,
3434 longs, shorts, and unsigned values to be manipulated.
3435 Introduced Accessibility:SValue union.
3438 Updated to use new API above, and to work correctly with GValues
3439 of different types in AtkValue.
3442 Updated to use new API above. cspi's API is as yet unchanged.
3445 Updated the Value revision action item.
3447 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3449 * test/test-simple.c:
3450 Added test_table (GtkTreeView widget in test window to follow).
3451 Un-commented test_value, added GtkRange widget.
3452 Added GtkTreeView widget with GtkListStore. It passes regression
3453 test but leaks one SPI object for some reason.
3456 Fixed bug in impl__set_currentValue.
3458 2001-12-10 Michael Meeks <michael@ximian.com>
3460 * cspi/spi_text.c: audit for exception handling,
3461 tolerating NULL object references safely etc.
3463 * cspi/spi_value.c: ditto.
3465 * cspi/spi_table.c (AccessibleTable_getSummary),
3466 (AccessibleTable_getAccessibleAt),
3467 (AccessibleTable_getRowHeader),
3468 (AccessibleTable_getColumnHeader),
3469 (AccessibleTable_getCaption): fix bugs hidden by
3471 (long_seq_to_array): impl.
3472 (AccessibleTable_getSelectedRows),
3473 (AccessibleTable_getSelectedColumns): use it.
3475 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3478 Added a TODO list (rough and short for now).
3480 * cspi/spi_hyperlink.c:
3481 * cspi/spi_hypertext.c:
3482 Fixed macro name typos, and remove use of obsolete macro in
3483 AccessibleHyperlink_getLink.
3485 * cspi/spi_action.c:
3486 * cspi/spi_accessible.c:
3487 * cspi/spi_application.c:
3488 * cspi/spi_component.c:
3489 * cspi/spi_selection.c:
3492 Documentation fixes (removed return values from ref/unref methods).
3494 2001-12-10 Michael Meeks <michael@ximian.com>
3496 * cspi/spi_action.c: audit for exception handling,
3497 tolerating NULL object references safely etc.
3499 * cspi/spi_accessible.c: ditto.
3501 * cspi/spi_component.c: ditto.
3503 * cspi/spi_editabletext.c: ditto.
3505 * cspi/spi_hyperlink.c: ditto.
3507 * cspi/spi_hypertext.c: ditto.
3509 * cspi/spi_image.c: ditto.
3511 * cspi/spi_selection.c: ditto.
3513 2001-12-10 Michael Meeks <michael@ximian.com>
3515 * configure.in: use cspi/libspi.pc.in instead.
3517 * Makefile.am (pkgconfig_DATA): upd. to match.
3519 * test/simple-at.c (report_focus_event): kill hacks around
3520 bad return values, use putenv not setenv
3522 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3523 fire ChildGone - I killed it.
3525 * libspi/component.c
3526 (impl_accessibility_component_get_extents): remove
3529 * idl/Accessible.idl: kill ChildGone exception.
3531 * cspi/*.[ch]: kill int return from ref / unref.
3533 * cspi/spi_main.c (cspi_object_add_check): fold into
3534 (cspi_object_add): here.
3536 * cspi/spi_component.c (AccessibleComponent_getExtents):
3537 handle exceptions elegantly.
3539 * cspi/spi-private.h (cspi_check_ev_return),
3540 (cspi_return_if_fail): impl.
3542 * cspi/spi_accessible.c: use extensively.
3543 (AccessibleStateSet_equals): add direct compare check.
3545 * cspi/spi_selection.c: tolerate NULL objs, and check
3546 exceptions before return.
3548 * cspi/spi-util.c (cspi_warn_ev): rename to
3549 (cspi_check_ev): this & don't pass ev in; no point.
3551 2001-12-10 Michael Meeks <michael@ximian.com>
3553 * test/test-simple.c: use putenv not setenv
3554 (get_environment_vars): more chatty if you're not using
3557 * test/simple-at.c: do the setenv so more people see the
3560 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3562 * libspi/registry.c:
3563 Changed check of CORBA_environment on notification to be a warning
3564 instead of an error for the moment, since we can recover from this
3565 error when caused by a queued notification from a dead app.
3568 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3569 used by all current implementors of AtkValue), and coerce to
3570 CORBA_float. (Proper general case fix may require change to Value.idl).
3572 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3576 * cspi/spi_accessible.c:
3577 Documentation fixes: added user_data params to documentation for
3578 listeners and callbacks.
3580 * cspi/spi_accessible.c:
3581 Changed AccessibleStateSet_compare to return a
3582 StateSet rather than return the difference set into a third parameter.
3585 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3588 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3589 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3593 Remove subdirectory po from SUBDIRS for now.
3595 * at-bridge/bridge.c:
3596 Beefed up a couple of debug printouts.
3597 One-line fix for signal notification name formatting.
3599 * libspi/accessible.c:
3600 Added assertion to spi_accessible_new ().
3602 * libspi/application.c:
3603 Put #ifdef qualifiers around a printf.
3606 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3608 * registryd/Makefile.am:
3610 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3611 INTLTOOL_SERVER_RULE macro.
3614 Added an event listener for several ATK signals, for
3615 testing and debugging. Removed a few g_warnings.
3616 Added test output if focussed item implements the Value interface.
3618 * test/test-simple.c:
3619 Added test_value () function (known not to pass at the moment, so
3620 not actually called yet.
3622 2001-12-08 Michael Meeks <michael@ximian.com>
3624 * at-bridge/bridge.c (bridge_focus_tracker),
3625 (emit_eventv): fix the same ref. leak.
3626 (register_atk_event_listeners): don't leak.
3628 * cspi/spi-listener-impl.c (cspi_event): more
3629 protection from client code.
3631 * test/test-simple.c (test_desktop): unref the app.
3633 * test/Makefile.am: upd. TESTS.
3635 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3637 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3639 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3641 * cspi/spi_registry.c: constify in strings.
3642 (deregisterGlobalEventListenerAll): don't release the ref.
3644 * cspi/spi.h: start removing redundant / conflicting
3645 gtkdoc comments, making the API readable at a glance :-)
3647 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3649 * test/keysynth-demo.c (keysynth_exit, main): upd.
3651 * test/simple-at.c (main, simple_at_exit): upd.
3653 * test/test-simple.c (unutterable_horror): kill.
3654 (utterable_normal_derefs): kill.
3655 (main): upd & do a setenv before gtk_init, so that we
3656 can use memprof - and to save the pain of remembering
3657 this, if we're running under memprof - don't exit.
3659 * cspi/spi_main.c (SPI_exit): return exit status
3661 (SPI_event_quit): impl.
3662 (SPI_event_main): simplify.
3663 (cspi_is_gnome_app): kill.
3664 (SPI_init): kill isGNOMEapp arg.
3666 * at-bridge/bridge.c (register_atk_event_listeners):
3667 re-instate the unref.
3668 (bridge_exit_func): don't re-activate the registry,
3669 protect vs. theoretical re-entry, use the
3670 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3671 assert a clean shutdown - for regression tests.
3673 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3675 * configure.in: Comment out dummy i18n support for now,
3676 otherwise it fails to build.
3677 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3678 EXTRA_DIST. They are missing in tarball.
3680 2001-12-07 Michael Meeks <michael@ximian.com>
3682 * util/magnifier.c: kill bonobo activation reg. race.
3684 * libspi/component.c
3685 (impl_accessibility_component_get_extents): make it match
3688 * libspi/registry.c (_registry_notify_listeners):
3689 re-remove X headers & reconcile conflicts.
3690 (spi_listener_struct_free): bad conflict resolve.
3691 (impl_accessibility_registry_register_application):
3692 more bad merging fixed.
3693 (impl_accessibility_registry_deregister_application): ditto.
3694 (spi_registry_new): ditto.
3695 (spi_registry_init): don't have an applications field.
3697 [ merge fixups2 branch to here ]
3698 2001-12-07 Michael Meeks <michael@ximian.com>
3700 * test/simple-at.c (report_focus_event),
3701 (report_focussed_accessible): remove g_warning debug.
3703 2001-12-07 Michael Meeks <michael@ximian.com>
3705 * test/test-simple.c (validate_tree): comment out some checks.
3706 (test_desktop): app now not registered idly - horay.
3708 2001-12-07 Michael Meeks <michael@ximian.com>
3710 * cspi/spi_registry.c
3711 (registerAccessibleKeystrokeListener): clean, stop it leaking
3712 great swathes of memory, and device event controller references.
3713 ensure we always pass valid sequences.
3714 (deregisterAccessibleKeystrokeListener): ditto.
3715 (generateKeyEvent): upd.
3717 * at-bridge/bridge.c (bridge_key_listener): handle
3718 registry dead exception gracefully.
3719 (bridge_focus_tracker, emit_eventv): free ev.
3721 * test/simple-at.c (report_focus_event): fix polarity.
3723 * libspi/application.c (notify_listeners): kill the ev
3724 argument, and make sure we init the ev we use.
3725 (spi_application_object_event_listener): split out a chunk
3726 (get_atk_object_ref): here & fixup.
3727 (reverse_lookup_name_for_toolkit_event): make const.
3728 (spi_application_toolkit_event_listener): fixup, kill leaks
3731 * at-bridge/bridge.c (register_atk_event_listeners):
3732 don't unref the noop object - causes grief.
3734 * libspi/registry.c: remove the X headers.
3735 turn off the debug churn.
3737 * libspi/accessible.c (spi_accessible_new_return): only
3738 release the ref if we are supposed to [doh]
3740 * test/simple-at.c (report_button_press, report_focus_event):
3741 guard vs. unexpected exit.
3743 * at-bridge/bridge.c (gtk_module_init): prune printf.
3744 (bridge_exit_func): fix app unref.
3746 * libspi/Makefile.am: don't install registry or desktop.h
3748 * libspi/*.h: update includes.
3750 * libspi/application.h: don't include ourself, or
3751 other redundant headers.
3753 2001-12-06 Michael Meeks <michael@ximian.com>
3755 * libspi/accessible.c
3756 (get_accessible_from_servant): impl.
3757 Upd. all CORBA impl.s to use it killing cut and paste.
3759 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3761 (SPI_init): register atexit cleanup handler here.
3763 2001-12-06 Michael Meeks <michael@ximian.com>
3765 * at-bridge/bridge.c (gtk_module_init): g_error on
3766 activation exception
3768 2001-12-06 Michael Meeks <michael@ximian.com>
3770 * at-bridge/bridge.c (gtk_module_init): some sort of
3771 confusing merge clash - reverted.
3772 (bridge_idle_init): ditto.
3774 * test/test-simple.c (main, utterable_normal_derefs):
3775 merge from Bill - somehow not committed.
3777 2001-12-06 Michael Meeks <michael@ximian.com>
3779 * libspi/value.c (spi_value_class_init): upd.
3780 (spi_value_finalize): kill.
3782 * libspi/table.c (spi_table_finalize): kill.
3783 (spi_table_interface_new): upd.
3784 (spi_table_class_init): upd.
3785 (get_table_from_servant): impl.
3786 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3788 * libspi/selection.c (spi_selection_finalize): kill.
3789 (spi_selection_interface_new): upd.
3790 (spi_selection_class_init): upd.
3791 (get_selection_from_servant): impl.
3792 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3794 * libspi/relation.c (spi_relation_finalize): kill.
3795 (spi_relation_class_init, spi_relation_new): upd
3797 * libspi/image.c (spi_image_finalize): kill.
3798 (spi_image_class_init): upd.
3799 (spi_image_interface_new): upd.
3800 (get_image_from_servant): impl.
3801 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3803 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3804 (spi_hyperlink_finalize): kill.
3805 (spi_hyperlink_new): upd.
3806 (get_hyperlink_from_servant): impl.
3807 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3809 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3810 (spi_hypertext_finalize): kill.
3811 (spi_hypertext_class_init): upd.
3812 (get_hypertext_from_servant): impl.
3813 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3815 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3816 (spi_editable_text_interface_new): upd.
3817 (get_editable_text_from_servant): impl.
3818 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3820 * libspi/text.c (get_text_from_servant): impl.
3821 All impls - update to use it killing more cut and paste,
3822 also fix bad string returns on duff args ( a somewhat
3823 impossible case to handle - but hey ).
3824 (spi_text_construct): impl.
3825 (spi_text_interface_new): upd.
3826 (spi_text_object_finalize): kill.
3828 * libspi/component.c
3829 (accessibility_component_object_finalize): kill.
3830 (spi_component_class_init): upd.
3831 (get_component_from_servant): impl. helper to kill cut & paste.
3832 (impl_accessibility_component_contains):
3833 (impl_accessibility_component_get_accessible_at_point):
3834 (impl_accessibility_component_get_position):
3835 (impl_accessibility_component_get_extents):
3836 (impl_accessibility_component_get_mdi_z_order):
3837 (impl_accessibility_component_get_layer):
3838 (spi_component_interface_new): upd.
3840 * libspi/action.c (spi_action_finalize): kill.
3841 (spi_action_class_init): upd. inherit from SpiObject.
3842 (spi_action_interface_new): upd.
3843 (get_action_from_servant): impl. helper to reduce cut & paste.
3844 (impl_getKeyBinding, impl_getName, impl_doAction),
3845 (impl_getDescription): Use it everywhere.
3847 * cspi/spi_main.c (get_live_refs): a pointer hash.
3848 (spi_object_hash, spi_object_equal): comment out.
3849 There are issues with CORBA object hashing that need
3852 * libspi/application.c (spi_application_init),
3853 (spi_application_new): upd.
3855 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3856 (spi_accessible_class_init): upd.
3857 s/accessible/object/ in epv methods.
3859 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3861 * at-bridge/bridge.c:
3862 Reorder the bridge initialization into the bridge gtk_module_init,
3863 an immediate call to bridge_register_app, and an idle_add for
3864 register_atk_event_listeners (the only code that *must* wait until
3865 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3866 the activation, creates the application's Accessible object, and
3867 queues the bridge_idle_init function. Restored call to
3868 Accessibility_Registry_deregisterApplication().
3869 Prior to making this call we obtain a new reference to the
3870 registry, which is a temporary hack that helps us handle apps that
3871 shut down the bonobo mainloop before we get there.
3873 * libspi/registry.c:
3874 Fix string leakage in debug block, and don't segv if a an app
3875 dies before its event notifications have been propagated.
3878 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3879 as stopgap measure until we get proper exception handling when
3880 objects die during or before interrogation.
3884 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3885 Also changed default value of is_gnome_app to TRUE.
3888 * test/keysynth-demo.c:
3889 Changed use of SPI_init and SPI_event_main to reflect API change above.
3892 Made report_focus_event check the warning value from getName
3893 before reporting on focussed accessible; simplifies handling of
3894 notifications from dead objects.
3896 * test/test-simple.c: (Changes not in this patch since source is
3899 2001-12-05 Michael Meeks <michael@ximian.com>
3901 * registryd/registryd.c (main): protect against
3902 bonobo-activation startup race condition.
3904 * cspi/spi_main.c (cspi_object_add_check): cope
3905 with the exception elegantly.
3907 * idl/Accessible.idl: decl. ChildGone
3909 * libspi/desktop.c (spi_desktop_dispose): impl.
3910 (spi_desktop_class_init): upd.
3911 (spi_desktop_add_application),
3912 (spi_desktop_remove_application),
3913 (abnormal_application_termination): impl.
3914 (impl_desktop_get_child_at_index): re-impl.
3917 (impl_accessibility_registry_deregister_application),
3918 (impl_accessibility_registry_register_application):
3919 kill excessive debug clutter.
3921 * test/test-simple.c (test_misc): test some NULL
3922 tolerance. (main): upd.
3924 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3925 implements no interfaces - so let's not crash.
3927 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3929 * libspi/accessible.c (spi_accessible_new_return): impl.
3930 helper to calm the cut and paste, to cope with
3931 NULL AtkObjects effectively and efficiently, and to kill
3932 the referencing bugs.
3934 * libspi/table.c (impl_getAccessibleAt),
3935 (impl_getRowHeader, impl_getColumnHeader): upd.
3937 * libspi/hyperlink.c (impl_getObject): upd.
3939 * libspi/accessible.c
3940 (impl_accessibility_accessible_get_child_at_index): upd.
3942 * libspi/component.c
3943 (impl_accessibility_component_get_accessible_at_point): upd.
3945 * test/test-simple.c (test_editable_text, test_text): impl.
3948 * cspi/spi_editabletext.c
3949 (AccessibleEditableText_insertText): constify.
3951 * test/test-simple.c (focus_me): make more robust.
3953 * libspi/accessible.c: remove some printfs in methods that
3954 we test and work fine, so we can get a clean tree dump.
3956 * test/test-simple.c (validate_accessible),
3957 (validate_tree): make tree dumping pretty too.
3959 * at-bridge/bridge.c (bridge_signal_listener): upd. so
3960 it builds without debug on.
3962 * test/test-simple.c (validate_accessible): fix the most
3965 * cspi/spi_main.c (spi_object_release): leave the nicely
3966 blanked memory around if in debug mode.
3968 * cspi/spi-listener-impl.c (cspi_event): use add_check.
3970 [committed to fixups2]
3971 2001-12-05 Michael Meeks <michael@ximian.com>
3973 * libspi/editabletext.c
3974 (spi_editable_text_class_init): g_type_class_peek_parent,
3975 not interface peek - so we finalize cleanly.
3977 * libspi/accessible.c (spi_accessible_new): kill debug.
3979 * test/test-simple.c (validate_accessible): fix ref.
3980 leak, print strings before freeing them; sigh, comment a
3981 chunk out due to strangeness.
3982 (validate_tree): unref the child after use.
3984 * cspi/spi_component.c (AccessibleComponent_getLayer):
3985 add missing break statement, switch on zlayer not the
3986 uninitialized retval.
3988 * cspi/spi_main.c (cspi_object_add): add assert, local ref
3989 before (possibly re-entering) remote unref.
3991 * test/simple-at.c (main): unref the desktop.
3993 * cspi/spi_accessible.c (cspi_accessible_is_a): move
3996 * cspi/spi_main.c (cspi_accessible_is_a): here to
3997 isolate bonobo API usage more.
3999 * libspi/registry.c (impl_accessibility_registry_register_application):
4000 prune bogus comment.
4002 2001-12-04 Michael Meeks <michael@ximian.com>
4004 * test/test-simple.c (validate_tree): upd.
4005 IndexInParent check to make it more lucid.
4006 (validate_accessible): dump the tree.
4008 * libspi/accessible.c (de_register_public_ref),
4009 (get_public_refs): impl.
4010 (spi_accessible_new): make more efficient & intuitive.
4011 Now IndexInParent check works.
4013 2001-12-04 Michael Meeks <michael@ximian.com>
4015 * cspi/spi-util.h: remove.
4017 * cspi/spi.h: move SPI_freeString here
4019 * libspi/component.c (impl_accessibility_component_get_layer):
4021 (impl_accessibility_component_get_mdi_z_order): ditto,
4022 return -1 on error - is this ok ?
4024 * test/test-simple.c (test_application): impl.
4026 * cspi/spi_accessible.c (Accessible_getApplication),
4027 (Accessible_isApplication): impl.
4029 * libspi/registry.c (spi_listener_struct_free): release
4030 the CORBA reference too.
4032 * libspi/accessible.c
4033 (impl_accessibility_accessible_get_parent): fix ref leak.
4035 * libspi/registry.c (spi_registry_new): make the registry
4036 immortal - we don't want it to go away ever.
4038 * libspi/application.c
4039 (spi_accessible_application_finalize): impl. cleanup.
4041 * cspi/spi_registry.c
4042 (deregisterGlobalEventListenerAll),
4043 (deregisterGlobalEventListener),
4044 (deregisterAccessibleKeystrokeListener): fix ref leak.
4046 * cspi/spi_main.c (SPI_init): remove redundant ref.
4048 * test/test-simple.c (unutterable_horror): impl. to force a
4053 (impl_accessibility_registry_deregister_application): release
4054 the application when we de-register it.
4056 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4057 until we have the infastructure to get it right.
4059 2001-12-03 Michael Meeks <michael@ximian.com>
4061 * libspi/Makefile.am: only build eventlistener.[ch]
4063 * libspi/accessible.c
4064 (impl_accessibility_accessible_get_child_at_index): don't leak.
4066 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4067 before we hit the idle handler.
4069 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4070 debugging than exit.
4072 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4074 * libspi/listener.c (impl_notify_event): check source
4075 not NIL before unref.
4077 * libspi/registry.c (impl_registry_notify_event): ditto.
4079 * libspi/eventlistener.c
4080 (impl_accessible_event_notify_event): unref the source.
4082 * libspi/accessibleeventlistener.c
4083 (impl_accessible_event_notify_event): unref the source.
4085 * idl/Event.idl: remove 'hash_id' attribute - of no
4088 * libspi/application.c (notify_listeners): upd list
4090 (spi_application_object_event_listener),
4091 (spi_application_toolkit_event_listener): upd to do correct
4095 (_registry_notify_listeners): update.
4096 (parse_event_type): this method also leaks like a sieve.
4097 (impl_accessibility_registry_deregister_global_event_listener):
4098 fix ETYPE_WINDOW case.
4100 * libspi/application.c
4101 (impl_accessibility_application_register_object_event_listener):
4104 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4106 * libspi/hypertext.c (impl_getLink): ditto.
4108 * cspi/spi_main.c (cspi_object_add): remove
4109 bogus CORBA_Object_duplicate.
4111 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4114 * cspi/spi_accessible.c
4115 (Accessible_getRelationSet): fix leak / referencing issue.
4117 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4118 (cspi_object_add, cspi_object_unref): upd.
4119 (spi_object_release, get_live_refs): impl.
4120 (cspi_cleanup): simplify.
4122 * *.[ch]: s/boolean/SpiBoolean/
4124 * cspi/spi_accessible.c (role_names): actualy order so it
4125 corresponds with the enum !
4127 * test/test-simple.c (test_roles): check some role strings
4128 vs. enums to detect offset errors.
4130 2001-12-01 Michael Meeks <michael@ximian.com>
4132 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4134 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4136 (Accessible_getChildAtIndex): use cspi_add_check so we
4137 check the ev before using a (possibly) invalid value.
4139 * libspi/accessible.c
4140 (impl_accessibility_accessible_get_parent): don't segv
4143 * at-bridge/bridge.c (gtk_module_init): upd.
4144 (bridge_property_event_listener): don't leak strings
4146 (bridge_state_event_listener),
4147 (bridge_property_event_listener): don't use a static
4148 buffer in case of recursive event emission &
4149 re-enterancy - split out the swathe of cut and paste
4151 (emit_eventv): and fix 2 ref leaks here & comply to the
4153 (bridge_register_app): rename to
4154 (bridge_idle_init): this and kill arg parsing, split
4155 various inits & bonobo-activation registration to module
4156 init time, kill referencing error.
4157 (bridge_exit_func): fix the same leak.
4158 (bridge_focus_tracker): don't leak event structures
4160 (bridge_signal_listener): more leakage and cut & paste
4162 (bridge_key_listener): return the result - FIXME is
4163 this polarity correct ?
4164 (accessibility_keystroke_from_atk_key_event): rename
4165 (accessibility_init_keystroke_from_atk_key_event): and stop
4167 (gtk_module_init): return a value - not that it is checked by
4169 (bridge_key_listener): register my horror at casting between
4170 IDL defined structs.
4171 (bridge_get_registry): kill - not used.
4173 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4175 * test/test-simple.c (test_roles): impl.
4176 (test_desktop, validate_accessible, validate_tree): impl.
4178 * cspi/spi_accessible.c (role_names): fixup bogus
4179 MAX_ROLES setup, make constants const for efficient linkage
4180 (AccessibleRole_getName): conform to coding style, make
4183 2001-11-30 Michael Meeks <michael@ximian.com>
4185 * cspi/spi.h: add missing prototype.
4187 * libspi/registry.c (spi_listener_struct_new): fix sig.
4189 * test/Makefile.am: add test-simple
4191 * test/test-simple.c: add
4193 * test/test.sh: add.
4195 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4197 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4198 do it straight - since otherwise we often get an activation race.
4200 [ work before Bill duplicated a chunk of it ... ]
4201 2001-11-30 Michael Meeks <michael@ximian.com>
4203 * libspi/keystrokelistener.c
4204 (spi_keystroke_listener_class_init): fixup arg
4207 * libspi/eventlistener.c
4208 (spi_event_listener_class_init): ditto.
4210 * tests/test.sh: add.
4212 * cspi/spi-listener-impl.h: update macros.
4214 * cspi/spi-listener-impl.c
4215 (cspi_event_listener_remove_callback): add
4216 correct pre-conditions.
4218 * cspi/spi_main.c (SPI_exit): guard vs. double
4219 exits, exit the mainloop nicely.
4220 (SPI_event_main): make more sense.
4221 (SPI_init): move the atexit evilness here so we
4222 always do it (yuck).
4223 (SPI_event_main): upd.
4225 * test/simple-at.c: update for listener changes.
4227 * registryd/registryd.c (main): prune kruft.
4229 * libspi/libspi.h: upd.
4231 * libspi/eventlistener.[ch]: rename broken macros.
4233 * libspi/accessibleeventlistener.[ch]: remove.
4235 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4237 * test/test-simple.c: Add - automated tests.
4239 * cspi/spi-listener-impl.c (cspi_event),
4240 (cspi_key_event): add user_data to invoke.
4241 (cspi_keystroke_listener_finalize): impl.
4242 (cspi_keystroke_listener_class_init): upd.
4245 (createAccessibleEventListener),
4246 (AccessibleEventListener_addCallback),
4247 (createAccessibleKeystrokeListener),
4248 (AccessibleKeystrokeListener_addCallback): upd.
4250 * libspi/deviceeventcontroller.c
4251 (spi_device_event_controller_check_key_event): add public proto.
4254 (impl_accessibility_registry_deregister_global_event_listener):
4255 always init listeners.
4256 (_registry_notify_listeners): yes it is.
4258 * cspi/spi-listener-impl.c (cspi_key_event):
4260 (cspi_event_listener_finalize): impl.
4261 (cspi_event_listener_class_init): hook up.
4262 (event_handler_new, event_handler_free),
4263 (event_list_remove_by_callback): impl.
4264 (cspi_event_listener_remove_callback),
4265 (cspi_keystroke_listener_remove_callback),
4266 (cspi_keystroke_listener_add_callback),
4267 (cspi_event_listener_add_callback): upd.
4269 * libspi/keystrokelistener.c
4270 (keystroke_listener_object_finalize): kill
4271 (spi_keystroke_listener_class_init): upd.
4272 (spi_keystroke_listener_add_callback),
4273 (spi_keystroke_listener_remove_callback): kill,
4275 (impl_key_event): prune drasticaly.
4277 * libspi/eventlistener.c
4278 (spi_event_listener_add_callback),
4279 (spi_event_listener_remove_callback): kill, use
4281 (impl_accessible_event_notify_event): upd.
4282 (spi_event_listener_object_finalize): remove.
4284 * libspi/Makefile.am: use eventlistener.[ch]
4286 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4288 * libspi/registry.c (_registry_notify_listeners):
4289 Changed listener loop iteration to use preferred convention.
4290 Got rid of string memory leaks caused be calling g_strconcat
4291 inside function calls.
4293 * libspi/registry.c (parse_event_type):
4294 Stopped g_strconcat memory leaks, free the g_strsplit return,
4295 g_strdup the split pieces when used, etc.
4297 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4300 Change method 'compare' to return a 'difference set' rather than
4301 taking a StateSet as an out parameter (more Java-friendly).
4303 * idl/Accessible.idl:
4304 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4306 * idl/Component.idl:
4308 Changed methods 'getExtents' and 'getImageExtents' in these
4309 interfaces to return a BoundingBox structure.
4310 (getPosition and getSize are redundant and possibly should be
4311 removed, rather than creating a corresponding Point struct.)
4313 * cspi/spi_component.c:
4314 Modify implementation of getExtents to reflect the above IDL
4319 Add (missing) AccessibleImage_getExtents () API.
4321 * docs/reference/cspi/at-spi-cspi-sections.txt:
4322 Added AccessibleImage_getImageExtents () to docs.
4324 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4326 * idl/Component.idl:
4327 Added two methods, getLayer () and getMDIZOrder (), to reflect
4328 the new ATK methods atk_object_get_layer and
4329 atk_object_get_mdi_z_order. (Which arguably should be part of the
4330 AtkComponent API and AtkObject). Also added an enum,
4331 ComponentLayer, for the first method's return value.
4333 * libspi/component.c:
4334 Added implementations for these methods.
4336 * cspi/spi_component.c:
4338 Added cspi binding methods for above,
4339 AccessibleComponent_getLayer() and
4340 AccessibleComponent_getMDIZOrder().
4341 Added cspi enum 'AccessibleComponentLayer'.
4343 * docs/reference/cspi/at-spi-cspi-sections.txt:
4344 Added above methods to docs.
4348 Changed typedef for 'boolean' type (and all references to it) to
4349 SPIBoolean, to avoid keyword clashes with C++.
4352 Changed usages of 'boolean' to SPIBoolean.
4354 * test/keysynth-demo.c:
4355 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4356 app), except where SPIBoolean is required by the callbacks API.
4358 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4360 * cspi/spi_registry.c:
4361 Removed obsolete X event loop for passive keygrabs (which now
4364 * registryd/registryd.c:
4365 Removed unnecessary call to gdk_init() [cruft]. This also allows
4366 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4369 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4371 * docs/reference/cspi:
4372 Included docs for SPI_freeString in generated documentation.
4375 Renamed spi_freeString to SPI_freeString, for consistency. Added
4376 documentation for this function.
4379 Renamed spi_freeString to SPI_freeString, for consistency.
4380 Removed obsolete method declaration string_from_corba_string.
4382 * test/keysynth-demo.c:
4383 Small tweak to comments.
4386 Stopped leaking the strings returned from CSPI.
4388 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4390 Merged Michael's branch (see his ChangeLog entries below).
4392 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4393 bridge is alive, release on exit.
4395 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4396 Fix type check macro.
4399 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4402 Added is_gnome_app static, and method cspi_is_gnome_app(),
4403 so we can call the appropriate shutdown routine at exit in SPI_exit.
4405 * cspi/spi_main.c (cspi_object_ref):
4406 Duplicate the corba object passed in, since we're keeping it around.
4408 * cspi/SPI_exit.c, cspi_cleanup:
4409 Moved the releasing of the live refs to its own function, so we
4410 can put it in g_atexit (). Call the appropriate shutdown API
4411 depending on whethe calling client is a gnome app or not
4412 (bonobo_main_quit or CORBA_ORB_shutdown).
4414 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4415 Unref the listener when this method is called, after
4416 deregistration. Updated the API docs to note this behavior.
4418 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4419 Bugfixes: Ref the bonobo object when returning a parent or child
4420 reference, or an AccessibleRelation. Generally made sure
4421 BonoboObject refcount is incremented whenever we return an
4424 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4425 Fixed typo/bug in signal declaration.
4427 * libspi/accessibleeventlistener.h:
4430 * libspi/application.c (spi_application_new):
4431 Fixed leak in initialization.
4434 Remembered to increment bonobo-object refcount when returning
4435 children (applications) from desktop object.
4436 Added (empty) finalize method.
4438 * libspi/deviceeventcontroller.c:
4439 Hold a ref to listeners inside DEControllerKeyListeners.
4440 Added dec_key_listener_free() method. Use prepend instead of
4441 append in key_listener list. Fixed some refcount madness and
4442 leaks in the listener registration/deregistration - deregistration
4443 now calls dec_key_listener_free() on listeners, and on the
4444 temporarily constructed dec_key_listener() used to perform the search/match.
4446 * libspi/hypertext.c (spi_hypertest_finalize):
4447 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4448 class. Also fixed spi_hypertext_interface_new() and
4449 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4451 * libspi/hypertext.h:
4452 Removed pointless and duplicate AtkObject pointer from
4455 * libspi/keystrokelistener.c:
4456 Fixed incorrect type of keystroke_listener_parent_class,
4457 renamed keystroke_listener_object_finalize to
4458 spi_keystroke_listener_object_finalize.
4459 Fixed typo in signal declaration
4460 (spi_keystroke_listener_class_init).
4462 * libspi/registry.c:
4463 Added funcsions spi_listener_struct_new() and
4464 spi_listener_struct_free() to help with memory management issues.
4465 We also now use these methods instead of gnew + poking stuff into
4466 the struct, and to decrement listener counts/free the listeners
4467 when deregistering them.
4468 Fix more refcount bugs in getDesktop() and
4469 getDeviceEventController().
4472 De-ref the desktop after enumerating the applications. Explicitly
4473 decrement the refcounts on the created listeners on exit (using
4474 _unref for keystroke listeners, and via the
4475 deregisterGlobalEventListenerAll command for other event
4478 2001-11-27 Michael Meeks <michael@ximian.com>
4480 * cspi/spi-listener.h: fixup enum.
4482 2001-11-27 Michael Meeks <michael@ximian.com>
4484 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4485 (cspi_keystroke_listener_new): Use the cspi variants.
4487 2001-11-26 Michael Meeks <michael@ximian.com>
4489 * test/keysynth-demo.c: fix 2 compile warnings, missing
4492 * test/simple-at.c (report_focussed_accessible),
4493 (report_focus_event, report_button_press),
4494 (check_property_change, is_command_key),
4495 (report_ordinary_key_event, report_command_key_event): upd.
4497 * util/mag_client.h: include pre-requisites.
4499 * libspi/accessibleeventlistener.c
4500 (spi_event_listener_object_finalize): free any lingering
4503 * libspi/keystrokelistener.c
4504 (keystroke_listener_object_finalize): ditto.
4506 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4507 callbacks, with cspi types.
4509 * cspi/spi_event.c (createAccessibleEventListener): chain to
4510 (AccessibleEventListener_addCallback): here.
4511 (createAccessibleKeystrokeListener): chain to
4512 (AccessibleKeystrokeListener_addCallback): here.
4514 * libspi/keystrokelistener.c
4515 (spi_keystroke_listener_class_init): add signal.
4516 (impl_key_event): emit the event.
4517 (boolean_handled_accumulator): impl.
4518 (marshal_BOOLEAN__POINTER): add, gack.
4520 * libspi/accessibleeventlistener.c
4521 (spi_event_listener_class_init): add signal.
4522 (impl_accessible_event_notify_event): emit the signal &
4523 make the loop efficient.
4524 (spi_event_listener_add_callback): prepend the callback.
4526 * libspi/accessibleeventlistener.h: add an 'event' signal,
4527 decl type on callback.
4529 * libspi/keystrokelistener.h: ditto.
4531 * cspi/spi-listener.h: make methods typesafe and
4532 make them use the new event typedefs.
4534 * test/simple-at.c (report_focussed_accessible):
4535 include mag_client.h
4536 Use *(void *)text_interface not the other thing.
4538 * configure.in: add gtk to registryd bits - since we use
4541 * util/magnifier.c: include libbonobo.h
4543 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4545 * test/keysynth-demo.c:
4546 Turned this into a simple scanning keyboard, to demonstrate the
4547 use of g_timeout_add () as a means of creating timers for
4548 scanning, and the use of GtkStyle for visually indicating when
4549 virtual keyboard elements are selected.
4551 keysynth-demo now listens to any keyboard keys with zero-valued
4552 keycodes (i.e. 'unused' keys) and interprets them as
4555 Reworked the shiftlatch code so that shift-down state isn't held
4556 for long periods (it's only synthesized immediately prior to
4557 the keysynth event it's modifying). Note that shiftlatch in this
4558 demo is a convenience, not intended to take the place of AccessX
4559 which is the better choice for getting 'sticky' modifier keys.
4561 * libspi/deviceeventcontroller.c:
4562 * at-bridge/bridge.c:
4563 * cspi/spi_registry.c:
4564 Removed some debug print stuff, and put other verbosity in #ifdef
4569 Implemented some more of the magnifier IDL for the simple
4570 magnifier: namely, getZoomRegionParams.
4571 Added mag_x and mag_y members to MagnifierData struct, aid of this
4573 Added GtkWindow::realize signal handler to magnifier, to keep it
4574 from receiving keyboard focus from the WM.
4576 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4578 * cspi/spi-private.h: my guess at what michael forgot
4579 before he ran off to NZ :-)
4581 2001-11-23 Michael Meeks <michael@ximian.com>
4583 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4584 comment out non existant method invoke so we link.
4586 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4587 use bonobo_exception_get_text for more friendly warnings.
4589 * cspi/spi.c (Obj_Add): move into spi_main & rename
4590 spi_object_add; kill spi.c
4592 * cspi/spi_registry.c
4593 (deregisterGlobalEventListener),
4594 (deregisterGlobalEventListenerAll),
4595 (registerGlobalEventListener): fix exception leaks.
4597 * cspi/spi_main.c (spi_exception): impl. helper, so we
4598 don't leak exceptions.
4600 * cspi/spi_selection.c
4601 (AccessibleSelection_deselectSelectedChild): return the
4604 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4605 (spi_registry): ditto.
4606 (SPI_init): guard against double inits.
4608 * cspi/*.c: use spi_ev (), and spi_registry () where
4609 appropriate - a temporary hack until we have something
4610 better. Use spi_object_add
4612 2001-11-22 Michael Meeks <michael@ximian.com>
4614 * cspi/Makefile.am: re organise, install the headers.
4616 * cspi/*.h: add G_BEGIN/END_DECLS
4618 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4621 Added non-preemptive keylistener for key events with no modifiers
4622 and shift-only modifier.
4624 * libspi/keystrokelistener.c:
4625 Removed some verbose diagnostics printout.
4627 * cspi/spi_registry.c:
4628 Fixed a bug that caused all key listeners to be registered as
4631 * libspi/deviceeventcontroller.c:
4632 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4633 for non-preemptive key masks.
4636 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4638 * docs/reference/idl/at-spi-idl-docs.sgml:
4639 * docs/reference/idl/at-spi-idl-sections.txt:
4640 * docs/reference/idl/at-spi-idl-overrides.txt:
4641 Added missing files.
4643 * docs/reference/Makefile.am:
4644 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4645 to scan the IDL files :-(
4650 Added .cvsignore files.
4652 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4654 * libspi/deviceeventcontroller.c:
4655 * libspi/keystrokelistener.c:
4657 * cspi/spi_registry.c:
4658 Added filters for KeySets, KeyEventSeq, and event types to key
4659 event dispatching, so listeners should only receive those events
4660 that they requested :-)
4662 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4667 * docs/reference:Makefile.am:
4668 * docs/reference/cspi:
4669 * docs/reference/cspi:Makefile.am:
4670 * docs/reference/cspi:tmpl:
4671 * docs/reference/cspi:tmpl:*.sgml:
4672 * docs/reference/idl:
4673 * docs/reference/idl:Makefile.am:
4674 * docs/reference/idl:at-spi-idl-sections.txt:
4675 * docs/reference/idl:at-spi-idl-docs.sgml:
4676 * docs/reference/idl:tmpl:
4677 * docs/reference/idl:tmpl:*.sgml:
4679 Restructured docs directory to allow separate 'reference' docs
4680 section, and forked idl and cspi docs. Added the sgml template
4681 files to CVS. Added the first sections/structural sgml for the
4684 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4686 * configure.in, libspi/Makefile.am: find libXtst.
4688 2001-11-21 Michael Meeks <michael@ximian.com>
4690 * test/accessx-gui.c: s/spi_value/value/ - doh.
4692 * libspi/base.[ch]: add.
4694 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4696 * idl/Accessible.idl:
4697 * idl/Application.idl:
4700 Started gtk-doc cleanup on IDL.
4702 * libspi/deviceeventcontroller.c:
4703 Added and connected non-preemptive key notification from the
4704 toolkits (in addition to the pre-emptive support from XServer
4705 which we had before, but which causes 'focus flashing'). Filters
4706 are presently limited to key modifiers and global/non-global,
4707 KeySets are presently ignored, as are KeyEvent masks.
4709 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4710 structs into the persistant structure rather than just storing
4711 pointers to things that might not persist across servant
4714 The XGrabKey call now does async keygrabs, because synchronous
4715 ones were deadlocking with GDK_event code in a very nasty way.
4717 Added boolean to internal method notify_keylisteners, to indicate
4718 whether the event came from the 'toolkit source' or the 'global
4719 (XServer) source' - this is used in the notification process to
4720 determine which listeners to send the event to.
4722 deviceeventcontroller.c is now warning-free.
4724 * libspi/registry.c:
4725 Fixed regression in application de-registration.
4726 Also fixed some really brain-dead weirdness having to do with
4727 event dispatching - event structs are now duplicated before being
4728 re-marshalled in the dispatch to listeners. This also fixes a
4729 Solaris build problem.
4732 2001-11-20 Michael Meeks <michael@ximian.com>
4735 (impl_accessibility_registry_deregister_global_event_listener):
4738 * libspi/deviceeventcontroller.c
4739 (spi_device_event_controller_check_key_event): return
4740 FALSE on no virtual method.
4742 * libspi/*..h: make includes work on a correctly pathed install.
4744 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4746 * libspi/application.h: kill unused ( and whacked out )
4747 gboolean *spi_application_set_id (AtkObject *app, long id);
4749 2001-11-20 Michael Meeks <michael@ximian.com>
4751 * libspi/*.[ch]: further convert to bonobo's type func
4752 macros, remove redundnant casts etc.
4754 * libspi/text.c s/accessibility_text/spi_text/g,
4755 re-order to de-cruft.
4757 * libspi/hypertext.c: re-order to kill a huge slew
4758 of redundant forward decls.
4760 * libspi/relation.c: ditto.
4762 * libspi/image.c: ditto.
4764 * */.cvsignore: update
4766 2001-11-20 Michael Meeks <michael@ximian.com>
4768 * libspi/deviceeventcontroller.c
4769 (_controller_register_with_devices): use g_getenv,
4770 kill stdlib.h include.
4772 * libspi/keystrokelistener.c
4773 (spi_keystroke_listener_get_type): kill
4774 (spi_keystroke_listener_class_init),
4775 (spi_keystroke_listener_init): rename to this.
4777 * libspi/text.c (impl_getAttributes): fix warning / bug.
4779 * libspi/*.[ch]: more headers, includes and over commenting.
4781 2001-11-20 Michael Meeks <michael@ximian.com>
4783 * libspi/*.[ch]: fixup headers, includes and over commenting.
4785 * libspi/image.c (impl__get_imageDescription): const
4786 correctness warning fix. remove redundant casting.
4788 * libspi/table.c (impl_getRowDescription): ditto.
4789 (impl_getColumnDescription): ditto.
4791 * libspi/libspi.h: add.
4793 2001-11-19 Michael Meeks <michael@ximian.com>
4795 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4797 * libspi/component.c (accessibility_component_get_type):
4798 rename to (spi_component_get_type): and macroify.
4799 (accessibility_component_init): rename to
4800 (spi_component_init): this
4801 (accessibility_component_class_init): rename to
4802 (spi_component_class_init): this
4804 * libspi/action.c (spi_action_get_type): kill, use the macro.
4806 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4809 * libspi/application.c (spi_application_object_event_listener),
4810 (impl_accessibility_application_register_object_event_listener):
4811 warning fixes / const understanding updates.
4813 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4816 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4818 * libspi/spi_accessible.c: Added docs and C bindings for
4819 AccessibleStateSet. (No implementations yet). Documentation
4820 coverage for C bindings now 100%. Made docs for event listeners
4825 boolean notifyListenersSync (in DeviceEventListener listener,
4826 in DeviceEvent event);
4828 oneway void notifyListenersAsync (in DeviceEventListener listener,
4829 in DeviceEvent event);
4831 Added DeviceEventListener and DeviceEvent structs (may deprecate
4832 KeyStroke and KeystrokeListener in favor of this generic
4833 event/listener framework for devices).
4835 * libspi/deviceeventcontroller.c:
4837 Changed some key listener code to take masks, etc., and paved the
4838 way for integration of toolkit/non-preemptive key events. Changed
4839 signatures of some internal methods.
4841 * at-bridge/bridge.c:
4842 Fixed regression connecting to interface signals, apparently
4843 caused by GTK+ changes.
4845 Added an internal bridge_state_listener to deal with
4846 property-change:accessible-state signals.
4848 Changed the key_listeners GList to store structs (including masks,
4849 etc.) instead of just CORBA_Objects (required for full
4850 implementation of key listener API).
4852 Connected the bridge to all currently supported Atk signals.
4853 Events now supported:
4854 object:property-change
4855 object:property-change:accessible-name
4856 object:property-change:accessible-state
4857 object:property-change:accessible-description
4858 object:property-change:accessible-parent
4859 object:property-change:accessible-value
4860 object:property-change:accessible-role
4861 object:property-change:accessible-table-caption
4862 object:property-change:accessible-table-column-description
4863 object:property-change:accessible-table-column-header
4864 object:property-change:accessible-table-row-description
4865 object:property-change:accessible-table-row-header
4866 object:property-change:accessible-table-summary
4867 object:children-changed
4868 object:visible-data-changed
4869 object:selection-changed
4870 object:text-selection-changed
4872 object:text-caret-moved
4874 object:row-reordered
4876 object:column-inserted
4877 object:column-reordered
4878 object:column-deleted
4879 object:model-changed
4881 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4883 * libspi/hyperlink.c,h:
4884 Fixed some broken stuff in hyperlink.
4886 * libspi/relation.h:
4887 * libspi/relation.c:
4888 * cspi/spi_accessible.c:
4889 Initial implementations of AccessibleRelation methods, and docs.
4891 * libspi/accessible.c:
4892 Fixed a bug that caused SEGV if an accessible
4893 object's description is NULL, and a client
4894 requests it. An empty string is now returned.
4896 * cspi/spi_editabletext.c:
4897 * cspi/spi_hypertext.c:
4899 * cspi/spi_hyperlink.c:
4903 Doc coverage now 95%.
4905 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4907 One last namespacing revision:
4908 * libspi/accessibleeventlistener.[ch]:
4909 Renamed SpiAccessibleEventListener to SpiEventListener,
4910 (no need for two namespaces ;-)
4912 And lots of documentation fixes:
4914 * docs/at-spi-docs.sgml:
4915 Fixed 'underscore vs. hyphen' bug that was preventing
4916 the gtk-doc API docs from being automatically generated.
4919 * cspi/spi-listener.h
4921 * cspi/spi_accessible.c
4923 * cspi/spi_application.c
4924 * cspi/spi_component.c
4925 * cspi/spi_editabletext.c
4927 * cspi/spi_hypertext.c
4929 * cspi/spi_registry.c
4930 * cspi/spi_selection.c
4934 * docs/at-spi-docs.sgml
4935 * docs/at-spi-sections.txt
4937 Added and fixed up gtk-doc documentation in cspi.
4939 Interfaces now (fully) documented (subject to revision and enhancement):
4941 Event Listener Support
4943 AccessibleApplication
4947 AccessibleEditableText
4954 AccessibleRelationSet
4959 2001-11-14 Bill Haneman <bill.haneman@sun.com>
4961 * at-bridge/bridge.c:
4962 Initial work for toolkit-level key snooper connection by bridge.
4967 New typedefs and fixes to support new namespacing, and cleaner
4968 separation of cspi bindings from libspi bonobo implementation.
4969 Removed inconsistent and extraneous Spi* namespace prefix that
4970 had crept into cspi headers.
4971 Lots of comment fixes that sed had missed.
4973 * cspi/spi-roletypes.h:
4974 * cspi/spi-statetypes.h:
4975 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
4976 to AccessibleRoleType.
4978 * libspi/accessibleeventlistener.h:
4979 Fixed minor namespacing weirdness.
4981 * libspi/deviceeventcontroller.c:
4982 Reordered some internal API for device listeners.
4983 Changed the key registry final boolean to 'is_system_global'
4984 rather than 'is_synchronous', which is more descriptive of its
4986 Added spi_device_event_controller_new().
4987 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
4989 * libspi/keystrokelistener.[ch]:
4990 Namespaced KeystrokeListener to SpiKeystrokeListener.
4991 Changed uses of keymasks to use SPI_ prefix, and did other
4994 * libspi/keymasks.h:
4995 Namespaced keymask constants with SPI_ prefix.
4997 * libspi/registry.c:
4998 Some warning fixes, and knock-on fixes from namespace changes.
5001 Added rules for accessx-gui test program.
5003 * test/accessx-gui.c:
5004 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5005 utility. It doesn't actually use at-spi, but it's still cool and
5008 * test/keysynth-demo.c:
5012 Fixes so that these test clients work properly with the namespaced
5013 libraries. (Incompletely tested for technical reasons, fixes may follow)
5016 2001-11-13 Michael Meeks <michael@ximian.com>
5018 * libspi/application.c
5019 (impl_accessibility_application_get_version),
5020 (impl_accessibility_application_get_toolkit_name):
5022 (impl_accessibility_application_set_id),
5023 (impl_accessibility_application_get_id): remove
5024 redundant casting code.
5026 * libspi/action.c (impl_getDescription): fix warnings.
5028 * libspi/accessible.c
5029 (impl_accessibility_accessible_get_parent),
5030 (impl_accessibility_accessible_get_child_at_index),
5031 (impl_accessibility_accessible_get_state),
5032 (impl_accessibility_accessible_get_relation_set):
5033 warning fixes & include action.h
5035 2001-11-13 Michael Meeks <michael@ximian.com>
5037 * *.[ch] fix bits I screwed up:
5039 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5040 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5042 2001-11-13 Michael Meeks <michael@ximian.com>
5044 * *.[ch] Namespace libspi into spi_ and Spi.
5046 2001-13-11 Michael Meeks <michael@ximian.com>
5048 * Makefile.am: dist & install at-spi-1.0.pc
5050 * libspi/Makefile.am: install into at-spi-1.0
5052 * idl/Makefile.am (idldir): install into at-spi-1.0
5054 * at-spi-1.0.pc.in: add.
5056 * configure.in: build it.
5058 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5060 * test/keysynth-demo.c:
5061 Use a 'realize' signal-handler to set the WM properties for
5062 the virtual keyboard, rather than making it a "POPUP" type
5063 override-redirect window (thanks to anders carlsson for that
5066 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5069 * test/keysynth-demo.c:
5070 Added new test of key synthesis, which creates a simple
5071 (mouse-operated) onscreen keyboard. It inserts key events into
5072 the currently-focused window, thus it does not grab keyboard focus
5075 * cspi/spi_registry.c:
5076 Added C binding for AT-SPI generateKeyEvent.
5078 * libspi/deviceeventcontroller.c:
5079 Added call to XFilterEvent so that key listener works with XIM (we
5080 hope). Added event_synth_type to generateKeyEvent, so that we can
5081 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5082 synthesize a press/release pair for KeySyms.
5084 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5086 * libspi/Makefile.am:
5087 * registryd/Makefile.am:
5088 (temporary) hack to include libXtst in libspi and registryd.
5089 (Needed for keystroke synthesis, see below).
5092 Improved API for registerKeystrokeListener, in accordance with
5093 discussions with Gnopernicus team and X server research.
5095 * libspi/registry.c:
5096 * libspi/deviceeventcontroller.c:
5097 * libspi/accessible.c:
5098 * libspi/keystrokelistener.c:
5099 Changes and fixes to support keylisteners for potentially
5100 consumed key events (that is, 'passive grabs').
5101 Added implementation for generateKeyEvent() [untested].
5104 Changes to registerKeystrokeListener() API, as above.
5105 Added deregisterGlobalEventListenerAll(), and
5106 deregisterKeystrokeListener(), which are needed for clean exit of
5108 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5109 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5111 * cspi/spi_registry.c:
5112 Added implementations of function prototypes mentioned above.
5114 * registryd/registryd.c:
5115 Added the key listener event source as a g_timeout(), to allow
5116 receipt of key events that are not caught by GDK (since GDK
5117 doesn't support passive keygrabs, this was necessary).
5120 Changed to attach a keylistener to 'Alt' keys, and
5121 respond to the following keycommands: Alt-M (toggle magnifier);
5122 Alt-F (toggle speech); Alt-Q (quit).
5123 Added an exit routine to deregister the listeners, and a key
5124 listener that prints some key info to the console when a key
5125 matches the listener mask (and is thus received by the listener).
5127 * util/idl/Magnifier.idl:
5128 Changes to magnifier API to support multiple zoom regions,
5129 non-uniform scaling in x and y, markDirty, and a host of other
5130 features that would be useful to magnification.
5133 * util/mag_client.c:
5134 * util/mag_client.h:
5135 * util/mag_control.c:
5137 Source code changes to support the above IDL changes.
5140 As above, and also changes to use a (slower) generic conversion
5141 path for colormap conversions, since the fast RGB conversions have been
5142 reported to fail for 16-bit displays.
5144 2001-10-26 Michael Meeks <michael@ximian.com>
5146 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5148 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5150 * at-bridge/Makefile.am: fix LDFLAGS.
5152 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5154 * at-bridge/bridge.c:
5155 Re-worked listeners for toolkit events, now we have signal
5156 and property listeners. Added a private method
5157 register_atk_event_listeners(), which registers with the
5158 various atk and gtk signals we need to monitor in order to emit
5160 Added emission hook for AtkObject:property-change events, to
5161 support the 'property listeners'.
5162 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5165 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5166 which emit warnings and exit, respectively, if CORBA errors occur
5167 during remote calls, and we now use these methods to check most of
5168 our CORBA calls in the C bindings.
5170 * cspi/spi_accessible.c:
5171 Changed AccessibleSelection_refSelectedChild() to
5172 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5173 now increment refcounts.
5175 * cspi/spi_component.c:
5176 Fixed some long pointer casts (dangerous!) to pass pointers to
5177 CORBA_longs of the proper type to the CORBA stubs, and copy the
5178 data into the longs that were passed into the C bindings code.
5180 * at-bridge/bridge.c:
5182 * libspi/accessible.c:
5183 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5184 hyperlinks, AtkHyperlink is an object type.
5186 * libspi/application.c:
5187 Added various conversions to and from "generic" event types and
5188 atk-specific types; this is really part of the 'bridge'
5189 implementation but is valid for all AtkObject-based accessibility
5192 * libspi/editabletext.c:
5193 Fixed nasty bug wherein editable text's finalize method was
5194 unref'ing tha AtkObject reference that the text parent class was
5195 about to unref _again_. There was also a nasty inheritance bug
5196 that meant that the AccessibleEditableText class was corrupt.
5198 * libspi/selection.c:
5199 Provided implementations for some selection API that was broken.
5201 * idl/Application.idl:
5202 Added registerObjectEventListener () method.
5205 Fixed a number of return values that were Bonobo_Unknowns from
5206 bonobo_object_corba_objref(), which I
5207 forgot to dup before returning. Changed instances of
5208 bonobo_object_corba_objref (bonobo_object(o)) to
5209 BONOBO_OBJREF(o), for concision and clarity.
5211 2001-10-13 Louise Miller <louise.miller@sun.com>
5213 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5214 idl/Event.idl, idl/Registry.idl
5215 Changed these files to include Bonobo_Unknown.idl instead
5218 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5220 * libspi/component.c libspi/component.h:
5221 Fixed typo. Added assertions for object checks in
5222 AccessibleComponent code.
5224 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5226 * idl/Accessible.idl:
5227 Added 'isEqual (Accessible *object)'
5228 method for Accessible. (Not Yet Implemented).
5231 Changed signature of registerKeystrokeListener() to
5232 take a KeySet and KeyEventSeq so that specific keys and event
5233 types could be requested for monitoring, and added a flag
5234 is_synchronous so that either synchronous or asynchronous
5235 notification could be requested. (However this is not all
5236 implemented yet). This also meant adding two new typedefs,
5237 KeyEventSeq and KeySet.
5240 Added two new relations, RELATION_TOOLTIP_FOR and
5241 RELATION_LEAFNODE_OF.
5244 Added new state, STATE_HAS_TOOLTIP.
5246 * libspi/text.c, editabletext.c:
5247 Added new assertions to all casts of bonobo-objects from
5248 CORBA servants, to prevent Text API calls on non-text objects.
5249 Changed suspect casts of int-pointer types, so that we
5250 always send a valid CORBA_long pointer to the CORBA APIs that use
5251 in/out long parameters. We then have to copy from the CORBA_long
5252 into the regular long or int for return to the C bindings, or
5253 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5256 * libspi/deviceeventcontroller.c:
5257 Cleaned these sources up.
5259 Changed return type for getCharacterAtOffset to
5260 CORBA_unsigned_long, to allow for 32-bit characters.
5263 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5267 Fixed 'make dist' so that distro compiles...
5268 * libspi/keymasks.h:
5270 * cspi/spi-listener.c:
5271 KeystrokeListenerCB now returns a boolean.
5273 Added KeyEventType struct, and KeyStroke.
5274 Also added createKeystrokeListener(),
5275 KeystrokeListener_addCallback(),
5276 KeystrokeListener_removeCallback(), and added a keymask to
5277 registerKeystrokeListener().
5278 * cspi/spi_accessible.c:
5279 Changed numerous return types for interfaces from
5280 AccessibleComponent to Accessible<InterfaceName>; this was
5281 probably a cut-and-paste error.
5283 Implementations of new KeystrokeListener api (from spi.h,
5286 Changes to key modifier mapping.
5287 Created ControllerEventMask struct.
5288 Made DeviceEventController derive from Bonobo::Unknown.
5290 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5291 * libspi/deviceeventcontroller.c:
5292 Added a number of new internal (private) methods.
5293 * libspi/editabletext.c:
5294 * libspi/editabletext.h:
5295 Fixed a number of bugs related to the fact that
5296 editabletext inherits from text. Fixed the EditableText struct,
5297 the init() call, and use correct casts when calling Text methods
5298 from an EditableText object. Removed (duplicate) atko from the
5299 EditableText structure, we use the one in the parent Text
5300 structure via the casts mentioned above.
5301 * libspi/keystrokelistener.[ch]:
5302 * libspi/registry.c:
5303 Changes in support of keyboard handling (above).
5305 Keyboard handling, though partly functional, is still not
5306 recommended for at-spi client use as there is considerable
5307 work yet to be done.
5310 Changed some places where pointers to various int types
5311 are cast to be pointers to CORBA_long types and vice-versa:
5312 pointer casting is not safe so we pass pointers of the correct
5313 types and then cast the result before putting it into the target
5316 * libspi/text.h: minor typos corrected.
5318 We now speak not only the name of a Text element, but the
5319 first sentence of its content, when it receives focus.
5320 I also changed the text compression to 75% from 50%.
5321 * util/Accessibility_Util.server.in:
5322 Changed the default magnifier type to be a 3x vertical
5323 splitscreen magnifier (was previously a 2x horizontal one).
5325 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5327 * libspi/keystrokelistener.h:
5328 * libspi/keystrokelistener.c:
5329 Initial functional implementations of KeystrokeListener.
5332 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5334 Fixed string handling for NULL strings in libspi.
5335 Added spi_freeString to free strings returned by C bindings.
5337 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5339 * libspi/keystrokelistener.h:
5340 * libspi/keystrokelistener.c:
5341 Began (no-op) implementations of KeystrokeListener
5343 * libspi/deviceeventcontroller.c:
5344 * libspi/deviceeventcontroller.h:
5345 Began creating implementations of DeviceEventController,
5346 to handle keystroke and mouse event listening and
5348 * libspi/accessible.c:
5349 Stubbed-in the implementations for
5350 Accessibility_Accessible_getState and
5351 Accessibility_Accessible_getRelationSet.
5352 * libspi/registry.c:
5353 Improved de-registration process and fixed some bugs,
5354 deregistration now works correctly.
5356 Added initialization of applications list (to NULL).
5358 Reduced speech compression from 0.5 to 0.7, for demo.
5359 Changed call to gdk_window_set_decorations()
5360 to gtk_window_set_decorated().
5361 * at-bridge/bridge.c:
5362 Bridge now deregisters when app exits, via
5363 registration of a cleanup function
5364 with the g_atexit() call.
5365 Required making 'app' static, renamed 'this_app'.
5366 Fixed broken use of bonobo_init, passing argv wrongly.
5368 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5372 Created a new directory for
5373 accessibility-related utilities, primarily for
5374 testing and demo purposes, but with possible
5381 Onscreen magnifier utility that
5382 is implemented as a bonobo service.
5384 * util/mag_client.c:
5385 * util/mag_client.h:
5386 Client-side support (simple C bindings)
5387 for Magnification service
5389 * util/mag_control.c:
5390 Client program example for
5391 Magnification service
5393 * util/Accessibility_Magnifier.server.in:
5394 Bonobo-activation file for the
5395 Magnification service.
5398 * util/idl/Magnifier.idl:
5399 IDL defining the bonobo Magnification
5403 Modifications to use the bonobo-activated magnifier
5404 above, in place of trying to connect to an existing
5405 magnifier that uses socket-listening IPC.
5407 If env variable MAGNIFIER is set, a magnifier service
5408 will be started if one does not exist.
5410 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5412 * at-bridge/bridge.c:
5413 applied patch from Marc to build and run
5414 against new glib and gtk+ (seemed like a change
5415 to bonobo_init signature was made ?)
5417 made festival-server support turned off by default.
5418 Added support for a simple magnifier (off by default)
5419 which will be added to a 'util' directory later.
5420 * at-bridge/Makefile.am:
5421 Changed "application.h" header from a 'source'
5422 to a 'dependency' of libat-bridge.
5424 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5433 Added interface implementation c files to list of
5434 includes so they are included in libcspi.
5437 Changed prototype of AccessibleAction_doAction to return a
5439 Changed prototype of AccessibleTable_getCaption to
5440 return an Accessible.
5441 Changed prototype of AccessibleTable_getSelectedRows
5442 and AccessibleTable_getSelectedColumns to
5443 return a long (returns the number of selected rows
5444 or columns respectively).
5445 Changed name of AccessibleText_refRunAttributes to
5446 AccessibleText_getAttributes.
5447 Changed prototype of AccessibleText_getCharacterExtents to
5448 return a void rather than a boolean.
5449 Added support for a AccessibleCoordType parameter
5450 specifying what type of coordinates are desired.
5451 Added an AccessibleCordType parameter to
5452 AccessibleText_getPointAtOffset.
5454 * cspi/spi_accessible.c:
5455 Added code to return the outstanding interfaces from
5456 Accessible_queryInterface.
5458 * cspi/spi_action.c:
5460 Corrected call to getNActions to call the c binding
5463 * cspi/spi_editabletext.c:
5465 Changed name from setRunAttributes to setAttributes.
5467 * cspi/spi_hyperlink.c:
5469 Changed call to getNAnchors to correctly call the c
5470 binding for an attribute.
5472 * cspi/spi_hypertext.c:
5474 Changed getImageDescription to correctly call the
5475 binding for an attribute.
5477 * cspi/spi_selection.c:
5478 Changed getNSelectedChildren to correctly call the c
5479 binding for the attribute.
5480 Changed refSelectedChild to getSelectedChild.
5484 Changed getCaption to return an Accessible.
5485 Fixed calls which retrieve attributes.
5486 Changed refAt to getAccessibleAt.
5487 Changed getNSelectedRows and getNSelectedColumns to
5491 Changed getCharacterExtents and getPointAtOffset to accept an
5492 AccessibleCoordType.
5494 Changed calls which retrieve attributes.
5495 Changed refRunAttributes to getAttributes.
5500 * idl/Hyperlink.idl:
5501 Changed n_anchors attribute to nAnchors to keep naming
5502 convention consistent.
5505 Made Table inherit from Bonobo::Unknown.
5506 Added nSelectedColumns and nSelectedRows attributes.
5509 Made Value inherit from Bonobo::Unknown.
5511 * libspi/hyperlink.c:
5512 Change for nAnchors attributte name change.
5514 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5522 Added interface implementation c files to list of
5523 includes so they are included in libcspi.
5526 Changed prototype of AccessibleAction_doAction to return a
5528 Changed prototype of AccessibleTable_getCaption to
5529 return an Accessible.
5530 Changed prototype of AccessibleTable_getSelectedRows
5531 and AccessibleTable_getSelectedColumns to
5532 return a long (returns the number of selected rows
5533 or columns respectively).
5534 Changed name of AccessibleText_refRunAttributes to
5535 AccessibleText_getAttributes.
5536 Changed prototype of AccessibleText_getCharacterExtents to
5537 return a void rather than a boolean.
5538 Added support for a AccessibleCoordType parameter
5539 specifying what type of coordinates are desired.
5540 Added an AccessibleCordType parameter to
5541 AccessibleText_getPointAtOffset.
5543 * cspi/spi_accessible.c:
5544 Added code to return the outstanding interfaces from
5545 Accessible_queryInterface.
5547 * cspi/spi_action.c:
5549 Corrected call to getNActions to call the c binding
5552 * cspi/spi_editabletext.c:
5554 Changed name from setRunAttributes to setAttributes.
5556 * cspi/spi_hyperlink.c:
5558 Changed call to getNAnchors to correctly call the c
5559 binding for an attribute.
5561 * cspi/spi_hypertext.c:
5563 Changed getImageDescription to correctly call the
5564 binding for an attribute.
5566 * cspi/spi_selection.c:
5567 Changed getNSelectedChildren to correctly call the c
5568 binding for the attribute.
5569 Changed refSelectedChild to getSelectedChild.
5573 Changed getCaption to return an Accessible.
5574 Fixed calls which retrieve attributes.
5575 Changed refAt to getAccessibleAt.
5576 Changed getNSelectedRows and getNSelectedColumns to
5580 Changed getCharacterExtents and getPointAtOffset to accept an
5581 AccessibleCoordType.
5583 Changed calls which retrieve attributes.
5584 Changed refRunAttributes to getAttributes.
5589 * idl/Hyperlink.idl:
5590 Changed n_anchors attribute to nAnchors to keep naming
5591 convention consistent.
5594 Made Table inherit from Bonobo::Unknown.
5595 Added nSelectedColumns and nSelectedRows attributes.
5598 Made Value inherit from Bonobo::Unknown.
5600 * libspi/hyperlink.c:
5601 Change for nAnchors attributte name change.
5604 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5606 implementations-- made server implementations own AtkObject pointers
5607 rather than their respective AtkInterrface pointers to fix
5608 refcounting. AtkHyperlink is still broken.
5610 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5611 * cspi/spi_accessible.c:
5612 Added method Accessible_Role_getName(),
5613 and requisite string array (role_names).
5614 Added conversion string_from_corba_strin() call
5615 to Accessible_getName and _getDescription.
5616 * libspi/accessible.c:
5617 Added implementation for Accessible_getRole()
5619 Added festival support, used if environment variable
5622 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5624 * at-bridge/bridge.c:
5625 Now allocate Accessibility_Event using
5626 Accessibility_Event__alloc() instead of g_new0().
5627 * libspi/accessibleeventlistener.c:
5628 Initialize AccessibleEventListener->callbacks to NULL.
5629 Fixed accessible__event_listener_init() param, changed to
5630 "AccessibleEventListener *" type.
5631 Changed a bonobo_object_release_unref() call to
5632 Accessibility_Accessible_unref().
5633 * libspi/listener.c:
5634 Changed Bonobo_Unknown_unref to (equivalent)
5635 Accessibility_Accessible_unref.
5636 * libspi/registry.c:
5637 Changed bonobo_object_release_unref to
5638 Accessibility_Accessible_unref.
5640 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5643 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5644 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5645 spi-util.c spi-util.h
5646 Implementations for C bindings to remaining accessibility
5649 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5652 changed return value of Action from void to boolean to
5653 bring in line with ATK.
5656 Changed getText funcions to return "out" start and end offsets.
5657 Changed getAttributes to take and offset and return the start
5658 and end offset of the attribute run.
5659 Changed getOffsetAtPoint and getCharacterExtents to take an
5660 enum describing whether coordinates are window or screen.
5663 libspi/action.c libspi/action.h libspi/editabletext.c
5664 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5665 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5666 libspi/image.h libspi/selection.c libspi/selection.h
5667 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5668 libspi/value.c libspi/value.h
5669 Added server implementations for outstanding ATK interfaces
5670 not yet implemented.
5672 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5675 Added (missing) getName() method.
5676 Made nActions an attribute.
5677 * idl/EditableText.idl:
5678 Changed order of params in setAttributes.
5679 * idl/Hyperlink.idl:
5680 Removed getAnchor, added getURI.
5682 Changed attributes to methods, for efficiency
5683 (so that getting extents can be done in one call)
5684 * idl/Selection.idl:
5685 Changed nSelectedChildren to attribute, and re-indented.
5686 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5688 * idl/Text.idl: reformatted to match our coding style.
5689 (temporarily?) removed getRowColumnAtOffset().
5690 Changed text selection API to support multi-select and
5691 non-contiguous selections, as in ATK.
5692 * idl/Value.idl: changed some methods to attributes.
5694 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5696 * libspi/listener.c(impl_notify_event):
5697 BonoboUnkown_unref the source instead
5698 of bonobo_object_release_unref - the ORB
5699 handles the releasing.
5701 * configure.in: require ORBit-2.3.94 for
5704 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5706 Tagged CVS repository 'EA_1_0'.
5707 * README.EARLY_ACCESS:
5708 Alphabetized acknowledgements list, and
5710 Listed some known dependencies of at-spi.
5712 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5714 * docs/at-spi-docs.sgml:
5715 * docs/at-spi-sections.txt:
5716 * docs/at-spi-overrides.txt: (Added zero-length file)
5717 Documentation improvements - gtk-doc should build
5718 docs for all implemented C bindings now.
5721 * cspi/spi.c: (New file)
5722 * cspi/spi_event.c: (New file)
5723 * cspi/spi_registry.c: (New file)
5724 * cspi/spi_accessible.c: (New file)
5725 * cspi/spi_application.c: (New file)
5726 * cspi/spi_component.c: (New file)
5727 Split spi_main.c into six parts, and included them from
5728 "spi.c". This is a bit of a hack, probably temporary,
5729 but required by gtk-doc, apparently.
5731 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5734 * docs/at-spi-docs.sgml:
5735 * docs/at-spi-sections.txt:
5737 Initial checkins/modifications for gtk-doc generation.
5740 Added (missing) interface query methods to Accessible's C binding.
5742 Added GenericInterface type definition.
5744 Added query for AccessibleComponent interface to focus event handler.
5745 Added printout of bounding box for focussed component.
5746 * libspi/component.c:
5747 Added partial implementation for AccessibleComponent to C binding.
5748 * idl/Application.idl:
5749 * libspi/registry.c:
5750 * libspi/listener.c:
5751 * libspi/application.c:
5752 * libspi/application.h:
5753 Changed "ID" attribute type from string to long.
5755 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5759 Made method naming consistent: methods taking object args
5760 start with uppercase, other methods (except those using
5761 acronyms) start with lowercase. Underscores delimit between
5762 object names and method names:
5763 SPI_init() - uppercase since it starts with an acronym.
5764 getDesktopCount () - lowercase start since no object param0.
5765 Accessible_getName() - uppercase object type name, studlyCaps method
5769 Added gtk-doc documentation for all currently implemented
5770 methods in the C bindings API.
5772 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5774 * Makefile.am : changed build order to build test last.
5777 Changed "createEventListener" to "CreateEventListener".
5778 * libspi/accessibleeventlistener.c :
5779 Bugfix for addition of callbacks.
5780 * test/Makefile.am :
5781 * test/simple-at.c :
5782 Added new test that uses the C bindings API.
5784 * libspi/listener.c :
5785 * libspi/registry.c :
5786 * libspi/accessibleeventlistener.c :
5787 * at-bridge/bridge.c :
5788 Renamed member "target" of Accessibility_Event to "source",
5789 which is more descriptive.
5792 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5796 * cspi/Makefile.am :
5797 Added makefile support for at-spi/cspi directory.
5800 * cspi/spi-listener.h : (NEW FILE)
5801 Added support for/use of spi-listener.h.
5803 C bindings now build successfully, with no warnings.
5804 * libspi/accessibleeventlistener.h : (NEW FILE)
5805 * libspi/accessibleeventlistener.c : (NEW FILE)
5806 * libspi/Makefile.am :
5807 Added new object type "AccessibleEventListener"
5808 which inherits from Listener, and allows attachment
5809 of in-process callbacks (so that a client with a listening
5810 object instance can add functionality to the local
5811 implementation, dynamically).
5813 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5815 * libspi/accessible.c:
5816 Add implementation for get_index_in_parent().
5818 Added #include of "spi-roletypes.h", and
5819 added enumerated type AccessibleCoordType.
5820 Added definition for KeystrokeListener (function type).
5823 * cspi/spi-statetypes.h :
5824 * cspi/spi-roletypes.h :
5826 Added these headers, used by spi.h.
5828 Added code (NOTE: not yet built by make).
5830 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5832 * libspi/Makefile.am: generate imodule
5833 at the same time as other idl compiler
5836 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5837 * libspi/registry.c :
5838 * libspi/application.c :
5839 * idl/Application.idl :
5840 Made registration with toolkit an application method,
5841 which is required since each app has its own toolkit static
5842 environment. Thus the bridge must register for
5843 notification of toolkit events from each application in turn.
5844 Toolkit notifications are now successfully registered for, and
5845 sent to the listening at client.
5847 Changed toolkit event string to use hyphens rather than underscores.
5848 * libspi/listener.c :
5849 listner now gives more info in debug mode - it reports the
5850 name of the event received, as well as the name of the source.
5853 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5855 * libspi/registry.c :
5856 added more implementation for toolkit events.
5857 Fixed bug such that toolkit event registrations
5858 (via atk) use the whole event name string, not
5860 Removed a useless call to an ORBit_ method.
5861 * at-bridge/bridge.c :
5862 Removed unused local sbuf[] variable.
5864 We now register for Gtk:GtkWidget:button_press_event
5865 events as well as "focus:" events.
5867 Add some more API from Registry.idl that was missing,
5868 for keystroke listening, keystroke and mouse event
5869 synthesis, and enumeration of accessible desktops.
5871 2001-08-16 Michael Meeks <michael@ximian.com>
5873 * configure.in: use AM_GLIB_GNU_GETTEXT.
5875 * Makefile.am (SUBDIRS): kill intl.
5877 2001-08-15 Michael Meeks <michael@ximian.com>
5879 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5881 * configure.in: upd.
5883 * configure.in: depend on a recent bonobo-activation that
5884 will find our server files ...
5886 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5888 * libspi/accessible.c : accessible_new() :
5889 Now we add the Component interface via bonobo_object_add_interface,
5890 if the contained AtkObject implements AtkComponent.
5891 * libspi/accessible.h : now include "component.h"
5892 * libspi/component.h :
5893 * libspi/component.c : added files - implementation of
5894 bonobo wrapper object for Accessibility/Component
5895 * libspi/listener.c :
5896 Added test code to check for Accessibility/Component:1.0
5897 interface and report whether it is implemented by the
5899 * libspi/registry.c :
5900 Now we check for not only the hash of the whole event
5901 string before relaying the event, we also check the
5902 "minor" event string (without the detail string).
5903 This allows event listeners to be registered against
5904 all events of a certain major+minor type, or just
5905 against a specific major+minor+detail type.
5906 * libspi/accessible.c :
5907 Added implementations for Accessible:get_parent(),
5908 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5909 * libspi/registry.c :
5910 * libspi/listener.c :
5911 Replaced calls to Accessibility_Accessible_ref() and
5912 Accessibility_Accessible_unref() with
5913 calls to bonobo_object_dup_ref() and
5914 bonobo_object_release_unref(), so that the CORBA object
5915 is dup-ed and released when relayed, as well as the bonobo object.
5917 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5919 * libspi/Makefile.am,
5920 registryd/Makefile.am,
5921 at-bridge/Makefile.am.
5922 test/Makefile.am, configure.in:
5923 reverse previous changes.
5925 * /idl/Image.idl: fix typo.
5927 * test/Makefile.am: put DEBUG_FLAGS
5930 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5932 * test/app.c: use argv[0] instead of
5935 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5937 * libspi/Makefile.am,
5938 registryd/Makefile.am,
5939 at-bridge/Makefile.am.
5940 test/Makefile.am, configure.in:
5941 cleanup, replace individual LIBS/CFLAGS with
5942 AT_COMMON_{LIBS|CFLAGS}.
5946 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5948 * configure.in, libspi/Makefile.am:
5949 Change IDL path checking for bonobo-activation
5952 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5954 * registryd/registry.c : separated event listeners to use
5955 3 separate lists (focus, window, toolkit). Began testing
5956 event names against hashes before relaying events.
5957 * test/at.c : now register for events of type "focus:"
5958 * test/app.c : now generate events of type "focus:"
5959 * at-bridge/bridge.c : register with ATK for focus events,
5960 and we now relay those focus events to any "focus:" listeners.
5961 This now works with the bridge as a GTK_MODULE when running test/at.
5962 * libspi/registry.c :
5963 * libspi/listener.c :
5964 now we ref event sources before propagating, and unref on receipt.
5965 * libspi/registry.c :
5966 some changes to internal structs, to support event typestring hashes.
5967 * text/app.c : changed the way the appname is generated.
5968 * cspi : added directory that will hold the C bindings library for
5969 non-CORBA/bonobo-savvy clients.
5970 * cspi/spi.h : header file that contains the function prototypes for the C binding.
5971 * idl/Component.idl : added in parameter to indicate coord system for
5972 geometry-related calls.
5973 * idl/Hyperlink.idl : added readonly n_links attribute
5974 * idl/Image.idl : changed methods to attributes.
5976 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5978 * at-bridge/Makefile.am: link against
5979 ../libspi/libspi.la instead of -lspi.
5981 * at-spi/test/app.c: include
5982 bonobo-activation.h. Use a default appname
5983 if one is not provided.
5985 2001-08-14 Bill Haneman <bill.haneman@sun.com>
5987 * idl/Registry.idl : temporarily changed register_Application
5988 to oneway, to work around issue with initial registration
5990 * idl/Application.idl : changed attribute "id" from readonly
5991 to read-write, since it needs to be assigned by Registry.
5992 * registryd/registryd.c : added call to set application id
5994 * registryd/registry.c : changed de-registration procedure to
5995 use CORBA_Object_hash() to find matching object ref in application
5996 lists and listener lists.
5997 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
5998 began distinguishing between event types (work in progress).
6000 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6003 * libspi/application.c:
6004 Added implementations for get/set id, get_toolkitName,
6006 * registryd/registryd.c :
6010 Converted from use of OAF to bonobo-activation.
6011 * libspi/desktop.h :
6012 * libspi/desktop.c :
6014 Removed references to atksimpleobject, since base atkobject
6015 implementation now provides functionality we need.
6016 * libspi/atksimpleobject.c :
6017 * libspi/atksimpleobject.h :
6022 * at-bridge/Makefile.am
6023 * at-bridge/bridge.c
6026 Added directory "bridge" and contents, and added dependencies
6027 in Makefile.am/configure.in.
6028 Initial checkin of "at-bridge".
6029 This code is a GTK_MODULE which automatically registers
6030 GTK+ apps with the accessibility registry, using an object
6031 reference to the root ATK object.
6033 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6035 * po/Makefile.in.in: Remove. Again. If this
6036 doesn't get autogenerated - you need to update
6039 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6041 * po/Makefile.in.in: Add. Again.
6043 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6045 * libspi/accessible.c : added support for 'description' property.
6046 * libspi/accessible.c
6048 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6049 (since the two are now equivalent in libbonobo)
6057 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6058 Bonobo::Unknown as does Accessibility::Accessible.
6059 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6060 interface with Bonobo::Stream, since it was redundant with it.
6061 (The Stream returned by a StreamableContext object is expected to
6062 implement only a subset of Bonobo::Stream)
6064 2001-07-28 Anders Carlsson <andersca@gnome.org>
6066 * libspi/accessible.c (accessible_object_finalize): Change
6067 g_free to g_object_unref since the AtkObject is a GObject.
6069 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6071 * idl/Accessibility.idl: add new IDL files
6074 * idl/Action.idl: Definitions of actionable UI object
6075 * idl/Component.idl: Definitions of UI component geometry, etc.
6076 * idl/Hyperlink.idl: Defs of hyperlink behavior
6077 * idl/Image.idl: Def of accessible image
6078 * idl/Selection.idl: Definition of UI object with selectable children
6079 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6080 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6081 * idl/Text.idl: Interface defs for UI elements with complex textual content
6082 * idl/Value.idl: Definition of UI element that is a value controller or display
6084 2001-07-27 Michael Meeks <michael@ximian.com>
6086 * po/Makefile.in.in: remove autogenerated file from CVS.
6088 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6091 * idl/Registry.idl: include guard.
6093 * idl/Accessibility.idl: Add, and include all the other IDL
6096 * idl/*.idl: remove mass of pragmas etc.
6098 2001-07-26 Michael Meeks <michael@ximian.com>
6100 * registryd/Makefile.am (registryd_SOURCES): remove
6103 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6105 * libspi/.cvsignore, registryd/.cvsignore,
6106 test/.cvsignore: updated.
6108 * po/Makefile.in.in: gettext update.
6110 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6112 * initial CVS checkin
6114 2001-06-29 Michael Meeks <michael@ximian.com>
6116 * configure.in: add AM_CONFIG_HEADER to gen config.h