1 2003-06-13 Michael Meeks <michael@ximian.com>
3 * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
5 * cspi/spi_main.c (cspi_peek_ev): impl.
7 2003-06-11 Padraig O'Briain <padraig.obriain@sun.com>
9 * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
11 * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
13 * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role
16 * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
18 * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
19 for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
21 2003-06-11 Bill Haneman <bill.haneman@sun.com>
23 * libspi/streamablecontent.h:
24 * libspi/streamablecontent.c:
25 New files, provide implementation/wrappers for
26 Accessibility_StreamableContent.
28 * cspi/spi_streamablecontent.c:
29 Connected the C wrappers to the libspi C bindings.
30 (AccessibleStreamableContent_close): New method.
33 (AccessibleStreamableContent_close): New method, needed
34 since we have an "open, [seek], read, close" model in cspi.
36 2003-06-11 Bill Haneman <bill.haneman@sun.com>
38 Fix for #108664; Padraig's revision of my original patch.
40 * registryd/registry.h:
41 Added event queue list, is_queuing, and exit_notify_timeout
42 to the registry struct.
44 * registryd/registry.c:
45 (registry_init): Initialize new struct from registry.h.
46 (impl_registry_notify_event):
47 Filter events before notifying, in case some need to be
49 (registry_filter_event): New,
50 we defer certain incoming events (for instance
51 window:deactivate) because we may wish to hide
52 or reject them based on pending events. This is
53 mostly a workaround for bug #108664.
54 (registry_queue_event, registry_start_queue): New.
55 (registry_defer_on_event): Test event to see if it
57 (registry_reset_on_event): Returns TRUE if the
58 event should cause a queue reset.
59 (registry_discard_on_event): Returns TRUE if the event
60 should cause the previous queue contents to be discarded.
61 (registry_timeout_flush_queue): Flushes the pending event
62 queue if no reset/discard-triggering events have come in
63 within the timeout period.
64 (registry_emit_event): New.
65 (registry_clone_notify_context): New, used when queueing the
66 event notify contexts.
68 2003-06-10 Bill Haneman <bill.haneman@sun.com>
70 * configure.in: Version revved to 1.3.2, lt 0.9.2
71 Incremented ATK required version to 1.3.4.
73 * cspi/spi_registry.c:
74 (SPI_generateKeyEvent):
75 We now pass the keystring along if it's non-null.
77 * registryd/deviceeventcontroller.c:
78 (keysym_mod_mask): New method, returns modifier mask
79 required to generate a keysym from a given keycode.
80 (dec_synth_keysym): New method.
81 (dec_synth_keystring): New method.
82 (dec_get_modifier_state): New method.
83 (dec_lock_modifiers): New
84 (dec_unlock_modifiers): New.
85 (dec_keysym_for_unichar): New, rather brute-force
86 conversion from UCS-4 to X KeySyms. Only works for
87 Latin at the moment, with partial implementations for
88 Greek, Hebrew, and (incomplete) Katakana.
89 (impl_generate_keyboard_event): Now implement
90 "KEYSTRING" synthesis and implement "KEYSYM"
92 (keycode_from_keysym): Improved, passes a returned
93 modmask value now if the corresponding param is non-NULL.
95 Fixes bugs #92143 and #109776.
98 * test/keysynth-test.c:
99 New test program for key synthesis, to confirm fixes for
103 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
105 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
107 * cspi/spi_accessible.c (cspi_init_relation_type_table):
108 Add line for RELATION_POPUP_FOR
110 * docs/reference/cspi/tmpl/spi_relation.sgml:
111 Add relation SPI_RELATION_POPUP_FOR
113 * docs/reference/cspi/tmpl/spi_stateset.sgml:
114 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
116 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
118 * libspi/relation.c (spi_init_relation_type_table):
119 Add line for RELATION_POPUP_FOR
121 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
123 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
124 there are still windows which have not been deleted and emit
125 window:deactivate, if necessary and window:destroy events.
126 This fixes bug #114370. The change on June 5th was not correct.
128 2003-06-09 Bill Haneman <bill.haneman@sun.com>
130 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
133 (SPI_dupString): Allow dup-ing of a string such that it's safe to
135 New methods for client exception handling and interception.
136 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
137 (SPI_exceptionHandlerPop): You guessed it...
138 (SPI_getSourceType): Return the type of object which offended.
139 (SPI_getExceptionCode): Return an enum code telling, possibly,
140 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
141 (SPIAccessibleException_getSource): get the source object for
142 exceptions that come from Accessibles, if SPIExceptionSourceType is
143 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
144 (SPIException_getDescription): New, returns a string description of
145 the problem. [Not yet a stable ABI, strings are not frozen]
147 * cspi/spi-private.h:
148 Added implementation details of opaque SPIException
152 Implementations of above. Also
153 (_cspi_exception_throw): new private method that
154 dispatches exceptions to handlers, called from cspi-bonobo.c
156 * cspi/bonobo/cspi-bonobo.c:
157 (cspi_check_ev): call _cspi_exception_throw.
158 Don't print a warning message if the exception has been
159 handled by _cspi_exception_throw.
161 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
163 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
164 there are still windows which have not been deleted and emit
165 window:deactivate, if necessary and window:destroy events.
166 This fixes bug #114370.
168 2003-06-03 Bill Haneman <bill.haneman@sun.com>
171 (cspi_accessible_is_a): Make non-fatal
172 if the object reference is dead.
174 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
176 * cspi/spi_main.c: #include <stdio.h>
177 * test/simple-at.c: ditto
178 * test/event-listener-test.c: ditto
179 * test/screen-review-test.c: ditto
181 2003-05-30 Michael Meeks <michael@ximian.com>
183 * test/test-simple.c (main): use CORBA_ORB_perform_work
184 instead of an unnecessary linc_ call.
186 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
188 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
189 Add SPI_STATE_INDETERMINATE.
191 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
194 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
196 * libspi/stateset.c (init_state_type_tables): Add support for
199 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
201 * configure: Update versions of atk and gail required.
202 This fixes bug #113268.
204 2003-05-02 Bill Haneman <bill.haneman@sun.com>
206 * configure.in: Revved micro version to 1.3.1 (because of build fix).
208 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
210 * libspi/Makefile.am:
211 Ensure headers are generated before being used by c sources.
213 2003-05-01 Bill Haneman <bill.haneman@sun.com>
216 Simplified lt versioning rules.
217 Incremented version to 1.3.0, to indicate that we're on the
220 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
222 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
223 Add MKDB_OPTIONS=--outtput-format=xml
225 * docs/reference/cspi/at-spi-cspi-docs.sgml
226 docs/reference/idl/at-spi-idl-docs.sgml:
227 Convert to Docbook XML.
229 This fixes bug #111793.
231 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
233 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
234 AcccessibleKeyEventType, AccessibleKeyMaskType.
236 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
238 * cspi/state-types.h: Add documentation for AccessibleState.
240 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
241 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
242 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
243 AccessibleComponentLayer.
245 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
248 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
250 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
251 Accessible. Add description of AccessibleEvent,
252 AccessibleEventListenerCB.
254 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
257 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
258 documentation. Add description of AccessibleKeystrokeListenerCB,
259 AccessibleKeyEventMask, AccessibleModifierMaskType,
260 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
261 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
263 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
266 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
269 This fixes bug #104730.
271 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
273 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
274 Set is_text field of Accessibility_DeviceEvent data structure.
276 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
277 is-text field of AccessibleDeviceEvent data structure.
279 This addresses part of bug #108666.
281 * registryd/devcieeventcontroller.c: Unset debug option.
283 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
286 (cpi_initial_relation_type_table): New function which initializes
287 mapping between Accessibility_RelationType and AccessibleRelationType.
288 (cspi_relation_type_from_spi_relation_type): New function which
289 translates an Accessibility_RelationType into an AccessibleRelationType.
290 (AccessibleRelation_getRelationType): Use
291 cpi_relation_type_get_spi_relation_type to return correct value.
292 (spi_state_to_corba): Return correct type for default case.
294 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
295 Use Accessibility_EventType instead of Accessibility_KeyEventType.
297 * cspi/cspi-bonobo-listener.c:
298 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
301 * libspi/accessible.c, libspi/action.c, libspi/application.c,
302 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
303 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
304 libspi/image.c, libspi/listener.c, libspi/selection.c,
305 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
306 registryd/desktop.c, registryd/registry.c:
307 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
309 * libspi/eventlistener.c
310 Remove semicolon after BONOBO_TYPE_FUNC.
313 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
314 (spi_init_relation_type_table): Initialize using correct type.
316 * registryd/desktop.c:
317 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
318 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
319 of Accessibility_KeyEventType.
321 * test/key-listener-test.c (report_tab_key_event): Use fprintf
324 * tests/simple-at.c, tests/screen-review-test.c:
325 Add include for <strings.h>.
327 * tests.stress-test.c:
328 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
330 These changes fix compiler warnings when using FORTE compiler on
331 Solaris; fixes bug #107479.
334 2003-04-10 Bill Haneman <bill.haneman@sun.com>
337 * configure.in: revved to 1.1.10
340 (SPI_KEYMASK_NUMLOCK): Added.
342 * registryd/deviceeventcontroller.c:
343 (spi_key_event_matches_listener): AND with a smaller
344 bitmask (as we should).
345 (spi_dec_translate_mask):
346 New method, sets the virtual NumLock modifier bit
347 if numlock is on. Eventually it can handle other virtual
348 modifier bits if needed, or other marshalling from
349 at-spi modifier masks to platform (X) masks.
350 (spi_dec_key_listener_new):
351 Call spi_dec_translate_mask to set up virtual mod bits
352 in the 'mask' field when creating a new listener struct.
353 (spi_dec_emit_modifier_event):
354 Set the virtual (i.e. NumLock) bits before emitting event.
355 (spi_controller_register_with_devices):
356 Query for the NumLock modifier 'physical' bit if Xkb is
357 present, for use in above methods.
361 2003-04-10 Bill Haneman <bill.haneman@sun.com>
363 * registryd/deviceeventcontroller.c:
364 (spi_keystroke_from_x_key_event):
365 Instead of checking to see if the keysym is
366 printable, check the string from XLookupString
367 if available, get the first unicode character from it,
368 and call g_unichar_isprint to determine whether the
369 is_text flag should be TRUE or FALSE.
373 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
375 * atk-bridge/bridge.c: Add support for extended events
376 * cspi/spi_event.c: Add documentation and implementation for
378 * tests/event-listener-test.c: Add tests for extended events.
380 This fixes bugs #100424 and #100426.
382 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
384 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
385 of LT_CURRENT. This fixes bug #89350.
387 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
389 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
390 number of signal parameter values before accessing them. This fixes
393 2003-04-01 Bill Haneman <bill.haneman@sun.com>
395 * configure.in: Fixed duplicate inclusion of -lspi.
396 * branched for gnome-2-2/HEAD.
397 [created tag "gnome-2-2"]
399 2003-03-07 Bill Haneman <bill.haneman@sun.com>
401 * configure.in: 1.1.9 release.
404 2003-03-07 Bill Haneman <bill.haneman@sun.com>
406 [needed by GOK, to fix bugs 107985 and 107988]
407 * registryd/deviceeventcontroller.c:
408 (spi_dec_clear_unlatch_pending):
409 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
410 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
411 (spi_dec_init_mouse_listener):Emit warning if mouse button
413 (spi_device_event_controller_forward_mouse_event):
414 Removed unnecessary parens from a conditional.
415 (global_filter_fn):Added TODO comment.
416 (impl_generate_keyboard_event):
417 Cancel a pending relatch if a 'delatching' key was
420 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
422 * atk-bridge/bridge.c:
423 Change atk_signal_child_changed to atk_signal_children_changed.
424 Reorganize code in spi_atk_bridge_signal_listener().
426 * test/event-listener-test.c:
427 Add children_changed_listener and report_children_changed_event()
428 to test AccessibleChildEvent_getChildAccessible.
430 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
432 * cspi/spi_event.c (cspi_internal_event_get_text): Change
433 g_strdup to CORBA_String_dup (bug #105291)
435 * test/event-listener-test.c (report_text_event): Add call to
438 2003-02-28 Bill Haneman <bill.haneman@sun.com>
440 * registryd/deviceeventcontroller.c:
441 (spi_keystroke_from_x_key_event):
442 Fix string and keysym return codes to match modifier state.
445 2003-02-28 Bill Haneman <bill.haneman@sun.com>
447 * registryd/deviceeventcontroller.c:
448 (spi_keystroke_from_x_key_event):
449 Fix segv due to improper use of isprint(c). [bug #107254]
451 2003-02-24 Bill Haneman <bill.haneman@sun.com>
454 (get_accessible_text_boundary_type):
455 Move default return value to (new) default case in switch.
456 (get_accessible_text_clip_type):
457 Move default return value to (new) default case in switch.
459 * libspi/application.c:
460 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
461 Remove unused methods.
462 (impl_accessibility_application_register_object_event_listener):
463 Remove unused methods.
466 Added #include of <math.h>.
468 * registryd/deviceeventcontroller.c:
469 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
470 we don't currently use this method.
471 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
473 (impl_generate_key_event):
474 Remove unused variables.
475 (impl_generate_mouse_event):
476 Initialize button to zero, just in case we get an invalid
477 input. Added support for mouse buttons 4 and 5.
478 (spi_device_event_controller_new):
479 Removed unused variable declaration for 'private'.
481 Added #include of <gdk/gdk.h>
483 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
485 * configure.in: Update to work when X is not installed in expected
486 location. Fixes bug #105836.
488 * atk-bridge/bridge.c
489 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
491 (spi_atk_register_event_listener): Add signal listener for
493 (spi_atk_bridge_signal_listener): Event event when link-selected
494 signal is emitted. (bug #104622)
496 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
497 on returned string. (bug #105291)
499 * test/event-listener-test.c: Add test for link-selected.
501 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
503 * atk-bridge/Makefile.am: Correct typo in previous commit.
505 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
507 * atk-bridge/Makefile.am: Allow for build directory to be different
508 from source directory
510 * registryd/Makefile.am: Allow for build directory to be different
511 from source directory
515 2003-01-29 Bill Haneman <bill.haneman@sun.com>
518 Fixed dependencies for libcspi so that libspi gets pulled in
519 properly. Fixes 104741.
523 Clean up inline docs a little.
525 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
527 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
528 This is done by implementing AtkComponent for SpiAtkDesktop, which is
529 the AtkObject within an SpiDesktop.
530 This addresses bug #101524.
532 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
533 Remove call to gdk_init().
535 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
536 so that Display is set when SpiDesktop is created.
538 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
540 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
541 This fixes bug #102830.
543 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
545 * test/test-simple.c: Update to take account of fact that GailButton
546 now implements AtkText.
547 (create_text_window): Set name on AtkObject for GtkEntry.
548 (validate_accessible): Check accessible name before calling test_text().
550 * libspi/Makefile.am: Fix problem with building outside of source
551 directory. Bug #98120.
553 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
554 typo in documentation comments. Bug #94275.
556 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
558 * libspi/text.c (impl_getBoundedRanges): Bug fix.
560 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
563 Add includes to avoid compiler warnings on Solaris.
564 (impl_getRangeExtents): Bug fix.
566 2002-12-17 Bill Haneman <bill.haneman@sun.com>
568 Fix for 100944, [API addition approved by Gman and murrayc].
575 * idl/Accessibility_Text.idl:
576 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
577 (Text::getRangeExtents): New method for efficient
578 bounds query of a text range.
579 (Text::getBoundedRanges): New method for efficient
580 clipping of text to bounding boxes.
581 (unImplemented7, unImplemented8):
582 Removed these padding methods to preserve bincompat.
585 (impl_getRangeExtents): implementation of new IDL.
586 (impl_getBoundedRanges): implementation of new IDL.
587 (SpiTextRect): Internal use struct.
588 (_spi_text_rect_union): internal method, calculates union of two
589 SpiTextRect bounding rects.
590 (_spi_text_range_seq_from_gslist): internal method, allows us
591 to build our sequence efficiently as a gslist then convert it
593 (_spi_bounds_contain): internal method, determines whether
594 a text character is "in" or "out" of a clip rect according to
595 values of TEXT_CLIP_TYPE.
596 (spi_text_class_init): Initialize the new methods in the epv.
599 (AccessibleTextClipType): New enum used by screen review api.
600 (AccessibleTextRange): New struct used by screen review api.
601 (AccessibleText_getRangeExtents):
602 cspi binding for Accessibility_Text_getRangeExtents.
603 (AccessibleText_getBoundedRanges):
604 cspi binding for Accessibility_Text_getBoundedRanges.
605 (AccessibleTextRange_freeRanges): convenience method.
608 (AccessibleText_getRangeExtents):
609 cspi binding for Accessibility_Text_getRangeExtents.
610 (AccessibleText_getBoundedRanges):
611 cspi binding for Accessibility_Text_getBoundedRanges.
612 (AccessibleTextRange_freeRanges): convenience method.
613 (get_accessible_text_clip_type): internal conversion method.
614 (get_accessible_text_ranges_from_range_seq): internal conversion method.
616 * registryd/deviceeventcontroller.c:
617 (spi_dec_mouse_check):
618 Improved behavior for mouse:abs events
619 [same granularity as mouse:rel events, and no
620 events when mouse is idle].
622 2002-12-16 Michael Meeks <michael@ximian.com>
624 * cspi/spi_accessible.c (spi_state_to_corba): rename.
626 * libspi/stateset.c (state_spi_to_atk): split out
627 ( fix several remote array bounds nasties )
628 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
629 (impl_remove): make safe from array bounds issues.
630 (spi_atk_state_from_spi_state): impl.
632 * libspi/stateset.h (spi_state_set_cache_is_empty):
633 add a set of wrapper defines to get layering right.
635 * cspi/spi_accessible.c: update state set stuff to
638 2002-12-14 Michael Meeks <michael@ximian.com>
640 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
641 to avoid 2 roundtrips to the registry per key event
642 (spi_atk_bridge_key_listener): upd.
643 (deregister_application): release the dec.
645 * registryd/registry.c (notify_listeners_cb):
646 bin lots of re-enterant complexity - we no longer
647 do a round-trip bonobo ref here, ensure that a single
648 listener's exception failure won't poison all other
650 (impl_registry_notify_event): bin obvious memory leak.
652 2002-12-13 Michael Meeks <michael@ximian.com>
654 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
655 init the ev so the error is meaningful.
656 (spi_atk_bridge_key_listener): ditto.
658 * cspi/spi_main.c (cspi_ev): init the ev so we start
659 with a clean slate, otherwise the first exception
662 * cspi/spi_text.c (get_accessible_text_boundary_type):
663 add a fallthrough for no warnings.
665 * cspi/spi_registry.c: prune unused warnings.
667 * cspi/spi_main.c (cspi_object_take): fix
668 mind-blowing brokenness ( by watching the compile
671 * cspi/spi_accessible.c (Accessible_getStateSet):
672 re-impl. to use an AtkStateSet.
673 (spi_state_type_from_accessible_state),
674 (init_state_table): bin these.
676 * libspi/stateset.c (spi_atk_state_set_from_sequence):
678 (atk_state_set_from_accessibility_state_set): here.
680 * cspi/spi_accessible.c (spi_state_to_atk): impl.
681 (AccessibleStateSet_contains, AccessibleStateSet_ref),
682 (AccessibleStateSet_unref, AccessibleStateSet_contains),
683 (AccessibleStateSet_add, AccessibleStateSet_remove),
684 (AccessibleStateSet_equals, AccessibleStateSet_compare),
685 (AccessibleStateSet_isEmpty): re-write to use a local
688 2002-12-13 Bill Haneman <bill.haneman@sun.com>
690 * configure.in: Revved to 1.1.7 (new keymask vals).
692 2002-12-10 Bill Haneman <bill.haneman@sun.com>
695 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
697 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
700 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
701 to compare two CORBA_TypeCodes.
702 (cspi_internal_event_add): Silence warning from FORTE compiler.
704 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
705 avoid implicit declaration of functions.
707 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
709 * atk-bridge/bridge.c:
710 (spi_atk_bridge_init_event_type_consts): Store signal id for
711 active-descendant-changed signal.
712 (spi_atk_register_event_listeners): Add signal listener for
713 active-descendant-changed signal,
714 (spi_atk_bridge_signal_listener): Move code in function
715 spi_atk-signal_emit_event() into this function.
716 Add support for active-descendant-changed
717 Update support for child-changed signal.
718 (spi_bridge_window_event_listener): Silence warning.
720 * libspi/spi_private.[ch]:
721 (spi_init_any_object): Change second parameter from CORBA_Object to
723 Omit call to CORBA_Object_duplicate().
724 Set CORBA_any's _value to CORBA_Object*.
726 2002-12-06 Bill Haneman <bill.haneman@sun.com>
732 (AccessibleEvent_ref, AccessibleEvent_unref):
733 New methods, for persisting an event outside the emission context.
734 Must be used if the new accessor methods are to be called
735 outside of the event listener's callback.
737 * cspi/bonobo/cspi-bonobo.c:
738 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
739 as second parameter instead of NULL, so we can call
740 cspi_check_ev afterwards.
743 (cspi_object_take): New internal method,
744 converts a CORBA_Object reference to a hard ref on
745 an Accessible if possible, returning NULL if the object
746 reference is invalid or an Accessible * otherwise.
749 (AccessibleEvent_ref):
750 Increment the event's internal private refcount, and
751 add the event's internal struct to an internal cache
752 if it's not already there.
753 (AccessibleEvent_unref):
754 Decrement the event's refcount and remove it from
755 the cspi event cache if refcount==0.
756 (cspi_event_compare): New private method.
757 Compares two event structs via their ids. Used
759 (cspi_internal_event_lookup): New private method.
760 (cspi_internal_event_check): New private method,
761 a 0-order sanity check for events to make sure their
762 private data is intact.
763 (cspi_internal_event_add, cspi_internal_event_remove):
764 New private methods for managiing the event cache.
766 * cspi/bonobo/cspi-bonobo-listener.c:
768 Initialize the new private data elements (id, magic, ref_count).
770 * atk-bridge/bridge.c:
771 (spi_atk_bridge_signal_listener):
772 Fixed bug #100530, passing wrong params to emission func.
774 * registryd/deviceeventcontroller.c:
775 (spi_dec_button_update_and_emit):
776 Fixed type in mask bit operations; fix for #99799.
778 2002-12-02 Bill Haneman <bill.haneman@sun.com>
780 Removed some of the more dangerous workarounds from
781 previous commit; they are only needed by GOK, which
782 in reality should be using another method to accomplish
783 the goals. So on reconsideration some of the workarounds
786 * registryd/deviceeventcontroller.c:
787 (spi_keycodes_contain, spi_dec_init_keycode_list):
788 Removed these methods, used only by a nasty hack to try
789 and detect whether a key synthesis should be allowed
790 to reset the XKB latch state or not. This code was only
791 required to work around an interaction between GOK,
792 button events, and XKB.
793 (impl_generate_key_event):
794 Removed hack at end of key generation that tried to
795 "do the right thing" if XKB latch keys were generated
796 in the midst of button press/release pairs.
799 Added a check for HAVE_XINPUT. Not normally used yet.
801 2002-11-25 Bill Haneman <bill.haneman@sun.com>
803 Workarounds and fixes for mouse event/XKB interaction.
805 * registryd/deviceeventcontroller.c:
806 (spi_keycodes_contain, spi_dec_init_keycode_list):
807 New internal methods.
808 (spi_dec_set_unlatch_pending):
809 Split the method that tells XKB to expect an
810 unlatch (and revert it) out of the rest of the
811 event handling code. This method is called by the
812 two mouse event handlers (the poll and the filter).
813 (spi_dec_update_and_emit, spi_dec_mouse_check):
814 New methods split from spi_dec_poll_mouse_moved.
815 The second one is now called from inside the filterFn
816 when an XKB delatch event is received, to determine
817 whether to revert the delatch or not.
818 (spi_poll_mouse_moved): Refactor; also we can now
819 properly handle the case where multiple button states
820 have changed between polling cycles and we didn't get
821 notified due to another client's grab.
823 Synchronize the server while handling an XKB notification.
824 Ugly, but apparently necessary to avoid nasty races.
825 Check the mouse state on receipt of an XKB latch change,
826 to decide whether to revert the latch or not. (Latches are
827 reverted if there is an immediately preceding mouse button
828 event that a client has consumed, in which case we don't want
829 the user to see the side-effect of the event).
830 (spi_device_event_controller_forward_mouse_event):
831 Check for modifier events and fire before resetting mouse_mask_state,
832 prevents losing modifier events.
834 (impl_generate_keyboard_event):
835 If we've just generated a keyboard event for a non-shift key,
836 we don't want to revert the pending XKB latch.
837 Otherwise, check the modifier state (via a call to
838 spi_dev_mouse_check) and set the relatch mask to
839 that state before returning.
841 2002-11-24 Bill Haneman <bill.haneman@sun.com>
844 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
847 * atk-bridge/bridge.c:
848 (spi_atk_register_event_listeners):
849 Don't re-register for ATK events if the registry has died
850 and the app needs to re-register; the ATK listeners are in
851 process and doing so will cause duplicate emission.
853 * registryd/deviceeventcontroller.c:
854 (spi_poll_mouse_moved):
855 Reformat the source, detect and emit multiple button-change
856 events (i.e. if multiple buttons have changed between poll
858 Add code to detect mouse-down events even when the pointer
859 is grabbed; workaround for GOK bug 98420.
860 (spi_controller_register_with_devices):
861 Call XTestGrabControl with 'impervious' flag set to True,
862 allows us to synthesize events and query the pointer even during
863 an active grab by another client.
864 (spi_device_event_controller_forward_mouse_event):
865 Set the mouse_mask_state to the mouse_button_state from
866 the intercepted event, to synchronize the grab listener with
869 2002-11-20 Bill Haneman <bill.haneman@sun.com>
871 * cspi/spi_accessible.c:
872 (AccessibleRole_getName):
873 Added necessary strings for making this (deprecated)
874 method work with the new role types.
875 (init_role_table, role_table):
876 Added definition of SPI_ROLE_APPLICATION.
878 * libspi/spi-roletypes.h:
879 Added SPI_ROLE_APPLICATION.
881 * idl/Accessibility_Role.idl:
882 Added ROLE_APPLICATION.
884 * docs/reference/cspi/at-spi-cspi-decl.txt:
885 Added SPI_ROLE_APPLICATION to docs.
887 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
889 * cspi/spi_accessible.c
890 (cspi_init_role_table): Do not write beyond end of role_table.
891 (Accessible_getRole): Use correct type for value returned by
892 Accessibility_Accessible_getRole().
894 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
895 beyond end of role_table. (This fixes bug #98269)
897 * libspi/application.c: Add include file spi-private.h for
898 definition of spi_init_any_nil.
900 2002-11-19 Bill Haneman <bill.haneman@sun.com>
904 * libspi/spi-private.h:
905 Added DGB() macro, and extern int _dbg declaration.
907 * registryd/registry.c:
908 (definitions) storage for _dbg.
910 Get environment variable "AT_SPI_DEBUG".
911 (spi_registry_set_debug):
912 New method, to initialize _dbg value.
913 (spi_listener_struct_new, spi_registry_object_finalize):
914 (notify_listeners_cb):
915 Changed fprintfs to use DBG and g_warning().
917 * registryd/deviceeventcontroller.c:
918 (_deregister_keygrab, spi_controller_register_device_listener):
919 Changed debug/warning messages to use DBG macro.
923 Changed warning messages to use DBG macro and g_warning().
925 * atk-bridge/bridge.c:
926 (atk_bridge_init, spi_atk_bridge_get_registry):
927 (spi_atk_bridge_exit_func):
928 (spi_atk_bridge_property_event_listener):
929 Changed status, warning, and error messages to use
930 g_warning, g_message, and DBG macros.
933 Read the state of the AT_SPI_DEBUG environment variable
934 and set a local '_dbg' accordingly.
936 2002-11-19 Bill Haneman <bill.haneman@sun.com>
938 FIXES for 98836, 98842, other bugs.
941 Revved to 1.1.4, interface-age=4, binary-age=4.
943 * registryd/deviceeventcontroller.c:
945 Fixed crasher bug in last_mouse_pos initialization.
947 * registryd/registry.c:
948 (desktop_add_application, desktop_remove_application):
949 Added (and then commented out) some support for
950 object context marshalling. [TODO]
952 * atk-bridge/bridge.c:
953 (spi_atk_bridge_event_context_create):
954 Commented out object context creation until it can
955 be properly tested and debugged.
957 * registryd/registry.c:
958 (impl_registry_notify_event):
959 Fixed crasher bug, we were calling
960 spi_re_entrant_list_foreach () with an empty list.
962 2002-11-18 Bill Haneman <bill.haneman@sun.com>
964 * idl/Accessibility_Action.idl:
965 * idl/Accessibility_Component.idl:
966 * idl/Accessibility_Desktop.idl:
967 * idl/Accessibility_Event.idl:
968 * idl/Accessibility_Hyperlink.idl:
969 * idl/Accessibility_Image.idl:
970 * idl/Accessibility_Relation.idl:
971 * idl/Accessibility_Selection.idl:
972 * idl/Accessibility_State.idl:
973 * idl/Accessibility_Value.idl:
974 Updated unimplemented slot count to minimum of
975 four for all interfaces, for ABI freeze.
977 * idl/Accessibility_EditableText.idl:
978 * idl/Accessibility_Text.idl:
979 Updated unimplemented slot count to six
982 * idl/Accessibility_Registry.idl:
983 Updated unimplemented slot count to six
984 (also for DeviceEventController),
987 * idl/Accessibility_Table.idl:
988 Updated unimplemented slot count to eight,
991 * idl/Accessibility_Event.idl:
992 Added CORBA_any "any_data" member to Event struct.
994 * idl/Accessibility_Event.idl:
995 Added CORBA_any "any_data" member to Event struct.
997 * atk-bridge/bridge.c:
999 atk_signal_text_changed, atk_signal_child_changed,
1000 signal ids queried from gtype system.
1001 (AtkBridgeEventContextType): New enum.
1002 (AtkBridgeEventContextData): New struct.
1003 (AtkBridgeEventContext): New struct.
1004 (atk_bridge_init_event_type_consts):
1005 New method, initializes type contants for comparison
1006 prior to emit_eventv.
1007 (atk_bridge_event_context_init): New method,
1008 initializes a CORBA_any from an AtkBridgeEventContext.
1009 (atk_bridge_focus_tracker): Call spi_init_any_nil to
1010 initialize the event.any_data struct.
1011 (spi_atk_bridge_event_context_create): New method,
1012 creates an AtkBridgeEventContext from signal/event info.
1013 (spi_atk_bridge_event_context_free): New method.
1014 (spi_atk_emit_eventv): Changed to take an
1015 AtkBridgeEventContext parameter. We now initialize
1016 the event.any_data member prior to notifying the
1017 Registry, via the AtkBridgeEventContext.
1018 (spi_atk_bridge_property_event_listener):
1019 (spi_atk_bridge_state_event_listener):
1020 Match emit_eventv signature.
1021 (spi_atk_bridge_object_event_listener):
1022 Match emit_eventv signature, and create an
1023 event context from the event details.
1024 Free the event context afterwards.
1025 (spi_atk_bridge_window_event_listener):
1026 Create an event context, pass it to the
1030 (AccessibleEvent_getContextString):
1031 (AccessibleEvent_getContextObject):
1032 New methods, allow query of AccessibleEvent objects
1033 for more context details (via the "any_data" member
1034 of the Event struct, above).
1037 Definitions for AccessibleEvent_getContextString
1038 and AccessibleEvent_getContextObject.
1040 * cspi/spi_listener.h:
1041 (InternalEvent): New struct.
1044 (AccessibleEvent_getContextString):
1045 (AccessibleEvent_getContextObject):
1046 Implementations of new methods, for obtaining
1047 additional context information from some event types.
1049 * cspi/spi_registry.c:
1050 (SPI_registerGlobalEventListener):
1051 Added mention of active-descendant-changed event in docs.
1053 * cspi/cspi-bonobo-listener.c:
1055 Marshal the any into the AccessibleEvent via
1058 * libspi/spi-private.h:
1059 #include <orbit/orbit.h>
1061 (spi_init_any_string):
1062 (spi_init_any_object):
1063 New convenience function declarations.
1067 (spi_init_any_string):
1068 (spi_init_any_object):
1069 New convenience function implementations.
1071 * registryd/deviceeventcontroller.c:
1072 (spi_poll_dec_mouse_moved):
1073 (spi_device_event_controller_forward_mous_event):
1074 Initialize any_data member of event.
1075 (spi_deregister_controller_device_listener):
1076 Fix incorrect param pass which was preventing deregistration.
1078 * registryd/registry.c:
1079 (desktop_add_application):
1080 (desktop_remove_application):
1081 Add object data to event's any_data before dispatch.
1083 Fix for error messages from GAIL.
1085 * test/event-listener-test.c:
1086 Test new ContextString and "any_data" API:
1087 (report_text_event): New method query and output context string.
1088 (main): register a new text listener with report_text_event
1091 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1093 Fixes for bugs 98127 and 97914.
1094 * cspi/spi-roletypes.h:
1095 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1097 * cspi/spi-statetypes.h:
1098 Added SPI_STATE_MANAGES_DESCENDANTS
1100 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1101 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1102 * cspi/spi_accessible.c:
1103 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1104 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1105 Accessibility_STATE_MANAGES_DESCENDANTS
1106 * libspi/accessible.c:
1107 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1108 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1109 As requested by Bill, I also cleaned up the alignment.
1110 * libspi/relation.c:
1111 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1112 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1113 * libspi/stateset.c:
1114 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1115 Accessibility_STATE_MANAGES_DESCENDANTS
1116 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1117 Document changes reflecting modifications to roles.
1118 * docs/reference/cspi/tmpl/spi_relation.sgml:
1119 Document changes reflecting modifications to relations.
1120 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1121 Document changes reflecting modifications to states.
1123 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1126 Revved to 1.1.3, interface-age=3, binary-age=3.
1127 Added REBUILD macro.
1130 Removed accessx-gui from the tests, since we have a nice
1131 keyboard accessibility capplet now :-)
1133 * test/keysynth-demo.c:
1134 (increment_scan): removed do-nothing default: case,
1137 * test/visual-bell.c:
1138 (main) : removed do-nothing default: case,
1141 * cspi/spi_action.c:
1142 (AccessibleAction_getKeyBinding_):
1143 Documented keybinding string format.
1147 (AccessibleText_getAttributes):
1148 Documented the text attribute string format.
1149 It's changed to use semicolon delimiters also,
1150 to prevent clashes with CSS attributes, but the old
1151 trick of looking for ", " strings will still work
1152 (as unreliably as ever). Fix for bug related to 97916.
1155 Include <cspi/bonobo/cspi-bonobo-listener.h>
1156 Fixes build warning.
1157 (SPI_freeAccessibleKeySet):
1158 (AccessibleKeystrokeListener_addCallback):
1159 (AccessibleKeystrokeListener_removeCallback):
1160 Modify to use AccessibleDeviceListener API internally,
1161 instead of AccessibleKeystrokeListener.
1163 * idl/Accessibility_Event.idl:
1164 Added two more empty slots to EventListener (for a total of four).
1166 * idl/Accessibility_Accessible.idl:
1167 Added four empty slots to Accessible interface.
1169 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1171 * idl/Accessibility_Registry.idl:
1172 (KeyEventType, EventType):
1173 Marked KeyEventType as deprecated; it duplicates
1174 functionality of EventType, which has been extended to
1175 include Mouse-button events.
1176 (KeyEventTypeSeq): defined in terms of EventType.
1177 (registerDeviceEventListener, deregisterDeviceEventListener):
1178 New methods, for managing listeners to device events,
1179 which potentially may consume them.
1182 Added definition for AccessibleDeviceListener.
1184 * cspi/spi-listener.h:
1185 (enum AccessibleDeviceEventType):
1186 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1187 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1188 for backwards compat.
1189 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1190 and typedef'd AccessibleKeystroke to it for back-compat.
1191 (AccessibleDeviceListenerCB):
1192 New function prototype typedef.
1195 (AccessibleDeviceEventMask): New typedef.
1196 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1197 (AccessibleKeyMaskType):
1198 Set equivalent to AccessibleModifierMaskType for back-compat.
1199 (SPI_createAccessibleKeystrokeListener):
1200 (AccessibleKeystrokeListener_unref):
1201 Deprecated in favor of equivalent (better-named) new API below..
1202 keystroke listeners are like all device listeners.
1203 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1204 New API names for old features :-).
1205 (AccessibleDeviceListener_addCallback):
1206 (AccessibleDeviceListener_removeCallback):
1207 (SPI_registerDeviceEventListener):
1208 (SPI_deregisterDeviceEventListener):
1212 (SPI_createAccessibleKeystrokeListener):
1213 Use new preferred API, cspi_device_listener_new() and
1214 cspi_device_listener_add_cb().
1215 (AccessibleKeystrokeListener_removeCallback):
1216 Use new preferred API, cspi_device_listener_remove_cb().
1217 (AccessibleKeystrokeListener_unref):
1218 Use new preferred API, cspi_device_listener_unref().
1219 (SPI_createAccessibleDeviceListener):
1220 (AccessibleDeviceListener_addCallback):
1221 (AccessibleDeviceListener_removeCallback):
1222 Implementation of new API.
1224 * cspi/spi_registry.c:
1225 (SPI_registerDeviceEventListener):
1226 (SPI_deregisterDeviceEventListener):
1227 Implementation of new API. Fixed memory leak and removed need to
1228 allocate EventTypeSeq (thanks Michael for catching this).
1229 Squashed a wayward CORBA_exception_free that shouldn't get called.
1231 * cspi/bonobo/cspi-bonobo-listener.c:
1233 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1234 (cspi_key_event): renamed to cspi_device_event().
1235 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1236 Extended to handle mouse button events as well as key events.
1237 (CSpiKeystrokeListener):
1238 Class superceded by CSpiDeviceListener.
1239 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1240 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1242 * cspi/bonobo/cspi-bonobo-listener.h:
1243 (CSpiKeystrokeListener):
1244 Class superceded by CSpiDeviceListener.
1245 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1246 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1248 * libspi/Makefile.am:
1249 Replaced keystrokelistener.h and keystrokelistener.c
1250 with devicelistener.h and devicelistener.c; keystrokelisener.h
1251 stub retained for back-compat.
1253 * libspi/keystrokelistener.c:
1257 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1259 * registryd/deviceeventcontroller.c:
1260 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1261 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1262 (DEControllerPrivateData): Added xkb settings data.
1263 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1264 button release events (which can't be captured via XGrabButton).
1265 Don't dispatch via the 'normal' event mechanism if the device event was
1267 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1268 Handle the typeseq data in its new location (see above).
1269 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1270 New methods, for "generic" device listeners.
1271 (spi_controller_register_device_listener):
1272 Now handle mouse event listeners as well as key listeners.
1273 (spi_controller_notify_mouselisteners):
1274 New internal method.
1275 (spi_device_event_controller_forward_mouse_event):
1276 Now we notify mouse device listeners as well as generating the
1277 non-consumable "mouse:" events.
1279 We must check and restore the XKB
1280 modifier map if we consume the event, since the act of triggering
1281 a mouse event will normally reset the XKB latch. This is required for
1283 (spi_controller_register_with_devices):
1284 Load the XKB settings when registering, and register for XKB
1285 state notify events.
1286 (spi_key_eventtype_seq_contains_event):
1287 Renamed spi_eventtype_seq_contains_event, since it's used
1288 internally for all device event types now.
1289 (spi_key_event_matches_listener):
1290 Uses spi_eventtype_seq_contains_event now.
1291 (spi_device_event_controller_object_finalize):
1292 Free the private data and the XkbKeyboard struct.
1293 (impl_register_device_listener, impl_deregister_device_listener):
1294 Implementation of new IDL.
1295 (spi_deregister_controller_device_listener):
1296 New internal method.
1297 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1298 More efficient implementation, we don't have to create a new
1299 XkbControls structure every time we query.
1300 (spi_device_event_controller_class_init):
1301 Initialize the epv entries for the new IDL. Assign the
1302 "spi-dec-private" quark.
1303 (spi_device_event_controller_init):
1304 Initialize the private data.
1305 (spi_device_event_controller_forward_key_event):
1306 Removed a bogus CORBA_exception_free() call.
1308 * registryd/deviceeventcontroller.h:
1309 Replaced inclusion of keystrokelistener.h with
1312 * test/event-listener-test.c:
1313 (report_mouse_event):
1316 Added mouse-event device listener.
1318 * test/test-simple.c:
1319 (create_test_window):
1320 Fixed regression (we were instantiating a GtkRange,
1321 which is now an abstract class). Also fixed to match
1322 existing AtkRole names, this seems to have changed in ATK
1323 awhile ago; too late now I think, and the new
1324 mechanism is at least elegant and consistent with the
1325 glib enum "nick" APIs.
1327 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1329 * idl/Accessibility_Relation.idl:
1330 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1331 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1332 * idl/Accessibility_Role.idl:
1333 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1334 * idl/Accessibility_State.idl:
1335 add STATE_MANAGES_DESCENDANTS
1336 * test/event-listener-test.c:
1337 Added a listener for active-descendant events.
1339 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1341 * atk-bridge/bridge.c
1342 (atk_bridge_init): If application is Bonobo component wait until top
1343 level is added before registering
1344 (spi_atk_bridge_do_registration): New function which contains code,
1345 formerly in atk_bridge_init, to do application registration.
1346 (spi_atk_bridge_toplevel_added): Signal called when top level
1347 added to Bonobo component
1349 This fixes bug #83134.
1351 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1353 * registryd/deviceeventcontroller.c
1354 Fixed compilation error caused by calling gettimeofday()
1357 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1362 Added template for HAVE_XKB.
1365 Changes to check for XKB, and to set the HAVE_XKB #define if it
1368 * libspi/listener.c:
1369 ()impl_notify_event): Make failure to get event source name
1372 * registryd/deviceeventcontroller.c:
1373 (#include): include X11/XKBlib.h.
1374 (DEControllerPrivateData) : New struct.
1375 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1377 (dec_synth_keycode_press) (dec_synth_keycode_release):
1378 New methods; split the key synthesis code into these methods.
1379 They check XKB settings before determining the "time" values to
1380 pass to Xtest; this fixes bug #95828.
1381 (impl_generate_keyboard_event): Changed to use methods above,
1382 instead of callng Xtest directly.
1383 (spi_device_event_controller_init): Initialize new privae struct s
1385 (spi_device_event_controllr_object_finalize):
1386 Free the (new) private data.
1388 * registryd/deviceeventcontroller.h:
1389 Add new gpointer to end of struct data.
1391 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1394 Incremented revision to 1.1.2, SONAME is still '.so', library
1395 extensions are ".so.0.0.2".
1397 * registryd/deviceeventcontroller.c:
1398 FIXES FOR #93592 and #95940.
1399 (statics): renamed mouse_button_state to mouse_mask_state,
1400 added key_modifier_mask.
1401 (spi_dec_poll_mouse_moved):
1402 Added key modifier checks, and emit "keyboard:modifiers"
1403 events when the key modifiers currently in use change.
1404 Also generate "mouse:abs" events periodically, even if the mouse
1405 is stationary (should we?).
1406 Alternatively we could generate "mouse:abs" events for either all
1407 mouse movements, or every 'nth' mouse movement, or at the
1408 beginning and end of every "active" mouse period.
1410 * test/event-listener-test.c:
1411 (main): Added listener for "keyboard:modifiers" events.
1413 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1415 * libspi/keymasks.h:
1416 Added key mask #defines for mouse buttons; e.g.
1417 SPI_KEYMASK_BUTTON1, etc.
1420 Incremented dependency on ATK to version 1.1.0. (This dependency
1421 is probably premature but will soon be real enough).
1423 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1425 * libspi/hyperlink.[ch]
1426 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1427 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1430 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1435 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1437 * registryd/deviceeventcontroller.c
1438 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1439 events to be ignored.
1440 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1441 keyboard_mode so that XAllowEvents() can be called.
1445 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1447 * cspi/spi-accessible.c: Correct names of roles returned by
1448 AccessibleRole_getName(). Fixes bug #95055.
1450 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1452 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1455 * registryd/registry.c
1456 (desktop_remove_application: Write diagnostic message to stderr for
1459 (impl_accessibility_registry_deregister_global_event_listener):
1460 Correct size of lists array. This addresses bug #94555).
1462 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1464 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1467 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1469 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1472 * registryd/registry.c (impl_registry_notify_event): Remove
1473 unnecessary call to parser_event_type().
1475 * docs/reference/cspi/tmpl/spi_component.sgml:
1476 Add reference to SPI_LAYER_WINDOW.
1478 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1480 * registryd/registry.c
1481 (desktop_add_application): Remove leak.
1482 (desktop_remove_application): Remove leak.
1483 (parser_event_type): Remove leak.
1485 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1487 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1488 bogus call to CORBA_string_dup(). Also removed unnecessary
1489 g_string_dup/g_free calls.
1491 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1493 * registryd/deviceeventcontroller.c:
1494 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1496 * test/event-listener-test.c:
1497 main: commented out three redundant listeners, to reduce output
1498 noise. (They still are potentially useful for testing).
1501 2002-09-13 Michael Meeks <michael@ximian.com>
1503 * Update all the copyrights to include Ximian.
1505 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1507 * cspi/spi.h: add SPI_LAYER_WINDOW.
1509 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1510 add Accessibility_LAYER_WINDOW case.
1512 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1514 * libspi/component.c: (impl_accessibility_component_get_layer):
1515 add ATK_LAYER_WINDOW case.
1517 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1519 * configure.in: incremented micro version.
1521 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1523 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1526 Clarified and reworded our commit policy.
1529 Started an API "todo" addition list for 2.2.
1532 (impl_getSelection):
1533 Free char pointer from atk_text_get_selection, which was being leaked.
1535 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1538 Small revision to author acknowledgement.
1540 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1542 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1543 If signal has detail add it to the type of the event.
1546 2002-08-12 Michael Meeks <michael@ximian.com>
1548 * test/test-simple.c (global_listener_cb): bin bogosity.
1549 (test_keylisteners): disable, still doesn't work reliably,
1550 certainly not on my system anyway.
1552 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1553 don't leak a reference on the DEC. This round-trip
1554 fetching of the DEC per keystroke sucks, it should be
1557 * cspi/spi-private.h,
1558 * cspi/cspi-lowlevel.h,
1559 * cspi/bonobo/cspi-bonobo-listener.[ch],
1560 * cspi/bonobo/cspi-bonobo.c: get the copyright
1561 notices better - there is still a large amount of
1562 work in at-spi falsely attributed solely to Sun.
1564 * cspi/spi_main.c (cspi_object_ref): kill bogus
1565 hash lookup, just increment the ref.
1566 (SPI_freeString): make explicit the fact that we
1567 handle NULL strings just fine.
1568 (report_leaked_ref): obey coding standards.
1569 (cspi_object_hash, cspi_object_equal): kill retval.
1570 (cspi_object_release): only release if not on loan.
1571 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1572 (cspi_object_borrow, cspi_object_return): impl.
1574 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1575 use cspi_object_borrow / return.
1577 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1579 * cspi/bonobo/cspi-bonobo-listener.c:
1581 Don't call cspi_oject_new() because this is creating a new Accessible
1582 every single time that an event is fired. This causes ATs like at-poke
1583 to nolonger recognise the source of the event and thus ignore it.
1584 Re-use the object from the cache, ref it and then unref it after the
1585 listeners have been called.
1587 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1589 * test/event-listener-test.c:
1590 Added command-line options to disable mouse events (m) and
1593 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1595 * configure.in: Update required versions of ATK, GTK+ and GAIL
1597 * cspi-1.0.pc.in: Add dependency for X include files
1600 * cspi/bonobo/Makefile.am:
1601 Add $(X_CFLAGS) so that X include files
1602 are picked up even if not in standard place (bug #71686)
1604 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1606 * registryd/deviceeventcontroller.c: fix for 84261
1607 (spi_dec_mouse_moved):
1608 Added test of mouse button mask, so that we can detect mouse
1609 button release. Unfortunately we can't otherwise detect mouse
1610 button release events without consuming the mouse press event,
1611 because of the way XGrabButton works. This means that our mouse
1612 release events have a latency dependent on the polling period
1613 while the mouse button is down. At least in this case we only
1614 have to poll while the button is down, and not at other times.
1615 If the button masks don't match with what the last press event
1616 reported, we report the appropriate button release event.
1617 (spi_dec_ungrab_mouse):
1618 New method (not yet called).
1619 (spi_device_event_controller_forward_mouse_event):
1620 New method, sends mouse press event from GdkFilter.
1621 (spi_dec_init_mouse_listener):
1622 Added code to call XGrabButton, redirecting mouse button events to
1623 the root window and our Gdk event loop.
1625 Added code to filter mouse button events, and reordered.
1627 * test/event-listener-test.c:
1629 Added registration for mouse events of type "mouse:button".
1631 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1633 * registryd/deviceeventcontroller.c: partial fix for 84261
1634 (spi_dec_poll_mouse_idle):
1635 New method, a timeout which checks to see if the mouse
1637 (spi_dec_poll_mouse_moving):
1638 A timeout to be called when mouse motion is underway.
1639 (spi_dec_poll_mouse_moved):
1640 A method which fires an event if the mouse has moved, and reports
1641 whether or not it did so.
1642 (spi_dec_init_mouse_listener):
1643 A method which sets up the timeouts above.
1644 (spi_device_event_controller_new):
1645 Now calls spi_dec_init_mouse_listener.
1647 * registryd/registry.c:
1648 (spi_registry_init):
1649 Now we initialize the device event controller when the registry is
1650 initialized, instead of waiting until a client has requested a key
1651 event notification; this is because we need the event controller
1652 for mouse events, but the mouse event registration API is a
1653 "registry" call and doesn't explicitly call the
1654 deviceeventcontroller.
1655 We now report mouse motion events with a 100 ms idle latency and
1656 a 20 ms granularity when motion is in progress.
1658 * test/event-listener-test.c:
1660 We now register the "detail listener" for events of type
1661 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1662 delivered only for the first mouse event received, and thereafter
1663 "mouse:abs" events are delivered.)
1665 * cspi/spi_registry.c:
1666 DOCS: Documented the above mouse event typestrings.
1668 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1670 Happy Summer Solstice...
1672 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1673 (spi_controller_notify_keylisteners):
1674 Changes to remove a listener from the listener list, freeing its
1675 open keygrabs, if a notification to that listener fails. This
1676 means that although a dead listener can continue to hold a passive
1677 keygrab, a maximum of one dispatch to such a listener can fail
1678 before the listener is removed from the list, thus the keygrab
1679 will be released on the next occurrence.
1680 As part of this fix:
1681 (spi_notify_keylisteners):
1682 Renamed to spi_controller_notify_keylisteners, as the controller
1683 instance must now be passed as an argument.
1684 The copied 'notify' GList is now a list of DEControllerKeyListener
1685 objects, since we need more than just the CORBA reference if a
1686 notify fails and we need to deregister the listener.
1687 (impl_notify_listeners_sync):
1688 (impl_notify_listeners_async):
1689 (spi_device_event_controller_forward_key_event):
1690 Modify use of notify_keylisteners in accordance with above
1692 (spi_deregister_controller_key_listener):
1693 New method introduced by refactoring, from
1694 impl_deregister_keystroke_listener.
1695 (impl_deregister_keystroke_listener):
1696 Call spi_deregister_controller_key_listener.
1697 (spi_key_listener_clone):
1698 New method to copy a key listner without doing a 'ref' on the
1699 remote object instance; used to create a notifier list.
1700 (spi_key_listener_data_free):
1701 New method, frees data without unreffing the source.
1703 (spi_key_listener_clone_free): new method.
1704 (spi_key_listener_free):
1705 refactored to call spi_key_listener_data_free.
1707 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1709 * registryd/registry.c: [fix for bug 86048]
1710 (notify_listeners_cb):
1711 Clear CORBA system exceptions which occur when notifying
1712 listeners, before returning to the source of the original event,
1713 since the event source doesn't care if the relayed notify failed.
1714 In other words, don't complain to the atk-bridge if the registry
1715 could not notify all its listeners, that's no fault of the
1716 application and thus should not appear to be an error from the
1717 application's perspective.
1719 * cspi/spi_main.c: [fix for bug 85980]
1721 Replaced use of bonobo_object_dup_ref with call to the wrapper
1722 method, csou_dup_ref (); this silences a compiler warning and
1723 provided more portability.
1725 Ping the registry before return, and restart if necessary.
1727 * cspi/bonobo/cspi-bonobo.c:
1729 New internal method.
1731 Fixed this method to return an object reference, as it should have
1734 * cspi/cspi-lowlevel.h:
1735 Added internal definition for cspi_ping() and fixed
1736 return type of cspi_dup_ref().
1739 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1741 * atk-bridge/bridge.c: [fix for bug 85305]
1742 (spi_atk_bridge_register_application):
1743 New method where the initial application registry calls have been
1744 moved; it allows an application to re-register in response to
1745 certain error conditions (such as a registry restart, see below).
1747 Moved some initialization code to the method
1748 spi_atk_bridge_get_registry, below.
1749 (spi_atk_bridge_get_registry):
1750 New, private accessor function for the Accessibility_Registry
1751 instance. If the registry has not been started before, or has
1752 died (as detected by failure of a CORBA exception), it is
1753 restarted before return, and spi_atk_bridge_register_application
1754 is called again to register with the new bridge instance.
1755 (spi_atk_emit_eventv):
1756 Set registry_died on error; use spi_atk_bridge_get_registry () to
1757 access the registry.
1759 * registryd/registry.c:
1760 (impl_accessibility_registry_register_global_event_listener):
1761 Set listener's event_type_quark to etype.minor instead of
1762 etype.major (fix for bug 84856).
1764 * test/event-listener-test.c:
1765 (report_detail_event):
1766 Change the output string so that user/tester can tell that the
1767 'detail listener' was called instead of the 'generic listener'.
1769 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1771 Fixes for bugs 84900, 84908, 84897, 84898.
1776 Revved version to 1.1.0
1777 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1778 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1780 * idl/Accessibility_Registry.idl:
1781 (EventListener::notifyEvent):
1782 Removed 'oneway' directive after extensive consulation with
1783 ORBit2 team and others. This means also that unref() of the event
1784 source can and should be done synchronously after emission, rather
1785 than remotely in the client, after servicing the notify call on
1788 NOTE: This change speeds up listener performance considerably, but
1789 introduces new latency on the application side. We may want to
1790 add an event queue to the atk-bridge.
1792 * atk-bridge/bridge.c:
1793 (spi_atk_bridge_focus_tracker):
1794 Do a local unref() on the event source after emission.
1796 * registryd/registry.c:
1797 (desktop_remove_application):
1798 Do an unref() on the event source after emission.
1799 (desktop_add_application):
1800 Do an unref() on the event source after emission.
1801 (notify_listeners_cb):
1802 When relaying an event, don't automatically add the event source
1803 to the local object cache, just CORBA_dup it instead. Likewise,
1804 if this method reenters, release the ref rather than calling
1806 (impl_registry_notify_event):
1807 No longer call remote unref() on the event source after dispatch.
1809 * libspi/eventlistener.c:
1810 (impl_accessible_event_notify_event):
1811 Removed remote unref ()
1813 * cspi/bonobo/cspi-bonobo-listener.c:
1815 We now call cspi_object_new() instead of cspi_object_add() on
1816 receipt of an event; thus we only have an implicit object ref
1817 while the cspi_event method is being executed. If we need to keep
1818 a reference to the object, the listener must call ref() on the
1819 object. Thus also we don't need to call cspi_object_unref() after
1820 invoking the listener callbacks in this method.
1824 New internal API for creating a new cspi object, without adding it
1825 to the object cache.
1827 Now uses cspi_object_new() to create the cspi object instance.
1829 Now checks to see if the object is in the internal object cache,
1830 and adds it if necessary before incrementing its refcount (note
1831 that new objects are added with a refcount of 1).
1832 (report_leaked_ref):
1833 New method which gives some information on leaked object instances
1834 if leak detection is turned on.
1836 * test/event-listener-test.c:
1837 (timing_test_event):
1838 New method, used for testing event delivery timing for special
1839 events of type "object:test". It reports elapsed time and
1840 events/sec every 500 events.
1842 Added a new listener, 'test listener', to check timing of event
1843 receipt as noted above.
1845 Added some timing output here also, reports elapsed time every 100
1848 * test/stress-test.c:
1849 Emit events of type "object:test", for use with "event-listener-test".
1851 * test/test-simple.c:
1852 (global_listener_cb):
1853 Call Accessible_ref() on the event source before calling
1854 validate_accessible, since the validation process does pointer
1855 comparisons on the event source, meaning that the event source
1856 needs to be added to the local object cache first. Any use of
1857 such pointer comparisons between Accessible objects requires that
1858 the caller hold an explicit reference to those objects.
1859 We also must therefore call Accessible_unref() when leaving this method.
1861 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1863 * registryd/deviceeventcontroller.c:
1864 (spi_controller_update_key_grabs):
1865 Fix for #84735, subsequent keygrab listeners not informed of
1866 registration failure.
1869 (spi_base_construct):
1870 Add an assertion on construct, to make sure the GObject passed in
1871 is really a GObject.
1873 Explicitly initialize object->gobj pointer to NULL;
1875 * cspi/bonobo/cspi-bonobo-listener.c:
1876 (cspi_object_add_ref):
1877 New method, can specify whether to dup-ref a bonobo object passed
1878 in if it's newly added to the object cache.
1880 Now calls cspi_object_add_ref with second param of "FALSE". This
1881 prevents us from doing a pointless dup-ref followed by
1882 release-unref for all those cases where the object is already in
1883 our object cache (fix for #85205).
1885 * atk-bridge/bridge.c:
1886 (spi_atk_bridge_idle_init):
1887 Removed this method, we don't need to initialize in an idle
1890 Changed to call spi_atk_register_event_listeners directly, not via an
1891 idle handler. (fix for #81139)
1892 (gnome_accessibility_module_shutdown):
1893 Removed conditional around deregistration of listeners, since we
1894 don't use the idle handler and thus have always registered when
1896 (spi_init_keystroke_from_atk_key_event):
1897 Changed references to Accessibility_KEY_PRESSED to
1898 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1900 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1902 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1907 * test/stress-test.c:
1910 (may have been an incomplete commit yesterday?)
1912 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1915 Added target for new stress-test.
1917 * test/stress-test.c:
1918 New test, sends 1000 focus notifies in quick succession.
1920 * test/key-listener-test.c:
1921 Now we report whether a keylistener registration
1922 request succeeded or failed.
1924 * test/event-listener-test.c:
1925 Uncommented some listeners which are now implemented.
1928 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1930 * registryd/deviceeventcontroller.c:
1931 (spi_controller_update_key_grabs):
1932 Fix for #82509, lack of failure notification when
1933 ALL_WINDOWS keygrabs fail due to XGrabKey
1934 failure: we synchronize the server when
1935 registering a passive grab, to make sure we get the
1936 error message before the call returns.
1938 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1940 * test/test-simple.c:
1942 Removed #ifdef KEY_IMPL_WORKS guards.
1943 (test_keylisteners):
1944 Removed #ifdef KEY_IMPL_WORKS guards.
1945 Fixed bug which was causing a hang waiting for a
1946 "press" event (which was already overwritten by a "release"
1947 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1949 Added code to set globals 'key_press_received' and
1950 'key_release_received'.
1953 Added section "1.1 API Proposed Additions" which
1954 lists API additions desired for at-spi-1.1 (only one so far).
1955 Updated TODO list a little.
1957 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1959 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1962 * configure.in: Revved to 1.0.0.
1964 * idl/Accessibility_Registry.idl:
1965 (registerKeystrokeListener):
1966 Added boolean return value.
1968 * registryd/registry.c:
1969 (notify_listeners_cb): Minor fix to debug output.
1971 * registryd/Accessibility_Registry.server.in.in:
1972 Revved version number in OAFIID to 1.0.
1974 * registryd/registryd.c:
1976 Use new OAFIID version.
1978 * cspi/bonobo/cspi-bonobo.c:
1980 Use new OAFIID version.
1986 * atk-bridge/bridge.c:
1988 Use new OAFIID version.
1990 * registryd/deviceeventcontroller.c:
1991 (impl_register_keystroke_listener):
1992 Added CORBA_boolean return value.
1993 (spi_controller_register_device_listener):
1994 Added gboolean return value.
1995 (spi_controller_register_global_keygrabs):
1996 Added gboolean return value.
1997 (spi_key_set_contains_key):
1998 Added implementation for many more control keys,
1999 for instance F1-F12, arrow keys, End, Home, Page_Up,
2001 [TODO: some still not implemented].
2003 * text/screen-review-test.c:
2004 (text_chunk_pad_string):
2005 New function: it provides mapping between coordinate
2006 positions of text chunks and character positions in the
2007 screen-review-line output string.
2008 (text_chunk_to_string):
2009 New function, calls text_chunk_pad_string with various
2010 pad/delimiter characters. Pushbuttons are delimited with
2011 square brackets, Frames with vertical 'pipe' lines, and
2012 other text with double quotes.
2013 (text_chunk_list_to_string):
2014 Calls new function text_chunk_to_string.
2015 (toplevel_composite):
2016 New function to composite layers CANVAS through
2017 POPUP in each toplevel (other layers are composited
2018 across toplevels, i.e. BACKGROUND and OVERLAY).
2019 (review_buffer_composite):
2020 Revise to use new methods.
2026 2002-05-31 Laszlo Peter <laca@sun.com>
2028 * configure.in: add the Xtst libdir to the runpath on Solaris,
2029 since it's not in the default library search path.
2031 2002-05-29 jacob berkman <jacob@ximian.com>
2033 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2035 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2037 * test/screen-review-test.c:
2038 (text_chunk_pad_string):
2039 Added method, which pads the string according to the
2040 text bounds of the chunk. It also takes a 3-character
2041 string as a param which indicates the characters to be
2042 used for start, padding, and end delimitation of the chunk.
2043 (text_chunk_to_string):
2044 Changed to use text_chunk_pad_string.
2046 * configure.in: Fixed bug in AC_OUTPUT that was
2047 causing path substitution in Accessibility_Registry.server
2050 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2052 * text/screen-review-test.c:
2053 (guess_string_clip):
2054 New method which attempts a best-guess at clipping
2055 text from components (like Java labels) which don't
2056 actually implement AccessibleText. This inaccurate
2057 clip is based on the assumption that the label is
2058 justified left-and-right, and monospaced.
2059 (text_chunk_get_clipped_string):
2060 We now call guess_string_clip() for text-containing
2061 components that don't implement AccessibleText.
2063 * test/screen-review-test.c:
2064 (review_buffer_get_text_chunk):
2065 We now pull "name" from labels if they do not implement
2066 AccessibleText (i.e. for Java labels).
2067 (get_screen_review_line_at):
2068 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2071 Replaceded AC_OUTPUT target
2072 registryd/Accessibility_Registry.server with
2073 registryd/Accessibility_Registry.server.in.
2075 * registryd/Accessibility_Registry.server.in:
2076 Removed (this is now a Makefile target).
2078 * registryd/Accessibility_Registry.server.in.in:
2079 Added (source for target above). We now use $(libexecdir) as
2080 prefix for the executable at-spi-registryd.
2082 * registry/Makefile.am:
2083 Now install at-spi-registryd into $(libexecdir), and build .server
2084 file with path (see above).
2086 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2088 * test/screen-review-test.c:
2089 (text_chunk_get_clipped_string):
2090 We now check to see if words fall within clip bounds
2091 before resorting to character-by-character clip bounds testing.
2093 * TODO: Added a section for "2.2 Proposed API Additions".
2095 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2097 * test/screen-review-test.c:
2099 Added a screen review benchmarking and test program to test
2102 * cspi/spi_accessible.c:
2104 Made some of the debug strings passed to cspi_check_ev a
2105 little more specific.
2107 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2109 * test/screen-review-test.c: Fix crashes in debug statements
2111 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2113 * test/screen-review-test.c: Added this file.
2115 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2117 * atk-bridge/bridge.c: changed "object:state-change" to
2118 "object:state-changed" to match docs.
2120 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2122 * atk-bridge/bridge.c: Hooked up state-change event details.
2124 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2126 * registryd/registry.c:
2127 Fixed quarking bug in event string parsing; now events with
2128 detail parameters get matched correctly to listeners.
2131 * util/idl/Magnifier.idl: remove.
2133 * util/*.[ch]: Remove.
2134 Magnification utilities and IDL are now in module gnome-mag.
2136 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2138 * registryd/deviceeventcontroller.c:
2139 Fixed bug in grab key conversion which was causing keycode grabs
2140 to be converted to AnyKey grabs.
2143 updated NEWS file to reflect recent spin-off of gnome-mag.
2145 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2147 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2148 busted AccessibleStateSet_compare. Removed redundant casts.
2150 * cspi/spi-action.c: Removed redundant casts.
2152 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2154 * cspi/spi_component.c: Fixed typos and casting error.
2156 * cspi/spi_editabletext.c: Removed redundant casts.
2158 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2160 * cspi/spi_hypertext.c: Eliminated redundant casts.
2162 * cspi/spi_image.c: Eliminated redundant casts.
2164 * cspi/spi_registry.c: Eliminated redundant casts.
2165 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2166 * cspi/spi_selection.c: Removed redundant casts.
2167 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2168 handling. Screen geometry and text offsets were being returned as 0
2169 on error which is technically valid-- changed these to return -1.
2170 Added marshaller for text boundary types to fix bug with boundary
2171 types being passed incorrectly to atk.
2173 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2176 * cspi/spi_registry.c:
2177 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2178 which was uncovered by the recent key changes.
2180 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2182 * test/event-listener-test.c:
2184 Added new test, "event-listener-test";
2185 this code does two things; it benchmarks traversal time
2186 for the accessible hierarchy for the first running accessible
2187 app, and it connects listeners for all supported event types.
2188 It is thus useful as an example event listener and for
2189 diagnostics/debugging of event generation.
2191 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2194 Removed unnecessary dependency on libutil.
2197 Revved micro version: 0.13.1
2199 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2202 Removed util/Makefile from targets.
2205 Removed util subdir from SUBDIRS (temporarily,
2206 pending removal of magnifier-only code
2210 #ifdef-ed out magnifier dependencies, since
2211 magnifier IDL, headers, and binary now live in
2212 module gnome-mag and we don't want at-spi to depend
2213 on gnome-mag. A magnifier demo which can run alongside
2214 simple-at is forthcoming in the gnome-mag module.
2216 NOTE: Split magnifier binary, IDL, and magnification
2217 activation code from at-spi into module gnome-mag.
2219 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2221 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2222 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2224 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2227 Revved to version 0.13.0
2229 * idl/Accessibility_Registry.idl:
2230 Changed definition of KeySet from sequence of longs to sequence of
2231 KeyDefinitions, and added KeyDefinition struct.
2232 Required for fix to bug 80616.
2234 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2235 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2236 to use new definition (see above).
2238 * registryd/deviceeventcontroller.c: handle_keygrab(),
2239 spi_keyset_contains_key():
2240 Changed to make use of new struct; this allows matching based on
2241 string key-name, for instance "Tab". This also allows matching of
2242 composed characters, non-alphanumeric characters in a way that
2243 doesn't involve dependencies on X keysym codes directly, etc.
2245 * test/key-listener-test.c:
2246 Added test for Alt-Tab key using "string" specification of keyset,
2247 and modified one of the tests to use a keycode-based keyset.
2248 Thus this test both tests and demonstrates the creation and use of
2249 keysets of three forms: specified via keycode array,
2250 keysym array, and string array. (The string case only contains a
2251 single string, i.e. a string array of length 1).
2254 Turned on PRINT_TREE option by default. Also fixed a
2255 string-freeing bug in the PRINT_TREE code.
2256 Added a listener to window:minimize events.
2258 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2260 * atk-bridge/bridge.c:
2261 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2262 for window:activate and window:deactiveate
2263 (atk_bridge_property_event_listener atk_bridge_signal_listener
2264 atk_bridge_window_event_listener) Tidy debug code
2266 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2268 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2269 Fixed handling for NULL return value from ATK.
2271 * libspi/action.c libspi/component.c libspi/editabletext.
2272 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2273 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2274 Removed redundant casts.
2276 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2277 Fixed off by one bug.
2279 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2280 function not present in idl)
2282 2002-05-02 jacob berkman <jacob@ximian.com>
2284 * atk-bridge/Makefile.am: make atk-bridge a real module
2286 2002-04-26 Radek Doulik <rodo@ximian.com>
2288 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2289 atk_state_types table
2291 2002-04-22 jacob berkman <jacob@ximian.com>
2294 * libspi/Makefile.am: add deps on the built files to help
2295 automake, and don't version the ORBit typelib
2297 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2299 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2300 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2301 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2302 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2303 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2304 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2305 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2306 libspi/accessible.h libspi/accessible.h libspi/base.h
2307 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2308 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2309 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2310 libspi/spi-private.h libspi/statetset.h libspi/table.h
2311 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2312 util/mag_client.h util/mag_control.c util/mag_image.c
2313 util/mag_image.h util/magnifier.c util/magnifier.h:
2314 Add missing file headers; standardize existing ones
2316 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2318 * atk-bridge/bridge.c: Added window event support.
2320 2002-04-18 Michael Meeks <michael@ximian.com>
2322 * libspi/relation.c (impl_getNTargets): impl.
2323 (impl_getTarget): impl.
2325 * libspi/Makefile.am: fix stateset install.
2327 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2330 Started putting useful info in this file.
2332 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2334 * atk-bridge/bridge.c:
2335 Propagate state-changed notifications to ATs
2337 * cspi/spi_registry.c: update docs to reflect actual behavior of
2338 state-change events.
2340 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2343 Incremented version to 0.12.1
2345 * util/mag_client.h:
2346 Add missing declaration for magnifier_exit,
2347 used by mag_control.c - Forte compiler didn't like
2348 the implicit redeclaration of the function :-(
2351 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2354 Revved version to 0.12 due to API change (see below).
2356 * cspi/spi-roletypes.h:
2357 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2358 definition from the inline docs, and added docs
2359 for SPI_ROLE_LAST_DEFINED.
2362 * cspi/spi_streamablecontent.c:
2363 Added missing seek_type parameter to
2364 (so far unused) method,
2365 AccessibleStreamableContent_seek().
2366 [ RT approval JodyG. ]
2369 Fixed docs for SPI_createAccessibleKeystrokeListener.
2371 * cspi/spi_registry.c:
2372 Fixed docs for SPI_KEYSET_ALL_KEYS.
2374 * docs/reference/cspi/at-spi-cspi-sections.txt:
2375 Added a number of missing APIs to SECTIONS.
2377 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2379 * registryd/Makefile.am:
2381 * cspi/bonobo/Makefile.am:
2382 Add $(X_LIBS) to makefiles.
2384 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2387 Revved version to 0.11.
2389 * libspi/component.c:
2390 Added implementation for grabFocus.
2392 * idl/Accessibility_Component.idl
2393 (Accessibility_Component_grabFocus):
2394 Made this method return boolean to indicate success or failure, to
2395 be consistent with cspi and the corresponding ATK method.
2397 * idl/Accessibility_Selection.idl
2398 (Accessibility_Selection_selectAll) :
2399 Made these methods return boolean to indicate success or
2400 failure, to be consistent with cspi and the corresponding ATK methods.
2402 * idl/Accessibility_EditableText.idl
2403 (Accessibility_EditableText_setTextContents,
2404 Accessibility_EditableText_insertText,
2405 Accessibility_EditableText_cutText,
2406 Accessibility_EditableText_deleteText,
2407 Accessibility_EditableText_pasteText):
2408 Made these methods return boolean to indicate
2411 * cspi/spi_editabletext.c:
2412 Made these methods return booleans.
2414 * libspi/selection.c:
2415 * libspi/component.c:
2416 * libspi/editabletext.c:
2417 Connected the boolean returns from ATK
2418 to the server-side code referenced above.
2420 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2422 * idl/Accessibility_Table.idl: Added missing methods,
2423 Accessibility_Table_addRowSelection,
2424 Accessibility_Table_addColumnSelection,
2425 Accessibility_Table_removeRowSelection,
2426 Accessibility_Table_removeColumnSelection.
2429 Added C wrappers for above IDL:
2430 AccessibleTable_addRowSelection,
2431 AccessibleTable_addColumnSelection,
2432 AccessibleTable_removeRowSelection,
2433 AccessibleTable_removeColumnSelection.
2436 Added server-side implementation code for IDL above, connecting
2437 to pre-existing ATK api.
2439 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2441 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2443 * libspi/accessible.c: Added implementation fo
2444 Accessibility_Accessible_get_state.
2446 * libspi/libspi.h: Added stateset.h to the list of includes.
2448 * libspi/stateset.c: Fixed broken implementation.
2450 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2453 Added implementation code for Accessibility_Magnifier_exit ().
2455 * util/mag_control.c:
2456 Added test code for above method; you can
2457 now kill an existing magnifier via
2458 ./mag_control q, from the util directory.
2460 * test/key-listener-test.c:
2462 Added a new test, for our key listener API.
2464 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2466 * test/app.c, test/keysynth-demo.c:
2468 Replace use of snprintf with g_snprintf.
2469 (fix for bugzilla 78249)
2471 2002-03-27 Michael Meeks <michael@ximian.com>
2475 * util/Makefile.am (INCLUDES): fix.
2476 (DONT_DIST_SOURCE): don't distribute the
2479 * libspi/Makefile.am (dist-hook): ditto.
2481 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2483 * libspi/hypertext.c:
2484 Fix warnings when yelp is used with atk-bridge
2486 2002-03-21 Michael Meeks <michael@ximian.com>
2488 * libspi/application.c (spi_application_new):
2489 use spi_accessible_construct so we use the AtkObject
2492 2002-03-19 Michael Meeks <michael@ximian.com>
2494 * registryd/registry.c (desktop_remove_application),
2495 (desktop_add_application): clean coding style.
2497 * registryd/desktop.c (spi_desktop_remove_application),
2498 (spi_desktop_add_application): kill re-enterency hazards.
2499 (spi_desktop_dispose): remove bogus redundant cast
2500 obscuring bug; fix bug too.
2501 (spi_desktop_init): make the desktop object immortal.
2503 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2506 Added a #define-guarded tree-traversal step
2507 when enumerating the apps (diagnostic tool).
2509 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2511 * idl/Accessibility_Role.idl:
2512 Added ROLE_DRAWING_AREA which seemed to be missing from the
2515 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2517 * cspi/spi-roletypes.h cspi/spi_accessible.c
2518 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2521 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2522 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2523 AT when applications are added and removed from the desktop. This
2524 reverts the previous broken implementation using the backing
2525 AtkObject for the SpiDesktop.
2527 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2529 * registryd/desktop.c: emit the "children-changed::add" and
2530 "children-changed::remove" signals on the backing ATK object for
2531 the desktop so AT can tell when applications are started and shut
2534 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2536 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2538 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2540 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2542 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2544 * cspi/state-types.h: synched with IDL and ATK
2546 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2548 * libspi/accessible.c
2549 (impl_accessibility_accessible_get_child_at_index):
2550 Change return value for g_return_if_fail ()
2551 to CORBA_OBJECT_NIL instead of "0" (!)
2553 * registryd/Makefile.am:
2554 * registryd/Accessibility_Register.server.in:
2555 Changed name of executable, "registryd",
2556 to something more informative:
2559 2002-03-13 Michael Meeks <michael@ximian.com>
2561 * atk-bridge/bridge.c (atk_bridge_init): don't register
2562 if we're in a bonobo-component, rather than a bonobo app.
2564 2002-03-13 Michael Meeks <michael@ximian.com>
2566 * atk-bridge/bridge.c (gtk_module_init): split
2567 out body to (atk_bridge_init): here, since otherwise
2568 we get symbol conflicts and oddness when invoked
2569 from (gnome_accessibility_module_init): here (upd.)
2571 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2574 New file. Explicitly allow "build sheriff" putbacks provided
2575 they are tested on Solaris.
2577 * docs/reference/cspi/Makefile.am:
2578 Added '-' to the "cp" command for index.sgml.
2579 ("patch by thomasvs, soon coming to a GUADEC near you")
2582 Incremented version number (0.9.0) for new release.
2583 Changed macro that checks for popt, to better detect
2584 obsolete versions of popt.
2587 Added X_LIBS to AC_SUBST, for applications
2588 that call Xlib API directly.
2591 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2594 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2597 Fix regression caused by hard-coding major
2598 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2601 * test/test-simple.c (test_editable_text),
2602 (test_test): revert previous change (error was
2603 a regression in gail which is now fixed).
2605 2002-03-04 Michael Meeks <michael@ximian.com>
2607 * test/test-simple.c (test_editable_text),
2608 (test_text): pass G_MAXINT instead of '-1' for
2609 whole string - is this a good thing !?
2611 * cspi/spi_accessible.c
2612 (Accessible_getRelationSet): fix crasher bug
2613 overwriting the end of the array.
2615 * test/test-simple.c (validate_accessible): free,
2616 not g_free returned relation set.
2618 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2620 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2621 implemented stateset support
2623 * idl/Accessibility_State.idl: Made necessary changes to
2624 the IDL to support state sets.
2626 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2628 * registryd/deviceeventcontroller.c:
2629 Added implementation for generateMouseEvent.
2631 * cspi/spi_registry.c:
2632 Connected new implementation for generateMouseEvent
2635 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2638 Incremented revision (but no change in public API
2639 outside of 'utils', which are not installed public yet.)
2641 * libspi/component.c:
2642 Changed to use atk_component API for layers and
2643 mdi_zorder, instead of deprecated atk_object API.
2645 Magnification Utility Enhancements:
2648 Added implementation of createZoomRegion, clearAllZoomRegions,
2649 resizeZoomRegion. Added new commandline argument
2650 "--no-initial-region". Note that clearAllZoomRegions doesn't
2651 unmap the old '0' region as it should (yet), and the other
2652 methods only work when creating/resizing a single region,
2653 which is "region 0".
2654 (Code for multiple region support will be added later.)
2657 Now we raise the magnifier window each time it's refreshed;
2658 this will help keep it on top.
2660 * util/mag_client.h:
2661 Added simple wrappers for above, used by mag_control.
2662 For general use, it's recommended to use the bonobo magnifier
2663 control API directly instead of using these wrappers.
2666 Moved ZoomRegionData from magnifier.c to this file.
2668 * util/mag_control.c:
2669 Added some code to exercise new IDL implementations.
2671 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2673 * libspi/text.c: Provide implementation for getAttributes.
2675 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2678 Incremented revision.
2680 * test/test-simple.c:
2681 Replaced use of deprecated g_main_iteration with
2682 g_main_context_iteration.
2684 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2687 Incremented revision for desktop alpha 2.
2689 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2691 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2694 * test/simple-at.c: include netinet/in.h.
2696 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2698 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2699 use NULL, not CORBA_OBJECT_NIL.
2701 * libspi/accessible.c:
2702 (impl_accessibility_accessible_get_relation_set):
2703 allocate the sequence correctly.
2705 * libspi/remoteobject.h: kill spi_remote_object_new.
2707 * test/test-simple.c: (validate_accessible): add code
2708 to test relation sets, now all we need is to figure
2709 out how to excercise this code path :/
2711 2002-01-18 Michael Meeks <michael@ximian.com>
2713 * test/test-simple.c
2714 (key_listener_cb): consume the key.
2715 (test_keylisteners): update.
2716 (main): wait for any pending unrefs on events.
2718 * registryd/deviceeventcontroller.c
2719 (spi_controller_update_key_grabs): only re-issue the
2720 grab on a key release.
2721 (spi_device_event_controller_forward_key_event):
2722 refresh the keygrabs before we notify the listeners,
2723 to reduce the X ungrab / re-grab race.
2724 (spi_controller_register_with_devices): remove
2725 XSelectInput - we do that with the gdk_window_ call.
2726 (_spi_controller_device_error_handler): return a value.
2727 s/GDK_DISPLAY/spi_get_display/
2729 2002-01-17 Michael Meeks <michael@ximian.com>
2731 * registryd/deviceeventcontroller.c
2732 (_deregister_keygrab): don't blow out the later
2735 * test/test-simple.c (test_keylisteners): do a
2736 more intelligent validation.
2738 2002-01-14 Michael Meeks <michael@ximian.com>
2740 * atk-bridge/bridge.c
2741 (gnome_accessibility_module_init),
2742 (gnome_accessibility_module_shutdown): impl.
2743 (gtk_module_init): protect vs. double inits.
2744 (add_signal_listener): impl.
2745 (spi_atk_bridge_state_event_listener): kill
2746 (deregister_application): split out of
2747 (spi_atk_bridge_exit_func): here.
2749 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2752 Added caret tracking when using magnifier, and
2753 now use text bounds for focus tracking of text elements, rather than
2754 the component bounds - this is helpful for short text fields in long
2755 table cells, at high magnification.
2757 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2759 * registryd/deviceeventcontroller.c:
2760 Regression fix for keylistener de-registration; global keygrabs
2761 were not being released when deregisterKeystrokeListener was
2762 called in cspi, since
2763 Accessibility_DeviceEventController_deregisterKeystrokeListener
2764 was called with a zero-length keyset. That is because the cspi
2765 method, SPI_deregisterKeystrokeListener, does not take a keyset
2766 parameter but instead should remove all the key grabs held be a
2768 The code in impl_deregister_keystroke_listener was changed to copy
2769 the keylist from the listener instance previously registered with
2770 the DeviceEventController before releasing the grabs.
2772 * registryd/registry.c:
2773 * registryd/deviceeventcontroller.c:
2774 * libspi/spi-private.h:
2776 Changed spelling of "re-enterant" to "re-entrant" globally.
2778 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2780 * test/test-simple.c:
2781 Changed key listeners test - the test was slightly mis-using the
2782 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2783 It now uses '=' as the key event listened to and generated,
2784 relying on a keysym match rather than assuming that keycode 33
2785 is always equal to keysym '!'.
2787 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2790 Changed simple-at to use a specific keyset, rather than
2791 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2792 manager, desktop, etc.
2794 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2796 * registryd/deviceeventcontroller.c:
2797 Replaced standard X error handler with a special handler that
2798 is non-fatal for failed keygrabs. This works around
2799 problems with keygrab clashes sometimes observed on
2801 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2802 mouse handling code as yet).
2804 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2807 Incremented revision for desktop alpha release.
2810 Fixed a couple of the more glaring errors (still not
2813 2002-01-11 Michael Meeks <michael@ximian.com>
2815 * registryd/deviceeventcontroller.c
2816 (spi_device_event_controller_forward_key_event): kill
2817 XUngrabKey / XKeyGrab race.
2818 (spi_controller_grab_keyboard): rename to
2819 (spi_controller_update_key_grabs): this, and deal
2820 with incremental adding / removing grabs more
2822 (_register_keygrab): ensure we're not pending a remove.
2823 (spi_grab_mask_free): impl.
2824 (spi_controller_register_global_keygrabs): split out
2826 (handle_keygrab): impl.
2827 (_deregister_keygrab): impl.
2828 (spi_controller_deregister_global_keygrabs): impl.
2829 (spi_controller_update_key_grabs): re-issue the grab if
2830 we just recieved a notification.
2832 * test/test-simple.c (key_listener_cb): remove debug.
2834 * registryd/deviceeventcontroller.c
2835 (spi_controller_register_device_listener): after
2836 registering a global keygrab, actualy register it !
2837 don't wait for a timeout; doh !
2839 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2840 to make it more readable / manipulable.
2841 s/grabmask/grab_mask/ s/refcount/ref_count/
2842 s/keyval/key_val/ s/modmask/mod_mask
2844 2002-01-08 Michael Meeks <michael@ximian.com>
2846 * registryd/deviceeventcontroller.c
2847 (spi_controller_register_with_devices): use gdk calls to
2849 (global_filter_fn): implement the filter.
2850 (spi_device_event_controller_check_key_event): rename to
2851 (spi_device_event_controller_forward_key_event): this & upd.
2852 (spi_get_display): replace with GDK_DISPLAY.
2854 * registryd/deviceeventcontroller.c
2855 (spi_controller_deregister_device_listener): unroll into
2856 (impl_deregister_keystroke_listener): here to simplify.
2857 (spi_controller_register_global_keygrabs): split cut and
2858 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2859 (spi_controller_deregister_device_listener): remove.
2860 (impl_register_mouse_listener): remove, no mouse listener
2861 support in at-spi-1.0
2863 * registryd/registry.c
2864 (_device_event_controller_hook): kill.
2865 (spi_registry_init): upd.
2867 * registryd/deviceeventcontroller.c
2868 (spi_device_event_controller_class_init): upd.
2869 (spi_check_key_event): merge into.
2870 (spi_device_event_controller_check_key_event):
2871 here and kill strange static ev init, don't leak
2872 the x_event - nor dynamicaly allocate it.
2874 * registryd/registry-main.c (main): re-direct
2875 timeout to remove strange vtable mess.
2877 * registryd/deviceeventcontroller.c
2878 (remove_listener_cb): impl.
2879 (spi_controller_deregister_device_listener):
2880 fix re-enterancy hazard.
2882 2002-01-07 Michael Meeks <michael@ximian.com>
2884 * registryd/deviceeventcontroller.c
2885 (spi_device_event_controller_new): upd.
2886 (impl_notify_listeners_sync): upd. debug.
2887 (spi_notify_keylisteners): fix re-enterancy hazards,
2888 prettify, remove O(n*n) iteration.
2889 (spi_controller_grab_keyboard): fix iteration.
2890 (spi_check_key_event): re-format to suit coding style.
2891 Clean all the warnings - we're warning free.
2893 * registryd/deviceeventcontroller.h:
2894 * registryd/registry.h: make mutualy referential with
2895 typesafe forward references instead of (!) void pointer
2898 2002-01-11 Michael Meeks <michael@ximian.com>
2900 * cspi/spi_accessible.c (role_names): add a role name
2901 to sync this array with the enum; and make the regression
2904 2002-01-10 Michael Meeks <michael@ximian.com>
2906 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2907 allow expansion of enumeration & kill warning.
2909 * test/test-simple.c (key_listener_cb): impl.
2910 (test_keylisteners): impl.
2912 * cspi/spi-listener.h: make listener signatures const
2913 on the provided (const) events.
2915 * test/keysynth-demo.c: upd. to const events.
2917 * test/simple-at.c: ditto.
2919 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2922 Rev the version to 0.5 (the previous tarball was named 0.4,
2923 even though the micro number was 3), so we need to rev upwards
2924 again for beta2/"desktop-alpha"
2927 Checked in a demo script, which requires editing before use!
2928 Proceed with caution.
2931 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2933 * cspi/spi_accessible.c:
2934 Add a couple of missing enum initializations, and fix some enum
2937 * cspi/spi_registry.c:
2938 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2940 * docs/reference/cspi/at-spi-cspi-sections.txt:
2941 Remove/fix a couple of broken document references.
2944 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2945 as Alt-Control to listen for commands, since on some systems
2946 Control-Alt may already be grabbed.
2948 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2951 Update version number to 0.4 for Beta2.
2953 * libspi/accessible.c, libspi/accessible.h:
2954 Expose spi_accessible_construct, to enable libgail-gnome
2955 construction from spi_accessible subtype.
2957 * utils/magnifier.c:
2958 Workaround for bug in some non-gnome-compliant window managers
2959 which made magnifier resize improperly.
2961 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2963 * libspi/accessible.c: (spi_accessible_new) :
2964 Move the test for SPI_IS_REMOTE_OBJECT to
2965 spi_accessible_new_return, fixing a bug and compile time warning.
2967 2002-01-08 Michael Meeks <michael@ximian.com>
2969 * registryd/registry.c (parse_event_type): remove strndup.
2971 * libspi/Makefile.am (libspi_la_SOURCES): remove
2972 sources already included in the headers section.
2974 * libspi/util.c: add.
2976 * libspi/spi-private.h: add.
2978 * registryd/registry.c: update to moved list iterators.
2980 2002-01-05 Michael Meeks <michael@ximian.com>
2982 * test/simple-at.c (main): upd. auto-module set to atk-bridge
2984 * test/test-simple.c (main): ditto.
2986 2002-01-04 Michael Meeks <michael@ximian.com>
2988 * libspi/accessible.c (spi_accessible_new): remove 2nd,
2989 redundant construct.
2991 * registryd/registry.c
2992 (get_listener_list): impl.
2993 (impl_accessibility_registry_register_global_event_listener):
2994 re-impl. to simplify using ~, remove dodgy const cast off.
2995 (parse_event_type): constify.
2996 (impl_accessibility_registry_deregister_global_event_listener_all):
2997 re-write, more efficiency and simplicity, kill re-enterancy
2999 (compare_listener_corbaref, compare_corba_objects),
3000 (compare_listener_quarks): define out.
3001 (impl_accessibility_registry_deregister_global_event_listener):
3002 re-write for effiency, and nail re-enterancy hazard.
3003 (impl_accessibility_registry_get_desktop_list): impl.
3004 (re_enterant_list_delete_link): impl.
3005 (re_enterant_list_foreach): impl.
3006 (remove_listener_cb): impl.
3007 (_registry_notify_listeners): kill.
3008 (notify_listeners_cb): impl.
3010 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
3011 (SPI_getDesktopList): impl.
3013 * test/test-simple.c (test_desktop): test the methods.
3015 2002-01-03 Michael Meeks <michael@ximian.com>
3017 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
3018 keystrings since we free them
3019 (SPI_freeAccessibleKeySet): in here.
3021 * libspi/accessible.c (spi_accessible_new): kill warning,
3022 wonder what is going on with the constructor here.
3024 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3026 * libspi/accessible.c (spi_accessible_new ()) :
3027 Added check to see if AtkObject is an SpiRemoteObject before
3028 creating an SpiAccessible.
3030 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3032 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3033 Enable keygrabs using the Control modifier, now that they are
3034 working properly (they were previously disabled).
3037 Change the command keygrab for this demo to "Control+Alt", so as
3038 to conflict with fewer other key commands on the system; this
3039 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3041 Removed a pointlessly-chatty keylistener for unshifted keys
3042 (shifted keys are still reported).
3044 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3046 * libspi/remoteobject.h:
3047 * libspi/remoteobject.c:
3048 Added definitions for special AtkObject subtype, required for
3049 support of remote components (specifically, used by BonoboControl
3050 accessibility implementation).
3052 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3054 * cspi/spi.h: synched relation types with ATK
3056 * cspi/spi_accessible.c: Added implementations of
3057 AcccessibleRelation_* methods
3059 * idl/Accessibility_Relation.idl: added getRelationTypeName
3060 method. Synched known relation types with ATK. Allowed for
3061 relation type extension with the RELATION_EXTENDED type.
3063 * libspi/relation.c: Provided implementations for
3064 AccessibleRelation methods.
3066 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3068 API tweaks for today's API 'freeze'.
3071 Added placeholder functions to allow future compatible expansion
3072 of the IDL interfaces.
3074 * idl/Accessibility_Registry.idl:
3075 Changed generateKeyEvent to generateKeyboardEvent. Changed
3076 signature of this method to accept an optional keystring in
3077 parameter (for complex text input synthesis) and changed use of
3078 simple 'boolean' parameter in registerKeystrokeListener to a
3079 struct, EventListenerMode.
3081 * cspi/spi_accessible.c:
3083 * cspi/spi_streamablecontent.c:
3084 Added references to AccessibleStreamableContent interface, and
3085 definition and implementation of AccessibleStreamableContent
3088 * cspi/spi_registry.c:
3090 Changed generateKeyEvent API to generateKeyboardEvent,
3091 taking a new (optional) keystring parameter to support complex
3096 Renamed directory (to better reflect its actual purpose, bridging
3097 from at-spi to ATK). The .so module is also now named
3100 * idl/Accessibility_Hypertext.idl:
3101 * libspi/accessible.c:
3102 * libspi/hypertext.h:
3103 * libspi/hypertext.c:
3104 Changed Accessibility_Hypertext to *not* derive from
3107 * cspi/spi_registry.c:
3108 Added list of legal event type names for 'window' events, which
3109 completes the registry event API.
3111 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3113 * at-bridge/bridge.c: Added registration for separate
3114 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3115 signals. If either of the first two parameters to the generic
3116 bridge signal handler are ints, they are passed on as event
3117 details. This allows an AT to determine what text was inserted.
3119 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3121 * registryd/deviceeventcontroller.c:
3122 Fixed regressions in generateKeyEvent caused by the removal of
3123 gdk_init from registryd; we now use pure X calls to connect to the
3124 display, which makes sense because deviceeventcontroller already
3125 uses a fair bit of X API (should eventually be migrated to a
3126 'portability layer').
3128 * registryd/desktop.c:
3129 Fixed minor regression in spi_desktop_init, changed the way the
3130 desktop name is being set to work with new spi_base API
3131 (gobject-based, rather than AtkObject-based).
3133 * registryd/Makefile.am:
3134 Minor revision of makefile to use XTST_LIBS variable rather than
3135 hard-wiring the Xtst LD_ADD element.
3137 * test/keysynth-demo.c:
3138 Tweaked an output message; added initialization of the
3139 'keystrings' member of the "switch listener" key_set.
3141 * libspi/relation.c:
3142 Squashed compile-time warning.
3144 * libspi/accessible.c:
3145 Cosmetic and formatting fixes, renamed a static method.
3147 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3149 * libspi/accessible.c
3151 * libspi/application.c
3154 * libspi/component.c
3155 * libspi/editabletext.c
3156 * libspi/hyperlink.c
3157 * libspi/hypertext.c
3159 * libspi/selection.c
3163 * registryd/desktop.c:
3164 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3166 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3168 * idl/Accessibility_Registry.idl:
3169 Added boolean member 'is_text' to DeviceEvent. This is for the
3170 use of key events, and helps prevent ambiguity between composed
3171 key strings and keysym names, since both may potentially be
3172 returned in the 'event_string' member.
3174 * at-bridge/bridge.c:
3175 * registryd/deviceeventcontroller.c:
3176 Use the 'is_text' member when notifying device event listeners.
3177 Knon issue: composed characters are not dealt with correctly by
3178 the global key listener implementation yet.
3180 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3182 * at-bridge/bridge.c:
3183 Namespaced local static methods to spi_atk_bridge_* where
3184 previously named bridge_*, and spi_* elsewhere.
3186 * at-bridge/bridge.c:
3187 * cspi/bonobo/cspi-bonobo-listener.c:
3188 Added demarshalling/conversion for string member of
3189 Accessibility_DeviceEvent to AccessibleKeystroke.
3191 * registryd/deviceeventcontroller.c:
3192 Added code to fill the Accessibility_DeviceEvent key string value
3193 member for global key events (i.e. from XGrabKey), to match
3194 behavior of Accessibility_DeviceEvent from the toolkit key events
3195 from the bridge. Fixed timestamp in global key event notifications.
3198 Added printout of key event's string value to
3199 report_ordinary_key_event, for demo/debugging purposes.
3201 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3203 * idl/Accessibility_Registry.idl:
3204 Removed Accessibility_KeyStroke structure in favor of generic
3205 Accessibility_DeviceEvent structure.
3206 Changed Accessibility_ControllerEventMask from a struct to an
3209 * at-bridge/bridge.c:
3210 Changed APIs to use DeviceEvent structure as above, and removed
3211 bogus casting between these event structures.
3213 * cspi/spi-listener.h:
3214 Added keystring member of AccessibleKeystroke structure, to enable
3215 matching on event "names" rather than only hardware codes and
3219 Added keystrings member of AccessibleKeySet struct, to allow
3220 matching on event names (as above).
3221 Added declarations for SPI_createAccessibleKeySet and
3222 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3223 event modmasks directly as unsigned ints rather than structs with
3224 refcounts, in the DeviceEventController methods.
3226 * cspi/spi_registry.c:
3227 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3229 * cspi/spi-roletypes.h:
3230 Added documentation of newly added SPI Roles.
3232 * cspi/bonobo/cspi-bonobo-listener.c:
3233 Changes in support of API changes above.
3235 * libspi/accessible.c:
3236 Converted APIs to use DeviceEvent structure (see IDL changes
3239 * registryd/deviceeventcontroller.c:
3240 Added DEControllerGrabMask structure to track keygrabs not only by
3241 modmask but by keyset as well; this allows us to do "global"
3242 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3243 grabbing on AnyKey and then filtering after-the-fact.
3244 Bugfixes for event filtration mean that we don't get false matches
3245 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3247 * registryd/deviceeventcontroller.c:
3248 Namespaced a number of static methods to use spi_ prefix. Major
3249 revision to internals of global (i.e. X) key grabs.
3251 * registryd/deviceeventcontroller.h:
3252 Removed keymask_list and added keygrabs_list to
3253 SpiDeviceEventController struct.
3256 Added use of SPI_createAccessibleKeySet API when creating a
3257 listener for only one key. Attach a listener to "shift spacebar
3258 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3259 X key event names to SPI key event names, so that listeners are
3260 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3262 * test/keysynth-demo.c:
3263 Changed (incorrect) use of X key event names (KeyPressed,
3264 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3267 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3269 * libspi/accessible.c:
3270 Convert all AtkRole enumerations to Accessibility_Role enums when
3271 getting a role from an AtkObject.
3273 * cspi/spi_accessible.c:
3274 Complete the conversion of Accessibility_Role enums at runtime to
3275 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3276 role enums correctly match those given in spi-roletypes.h.
3277 Re-synchronize the local names list for AccessibleRole_getName ().
3278 AccessibleRole_getName is now deprecated, since it duplicates the
3279 more reliable Accessible_getRoleName.
3280 Added some role types from Accessibility_Role.idl.
3282 * idl/Accessibility_Role.idl:
3283 Added some role types used by AtkRole.
3285 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3288 * cspi/spi_registry.c:
3290 * cspi/cspi-bonobo-listener.c:
3291 Namespaced all methods that did not begin with an "SPI_" or
3292 "Accessible" prefix to "SPI_".
3295 Homogenized internal function namespace to "cspi_" for statics.
3298 Patched tests to use the new CSPI API.
3300 * docs/reference/cspi/at-spi-cspi-sections.txt:
3301 Updated docs to reflect namespace changes, and added a number of
3302 methods to the documentation.
3304 * registryd/registry.c:
3305 Changed use of strings and string hashes in listener event
3306 matching and parse_event_string to use GQuark, which is guaranteed
3309 * registryd/registry.h:
3310 Squashed annoying warning.
3312 * idl/Accessibility_Role.idl:
3313 Extended range of available Accessibility_Role values.
3315 * cspi/spi_accessible.c:
3316 Re-ordered role names.
3318 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3320 * idl/Accessibility_Value.idl:
3321 Revert use of union back to CORBA_double, since the double type is
3322 more efficient and can contain the other types without loss of
3325 * idl/Accessibility_Accessible.idl:
3326 Added method Accessibility:Accessible:getRoleName, to complement
3327 Accessibility:Accessible:getRole.
3329 * cspi/spi_accessible.c:
3331 Added C binding for above, Accessible_getRoleName (), and changed
3332 signature of Accessible_getRole () to return an AccessibleRole.
3334 * cspi/spi-roletypes.h:
3335 Changed AccessibleRole_getName to return a char * instead of a
3336 const char *. This method is now at least temporarily deprecated
3337 in favor of asking Accessibles for their RoleNames directly.
3340 Revert to match Accessibility_Value.idl;
3344 Change signature of AccessibleValue methods to use double rather
3348 * cspi/spi_accessible.c:
3349 Changed Accessible_getRole to return an AccessibleRole enum rather
3350 than a UTF-8 string. The UTF-8 string can still be obtained via
3351 AccessibleRole_getName ().
3353 * test/test-simple.c:
3354 Add test_action. Small fixup to match API change to Accessible_getRole.
3357 Bugfix for get_action_from_servant ().
3359 2001-12-11 Michael Meeks <michael@ximian.com>
3361 * libspi/libspi.h: remove registry.h and
3362 desktop.h, deviceeventcontroller.h
3364 * libspi/Makefile.am: remove registry.[ch],
3365 desktop.[ch], deviceeventcontroller.[ch]
3367 * registryd/Makefile.am: add registry.[ch],
3368 desktop.[ch], rename registryd.c to registry-main.c.
3369 add deviceeventcontroller.[ch]
3371 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3374 Replace setenv() call with putenv ().
3376 * libspi/component.c:
3377 Bugfix in AccessibleComponent_getExtents (),
3380 2001-12-11 Michael Meeks <michael@ximian.com>
3382 * libspi/image.c (impl_getImageExtents): impl.
3383 (spi_image_class_init): upd.
3386 (AccessibleImage_getImageDescription): fix daft bug
3389 * test/test-simple.c (global_listener_cb): update
3390 to only quit if not --poke
3391 (main): catch --poke.
3392 (validate_accessible): upd. dumping, call test_image
3395 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3398 * idl/Accessibility.idl: update all IDL includes.
3400 * idl/*.idl - rename to namespace - this sucks, blame
3401 mjs' bad decision for oafd.
3403 * test/test-simple.c (create_test_window): add more tests.
3404 (create_tree): split this out.
3405 (validate_accessible): bugfix.
3407 2001-12-11 Michael Meeks <michael@ximian.com>
3409 * cspi/bonobo/cspi-bonobo-listener.c:
3410 (cspi_kestroke_listener_unref),
3411 (cspi_event_listener_unref): impl. undoing previous
3412 homenous environment - for Bill.
3414 * cspi/spi_table.c (long_seq_to_array): use
3417 * cspi/spi_main.c: split out all bonoboish bits into
3420 * cspi/spi-impl.h: upd. typedefs.
3422 * cspi/spi_registry.c: update to lowlevel API,
3423 return booleans to indicate success in some places.
3425 * cspi/spi_event.c: update to lowlevel API.
3427 * cspi/bonobo/Makefile.am: add.
3429 * cspi/bonobo/cspi-lowlevel.h: add
3431 * cspi/bonobo/cspi-bonobo.c: add
3433 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3435 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3436 (SUBDIRS): add bonobo, link in the libs.
3438 * cspi/spi-util.c: kill this file.
3440 * TODO: merge in my bits.
3442 2001-12-11 Michael Meeks <michael@ximian.com>
3444 * test/test-simple.c (test_value, test_table, main):
3445 remove unused variables causing warnings.
3447 * configure.in: cleanup checks - require gail.
3449 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3452 Changed Value interface to use SValue (scalars) rather than
3453 assuming all values are floats. This allows floats, doubles,
3454 longs, shorts, and unsigned values to be manipulated.
3455 Introduced Accessibility:SValue union.
3458 Updated to use new API above, and to work correctly with GValues
3459 of different types in AtkValue.
3462 Updated to use new API above. cspi's API is as yet unchanged.
3465 Updated the Value revision action item.
3467 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3469 * test/test-simple.c:
3470 Added test_table (GtkTreeView widget in test window to follow).
3471 Un-commented test_value, added GtkRange widget.
3472 Added GtkTreeView widget with GtkListStore. It passes regression
3473 test but leaks one SPI object for some reason.
3476 Fixed bug in impl__set_currentValue.
3478 2001-12-10 Michael Meeks <michael@ximian.com>
3480 * cspi/spi_text.c: audit for exception handling,
3481 tolerating NULL object references safely etc.
3483 * cspi/spi_value.c: ditto.
3485 * cspi/spi_table.c (AccessibleTable_getSummary),
3486 (AccessibleTable_getAccessibleAt),
3487 (AccessibleTable_getRowHeader),
3488 (AccessibleTable_getColumnHeader),
3489 (AccessibleTable_getCaption): fix bugs hidden by
3491 (long_seq_to_array): impl.
3492 (AccessibleTable_getSelectedRows),
3493 (AccessibleTable_getSelectedColumns): use it.
3495 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3498 Added a TODO list (rough and short for now).
3500 * cspi/spi_hyperlink.c:
3501 * cspi/spi_hypertext.c:
3502 Fixed macro name typos, and remove use of obsolete macro in
3503 AccessibleHyperlink_getLink.
3505 * cspi/spi_action.c:
3506 * cspi/spi_accessible.c:
3507 * cspi/spi_application.c:
3508 * cspi/spi_component.c:
3509 * cspi/spi_selection.c:
3512 Documentation fixes (removed return values from ref/unref methods).
3514 2001-12-10 Michael Meeks <michael@ximian.com>
3516 * cspi/spi_action.c: audit for exception handling,
3517 tolerating NULL object references safely etc.
3519 * cspi/spi_accessible.c: ditto.
3521 * cspi/spi_component.c: ditto.
3523 * cspi/spi_editabletext.c: ditto.
3525 * cspi/spi_hyperlink.c: ditto.
3527 * cspi/spi_hypertext.c: ditto.
3529 * cspi/spi_image.c: ditto.
3531 * cspi/spi_selection.c: ditto.
3533 2001-12-10 Michael Meeks <michael@ximian.com>
3535 * configure.in: use cspi/libspi.pc.in instead.
3537 * Makefile.am (pkgconfig_DATA): upd. to match.
3539 * test/simple-at.c (report_focus_event): kill hacks around
3540 bad return values, use putenv not setenv
3542 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3543 fire ChildGone - I killed it.
3545 * libspi/component.c
3546 (impl_accessibility_component_get_extents): remove
3549 * idl/Accessible.idl: kill ChildGone exception.
3551 * cspi/*.[ch]: kill int return from ref / unref.
3553 * cspi/spi_main.c (cspi_object_add_check): fold into
3554 (cspi_object_add): here.
3556 * cspi/spi_component.c (AccessibleComponent_getExtents):
3557 handle exceptions elegantly.
3559 * cspi/spi-private.h (cspi_check_ev_return),
3560 (cspi_return_if_fail): impl.
3562 * cspi/spi_accessible.c: use extensively.
3563 (AccessibleStateSet_equals): add direct compare check.
3565 * cspi/spi_selection.c: tolerate NULL objs, and check
3566 exceptions before return.
3568 * cspi/spi-util.c (cspi_warn_ev): rename to
3569 (cspi_check_ev): this & don't pass ev in; no point.
3571 2001-12-10 Michael Meeks <michael@ximian.com>
3573 * test/test-simple.c: use putenv not setenv
3574 (get_environment_vars): more chatty if you're not using
3577 * test/simple-at.c: do the setenv so more people see the
3580 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3582 * libspi/registry.c:
3583 Changed check of CORBA_environment on notification to be a warning
3584 instead of an error for the moment, since we can recover from this
3585 error when caused by a queued notification from a dead app.
3588 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3589 used by all current implementors of AtkValue), and coerce to
3590 CORBA_float. (Proper general case fix may require change to Value.idl).
3592 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3596 * cspi/spi_accessible.c:
3597 Documentation fixes: added user_data params to documentation for
3598 listeners and callbacks.
3600 * cspi/spi_accessible.c:
3601 Changed AccessibleStateSet_compare to return a
3602 StateSet rather than return the difference set into a third parameter.
3605 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3608 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3609 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3613 Remove subdirectory po from SUBDIRS for now.
3615 * at-bridge/bridge.c:
3616 Beefed up a couple of debug printouts.
3617 One-line fix for signal notification name formatting.
3619 * libspi/accessible.c:
3620 Added assertion to spi_accessible_new ().
3622 * libspi/application.c:
3623 Put #ifdef qualifiers around a printf.
3626 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3628 * registryd/Makefile.am:
3630 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3631 INTLTOOL_SERVER_RULE macro.
3634 Added an event listener for several ATK signals, for
3635 testing and debugging. Removed a few g_warnings.
3636 Added test output if focussed item implements the Value interface.
3638 * test/test-simple.c:
3639 Added test_value () function (known not to pass at the moment, so
3640 not actually called yet.
3642 2001-12-08 Michael Meeks <michael@ximian.com>
3644 * at-bridge/bridge.c (bridge_focus_tracker),
3645 (emit_eventv): fix the same ref. leak.
3646 (register_atk_event_listeners): don't leak.
3648 * cspi/spi-listener-impl.c (cspi_event): more
3649 protection from client code.
3651 * test/test-simple.c (test_desktop): unref the app.
3653 * test/Makefile.am: upd. TESTS.
3655 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3657 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3659 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3661 * cspi/spi_registry.c: constify in strings.
3662 (deregisterGlobalEventListenerAll): don't release the ref.
3664 * cspi/spi.h: start removing redundant / conflicting
3665 gtkdoc comments, making the API readable at a glance :-)
3667 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3669 * test/keysynth-demo.c (keysynth_exit, main): upd.
3671 * test/simple-at.c (main, simple_at_exit): upd.
3673 * test/test-simple.c (unutterable_horror): kill.
3674 (utterable_normal_derefs): kill.
3675 (main): upd & do a setenv before gtk_init, so that we
3676 can use memprof - and to save the pain of remembering
3677 this, if we're running under memprof - don't exit.
3679 * cspi/spi_main.c (SPI_exit): return exit status
3681 (SPI_event_quit): impl.
3682 (SPI_event_main): simplify.
3683 (cspi_is_gnome_app): kill.
3684 (SPI_init): kill isGNOMEapp arg.
3686 * at-bridge/bridge.c (register_atk_event_listeners):
3687 re-instate the unref.
3688 (bridge_exit_func): don't re-activate the registry,
3689 protect vs. theoretical re-entry, use the
3690 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3691 assert a clean shutdown - for regression tests.
3693 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3695 * configure.in: Comment out dummy i18n support for now,
3696 otherwise it fails to build.
3697 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3698 EXTRA_DIST. They are missing in tarball.
3700 2001-12-07 Michael Meeks <michael@ximian.com>
3702 * util/magnifier.c: kill bonobo activation reg. race.
3704 * libspi/component.c
3705 (impl_accessibility_component_get_extents): make it match
3708 * libspi/registry.c (_registry_notify_listeners):
3709 re-remove X headers & reconcile conflicts.
3710 (spi_listener_struct_free): bad conflict resolve.
3711 (impl_accessibility_registry_register_application):
3712 more bad merging fixed.
3713 (impl_accessibility_registry_deregister_application): ditto.
3714 (spi_registry_new): ditto.
3715 (spi_registry_init): don't have an applications field.
3717 [ merge fixups2 branch to here ]
3718 2001-12-07 Michael Meeks <michael@ximian.com>
3720 * test/simple-at.c (report_focus_event),
3721 (report_focussed_accessible): remove g_warning debug.
3723 2001-12-07 Michael Meeks <michael@ximian.com>
3725 * test/test-simple.c (validate_tree): comment out some checks.
3726 (test_desktop): app now not registered idly - horay.
3728 2001-12-07 Michael Meeks <michael@ximian.com>
3730 * cspi/spi_registry.c
3731 (registerAccessibleKeystrokeListener): clean, stop it leaking
3732 great swathes of memory, and device event controller references.
3733 ensure we always pass valid sequences.
3734 (deregisterAccessibleKeystrokeListener): ditto.
3735 (generateKeyEvent): upd.
3737 * at-bridge/bridge.c (bridge_key_listener): handle
3738 registry dead exception gracefully.
3739 (bridge_focus_tracker, emit_eventv): free ev.
3741 * test/simple-at.c (report_focus_event): fix polarity.
3743 * libspi/application.c (notify_listeners): kill the ev
3744 argument, and make sure we init the ev we use.
3745 (spi_application_object_event_listener): split out a chunk
3746 (get_atk_object_ref): here & fixup.
3747 (reverse_lookup_name_for_toolkit_event): make const.
3748 (spi_application_toolkit_event_listener): fixup, kill leaks
3751 * at-bridge/bridge.c (register_atk_event_listeners):
3752 don't unref the noop object - causes grief.
3754 * libspi/registry.c: remove the X headers.
3755 turn off the debug churn.
3757 * libspi/accessible.c (spi_accessible_new_return): only
3758 release the ref if we are supposed to [doh]
3760 * test/simple-at.c (report_button_press, report_focus_event):
3761 guard vs. unexpected exit.
3763 * at-bridge/bridge.c (gtk_module_init): prune printf.
3764 (bridge_exit_func): fix app unref.
3766 * libspi/Makefile.am: don't install registry or desktop.h
3768 * libspi/*.h: update includes.
3770 * libspi/application.h: don't include ourself, or
3771 other redundant headers.
3773 2001-12-06 Michael Meeks <michael@ximian.com>
3775 * libspi/accessible.c
3776 (get_accessible_from_servant): impl.
3777 Upd. all CORBA impl.s to use it killing cut and paste.
3779 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3781 (SPI_init): register atexit cleanup handler here.
3783 2001-12-06 Michael Meeks <michael@ximian.com>
3785 * at-bridge/bridge.c (gtk_module_init): g_error on
3786 activation exception
3788 2001-12-06 Michael Meeks <michael@ximian.com>
3790 * at-bridge/bridge.c (gtk_module_init): some sort of
3791 confusing merge clash - reverted.
3792 (bridge_idle_init): ditto.
3794 * test/test-simple.c (main, utterable_normal_derefs):
3795 merge from Bill - somehow not committed.
3797 2001-12-06 Michael Meeks <michael@ximian.com>
3799 * libspi/value.c (spi_value_class_init): upd.
3800 (spi_value_finalize): kill.
3802 * libspi/table.c (spi_table_finalize): kill.
3803 (spi_table_interface_new): upd.
3804 (spi_table_class_init): upd.
3805 (get_table_from_servant): impl.
3806 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3808 * libspi/selection.c (spi_selection_finalize): kill.
3809 (spi_selection_interface_new): upd.
3810 (spi_selection_class_init): upd.
3811 (get_selection_from_servant): impl.
3812 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3814 * libspi/relation.c (spi_relation_finalize): kill.
3815 (spi_relation_class_init, spi_relation_new): upd
3817 * libspi/image.c (spi_image_finalize): kill.
3818 (spi_image_class_init): upd.
3819 (spi_image_interface_new): upd.
3820 (get_image_from_servant): impl.
3821 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3823 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3824 (spi_hyperlink_finalize): kill.
3825 (spi_hyperlink_new): upd.
3826 (get_hyperlink_from_servant): impl.
3827 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3829 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3830 (spi_hypertext_finalize): kill.
3831 (spi_hypertext_class_init): upd.
3832 (get_hypertext_from_servant): impl.
3833 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3835 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3836 (spi_editable_text_interface_new): upd.
3837 (get_editable_text_from_servant): impl.
3838 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3840 * libspi/text.c (get_text_from_servant): impl.
3841 All impls - update to use it killing more cut and paste,
3842 also fix bad string returns on duff args ( a somewhat
3843 impossible case to handle - but hey ).
3844 (spi_text_construct): impl.
3845 (spi_text_interface_new): upd.
3846 (spi_text_object_finalize): kill.
3848 * libspi/component.c
3849 (accessibility_component_object_finalize): kill.
3850 (spi_component_class_init): upd.
3851 (get_component_from_servant): impl. helper to kill cut & paste.
3852 (impl_accessibility_component_contains):
3853 (impl_accessibility_component_get_accessible_at_point):
3854 (impl_accessibility_component_get_position):
3855 (impl_accessibility_component_get_extents):
3856 (impl_accessibility_component_get_mdi_z_order):
3857 (impl_accessibility_component_get_layer):
3858 (spi_component_interface_new): upd.
3860 * libspi/action.c (spi_action_finalize): kill.
3861 (spi_action_class_init): upd. inherit from SpiObject.
3862 (spi_action_interface_new): upd.
3863 (get_action_from_servant): impl. helper to reduce cut & paste.
3864 (impl_getKeyBinding, impl_getName, impl_doAction),
3865 (impl_getDescription): Use it everywhere.
3867 * cspi/spi_main.c (get_live_refs): a pointer hash.
3868 (spi_object_hash, spi_object_equal): comment out.
3869 There are issues with CORBA object hashing that need
3872 * libspi/application.c (spi_application_init),
3873 (spi_application_new): upd.
3875 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3876 (spi_accessible_class_init): upd.
3877 s/accessible/object/ in epv methods.
3879 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3881 * at-bridge/bridge.c:
3882 Reorder the bridge initialization into the bridge gtk_module_init,
3883 an immediate call to bridge_register_app, and an idle_add for
3884 register_atk_event_listeners (the only code that *must* wait until
3885 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3886 the activation, creates the application's Accessible object, and
3887 queues the bridge_idle_init function. Restored call to
3888 Accessibility_Registry_deregisterApplication().
3889 Prior to making this call we obtain a new reference to the
3890 registry, which is a temporary hack that helps us handle apps that
3891 shut down the bonobo mainloop before we get there.
3893 * libspi/registry.c:
3894 Fix string leakage in debug block, and don't segv if a an app
3895 dies before its event notifications have been propagated.
3898 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3899 as stopgap measure until we get proper exception handling when
3900 objects die during or before interrogation.
3904 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3905 Also changed default value of is_gnome_app to TRUE.
3908 * test/keysynth-demo.c:
3909 Changed use of SPI_init and SPI_event_main to reflect API change above.
3912 Made report_focus_event check the warning value from getName
3913 before reporting on focussed accessible; simplifies handling of
3914 notifications from dead objects.
3916 * test/test-simple.c: (Changes not in this patch since source is
3919 2001-12-05 Michael Meeks <michael@ximian.com>
3921 * registryd/registryd.c (main): protect against
3922 bonobo-activation startup race condition.
3924 * cspi/spi_main.c (cspi_object_add_check): cope
3925 with the exception elegantly.
3927 * idl/Accessible.idl: decl. ChildGone
3929 * libspi/desktop.c (spi_desktop_dispose): impl.
3930 (spi_desktop_class_init): upd.
3931 (spi_desktop_add_application),
3932 (spi_desktop_remove_application),
3933 (abnormal_application_termination): impl.
3934 (impl_desktop_get_child_at_index): re-impl.
3937 (impl_accessibility_registry_deregister_application),
3938 (impl_accessibility_registry_register_application):
3939 kill excessive debug clutter.
3941 * test/test-simple.c (test_misc): test some NULL
3942 tolerance. (main): upd.
3944 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3945 implements no interfaces - so let's not crash.
3947 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3949 * libspi/accessible.c (spi_accessible_new_return): impl.
3950 helper to calm the cut and paste, to cope with
3951 NULL AtkObjects effectively and efficiently, and to kill
3952 the referencing bugs.
3954 * libspi/table.c (impl_getAccessibleAt),
3955 (impl_getRowHeader, impl_getColumnHeader): upd.
3957 * libspi/hyperlink.c (impl_getObject): upd.
3959 * libspi/accessible.c
3960 (impl_accessibility_accessible_get_child_at_index): upd.
3962 * libspi/component.c
3963 (impl_accessibility_component_get_accessible_at_point): upd.
3965 * test/test-simple.c (test_editable_text, test_text): impl.
3968 * cspi/spi_editabletext.c
3969 (AccessibleEditableText_insertText): constify.
3971 * test/test-simple.c (focus_me): make more robust.
3973 * libspi/accessible.c: remove some printfs in methods that
3974 we test and work fine, so we can get a clean tree dump.
3976 * test/test-simple.c (validate_accessible),
3977 (validate_tree): make tree dumping pretty too.
3979 * at-bridge/bridge.c (bridge_signal_listener): upd. so
3980 it builds without debug on.
3982 * test/test-simple.c (validate_accessible): fix the most
3985 * cspi/spi_main.c (spi_object_release): leave the nicely
3986 blanked memory around if in debug mode.
3988 * cspi/spi-listener-impl.c (cspi_event): use add_check.
3990 [committed to fixups2]
3991 2001-12-05 Michael Meeks <michael@ximian.com>
3993 * libspi/editabletext.c
3994 (spi_editable_text_class_init): g_type_class_peek_parent,
3995 not interface peek - so we finalize cleanly.
3997 * libspi/accessible.c (spi_accessible_new): kill debug.
3999 * test/test-simple.c (validate_accessible): fix ref.
4000 leak, print strings before freeing them; sigh, comment a
4001 chunk out due to strangeness.
4002 (validate_tree): unref the child after use.
4004 * cspi/spi_component.c (AccessibleComponent_getLayer):
4005 add missing break statement, switch on zlayer not the
4006 uninitialized retval.
4008 * cspi/spi_main.c (cspi_object_add): add assert, local ref
4009 before (possibly re-entering) remote unref.
4011 * test/simple-at.c (main): unref the desktop.
4013 * cspi/spi_accessible.c (cspi_accessible_is_a): move
4016 * cspi/spi_main.c (cspi_accessible_is_a): here to
4017 isolate bonobo API usage more.
4019 * libspi/registry.c (impl_accessibility_registry_register_application):
4020 prune bogus comment.
4022 2001-12-04 Michael Meeks <michael@ximian.com>
4024 * test/test-simple.c (validate_tree): upd.
4025 IndexInParent check to make it more lucid.
4026 (validate_accessible): dump the tree.
4028 * libspi/accessible.c (de_register_public_ref),
4029 (get_public_refs): impl.
4030 (spi_accessible_new): make more efficient & intuitive.
4031 Now IndexInParent check works.
4033 2001-12-04 Michael Meeks <michael@ximian.com>
4035 * cspi/spi-util.h: remove.
4037 * cspi/spi.h: move SPI_freeString here
4039 * libspi/component.c (impl_accessibility_component_get_layer):
4041 (impl_accessibility_component_get_mdi_z_order): ditto,
4042 return -1 on error - is this ok ?
4044 * test/test-simple.c (test_application): impl.
4046 * cspi/spi_accessible.c (Accessible_getApplication),
4047 (Accessible_isApplication): impl.
4049 * libspi/registry.c (spi_listener_struct_free): release
4050 the CORBA reference too.
4052 * libspi/accessible.c
4053 (impl_accessibility_accessible_get_parent): fix ref leak.
4055 * libspi/registry.c (spi_registry_new): make the registry
4056 immortal - we don't want it to go away ever.
4058 * libspi/application.c
4059 (spi_accessible_application_finalize): impl. cleanup.
4061 * cspi/spi_registry.c
4062 (deregisterGlobalEventListenerAll),
4063 (deregisterGlobalEventListener),
4064 (deregisterAccessibleKeystrokeListener): fix ref leak.
4066 * cspi/spi_main.c (SPI_init): remove redundant ref.
4068 * test/test-simple.c (unutterable_horror): impl. to force a
4073 (impl_accessibility_registry_deregister_application): release
4074 the application when we de-register it.
4076 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4077 until we have the infastructure to get it right.
4079 2001-12-03 Michael Meeks <michael@ximian.com>
4081 * libspi/Makefile.am: only build eventlistener.[ch]
4083 * libspi/accessible.c
4084 (impl_accessibility_accessible_get_child_at_index): don't leak.
4086 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4087 before we hit the idle handler.
4089 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4090 debugging than exit.
4092 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4094 * libspi/listener.c (impl_notify_event): check source
4095 not NIL before unref.
4097 * libspi/registry.c (impl_registry_notify_event): ditto.
4099 * libspi/eventlistener.c
4100 (impl_accessible_event_notify_event): unref the source.
4102 * libspi/accessibleeventlistener.c
4103 (impl_accessible_event_notify_event): unref the source.
4105 * idl/Event.idl: remove 'hash_id' attribute - of no
4108 * libspi/application.c (notify_listeners): upd list
4110 (spi_application_object_event_listener),
4111 (spi_application_toolkit_event_listener): upd to do correct
4115 (_registry_notify_listeners): update.
4116 (parse_event_type): this method also leaks like a sieve.
4117 (impl_accessibility_registry_deregister_global_event_listener):
4118 fix ETYPE_WINDOW case.
4120 * libspi/application.c
4121 (impl_accessibility_application_register_object_event_listener):
4124 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4126 * libspi/hypertext.c (impl_getLink): ditto.
4128 * cspi/spi_main.c (cspi_object_add): remove
4129 bogus CORBA_Object_duplicate.
4131 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4134 * cspi/spi_accessible.c
4135 (Accessible_getRelationSet): fix leak / referencing issue.
4137 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4138 (cspi_object_add, cspi_object_unref): upd.
4139 (spi_object_release, get_live_refs): impl.
4140 (cspi_cleanup): simplify.
4142 * *.[ch]: s/boolean/SpiBoolean/
4144 * cspi/spi_accessible.c (role_names): actualy order so it
4145 corresponds with the enum !
4147 * test/test-simple.c (test_roles): check some role strings
4148 vs. enums to detect offset errors.
4150 2001-12-01 Michael Meeks <michael@ximian.com>
4152 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4154 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4156 (Accessible_getChildAtIndex): use cspi_add_check so we
4157 check the ev before using a (possibly) invalid value.
4159 * libspi/accessible.c
4160 (impl_accessibility_accessible_get_parent): don't segv
4163 * at-bridge/bridge.c (gtk_module_init): upd.
4164 (bridge_property_event_listener): don't leak strings
4166 (bridge_state_event_listener),
4167 (bridge_property_event_listener): don't use a static
4168 buffer in case of recursive event emission &
4169 re-enterancy - split out the swathe of cut and paste
4171 (emit_eventv): and fix 2 ref leaks here & comply to the
4173 (bridge_register_app): rename to
4174 (bridge_idle_init): this and kill arg parsing, split
4175 various inits & bonobo-activation registration to module
4176 init time, kill referencing error.
4177 (bridge_exit_func): fix the same leak.
4178 (bridge_focus_tracker): don't leak event structures
4180 (bridge_signal_listener): more leakage and cut & paste
4182 (bridge_key_listener): return the result - FIXME is
4183 this polarity correct ?
4184 (accessibility_keystroke_from_atk_key_event): rename
4185 (accessibility_init_keystroke_from_atk_key_event): and stop
4187 (gtk_module_init): return a value - not that it is checked by
4189 (bridge_key_listener): register my horror at casting between
4190 IDL defined structs.
4191 (bridge_get_registry): kill - not used.
4193 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4195 * test/test-simple.c (test_roles): impl.
4196 (test_desktop, validate_accessible, validate_tree): impl.
4198 * cspi/spi_accessible.c (role_names): fixup bogus
4199 MAX_ROLES setup, make constants const for efficient linkage
4200 (AccessibleRole_getName): conform to coding style, make
4203 2001-11-30 Michael Meeks <michael@ximian.com>
4205 * cspi/spi.h: add missing prototype.
4207 * libspi/registry.c (spi_listener_struct_new): fix sig.
4209 * test/Makefile.am: add test-simple
4211 * test/test-simple.c: add
4213 * test/test.sh: add.
4215 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4217 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4218 do it straight - since otherwise we often get an activation race.
4220 [ work before Bill duplicated a chunk of it ... ]
4221 2001-11-30 Michael Meeks <michael@ximian.com>
4223 * libspi/keystrokelistener.c
4224 (spi_keystroke_listener_class_init): fixup arg
4227 * libspi/eventlistener.c
4228 (spi_event_listener_class_init): ditto.
4230 * tests/test.sh: add.
4232 * cspi/spi-listener-impl.h: update macros.
4234 * cspi/spi-listener-impl.c
4235 (cspi_event_listener_remove_callback): add
4236 correct pre-conditions.
4238 * cspi/spi_main.c (SPI_exit): guard vs. double
4239 exits, exit the mainloop nicely.
4240 (SPI_event_main): make more sense.
4241 (SPI_init): move the atexit evilness here so we
4242 always do it (yuck).
4243 (SPI_event_main): upd.
4245 * test/simple-at.c: update for listener changes.
4247 * registryd/registryd.c (main): prune kruft.
4249 * libspi/libspi.h: upd.
4251 * libspi/eventlistener.[ch]: rename broken macros.
4253 * libspi/accessibleeventlistener.[ch]: remove.
4255 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4257 * test/test-simple.c: Add - automated tests.
4259 * cspi/spi-listener-impl.c (cspi_event),
4260 (cspi_key_event): add user_data to invoke.
4261 (cspi_keystroke_listener_finalize): impl.
4262 (cspi_keystroke_listener_class_init): upd.
4265 (createAccessibleEventListener),
4266 (AccessibleEventListener_addCallback),
4267 (createAccessibleKeystrokeListener),
4268 (AccessibleKeystrokeListener_addCallback): upd.
4270 * libspi/deviceeventcontroller.c
4271 (spi_device_event_controller_check_key_event): add public proto.
4274 (impl_accessibility_registry_deregister_global_event_listener):
4275 always init listeners.
4276 (_registry_notify_listeners): yes it is.
4278 * cspi/spi-listener-impl.c (cspi_key_event):
4280 (cspi_event_listener_finalize): impl.
4281 (cspi_event_listener_class_init): hook up.
4282 (event_handler_new, event_handler_free),
4283 (event_list_remove_by_callback): impl.
4284 (cspi_event_listener_remove_callback),
4285 (cspi_keystroke_listener_remove_callback),
4286 (cspi_keystroke_listener_add_callback),
4287 (cspi_event_listener_add_callback): upd.
4289 * libspi/keystrokelistener.c
4290 (keystroke_listener_object_finalize): kill
4291 (spi_keystroke_listener_class_init): upd.
4292 (spi_keystroke_listener_add_callback),
4293 (spi_keystroke_listener_remove_callback): kill,
4295 (impl_key_event): prune drasticaly.
4297 * libspi/eventlistener.c
4298 (spi_event_listener_add_callback),
4299 (spi_event_listener_remove_callback): kill, use
4301 (impl_accessible_event_notify_event): upd.
4302 (spi_event_listener_object_finalize): remove.
4304 * libspi/Makefile.am: use eventlistener.[ch]
4306 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4308 * libspi/registry.c (_registry_notify_listeners):
4309 Changed listener loop iteration to use preferred convention.
4310 Got rid of string memory leaks caused be calling g_strconcat
4311 inside function calls.
4313 * libspi/registry.c (parse_event_type):
4314 Stopped g_strconcat memory leaks, free the g_strsplit return,
4315 g_strdup the split pieces when used, etc.
4317 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4320 Change method 'compare' to return a 'difference set' rather than
4321 taking a StateSet as an out parameter (more Java-friendly).
4323 * idl/Accessible.idl:
4324 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4326 * idl/Component.idl:
4328 Changed methods 'getExtents' and 'getImageExtents' in these
4329 interfaces to return a BoundingBox structure.
4330 (getPosition and getSize are redundant and possibly should be
4331 removed, rather than creating a corresponding Point struct.)
4333 * cspi/spi_component.c:
4334 Modify implementation of getExtents to reflect the above IDL
4339 Add (missing) AccessibleImage_getExtents () API.
4341 * docs/reference/cspi/at-spi-cspi-sections.txt:
4342 Added AccessibleImage_getImageExtents () to docs.
4344 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4346 * idl/Component.idl:
4347 Added two methods, getLayer () and getMDIZOrder (), to reflect
4348 the new ATK methods atk_object_get_layer and
4349 atk_object_get_mdi_z_order. (Which arguably should be part of the
4350 AtkComponent API and AtkObject). Also added an enum,
4351 ComponentLayer, for the first method's return value.
4353 * libspi/component.c:
4354 Added implementations for these methods.
4356 * cspi/spi_component.c:
4358 Added cspi binding methods for above,
4359 AccessibleComponent_getLayer() and
4360 AccessibleComponent_getMDIZOrder().
4361 Added cspi enum 'AccessibleComponentLayer'.
4363 * docs/reference/cspi/at-spi-cspi-sections.txt:
4364 Added above methods to docs.
4368 Changed typedef for 'boolean' type (and all references to it) to
4369 SPIBoolean, to avoid keyword clashes with C++.
4372 Changed usages of 'boolean' to SPIBoolean.
4374 * test/keysynth-demo.c:
4375 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4376 app), except where SPIBoolean is required by the callbacks API.
4378 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4380 * cspi/spi_registry.c:
4381 Removed obsolete X event loop for passive keygrabs (which now
4384 * registryd/registryd.c:
4385 Removed unnecessary call to gdk_init() [cruft]. This also allows
4386 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4389 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4391 * docs/reference/cspi:
4392 Included docs for SPI_freeString in generated documentation.
4395 Renamed spi_freeString to SPI_freeString, for consistency. Added
4396 documentation for this function.
4399 Renamed spi_freeString to SPI_freeString, for consistency.
4400 Removed obsolete method declaration string_from_corba_string.
4402 * test/keysynth-demo.c:
4403 Small tweak to comments.
4406 Stopped leaking the strings returned from CSPI.
4408 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4410 Merged Michael's branch (see his ChangeLog entries below).
4412 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4413 bridge is alive, release on exit.
4415 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4416 Fix type check macro.
4419 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4422 Added is_gnome_app static, and method cspi_is_gnome_app(),
4423 so we can call the appropriate shutdown routine at exit in SPI_exit.
4425 * cspi/spi_main.c (cspi_object_ref):
4426 Duplicate the corba object passed in, since we're keeping it around.
4428 * cspi/SPI_exit.c, cspi_cleanup:
4429 Moved the releasing of the live refs to its own function, so we
4430 can put it in g_atexit (). Call the appropriate shutdown API
4431 depending on whethe calling client is a gnome app or not
4432 (bonobo_main_quit or CORBA_ORB_shutdown).
4434 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4435 Unref the listener when this method is called, after
4436 deregistration. Updated the API docs to note this behavior.
4438 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4439 Bugfixes: Ref the bonobo object when returning a parent or child
4440 reference, or an AccessibleRelation. Generally made sure
4441 BonoboObject refcount is incremented whenever we return an
4444 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4445 Fixed typo/bug in signal declaration.
4447 * libspi/accessibleeventlistener.h:
4450 * libspi/application.c (spi_application_new):
4451 Fixed leak in initialization.
4454 Remembered to increment bonobo-object refcount when returning
4455 children (applications) from desktop object.
4456 Added (empty) finalize method.
4458 * libspi/deviceeventcontroller.c:
4459 Hold a ref to listeners inside DEControllerKeyListeners.
4460 Added dec_key_listener_free() method. Use prepend instead of
4461 append in key_listener list. Fixed some refcount madness and
4462 leaks in the listener registration/deregistration - deregistration
4463 now calls dec_key_listener_free() on listeners, and on the
4464 temporarily constructed dec_key_listener() used to perform the search/match.
4466 * libspi/hypertext.c (spi_hypertest_finalize):
4467 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4468 class. Also fixed spi_hypertext_interface_new() and
4469 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4471 * libspi/hypertext.h:
4472 Removed pointless and duplicate AtkObject pointer from
4475 * libspi/keystrokelistener.c:
4476 Fixed incorrect type of keystroke_listener_parent_class,
4477 renamed keystroke_listener_object_finalize to
4478 spi_keystroke_listener_object_finalize.
4479 Fixed typo in signal declaration
4480 (spi_keystroke_listener_class_init).
4482 * libspi/registry.c:
4483 Added funcsions spi_listener_struct_new() and
4484 spi_listener_struct_free() to help with memory management issues.
4485 We also now use these methods instead of gnew + poking stuff into
4486 the struct, and to decrement listener counts/free the listeners
4487 when deregistering them.
4488 Fix more refcount bugs in getDesktop() and
4489 getDeviceEventController().
4492 De-ref the desktop after enumerating the applications. Explicitly
4493 decrement the refcounts on the created listeners on exit (using
4494 _unref for keystroke listeners, and via the
4495 deregisterGlobalEventListenerAll command for other event
4498 2001-11-27 Michael Meeks <michael@ximian.com>
4500 * cspi/spi-listener.h: fixup enum.
4502 2001-11-27 Michael Meeks <michael@ximian.com>
4504 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4505 (cspi_keystroke_listener_new): Use the cspi variants.
4507 2001-11-26 Michael Meeks <michael@ximian.com>
4509 * test/keysynth-demo.c: fix 2 compile warnings, missing
4512 * test/simple-at.c (report_focussed_accessible),
4513 (report_focus_event, report_button_press),
4514 (check_property_change, is_command_key),
4515 (report_ordinary_key_event, report_command_key_event): upd.
4517 * util/mag_client.h: include pre-requisites.
4519 * libspi/accessibleeventlistener.c
4520 (spi_event_listener_object_finalize): free any lingering
4523 * libspi/keystrokelistener.c
4524 (keystroke_listener_object_finalize): ditto.
4526 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4527 callbacks, with cspi types.
4529 * cspi/spi_event.c (createAccessibleEventListener): chain to
4530 (AccessibleEventListener_addCallback): here.
4531 (createAccessibleKeystrokeListener): chain to
4532 (AccessibleKeystrokeListener_addCallback): here.
4534 * libspi/keystrokelistener.c
4535 (spi_keystroke_listener_class_init): add signal.
4536 (impl_key_event): emit the event.
4537 (boolean_handled_accumulator): impl.
4538 (marshal_BOOLEAN__POINTER): add, gack.
4540 * libspi/accessibleeventlistener.c
4541 (spi_event_listener_class_init): add signal.
4542 (impl_accessible_event_notify_event): emit the signal &
4543 make the loop efficient.
4544 (spi_event_listener_add_callback): prepend the callback.
4546 * libspi/accessibleeventlistener.h: add an 'event' signal,
4547 decl type on callback.
4549 * libspi/keystrokelistener.h: ditto.
4551 * cspi/spi-listener.h: make methods typesafe and
4552 make them use the new event typedefs.
4554 * test/simple-at.c (report_focussed_accessible):
4555 include mag_client.h
4556 Use *(void *)text_interface not the other thing.
4558 * configure.in: add gtk to registryd bits - since we use
4561 * util/magnifier.c: include libbonobo.h
4563 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4565 * test/keysynth-demo.c:
4566 Turned this into a simple scanning keyboard, to demonstrate the
4567 use of g_timeout_add () as a means of creating timers for
4568 scanning, and the use of GtkStyle for visually indicating when
4569 virtual keyboard elements are selected.
4571 keysynth-demo now listens to any keyboard keys with zero-valued
4572 keycodes (i.e. 'unused' keys) and interprets them as
4575 Reworked the shiftlatch code so that shift-down state isn't held
4576 for long periods (it's only synthesized immediately prior to
4577 the keysynth event it's modifying). Note that shiftlatch in this
4578 demo is a convenience, not intended to take the place of AccessX
4579 which is the better choice for getting 'sticky' modifier keys.
4581 * libspi/deviceeventcontroller.c:
4582 * at-bridge/bridge.c:
4583 * cspi/spi_registry.c:
4584 Removed some debug print stuff, and put other verbosity in #ifdef
4589 Implemented some more of the magnifier IDL for the simple
4590 magnifier: namely, getZoomRegionParams.
4591 Added mag_x and mag_y members to MagnifierData struct, aid of this
4593 Added GtkWindow::realize signal handler to magnifier, to keep it
4594 from receiving keyboard focus from the WM.
4596 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4598 * cspi/spi-private.h: my guess at what michael forgot
4599 before he ran off to NZ :-)
4601 2001-11-23 Michael Meeks <michael@ximian.com>
4603 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4604 comment out non existant method invoke so we link.
4606 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4607 use bonobo_exception_get_text for more friendly warnings.
4609 * cspi/spi.c (Obj_Add): move into spi_main & rename
4610 spi_object_add; kill spi.c
4612 * cspi/spi_registry.c
4613 (deregisterGlobalEventListener),
4614 (deregisterGlobalEventListenerAll),
4615 (registerGlobalEventListener): fix exception leaks.
4617 * cspi/spi_main.c (spi_exception): impl. helper, so we
4618 don't leak exceptions.
4620 * cspi/spi_selection.c
4621 (AccessibleSelection_deselectSelectedChild): return the
4624 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4625 (spi_registry): ditto.
4626 (SPI_init): guard against double inits.
4628 * cspi/*.c: use spi_ev (), and spi_registry () where
4629 appropriate - a temporary hack until we have something
4630 better. Use spi_object_add
4632 2001-11-22 Michael Meeks <michael@ximian.com>
4634 * cspi/Makefile.am: re organise, install the headers.
4636 * cspi/*.h: add G_BEGIN/END_DECLS
4638 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4641 Added non-preemptive keylistener for key events with no modifiers
4642 and shift-only modifier.
4644 * libspi/keystrokelistener.c:
4645 Removed some verbose diagnostics printout.
4647 * cspi/spi_registry.c:
4648 Fixed a bug that caused all key listeners to be registered as
4651 * libspi/deviceeventcontroller.c:
4652 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4653 for non-preemptive key masks.
4656 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4658 * docs/reference/idl/at-spi-idl-docs.sgml:
4659 * docs/reference/idl/at-spi-idl-sections.txt:
4660 * docs/reference/idl/at-spi-idl-overrides.txt:
4661 Added missing files.
4663 * docs/reference/Makefile.am:
4664 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4665 to scan the IDL files :-(
4670 Added .cvsignore files.
4672 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4674 * libspi/deviceeventcontroller.c:
4675 * libspi/keystrokelistener.c:
4677 * cspi/spi_registry.c:
4678 Added filters for KeySets, KeyEventSeq, and event types to key
4679 event dispatching, so listeners should only receive those events
4680 that they requested :-)
4682 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4687 * docs/reference:Makefile.am:
4688 * docs/reference/cspi:
4689 * docs/reference/cspi:Makefile.am:
4690 * docs/reference/cspi:tmpl:
4691 * docs/reference/cspi:tmpl:*.sgml:
4692 * docs/reference/idl:
4693 * docs/reference/idl:Makefile.am:
4694 * docs/reference/idl:at-spi-idl-sections.txt:
4695 * docs/reference/idl:at-spi-idl-docs.sgml:
4696 * docs/reference/idl:tmpl:
4697 * docs/reference/idl:tmpl:*.sgml:
4699 Restructured docs directory to allow separate 'reference' docs
4700 section, and forked idl and cspi docs. Added the sgml template
4701 files to CVS. Added the first sections/structural sgml for the
4704 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4706 * configure.in, libspi/Makefile.am: find libXtst.
4708 2001-11-21 Michael Meeks <michael@ximian.com>
4710 * test/accessx-gui.c: s/spi_value/value/ - doh.
4712 * libspi/base.[ch]: add.
4714 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4716 * idl/Accessible.idl:
4717 * idl/Application.idl:
4720 Started gtk-doc cleanup on IDL.
4722 * libspi/deviceeventcontroller.c:
4723 Added and connected non-preemptive key notification from the
4724 toolkits (in addition to the pre-emptive support from XServer
4725 which we had before, but which causes 'focus flashing'). Filters
4726 are presently limited to key modifiers and global/non-global,
4727 KeySets are presently ignored, as are KeyEvent masks.
4729 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4730 structs into the persistant structure rather than just storing
4731 pointers to things that might not persist across servant
4734 The XGrabKey call now does async keygrabs, because synchronous
4735 ones were deadlocking with GDK_event code in a very nasty way.
4737 Added boolean to internal method notify_keylisteners, to indicate
4738 whether the event came from the 'toolkit source' or the 'global
4739 (XServer) source' - this is used in the notification process to
4740 determine which listeners to send the event to.
4742 deviceeventcontroller.c is now warning-free.
4744 * libspi/registry.c:
4745 Fixed regression in application de-registration.
4746 Also fixed some really brain-dead weirdness having to do with
4747 event dispatching - event structs are now duplicated before being
4748 re-marshalled in the dispatch to listeners. This also fixes a
4749 Solaris build problem.
4752 2001-11-20 Michael Meeks <michael@ximian.com>
4755 (impl_accessibility_registry_deregister_global_event_listener):
4758 * libspi/deviceeventcontroller.c
4759 (spi_device_event_controller_check_key_event): return
4760 FALSE on no virtual method.
4762 * libspi/*..h: make includes work on a correctly pathed install.
4764 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4766 * libspi/application.h: kill unused ( and whacked out )
4767 gboolean *spi_application_set_id (AtkObject *app, long id);
4769 2001-11-20 Michael Meeks <michael@ximian.com>
4771 * libspi/*.[ch]: further convert to bonobo's type func
4772 macros, remove redundnant casts etc.
4774 * libspi/text.c s/accessibility_text/spi_text/g,
4775 re-order to de-cruft.
4777 * libspi/hypertext.c: re-order to kill a huge slew
4778 of redundant forward decls.
4780 * libspi/relation.c: ditto.
4782 * libspi/image.c: ditto.
4784 * */.cvsignore: update
4786 2001-11-20 Michael Meeks <michael@ximian.com>
4788 * libspi/deviceeventcontroller.c
4789 (_controller_register_with_devices): use g_getenv,
4790 kill stdlib.h include.
4792 * libspi/keystrokelistener.c
4793 (spi_keystroke_listener_get_type): kill
4794 (spi_keystroke_listener_class_init),
4795 (spi_keystroke_listener_init): rename to this.
4797 * libspi/text.c (impl_getAttributes): fix warning / bug.
4799 * libspi/*.[ch]: more headers, includes and over commenting.
4801 2001-11-20 Michael Meeks <michael@ximian.com>
4803 * libspi/*.[ch]: fixup headers, includes and over commenting.
4805 * libspi/image.c (impl__get_imageDescription): const
4806 correctness warning fix. remove redundant casting.
4808 * libspi/table.c (impl_getRowDescription): ditto.
4809 (impl_getColumnDescription): ditto.
4811 * libspi/libspi.h: add.
4813 2001-11-19 Michael Meeks <michael@ximian.com>
4815 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4817 * libspi/component.c (accessibility_component_get_type):
4818 rename to (spi_component_get_type): and macroify.
4819 (accessibility_component_init): rename to
4820 (spi_component_init): this
4821 (accessibility_component_class_init): rename to
4822 (spi_component_class_init): this
4824 * libspi/action.c (spi_action_get_type): kill, use the macro.
4826 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4829 * libspi/application.c (spi_application_object_event_listener),
4830 (impl_accessibility_application_register_object_event_listener):
4831 warning fixes / const understanding updates.
4833 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4836 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4838 * libspi/spi_accessible.c: Added docs and C bindings for
4839 AccessibleStateSet. (No implementations yet). Documentation
4840 coverage for C bindings now 100%. Made docs for event listeners
4845 boolean notifyListenersSync (in DeviceEventListener listener,
4846 in DeviceEvent event);
4848 oneway void notifyListenersAsync (in DeviceEventListener listener,
4849 in DeviceEvent event);
4851 Added DeviceEventListener and DeviceEvent structs (may deprecate
4852 KeyStroke and KeystrokeListener in favor of this generic
4853 event/listener framework for devices).
4855 * libspi/deviceeventcontroller.c:
4857 Changed some key listener code to take masks, etc., and paved the
4858 way for integration of toolkit/non-preemptive key events. Changed
4859 signatures of some internal methods.
4861 * at-bridge/bridge.c:
4862 Fixed regression connecting to interface signals, apparently
4863 caused by GTK+ changes.
4865 Added an internal bridge_state_listener to deal with
4866 property-change:accessible-state signals.
4868 Changed the key_listeners GList to store structs (including masks,
4869 etc.) instead of just CORBA_Objects (required for full
4870 implementation of key listener API).
4872 Connected the bridge to all currently supported Atk signals.
4873 Events now supported:
4874 object:property-change
4875 object:property-change:accessible-name
4876 object:property-change:accessible-state
4877 object:property-change:accessible-description
4878 object:property-change:accessible-parent
4879 object:property-change:accessible-value
4880 object:property-change:accessible-role
4881 object:property-change:accessible-table-caption
4882 object:property-change:accessible-table-column-description
4883 object:property-change:accessible-table-column-header
4884 object:property-change:accessible-table-row-description
4885 object:property-change:accessible-table-row-header
4886 object:property-change:accessible-table-summary
4887 object:children-changed
4888 object:visible-data-changed
4889 object:selection-changed
4890 object:text-selection-changed
4892 object:text-caret-moved
4894 object:row-reordered
4896 object:column-inserted
4897 object:column-reordered
4898 object:column-deleted
4899 object:model-changed
4901 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4903 * libspi/hyperlink.c,h:
4904 Fixed some broken stuff in hyperlink.
4906 * libspi/relation.h:
4907 * libspi/relation.c:
4908 * cspi/spi_accessible.c:
4909 Initial implementations of AccessibleRelation methods, and docs.
4911 * libspi/accessible.c:
4912 Fixed a bug that caused SEGV if an accessible
4913 object's description is NULL, and a client
4914 requests it. An empty string is now returned.
4916 * cspi/spi_editabletext.c:
4917 * cspi/spi_hypertext.c:
4919 * cspi/spi_hyperlink.c:
4923 Doc coverage now 95%.
4925 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4927 One last namespacing revision:
4928 * libspi/accessibleeventlistener.[ch]:
4929 Renamed SpiAccessibleEventListener to SpiEventListener,
4930 (no need for two namespaces ;-)
4932 And lots of documentation fixes:
4934 * docs/at-spi-docs.sgml:
4935 Fixed 'underscore vs. hyphen' bug that was preventing
4936 the gtk-doc API docs from being automatically generated.
4939 * cspi/spi-listener.h
4941 * cspi/spi_accessible.c
4943 * cspi/spi_application.c
4944 * cspi/spi_component.c
4945 * cspi/spi_editabletext.c
4947 * cspi/spi_hypertext.c
4949 * cspi/spi_registry.c
4950 * cspi/spi_selection.c
4954 * docs/at-spi-docs.sgml
4955 * docs/at-spi-sections.txt
4957 Added and fixed up gtk-doc documentation in cspi.
4959 Interfaces now (fully) documented (subject to revision and enhancement):
4961 Event Listener Support
4963 AccessibleApplication
4967 AccessibleEditableText
4974 AccessibleRelationSet
4979 2001-11-14 Bill Haneman <bill.haneman@sun.com>
4981 * at-bridge/bridge.c:
4982 Initial work for toolkit-level key snooper connection by bridge.
4987 New typedefs and fixes to support new namespacing, and cleaner
4988 separation of cspi bindings from libspi bonobo implementation.
4989 Removed inconsistent and extraneous Spi* namespace prefix that
4990 had crept into cspi headers.
4991 Lots of comment fixes that sed had missed.
4993 * cspi/spi-roletypes.h:
4994 * cspi/spi-statetypes.h:
4995 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
4996 to AccessibleRoleType.
4998 * libspi/accessibleeventlistener.h:
4999 Fixed minor namespacing weirdness.
5001 * libspi/deviceeventcontroller.c:
5002 Reordered some internal API for device listeners.
5003 Changed the key registry final boolean to 'is_system_global'
5004 rather than 'is_synchronous', which is more descriptive of its
5006 Added spi_device_event_controller_new().
5007 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
5009 * libspi/keystrokelistener.[ch]:
5010 Namespaced KeystrokeListener to SpiKeystrokeListener.
5011 Changed uses of keymasks to use SPI_ prefix, and did other
5014 * libspi/keymasks.h:
5015 Namespaced keymask constants with SPI_ prefix.
5017 * libspi/registry.c:
5018 Some warning fixes, and knock-on fixes from namespace changes.
5021 Added rules for accessx-gui test program.
5023 * test/accessx-gui.c:
5024 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5025 utility. It doesn't actually use at-spi, but it's still cool and
5028 * test/keysynth-demo.c:
5032 Fixes so that these test clients work properly with the namespaced
5033 libraries. (Incompletely tested for technical reasons, fixes may follow)
5036 2001-11-13 Michael Meeks <michael@ximian.com>
5038 * libspi/application.c
5039 (impl_accessibility_application_get_version),
5040 (impl_accessibility_application_get_toolkit_name):
5042 (impl_accessibility_application_set_id),
5043 (impl_accessibility_application_get_id): remove
5044 redundant casting code.
5046 * libspi/action.c (impl_getDescription): fix warnings.
5048 * libspi/accessible.c
5049 (impl_accessibility_accessible_get_parent),
5050 (impl_accessibility_accessible_get_child_at_index),
5051 (impl_accessibility_accessible_get_state),
5052 (impl_accessibility_accessible_get_relation_set):
5053 warning fixes & include action.h
5055 2001-11-13 Michael Meeks <michael@ximian.com>
5057 * *.[ch] fix bits I screwed up:
5059 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5060 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5062 2001-11-13 Michael Meeks <michael@ximian.com>
5064 * *.[ch] Namespace libspi into spi_ and Spi.
5066 2001-13-11 Michael Meeks <michael@ximian.com>
5068 * Makefile.am: dist & install at-spi-1.0.pc
5070 * libspi/Makefile.am: install into at-spi-1.0
5072 * idl/Makefile.am (idldir): install into at-spi-1.0
5074 * at-spi-1.0.pc.in: add.
5076 * configure.in: build it.
5078 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5080 * test/keysynth-demo.c:
5081 Use a 'realize' signal-handler to set the WM properties for
5082 the virtual keyboard, rather than making it a "POPUP" type
5083 override-redirect window (thanks to anders carlsson for that
5086 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5089 * test/keysynth-demo.c:
5090 Added new test of key synthesis, which creates a simple
5091 (mouse-operated) onscreen keyboard. It inserts key events into
5092 the currently-focused window, thus it does not grab keyboard focus
5095 * cspi/spi_registry.c:
5096 Added C binding for AT-SPI generateKeyEvent.
5098 * libspi/deviceeventcontroller.c:
5099 Added call to XFilterEvent so that key listener works with XIM (we
5100 hope). Added event_synth_type to generateKeyEvent, so that we can
5101 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5102 synthesize a press/release pair for KeySyms.
5104 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5106 * libspi/Makefile.am:
5107 * registryd/Makefile.am:
5108 (temporary) hack to include libXtst in libspi and registryd.
5109 (Needed for keystroke synthesis, see below).
5112 Improved API for registerKeystrokeListener, in accordance with
5113 discussions with Gnopernicus team and X server research.
5115 * libspi/registry.c:
5116 * libspi/deviceeventcontroller.c:
5117 * libspi/accessible.c:
5118 * libspi/keystrokelistener.c:
5119 Changes and fixes to support keylisteners for potentially
5120 consumed key events (that is, 'passive grabs').
5121 Added implementation for generateKeyEvent() [untested].
5124 Changes to registerKeystrokeListener() API, as above.
5125 Added deregisterGlobalEventListenerAll(), and
5126 deregisterKeystrokeListener(), which are needed for clean exit of
5128 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5129 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5131 * cspi/spi_registry.c:
5132 Added implementations of function prototypes mentioned above.
5134 * registryd/registryd.c:
5135 Added the key listener event source as a g_timeout(), to allow
5136 receipt of key events that are not caught by GDK (since GDK
5137 doesn't support passive keygrabs, this was necessary).
5140 Changed to attach a keylistener to 'Alt' keys, and
5141 respond to the following keycommands: Alt-M (toggle magnifier);
5142 Alt-F (toggle speech); Alt-Q (quit).
5143 Added an exit routine to deregister the listeners, and a key
5144 listener that prints some key info to the console when a key
5145 matches the listener mask (and is thus received by the listener).
5147 * util/idl/Magnifier.idl:
5148 Changes to magnifier API to support multiple zoom regions,
5149 non-uniform scaling in x and y, markDirty, and a host of other
5150 features that would be useful to magnification.
5153 * util/mag_client.c:
5154 * util/mag_client.h:
5155 * util/mag_control.c:
5157 Source code changes to support the above IDL changes.
5160 As above, and also changes to use a (slower) generic conversion
5161 path for colormap conversions, since the fast RGB conversions have been
5162 reported to fail for 16-bit displays.
5164 2001-10-26 Michael Meeks <michael@ximian.com>
5166 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5168 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5170 * at-bridge/Makefile.am: fix LDFLAGS.
5172 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5174 * at-bridge/bridge.c:
5175 Re-worked listeners for toolkit events, now we have signal
5176 and property listeners. Added a private method
5177 register_atk_event_listeners(), which registers with the
5178 various atk and gtk signals we need to monitor in order to emit
5180 Added emission hook for AtkObject:property-change events, to
5181 support the 'property listeners'.
5182 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5185 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5186 which emit warnings and exit, respectively, if CORBA errors occur
5187 during remote calls, and we now use these methods to check most of
5188 our CORBA calls in the C bindings.
5190 * cspi/spi_accessible.c:
5191 Changed AccessibleSelection_refSelectedChild() to
5192 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5193 now increment refcounts.
5195 * cspi/spi_component.c:
5196 Fixed some long pointer casts (dangerous!) to pass pointers to
5197 CORBA_longs of the proper type to the CORBA stubs, and copy the
5198 data into the longs that were passed into the C bindings code.
5200 * at-bridge/bridge.c:
5202 * libspi/accessible.c:
5203 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5204 hyperlinks, AtkHyperlink is an object type.
5206 * libspi/application.c:
5207 Added various conversions to and from "generic" event types and
5208 atk-specific types; this is really part of the 'bridge'
5209 implementation but is valid for all AtkObject-based accessibility
5212 * libspi/editabletext.c:
5213 Fixed nasty bug wherein editable text's finalize method was
5214 unref'ing tha AtkObject reference that the text parent class was
5215 about to unref _again_. There was also a nasty inheritance bug
5216 that meant that the AccessibleEditableText class was corrupt.
5218 * libspi/selection.c:
5219 Provided implementations for some selection API that was broken.
5221 * idl/Application.idl:
5222 Added registerObjectEventListener () method.
5225 Fixed a number of return values that were Bonobo_Unknowns from
5226 bonobo_object_corba_objref(), which I
5227 forgot to dup before returning. Changed instances of
5228 bonobo_object_corba_objref (bonobo_object(o)) to
5229 BONOBO_OBJREF(o), for concision and clarity.
5231 2001-10-13 Louise Miller <louise.miller@sun.com>
5233 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5234 idl/Event.idl, idl/Registry.idl
5235 Changed these files to include Bonobo_Unknown.idl instead
5238 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5240 * libspi/component.c libspi/component.h:
5241 Fixed typo. Added assertions for object checks in
5242 AccessibleComponent code.
5244 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5246 * idl/Accessible.idl:
5247 Added 'isEqual (Accessible *object)'
5248 method for Accessible. (Not Yet Implemented).
5251 Changed signature of registerKeystrokeListener() to
5252 take a KeySet and KeyEventSeq so that specific keys and event
5253 types could be requested for monitoring, and added a flag
5254 is_synchronous so that either synchronous or asynchronous
5255 notification could be requested. (However this is not all
5256 implemented yet). This also meant adding two new typedefs,
5257 KeyEventSeq and KeySet.
5260 Added two new relations, RELATION_TOOLTIP_FOR and
5261 RELATION_LEAFNODE_OF.
5264 Added new state, STATE_HAS_TOOLTIP.
5266 * libspi/text.c, editabletext.c:
5267 Added new assertions to all casts of bonobo-objects from
5268 CORBA servants, to prevent Text API calls on non-text objects.
5269 Changed suspect casts of int-pointer types, so that we
5270 always send a valid CORBA_long pointer to the CORBA APIs that use
5271 in/out long parameters. We then have to copy from the CORBA_long
5272 into the regular long or int for return to the C bindings, or
5273 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5276 * libspi/deviceeventcontroller.c:
5277 Cleaned these sources up.
5279 Changed return type for getCharacterAtOffset to
5280 CORBA_unsigned_long, to allow for 32-bit characters.
5283 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5287 Fixed 'make dist' so that distro compiles...
5288 * libspi/keymasks.h:
5290 * cspi/spi-listener.c:
5291 KeystrokeListenerCB now returns a boolean.
5293 Added KeyEventType struct, and KeyStroke.
5294 Also added createKeystrokeListener(),
5295 KeystrokeListener_addCallback(),
5296 KeystrokeListener_removeCallback(), and added a keymask to
5297 registerKeystrokeListener().
5298 * cspi/spi_accessible.c:
5299 Changed numerous return types for interfaces from
5300 AccessibleComponent to Accessible<InterfaceName>; this was
5301 probably a cut-and-paste error.
5303 Implementations of new KeystrokeListener api (from spi.h,
5306 Changes to key modifier mapping.
5307 Created ControllerEventMask struct.
5308 Made DeviceEventController derive from Bonobo::Unknown.
5310 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5311 * libspi/deviceeventcontroller.c:
5312 Added a number of new internal (private) methods.
5313 * libspi/editabletext.c:
5314 * libspi/editabletext.h:
5315 Fixed a number of bugs related to the fact that
5316 editabletext inherits from text. Fixed the EditableText struct,
5317 the init() call, and use correct casts when calling Text methods
5318 from an EditableText object. Removed (duplicate) atko from the
5319 EditableText structure, we use the one in the parent Text
5320 structure via the casts mentioned above.
5321 * libspi/keystrokelistener.[ch]:
5322 * libspi/registry.c:
5323 Changes in support of keyboard handling (above).
5325 Keyboard handling, though partly functional, is still not
5326 recommended for at-spi client use as there is considerable
5327 work yet to be done.
5330 Changed some places where pointers to various int types
5331 are cast to be pointers to CORBA_long types and vice-versa:
5332 pointer casting is not safe so we pass pointers of the correct
5333 types and then cast the result before putting it into the target
5336 * libspi/text.h: minor typos corrected.
5338 We now speak not only the name of a Text element, but the
5339 first sentence of its content, when it receives focus.
5340 I also changed the text compression to 75% from 50%.
5341 * util/Accessibility_Util.server.in:
5342 Changed the default magnifier type to be a 3x vertical
5343 splitscreen magnifier (was previously a 2x horizontal one).
5345 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5347 * libspi/keystrokelistener.h:
5348 * libspi/keystrokelistener.c:
5349 Initial functional implementations of KeystrokeListener.
5352 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5354 Fixed string handling for NULL strings in libspi.
5355 Added spi_freeString to free strings returned by C bindings.
5357 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5359 * libspi/keystrokelistener.h:
5360 * libspi/keystrokelistener.c:
5361 Began (no-op) implementations of KeystrokeListener
5363 * libspi/deviceeventcontroller.c:
5364 * libspi/deviceeventcontroller.h:
5365 Began creating implementations of DeviceEventController,
5366 to handle keystroke and mouse event listening and
5368 * libspi/accessible.c:
5369 Stubbed-in the implementations for
5370 Accessibility_Accessible_getState and
5371 Accessibility_Accessible_getRelationSet.
5372 * libspi/registry.c:
5373 Improved de-registration process and fixed some bugs,
5374 deregistration now works correctly.
5376 Added initialization of applications list (to NULL).
5378 Reduced speech compression from 0.5 to 0.7, for demo.
5379 Changed call to gdk_window_set_decorations()
5380 to gtk_window_set_decorated().
5381 * at-bridge/bridge.c:
5382 Bridge now deregisters when app exits, via
5383 registration of a cleanup function
5384 with the g_atexit() call.
5385 Required making 'app' static, renamed 'this_app'.
5386 Fixed broken use of bonobo_init, passing argv wrongly.
5388 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5392 Created a new directory for
5393 accessibility-related utilities, primarily for
5394 testing and demo purposes, but with possible
5401 Onscreen magnifier utility that
5402 is implemented as a bonobo service.
5404 * util/mag_client.c:
5405 * util/mag_client.h:
5406 Client-side support (simple C bindings)
5407 for Magnification service
5409 * util/mag_control.c:
5410 Client program example for
5411 Magnification service
5413 * util/Accessibility_Magnifier.server.in:
5414 Bonobo-activation file for the
5415 Magnification service.
5418 * util/idl/Magnifier.idl:
5419 IDL defining the bonobo Magnification
5423 Modifications to use the bonobo-activated magnifier
5424 above, in place of trying to connect to an existing
5425 magnifier that uses socket-listening IPC.
5427 If env variable MAGNIFIER is set, a magnifier service
5428 will be started if one does not exist.
5430 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5432 * at-bridge/bridge.c:
5433 applied patch from Marc to build and run
5434 against new glib and gtk+ (seemed like a change
5435 to bonobo_init signature was made ?)
5437 made festival-server support turned off by default.
5438 Added support for a simple magnifier (off by default)
5439 which will be added to a 'util' directory later.
5440 * at-bridge/Makefile.am:
5441 Changed "application.h" header from a 'source'
5442 to a 'dependency' of libat-bridge.
5444 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5453 Added interface implementation c files to list of
5454 includes so they are included in libcspi.
5457 Changed prototype of AccessibleAction_doAction to return a
5459 Changed prototype of AccessibleTable_getCaption to
5460 return an Accessible.
5461 Changed prototype of AccessibleTable_getSelectedRows
5462 and AccessibleTable_getSelectedColumns to
5463 return a long (returns the number of selected rows
5464 or columns respectively).
5465 Changed name of AccessibleText_refRunAttributes to
5466 AccessibleText_getAttributes.
5467 Changed prototype of AccessibleText_getCharacterExtents to
5468 return a void rather than a boolean.
5469 Added support for a AccessibleCoordType parameter
5470 specifying what type of coordinates are desired.
5471 Added an AccessibleCordType parameter to
5472 AccessibleText_getPointAtOffset.
5474 * cspi/spi_accessible.c:
5475 Added code to return the outstanding interfaces from
5476 Accessible_queryInterface.
5478 * cspi/spi_action.c:
5480 Corrected call to getNActions to call the c binding
5483 * cspi/spi_editabletext.c:
5485 Changed name from setRunAttributes to setAttributes.
5487 * cspi/spi_hyperlink.c:
5489 Changed call to getNAnchors to correctly call the c
5490 binding for an attribute.
5492 * cspi/spi_hypertext.c:
5494 Changed getImageDescription to correctly call the
5495 binding for an attribute.
5497 * cspi/spi_selection.c:
5498 Changed getNSelectedChildren to correctly call the c
5499 binding for the attribute.
5500 Changed refSelectedChild to getSelectedChild.
5504 Changed getCaption to return an Accessible.
5505 Fixed calls which retrieve attributes.
5506 Changed refAt to getAccessibleAt.
5507 Changed getNSelectedRows and getNSelectedColumns to
5511 Changed getCharacterExtents and getPointAtOffset to accept an
5512 AccessibleCoordType.
5514 Changed calls which retrieve attributes.
5515 Changed refRunAttributes to getAttributes.
5520 * idl/Hyperlink.idl:
5521 Changed n_anchors attribute to nAnchors to keep naming
5522 convention consistent.
5525 Made Table inherit from Bonobo::Unknown.
5526 Added nSelectedColumns and nSelectedRows attributes.
5529 Made Value inherit from Bonobo::Unknown.
5531 * libspi/hyperlink.c:
5532 Change for nAnchors attributte name change.
5534 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5542 Added interface implementation c files to list of
5543 includes so they are included in libcspi.
5546 Changed prototype of AccessibleAction_doAction to return a
5548 Changed prototype of AccessibleTable_getCaption to
5549 return an Accessible.
5550 Changed prototype of AccessibleTable_getSelectedRows
5551 and AccessibleTable_getSelectedColumns to
5552 return a long (returns the number of selected rows
5553 or columns respectively).
5554 Changed name of AccessibleText_refRunAttributes to
5555 AccessibleText_getAttributes.
5556 Changed prototype of AccessibleText_getCharacterExtents to
5557 return a void rather than a boolean.
5558 Added support for a AccessibleCoordType parameter
5559 specifying what type of coordinates are desired.
5560 Added an AccessibleCordType parameter to
5561 AccessibleText_getPointAtOffset.
5563 * cspi/spi_accessible.c:
5564 Added code to return the outstanding interfaces from
5565 Accessible_queryInterface.
5567 * cspi/spi_action.c:
5569 Corrected call to getNActions to call the c binding
5572 * cspi/spi_editabletext.c:
5574 Changed name from setRunAttributes to setAttributes.
5576 * cspi/spi_hyperlink.c:
5578 Changed call to getNAnchors to correctly call the c
5579 binding for an attribute.
5581 * cspi/spi_hypertext.c:
5583 Changed getImageDescription to correctly call the
5584 binding for an attribute.
5586 * cspi/spi_selection.c:
5587 Changed getNSelectedChildren to correctly call the c
5588 binding for the attribute.
5589 Changed refSelectedChild to getSelectedChild.
5593 Changed getCaption to return an Accessible.
5594 Fixed calls which retrieve attributes.
5595 Changed refAt to getAccessibleAt.
5596 Changed getNSelectedRows and getNSelectedColumns to
5600 Changed getCharacterExtents and getPointAtOffset to accept an
5601 AccessibleCoordType.
5603 Changed calls which retrieve attributes.
5604 Changed refRunAttributes to getAttributes.
5609 * idl/Hyperlink.idl:
5610 Changed n_anchors attribute to nAnchors to keep naming
5611 convention consistent.
5614 Made Table inherit from Bonobo::Unknown.
5615 Added nSelectedColumns and nSelectedRows attributes.
5618 Made Value inherit from Bonobo::Unknown.
5620 * libspi/hyperlink.c:
5621 Change for nAnchors attributte name change.
5624 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5626 implementations-- made server implementations own AtkObject pointers
5627 rather than their respective AtkInterrface pointers to fix
5628 refcounting. AtkHyperlink is still broken.
5630 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5631 * cspi/spi_accessible.c:
5632 Added method Accessible_Role_getName(),
5633 and requisite string array (role_names).
5634 Added conversion string_from_corba_strin() call
5635 to Accessible_getName and _getDescription.
5636 * libspi/accessible.c:
5637 Added implementation for Accessible_getRole()
5639 Added festival support, used if environment variable
5642 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5644 * at-bridge/bridge.c:
5645 Now allocate Accessibility_Event using
5646 Accessibility_Event__alloc() instead of g_new0().
5647 * libspi/accessibleeventlistener.c:
5648 Initialize AccessibleEventListener->callbacks to NULL.
5649 Fixed accessible__event_listener_init() param, changed to
5650 "AccessibleEventListener *" type.
5651 Changed a bonobo_object_release_unref() call to
5652 Accessibility_Accessible_unref().
5653 * libspi/listener.c:
5654 Changed Bonobo_Unknown_unref to (equivalent)
5655 Accessibility_Accessible_unref.
5656 * libspi/registry.c:
5657 Changed bonobo_object_release_unref to
5658 Accessibility_Accessible_unref.
5660 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5663 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5664 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5665 spi-util.c spi-util.h
5666 Implementations for C bindings to remaining accessibility
5669 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5672 changed return value of Action from void to boolean to
5673 bring in line with ATK.
5676 Changed getText funcions to return "out" start and end offsets.
5677 Changed getAttributes to take and offset and return the start
5678 and end offset of the attribute run.
5679 Changed getOffsetAtPoint and getCharacterExtents to take an
5680 enum describing whether coordinates are window or screen.
5683 libspi/action.c libspi/action.h libspi/editabletext.c
5684 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5685 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5686 libspi/image.h libspi/selection.c libspi/selection.h
5687 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5688 libspi/value.c libspi/value.h
5689 Added server implementations for outstanding ATK interfaces
5690 not yet implemented.
5692 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5695 Added (missing) getName() method.
5696 Made nActions an attribute.
5697 * idl/EditableText.idl:
5698 Changed order of params in setAttributes.
5699 * idl/Hyperlink.idl:
5700 Removed getAnchor, added getURI.
5702 Changed attributes to methods, for efficiency
5703 (so that getting extents can be done in one call)
5704 * idl/Selection.idl:
5705 Changed nSelectedChildren to attribute, and re-indented.
5706 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5708 * idl/Text.idl: reformatted to match our coding style.
5709 (temporarily?) removed getRowColumnAtOffset().
5710 Changed text selection API to support multi-select and
5711 non-contiguous selections, as in ATK.
5712 * idl/Value.idl: changed some methods to attributes.
5714 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5716 * libspi/listener.c(impl_notify_event):
5717 BonoboUnkown_unref the source instead
5718 of bonobo_object_release_unref - the ORB
5719 handles the releasing.
5721 * configure.in: require ORBit-2.3.94 for
5724 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5726 Tagged CVS repository 'EA_1_0'.
5727 * README.EARLY_ACCESS:
5728 Alphabetized acknowledgements list, and
5730 Listed some known dependencies of at-spi.
5732 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5734 * docs/at-spi-docs.sgml:
5735 * docs/at-spi-sections.txt:
5736 * docs/at-spi-overrides.txt: (Added zero-length file)
5737 Documentation improvements - gtk-doc should build
5738 docs for all implemented C bindings now.
5741 * cspi/spi.c: (New file)
5742 * cspi/spi_event.c: (New file)
5743 * cspi/spi_registry.c: (New file)
5744 * cspi/spi_accessible.c: (New file)
5745 * cspi/spi_application.c: (New file)
5746 * cspi/spi_component.c: (New file)
5747 Split spi_main.c into six parts, and included them from
5748 "spi.c". This is a bit of a hack, probably temporary,
5749 but required by gtk-doc, apparently.
5751 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5754 * docs/at-spi-docs.sgml:
5755 * docs/at-spi-sections.txt:
5757 Initial checkins/modifications for gtk-doc generation.
5760 Added (missing) interface query methods to Accessible's C binding.
5762 Added GenericInterface type definition.
5764 Added query for AccessibleComponent interface to focus event handler.
5765 Added printout of bounding box for focussed component.
5766 * libspi/component.c:
5767 Added partial implementation for AccessibleComponent to C binding.
5768 * idl/Application.idl:
5769 * libspi/registry.c:
5770 * libspi/listener.c:
5771 * libspi/application.c:
5772 * libspi/application.h:
5773 Changed "ID" attribute type from string to long.
5775 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5779 Made method naming consistent: methods taking object args
5780 start with uppercase, other methods (except those using
5781 acronyms) start with lowercase. Underscores delimit between
5782 object names and method names:
5783 SPI_init() - uppercase since it starts with an acronym.
5784 getDesktopCount () - lowercase start since no object param0.
5785 Accessible_getName() - uppercase object type name, studlyCaps method
5789 Added gtk-doc documentation for all currently implemented
5790 methods in the C bindings API.
5792 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5794 * Makefile.am : changed build order to build test last.
5797 Changed "createEventListener" to "CreateEventListener".
5798 * libspi/accessibleeventlistener.c :
5799 Bugfix for addition of callbacks.
5800 * test/Makefile.am :
5801 * test/simple-at.c :
5802 Added new test that uses the C bindings API.
5804 * libspi/listener.c :
5805 * libspi/registry.c :
5806 * libspi/accessibleeventlistener.c :
5807 * at-bridge/bridge.c :
5808 Renamed member "target" of Accessibility_Event to "source",
5809 which is more descriptive.
5812 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5816 * cspi/Makefile.am :
5817 Added makefile support for at-spi/cspi directory.
5820 * cspi/spi-listener.h : (NEW FILE)
5821 Added support for/use of spi-listener.h.
5823 C bindings now build successfully, with no warnings.
5824 * libspi/accessibleeventlistener.h : (NEW FILE)
5825 * libspi/accessibleeventlistener.c : (NEW FILE)
5826 * libspi/Makefile.am :
5827 Added new object type "AccessibleEventListener"
5828 which inherits from Listener, and allows attachment
5829 of in-process callbacks (so that a client with a listening
5830 object instance can add functionality to the local
5831 implementation, dynamically).
5833 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5835 * libspi/accessible.c:
5836 Add implementation for get_index_in_parent().
5838 Added #include of "spi-roletypes.h", and
5839 added enumerated type AccessibleCoordType.
5840 Added definition for KeystrokeListener (function type).
5843 * cspi/spi-statetypes.h :
5844 * cspi/spi-roletypes.h :
5846 Added these headers, used by spi.h.
5848 Added code (NOTE: not yet built by make).
5850 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5852 * libspi/Makefile.am: generate imodule
5853 at the same time as other idl compiler
5856 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5857 * libspi/registry.c :
5858 * libspi/application.c :
5859 * idl/Application.idl :
5860 Made registration with toolkit an application method,
5861 which is required since each app has its own toolkit static
5862 environment. Thus the bridge must register for
5863 notification of toolkit events from each application in turn.
5864 Toolkit notifications are now successfully registered for, and
5865 sent to the listening at client.
5867 Changed toolkit event string to use hyphens rather than underscores.
5868 * libspi/listener.c :
5869 listner now gives more info in debug mode - it reports the
5870 name of the event received, as well as the name of the source.
5873 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5875 * libspi/registry.c :
5876 added more implementation for toolkit events.
5877 Fixed bug such that toolkit event registrations
5878 (via atk) use the whole event name string, not
5880 Removed a useless call to an ORBit_ method.
5881 * at-bridge/bridge.c :
5882 Removed unused local sbuf[] variable.
5884 We now register for Gtk:GtkWidget:button_press_event
5885 events as well as "focus:" events.
5887 Add some more API from Registry.idl that was missing,
5888 for keystroke listening, keystroke and mouse event
5889 synthesis, and enumeration of accessible desktops.
5891 2001-08-16 Michael Meeks <michael@ximian.com>
5893 * configure.in: use AM_GLIB_GNU_GETTEXT.
5895 * Makefile.am (SUBDIRS): kill intl.
5897 2001-08-15 Michael Meeks <michael@ximian.com>
5899 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5901 * configure.in: upd.
5903 * configure.in: depend on a recent bonobo-activation that
5904 will find our server files ...
5906 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5908 * libspi/accessible.c : accessible_new() :
5909 Now we add the Component interface via bonobo_object_add_interface,
5910 if the contained AtkObject implements AtkComponent.
5911 * libspi/accessible.h : now include "component.h"
5912 * libspi/component.h :
5913 * libspi/component.c : added files - implementation of
5914 bonobo wrapper object for Accessibility/Component
5915 * libspi/listener.c :
5916 Added test code to check for Accessibility/Component:1.0
5917 interface and report whether it is implemented by the
5919 * libspi/registry.c :
5920 Now we check for not only the hash of the whole event
5921 string before relaying the event, we also check the
5922 "minor" event string (without the detail string).
5923 This allows event listeners to be registered against
5924 all events of a certain major+minor type, or just
5925 against a specific major+minor+detail type.
5926 * libspi/accessible.c :
5927 Added implementations for Accessible:get_parent(),
5928 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5929 * libspi/registry.c :
5930 * libspi/listener.c :
5931 Replaced calls to Accessibility_Accessible_ref() and
5932 Accessibility_Accessible_unref() with
5933 calls to bonobo_object_dup_ref() and
5934 bonobo_object_release_unref(), so that the CORBA object
5935 is dup-ed and released when relayed, as well as the bonobo object.
5937 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5939 * libspi/Makefile.am,
5940 registryd/Makefile.am,
5941 at-bridge/Makefile.am.
5942 test/Makefile.am, configure.in:
5943 reverse previous changes.
5945 * /idl/Image.idl: fix typo.
5947 * test/Makefile.am: put DEBUG_FLAGS
5950 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5952 * test/app.c: use argv[0] instead of
5955 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5957 * libspi/Makefile.am,
5958 registryd/Makefile.am,
5959 at-bridge/Makefile.am.
5960 test/Makefile.am, configure.in:
5961 cleanup, replace individual LIBS/CFLAGS with
5962 AT_COMMON_{LIBS|CFLAGS}.
5966 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5968 * configure.in, libspi/Makefile.am:
5969 Change IDL path checking for bonobo-activation
5972 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5974 * registryd/registry.c : separated event listeners to use
5975 3 separate lists (focus, window, toolkit). Began testing
5976 event names against hashes before relaying events.
5977 * test/at.c : now register for events of type "focus:"
5978 * test/app.c : now generate events of type "focus:"
5979 * at-bridge/bridge.c : register with ATK for focus events,
5980 and we now relay those focus events to any "focus:" listeners.
5981 This now works with the bridge as a GTK_MODULE when running test/at.
5982 * libspi/registry.c :
5983 * libspi/listener.c :
5984 now we ref event sources before propagating, and unref on receipt.
5985 * libspi/registry.c :
5986 some changes to internal structs, to support event typestring hashes.
5987 * text/app.c : changed the way the appname is generated.
5988 * cspi : added directory that will hold the C bindings library for
5989 non-CORBA/bonobo-savvy clients.
5990 * cspi/spi.h : header file that contains the function prototypes for the C binding.
5991 * idl/Component.idl : added in parameter to indicate coord system for
5992 geometry-related calls.
5993 * idl/Hyperlink.idl : added readonly n_links attribute
5994 * idl/Image.idl : changed methods to attributes.
5996 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5998 * at-bridge/Makefile.am: link against
5999 ../libspi/libspi.la instead of -lspi.
6001 * at-spi/test/app.c: include
6002 bonobo-activation.h. Use a default appname
6003 if one is not provided.
6005 2001-08-14 Bill Haneman <bill.haneman@sun.com>
6007 * idl/Registry.idl : temporarily changed register_Application
6008 to oneway, to work around issue with initial registration
6010 * idl/Application.idl : changed attribute "id" from readonly
6011 to read-write, since it needs to be assigned by Registry.
6012 * registryd/registryd.c : added call to set application id
6014 * registryd/registry.c : changed de-registration procedure to
6015 use CORBA_Object_hash() to find matching object ref in application
6016 lists and listener lists.
6017 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
6018 began distinguishing between event types (work in progress).
6020 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6023 * libspi/application.c:
6024 Added implementations for get/set id, get_toolkitName,
6026 * registryd/registryd.c :
6030 Converted from use of OAF to bonobo-activation.
6031 * libspi/desktop.h :
6032 * libspi/desktop.c :
6034 Removed references to atksimpleobject, since base atkobject
6035 implementation now provides functionality we need.
6036 * libspi/atksimpleobject.c :
6037 * libspi/atksimpleobject.h :
6042 * at-bridge/Makefile.am
6043 * at-bridge/bridge.c
6046 Added directory "bridge" and contents, and added dependencies
6047 in Makefile.am/configure.in.
6048 Initial checkin of "at-bridge".
6049 This code is a GTK_MODULE which automatically registers
6050 GTK+ apps with the accessibility registry, using an object
6051 reference to the root ATK object.
6053 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6055 * po/Makefile.in.in: Remove. Again. If this
6056 doesn't get autogenerated - you need to update
6059 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6061 * po/Makefile.in.in: Add. Again.
6063 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6065 * libspi/accessible.c : added support for 'description' property.
6066 * libspi/accessible.c
6068 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6069 (since the two are now equivalent in libbonobo)
6077 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6078 Bonobo::Unknown as does Accessibility::Accessible.
6079 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6080 interface with Bonobo::Stream, since it was redundant with it.
6081 (The Stream returned by a StreamableContext object is expected to
6082 implement only a subset of Bonobo::Stream)
6084 2001-07-28 Anders Carlsson <andersca@gnome.org>
6086 * libspi/accessible.c (accessible_object_finalize): Change
6087 g_free to g_object_unref since the AtkObject is a GObject.
6089 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6091 * idl/Accessibility.idl: add new IDL files
6094 * idl/Action.idl: Definitions of actionable UI object
6095 * idl/Component.idl: Definitions of UI component geometry, etc.
6096 * idl/Hyperlink.idl: Defs of hyperlink behavior
6097 * idl/Image.idl: Def of accessible image
6098 * idl/Selection.idl: Definition of UI object with selectable children
6099 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6100 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6101 * idl/Text.idl: Interface defs for UI elements with complex textual content
6102 * idl/Value.idl: Definition of UI element that is a value controller or display
6104 2001-07-27 Michael Meeks <michael@ximian.com>
6106 * po/Makefile.in.in: remove autogenerated file from CVS.
6108 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6111 * idl/Registry.idl: include guard.
6113 * idl/Accessibility.idl: Add, and include all the other IDL
6116 * idl/*.idl: remove mass of pragmas etc.
6118 2001-07-26 Michael Meeks <michael@ximian.com>
6120 * registryd/Makefile.am (registryd_SOURCES): remove
6123 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6125 * libspi/.cvsignore, registryd/.cvsignore,
6126 test/.cvsignore: updated.
6128 * po/Makefile.in.in: gettext update.
6130 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6132 * initial CVS checkin
6134 2001-06-29 Michael Meeks <michael@ximian.com>
6136 * configure.in: add AM_CONFIG_HEADER to gen config.h