1 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
3 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
4 AcccessibleKeyEventType, AccessibleKeyMaskType.
6 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
8 * cspi/state-types.h: Add documentation for AccessibleState.
10 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
11 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
12 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
13 AccessibleComponentLayer.
15 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
18 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
20 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
21 Accessible. Add description of AccessibleEvent,
22 AccessibleEventListenerCB.
24 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
27 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
28 documentation. Add description of AccessibleKeystrokeListenerCB,
29 AccessibleKeyEventMask, AccessibleModifierMaskType,
30 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
31 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
33 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
36 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
39 This fixes bug #104730.
41 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
43 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
44 Set is_text field of Accessibility_DeviceEvent data structure.
46 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
47 is-text field of AccessibleDeviceEvent data structure.
49 This addresses part of bug #108666.
51 * registryd/devcideeventcontroller.c: Unset debug option.
53 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
56 (cpi_initial_relation_type_table): New function which initializes
57 mapping between Accessibility_RelationType and AccessibleRelationType.
58 (cspi_relation_type_from_spi_relation_type): New function which
59 translates an Accessibility_RelationType into an AccessibleRelationType.
60 (AccessibleRelation_getRelationType): Use
61 cpi_relation_type_get_spi_relation_type to return correct value.
62 (spi_state_to_corba): Return correct type for default case.
64 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
65 Use Accessibility_EventType instead of Accessibility_KeyEventType.
67 * cspi/cspi-bonobo-listener.c:
68 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
71 * libspi/accessible.c, libspi/action.c, libspi/application.c,
72 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
73 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
74 libspi/image.c, libspi/listener.c, libspi/selection.c,
75 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
76 registryd/desktop.c, registryd/registry.c:
77 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
79 * libspi/eventlistener.c
80 Remove semicolon after BONOBO_TYPE_FUNC.
83 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
84 (spi_init_relation_type_table): Initialize using correct type.
86 * registryd/desktop.c:
87 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
88 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
89 of Accessibility_KeyEventType.
91 * test/key-listener-test.c (report_tab_key_event): Use fprintf
94 * tests/simple-at.c, tests/screen-review-test.c:
95 Add include for <strings.h>.
97 * tests.stress-test.c:
98 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
100 These changes fix compiler warnings when using FORTE compiler on
101 Solaris; fixes bug #107479.
104 2003-04-10 Bill Haneman <bill.haneman@sun.com>
107 * configure.in: revved to 1.1.10
110 (SPI_KEYMASK_NUMLOCK): Added.
112 * registryd/deviceeventcontroller.c:
113 (spi_key_event_matches_listener): AND with a smaller
114 bitmask (as we should).
115 (spi_dec_translate_mask):
116 New method, sets the virtual NumLock modifier bit
117 if numlock is on. Eventually it can handle other virtual
118 modifier bits if needed, or other marshalling from
119 at-spi modifier masks to platform (X) masks.
120 (spi_dec_key_listener_new):
121 Call spi_dec_translate_mask to set up virtual mod bits
122 in the 'mask' field when creating a new listener struct.
123 (spi_dec_emit_modifier_event):
124 Set the virtual (i.e. NumLock) bits before emitting event.
125 (spi_controller_register_with_devices):
126 Query for the NumLock modifier 'physical' bit if Xkb is
127 present, for use in above methods.
131 2003-04-10 Bill Haneman <bill.haneman@sun.com>
133 * registryd/deviceeventcontroller.c:
134 (spi_keystroke_from_x_key_event):
135 Instead of checking to see if the keysym is
136 printable, check the string from XLookupString
137 if available, get the first unicode character from it,
138 and call g_unichar_isprint to determine whether the
139 is_text flag should be TRUE or FALSE.
143 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
145 * atk-bridge/bridge.c: Add support for extended events
146 * cspi/spi_event.c: Add documentation and implementation for
148 * tests/event-listener-test.c: Add tests for extended events.
150 This fixes bugs #100424 and #100426.
152 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
154 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
155 of LT_CURRENT. This fixes bug #89350.
157 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
159 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
160 number of signal parameter values before accessing them. This fixes
163 2003-04-01 Bill Haneman <bill.haneman@sun.com>
165 * configure.in: Fixed duplicate inclusion of -lspi.
166 * branched for gnome-2-2/HEAD.
167 [created tag "gnome-2-2"]
169 2003-03-07 Bill Haneman <bill.haneman@sun.com>
171 * configure.in: 1.1.9 release.
174 2003-03-07 Bill Haneman <bill.haneman@sun.com>
176 [needed by GOK, to fix bugs 107985 and 107988]
177 * registryd/deviceeventcontroller.c:
178 (spi_dec_clear_unlatch_pending):
179 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
180 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
181 (spi_dec_init_mouse_listener):Emit warning if mouse button
183 (spi_device_event_controller_forward_mouse_event):
184 Removed unnecessary parens from a conditional.
185 (global_filter_fn):Added TODO comment.
186 (impl_generate_keyboard_event):
187 Cancel a pending relatch if a 'delatching' key was
190 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
192 * atk-bridge/bridge.c:
193 Change atk_signal_child_changed to atk_signal_children_changed.
194 Reorganize code in spi_atk_bridge_signal_listener().
196 * test/event-listener-test.c:
197 Add children_changed_listener and report_children_changed_event()
198 to test AccessibleChildEvent_getChildAccessible.
200 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
202 * cspi/spi_event.c (cspi_internal_event_get_text): Change
203 g_strdup to CORBA_String_dup (bug #105291)
205 * test/event-listener-test.c (report_text_event): Add call to
208 2003-02-28 Bill Haneman <bill.haneman@sun.com>
210 * registryd/deviceeventcontroller.c:
211 (spi_keystroke_from_x_key_event):
212 Fix string and keysym return codes to match modifier state.
215 2003-02-28 Bill Haneman <bill.haneman@sun.com>
217 * registryd/deviceeventcontroller.c:
218 (spi_keystroke_from_x_key_event):
219 Fix segv due to improper use of isprint(c). [bug #107254]
221 2003-02-24 Bill Haneman <bill.haneman@sun.com>
224 (get_accessible_text_boundary_type):
225 Move default return value to (new) default case in switch.
226 (get_accessible_text_clip_type):
227 Move default return value to (new) default case in switch.
229 * libspi/application.c:
230 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
231 Remove unused methods.
232 (impl_accessibility_application_register_object_event_listener):
233 Remove unused methods.
236 Added #include of <math.h>.
238 * registryd/deviceeventcontroller.c:
239 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
240 we don't currently use this method.
241 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
243 (impl_generate_key_event):
244 Remove unused variables.
245 (impl_generate_mouse_event):
246 Initialize button to zero, just in case we get an invalid
247 input. Added support for mouse buttons 4 and 5.
248 (spi_device_event_controller_new):
249 Removed unused variable declaration for 'private'.
251 Added #include of <gdk/gdk.h>
253 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
255 * configure.in: Update to work when X is not installed in expected
256 location. Fixes bug #105836.
258 * atk-bridge/bridge.c
259 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
261 (spi_atk_register_event_listener): Add signal listener for
263 (spi_atk_bridge_signal_listener): Event event when link-selected
264 signal is emitted. (bug #104622)
266 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
267 on returned string. (bug #105291)
269 * test/event-listener-test.c: Add test for link-selected.
271 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
273 * atk-bridge/Makefile.am: Correct typo in previous commit.
275 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
277 * atk-bridge/Makefile.am: Allow for build directory to be different
278 from source directory
280 * registryd/Makefile.am: Allow for build directory to be different
281 from source directory
285 2003-01-29 Bill Haneman <bill.haneman@sun.com>
288 Fixed dependencies for libcspi so that libspi gets pulled in
289 properly. Fixes 104741.
293 Clean up inline docs a little.
295 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
297 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
298 This is done by implementing AtkComponent for SpiAtkDesktop, which is
299 the AtkObject within an SpiDesktop.
300 This addresses bug #101524.
302 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
303 Remove call to gdk_init().
305 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
306 so that Display is set when SpiDesktop is created.
308 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
310 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
311 This fixes bug #102830.
313 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
315 * test/test-simple.c: Update to take account of fact that GailButton
316 now implements AtkText.
317 (create_text_window): Set name on AtkObject for GtkEntry.
318 (validate_accessible): Check accessible name before calling test_text().
320 * libspi/Makefile.am: Fix problem with building outside of source
321 directory. Bug #98120.
323 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
324 typo in documentation comments. Bug #94275.
326 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
328 * libspi/text.c (impl_getBoundedRanges): Bug fix.
330 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
333 Add includes to avoid compiler warnings on Solaris.
334 (impl_getRangeExtents): Bug fix.
336 2002-12-17 Bill Haneman <bill.haneman@sun.com>
338 Fix for 100944, [API addition approved by Gman and murrayc].
345 * idl/Accessibility_Text.idl:
346 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
347 (Text::getRangeExtents): New method for efficient
348 bounds query of a text range.
349 (Text::getBoundedRanges): New method for efficient
350 clipping of text to bounding boxes.
351 (unImplemented7, unImplemented8):
352 Removed these padding methods to preserve bincompat.
355 (impl_getRangeExtents): implementation of new IDL.
356 (impl_getBoundedRanges): implementation of new IDL.
357 (SpiTextRect): Internal use struct.
358 (_spi_text_rect_union): internal method, calculates union of two
359 SpiTextRect bounding rects.
360 (_spi_text_range_seq_from_gslist): internal method, allows us
361 to build our sequence efficiently as a gslist then convert it
363 (_spi_bounds_contain): internal method, determines whether
364 a text character is "in" or "out" of a clip rect according to
365 values of TEXT_CLIP_TYPE.
366 (spi_text_class_init): Initialize the new methods in the epv.
369 (AccessibleTextClipType): New enum used by screen review api.
370 (AccessibleTextRange): New struct used by screen review api.
371 (AccessibleText_getRangeExtents):
372 cspi binding for Accessibility_Text_getRangeExtents.
373 (AccessibleText_getBoundedRanges):
374 cspi binding for Accessibility_Text_getBoundedRanges.
375 (AccessibleTextRange_freeRanges): convenience method.
378 (AccessibleText_getRangeExtents):
379 cspi binding for Accessibility_Text_getRangeExtents.
380 (AccessibleText_getBoundedRanges):
381 cspi binding for Accessibility_Text_getBoundedRanges.
382 (AccessibleTextRange_freeRanges): convenience method.
383 (get_accessible_text_clip_type): internal conversion method.
384 (get_accessible_text_ranges_from_range_seq): internal conversion method.
386 * registryd/deviceeventcontroller.c:
387 (spi_dec_mouse_check):
388 Improved behavior for mouse:abs events
389 [same granularity as mouse:rel events, and no
390 events when mouse is idle].
392 2002-12-16 Michael Meeks <michael@ximian.com>
394 * cspi/spi_accessible.c (spi_state_to_corba): rename.
396 * libspi/stateset.c (state_spi_to_atk): split out
397 ( fix several remote array bounds nasties )
398 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
399 (impl_remove): make safe from array bounds issues.
400 (spi_atk_state_from_spi_state): impl.
402 * libspi/stateset.h (spi_state_set_cache_is_empty):
403 add a set of wrapper defines to get layering right.
405 * cspi/spi_accessible.c: update state set stuff to
408 2002-12-14 Michael Meeks <michael@ximian.com>
410 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
411 to avoid 2 roundtrips to the registry per key event
412 (spi_atk_bridge_key_listener): upd.
413 (deregister_application): release the dec.
415 * registryd/registry.c (notify_listeners_cb):
416 bin lots of re-enterant complexity - we no longer
417 do a round-trip bonobo ref here, ensure that a single
418 listener's exception failure won't poison all other
420 (impl_registry_notify_event): bin obvious memory leak.
422 2002-12-13 Michael Meeks <michael@ximian.com>
424 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
425 init the ev so the error is meaningful.
426 (spi_atk_bridge_key_listener): ditto.
428 * cspi/spi_main.c (cspi_ev): init the ev so we start
429 with a clean slate, otherwise the first exception
432 * cspi/spi_text.c (get_accessible_text_boundary_type):
433 add a fallthrough for no warnings.
435 * cspi/spi_registry.c: prune unused warnings.
437 * cspi/spi_main.c (cspi_object_take): fix
438 mind-blowing brokenness ( by watching the compile
441 * cspi/spi_accessible.c (Accessible_getStateSet):
442 re-impl. to use an AtkStateSet.
443 (spi_state_type_from_accessible_state),
444 (init_state_table): bin these.
446 * libspi/stateset.c (spi_atk_state_set_from_sequence):
448 (atk_state_set_from_accessibility_state_set): here.
450 * cspi/spi_accessible.c (spi_state_to_atk): impl.
451 (AccessibleStateSet_contains, AccessibleStateSet_ref),
452 (AccessibleStateSet_unref, AccessibleStateSet_contains),
453 (AccessibleStateSet_add, AccessibleStateSet_remove),
454 (AccessibleStateSet_equals, AccessibleStateSet_compare),
455 (AccessibleStateSet_isEmpty): re-write to use a local
458 2002-12-13 Bill Haneman <bill.haneman@sun.com>
460 * configure.in: Revved to 1.1.7 (new keymask vals).
462 2002-12-10 Bill Haneman <bill.haneman@sun.com>
465 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
467 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
470 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
471 to compare two CORBA_TypeCodes.
472 (cspi_internal_event_add): Silence warning from FORTE compiler.
474 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
475 avoid implicit declaration of functions.
477 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
479 * atk-bridge/bridge.c:
480 (spi_atk_bridge_init_event_type_consts): Store signal id for
481 active-descendant-changed signal.
482 (spi_atk_register_event_listeners): Add signal listener for
483 active-descendant-changed signal,
484 (spi_atk_bridge_signal_listener): Move code in function
485 spi_atk-signal_emit_event() into this function.
486 Add support for active-descendant-changed
487 Update support for child-changed signal.
488 (spi_bridge_window_event_listener): Silence warning.
490 * libspi/spi_private.[ch]:
491 (spi_init_any_object): Change second parameter from CORBA_Object to
493 Omit call to CORBA_Object_duplicate().
494 Set CORBA_any's _value to CORBA_Object*.
496 2002-12-06 Bill Haneman <bill.haneman@sun.com>
502 (AccessibleEvent_ref, AccessibleEvent_unref):
503 New methods, for persisting an event outside the emission context.
504 Must be used if the new accessor methods are to be called
505 outside of the event listener's callback.
507 * cspi/bonobo/cspi-bonobo.c:
508 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
509 as second parameter instead of NULL, so we can call
510 cspi_check_ev afterwards.
513 (cspi_object_take): New internal method,
514 converts a CORBA_Object reference to a hard ref on
515 an Accessible if possible, returning NULL if the object
516 reference is invalid or an Accessible * otherwise.
519 (AccessibleEvent_ref):
520 Increment the event's internal private refcount, and
521 add the event's internal struct to an internal cache
522 if it's not already there.
523 (AccessibleEvent_unref):
524 Decrement the event's refcount and remove it from
525 the cspi event cache if refcount==0.
526 (cspi_event_compare): New private method.
527 Compares two event structs via their ids. Used
529 (cspi_internal_event_lookup): New private method.
530 (cspi_internal_event_check): New private method,
531 a 0-order sanity check for events to make sure their
532 private data is intact.
533 (cspi_internal_event_add, cspi_internal_event_remove):
534 New private methods for managiing the event cache.
536 * cspi/bonobo/cspi-bonobo-listener.c:
538 Initialize the new private data elements (id, magic, ref_count).
540 * atk-bridge/bridge.c:
541 (spi_atk_bridge_signal_listener):
542 Fixed bug #100530, passing wrong params to emission func.
544 * registryd/deviceeventcontroller.c:
545 (spi_dec_button_update_and_emit):
546 Fixed type in mask bit operations; fix for #99799.
548 2002-12-02 Bill Haneman <bill.haneman@sun.com>
550 Removed some of the more dangerous workarounds from
551 previous commit; they are only needed by GOK, which
552 in reality should be using another method to accomplish
553 the goals. So on reconsideration some of the workarounds
556 * registryd/deviceeventcontroller.c:
557 (spi_keycodes_contain, spi_dec_init_keycode_list):
558 Removed these methods, used only by a nasty hack to try
559 and detect whether a key synthesis should be allowed
560 to reset the XKB latch state or not. This code was only
561 required to work around an interaction between GOK,
562 button events, and XKB.
563 (impl_generate_key_event):
564 Removed hack at end of key generation that tried to
565 "do the right thing" if XKB latch keys were generated
566 in the midst of button press/release pairs.
569 Added a check for HAVE_XINPUT. Not normally used yet.
571 2002-11-25 Bill Haneman <bill.haneman@sun.com>
573 Workarounds and fixes for mouse event/XKB interaction.
575 * registryd/deviceeventcontroller.c:
576 (spi_keycodes_contain, spi_dec_init_keycode_list):
577 New internal methods.
578 (spi_dec_set_unlatch_pending):
579 Split the method that tells XKB to expect an
580 unlatch (and revert it) out of the rest of the
581 event handling code. This method is called by the
582 two mouse event handlers (the poll and the filter).
583 (spi_dec_update_and_emit, spi_dec_mouse_check):
584 New methods split from spi_dec_poll_mouse_moved.
585 The second one is now called from inside the filterFn
586 when an XKB delatch event is received, to determine
587 whether to revert the delatch or not.
588 (spi_poll_mouse_moved): Refactor; also we can now
589 properly handle the case where multiple button states
590 have changed between polling cycles and we didn't get
591 notified due to another client's grab.
593 Synchronize the server while handling an XKB notification.
594 Ugly, but apparently necessary to avoid nasty races.
595 Check the mouse state on receipt of an XKB latch change,
596 to decide whether to revert the latch or not. (Latches are
597 reverted if there is an immediately preceding mouse button
598 event that a client has consumed, in which case we don't want
599 the user to see the side-effect of the event).
600 (spi_device_event_controller_forward_mouse_event):
601 Check for modifier events and fire before resetting mouse_mask_state,
602 prevents losing modifier events.
604 (impl_generate_keyboard_event):
605 If we've just generated a keyboard event for a non-shift key,
606 we don't want to revert the pending XKB latch.
607 Otherwise, check the modifier state (via a call to
608 spi_dev_mouse_check) and set the relatch mask to
609 that state before returning.
611 2002-11-24 Bill Haneman <bill.haneman@sun.com>
614 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
617 * atk-bridge/bridge.c:
618 (spi_atk_register_event_listeners):
619 Don't re-register for ATK events if the registry has died
620 and the app needs to re-register; the ATK listeners are in
621 process and doing so will cause duplicate emission.
623 * registryd/deviceeventcontroller.c:
624 (spi_poll_mouse_moved):
625 Reformat the source, detect and emit multiple button-change
626 events (i.e. if multiple buttons have changed between poll
628 Add code to detect mouse-down events even when the pointer
629 is grabbed; workaround for GOK bug 98420.
630 (spi_controller_register_with_devices):
631 Call XTestGrabControl with 'impervious' flag set to True,
632 allows us to synthesize events and query the pointer even during
633 an active grab by another client.
634 (spi_device_event_controller_forward_mouse_event):
635 Set the mouse_mask_state to the mouse_button_state from
636 the intercepted event, to synchronize the grab listener with
639 2002-11-20 Bill Haneman <bill.haneman@sun.com>
641 * cspi/spi_accessible.c:
642 (AccessibleRole_getName):
643 Added necessary strings for making this (deprecated)
644 method work with the new role types.
645 (init_role_table, role_table):
646 Added definition of SPI_ROLE_APPLICATION.
648 * libspi/spi-roletypes.h:
649 Added SPI_ROLE_APPLICATION.
651 * idl/Accessibility_Role.idl:
652 Added ROLE_APPLICATION.
654 * docs/reference/cspi/at-spi-cspi-decl.txt:
655 Added SPI_ROLE_APPLICATION to docs.
657 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
659 * cspi/spi_accessible.c
660 (cspi_init_role_table): Do not write beyond end of role_table.
661 (Accessible_getRole): Use correct type for value returned by
662 Accessibility_Accessible_getRole().
664 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
665 beyond end of role_table. (This fixes bug #98269)
667 * libspi/application.c: Add include file spi-private.h for
668 definition of spi_init_any_nil.
670 2002-11-19 Bill Haneman <bill.haneman@sun.com>
674 * libspi/spi-private.h:
675 Added DGB() macro, and extern int _dbg declaration.
677 * registryd/registry.c:
678 (definitions) storage for _dbg.
680 Get environment variable "AT_SPI_DEBUG".
681 (spi_registry_set_debug):
682 New method, to initialize _dbg value.
683 (spi_listener_struct_new, spi_registry_object_finalize):
684 (notify_listeners_cb):
685 Changed fprintfs to use DBG and g_warning().
687 * registryd/deviceeventcontroller.c:
688 (_deregister_keygrab, spi_controller_register_device_listener):
689 Changed debug/warning messages to use DBG macro.
693 Changed warning messages to use DBG macro and g_warning().
695 * atk-bridge/bridge.c:
696 (atk_bridge_init, spi_atk_bridge_get_registry):
697 (spi_atk_bridge_exit_func):
698 (spi_atk_bridge_property_event_listener):
699 Changed status, warning, and error messages to use
700 g_warning, g_message, and DBG macros.
703 Read the state of the AT_SPI_DEBUG environment variable
704 and set a local '_dbg' accordingly.
706 2002-11-19 Bill Haneman <bill.haneman@sun.com>
708 FIXES for 98836, 98842, other bugs.
711 Revved to 1.1.4, interface-age=4, binary-age=4.
713 * registryd/deviceeventcontroller.c:
715 Fixed crasher bug in last_mouse_pos initialization.
717 * registryd/registry.c:
718 (desktop_add_application, desktop_remove_application):
719 Added (and then commented out) some support for
720 object context marshalling. [TODO]
722 * atk-bridge/bridge.c:
723 (spi_atk_bridge_event_context_create):
724 Commented out object context creation until it can
725 be properly tested and debugged.
727 * registryd/registry.c:
728 (impl_registry_notify_event):
729 Fixed crasher bug, we were calling
730 spi_re_entrant_list_foreach () with an empty list.
732 2002-11-18 Bill Haneman <bill.haneman@sun.com>
734 * idl/Accessibility_Action.idl:
735 * idl/Accessibility_Component.idl:
736 * idl/Accessibility_Desktop.idl:
737 * idl/Accessibility_Event.idl:
738 * idl/Accessibility_Hyperlink.idl:
739 * idl/Accessibility_Image.idl:
740 * idl/Accessibility_Relation.idl:
741 * idl/Accessibility_Selection.idl:
742 * idl/Accessibility_State.idl:
743 * idl/Accessibility_Value.idl:
744 Updated unimplemented slot count to minimum of
745 four for all interfaces, for ABI freeze.
747 * idl/Accessibility_EditableText.idl:
748 * idl/Accessibility_Text.idl:
749 Updated unimplemented slot count to six
752 * idl/Accessibility_Registry.idl:
753 Updated unimplemented slot count to six
754 (also for DeviceEventController),
757 * idl/Accessibility_Table.idl:
758 Updated unimplemented slot count to eight,
761 * idl/Accessibility_Event.idl:
762 Added CORBA_any "any_data" member to Event struct.
764 * idl/Accessibility_Event.idl:
765 Added CORBA_any "any_data" member to Event struct.
767 * atk-bridge/bridge.c:
769 atk_signal_text_changed, atk_signal_child_changed,
770 signal ids queried from gtype system.
771 (AtkBridgeEventContextType): New enum.
772 (AtkBridgeEventContextData): New struct.
773 (AtkBridgeEventContext): New struct.
774 (atk_bridge_init_event_type_consts):
775 New method, initializes type contants for comparison
776 prior to emit_eventv.
777 (atk_bridge_event_context_init): New method,
778 initializes a CORBA_any from an AtkBridgeEventContext.
779 (atk_bridge_focus_tracker): Call spi_init_any_nil to
780 initialize the event.any_data struct.
781 (spi_atk_bridge_event_context_create): New method,
782 creates an AtkBridgeEventContext from signal/event info.
783 (spi_atk_bridge_event_context_free): New method.
784 (spi_atk_emit_eventv): Changed to take an
785 AtkBridgeEventContext parameter. We now initialize
786 the event.any_data member prior to notifying the
787 Registry, via the AtkBridgeEventContext.
788 (spi_atk_bridge_property_event_listener):
789 (spi_atk_bridge_state_event_listener):
790 Match emit_eventv signature.
791 (spi_atk_bridge_object_event_listener):
792 Match emit_eventv signature, and create an
793 event context from the event details.
794 Free the event context afterwards.
795 (spi_atk_bridge_window_event_listener):
796 Create an event context, pass it to the
800 (AccessibleEvent_getContextString):
801 (AccessibleEvent_getContextObject):
802 New methods, allow query of AccessibleEvent objects
803 for more context details (via the "any_data" member
804 of the Event struct, above).
807 Definitions for AccessibleEvent_getContextString
808 and AccessibleEvent_getContextObject.
810 * cspi/spi_listener.h:
811 (InternalEvent): New struct.
814 (AccessibleEvent_getContextString):
815 (AccessibleEvent_getContextObject):
816 Implementations of new methods, for obtaining
817 additional context information from some event types.
819 * cspi/spi_registry.c:
820 (SPI_registerGlobalEventListener):
821 Added mention of active-descendant-changed event in docs.
823 * cspi/cspi-bonobo-listener.c:
825 Marshal the any into the AccessibleEvent via
828 * libspi/spi-private.h:
829 #include <orbit/orbit.h>
831 (spi_init_any_string):
832 (spi_init_any_object):
833 New convenience function declarations.
837 (spi_init_any_string):
838 (spi_init_any_object):
839 New convenience function implementations.
841 * registryd/deviceeventcontroller.c:
842 (spi_poll_dec_mouse_moved):
843 (spi_device_event_controller_forward_mous_event):
844 Initialize any_data member of event.
845 (spi_deregister_controller_device_listener):
846 Fix incorrect param pass which was preventing deregistration.
848 * registryd/registry.c:
849 (desktop_add_application):
850 (desktop_remove_application):
851 Add object data to event's any_data before dispatch.
853 Fix for error messages from GAIL.
855 * test/event-listener-test.c:
856 Test new ContextString and "any_data" API:
857 (report_text_event): New method query and output context string.
858 (main): register a new text listener with report_text_event
861 2002-11-19 Darren Kenny <darren.kenny@sun.com>
863 Fixes for bugs 98127 and 97914.
864 * cspi/spi-roletypes.h:
865 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
867 * cspi/spi-statetypes.h:
868 Added SPI_STATE_MANAGES_DESCENDANTS
870 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
871 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
872 * cspi/spi_accessible.c:
873 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
874 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
875 Accessibility_STATE_MANAGES_DESCENDANTS
876 * libspi/accessible.c:
877 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
878 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
879 As requested by Bill, I also cleaned up the alignment.
881 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
882 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
884 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
885 Accessibility_STATE_MANAGES_DESCENDANTS
886 * docs/reference/cspi/tmpl/spi_accessible.sgml:
887 Document changes reflecting modifications to roles.
888 * docs/reference/cspi/tmpl/spi_relation.sgml:
889 Document changes reflecting modifications to relations.
890 * docs/reference/cspi/tmpl/spi_stateset.sgml:
891 Document changes reflecting modifications to states.
893 2002-11-17 Bill Haneman <bill.haneman@sun.com>
896 Revved to 1.1.3, interface-age=3, binary-age=3.
900 Removed accessx-gui from the tests, since we have a nice
901 keyboard accessibility capplet now :-)
903 * test/keysynth-demo.c:
904 (increment_scan): removed do-nothing default: case,
907 * test/visual-bell.c:
908 (main) : removed do-nothing default: case,
912 (AccessibleAction_getKeyBinding_):
913 Documented keybinding string format.
917 (AccessibleText_getAttributes):
918 Documented the text attribute string format.
919 It's changed to use semicolon delimiters also,
920 to prevent clashes with CSS attributes, but the old
921 trick of looking for ", " strings will still work
922 (as unreliably as ever). Fix for bug related to 97916.
925 Include <cspi/bonobo/cspi-bonobo-listener.h>
927 (SPI_freeAccessibleKeySet):
928 (AccessibleKeystrokeListener_addCallback):
929 (AccessibleKeystrokeListener_removeCallback):
930 Modify to use AccessibleDeviceListener API internally,
931 instead of AccessibleKeystrokeListener.
933 * idl/Accessibility_Event.idl:
934 Added two more empty slots to EventListener (for a total of four).
936 * idl/Accessibility_Accessible.idl:
937 Added four empty slots to Accessible interface.
939 2002-11-15 Bill Haneman <bill.haneman@sun.com>
941 * idl/Accessibility_Registry.idl:
942 (KeyEventType, EventType):
943 Marked KeyEventType as deprecated; it duplicates
944 functionality of EventType, which has been extended to
945 include Mouse-button events.
946 (KeyEventTypeSeq): defined in terms of EventType.
947 (registerDeviceEventListener, deregisterDeviceEventListener):
948 New methods, for managing listeners to device events,
949 which potentially may consume them.
952 Added definition for AccessibleDeviceListener.
954 * cspi/spi-listener.h:
955 (enum AccessibleDeviceEventType):
956 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
957 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
958 for backwards compat.
959 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
960 and typedef'd AccessibleKeystroke to it for back-compat.
961 (AccessibleDeviceListenerCB):
962 New function prototype typedef.
965 (AccessibleDeviceEventMask): New typedef.
966 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
967 (AccessibleKeyMaskType):
968 Set equivalent to AccessibleModifierMaskType for back-compat.
969 (SPI_createAccessibleKeystrokeListener):
970 (AccessibleKeystrokeListener_unref):
971 Deprecated in favor of equivalent (better-named) new API below..
972 keystroke listeners are like all device listeners.
973 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
974 New API names for old features :-).
975 (AccessibleDeviceListener_addCallback):
976 (AccessibleDeviceListener_removeCallback):
977 (SPI_registerDeviceEventListener):
978 (SPI_deregisterDeviceEventListener):
982 (SPI_createAccessibleKeystrokeListener):
983 Use new preferred API, cspi_device_listener_new() and
984 cspi_device_listener_add_cb().
985 (AccessibleKeystrokeListener_removeCallback):
986 Use new preferred API, cspi_device_listener_remove_cb().
987 (AccessibleKeystrokeListener_unref):
988 Use new preferred API, cspi_device_listener_unref().
989 (SPI_createAccessibleDeviceListener):
990 (AccessibleDeviceListener_addCallback):
991 (AccessibleDeviceListener_removeCallback):
992 Implementation of new API.
994 * cspi/spi_registry.c:
995 (SPI_registerDeviceEventListener):
996 (SPI_deregisterDeviceEventListener):
997 Implementation of new API. Fixed memory leak and removed need to
998 allocate EventTypeSeq (thanks Michael for catching this).
999 Squashed a wayward CORBA_exception_free that shouldn't get called.
1001 * cspi/bonobo/cspi-bonobo-listener.c:
1003 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1004 (cspi_key_event): renamed to cspi_device_event().
1005 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1006 Extended to handle mouse button events as well as key events.
1007 (CSpiKeystrokeListener):
1008 Class superceded by CSpiDeviceListener.
1009 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1010 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1012 * cspi/bonobo/cspi-bonobo-listener.h:
1013 (CSpiKeystrokeListener):
1014 Class superceded by CSpiDeviceListener.
1015 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1016 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1018 * libspi/Makefile.am:
1019 Replaced keystrokelistener.h and keystrokelistener.c
1020 with devicelistener.h and devicelistener.c; keystrokelisener.h
1021 stub retained for back-compat.
1023 * libspi/keystrokelistener.c:
1027 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1029 * registryd/deviceeventcontroller.c:
1030 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1031 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1032 (DEControllerPrivateData): Added xkb settings data.
1033 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1034 button release events (which can't be captured via XGrabButton).
1035 Don't dispatch via the 'normal' event mechanism if the device event was
1037 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1038 Handle the typeseq data in its new location (see above).
1039 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1040 New methods, for "generic" device listeners.
1041 (spi_controller_register_device_listener):
1042 Now handle mouse event listeners as well as key listeners.
1043 (spi_controller_notify_mouselisteners):
1044 New internal method.
1045 (spi_device_event_controller_forward_mouse_event):
1046 Now we notify mouse device listeners as well as generating the
1047 non-consumable "mouse:" events.
1049 We must check and restore the XKB
1050 modifier map if we consume the event, since the act of triggering
1051 a mouse event will normally reset the XKB latch. This is required for
1053 (spi_controller_register_with_devices):
1054 Load the XKB settings when registering, and register for XKB
1055 state notify events.
1056 (spi_key_eventtype_seq_contains_event):
1057 Renamed spi_eventtype_seq_contains_event, since it's used
1058 internally for all device event types now.
1059 (spi_key_event_matches_listener):
1060 Uses spi_eventtype_seq_contains_event now.
1061 (spi_device_event_controller_object_finalize):
1062 Free the private data and the XkbKeyboard struct.
1063 (impl_register_device_listener, impl_deregister_device_listener):
1064 Implementation of new IDL.
1065 (spi_deregister_controller_device_listener):
1066 New internal method.
1067 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1068 More efficient implementation, we don't have to create a new
1069 XkbControls structure every time we query.
1070 (spi_device_event_controller_class_init):
1071 Initialize the epv entries for the new IDL. Assign the
1072 "spi-dec-private" quark.
1073 (spi_device_event_controller_init):
1074 Initialize the private data.
1075 (spi_device_event_controller_forward_key_event):
1076 Removed a bogus CORBA_exception_free() call.
1078 * registryd/deviceeventcontroller.h:
1079 Replaced inclusion of keystrokelistener.h with
1082 * test/event-listener-test.c:
1083 (report_mouse_event):
1086 Added mouse-event device listener.
1088 * test/test-simple.c:
1089 (create_test_window):
1090 Fixed regression (we were instantiating a GtkRange,
1091 which is now an abstract class). Also fixed to match
1092 existing AtkRole names, this seems to have changed in ATK
1093 awhile ago; too late now I think, and the new
1094 mechanism is at least elegant and consistent with the
1095 glib enum "nick" APIs.
1097 2002-11-15 Darren Kenny <darren.kenny@sun.com>
1099 * idl/Accessibility_Relation.idl:
1100 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
1101 RELATION_EMBEDS,RELATION_EMBEDDED_BY
1102 * idl/Accessibility_Role.idl:
1103 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
1104 * idl/Accessibility_State.idl:
1105 add STATE_MANAGES_DESCENDANTS
1106 * test/event-listener-test.c:
1107 Added a listener for active-descendant events.
1109 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
1111 * atk-bridge/bridge.c
1112 (atk_bridge_init): If application is Bonobo component wait until top
1113 level is added before registering
1114 (spi_atk_bridge_do_registration): New function which contains code,
1115 formerly in atk_bridge_init, to do application registration.
1116 (spi_atk_bridge_toplevel_added): Signal called when top level
1117 added to Bonobo component
1119 This fixes bug #83134.
1121 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
1123 * registryd/deviceeventcontroller.c
1124 Fixed compilation error caused by calling gettimeofday()
1127 2002-10-18 Bill Haneman <bill.haneman@sun.com>
1132 Added template for HAVE_XKB.
1135 Changes to check for XKB, and to set the HAVE_XKB #define if it
1138 * libspi/listener.c:
1139 ()impl_notify_event): Make failure to get event source name
1142 * registryd/deviceeventcontroller.c:
1143 (#include): include X11/XKBlib.h.
1144 (DEControllerPrivateData) : New struct.
1145 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
1147 (dec_synth_keycode_press) (dec_synth_keycode_release):
1148 New methods; split the key synthesis code into these methods.
1149 They check XKB settings before determining the "time" values to
1150 pass to Xtest; this fixes bug #95828.
1151 (impl_generate_keyboard_event): Changed to use methods above,
1152 instead of callng Xtest directly.
1153 (spi_device_event_controller_init): Initialize new privae struct s
1155 (spi_device_event_controllr_object_finalize):
1156 Free the (new) private data.
1158 * registryd/deviceeventcontroller.h:
1159 Add new gpointer to end of struct data.
1161 2002-10-16 Bill Haneman <bill.haneman@sun.com>
1164 Incremented revision to 1.1.2, SONAME is still '.so', library
1165 extensions are ".so.0.0.2".
1167 * registryd/deviceeventcontroller.c:
1168 FIXES FOR #93592 and #95940.
1169 (statics): renamed mouse_button_state to mouse_mask_state,
1170 added key_modifier_mask.
1171 (spi_dec_poll_mouse_moved):
1172 Added key modifier checks, and emit "keyboard:modifiers"
1173 events when the key modifiers currently in use change.
1174 Also generate "mouse:abs" events periodically, even if the mouse
1175 is stationary (should we?).
1176 Alternatively we could generate "mouse:abs" events for either all
1177 mouse movements, or every 'nth' mouse movement, or at the
1178 beginning and end of every "active" mouse period.
1180 * test/event-listener-test.c:
1181 (main): Added listener for "keyboard:modifiers" events.
1183 2002-10-15 Bill Haneman <bill.haneman@sun.com>
1185 * libspi/keymasks.h:
1186 Added key mask #defines for mouse buttons; e.g.
1187 SPI_KEYMASK_BUTTON1, etc.
1190 Incremented dependency on ATK to version 1.1.0. (This dependency
1191 is probably premature but will soon be real enough).
1193 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
1195 * libspi/hyperlink.[ch]
1196 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
1197 (get_hyperlink_from_servant): Check object is AtkHyperlink not
1200 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
1205 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
1207 * registryd/deviceeventcontroller.c
1208 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
1209 events to be ignored.
1210 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
1211 keyboard_mode so that XAllowEvents() can be called.
1215 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
1217 * cspi/spi-accessible.c: Correct names of roles returned by
1218 AccessibleRole_getName(). Fixes bug #95055.
1220 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
1222 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
1225 * registryd/registry.c
1226 (desktop_remove_application: Write diagnostic message to stderr for
1229 (impl_accessibility_registry_deregister_global_event_listener):
1230 Correct size of lists array. This addresses bug #94555).
1232 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
1234 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
1237 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
1239 * registryd/Makefile: Add CLEANFILES so that .server file is removed
1242 * registryd/registry.c (impl_registry_notify_event): Remove
1243 unnecessary call to parser_event_type().
1245 * docs/reference/cspi/tmpl/spi_component.sgml:
1246 Add reference to SPI_LAYER_WINDOW.
1248 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
1250 * registryd/registry.c
1251 (desktop_add_application): Remove leak.
1252 (desktop_remove_application): Remove leak.
1253 (parser_event_type): Remove leak.
1255 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
1257 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
1258 bogus call to CORBA_string_dup(). Also removed unnecessary
1259 g_string_dup/g_free calls.
1261 2002-09-13 Bill Haneman <bill.haneman@sun.com>
1263 * registryd/deviceeventcontroller.c:
1264 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
1266 * test/event-listener-test.c:
1267 main: commented out three redundant listeners, to reduce output
1268 noise. (They still are potentially useful for testing).
1271 2002-09-13 Michael Meeks <michael@ximian.com>
1273 * Update all the copyrights to include Ximian.
1275 2002-09-06 Mark McLoughlin <mark@skynet.ie>
1277 * cspi/spi.h: add SPI_LAYER_WINDOW.
1279 * cspi/spi_component.c: (AccessibleComponent_getLayer):
1280 add Accessibility_LAYER_WINDOW case.
1282 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
1284 * libspi/component.c: (impl_accessibility_component_get_layer):
1285 add ATK_LAYER_WINDOW case.
1287 2002-08-28 Bill Haneman <bill.haneman@sun.com>
1289 * configure.in: incremented micro version.
1291 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
1293 2002-08-20 Bill Haneman <bill.haneman@sun.com>
1296 Clarified and reworded our commit policy.
1299 Started an API "todo" addition list for 2.2.
1302 (impl_getSelection):
1303 Free char pointer from atk_text_get_selection, which was being leaked.
1305 2002-08-19 Bill Haneman <bill.haneman@sun.com>
1308 Small revision to author acknowledgement.
1310 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
1312 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
1313 If signal has detail add it to the type of the event.
1316 2002-08-12 Michael Meeks <michael@ximian.com>
1318 * test/test-simple.c (global_listener_cb): bin bogosity.
1319 (test_keylisteners): disable, still doesn't work reliably,
1320 certainly not on my system anyway.
1322 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
1323 don't leak a reference on the DEC. This round-trip
1324 fetching of the DEC per keystroke sucks, it should be
1327 * cspi/spi-private.h,
1328 * cspi/cspi-lowlevel.h,
1329 * cspi/bonobo/cspi-bonobo-listener.[ch],
1330 * cspi/bonobo/cspi-bonobo.c: get the copyright
1331 notices better - there is still a large amount of
1332 work in at-spi falsely attributed solely to Sun.
1334 * cspi/spi_main.c (cspi_object_ref): kill bogus
1335 hash lookup, just increment the ref.
1336 (SPI_freeString): make explicit the fact that we
1337 handle NULL strings just fine.
1338 (report_leaked_ref): obey coding standards.
1339 (cspi_object_hash, cspi_object_equal): kill retval.
1340 (cspi_object_release): only release if not on loan.
1341 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
1342 (cspi_object_borrow, cspi_object_return): impl.
1344 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1345 use cspi_object_borrow / return.
1347 2002-08-12 Darren Kenny <darren.kenny@sun.com>
1349 * cspi/bonobo/cspi-bonobo-listener.c:
1351 Don't call cspi_oject_new() because this is creating a new Accessible
1352 every single time that an event is fired. This causes ATs like at-poke
1353 to nolonger recognise the source of the event and thus ignore it.
1354 Re-use the object from the cache, ref it and then unref it after the
1355 listeners have been called.
1357 2002-08-06 Darren Kenny <darren.kenny@sun.com>
1359 * test/event-listener-test.c:
1360 Added command-line options to disable mouse events (m) and
1363 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
1365 * configure.in: Update required versions of ATK, GTK+ and GAIL
1367 * cspi-1.0.pc.in: Add dependency for X include files
1370 * cspi/bonobo/Makefile.am:
1371 Add $(X_CFLAGS) so that X include files
1372 are picked up even if not in standard place (bug #71686)
1374 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1376 * registryd/deviceeventcontroller.c: fix for 84261
1377 (spi_dec_mouse_moved):
1378 Added test of mouse button mask, so that we can detect mouse
1379 button release. Unfortunately we can't otherwise detect mouse
1380 button release events without consuming the mouse press event,
1381 because of the way XGrabButton works. This means that our mouse
1382 release events have a latency dependent on the polling period
1383 while the mouse button is down. At least in this case we only
1384 have to poll while the button is down, and not at other times.
1385 If the button masks don't match with what the last press event
1386 reported, we report the appropriate button release event.
1387 (spi_dec_ungrab_mouse):
1388 New method (not yet called).
1389 (spi_device_event_controller_forward_mouse_event):
1390 New method, sends mouse press event from GdkFilter.
1391 (spi_dec_init_mouse_listener):
1392 Added code to call XGrabButton, redirecting mouse button events to
1393 the root window and our Gdk event loop.
1395 Added code to filter mouse button events, and reordered.
1397 * test/event-listener-test.c:
1399 Added registration for mouse events of type "mouse:button".
1401 2002-06-25 Bill Haneman <bill.haneman@sun.com>
1403 * registryd/deviceeventcontroller.c: partial fix for 84261
1404 (spi_dec_poll_mouse_idle):
1405 New method, a timeout which checks to see if the mouse
1407 (spi_dec_poll_mouse_moving):
1408 A timeout to be called when mouse motion is underway.
1409 (spi_dec_poll_mouse_moved):
1410 A method which fires an event if the mouse has moved, and reports
1411 whether or not it did so.
1412 (spi_dec_init_mouse_listener):
1413 A method which sets up the timeouts above.
1414 (spi_device_event_controller_new):
1415 Now calls spi_dec_init_mouse_listener.
1417 * registryd/registry.c:
1418 (spi_registry_init):
1419 Now we initialize the device event controller when the registry is
1420 initialized, instead of waiting until a client has requested a key
1421 event notification; this is because we need the event controller
1422 for mouse events, but the mouse event registration API is a
1423 "registry" call and doesn't explicitly call the
1424 deviceeventcontroller.
1425 We now report mouse motion events with a 100 ms idle latency and
1426 a 20 ms granularity when motion is in progress.
1428 * test/event-listener-test.c:
1430 We now register the "detail listener" for events of type
1431 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
1432 delivered only for the first mouse event received, and thereafter
1433 "mouse:abs" events are delivered.)
1435 * cspi/spi_registry.c:
1436 DOCS: Documented the above mouse event typestrings.
1438 2002-06-21 Bill Haneman <bill.haneman@sun.com>
1440 Happy Summer Solstice...
1442 * registryd/deviceeventcontroller.c: [fix for bug 84100]
1443 (spi_controller_notify_keylisteners):
1444 Changes to remove a listener from the listener list, freeing its
1445 open keygrabs, if a notification to that listener fails. This
1446 means that although a dead listener can continue to hold a passive
1447 keygrab, a maximum of one dispatch to such a listener can fail
1448 before the listener is removed from the list, thus the keygrab
1449 will be released on the next occurrence.
1450 As part of this fix:
1451 (spi_notify_keylisteners):
1452 Renamed to spi_controller_notify_keylisteners, as the controller
1453 instance must now be passed as an argument.
1454 The copied 'notify' GList is now a list of DEControllerKeyListener
1455 objects, since we need more than just the CORBA reference if a
1456 notify fails and we need to deregister the listener.
1457 (impl_notify_listeners_sync):
1458 (impl_notify_listeners_async):
1459 (spi_device_event_controller_forward_key_event):
1460 Modify use of notify_keylisteners in accordance with above
1462 (spi_deregister_controller_key_listener):
1463 New method introduced by refactoring, from
1464 impl_deregister_keystroke_listener.
1465 (impl_deregister_keystroke_listener):
1466 Call spi_deregister_controller_key_listener.
1467 (spi_key_listener_clone):
1468 New method to copy a key listner without doing a 'ref' on the
1469 remote object instance; used to create a notifier list.
1470 (spi_key_listener_data_free):
1471 New method, frees data without unreffing the source.
1473 (spi_key_listener_clone_free): new method.
1474 (spi_key_listener_free):
1475 refactored to call spi_key_listener_data_free.
1477 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1479 * registryd/registry.c: [fix for bug 86048]
1480 (notify_listeners_cb):
1481 Clear CORBA system exceptions which occur when notifying
1482 listeners, before returning to the source of the original event,
1483 since the event source doesn't care if the relayed notify failed.
1484 In other words, don't complain to the atk-bridge if the registry
1485 could not notify all its listeners, that's no fault of the
1486 application and thus should not appear to be an error from the
1487 application's perspective.
1489 * cspi/spi_main.c: [fix for bug 85980]
1491 Replaced use of bonobo_object_dup_ref with call to the wrapper
1492 method, csou_dup_ref (); this silences a compiler warning and
1493 provided more portability.
1495 Ping the registry before return, and restart if necessary.
1497 * cspi/bonobo/cspi-bonobo.c:
1499 New internal method.
1501 Fixed this method to return an object reference, as it should have
1504 * cspi/cspi-lowlevel.h:
1505 Added internal definition for cspi_ping() and fixed
1506 return type of cspi_dup_ref().
1509 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1511 * atk-bridge/bridge.c: [fix for bug 85305]
1512 (spi_atk_bridge_register_application):
1513 New method where the initial application registry calls have been
1514 moved; it allows an application to re-register in response to
1515 certain error conditions (such as a registry restart, see below).
1517 Moved some initialization code to the method
1518 spi_atk_bridge_get_registry, below.
1519 (spi_atk_bridge_get_registry):
1520 New, private accessor function for the Accessibility_Registry
1521 instance. If the registry has not been started before, or has
1522 died (as detected by failure of a CORBA exception), it is
1523 restarted before return, and spi_atk_bridge_register_application
1524 is called again to register with the new bridge instance.
1525 (spi_atk_emit_eventv):
1526 Set registry_died on error; use spi_atk_bridge_get_registry () to
1527 access the registry.
1529 * registryd/registry.c:
1530 (impl_accessibility_registry_register_global_event_listener):
1531 Set listener's event_type_quark to etype.minor instead of
1532 etype.major (fix for bug 84856).
1534 * test/event-listener-test.c:
1535 (report_detail_event):
1536 Change the output string so that user/tester can tell that the
1537 'detail listener' was called instead of the 'generic listener'.
1539 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1541 Fixes for bugs 84900, 84908, 84897, 84898.
1546 Revved version to 1.1.0
1547 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1548 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1550 * idl/Accessibility_Registry.idl:
1551 (EventListener::notifyEvent):
1552 Removed 'oneway' directive after extensive consulation with
1553 ORBit2 team and others. This means also that unref() of the event
1554 source can and should be done synchronously after emission, rather
1555 than remotely in the client, after servicing the notify call on
1558 NOTE: This change speeds up listener performance considerably, but
1559 introduces new latency on the application side. We may want to
1560 add an event queue to the atk-bridge.
1562 * atk-bridge/bridge.c:
1563 (spi_atk_bridge_focus_tracker):
1564 Do a local unref() on the event source after emission.
1566 * registryd/registry.c:
1567 (desktop_remove_application):
1568 Do an unref() on the event source after emission.
1569 (desktop_add_application):
1570 Do an unref() on the event source after emission.
1571 (notify_listeners_cb):
1572 When relaying an event, don't automatically add the event source
1573 to the local object cache, just CORBA_dup it instead. Likewise,
1574 if this method reenters, release the ref rather than calling
1576 (impl_registry_notify_event):
1577 No longer call remote unref() on the event source after dispatch.
1579 * libspi/eventlistener.c:
1580 (impl_accessible_event_notify_event):
1581 Removed remote unref ()
1583 * cspi/bonobo/cspi-bonobo-listener.c:
1585 We now call cspi_object_new() instead of cspi_object_add() on
1586 receipt of an event; thus we only have an implicit object ref
1587 while the cspi_event method is being executed. If we need to keep
1588 a reference to the object, the listener must call ref() on the
1589 object. Thus also we don't need to call cspi_object_unref() after
1590 invoking the listener callbacks in this method.
1594 New internal API for creating a new cspi object, without adding it
1595 to the object cache.
1597 Now uses cspi_object_new() to create the cspi object instance.
1599 Now checks to see if the object is in the internal object cache,
1600 and adds it if necessary before incrementing its refcount (note
1601 that new objects are added with a refcount of 1).
1602 (report_leaked_ref):
1603 New method which gives some information on leaked object instances
1604 if leak detection is turned on.
1606 * test/event-listener-test.c:
1607 (timing_test_event):
1608 New method, used for testing event delivery timing for special
1609 events of type "object:test". It reports elapsed time and
1610 events/sec every 500 events.
1612 Added a new listener, 'test listener', to check timing of event
1613 receipt as noted above.
1615 Added some timing output here also, reports elapsed time every 100
1618 * test/stress-test.c:
1619 Emit events of type "object:test", for use with "event-listener-test".
1621 * test/test-simple.c:
1622 (global_listener_cb):
1623 Call Accessible_ref() on the event source before calling
1624 validate_accessible, since the validation process does pointer
1625 comparisons on the event source, meaning that the event source
1626 needs to be added to the local object cache first. Any use of
1627 such pointer comparisons between Accessible objects requires that
1628 the caller hold an explicit reference to those objects.
1629 We also must therefore call Accessible_unref() when leaving this method.
1631 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1633 * registryd/deviceeventcontroller.c:
1634 (spi_controller_update_key_grabs):
1635 Fix for #84735, subsequent keygrab listeners not informed of
1636 registration failure.
1639 (spi_base_construct):
1640 Add an assertion on construct, to make sure the GObject passed in
1641 is really a GObject.
1643 Explicitly initialize object->gobj pointer to NULL;
1645 * cspi/bonobo/cspi-bonobo-listener.c:
1646 (cspi_object_add_ref):
1647 New method, can specify whether to dup-ref a bonobo object passed
1648 in if it's newly added to the object cache.
1650 Now calls cspi_object_add_ref with second param of "FALSE". This
1651 prevents us from doing a pointless dup-ref followed by
1652 release-unref for all those cases where the object is already in
1653 our object cache (fix for #85205).
1655 * atk-bridge/bridge.c:
1656 (spi_atk_bridge_idle_init):
1657 Removed this method, we don't need to initialize in an idle
1660 Changed to call spi_atk_register_event_listeners directly, not via an
1661 idle handler. (fix for #81139)
1662 (gnome_accessibility_module_shutdown):
1663 Removed conditional around deregistration of listeners, since we
1664 don't use the idle handler and thus have always registered when
1666 (spi_init_keystroke_from_atk_key_event):
1667 Changed references to Accessibility_KEY_PRESSED to
1668 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1670 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1672 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1677 * test/stress-test.c:
1680 (may have been an incomplete commit yesterday?)
1682 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1685 Added target for new stress-test.
1687 * test/stress-test.c:
1688 New test, sends 1000 focus notifies in quick succession.
1690 * test/key-listener-test.c:
1691 Now we report whether a keylistener registration
1692 request succeeded or failed.
1694 * test/event-listener-test.c:
1695 Uncommented some listeners which are now implemented.
1698 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1700 * registryd/deviceeventcontroller.c:
1701 (spi_controller_update_key_grabs):
1702 Fix for #82509, lack of failure notification when
1703 ALL_WINDOWS keygrabs fail due to XGrabKey
1704 failure: we synchronize the server when
1705 registering a passive grab, to make sure we get the
1706 error message before the call returns.
1708 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1710 * test/test-simple.c:
1712 Removed #ifdef KEY_IMPL_WORKS guards.
1713 (test_keylisteners):
1714 Removed #ifdef KEY_IMPL_WORKS guards.
1715 Fixed bug which was causing a hang waiting for a
1716 "press" event (which was already overwritten by a "release"
1717 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1719 Added code to set globals 'key_press_received' and
1720 'key_release_received'.
1723 Added section "1.1 API Proposed Additions" which
1724 lists API additions desired for at-spi-1.1 (only one so far).
1725 Updated TODO list a little.
1727 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1729 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1732 * configure.in: Revved to 1.0.0.
1734 * idl/Accessibility_Registry.idl:
1735 (registerKeystrokeListener):
1736 Added boolean return value.
1738 * registryd/registry.c:
1739 (notify_listeners_cb): Minor fix to debug output.
1741 * registryd/Accessibility_Registry.server.in.in:
1742 Revved version number in OAFIID to 1.0.
1744 * registryd/registryd.c:
1746 Use new OAFIID version.
1748 * cspi/bonobo/cspi-bonobo.c:
1750 Use new OAFIID version.
1756 * atk-bridge/bridge.c:
1758 Use new OAFIID version.
1760 * registryd/deviceeventcontroller.c:
1761 (impl_register_keystroke_listener):
1762 Added CORBA_boolean return value.
1763 (spi_controller_register_device_listener):
1764 Added gboolean return value.
1765 (spi_controller_register_global_keygrabs):
1766 Added gboolean return value.
1767 (spi_key_set_contains_key):
1768 Added implementation for many more control keys,
1769 for instance F1-F12, arrow keys, End, Home, Page_Up,
1771 [TODO: some still not implemented].
1773 * text/screen-review-test.c:
1774 (text_chunk_pad_string):
1775 New function: it provides mapping between coordinate
1776 positions of text chunks and character positions in the
1777 screen-review-line output string.
1778 (text_chunk_to_string):
1779 New function, calls text_chunk_pad_string with various
1780 pad/delimiter characters. Pushbuttons are delimited with
1781 square brackets, Frames with vertical 'pipe' lines, and
1782 other text with double quotes.
1783 (text_chunk_list_to_string):
1784 Calls new function text_chunk_to_string.
1785 (toplevel_composite):
1786 New function to composite layers CANVAS through
1787 POPUP in each toplevel (other layers are composited
1788 across toplevels, i.e. BACKGROUND and OVERLAY).
1789 (review_buffer_composite):
1790 Revise to use new methods.
1796 2002-05-31 Laszlo Peter <laca@sun.com>
1798 * configure.in: add the Xtst libdir to the runpath on Solaris,
1799 since it's not in the default library search path.
1801 2002-05-29 jacob berkman <jacob@ximian.com>
1803 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
1805 2002-05-29 Bill Haneman <bill.haneman@sun.com>
1807 * test/screen-review-test.c:
1808 (text_chunk_pad_string):
1809 Added method, which pads the string according to the
1810 text bounds of the chunk. It also takes a 3-character
1811 string as a param which indicates the characters to be
1812 used for start, padding, and end delimitation of the chunk.
1813 (text_chunk_to_string):
1814 Changed to use text_chunk_pad_string.
1816 * configure.in: Fixed bug in AC_OUTPUT that was
1817 causing path substitution in Accessibility_Registry.server
1820 2002-05-23 Bill Haneman <bill.haneman@sun.com>
1822 * text/screen-review-test.c:
1823 (guess_string_clip):
1824 New method which attempts a best-guess at clipping
1825 text from components (like Java labels) which don't
1826 actually implement AccessibleText. This inaccurate
1827 clip is based on the assumption that the label is
1828 justified left-and-right, and monospaced.
1829 (text_chunk_get_clipped_string):
1830 We now call guess_string_clip() for text-containing
1831 components that don't implement AccessibleText.
1833 * test/screen-review-test.c:
1834 (review_buffer_get_text_chunk):
1835 We now pull "name" from labels if they do not implement
1836 AccessibleText (i.e. for Java labels).
1837 (get_screen_review_line_at):
1838 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
1841 Replaceded AC_OUTPUT target
1842 registryd/Accessibility_Registry.server with
1843 registryd/Accessibility_Registry.server.in.
1845 * registryd/Accessibility_Registry.server.in:
1846 Removed (this is now a Makefile target).
1848 * registryd/Accessibility_Registry.server.in.in:
1849 Added (source for target above). We now use $(libexecdir) as
1850 prefix for the executable at-spi-registryd.
1852 * registry/Makefile.am:
1853 Now install at-spi-registryd into $(libexecdir), and build .server
1854 file with path (see above).
1856 2002-05-22 Bill Haneman <bill.haneman@sun.com>
1858 * test/screen-review-test.c:
1859 (text_chunk_get_clipped_string):
1860 We now check to see if words fall within clip bounds
1861 before resorting to character-by-character clip bounds testing.
1863 * TODO: Added a section for "2.2 Proposed API Additions".
1865 2002-05-21 Bill Haneman <bill.haneman@sun.com>
1867 * test/screen-review-test.c:
1869 Added a screen review benchmarking and test program to test
1872 * cspi/spi_accessible.c:
1874 Made some of the debug strings passed to cspi_check_ev a
1875 little more specific.
1877 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
1879 * test/screen-review-test.c: Fix crashes in debug statements
1881 2002-05-20 Bill Haneman <bill.haneman@sun.com>
1883 * test/screen-review-test.c: Added this file.
1885 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1887 * atk-bridge/bridge.c: changed "object:state-change" to
1888 "object:state-changed" to match docs.
1890 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1892 * atk-bridge/bridge.c: Hooked up state-change event details.
1894 2002-05-11 Bill Haneman <bill.haneman@sun.com>
1896 * registryd/registry.c:
1897 Fixed quarking bug in event string parsing; now events with
1898 detail parameters get matched correctly to listeners.
1901 * util/idl/Magnifier.idl: remove.
1903 * util/*.[ch]: Remove.
1904 Magnification utilities and IDL are now in module gnome-mag.
1906 2002-05-10 Bill Haneman <bill.haneman@sun.com>
1908 * registryd/deviceeventcontroller.c:
1909 Fixed bug in grab key conversion which was causing keycode grabs
1910 to be converted to AnyKey grabs.
1913 updated NEWS file to reflect recent spin-off of gnome-mag.
1915 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
1917 * cspi/spi_accessible.c: Added exception checks. Fixed completely
1918 busted AccessibleStateSet_compare. Removed redundant casts.
1920 * cspi/spi-action.c: Removed redundant casts.
1922 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
1924 * cspi/spi_component.c: Fixed typos and casting error.
1926 * cspi/spi_editabletext.c: Removed redundant casts.
1928 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
1930 * cspi/spi_hypertext.c: Eliminated redundant casts.
1932 * cspi/spi_image.c: Eliminated redundant casts.
1934 * cspi/spi_registry.c: Eliminated redundant casts.
1935 SPI_deregisterGlobalEventListenerAll () removed retval variable.
1936 * cspi/spi_selection.c: Removed redundant casts.
1937 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
1938 handling. Screen geometry and text offsets were being returned as 0
1939 on error which is technically valid-- changed these to return -1.
1940 Added marshaller for text boundary types to fix bug with boundary
1941 types being passed incorrectly to atk.
1943 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1946 * cspi/spi_registry.c:
1947 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
1948 which was uncovered by the recent key changes.
1950 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1952 * test/event-listener-test.c:
1954 Added new test, "event-listener-test";
1955 this code does two things; it benchmarks traversal time
1956 for the accessible hierarchy for the first running accessible
1957 app, and it connects listeners for all supported event types.
1958 It is thus useful as an example event listener and for
1959 diagnostics/debugging of event generation.
1961 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1964 Removed unnecessary dependency on libutil.
1967 Revved micro version: 0.13.1
1969 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1972 Removed util/Makefile from targets.
1975 Removed util subdir from SUBDIRS (temporarily,
1976 pending removal of magnifier-only code
1980 #ifdef-ed out magnifier dependencies, since
1981 magnifier IDL, headers, and binary now live in
1982 module gnome-mag and we don't want at-spi to depend
1983 on gnome-mag. A magnifier demo which can run alongside
1984 simple-at is forthcoming in the gnome-mag module.
1986 NOTE: Split magnifier binary, IDL, and magnification
1987 activation code from at-spi into module gnome-mag.
1989 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
1991 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
1992 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
1994 2002-05-03 Bill Haneman <bill.haneman@sun.com>
1997 Revved to version 0.13.0
1999 * idl/Accessibility_Registry.idl:
2000 Changed definition of KeySet from sequence of longs to sequence of
2001 KeyDefinitions, and added KeyDefinition struct.
2002 Required for fix to bug 80616.
2004 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2005 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2006 to use new definition (see above).
2008 * registryd/deviceeventcontroller.c: handle_keygrab(),
2009 spi_keyset_contains_key():
2010 Changed to make use of new struct; this allows matching based on
2011 string key-name, for instance "Tab". This also allows matching of
2012 composed characters, non-alphanumeric characters in a way that
2013 doesn't involve dependencies on X keysym codes directly, etc.
2015 * test/key-listener-test.c:
2016 Added test for Alt-Tab key using "string" specification of keyset,
2017 and modified one of the tests to use a keycode-based keyset.
2018 Thus this test both tests and demonstrates the creation and use of
2019 keysets of three forms: specified via keycode array,
2020 keysym array, and string array. (The string case only contains a
2021 single string, i.e. a string array of length 1).
2024 Turned on PRINT_TREE option by default. Also fixed a
2025 string-freeing bug in the PRINT_TREE code.
2026 Added a listener to window:minimize events.
2028 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2030 * atk-bridge/bridge.c:
2031 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2032 for window:activate and window:deactiveate
2033 (atk_bridge_property_event_listener atk_bridge_signal_listener
2034 atk_bridge_window_event_listener) Tidy debug code
2036 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2038 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2039 Fixed handling for NULL return value from ATK.
2041 * libspi/action.c libspi/component.c libspi/editabletext.
2042 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2043 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2044 Removed redundant casts.
2046 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2047 Fixed off by one bug.
2049 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2050 function not present in idl)
2052 2002-05-02 jacob berkman <jacob@ximian.com>
2054 * atk-bridge/Makefile.am: make atk-bridge a real module
2056 2002-04-26 Radek Doulik <rodo@ximian.com>
2058 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2059 atk_state_types table
2061 2002-04-22 jacob berkman <jacob@ximian.com>
2064 * libspi/Makefile.am: add deps on the built files to help
2065 automake, and don't version the ORBit typelib
2067 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2069 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2070 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2071 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2072 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2073 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
2074 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
2075 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
2076 libspi/accessible.h libspi/accessible.h libspi/base.h
2077 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
2078 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
2079 libspi/relation.h libspi/remoteobject.h libspi/selection.h
2080 libspi/spi-private.h libspi/statetset.h libspi/table.h
2081 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
2082 util/mag_client.h util/mag_control.c util/mag_image.c
2083 util/mag_image.h util/magnifier.c util/magnifier.h:
2084 Add missing file headers; standardize existing ones
2086 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
2088 * atk-bridge/bridge.c: Added window event support.
2090 2002-04-18 Michael Meeks <michael@ximian.com>
2092 * libspi/relation.c (impl_getNTargets): impl.
2093 (impl_getTarget): impl.
2095 * libspi/Makefile.am: fix stateset install.
2097 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2100 Started putting useful info in this file.
2102 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
2104 * atk-bridge/bridge.c:
2105 Propagate state-changed notifications to ATs
2107 * cspi/spi_registry.c: update docs to reflect actual behavior of
2108 state-change events.
2110 2002-04-17 Bill Haneman <bill.haneman@sun.com>
2113 Incremented version to 0.12.1
2115 * util/mag_client.h:
2116 Add missing declaration for magnifier_exit,
2117 used by mag_control.c - Forte compiler didn't like
2118 the implicit redeclaration of the function :-(
2121 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2124 Revved version to 0.12 due to API change (see below).
2126 * cspi/spi-roletypes.h:
2127 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
2128 definition from the inline docs, and added docs
2129 for SPI_ROLE_LAST_DEFINED.
2132 * cspi/spi_streamablecontent.c:
2133 Added missing seek_type parameter to
2134 (so far unused) method,
2135 AccessibleStreamableContent_seek().
2136 [ RT approval JodyG. ]
2139 Fixed docs for SPI_createAccessibleKeystrokeListener.
2141 * cspi/spi_registry.c:
2142 Fixed docs for SPI_KEYSET_ALL_KEYS.
2144 * docs/reference/cspi/at-spi-cspi-sections.txt:
2145 Added a number of missing APIs to SECTIONS.
2147 2002-04-16 Bill Haneman <bill.haneman@sun.com>
2149 * registryd/Makefile.am:
2151 * cspi/bonobo/Makefile.am:
2152 Add $(X_LIBS) to makefiles.
2154 2002-04-15 Bill Haneman <bill.haneman@sun.com>
2157 Revved version to 0.11.
2159 * libspi/component.c:
2160 Added implementation for grabFocus.
2162 * idl/Accessibility_Component.idl
2163 (Accessibility_Component_grabFocus):
2164 Made this method return boolean to indicate success or failure, to
2165 be consistent with cspi and the corresponding ATK method.
2167 * idl/Accessibility_Selection.idl
2168 (Accessibility_Selection_selectAll) :
2169 Made these methods return boolean to indicate success or
2170 failure, to be consistent with cspi and the corresponding ATK methods.
2172 * idl/Accessibility_EditableText.idl
2173 (Accessibility_EditableText_setTextContents,
2174 Accessibility_EditableText_insertText,
2175 Accessibility_EditableText_cutText,
2176 Accessibility_EditableText_deleteText,
2177 Accessibility_EditableText_pasteText):
2178 Made these methods return boolean to indicate
2181 * cspi/spi_editabletext.c:
2182 Made these methods return booleans.
2184 * libspi/selection.c:
2185 * libspi/component.c:
2186 * libspi/editabletext.c:
2187 Connected the boolean returns from ATK
2188 to the server-side code referenced above.
2190 2002-04-14 Bill Haneman <bill.haneman@sun.com>
2192 * idl/Accessibility_Table.idl: Added missing methods,
2193 Accessibility_Table_addRowSelection,
2194 Accessibility_Table_addColumnSelection,
2195 Accessibility_Table_removeRowSelection,
2196 Accessibility_Table_removeColumnSelection.
2199 Added C wrappers for above IDL:
2200 AccessibleTable_addRowSelection,
2201 AccessibleTable_addColumnSelection,
2202 AccessibleTable_removeRowSelection,
2203 AccessibleTable_removeColumnSelection.
2206 Added server-side implementation code for IDL above, connecting
2207 to pre-existing ATK api.
2209 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
2211 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
2213 * libspi/accessible.c: Added implementation fo
2214 Accessibility_Accessible_get_state.
2216 * libspi/libspi.h: Added stateset.h to the list of includes.
2218 * libspi/stateset.c: Fixed broken implementation.
2220 2002-04-13 Bill Haneman <bill.haneman@sun.com>
2223 Added implementation code for Accessibility_Magnifier_exit ().
2225 * util/mag_control.c:
2226 Added test code for above method; you can
2227 now kill an existing magnifier via
2228 ./mag_control q, from the util directory.
2230 * test/key-listener-test.c:
2232 Added a new test, for our key listener API.
2234 2002-04-11 Bill Haneman <bill.haneman@sun.com>
2236 * test/app.c, test/keysynth-demo.c:
2238 Replace use of snprintf with g_snprintf.
2239 (fix for bugzilla 78249)
2241 2002-03-27 Michael Meeks <michael@ximian.com>
2245 * util/Makefile.am (INCLUDES): fix.
2246 (DONT_DIST_SOURCE): don't distribute the
2249 * libspi/Makefile.am (dist-hook): ditto.
2251 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
2253 * libspi/hypertext.c:
2254 Fix warnings when yelp is used with atk-bridge
2256 2002-03-21 Michael Meeks <michael@ximian.com>
2258 * libspi/application.c (spi_application_new):
2259 use spi_accessible_construct so we use the AtkObject
2262 2002-03-19 Michael Meeks <michael@ximian.com>
2264 * registryd/registry.c (desktop_remove_application),
2265 (desktop_add_application): clean coding style.
2267 * registryd/desktop.c (spi_desktop_remove_application),
2268 (spi_desktop_add_application): kill re-enterency hazards.
2269 (spi_desktop_dispose): remove bogus redundant cast
2270 obscuring bug; fix bug too.
2271 (spi_desktop_init): make the desktop object immortal.
2273 2002-03-16 Bill Haneman <bill.haneman@sun.com>
2276 Added a #define-guarded tree-traversal step
2277 when enumerating the apps (diagnostic tool).
2279 2002-03-15 Bill Haneman <bill.haneman@sun.com>
2281 * idl/Accessibility_Role.idl:
2282 Added ROLE_DRAWING_AREA which seemed to be missing from the
2285 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2287 * cspi/spi-roletypes.h cspi/spi_accessible.c
2288 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
2291 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
2292 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
2293 AT when applications are added and removed from the desktop. This
2294 reverts the previous broken implementation using the backing
2295 AtkObject for the SpiDesktop.
2297 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2299 * registryd/desktop.c: emit the "children-changed::add" and
2300 "children-changed::remove" signals on the backing ATK object for
2301 the desktop so AT can tell when applications are started and shut
2304 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2306 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
2308 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
2310 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
2312 * cspi/spi_accessible.c: Implemented c bindings for stateset support
2314 * cspi/state-types.h: synched with IDL and ATK
2316 2002-03-13 Bill Haneman <bill.haneman@sun.com>
2318 * libspi/accessible.c
2319 (impl_accessibility_accessible_get_child_at_index):
2320 Change return value for g_return_if_fail ()
2321 to CORBA_OBJECT_NIL instead of "0" (!)
2323 * registryd/Makefile.am:
2324 * registryd/Accessibility_Register.server.in:
2325 Changed name of executable, "registryd",
2326 to something more informative:
2329 2002-03-13 Michael Meeks <michael@ximian.com>
2331 * atk-bridge/bridge.c (atk_bridge_init): don't register
2332 if we're in a bonobo-component, rather than a bonobo app.
2334 2002-03-13 Michael Meeks <michael@ximian.com>
2336 * atk-bridge/bridge.c (gtk_module_init): split
2337 out body to (atk_bridge_init): here, since otherwise
2338 we get symbol conflicts and oddness when invoked
2339 from (gnome_accessibility_module_init): here (upd.)
2341 2002-03-11 Bill Haneman <bill.haneman@sun.com>
2344 New file. Explicitly allow "build sheriff" putbacks provided
2345 they are tested on Solaris.
2347 * docs/reference/cspi/Makefile.am:
2348 Added '-' to the "cp" command for index.sgml.
2349 ("patch by thomasvs, soon coming to a GUADEC near you")
2352 Incremented version number (0.9.0) for new release.
2353 Changed macro that checks for popt, to better detect
2354 obsolete versions of popt.
2357 Added X_LIBS to AC_SUBST, for applications
2358 that call Xlib API directly.
2361 2002-03-07 Bill Haneman <bill.haneman@sun.com>
2364 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
2367 Fix regression caused by hard-coding major
2368 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
2371 * test/test-simple.c (test_editable_text),
2372 (test_test): revert previous change (error was
2373 a regression in gail which is now fixed).
2375 2002-03-04 Michael Meeks <michael@ximian.com>
2377 * test/test-simple.c (test_editable_text),
2378 (test_text): pass G_MAXINT instead of '-1' for
2379 whole string - is this a good thing !?
2381 * cspi/spi_accessible.c
2382 (Accessible_getRelationSet): fix crasher bug
2383 overwriting the end of the array.
2385 * test/test-simple.c (validate_accessible): free,
2386 not g_free returned relation set.
2388 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
2390 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
2391 implemented stateset support
2393 * idl/Accessibility_State.idl: Made necessary changes to
2394 the IDL to support state sets.
2396 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2398 * registryd/deviceeventcontroller.c:
2399 Added implementation for generateMouseEvent.
2401 * cspi/spi_registry.c:
2402 Connected new implementation for generateMouseEvent
2405 2002-02-12 Bill Haneman <bill.haneman@sun.com>
2408 Incremented revision (but no change in public API
2409 outside of 'utils', which are not installed public yet.)
2411 * libspi/component.c:
2412 Changed to use atk_component API for layers and
2413 mdi_zorder, instead of deprecated atk_object API.
2415 Magnification Utility Enhancements:
2418 Added implementation of createZoomRegion, clearAllZoomRegions,
2419 resizeZoomRegion. Added new commandline argument
2420 "--no-initial-region". Note that clearAllZoomRegions doesn't
2421 unmap the old '0' region as it should (yet), and the other
2422 methods only work when creating/resizing a single region,
2423 which is "region 0".
2424 (Code for multiple region support will be added later.)
2427 Now we raise the magnifier window each time it's refreshed;
2428 this will help keep it on top.
2430 * util/mag_client.h:
2431 Added simple wrappers for above, used by mag_control.
2432 For general use, it's recommended to use the bonobo magnifier
2433 control API directly instead of using these wrappers.
2436 Moved ZoomRegionData from magnifier.c to this file.
2438 * util/mag_control.c:
2439 Added some code to exercise new IDL implementations.
2441 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
2443 * libspi/text.c: Provide implementation for getAttributes.
2445 2002-02-04 Bill Haneman <bill.haneman@sun.com>
2448 Incremented revision.
2450 * test/test-simple.c:
2451 Replaced use of deprecated g_main_iteration with
2452 g_main_context_iteration.
2454 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
2457 Incremented revision for desktop alpha 2.
2459 2002-01-28 Mark McLoughlin <mark@skynet.ie>
2461 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
2464 * test/simple-at.c: include netinet/in.h.
2466 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2468 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2469 use NULL, not CORBA_OBJECT_NIL.
2471 * libspi/accessible.c:
2472 (impl_accessibility_accessible_get_relation_set):
2473 allocate the sequence correctly.
2475 * libspi/remoteobject.h: kill spi_remote_object_new.
2477 * test/test-simple.c: (validate_accessible): add code
2478 to test relation sets, now all we need is to figure
2479 out how to excercise this code path :/
2481 2002-01-18 Michael Meeks <michael@ximian.com>
2483 * test/test-simple.c
2484 (key_listener_cb): consume the key.
2485 (test_keylisteners): update.
2486 (main): wait for any pending unrefs on events.
2488 * registryd/deviceeventcontroller.c
2489 (spi_controller_update_key_grabs): only re-issue the
2490 grab on a key release.
2491 (spi_device_event_controller_forward_key_event):
2492 refresh the keygrabs before we notify the listeners,
2493 to reduce the X ungrab / re-grab race.
2494 (spi_controller_register_with_devices): remove
2495 XSelectInput - we do that with the gdk_window_ call.
2496 (_spi_controller_device_error_handler): return a value.
2497 s/GDK_DISPLAY/spi_get_display/
2499 2002-01-17 Michael Meeks <michael@ximian.com>
2501 * registryd/deviceeventcontroller.c
2502 (_deregister_keygrab): don't blow out the later
2505 * test/test-simple.c (test_keylisteners): do a
2506 more intelligent validation.
2508 2002-01-14 Michael Meeks <michael@ximian.com>
2510 * atk-bridge/bridge.c
2511 (gnome_accessibility_module_init),
2512 (gnome_accessibility_module_shutdown): impl.
2513 (gtk_module_init): protect vs. double inits.
2514 (add_signal_listener): impl.
2515 (spi_atk_bridge_state_event_listener): kill
2516 (deregister_application): split out of
2517 (spi_atk_bridge_exit_func): here.
2519 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2522 Added caret tracking when using magnifier, and
2523 now use text bounds for focus tracking of text elements, rather than
2524 the component bounds - this is helpful for short text fields in long
2525 table cells, at high magnification.
2527 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2529 * registryd/deviceeventcontroller.c:
2530 Regression fix for keylistener de-registration; global keygrabs
2531 were not being released when deregisterKeystrokeListener was
2532 called in cspi, since
2533 Accessibility_DeviceEventController_deregisterKeystrokeListener
2534 was called with a zero-length keyset. That is because the cspi
2535 method, SPI_deregisterKeystrokeListener, does not take a keyset
2536 parameter but instead should remove all the key grabs held be a
2538 The code in impl_deregister_keystroke_listener was changed to copy
2539 the keylist from the listener instance previously registered with
2540 the DeviceEventController before releasing the grabs.
2542 * registryd/registry.c:
2543 * registryd/deviceeventcontroller.c:
2544 * libspi/spi-private.h:
2546 Changed spelling of "re-enterant" to "re-entrant" globally.
2548 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2550 * test/test-simple.c:
2551 Changed key listeners test - the test was slightly mis-using the
2552 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2553 It now uses '=' as the key event listened to and generated,
2554 relying on a keysym match rather than assuming that keycode 33
2555 is always equal to keysym '!'.
2557 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2560 Changed simple-at to use a specific keyset, rather than
2561 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2562 manager, desktop, etc.
2564 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2566 * registryd/deviceeventcontroller.c:
2567 Replaced standard X error handler with a special handler that
2568 is non-fatal for failed keygrabs. This works around
2569 problems with keygrab clashes sometimes observed on
2571 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2572 mouse handling code as yet).
2574 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2577 Incremented revision for desktop alpha release.
2580 Fixed a couple of the more glaring errors (still not
2583 2002-01-11 Michael Meeks <michael@ximian.com>
2585 * registryd/deviceeventcontroller.c
2586 (spi_device_event_controller_forward_key_event): kill
2587 XUngrabKey / XKeyGrab race.
2588 (spi_controller_grab_keyboard): rename to
2589 (spi_controller_update_key_grabs): this, and deal
2590 with incremental adding / removing grabs more
2592 (_register_keygrab): ensure we're not pending a remove.
2593 (spi_grab_mask_free): impl.
2594 (spi_controller_register_global_keygrabs): split out
2596 (handle_keygrab): impl.
2597 (_deregister_keygrab): impl.
2598 (spi_controller_deregister_global_keygrabs): impl.
2599 (spi_controller_update_key_grabs): re-issue the grab if
2600 we just recieved a notification.
2602 * test/test-simple.c (key_listener_cb): remove debug.
2604 * registryd/deviceeventcontroller.c
2605 (spi_controller_register_device_listener): after
2606 registering a global keygrab, actualy register it !
2607 don't wait for a timeout; doh !
2609 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2610 to make it more readable / manipulable.
2611 s/grabmask/grab_mask/ s/refcount/ref_count/
2612 s/keyval/key_val/ s/modmask/mod_mask
2614 2002-01-08 Michael Meeks <michael@ximian.com>
2616 * registryd/deviceeventcontroller.c
2617 (spi_controller_register_with_devices): use gdk calls to
2619 (global_filter_fn): implement the filter.
2620 (spi_device_event_controller_check_key_event): rename to
2621 (spi_device_event_controller_forward_key_event): this & upd.
2622 (spi_get_display): replace with GDK_DISPLAY.
2624 * registryd/deviceeventcontroller.c
2625 (spi_controller_deregister_device_listener): unroll into
2626 (impl_deregister_keystroke_listener): here to simplify.
2627 (spi_controller_register_global_keygrabs): split cut and
2628 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2629 (spi_controller_deregister_device_listener): remove.
2630 (impl_register_mouse_listener): remove, no mouse listener
2631 support in at-spi-1.0
2633 * registryd/registry.c
2634 (_device_event_controller_hook): kill.
2635 (spi_registry_init): upd.
2637 * registryd/deviceeventcontroller.c
2638 (spi_device_event_controller_class_init): upd.
2639 (spi_check_key_event): merge into.
2640 (spi_device_event_controller_check_key_event):
2641 here and kill strange static ev init, don't leak
2642 the x_event - nor dynamicaly allocate it.
2644 * registryd/registry-main.c (main): re-direct
2645 timeout to remove strange vtable mess.
2647 * registryd/deviceeventcontroller.c
2648 (remove_listener_cb): impl.
2649 (spi_controller_deregister_device_listener):
2650 fix re-enterancy hazard.
2652 2002-01-07 Michael Meeks <michael@ximian.com>
2654 * registryd/deviceeventcontroller.c
2655 (spi_device_event_controller_new): upd.
2656 (impl_notify_listeners_sync): upd. debug.
2657 (spi_notify_keylisteners): fix re-enterancy hazards,
2658 prettify, remove O(n*n) iteration.
2659 (spi_controller_grab_keyboard): fix iteration.
2660 (spi_check_key_event): re-format to suit coding style.
2661 Clean all the warnings - we're warning free.
2663 * registryd/deviceeventcontroller.h:
2664 * registryd/registry.h: make mutualy referential with
2665 typesafe forward references instead of (!) void pointer
2668 2002-01-11 Michael Meeks <michael@ximian.com>
2670 * cspi/spi_accessible.c (role_names): add a role name
2671 to sync this array with the enum; and make the regression
2674 2002-01-10 Michael Meeks <michael@ximian.com>
2676 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2677 allow expansion of enumeration & kill warning.
2679 * test/test-simple.c (key_listener_cb): impl.
2680 (test_keylisteners): impl.
2682 * cspi/spi-listener.h: make listener signatures const
2683 on the provided (const) events.
2685 * test/keysynth-demo.c: upd. to const events.
2687 * test/simple-at.c: ditto.
2689 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2692 Rev the version to 0.5 (the previous tarball was named 0.4,
2693 even though the micro number was 3), so we need to rev upwards
2694 again for beta2/"desktop-alpha"
2697 Checked in a demo script, which requires editing before use!
2698 Proceed with caution.
2701 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2703 * cspi/spi_accessible.c:
2704 Add a couple of missing enum initializations, and fix some enum
2707 * cspi/spi_registry.c:
2708 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2710 * docs/reference/cspi/at-spi-cspi-sections.txt:
2711 Remove/fix a couple of broken document references.
2714 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2715 as Alt-Control to listen for commands, since on some systems
2716 Control-Alt may already be grabbed.
2718 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2721 Update version number to 0.4 for Beta2.
2723 * libspi/accessible.c, libspi/accessible.h:
2724 Expose spi_accessible_construct, to enable libgail-gnome
2725 construction from spi_accessible subtype.
2727 * utils/magnifier.c:
2728 Workaround for bug in some non-gnome-compliant window managers
2729 which made magnifier resize improperly.
2731 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2733 * libspi/accessible.c: (spi_accessible_new) :
2734 Move the test for SPI_IS_REMOTE_OBJECT to
2735 spi_accessible_new_return, fixing a bug and compile time warning.
2737 2002-01-08 Michael Meeks <michael@ximian.com>
2739 * registryd/registry.c (parse_event_type): remove strndup.
2741 * libspi/Makefile.am (libspi_la_SOURCES): remove
2742 sources already included in the headers section.
2744 * libspi/util.c: add.
2746 * libspi/spi-private.h: add.
2748 * registryd/registry.c: update to moved list iterators.
2750 2002-01-05 Michael Meeks <michael@ximian.com>
2752 * test/simple-at.c (main): upd. auto-module set to atk-bridge
2754 * test/test-simple.c (main): ditto.
2756 2002-01-04 Michael Meeks <michael@ximian.com>
2758 * libspi/accessible.c (spi_accessible_new): remove 2nd,
2759 redundant construct.
2761 * registryd/registry.c
2762 (get_listener_list): impl.
2763 (impl_accessibility_registry_register_global_event_listener):
2764 re-impl. to simplify using ~, remove dodgy const cast off.
2765 (parse_event_type): constify.
2766 (impl_accessibility_registry_deregister_global_event_listener_all):
2767 re-write, more efficiency and simplicity, kill re-enterancy
2769 (compare_listener_corbaref, compare_corba_objects),
2770 (compare_listener_quarks): define out.
2771 (impl_accessibility_registry_deregister_global_event_listener):
2772 re-write for effiency, and nail re-enterancy hazard.
2773 (impl_accessibility_registry_get_desktop_list): impl.
2774 (re_enterant_list_delete_link): impl.
2775 (re_enterant_list_foreach): impl.
2776 (remove_listener_cb): impl.
2777 (_registry_notify_listeners): kill.
2778 (notify_listeners_cb): impl.
2780 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
2781 (SPI_getDesktopList): impl.
2783 * test/test-simple.c (test_desktop): test the methods.
2785 2002-01-03 Michael Meeks <michael@ximian.com>
2787 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
2788 keystrings since we free them
2789 (SPI_freeAccessibleKeySet): in here.
2791 * libspi/accessible.c (spi_accessible_new): kill warning,
2792 wonder what is going on with the constructor here.
2794 2002-03-01 Bill Haneman <bill.haneman@sun.com>
2796 * libspi/accessible.c (spi_accessible_new ()) :
2797 Added check to see if AtkObject is an SpiRemoteObject before
2798 creating an SpiAccessible.
2800 2002-05-01 Bill Haneman <bill.haneman@sun.com>
2802 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
2803 Enable keygrabs using the Control modifier, now that they are
2804 working properly (they were previously disabled).
2807 Change the command keygrab for this demo to "Control+Alt", so as
2808 to conflict with fewer other key commands on the system; this
2809 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
2811 Removed a pointlessly-chatty keylistener for unshifted keys
2812 (shifted keys are still reported).
2814 2002-02-01 Bill Haneman <bill.haneman@sun.com>
2816 * libspi/remoteobject.h:
2817 * libspi/remoteobject.c:
2818 Added definitions for special AtkObject subtype, required for
2819 support of remote components (specifically, used by BonoboControl
2820 accessibility implementation).
2822 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
2824 * cspi/spi.h: synched relation types with ATK
2826 * cspi/spi_accessible.c: Added implementations of
2827 AcccessibleRelation_* methods
2829 * idl/Accessibility_Relation.idl: added getRelationTypeName
2830 method. Synched known relation types with ATK. Allowed for
2831 relation type extension with the RELATION_EXTENDED type.
2833 * libspi/relation.c: Provided implementations for
2834 AccessibleRelation methods.
2836 2002-01-01 Bill Haneman <bill.haneman@sun.com>
2838 API tweaks for today's API 'freeze'.
2841 Added placeholder functions to allow future compatible expansion
2842 of the IDL interfaces.
2844 * idl/Accessibility_Registry.idl:
2845 Changed generateKeyEvent to generateKeyboardEvent. Changed
2846 signature of this method to accept an optional keystring in
2847 parameter (for complex text input synthesis) and changed use of
2848 simple 'boolean' parameter in registerKeystrokeListener to a
2849 struct, EventListenerMode.
2851 * cspi/spi_accessible.c:
2853 * cspi/spi_streamablecontent.c:
2854 Added references to AccessibleStreamableContent interface, and
2855 definition and implementation of AccessibleStreamableContent
2858 * cspi/spi_registry.c:
2860 Changed generateKeyEvent API to generateKeyboardEvent,
2861 taking a new (optional) keystring parameter to support complex
2866 Renamed directory (to better reflect its actual purpose, bridging
2867 from at-spi to ATK). The .so module is also now named
2870 * idl/Accessibility_Hypertext.idl:
2871 * libspi/accessible.c:
2872 * libspi/hypertext.h:
2873 * libspi/hypertext.c:
2874 Changed Accessibility_Hypertext to *not* derive from
2877 * cspi/spi_registry.c:
2878 Added list of legal event type names for 'window' events, which
2879 completes the registry event API.
2881 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
2883 * at-bridge/bridge.c: Added registration for separate
2884 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
2885 signals. If either of the first two parameters to the generic
2886 bridge signal handler are ints, they are passed on as event
2887 details. This allows an AT to determine what text was inserted.
2889 2001-12-21 Bill Haneman <bill.haneman@sun.com>
2891 * registryd/deviceeventcontroller.c:
2892 Fixed regressions in generateKeyEvent caused by the removal of
2893 gdk_init from registryd; we now use pure X calls to connect to the
2894 display, which makes sense because deviceeventcontroller already
2895 uses a fair bit of X API (should eventually be migrated to a
2896 'portability layer').
2898 * registryd/desktop.c:
2899 Fixed minor regression in spi_desktop_init, changed the way the
2900 desktop name is being set to work with new spi_base API
2901 (gobject-based, rather than AtkObject-based).
2903 * registryd/Makefile.am:
2904 Minor revision of makefile to use XTST_LIBS variable rather than
2905 hard-wiring the Xtst LD_ADD element.
2907 * test/keysynth-demo.c:
2908 Tweaked an output message; added initialization of the
2909 'keystrings' member of the "switch listener" key_set.
2911 * libspi/relation.c:
2912 Squashed compile-time warning.
2914 * libspi/accessible.c:
2915 Cosmetic and formatting fixes, renamed a static method.
2917 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
2919 * libspi/accessible.c
2921 * libspi/application.c
2924 * libspi/component.c
2925 * libspi/editabletext.c
2926 * libspi/hyperlink.c
2927 * libspi/hypertext.c
2929 * libspi/selection.c
2933 * registryd/desktop.c:
2934 Changed SpiBase to contain a GObject pointer rather than an AtkObject
2936 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2938 * idl/Accessibility_Registry.idl:
2939 Added boolean member 'is_text' to DeviceEvent. This is for the
2940 use of key events, and helps prevent ambiguity between composed
2941 key strings and keysym names, since both may potentially be
2942 returned in the 'event_string' member.
2944 * at-bridge/bridge.c:
2945 * registryd/deviceeventcontroller.c:
2946 Use the 'is_text' member when notifying device event listeners.
2947 Knon issue: composed characters are not dealt with correctly by
2948 the global key listener implementation yet.
2950 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2952 * at-bridge/bridge.c:
2953 Namespaced local static methods to spi_atk_bridge_* where
2954 previously named bridge_*, and spi_* elsewhere.
2956 * at-bridge/bridge.c:
2957 * cspi/bonobo/cspi-bonobo-listener.c:
2958 Added demarshalling/conversion for string member of
2959 Accessibility_DeviceEvent to AccessibleKeystroke.
2961 * registryd/deviceeventcontroller.c:
2962 Added code to fill the Accessibility_DeviceEvent key string value
2963 member for global key events (i.e. from XGrabKey), to match
2964 behavior of Accessibility_DeviceEvent from the toolkit key events
2965 from the bridge. Fixed timestamp in global key event notifications.
2968 Added printout of key event's string value to
2969 report_ordinary_key_event, for demo/debugging purposes.
2971 2001-12-15 Bill Haneman <bill.haneman@sun.com>
2973 * idl/Accessibility_Registry.idl:
2974 Removed Accessibility_KeyStroke structure in favor of generic
2975 Accessibility_DeviceEvent structure.
2976 Changed Accessibility_ControllerEventMask from a struct to an
2979 * at-bridge/bridge.c:
2980 Changed APIs to use DeviceEvent structure as above, and removed
2981 bogus casting between these event structures.
2983 * cspi/spi-listener.h:
2984 Added keystring member of AccessibleKeystroke structure, to enable
2985 matching on event "names" rather than only hardware codes and
2989 Added keystrings member of AccessibleKeySet struct, to allow
2990 matching on event names (as above).
2991 Added declarations for SPI_createAccessibleKeySet and
2992 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
2993 event modmasks directly as unsigned ints rather than structs with
2994 refcounts, in the DeviceEventController methods.
2996 * cspi/spi_registry.c:
2997 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
2999 * cspi/spi-roletypes.h:
3000 Added documentation of newly added SPI Roles.
3002 * cspi/bonobo/cspi-bonobo-listener.c:
3003 Changes in support of API changes above.
3005 * libspi/accessible.c:
3006 Converted APIs to use DeviceEvent structure (see IDL changes
3009 * registryd/deviceeventcontroller.c:
3010 Added DEControllerGrabMask structure to track keygrabs not only by
3011 modmask but by keyset as well; this allows us to do "global"
3012 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3013 grabbing on AnyKey and then filtering after-the-fact.
3014 Bugfixes for event filtration mean that we don't get false matches
3015 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3017 * registryd/deviceeventcontroller.c:
3018 Namespaced a number of static methods to use spi_ prefix. Major
3019 revision to internals of global (i.e. X) key grabs.
3021 * registryd/deviceeventcontroller.h:
3022 Removed keymask_list and added keygrabs_list to
3023 SpiDeviceEventController struct.
3026 Added use of SPI_createAccessibleKeySet API when creating a
3027 listener for only one key. Attach a listener to "shift spacebar
3028 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3029 X key event names to SPI key event names, so that listeners are
3030 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3032 * test/keysynth-demo.c:
3033 Changed (incorrect) use of X key event names (KeyPressed,
3034 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3037 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3039 * libspi/accessible.c:
3040 Convert all AtkRole enumerations to Accessibility_Role enums when
3041 getting a role from an AtkObject.
3043 * cspi/spi_accessible.c:
3044 Complete the conversion of Accessibility_Role enums at runtime to
3045 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3046 role enums correctly match those given in spi-roletypes.h.
3047 Re-synchronize the local names list for AccessibleRole_getName ().
3048 AccessibleRole_getName is now deprecated, since it duplicates the
3049 more reliable Accessible_getRoleName.
3050 Added some role types from Accessibility_Role.idl.
3052 * idl/Accessibility_Role.idl:
3053 Added some role types used by AtkRole.
3055 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3058 * cspi/spi_registry.c:
3060 * cspi/cspi-bonobo-listener.c:
3061 Namespaced all methods that did not begin with an "SPI_" or
3062 "Accessible" prefix to "SPI_".
3065 Homogenized internal function namespace to "cspi_" for statics.
3068 Patched tests to use the new CSPI API.
3070 * docs/reference/cspi/at-spi-cspi-sections.txt:
3071 Updated docs to reflect namespace changes, and added a number of
3072 methods to the documentation.
3074 * registryd/registry.c:
3075 Changed use of strings and string hashes in listener event
3076 matching and parse_event_string to use GQuark, which is guaranteed
3079 * registryd/registry.h:
3080 Squashed annoying warning.
3082 * idl/Accessibility_Role.idl:
3083 Extended range of available Accessibility_Role values.
3085 * cspi/spi_accessible.c:
3086 Re-ordered role names.
3088 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3090 * idl/Accessibility_Value.idl:
3091 Revert use of union back to CORBA_double, since the double type is
3092 more efficient and can contain the other types without loss of
3095 * idl/Accessibility_Accessible.idl:
3096 Added method Accessibility:Accessible:getRoleName, to complement
3097 Accessibility:Accessible:getRole.
3099 * cspi/spi_accessible.c:
3101 Added C binding for above, Accessible_getRoleName (), and changed
3102 signature of Accessible_getRole () to return an AccessibleRole.
3104 * cspi/spi-roletypes.h:
3105 Changed AccessibleRole_getName to return a char * instead of a
3106 const char *. This method is now at least temporarily deprecated
3107 in favor of asking Accessibles for their RoleNames directly.
3110 Revert to match Accessibility_Value.idl;
3114 Change signature of AccessibleValue methods to use double rather
3118 * cspi/spi_accessible.c:
3119 Changed Accessible_getRole to return an AccessibleRole enum rather
3120 than a UTF-8 string. The UTF-8 string can still be obtained via
3121 AccessibleRole_getName ().
3123 * test/test-simple.c:
3124 Add test_action. Small fixup to match API change to Accessible_getRole.
3127 Bugfix for get_action_from_servant ().
3129 2001-12-11 Michael Meeks <michael@ximian.com>
3131 * libspi/libspi.h: remove registry.h and
3132 desktop.h, deviceeventcontroller.h
3134 * libspi/Makefile.am: remove registry.[ch],
3135 desktop.[ch], deviceeventcontroller.[ch]
3137 * registryd/Makefile.am: add registry.[ch],
3138 desktop.[ch], rename registryd.c to registry-main.c.
3139 add deviceeventcontroller.[ch]
3141 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3144 Replace setenv() call with putenv ().
3146 * libspi/component.c:
3147 Bugfix in AccessibleComponent_getExtents (),
3150 2001-12-11 Michael Meeks <michael@ximian.com>
3152 * libspi/image.c (impl_getImageExtents): impl.
3153 (spi_image_class_init): upd.
3156 (AccessibleImage_getImageDescription): fix daft bug
3159 * test/test-simple.c (global_listener_cb): update
3160 to only quit if not --poke
3161 (main): catch --poke.
3162 (validate_accessible): upd. dumping, call test_image
3165 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
3168 * idl/Accessibility.idl: update all IDL includes.
3170 * idl/*.idl - rename to namespace - this sucks, blame
3171 mjs' bad decision for oafd.
3173 * test/test-simple.c (create_test_window): add more tests.
3174 (create_tree): split this out.
3175 (validate_accessible): bugfix.
3177 2001-12-11 Michael Meeks <michael@ximian.com>
3179 * cspi/bonobo/cspi-bonobo-listener.c:
3180 (cspi_kestroke_listener_unref),
3181 (cspi_event_listener_unref): impl. undoing previous
3182 homenous environment - for Bill.
3184 * cspi/spi_table.c (long_seq_to_array): use
3187 * cspi/spi_main.c: split out all bonoboish bits into
3190 * cspi/spi-impl.h: upd. typedefs.
3192 * cspi/spi_registry.c: update to lowlevel API,
3193 return booleans to indicate success in some places.
3195 * cspi/spi_event.c: update to lowlevel API.
3197 * cspi/bonobo/Makefile.am: add.
3199 * cspi/bonobo/cspi-lowlevel.h: add
3201 * cspi/bonobo/cspi-bonobo.c: add
3203 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
3205 * cspi/Makefile.am: remove spi-listener-impl.[ch],
3206 (SUBDIRS): add bonobo, link in the libs.
3208 * cspi/spi-util.c: kill this file.
3210 * TODO: merge in my bits.
3212 2001-12-11 Michael Meeks <michael@ximian.com>
3214 * test/test-simple.c (test_value, test_table, main):
3215 remove unused variables causing warnings.
3217 * configure.in: cleanup checks - require gail.
3219 2001-12-11 Bill Haneman <bill.haneman@sun.com>
3222 Changed Value interface to use SValue (scalars) rather than
3223 assuming all values are floats. This allows floats, doubles,
3224 longs, shorts, and unsigned values to be manipulated.
3225 Introduced Accessibility:SValue union.
3228 Updated to use new API above, and to work correctly with GValues
3229 of different types in AtkValue.
3232 Updated to use new API above. cspi's API is as yet unchanged.
3235 Updated the Value revision action item.
3237 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3239 * test/test-simple.c:
3240 Added test_table (GtkTreeView widget in test window to follow).
3241 Un-commented test_value, added GtkRange widget.
3242 Added GtkTreeView widget with GtkListStore. It passes regression
3243 test but leaks one SPI object for some reason.
3246 Fixed bug in impl__set_currentValue.
3248 2001-12-10 Michael Meeks <michael@ximian.com>
3250 * cspi/spi_text.c: audit for exception handling,
3251 tolerating NULL object references safely etc.
3253 * cspi/spi_value.c: ditto.
3255 * cspi/spi_table.c (AccessibleTable_getSummary),
3256 (AccessibleTable_getAccessibleAt),
3257 (AccessibleTable_getRowHeader),
3258 (AccessibleTable_getColumnHeader),
3259 (AccessibleTable_getCaption): fix bugs hidden by
3261 (long_seq_to_array): impl.
3262 (AccessibleTable_getSelectedRows),
3263 (AccessibleTable_getSelectedColumns): use it.
3265 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3268 Added a TODO list (rough and short for now).
3270 * cspi/spi_hyperlink.c:
3271 * cspi/spi_hypertext.c:
3272 Fixed macro name typos, and remove use of obsolete macro in
3273 AccessibleHyperlink_getLink.
3275 * cspi/spi_action.c:
3276 * cspi/spi_accessible.c:
3277 * cspi/spi_application.c:
3278 * cspi/spi_component.c:
3279 * cspi/spi_selection.c:
3282 Documentation fixes (removed return values from ref/unref methods).
3284 2001-12-10 Michael Meeks <michael@ximian.com>
3286 * cspi/spi_action.c: audit for exception handling,
3287 tolerating NULL object references safely etc.
3289 * cspi/spi_accessible.c: ditto.
3291 * cspi/spi_component.c: ditto.
3293 * cspi/spi_editabletext.c: ditto.
3295 * cspi/spi_hyperlink.c: ditto.
3297 * cspi/spi_hypertext.c: ditto.
3299 * cspi/spi_image.c: ditto.
3301 * cspi/spi_selection.c: ditto.
3303 2001-12-10 Michael Meeks <michael@ximian.com>
3305 * configure.in: use cspi/libspi.pc.in instead.
3307 * Makefile.am (pkgconfig_DATA): upd. to match.
3309 * test/simple-at.c (report_focus_event): kill hacks around
3310 bad return values, use putenv not setenv
3312 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
3313 fire ChildGone - I killed it.
3315 * libspi/component.c
3316 (impl_accessibility_component_get_extents): remove
3319 * idl/Accessible.idl: kill ChildGone exception.
3321 * cspi/*.[ch]: kill int return from ref / unref.
3323 * cspi/spi_main.c (cspi_object_add_check): fold into
3324 (cspi_object_add): here.
3326 * cspi/spi_component.c (AccessibleComponent_getExtents):
3327 handle exceptions elegantly.
3329 * cspi/spi-private.h (cspi_check_ev_return),
3330 (cspi_return_if_fail): impl.
3332 * cspi/spi_accessible.c: use extensively.
3333 (AccessibleStateSet_equals): add direct compare check.
3335 * cspi/spi_selection.c: tolerate NULL objs, and check
3336 exceptions before return.
3338 * cspi/spi-util.c (cspi_warn_ev): rename to
3339 (cspi_check_ev): this & don't pass ev in; no point.
3341 2001-12-10 Michael Meeks <michael@ximian.com>
3343 * test/test-simple.c: use putenv not setenv
3344 (get_environment_vars): more chatty if you're not using
3347 * test/simple-at.c: do the setenv so more people see the
3350 2001-12-10 Bill Haneman <bill.haneman@sun.com>
3352 * libspi/registry.c:
3353 Changed check of CORBA_environment on notification to be a warning
3354 instead of an error for the moment, since we can recover from this
3355 error when caused by a queued notification from a dead app.
3358 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
3359 used by all current implementors of AtkValue), and coerce to
3360 CORBA_float. (Proper general case fix may require change to Value.idl).
3362 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3366 * cspi/spi_accessible.c:
3367 Documentation fixes: added user_data params to documentation for
3368 listeners and callbacks.
3370 * cspi/spi_accessible.c:
3371 Changed AccessibleStateSet_compare to return a
3372 StateSet rather than return the difference set into a third parameter.
3375 2001-12-09 Bill Haneman <bill.haneman@sun.com>
3378 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
3379 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
3383 Remove subdirectory po from SUBDIRS for now.
3385 * at-bridge/bridge.c:
3386 Beefed up a couple of debug printouts.
3387 One-line fix for signal notification name formatting.
3389 * libspi/accessible.c:
3390 Added assertion to spi_accessible_new ().
3392 * libspi/application.c:
3393 Put #ifdef qualifiers around a printf.
3396 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
3398 * registryd/Makefile.am:
3400 Replaces use of XML_I18N_MERGE_SERVER_RULE with
3401 INTLTOOL_SERVER_RULE macro.
3404 Added an event listener for several ATK signals, for
3405 testing and debugging. Removed a few g_warnings.
3406 Added test output if focussed item implements the Value interface.
3408 * test/test-simple.c:
3409 Added test_value () function (known not to pass at the moment, so
3410 not actually called yet.
3412 2001-12-08 Michael Meeks <michael@ximian.com>
3414 * at-bridge/bridge.c (bridge_focus_tracker),
3415 (emit_eventv): fix the same ref. leak.
3416 (register_atk_event_listeners): don't leak.
3418 * cspi/spi-listener-impl.c (cspi_event): more
3419 protection from client code.
3421 * test/test-simple.c (test_desktop): unref the app.
3423 * test/Makefile.am: upd. TESTS.
3425 * at-bridge/bridge.c (bridge_exit_func): release the registry.
3427 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
3429 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
3431 * cspi/spi_registry.c: constify in strings.
3432 (deregisterGlobalEventListenerAll): don't release the ref.
3434 * cspi/spi.h: start removing redundant / conflicting
3435 gtkdoc comments, making the API readable at a glance :-)
3437 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
3439 * test/keysynth-demo.c (keysynth_exit, main): upd.
3441 * test/simple-at.c (main, simple_at_exit): upd.
3443 * test/test-simple.c (unutterable_horror): kill.
3444 (utterable_normal_derefs): kill.
3445 (main): upd & do a setenv before gtk_init, so that we
3446 can use memprof - and to save the pain of remembering
3447 this, if we're running under memprof - don't exit.
3449 * cspi/spi_main.c (SPI_exit): return exit status
3451 (SPI_event_quit): impl.
3452 (SPI_event_main): simplify.
3453 (cspi_is_gnome_app): kill.
3454 (SPI_init): kill isGNOMEapp arg.
3456 * at-bridge/bridge.c (register_atk_event_listeners):
3457 re-instate the unref.
3458 (bridge_exit_func): don't re-activate the registry,
3459 protect vs. theoretical re-entry, use the
3460 AT_BRIDGE_SHUTDOWN env. var to determine whether to
3461 assert a clean shutdown - for regression tests.
3463 2001-12-08 Abel Cheung <maddog@linux.org.hk>
3465 * configure.in: Comment out dummy i18n support for now,
3466 otherwise it fails to build.
3467 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3468 EXTRA_DIST. They are missing in tarball.
3470 2001-12-07 Michael Meeks <michael@ximian.com>
3472 * util/magnifier.c: kill bonobo activation reg. race.
3474 * libspi/component.c
3475 (impl_accessibility_component_get_extents): make it match
3478 * libspi/registry.c (_registry_notify_listeners):
3479 re-remove X headers & reconcile conflicts.
3480 (spi_listener_struct_free): bad conflict resolve.
3481 (impl_accessibility_registry_register_application):
3482 more bad merging fixed.
3483 (impl_accessibility_registry_deregister_application): ditto.
3484 (spi_registry_new): ditto.
3485 (spi_registry_init): don't have an applications field.
3487 [ merge fixups2 branch to here ]
3488 2001-12-07 Michael Meeks <michael@ximian.com>
3490 * test/simple-at.c (report_focus_event),
3491 (report_focussed_accessible): remove g_warning debug.
3493 2001-12-07 Michael Meeks <michael@ximian.com>
3495 * test/test-simple.c (validate_tree): comment out some checks.
3496 (test_desktop): app now not registered idly - horay.
3498 2001-12-07 Michael Meeks <michael@ximian.com>
3500 * cspi/spi_registry.c
3501 (registerAccessibleKeystrokeListener): clean, stop it leaking
3502 great swathes of memory, and device event controller references.
3503 ensure we always pass valid sequences.
3504 (deregisterAccessibleKeystrokeListener): ditto.
3505 (generateKeyEvent): upd.
3507 * at-bridge/bridge.c (bridge_key_listener): handle
3508 registry dead exception gracefully.
3509 (bridge_focus_tracker, emit_eventv): free ev.
3511 * test/simple-at.c (report_focus_event): fix polarity.
3513 * libspi/application.c (notify_listeners): kill the ev
3514 argument, and make sure we init the ev we use.
3515 (spi_application_object_event_listener): split out a chunk
3516 (get_atk_object_ref): here & fixup.
3517 (reverse_lookup_name_for_toolkit_event): make const.
3518 (spi_application_toolkit_event_listener): fixup, kill leaks
3521 * at-bridge/bridge.c (register_atk_event_listeners):
3522 don't unref the noop object - causes grief.
3524 * libspi/registry.c: remove the X headers.
3525 turn off the debug churn.
3527 * libspi/accessible.c (spi_accessible_new_return): only
3528 release the ref if we are supposed to [doh]
3530 * test/simple-at.c (report_button_press, report_focus_event):
3531 guard vs. unexpected exit.
3533 * at-bridge/bridge.c (gtk_module_init): prune printf.
3534 (bridge_exit_func): fix app unref.
3536 * libspi/Makefile.am: don't install registry or desktop.h
3538 * libspi/*.h: update includes.
3540 * libspi/application.h: don't include ourself, or
3541 other redundant headers.
3543 2001-12-06 Michael Meeks <michael@ximian.com>
3545 * libspi/accessible.c
3546 (get_accessible_from_servant): impl.
3547 Upd. all CORBA impl.s to use it killing cut and paste.
3549 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3551 (SPI_init): register atexit cleanup handler here.
3553 2001-12-06 Michael Meeks <michael@ximian.com>
3555 * at-bridge/bridge.c (gtk_module_init): g_error on
3556 activation exception
3558 2001-12-06 Michael Meeks <michael@ximian.com>
3560 * at-bridge/bridge.c (gtk_module_init): some sort of
3561 confusing merge clash - reverted.
3562 (bridge_idle_init): ditto.
3564 * test/test-simple.c (main, utterable_normal_derefs):
3565 merge from Bill - somehow not committed.
3567 2001-12-06 Michael Meeks <michael@ximian.com>
3569 * libspi/value.c (spi_value_class_init): upd.
3570 (spi_value_finalize): kill.
3572 * libspi/table.c (spi_table_finalize): kill.
3573 (spi_table_interface_new): upd.
3574 (spi_table_class_init): upd.
3575 (get_table_from_servant): impl.
3576 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3578 * libspi/selection.c (spi_selection_finalize): kill.
3579 (spi_selection_interface_new): upd.
3580 (spi_selection_class_init): upd.
3581 (get_selection_from_servant): impl.
3582 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3584 * libspi/relation.c (spi_relation_finalize): kill.
3585 (spi_relation_class_init, spi_relation_new): upd
3587 * libspi/image.c (spi_image_finalize): kill.
3588 (spi_image_class_init): upd.
3589 (spi_image_interface_new): upd.
3590 (get_image_from_servant): impl.
3591 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3593 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3594 (spi_hyperlink_finalize): kill.
3595 (spi_hyperlink_new): upd.
3596 (get_hyperlink_from_servant): impl.
3597 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3599 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3600 (spi_hypertext_finalize): kill.
3601 (spi_hypertext_class_init): upd.
3602 (get_hypertext_from_servant): impl.
3603 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3605 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3606 (spi_editable_text_interface_new): upd.
3607 (get_editable_text_from_servant): impl.
3608 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3610 * libspi/text.c (get_text_from_servant): impl.
3611 All impls - update to use it killing more cut and paste,
3612 also fix bad string returns on duff args ( a somewhat
3613 impossible case to handle - but hey ).
3614 (spi_text_construct): impl.
3615 (spi_text_interface_new): upd.
3616 (spi_text_object_finalize): kill.
3618 * libspi/component.c
3619 (accessibility_component_object_finalize): kill.
3620 (spi_component_class_init): upd.
3621 (get_component_from_servant): impl. helper to kill cut & paste.
3622 (impl_accessibility_component_contains):
3623 (impl_accessibility_component_get_accessible_at_point):
3624 (impl_accessibility_component_get_position):
3625 (impl_accessibility_component_get_extents):
3626 (impl_accessibility_component_get_mdi_z_order):
3627 (impl_accessibility_component_get_layer):
3628 (spi_component_interface_new): upd.
3630 * libspi/action.c (spi_action_finalize): kill.
3631 (spi_action_class_init): upd. inherit from SpiObject.
3632 (spi_action_interface_new): upd.
3633 (get_action_from_servant): impl. helper to reduce cut & paste.
3634 (impl_getKeyBinding, impl_getName, impl_doAction),
3635 (impl_getDescription): Use it everywhere.
3637 * cspi/spi_main.c (get_live_refs): a pointer hash.
3638 (spi_object_hash, spi_object_equal): comment out.
3639 There are issues with CORBA object hashing that need
3642 * libspi/application.c (spi_application_init),
3643 (spi_application_new): upd.
3645 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3646 (spi_accessible_class_init): upd.
3647 s/accessible/object/ in epv methods.
3649 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3651 * at-bridge/bridge.c:
3652 Reorder the bridge initialization into the bridge gtk_module_init,
3653 an immediate call to bridge_register_app, and an idle_add for
3654 register_atk_event_listeners (the only code that *must* wait until
3655 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3656 the activation, creates the application's Accessible object, and
3657 queues the bridge_idle_init function. Restored call to
3658 Accessibility_Registry_deregisterApplication().
3659 Prior to making this call we obtain a new reference to the
3660 registry, which is a temporary hack that helps us handle apps that
3661 shut down the bonobo mainloop before we get there.
3663 * libspi/registry.c:
3664 Fix string leakage in debug block, and don't segv if a an app
3665 dies before its event notifications have been propagated.
3668 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3669 as stopgap measure until we get proper exception handling when
3670 objects die during or before interrogation.
3674 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3675 Also changed default value of is_gnome_app to TRUE.
3678 * test/keysynth-demo.c:
3679 Changed use of SPI_init and SPI_event_main to reflect API change above.
3682 Made report_focus_event check the warning value from getName
3683 before reporting on focussed accessible; simplifies handling of
3684 notifications from dead objects.
3686 * test/test-simple.c: (Changes not in this patch since source is
3689 2001-12-05 Michael Meeks <michael@ximian.com>
3691 * registryd/registryd.c (main): protect against
3692 bonobo-activation startup race condition.
3694 * cspi/spi_main.c (cspi_object_add_check): cope
3695 with the exception elegantly.
3697 * idl/Accessible.idl: decl. ChildGone
3699 * libspi/desktop.c (spi_desktop_dispose): impl.
3700 (spi_desktop_class_init): upd.
3701 (spi_desktop_add_application),
3702 (spi_desktop_remove_application),
3703 (abnormal_application_termination): impl.
3704 (impl_desktop_get_child_at_index): re-impl.
3707 (impl_accessibility_registry_deregister_application),
3708 (impl_accessibility_registry_register_application):
3709 kill excessive debug clutter.
3711 * test/test-simple.c (test_misc): test some NULL
3712 tolerance. (main): upd.
3714 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3715 implements no interfaces - so let's not crash.
3717 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3719 * libspi/accessible.c (spi_accessible_new_return): impl.
3720 helper to calm the cut and paste, to cope with
3721 NULL AtkObjects effectively and efficiently, and to kill
3722 the referencing bugs.
3724 * libspi/table.c (impl_getAccessibleAt),
3725 (impl_getRowHeader, impl_getColumnHeader): upd.
3727 * libspi/hyperlink.c (impl_getObject): upd.
3729 * libspi/accessible.c
3730 (impl_accessibility_accessible_get_child_at_index): upd.
3732 * libspi/component.c
3733 (impl_accessibility_component_get_accessible_at_point): upd.
3735 * test/test-simple.c (test_editable_text, test_text): impl.
3738 * cspi/spi_editabletext.c
3739 (AccessibleEditableText_insertText): constify.
3741 * test/test-simple.c (focus_me): make more robust.
3743 * libspi/accessible.c: remove some printfs in methods that
3744 we test and work fine, so we can get a clean tree dump.
3746 * test/test-simple.c (validate_accessible),
3747 (validate_tree): make tree dumping pretty too.
3749 * at-bridge/bridge.c (bridge_signal_listener): upd. so
3750 it builds without debug on.
3752 * test/test-simple.c (validate_accessible): fix the most
3755 * cspi/spi_main.c (spi_object_release): leave the nicely
3756 blanked memory around if in debug mode.
3758 * cspi/spi-listener-impl.c (cspi_event): use add_check.
3760 [committed to fixups2]
3761 2001-12-05 Michael Meeks <michael@ximian.com>
3763 * libspi/editabletext.c
3764 (spi_editable_text_class_init): g_type_class_peek_parent,
3765 not interface peek - so we finalize cleanly.
3767 * libspi/accessible.c (spi_accessible_new): kill debug.
3769 * test/test-simple.c (validate_accessible): fix ref.
3770 leak, print strings before freeing them; sigh, comment a
3771 chunk out due to strangeness.
3772 (validate_tree): unref the child after use.
3774 * cspi/spi_component.c (AccessibleComponent_getLayer):
3775 add missing break statement, switch on zlayer not the
3776 uninitialized retval.
3778 * cspi/spi_main.c (cspi_object_add): add assert, local ref
3779 before (possibly re-entering) remote unref.
3781 * test/simple-at.c (main): unref the desktop.
3783 * cspi/spi_accessible.c (cspi_accessible_is_a): move
3786 * cspi/spi_main.c (cspi_accessible_is_a): here to
3787 isolate bonobo API usage more.
3789 * libspi/registry.c (impl_accessibility_registry_register_application):
3790 prune bogus comment.
3792 2001-12-04 Michael Meeks <michael@ximian.com>
3794 * test/test-simple.c (validate_tree): upd.
3795 IndexInParent check to make it more lucid.
3796 (validate_accessible): dump the tree.
3798 * libspi/accessible.c (de_register_public_ref),
3799 (get_public_refs): impl.
3800 (spi_accessible_new): make more efficient & intuitive.
3801 Now IndexInParent check works.
3803 2001-12-04 Michael Meeks <michael@ximian.com>
3805 * cspi/spi-util.h: remove.
3807 * cspi/spi.h: move SPI_freeString here
3809 * libspi/component.c (impl_accessibility_component_get_layer):
3811 (impl_accessibility_component_get_mdi_z_order): ditto,
3812 return -1 on error - is this ok ?
3814 * test/test-simple.c (test_application): impl.
3816 * cspi/spi_accessible.c (Accessible_getApplication),
3817 (Accessible_isApplication): impl.
3819 * libspi/registry.c (spi_listener_struct_free): release
3820 the CORBA reference too.
3822 * libspi/accessible.c
3823 (impl_accessibility_accessible_get_parent): fix ref leak.
3825 * libspi/registry.c (spi_registry_new): make the registry
3826 immortal - we don't want it to go away ever.
3828 * libspi/application.c
3829 (spi_accessible_application_finalize): impl. cleanup.
3831 * cspi/spi_registry.c
3832 (deregisterGlobalEventListenerAll),
3833 (deregisterGlobalEventListener),
3834 (deregisterAccessibleKeystrokeListener): fix ref leak.
3836 * cspi/spi_main.c (SPI_init): remove redundant ref.
3838 * test/test-simple.c (unutterable_horror): impl. to force a
3843 (impl_accessibility_registry_deregister_application): release
3844 the application when we de-register it.
3846 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
3847 until we have the infastructure to get it right.
3849 2001-12-03 Michael Meeks <michael@ximian.com>
3851 * libspi/Makefile.am: only build eventlistener.[ch]
3853 * libspi/accessible.c
3854 (impl_accessibility_accessible_get_child_at_index): don't leak.
3856 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
3857 before we hit the idle handler.
3859 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
3860 debugging than exit.
3862 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
3864 * libspi/listener.c (impl_notify_event): check source
3865 not NIL before unref.
3867 * libspi/registry.c (impl_registry_notify_event): ditto.
3869 * libspi/eventlistener.c
3870 (impl_accessible_event_notify_event): unref the source.
3872 * libspi/accessibleeventlistener.c
3873 (impl_accessible_event_notify_event): unref the source.
3875 * idl/Event.idl: remove 'hash_id' attribute - of no
3878 * libspi/application.c (notify_listeners): upd list
3880 (spi_application_object_event_listener),
3881 (spi_application_toolkit_event_listener): upd to do correct
3885 (_registry_notify_listeners): update.
3886 (parse_event_type): this method also leaks like a sieve.
3887 (impl_accessibility_registry_deregister_global_event_listener):
3888 fix ETYPE_WINDOW case.
3890 * libspi/application.c
3891 (impl_accessibility_application_register_object_event_listener):
3894 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
3896 * libspi/hypertext.c (impl_getLink): ditto.
3898 * cspi/spi_main.c (cspi_object_add): remove
3899 bogus CORBA_Object_duplicate.
3901 * cspi/spi-listener-impl.c (cspi_event): dup/ref
3904 * cspi/spi_accessible.c
3905 (Accessible_getRelationSet): fix leak / referencing issue.
3907 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
3908 (cspi_object_add, cspi_object_unref): upd.
3909 (spi_object_release, get_live_refs): impl.
3910 (cspi_cleanup): simplify.
3912 * *.[ch]: s/boolean/SpiBoolean/
3914 * cspi/spi_accessible.c (role_names): actualy order so it
3915 corresponds with the enum !
3917 * test/test-simple.c (test_roles): check some role strings
3918 vs. enums to detect offset errors.
3920 2001-12-01 Michael Meeks <michael@ximian.com>
3922 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
3924 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
3926 (Accessible_getChildAtIndex): use cspi_add_check so we
3927 check the ev before using a (possibly) invalid value.
3929 * libspi/accessible.c
3930 (impl_accessibility_accessible_get_parent): don't segv
3933 * at-bridge/bridge.c (gtk_module_init): upd.
3934 (bridge_property_event_listener): don't leak strings
3936 (bridge_state_event_listener),
3937 (bridge_property_event_listener): don't use a static
3938 buffer in case of recursive event emission &
3939 re-enterancy - split out the swathe of cut and paste
3941 (emit_eventv): and fix 2 ref leaks here & comply to the
3943 (bridge_register_app): rename to
3944 (bridge_idle_init): this and kill arg parsing, split
3945 various inits & bonobo-activation registration to module
3946 init time, kill referencing error.
3947 (bridge_exit_func): fix the same leak.
3948 (bridge_focus_tracker): don't leak event structures
3950 (bridge_signal_listener): more leakage and cut & paste
3952 (bridge_key_listener): return the result - FIXME is
3953 this polarity correct ?
3954 (accessibility_keystroke_from_atk_key_event): rename
3955 (accessibility_init_keystroke_from_atk_key_event): and stop
3957 (gtk_module_init): return a value - not that it is checked by
3959 (bridge_key_listener): register my horror at casting between
3960 IDL defined structs.
3961 (bridge_get_registry): kill - not used.
3963 * cspi/spi_accessible.c (Accessible_getRole): make return const.
3965 * test/test-simple.c (test_roles): impl.
3966 (test_desktop, validate_accessible, validate_tree): impl.
3968 * cspi/spi_accessible.c (role_names): fixup bogus
3969 MAX_ROLES setup, make constants const for efficient linkage
3970 (AccessibleRole_getName): conform to coding style, make
3973 2001-11-30 Michael Meeks <michael@ximian.com>
3975 * cspi/spi.h: add missing prototype.
3977 * libspi/registry.c (spi_listener_struct_new): fix sig.
3979 * test/Makefile.am: add test-simple
3981 * test/test-simple.c: add
3983 * test/test.sh: add.
3985 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
3987 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
3988 do it straight - since otherwise we often get an activation race.
3990 [ work before Bill duplicated a chunk of it ... ]
3991 2001-11-30 Michael Meeks <michael@ximian.com>
3993 * libspi/keystrokelistener.c
3994 (spi_keystroke_listener_class_init): fixup arg
3997 * libspi/eventlistener.c
3998 (spi_event_listener_class_init): ditto.
4000 * tests/test.sh: add.
4002 * cspi/spi-listener-impl.h: update macros.
4004 * cspi/spi-listener-impl.c
4005 (cspi_event_listener_remove_callback): add
4006 correct pre-conditions.
4008 * cspi/spi_main.c (SPI_exit): guard vs. double
4009 exits, exit the mainloop nicely.
4010 (SPI_event_main): make more sense.
4011 (SPI_init): move the atexit evilness here so we
4012 always do it (yuck).
4013 (SPI_event_main): upd.
4015 * test/simple-at.c: update for listener changes.
4017 * registryd/registryd.c (main): prune kruft.
4019 * libspi/libspi.h: upd.
4021 * libspi/eventlistener.[ch]: rename broken macros.
4023 * libspi/accessibleeventlistener.[ch]: remove.
4025 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4027 * test/test-simple.c: Add - automated tests.
4029 * cspi/spi-listener-impl.c (cspi_event),
4030 (cspi_key_event): add user_data to invoke.
4031 (cspi_keystroke_listener_finalize): impl.
4032 (cspi_keystroke_listener_class_init): upd.
4035 (createAccessibleEventListener),
4036 (AccessibleEventListener_addCallback),
4037 (createAccessibleKeystrokeListener),
4038 (AccessibleKeystrokeListener_addCallback): upd.
4040 * libspi/deviceeventcontroller.c
4041 (spi_device_event_controller_check_key_event): add public proto.
4044 (impl_accessibility_registry_deregister_global_event_listener):
4045 always init listeners.
4046 (_registry_notify_listeners): yes it is.
4048 * cspi/spi-listener-impl.c (cspi_key_event):
4050 (cspi_event_listener_finalize): impl.
4051 (cspi_event_listener_class_init): hook up.
4052 (event_handler_new, event_handler_free),
4053 (event_list_remove_by_callback): impl.
4054 (cspi_event_listener_remove_callback),
4055 (cspi_keystroke_listener_remove_callback),
4056 (cspi_keystroke_listener_add_callback),
4057 (cspi_event_listener_add_callback): upd.
4059 * libspi/keystrokelistener.c
4060 (keystroke_listener_object_finalize): kill
4061 (spi_keystroke_listener_class_init): upd.
4062 (spi_keystroke_listener_add_callback),
4063 (spi_keystroke_listener_remove_callback): kill,
4065 (impl_key_event): prune drasticaly.
4067 * libspi/eventlistener.c
4068 (spi_event_listener_add_callback),
4069 (spi_event_listener_remove_callback): kill, use
4071 (impl_accessible_event_notify_event): upd.
4072 (spi_event_listener_object_finalize): remove.
4074 * libspi/Makefile.am: use eventlistener.[ch]
4076 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4078 * libspi/registry.c (_registry_notify_listeners):
4079 Changed listener loop iteration to use preferred convention.
4080 Got rid of string memory leaks caused be calling g_strconcat
4081 inside function calls.
4083 * libspi/registry.c (parse_event_type):
4084 Stopped g_strconcat memory leaks, free the g_strsplit return,
4085 g_strdup the split pieces when used, etc.
4087 2001-12-04 Bill Haneman <bill.haneman@sun.com>
4090 Change method 'compare' to return a 'difference set' rather than
4091 taking a StateSet as an out parameter (more Java-friendly).
4093 * idl/Accessible.idl:
4094 Added CORBA struct 'BoundingBox', to faciliate API changes below:
4096 * idl/Component.idl:
4098 Changed methods 'getExtents' and 'getImageExtents' in these
4099 interfaces to return a BoundingBox structure.
4100 (getPosition and getSize are redundant and possibly should be
4101 removed, rather than creating a corresponding Point struct.)
4103 * cspi/spi_component.c:
4104 Modify implementation of getExtents to reflect the above IDL
4109 Add (missing) AccessibleImage_getExtents () API.
4111 * docs/reference/cspi/at-spi-cspi-sections.txt:
4112 Added AccessibleImage_getImageExtents () to docs.
4114 2001-12-03 Bill Haneman <bill.haneman@sun.com>
4116 * idl/Component.idl:
4117 Added two methods, getLayer () and getMDIZOrder (), to reflect
4118 the new ATK methods atk_object_get_layer and
4119 atk_object_get_mdi_z_order. (Which arguably should be part of the
4120 AtkComponent API and AtkObject). Also added an enum,
4121 ComponentLayer, for the first method's return value.
4123 * libspi/component.c:
4124 Added implementations for these methods.
4126 * cspi/spi_component.c:
4128 Added cspi binding methods for above,
4129 AccessibleComponent_getLayer() and
4130 AccessibleComponent_getMDIZOrder().
4131 Added cspi enum 'AccessibleComponentLayer'.
4133 * docs/reference/cspi/at-spi-cspi-sections.txt:
4134 Added above methods to docs.
4138 Changed typedef for 'boolean' type (and all references to it) to
4139 SPIBoolean, to avoid keyword clashes with C++.
4142 Changed usages of 'boolean' to SPIBoolean.
4144 * test/keysynth-demo.c:
4145 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
4146 app), except where SPIBoolean is required by the callbacks API.
4148 2001-12-02 Bill Haneman <bill.haneman@sun.com>
4150 * cspi/spi_registry.c:
4151 Removed obsolete X event loop for passive keygrabs (which now
4154 * registryd/registryd.c:
4155 Removed unnecessary call to gdk_init() [cruft]. This also allows
4156 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
4159 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4161 * docs/reference/cspi:
4162 Included docs for SPI_freeString in generated documentation.
4165 Renamed spi_freeString to SPI_freeString, for consistency. Added
4166 documentation for this function.
4169 Renamed spi_freeString to SPI_freeString, for consistency.
4170 Removed obsolete method declaration string_from_corba_string.
4172 * test/keysynth-demo.c:
4173 Small tweak to comments.
4176 Stopped leaking the strings returned from CSPI.
4178 2001-11-28 Bill Haneman <bill.haneman@sun.com>
4180 Merged Michael's branch (see his ChangeLog entries below).
4182 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
4183 bridge is alive, release on exit.
4185 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
4186 Fix type check macro.
4189 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
4192 Added is_gnome_app static, and method cspi_is_gnome_app(),
4193 so we can call the appropriate shutdown routine at exit in SPI_exit.
4195 * cspi/spi_main.c (cspi_object_ref):
4196 Duplicate the corba object passed in, since we're keeping it around.
4198 * cspi/SPI_exit.c, cspi_cleanup:
4199 Moved the releasing of the live refs to its own function, so we
4200 can put it in g_atexit (). Call the appropriate shutdown API
4201 depending on whethe calling client is a gnome app or not
4202 (bonobo_main_quit or CORBA_ORB_shutdown).
4204 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
4205 Unref the listener when this method is called, after
4206 deregistration. Updated the API docs to note this behavior.
4208 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
4209 Bugfixes: Ref the bonobo object when returning a parent or child
4210 reference, or an AccessibleRelation. Generally made sure
4211 BonoboObject refcount is incremented whenever we return an
4214 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
4215 Fixed typo/bug in signal declaration.
4217 * libspi/accessibleeventlistener.h:
4220 * libspi/application.c (spi_application_new):
4221 Fixed leak in initialization.
4224 Remembered to increment bonobo-object refcount when returning
4225 children (applications) from desktop object.
4226 Added (empty) finalize method.
4228 * libspi/deviceeventcontroller.c:
4229 Hold a ref to listeners inside DEControllerKeyListeners.
4230 Added dec_key_listener_free() method. Use prepend instead of
4231 append in key_listener list. Fixed some refcount madness and
4232 leaks in the listener registration/deregistration - deregistration
4233 now calls dec_key_listener_free() on listeners, and on the
4234 temporarily constructed dec_key_listener() used to perform the search/match.
4236 * libspi/hypertext.c (spi_hypertest_finalize):
4237 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
4238 class. Also fixed spi_hypertext_interface_new() and
4239 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
4241 * libspi/hypertext.h:
4242 Removed pointless and duplicate AtkObject pointer from
4245 * libspi/keystrokelistener.c:
4246 Fixed incorrect type of keystroke_listener_parent_class,
4247 renamed keystroke_listener_object_finalize to
4248 spi_keystroke_listener_object_finalize.
4249 Fixed typo in signal declaration
4250 (spi_keystroke_listener_class_init).
4252 * libspi/registry.c:
4253 Added funcsions spi_listener_struct_new() and
4254 spi_listener_struct_free() to help with memory management issues.
4255 We also now use these methods instead of gnew + poking stuff into
4256 the struct, and to decrement listener counts/free the listeners
4257 when deregistering them.
4258 Fix more refcount bugs in getDesktop() and
4259 getDeviceEventController().
4262 De-ref the desktop after enumerating the applications. Explicitly
4263 decrement the refcounts on the created listeners on exit (using
4264 _unref for keystroke listeners, and via the
4265 deregisterGlobalEventListenerAll command for other event
4268 2001-11-27 Michael Meeks <michael@ximian.com>
4270 * cspi/spi-listener.h: fixup enum.
4272 2001-11-27 Michael Meeks <michael@ximian.com>
4274 * cspi/spi-listener-impl.c (cspi_event_listener_new),
4275 (cspi_keystroke_listener_new): Use the cspi variants.
4277 2001-11-26 Michael Meeks <michael@ximian.com>
4279 * test/keysynth-demo.c: fix 2 compile warnings, missing
4282 * test/simple-at.c (report_focussed_accessible),
4283 (report_focus_event, report_button_press),
4284 (check_property_change, is_command_key),
4285 (report_ordinary_key_event, report_command_key_event): upd.
4287 * util/mag_client.h: include pre-requisites.
4289 * libspi/accessibleeventlistener.c
4290 (spi_event_listener_object_finalize): free any lingering
4293 * libspi/keystrokelistener.c
4294 (keystroke_listener_object_finalize): ditto.
4296 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
4297 callbacks, with cspi types.
4299 * cspi/spi_event.c (createAccessibleEventListener): chain to
4300 (AccessibleEventListener_addCallback): here.
4301 (createAccessibleKeystrokeListener): chain to
4302 (AccessibleKeystrokeListener_addCallback): here.
4304 * libspi/keystrokelistener.c
4305 (spi_keystroke_listener_class_init): add signal.
4306 (impl_key_event): emit the event.
4307 (boolean_handled_accumulator): impl.
4308 (marshal_BOOLEAN__POINTER): add, gack.
4310 * libspi/accessibleeventlistener.c
4311 (spi_event_listener_class_init): add signal.
4312 (impl_accessible_event_notify_event): emit the signal &
4313 make the loop efficient.
4314 (spi_event_listener_add_callback): prepend the callback.
4316 * libspi/accessibleeventlistener.h: add an 'event' signal,
4317 decl type on callback.
4319 * libspi/keystrokelistener.h: ditto.
4321 * cspi/spi-listener.h: make methods typesafe and
4322 make them use the new event typedefs.
4324 * test/simple-at.c (report_focussed_accessible):
4325 include mag_client.h
4326 Use *(void *)text_interface not the other thing.
4328 * configure.in: add gtk to registryd bits - since we use
4331 * util/magnifier.c: include libbonobo.h
4333 2001-11-25 Bill Haneman <bill.haneman@sun.com>
4335 * test/keysynth-demo.c:
4336 Turned this into a simple scanning keyboard, to demonstrate the
4337 use of g_timeout_add () as a means of creating timers for
4338 scanning, and the use of GtkStyle for visually indicating when
4339 virtual keyboard elements are selected.
4341 keysynth-demo now listens to any keyboard keys with zero-valued
4342 keycodes (i.e. 'unused' keys) and interprets them as
4345 Reworked the shiftlatch code so that shift-down state isn't held
4346 for long periods (it's only synthesized immediately prior to
4347 the keysynth event it's modifying). Note that shiftlatch in this
4348 demo is a convenience, not intended to take the place of AccessX
4349 which is the better choice for getting 'sticky' modifier keys.
4351 * libspi/deviceeventcontroller.c:
4352 * at-bridge/bridge.c:
4353 * cspi/spi_registry.c:
4354 Removed some debug print stuff, and put other verbosity in #ifdef
4359 Implemented some more of the magnifier IDL for the simple
4360 magnifier: namely, getZoomRegionParams.
4361 Added mag_x and mag_y members to MagnifierData struct, aid of this
4363 Added GtkWindow::realize signal handler to magnifier, to keep it
4364 from receiving keyboard focus from the WM.
4366 2001-11-23 Mark McLoughlin <mark@skynet.ie>
4368 * cspi/spi-private.h: my guess at what michael forgot
4369 before he ran off to NZ :-)
4371 2001-11-23 Michael Meeks <michael@ximian.com>
4373 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
4374 comment out non existant method invoke so we link.
4376 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
4377 use bonobo_exception_get_text for more friendly warnings.
4379 * cspi/spi.c (Obj_Add): move into spi_main & rename
4380 spi_object_add; kill spi.c
4382 * cspi/spi_registry.c
4383 (deregisterGlobalEventListener),
4384 (deregisterGlobalEventListenerAll),
4385 (registerGlobalEventListener): fix exception leaks.
4387 * cspi/spi_main.c (spi_exception): impl. helper, so we
4388 don't leak exceptions.
4390 * cspi/spi_selection.c
4391 (AccessibleSelection_deselectSelectedChild): return the
4394 * cspi/spi_main.c (spi_ev): impl; hack - gack.
4395 (spi_registry): ditto.
4396 (SPI_init): guard against double inits.
4398 * cspi/*.c: use spi_ev (), and spi_registry () where
4399 appropriate - a temporary hack until we have something
4400 better. Use spi_object_add
4402 2001-11-22 Michael Meeks <michael@ximian.com>
4404 * cspi/Makefile.am: re organise, install the headers.
4406 * cspi/*.h: add G_BEGIN/END_DECLS
4408 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4411 Added non-preemptive keylistener for key events with no modifiers
4412 and shift-only modifier.
4414 * libspi/keystrokelistener.c:
4415 Removed some verbose diagnostics printout.
4417 * cspi/spi_registry.c:
4418 Fixed a bug that caused all key listeners to be registered as
4421 * libspi/deviceeventcontroller.c:
4422 Fixed bug that caused XGrabKey (preemptive key grab) to be called
4423 for non-preemptive key masks.
4426 2001-11-22 Bill Haneman <bill.haneman@sun.com>
4428 * docs/reference/idl/at-spi-idl-docs.sgml:
4429 * docs/reference/idl/at-spi-idl-sections.txt:
4430 * docs/reference/idl/at-spi-idl-overrides.txt:
4431 Added missing files.
4433 * docs/reference/Makefile.am:
4434 removed idl from SUBDIRS until we can figure a way to get gtk-doc
4435 to scan the IDL files :-(
4440 Added .cvsignore files.
4442 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4444 * libspi/deviceeventcontroller.c:
4445 * libspi/keystrokelistener.c:
4447 * cspi/spi_registry.c:
4448 Added filters for KeySets, KeyEventSeq, and event types to key
4449 event dispatching, so listeners should only receive those events
4450 that they requested :-)
4452 2001-11-21 Bill Haneman <bill.haneman@sun.com>
4457 * docs/reference:Makefile.am:
4458 * docs/reference/cspi:
4459 * docs/reference/cspi:Makefile.am:
4460 * docs/reference/cspi:tmpl:
4461 * docs/reference/cspi:tmpl:*.sgml:
4462 * docs/reference/idl:
4463 * docs/reference/idl:Makefile.am:
4464 * docs/reference/idl:at-spi-idl-sections.txt:
4465 * docs/reference/idl:at-spi-idl-docs.sgml:
4466 * docs/reference/idl:tmpl:
4467 * docs/reference/idl:tmpl:*.sgml:
4469 Restructured docs directory to allow separate 'reference' docs
4470 section, and forked idl and cspi docs. Added the sgml template
4471 files to CVS. Added the first sections/structural sgml for the
4474 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4476 * configure.in, libspi/Makefile.am: find libXtst.
4478 2001-11-21 Michael Meeks <michael@ximian.com>
4480 * test/accessx-gui.c: s/spi_value/value/ - doh.
4482 * libspi/base.[ch]: add.
4484 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4486 * idl/Accessible.idl:
4487 * idl/Application.idl:
4490 Started gtk-doc cleanup on IDL.
4492 * libspi/deviceeventcontroller.c:
4493 Added and connected non-preemptive key notification from the
4494 toolkits (in addition to the pre-emptive support from XServer
4495 which we had before, but which causes 'focus flashing'). Filters
4496 are presently limited to key modifiers and global/non-global,
4497 KeySets are presently ignored, as are KeyEvent masks.
4499 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4500 structs into the persistant structure rather than just storing
4501 pointers to things that might not persist across servant
4504 The XGrabKey call now does async keygrabs, because synchronous
4505 ones were deadlocking with GDK_event code in a very nasty way.
4507 Added boolean to internal method notify_keylisteners, to indicate
4508 whether the event came from the 'toolkit source' or the 'global
4509 (XServer) source' - this is used in the notification process to
4510 determine which listeners to send the event to.
4512 deviceeventcontroller.c is now warning-free.
4514 * libspi/registry.c:
4515 Fixed regression in application de-registration.
4516 Also fixed some really brain-dead weirdness having to do with
4517 event dispatching - event structs are now duplicated before being
4518 re-marshalled in the dispatch to listeners. This also fixes a
4519 Solaris build problem.
4522 2001-11-20 Michael Meeks <michael@ximian.com>
4525 (impl_accessibility_registry_deregister_global_event_listener):
4528 * libspi/deviceeventcontroller.c
4529 (spi_device_event_controller_check_key_event): return
4530 FALSE on no virtual method.
4532 * libspi/*..h: make includes work on a correctly pathed install.
4534 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4536 * libspi/application.h: kill unused ( and whacked out )
4537 gboolean *spi_application_set_id (AtkObject *app, long id);
4539 2001-11-20 Michael Meeks <michael@ximian.com>
4541 * libspi/*.[ch]: further convert to bonobo's type func
4542 macros, remove redundnant casts etc.
4544 * libspi/text.c s/accessibility_text/spi_text/g,
4545 re-order to de-cruft.
4547 * libspi/hypertext.c: re-order to kill a huge slew
4548 of redundant forward decls.
4550 * libspi/relation.c: ditto.
4552 * libspi/image.c: ditto.
4554 * */.cvsignore: update
4556 2001-11-20 Michael Meeks <michael@ximian.com>
4558 * libspi/deviceeventcontroller.c
4559 (_controller_register_with_devices): use g_getenv,
4560 kill stdlib.h include.
4562 * libspi/keystrokelistener.c
4563 (spi_keystroke_listener_get_type): kill
4564 (spi_keystroke_listener_class_init),
4565 (spi_keystroke_listener_init): rename to this.
4567 * libspi/text.c (impl_getAttributes): fix warning / bug.
4569 * libspi/*.[ch]: more headers, includes and over commenting.
4571 2001-11-20 Michael Meeks <michael@ximian.com>
4573 * libspi/*.[ch]: fixup headers, includes and over commenting.
4575 * libspi/image.c (impl__get_imageDescription): const
4576 correctness warning fix. remove redundant casting.
4578 * libspi/table.c (impl_getRowDescription): ditto.
4579 (impl_getColumnDescription): ditto.
4581 * libspi/libspi.h: add.
4583 2001-11-19 Michael Meeks <michael@ximian.com>
4585 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4587 * libspi/component.c (accessibility_component_get_type):
4588 rename to (spi_component_get_type): and macroify.
4589 (accessibility_component_init): rename to
4590 (spi_component_init): this
4591 (accessibility_component_class_init): rename to
4592 (spi_component_class_init): this
4594 * libspi/action.c (spi_action_get_type): kill, use the macro.
4596 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4599 * libspi/application.c (spi_application_object_event_listener),
4600 (impl_accessibility_application_register_object_event_listener):
4601 warning fixes / const understanding updates.
4603 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4606 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4608 * libspi/spi_accessible.c: Added docs and C bindings for
4609 AccessibleStateSet. (No implementations yet). Documentation
4610 coverage for C bindings now 100%. Made docs for event listeners
4615 boolean notifyListenersSync (in DeviceEventListener listener,
4616 in DeviceEvent event);
4618 oneway void notifyListenersAsync (in DeviceEventListener listener,
4619 in DeviceEvent event);
4621 Added DeviceEventListener and DeviceEvent structs (may deprecate
4622 KeyStroke and KeystrokeListener in favor of this generic
4623 event/listener framework for devices).
4625 * libspi/deviceeventcontroller.c:
4627 Changed some key listener code to take masks, etc., and paved the
4628 way for integration of toolkit/non-preemptive key events. Changed
4629 signatures of some internal methods.
4631 * at-bridge/bridge.c:
4632 Fixed regression connecting to interface signals, apparently
4633 caused by GTK+ changes.
4635 Added an internal bridge_state_listener to deal with
4636 property-change:accessible-state signals.
4638 Changed the key_listeners GList to store structs (including masks,
4639 etc.) instead of just CORBA_Objects (required for full
4640 implementation of key listener API).
4642 Connected the bridge to all currently supported Atk signals.
4643 Events now supported:
4644 object:property-change
4645 object:property-change:accessible-name
4646 object:property-change:accessible-state
4647 object:property-change:accessible-description
4648 object:property-change:accessible-parent
4649 object:property-change:accessible-value
4650 object:property-change:accessible-role
4651 object:property-change:accessible-table-caption
4652 object:property-change:accessible-table-column-description
4653 object:property-change:accessible-table-column-header
4654 object:property-change:accessible-table-row-description
4655 object:property-change:accessible-table-row-header
4656 object:property-change:accessible-table-summary
4657 object:children-changed
4658 object:visible-data-changed
4659 object:selection-changed
4660 object:text-selection-changed
4662 object:text-caret-moved
4664 object:row-reordered
4666 object:column-inserted
4667 object:column-reordered
4668 object:column-deleted
4669 object:model-changed
4671 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4673 * libspi/hyperlink.c,h:
4674 Fixed some broken stuff in hyperlink.
4676 * libspi/relation.h:
4677 * libspi/relation.c:
4678 * cspi/spi_accessible.c:
4679 Initial implementations of AccessibleRelation methods, and docs.
4681 * libspi/accessible.c:
4682 Fixed a bug that caused SEGV if an accessible
4683 object's description is NULL, and a client
4684 requests it. An empty string is now returned.
4686 * cspi/spi_editabletext.c:
4687 * cspi/spi_hypertext.c:
4689 * cspi/spi_hyperlink.c:
4693 Doc coverage now 95%.
4695 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4697 One last namespacing revision:
4698 * libspi/accessibleeventlistener.[ch]:
4699 Renamed SpiAccessibleEventListener to SpiEventListener,
4700 (no need for two namespaces ;-)
4702 And lots of documentation fixes:
4704 * docs/at-spi-docs.sgml:
4705 Fixed 'underscore vs. hyphen' bug that was preventing
4706 the gtk-doc API docs from being automatically generated.
4709 * cspi/spi-listener.h
4711 * cspi/spi_accessible.c
4713 * cspi/spi_application.c
4714 * cspi/spi_component.c
4715 * cspi/spi_editabletext.c
4717 * cspi/spi_hypertext.c
4719 * cspi/spi_registry.c
4720 * cspi/spi_selection.c
4724 * docs/at-spi-docs.sgml
4725 * docs/at-spi-sections.txt
4727 Added and fixed up gtk-doc documentation in cspi.
4729 Interfaces now (fully) documented (subject to revision and enhancement):
4731 Event Listener Support
4733 AccessibleApplication
4737 AccessibleEditableText
4744 AccessibleRelationSet
4749 2001-11-14 Bill Haneman <bill.haneman@sun.com>
4751 * at-bridge/bridge.c:
4752 Initial work for toolkit-level key snooper connection by bridge.
4757 New typedefs and fixes to support new namespacing, and cleaner
4758 separation of cspi bindings from libspi bonobo implementation.
4759 Removed inconsistent and extraneous Spi* namespace prefix that
4760 had crept into cspi headers.
4761 Lots of comment fixes that sed had missed.
4763 * cspi/spi-roletypes.h:
4764 * cspi/spi-statetypes.h:
4765 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
4766 to AccessibleRoleType.
4768 * libspi/accessibleeventlistener.h:
4769 Fixed minor namespacing weirdness.
4771 * libspi/deviceeventcontroller.c:
4772 Reordered some internal API for device listeners.
4773 Changed the key registry final boolean to 'is_system_global'
4774 rather than 'is_synchronous', which is more descriptive of its
4776 Added spi_device_event_controller_new().
4777 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
4779 * libspi/keystrokelistener.[ch]:
4780 Namespaced KeystrokeListener to SpiKeystrokeListener.
4781 Changed uses of keymasks to use SPI_ prefix, and did other
4784 * libspi/keymasks.h:
4785 Namespaced keymask constants with SPI_ prefix.
4787 * libspi/registry.c:
4788 Some warning fixes, and knock-on fixes from namespace changes.
4791 Added rules for accessx-gui test program.
4793 * test/accessx-gui.c:
4794 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
4795 utility. It doesn't actually use at-spi, but it's still cool and
4798 * test/keysynth-demo.c:
4802 Fixes so that these test clients work properly with the namespaced
4803 libraries. (Incompletely tested for technical reasons, fixes may follow)
4806 2001-11-13 Michael Meeks <michael@ximian.com>
4808 * libspi/application.c
4809 (impl_accessibility_application_get_version),
4810 (impl_accessibility_application_get_toolkit_name):
4812 (impl_accessibility_application_set_id),
4813 (impl_accessibility_application_get_id): remove
4814 redundant casting code.
4816 * libspi/action.c (impl_getDescription): fix warnings.
4818 * libspi/accessible.c
4819 (impl_accessibility_accessible_get_parent),
4820 (impl_accessibility_accessible_get_child_at_index),
4821 (impl_accessibility_accessible_get_state),
4822 (impl_accessibility_accessible_get_relation_set):
4823 warning fixes & include action.h
4825 2001-11-13 Michael Meeks <michael@ximian.com>
4827 * *.[ch] fix bits I screwed up:
4829 s/([^ \tb(\*\&\?\",])spi_/\1/g;
4830 s/([^ \tb(\*\&\?\",])Spi/\1/g;
4832 2001-11-13 Michael Meeks <michael@ximian.com>
4834 * *.[ch] Namespace libspi into spi_ and Spi.
4836 2001-13-11 Michael Meeks <michael@ximian.com>
4838 * Makefile.am: dist & install at-spi-1.0.pc
4840 * libspi/Makefile.am: install into at-spi-1.0
4842 * idl/Makefile.am (idldir): install into at-spi-1.0
4844 * at-spi-1.0.pc.in: add.
4846 * configure.in: build it.
4848 2001-11-12 Bill Haneman <bill.haneman@sun.com>
4850 * test/keysynth-demo.c:
4851 Use a 'realize' signal-handler to set the WM properties for
4852 the virtual keyboard, rather than making it a "POPUP" type
4853 override-redirect window (thanks to anders carlsson for that
4856 2001-11-11 Bill Haneman <bill.haneman@sun.com>
4859 * test/keysynth-demo.c:
4860 Added new test of key synthesis, which creates a simple
4861 (mouse-operated) onscreen keyboard. It inserts key events into
4862 the currently-focused window, thus it does not grab keyboard focus
4865 * cspi/spi_registry.c:
4866 Added C binding for AT-SPI generateKeyEvent.
4868 * libspi/deviceeventcontroller.c:
4869 Added call to XFilterEvent so that key listener works with XIM (we
4870 hope). Added event_synth_type to generateKeyEvent, so that we can
4871 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
4872 synthesize a press/release pair for KeySyms.
4874 2001-11-09 Bill Haneman <bill.haneman@sun.com>
4876 * libspi/Makefile.am:
4877 * registryd/Makefile.am:
4878 (temporary) hack to include libXtst in libspi and registryd.
4879 (Needed for keystroke synthesis, see below).
4882 Improved API for registerKeystrokeListener, in accordance with
4883 discussions with Gnopernicus team and X server research.
4885 * libspi/registry.c:
4886 * libspi/deviceeventcontroller.c:
4887 * libspi/accessible.c:
4888 * libspi/keystrokelistener.c:
4889 Changes and fixes to support keylisteners for potentially
4890 consumed key events (that is, 'passive grabs').
4891 Added implementation for generateKeyEvent() [untested].
4894 Changes to registerKeystrokeListener() API, as above.
4895 Added deregisterGlobalEventListenerAll(), and
4896 deregisterKeystrokeListener(), which are needed for clean exit of
4898 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
4899 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
4901 * cspi/spi_registry.c:
4902 Added implementations of function prototypes mentioned above.
4904 * registryd/registryd.c:
4905 Added the key listener event source as a g_timeout(), to allow
4906 receipt of key events that are not caught by GDK (since GDK
4907 doesn't support passive keygrabs, this was necessary).
4910 Changed to attach a keylistener to 'Alt' keys, and
4911 respond to the following keycommands: Alt-M (toggle magnifier);
4912 Alt-F (toggle speech); Alt-Q (quit).
4913 Added an exit routine to deregister the listeners, and a key
4914 listener that prints some key info to the console when a key
4915 matches the listener mask (and is thus received by the listener).
4917 * util/idl/Magnifier.idl:
4918 Changes to magnifier API to support multiple zoom regions,
4919 non-uniform scaling in x and y, markDirty, and a host of other
4920 features that would be useful to magnification.
4923 * util/mag_client.c:
4924 * util/mag_client.h:
4925 * util/mag_control.c:
4927 Source code changes to support the above IDL changes.
4930 As above, and also changes to use a (slower) generic conversion
4931 path for colormap conversions, since the fast RGB conversions have been
4932 reported to fail for 16-bit displays.
4934 2001-10-26 Michael Meeks <michael@ximian.com>
4936 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
4938 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
4940 * at-bridge/Makefile.am: fix LDFLAGS.
4942 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4944 * at-bridge/bridge.c:
4945 Re-worked listeners for toolkit events, now we have signal
4946 and property listeners. Added a private method
4947 register_atk_event_listeners(), which registers with the
4948 various atk and gtk signals we need to monitor in order to emit
4950 Added emission hook for AtkObject:property-change events, to
4951 support the 'property listeners'.
4952 Fixed some alloc()s of Accessibility_Event structs to use CORBA
4955 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
4956 which emit warnings and exit, respectively, if CORBA errors occur
4957 during remote calls, and we now use these methods to check most of
4958 our CORBA calls in the C bindings.
4960 * cspi/spi_accessible.c:
4961 Changed AccessibleSelection_refSelectedChild() to
4962 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
4963 now increment refcounts.
4965 * cspi/spi_component.c:
4966 Fixed some long pointer casts (dangerous!) to pass pointers to
4967 CORBA_longs of the proper type to the CORBA stubs, and copy the
4968 data into the longs that were passed into the C bindings code.
4970 * at-bridge/bridge.c:
4972 * libspi/accessible.c:
4973 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
4974 hyperlinks, AtkHyperlink is an object type.
4976 * libspi/application.c:
4977 Added various conversions to and from "generic" event types and
4978 atk-specific types; this is really part of the 'bridge'
4979 implementation but is valid for all AtkObject-based accessibility
4982 * libspi/editabletext.c:
4983 Fixed nasty bug wherein editable text's finalize method was
4984 unref'ing tha AtkObject reference that the text parent class was
4985 about to unref _again_. There was also a nasty inheritance bug
4986 that meant that the AccessibleEditableText class was corrupt.
4988 * libspi/selection.c:
4989 Provided implementations for some selection API that was broken.
4991 * idl/Application.idl:
4992 Added registerObjectEventListener () method.
4995 Fixed a number of return values that were Bonobo_Unknowns from
4996 bonobo_object_corba_objref(), which I
4997 forgot to dup before returning. Changed instances of
4998 bonobo_object_corba_objref (bonobo_object(o)) to
4999 BONOBO_OBJREF(o), for concision and clarity.
5001 2001-10-13 Louise Miller <louise.miller@sun.com>
5003 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5004 idl/Event.idl, idl/Registry.idl
5005 Changed these files to include Bonobo_Unknown.idl instead
5008 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5010 * libspi/component.c libspi/component.h:
5011 Fixed typo. Added assertions for object checks in
5012 AccessibleComponent code.
5014 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5016 * idl/Accessible.idl:
5017 Added 'isEqual (Accessible *object)'
5018 method for Accessible. (Not Yet Implemented).
5021 Changed signature of registerKeystrokeListener() to
5022 take a KeySet and KeyEventSeq so that specific keys and event
5023 types could be requested for monitoring, and added a flag
5024 is_synchronous so that either synchronous or asynchronous
5025 notification could be requested. (However this is not all
5026 implemented yet). This also meant adding two new typedefs,
5027 KeyEventSeq and KeySet.
5030 Added two new relations, RELATION_TOOLTIP_FOR and
5031 RELATION_LEAFNODE_OF.
5034 Added new state, STATE_HAS_TOOLTIP.
5036 * libspi/text.c, editabletext.c:
5037 Added new assertions to all casts of bonobo-objects from
5038 CORBA servants, to prevent Text API calls on non-text objects.
5039 Changed suspect casts of int-pointer types, so that we
5040 always send a valid CORBA_long pointer to the CORBA APIs that use
5041 in/out long parameters. We then have to copy from the CORBA_long
5042 into the regular long or int for return to the C bindings, or
5043 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5046 * libspi/deviceeventcontroller.c:
5047 Cleaned these sources up.
5049 Changed return type for getCharacterAtOffset to
5050 CORBA_unsigned_long, to allow for 32-bit characters.
5053 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5057 Fixed 'make dist' so that distro compiles...
5058 * libspi/keymasks.h:
5060 * cspi/spi-listener.c:
5061 KeystrokeListenerCB now returns a boolean.
5063 Added KeyEventType struct, and KeyStroke.
5064 Also added createKeystrokeListener(),
5065 KeystrokeListener_addCallback(),
5066 KeystrokeListener_removeCallback(), and added a keymask to
5067 registerKeystrokeListener().
5068 * cspi/spi_accessible.c:
5069 Changed numerous return types for interfaces from
5070 AccessibleComponent to Accessible<InterfaceName>; this was
5071 probably a cut-and-paste error.
5073 Implementations of new KeystrokeListener api (from spi.h,
5076 Changes to key modifier mapping.
5077 Created ControllerEventMask struct.
5078 Made DeviceEventController derive from Bonobo::Unknown.
5080 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
5081 * libspi/deviceeventcontroller.c:
5082 Added a number of new internal (private) methods.
5083 * libspi/editabletext.c:
5084 * libspi/editabletext.h:
5085 Fixed a number of bugs related to the fact that
5086 editabletext inherits from text. Fixed the EditableText struct,
5087 the init() call, and use correct casts when calling Text methods
5088 from an EditableText object. Removed (duplicate) atko from the
5089 EditableText structure, we use the one in the parent Text
5090 structure via the casts mentioned above.
5091 * libspi/keystrokelistener.[ch]:
5092 * libspi/registry.c:
5093 Changes in support of keyboard handling (above).
5095 Keyboard handling, though partly functional, is still not
5096 recommended for at-spi client use as there is considerable
5097 work yet to be done.
5100 Changed some places where pointers to various int types
5101 are cast to be pointers to CORBA_long types and vice-versa:
5102 pointer casting is not safe so we pass pointers of the correct
5103 types and then cast the result before putting it into the target
5106 * libspi/text.h: minor typos corrected.
5108 We now speak not only the name of a Text element, but the
5109 first sentence of its content, when it receives focus.
5110 I also changed the text compression to 75% from 50%.
5111 * util/Accessibility_Util.server.in:
5112 Changed the default magnifier type to be a 3x vertical
5113 splitscreen magnifier (was previously a 2x horizontal one).
5115 2001-10-03 Bill Haneman <bill.haneman@sun.com>
5117 * libspi/keystrokelistener.h:
5118 * libspi/keystrokelistener.c:
5119 Initial functional implementations of KeystrokeListener.
5122 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
5124 Fixed string handling for NULL strings in libspi.
5125 Added spi_freeString to free strings returned by C bindings.
5127 2001-09-30 Bill Haneman <bill.haneman@sun.com>
5129 * libspi/keystrokelistener.h:
5130 * libspi/keystrokelistener.c:
5131 Began (no-op) implementations of KeystrokeListener
5133 * libspi/deviceeventcontroller.c:
5134 * libspi/deviceeventcontroller.h:
5135 Began creating implementations of DeviceEventController,
5136 to handle keystroke and mouse event listening and
5138 * libspi/accessible.c:
5139 Stubbed-in the implementations for
5140 Accessibility_Accessible_getState and
5141 Accessibility_Accessible_getRelationSet.
5142 * libspi/registry.c:
5143 Improved de-registration process and fixed some bugs,
5144 deregistration now works correctly.
5146 Added initialization of applications list (to NULL).
5148 Reduced speech compression from 0.5 to 0.7, for demo.
5149 Changed call to gdk_window_set_decorations()
5150 to gtk_window_set_decorated().
5151 * at-bridge/bridge.c:
5152 Bridge now deregisters when app exits, via
5153 registration of a cleanup function
5154 with the g_atexit() call.
5155 Required making 'app' static, renamed 'this_app'.
5156 Fixed broken use of bonobo_init, passing argv wrongly.
5158 2001-09-27 Bill Haneman <bill.haneman@sun.com>
5162 Created a new directory for
5163 accessibility-related utilities, primarily for
5164 testing and demo purposes, but with possible
5171 Onscreen magnifier utility that
5172 is implemented as a bonobo service.
5174 * util/mag_client.c:
5175 * util/mag_client.h:
5176 Client-side support (simple C bindings)
5177 for Magnification service
5179 * util/mag_control.c:
5180 Client program example for
5181 Magnification service
5183 * util/Accessibility_Magnifier.server.in:
5184 Bonobo-activation file for the
5185 Magnification service.
5188 * util/idl/Magnifier.idl:
5189 IDL defining the bonobo Magnification
5193 Modifications to use the bonobo-activated magnifier
5194 above, in place of trying to connect to an existing
5195 magnifier that uses socket-listening IPC.
5197 If env variable MAGNIFIER is set, a magnifier service
5198 will be started if one does not exist.
5200 2001-09-25 Bill Haneman <bill.haneman@sun.com>
5202 * at-bridge/bridge.c:
5203 applied patch from Marc to build and run
5204 against new glib and gtk+ (seemed like a change
5205 to bonobo_init signature was made ?)
5207 made festival-server support turned off by default.
5208 Added support for a simple magnifier (off by default)
5209 which will be added to a 'util' directory later.
5210 * at-bridge/Makefile.am:
5211 Changed "application.h" header from a 'source'
5212 to a 'dependency' of libat-bridge.
5214 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5223 Added interface implementation c files to list of
5224 includes so they are included in libcspi.
5227 Changed prototype of AccessibleAction_doAction to return a
5229 Changed prototype of AccessibleTable_getCaption to
5230 return an Accessible.
5231 Changed prototype of AccessibleTable_getSelectedRows
5232 and AccessibleTable_getSelectedColumns to
5233 return a long (returns the number of selected rows
5234 or columns respectively).
5235 Changed name of AccessibleText_refRunAttributes to
5236 AccessibleText_getAttributes.
5237 Changed prototype of AccessibleText_getCharacterExtents to
5238 return a void rather than a boolean.
5239 Added support for a AccessibleCoordType parameter
5240 specifying what type of coordinates are desired.
5241 Added an AccessibleCordType parameter to
5242 AccessibleText_getPointAtOffset.
5244 * cspi/spi_accessible.c:
5245 Added code to return the outstanding interfaces from
5246 Accessible_queryInterface.
5248 * cspi/spi_action.c:
5250 Corrected call to getNActions to call the c binding
5253 * cspi/spi_editabletext.c:
5255 Changed name from setRunAttributes to setAttributes.
5257 * cspi/spi_hyperlink.c:
5259 Changed call to getNAnchors to correctly call the c
5260 binding for an attribute.
5262 * cspi/spi_hypertext.c:
5264 Changed getImageDescription to correctly call the
5265 binding for an attribute.
5267 * cspi/spi_selection.c:
5268 Changed getNSelectedChildren to correctly call the c
5269 binding for the attribute.
5270 Changed refSelectedChild to getSelectedChild.
5274 Changed getCaption to return an Accessible.
5275 Fixed calls which retrieve attributes.
5276 Changed refAt to getAccessibleAt.
5277 Changed getNSelectedRows and getNSelectedColumns to
5281 Changed getCharacterExtents and getPointAtOffset to accept an
5282 AccessibleCoordType.
5284 Changed calls which retrieve attributes.
5285 Changed refRunAttributes to getAttributes.
5290 * idl/Hyperlink.idl:
5291 Changed n_anchors attribute to nAnchors to keep naming
5292 convention consistent.
5295 Made Table inherit from Bonobo::Unknown.
5296 Added nSelectedColumns and nSelectedRows attributes.
5299 Made Value inherit from Bonobo::Unknown.
5301 * libspi/hyperlink.c:
5302 Change for nAnchors attributte name change.
5304 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
5312 Added interface implementation c files to list of
5313 includes so they are included in libcspi.
5316 Changed prototype of AccessibleAction_doAction to return a
5318 Changed prototype of AccessibleTable_getCaption to
5319 return an Accessible.
5320 Changed prototype of AccessibleTable_getSelectedRows
5321 and AccessibleTable_getSelectedColumns to
5322 return a long (returns the number of selected rows
5323 or columns respectively).
5324 Changed name of AccessibleText_refRunAttributes to
5325 AccessibleText_getAttributes.
5326 Changed prototype of AccessibleText_getCharacterExtents to
5327 return a void rather than a boolean.
5328 Added support for a AccessibleCoordType parameter
5329 specifying what type of coordinates are desired.
5330 Added an AccessibleCordType parameter to
5331 AccessibleText_getPointAtOffset.
5333 * cspi/spi_accessible.c:
5334 Added code to return the outstanding interfaces from
5335 Accessible_queryInterface.
5337 * cspi/spi_action.c:
5339 Corrected call to getNActions to call the c binding
5342 * cspi/spi_editabletext.c:
5344 Changed name from setRunAttributes to setAttributes.
5346 * cspi/spi_hyperlink.c:
5348 Changed call to getNAnchors to correctly call the c
5349 binding for an attribute.
5351 * cspi/spi_hypertext.c:
5353 Changed getImageDescription to correctly call the
5354 binding for an attribute.
5356 * cspi/spi_selection.c:
5357 Changed getNSelectedChildren to correctly call the c
5358 binding for the attribute.
5359 Changed refSelectedChild to getSelectedChild.
5363 Changed getCaption to return an Accessible.
5364 Fixed calls which retrieve attributes.
5365 Changed refAt to getAccessibleAt.
5366 Changed getNSelectedRows and getNSelectedColumns to
5370 Changed getCharacterExtents and getPointAtOffset to accept an
5371 AccessibleCoordType.
5373 Changed calls which retrieve attributes.
5374 Changed refRunAttributes to getAttributes.
5379 * idl/Hyperlink.idl:
5380 Changed n_anchors attribute to nAnchors to keep naming
5381 convention consistent.
5384 Made Table inherit from Bonobo::Unknown.
5385 Added nSelectedColumns and nSelectedRows attributes.
5388 Made Value inherit from Bonobo::Unknown.
5390 * libspi/hyperlink.c:
5391 Change for nAnchors attributte name change.
5394 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
5396 implementations-- made server implementations own AtkObject pointers
5397 rather than their respective AtkInterrface pointers to fix
5398 refcounting. AtkHyperlink is still broken.
5400 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5401 * cspi/spi_accessible.c:
5402 Added method Accessible_Role_getName(),
5403 and requisite string array (role_names).
5404 Added conversion string_from_corba_strin() call
5405 to Accessible_getName and _getDescription.
5406 * libspi/accessible.c:
5407 Added implementation for Accessible_getRole()
5409 Added festival support, used if environment variable
5412 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5414 * at-bridge/bridge.c:
5415 Now allocate Accessibility_Event using
5416 Accessibility_Event__alloc() instead of g_new0().
5417 * libspi/accessibleeventlistener.c:
5418 Initialize AccessibleEventListener->callbacks to NULL.
5419 Fixed accessible__event_listener_init() param, changed to
5420 "AccessibleEventListener *" type.
5421 Changed a bonobo_object_release_unref() call to
5422 Accessibility_Accessible_unref().
5423 * libspi/listener.c:
5424 Changed Bonobo_Unknown_unref to (equivalent)
5425 Accessibility_Accessible_unref.
5426 * libspi/registry.c:
5427 Changed bonobo_object_release_unref to
5428 Accessibility_Accessible_unref.
5430 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5433 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
5434 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
5435 spi-util.c spi-util.h
5436 Implementations for C bindings to remaining accessibility
5439 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
5442 changed return value of Action from void to boolean to
5443 bring in line with ATK.
5446 Changed getText funcions to return "out" start and end offsets.
5447 Changed getAttributes to take and offset and return the start
5448 and end offset of the attribute run.
5449 Changed getOffsetAtPoint and getCharacterExtents to take an
5450 enum describing whether coordinates are window or screen.
5453 libspi/action.c libspi/action.h libspi/editabletext.c
5454 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
5455 libspi/hypertext.c libspi/hypertext.h libspi/image.c
5456 libspi/image.h libspi/selection.c libspi/selection.h
5457 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
5458 libspi/value.c libspi/value.h
5459 Added server implementations for outstanding ATK interfaces
5460 not yet implemented.
5462 2001-09-04 Bill Haneman <bill.haneman@sun.com>
5465 Added (missing) getName() method.
5466 Made nActions an attribute.
5467 * idl/EditableText.idl:
5468 Changed order of params in setAttributes.
5469 * idl/Hyperlink.idl:
5470 Removed getAnchor, added getURI.
5472 Changed attributes to methods, for efficiency
5473 (so that getting extents can be done in one call)
5474 * idl/Selection.idl:
5475 Changed nSelectedChildren to attribute, and re-indented.
5476 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5478 * idl/Text.idl: reformatted to match our coding style.
5479 (temporarily?) removed getRowColumnAtOffset().
5480 Changed text selection API to support multi-select and
5481 non-contiguous selections, as in ATK.
5482 * idl/Value.idl: changed some methods to attributes.
5484 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5486 * libspi/listener.c(impl_notify_event):
5487 BonoboUnkown_unref the source instead
5488 of bonobo_object_release_unref - the ORB
5489 handles the releasing.
5491 * configure.in: require ORBit-2.3.94 for
5494 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5496 Tagged CVS repository 'EA_1_0'.
5497 * README.EARLY_ACCESS:
5498 Alphabetized acknowledgements list, and
5500 Listed some known dependencies of at-spi.
5502 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5504 * docs/at-spi-docs.sgml:
5505 * docs/at-spi-sections.txt:
5506 * docs/at-spi-overrides.txt: (Added zero-length file)
5507 Documentation improvements - gtk-doc should build
5508 docs for all implemented C bindings now.
5511 * cspi/spi.c: (New file)
5512 * cspi/spi_event.c: (New file)
5513 * cspi/spi_registry.c: (New file)
5514 * cspi/spi_accessible.c: (New file)
5515 * cspi/spi_application.c: (New file)
5516 * cspi/spi_component.c: (New file)
5517 Split spi_main.c into six parts, and included them from
5518 "spi.c". This is a bit of a hack, probably temporary,
5519 but required by gtk-doc, apparently.
5521 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5524 * docs/at-spi-docs.sgml:
5525 * docs/at-spi-sections.txt:
5527 Initial checkins/modifications for gtk-doc generation.
5530 Added (missing) interface query methods to Accessible's C binding.
5532 Added GenericInterface type definition.
5534 Added query for AccessibleComponent interface to focus event handler.
5535 Added printout of bounding box for focussed component.
5536 * libspi/component.c:
5537 Added partial implementation for AccessibleComponent to C binding.
5538 * idl/Application.idl:
5539 * libspi/registry.c:
5540 * libspi/listener.c:
5541 * libspi/application.c:
5542 * libspi/application.h:
5543 Changed "ID" attribute type from string to long.
5545 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5549 Made method naming consistent: methods taking object args
5550 start with uppercase, other methods (except those using
5551 acronyms) start with lowercase. Underscores delimit between
5552 object names and method names:
5553 SPI_init() - uppercase since it starts with an acronym.
5554 getDesktopCount () - lowercase start since no object param0.
5555 Accessible_getName() - uppercase object type name, studlyCaps method
5559 Added gtk-doc documentation for all currently implemented
5560 methods in the C bindings API.
5562 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5564 * Makefile.am : changed build order to build test last.
5567 Changed "createEventListener" to "CreateEventListener".
5568 * libspi/accessibleeventlistener.c :
5569 Bugfix for addition of callbacks.
5570 * test/Makefile.am :
5571 * test/simple-at.c :
5572 Added new test that uses the C bindings API.
5574 * libspi/listener.c :
5575 * libspi/registry.c :
5576 * libspi/accessibleeventlistener.c :
5577 * at-bridge/bridge.c :
5578 Renamed member "target" of Accessibility_Event to "source",
5579 which is more descriptive.
5582 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5586 * cspi/Makefile.am :
5587 Added makefile support for at-spi/cspi directory.
5590 * cspi/spi-listener.h : (NEW FILE)
5591 Added support for/use of spi-listener.h.
5593 C bindings now build successfully, with no warnings.
5594 * libspi/accessibleeventlistener.h : (NEW FILE)
5595 * libspi/accessibleeventlistener.c : (NEW FILE)
5596 * libspi/Makefile.am :
5597 Added new object type "AccessibleEventListener"
5598 which inherits from Listener, and allows attachment
5599 of in-process callbacks (so that a client with a listening
5600 object instance can add functionality to the local
5601 implementation, dynamically).
5603 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5605 * libspi/accessible.c:
5606 Add implementation for get_index_in_parent().
5608 Added #include of "spi-roletypes.h", and
5609 added enumerated type AccessibleCoordType.
5610 Added definition for KeystrokeListener (function type).
5613 * cspi/spi-statetypes.h :
5614 * cspi/spi-roletypes.h :
5616 Added these headers, used by spi.h.
5618 Added code (NOTE: not yet built by make).
5620 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5622 * libspi/Makefile.am: generate imodule
5623 at the same time as other idl compiler
5626 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5627 * libspi/registry.c :
5628 * libspi/application.c :
5629 * idl/Application.idl :
5630 Made registration with toolkit an application method,
5631 which is required since each app has its own toolkit static
5632 environment. Thus the bridge must register for
5633 notification of toolkit events from each application in turn.
5634 Toolkit notifications are now successfully registered for, and
5635 sent to the listening at client.
5637 Changed toolkit event string to use hyphens rather than underscores.
5638 * libspi/listener.c :
5639 listner now gives more info in debug mode - it reports the
5640 name of the event received, as well as the name of the source.
5643 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5645 * libspi/registry.c :
5646 added more implementation for toolkit events.
5647 Fixed bug such that toolkit event registrations
5648 (via atk) use the whole event name string, not
5650 Removed a useless call to an ORBit_ method.
5651 * at-bridge/bridge.c :
5652 Removed unused local sbuf[] variable.
5654 We now register for Gtk:GtkWidget:button_press_event
5655 events as well as "focus:" events.
5657 Add some more API from Registry.idl that was missing,
5658 for keystroke listening, keystroke and mouse event
5659 synthesis, and enumeration of accessible desktops.
5661 2001-08-16 Michael Meeks <michael@ximian.com>
5663 * configure.in: use AM_GLIB_GNU_GETTEXT.
5665 * Makefile.am (SUBDIRS): kill intl.
5667 2001-08-15 Michael Meeks <michael@ximian.com>
5669 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5671 * configure.in: upd.
5673 * configure.in: depend on a recent bonobo-activation that
5674 will find our server files ...
5676 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5678 * libspi/accessible.c : accessible_new() :
5679 Now we add the Component interface via bonobo_object_add_interface,
5680 if the contained AtkObject implements AtkComponent.
5681 * libspi/accessible.h : now include "component.h"
5682 * libspi/component.h :
5683 * libspi/component.c : added files - implementation of
5684 bonobo wrapper object for Accessibility/Component
5685 * libspi/listener.c :
5686 Added test code to check for Accessibility/Component:1.0
5687 interface and report whether it is implemented by the
5689 * libspi/registry.c :
5690 Now we check for not only the hash of the whole event
5691 string before relaying the event, we also check the
5692 "minor" event string (without the detail string).
5693 This allows event listeners to be registered against
5694 all events of a certain major+minor type, or just
5695 against a specific major+minor+detail type.
5696 * libspi/accessible.c :
5697 Added implementations for Accessible:get_parent(),
5698 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5699 * libspi/registry.c :
5700 * libspi/listener.c :
5701 Replaced calls to Accessibility_Accessible_ref() and
5702 Accessibility_Accessible_unref() with
5703 calls to bonobo_object_dup_ref() and
5704 bonobo_object_release_unref(), so that the CORBA object
5705 is dup-ed and released when relayed, as well as the bonobo object.
5707 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5709 * libspi/Makefile.am,
5710 registryd/Makefile.am,
5711 at-bridge/Makefile.am.
5712 test/Makefile.am, configure.in:
5713 reverse previous changes.
5715 * /idl/Image.idl: fix typo.
5717 * test/Makefile.am: put DEBUG_FLAGS
5720 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5722 * test/app.c: use argv[0] instead of
5725 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5727 * libspi/Makefile.am,
5728 registryd/Makefile.am,
5729 at-bridge/Makefile.am.
5730 test/Makefile.am, configure.in:
5731 cleanup, replace individual LIBS/CFLAGS with
5732 AT_COMMON_{LIBS|CFLAGS}.
5736 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5738 * configure.in, libspi/Makefile.am:
5739 Change IDL path checking for bonobo-activation
5742 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5744 * registryd/registry.c : separated event listeners to use
5745 3 separate lists (focus, window, toolkit). Began testing
5746 event names against hashes before relaying events.
5747 * test/at.c : now register for events of type "focus:"
5748 * test/app.c : now generate events of type "focus:"
5749 * at-bridge/bridge.c : register with ATK for focus events,
5750 and we now relay those focus events to any "focus:" listeners.
5751 This now works with the bridge as a GTK_MODULE when running test/at.
5752 * libspi/registry.c :
5753 * libspi/listener.c :
5754 now we ref event sources before propagating, and unref on receipt.
5755 * libspi/registry.c :
5756 some changes to internal structs, to support event typestring hashes.
5757 * text/app.c : changed the way the appname is generated.
5758 * cspi : added directory that will hold the C bindings library for
5759 non-CORBA/bonobo-savvy clients.
5760 * cspi/spi.h : header file that contains the function prototypes for the C binding.
5761 * idl/Component.idl : added in parameter to indicate coord system for
5762 geometry-related calls.
5763 * idl/Hyperlink.idl : added readonly n_links attribute
5764 * idl/Image.idl : changed methods to attributes.
5766 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5768 * at-bridge/Makefile.am: link against
5769 ../libspi/libspi.la instead of -lspi.
5771 * at-spi/test/app.c: include
5772 bonobo-activation.h. Use a default appname
5773 if one is not provided.
5775 2001-08-14 Bill Haneman <bill.haneman@sun.com>
5777 * idl/Registry.idl : temporarily changed register_Application
5778 to oneway, to work around issue with initial registration
5780 * idl/Application.idl : changed attribute "id" from readonly
5781 to read-write, since it needs to be assigned by Registry.
5782 * registryd/registryd.c : added call to set application id
5784 * registryd/registry.c : changed de-registration procedure to
5785 use CORBA_Object_hash() to find matching object ref in application
5786 lists and listener lists.
5787 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
5788 began distinguishing between event types (work in progress).
5790 2001-08-13 Bill Haneman <bill.haneman@sun.com>
5793 * libspi/application.c:
5794 Added implementations for get/set id, get_toolkitName,
5796 * registryd/registryd.c :
5800 Converted from use of OAF to bonobo-activation.
5801 * libspi/desktop.h :
5802 * libspi/desktop.c :
5804 Removed references to atksimpleobject, since base atkobject
5805 implementation now provides functionality we need.
5806 * libspi/atksimpleobject.c :
5807 * libspi/atksimpleobject.h :
5812 * at-bridge/Makefile.am
5813 * at-bridge/bridge.c
5816 Added directory "bridge" and contents, and added dependencies
5817 in Makefile.am/configure.in.
5818 Initial checkin of "at-bridge".
5819 This code is a GTK_MODULE which automatically registers
5820 GTK+ apps with the accessibility registry, using an object
5821 reference to the root ATK object.
5823 2001-08-10 Mark McLoughlin <mark@skynet.ie>
5825 * po/Makefile.in.in: Remove. Again. If this
5826 doesn't get autogenerated - you need to update
5829 2001-08-07 Mark McLoughlin <mark@skynet.ie>
5831 * po/Makefile.in.in: Add. Again.
5833 2001-07-31 Bill Haneman <bill.haneman@sun.com>
5835 * libspi/accessible.c : added support for 'description' property.
5836 * libspi/accessible.c
5838 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
5839 (since the two are now equivalent in libbonobo)
5847 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
5848 Bonobo::Unknown as does Accessibility::Accessible.
5849 * idl/StreamableContent.idl : as above, and replaced internal InputStream
5850 interface with Bonobo::Stream, since it was redundant with it.
5851 (The Stream returned by a StreamableContext object is expected to
5852 implement only a subset of Bonobo::Stream)
5854 2001-07-28 Anders Carlsson <andersca@gnome.org>
5856 * libspi/accessible.c (accessible_object_finalize): Change
5857 g_free to g_object_unref since the AtkObject is a GObject.
5859 2001-07-30 Bill Haneman <bill.haneman@sun.com>
5861 * idl/Accessibility.idl: add new IDL files
5864 * idl/Action.idl: Definitions of actionable UI object
5865 * idl/Component.idl: Definitions of UI component geometry, etc.
5866 * idl/Hyperlink.idl: Defs of hyperlink behavior
5867 * idl/Image.idl: Def of accessible image
5868 * idl/Selection.idl: Definition of UI object with selectable children
5869 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
5870 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
5871 * idl/Text.idl: Interface defs for UI elements with complex textual content
5872 * idl/Value.idl: Definition of UI element that is a value controller or display
5874 2001-07-27 Michael Meeks <michael@ximian.com>
5876 * po/Makefile.in.in: remove autogenerated file from CVS.
5878 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
5881 * idl/Registry.idl: include guard.
5883 * idl/Accessibility.idl: Add, and include all the other IDL
5886 * idl/*.idl: remove mass of pragmas etc.
5888 2001-07-26 Michael Meeks <michael@ximian.com>
5890 * registryd/Makefile.am (registryd_SOURCES): remove
5893 2001-07-27 Mark McLoughlin <mark@skynet.ie>
5895 * libspi/.cvsignore, registryd/.cvsignore,
5896 test/.cvsignore: updated.
5898 * po/Makefile.in.in: gettext update.
5900 2001-07-25 Bill Haneman <bill.haneman@sun.com>
5902 * initial CVS checkin
5904 2001-06-29 Michael Meeks <michael@ximian.com>
5906 * configure.in: add AM_CONFIG_HEADER to gen config.h