1 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
4 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
5 to compare two CORBA_TypeCodes.
6 (cspi_internal_event_add): Silence warning from FORTE compiler.
8 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
9 avoid implicit declaration of functions.
11 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
13 * atk-bridge/bridge.c:
14 (spi_atk_bridge_init_event_type_consts): Store signal id for
15 active-descendant-changed signal.
16 (spi_atk_register_event_listeners): Add signal listener for
17 active-descendant-changed signal,
18 (spi_atk_bridge_signal_listener): Move code in function
19 spi_atk-signal_emit_event() into this function.
20 Add support for active-descendant-changed
21 Update support for child-changed signal.
22 (spi_bridge_window_event_listener): Silence warning.
24 * libspi/spi_private.[ch]:
25 (spi_init_any_object): Change second parameter from CORBA_Object to
27 Omit call to CORBA_Object_duplicate().
28 Set CORBA_any's _value to CORBA_Object*.
30 2002-12-06 Bill Haneman <bill.haneman@sun.com>
36 (AccessibleEvent_ref, AccessibleEvent_unref):
37 New methods, for persisting an event outside the emission context.
38 Must be used if the new accessor methods are to be called
39 outside of the event listener's callback.
41 * cspi/bonobo/cspi-bonobo.c:
42 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
43 as second parameter instead of NULL, so we can call
44 cspi_check_ev afterwards.
47 (cspi_object_take): New internal method,
48 converts a CORBA_Object reference to a hard ref on
49 an Accessible if possible, returning NULL if the object
50 reference is invalid or an Accessible * otherwise.
53 (AccessibleEvent_ref):
54 Increment the event's internal private refcount, and
55 add the event's internal struct to an internal cache
56 if it's not already there.
57 (AccessibleEvent_unref):
58 Decrement the event's refcount and remove it from
59 the cspi event cache if refcount==0.
60 (cspi_event_compare): New private method.
61 Compares two event structs via their ids. Used
63 (cspi_internal_event_lookup): New private method.
64 (cspi_internal_event_check): New private method,
65 a 0-order sanity check for events to make sure their
66 private data is intact.
67 (cspi_internal_event_add, cspi_internal_event_remove):
68 New private methods for managiing the event cache.
70 * cspi/bonobo/cspi-bonobo-listener.c:
72 Initialize the new private data elements (id, magic, ref_count).
74 * atk-bridge/bridge.c:
75 (spi_atk_bridge_signal_listener):
76 Fixed bug #100530, passing wrong params to emission func.
78 * registryd/deviceeventcontroller.c:
79 (spi_dec_button_update_and_emit):
80 Fixed type in mask bit operations; fix for #99799.
82 2002-12-02 Bill Haneman <bill.haneman@sun.com>
84 Removed some of the more dangerous workarounds from
85 previous commit; they are only needed by GOK, which
86 in reality should be using another method to accomplish
87 the goals. So on reconsideration some of the workarounds
90 * registryd/deviceeventcontroller.c:
91 (spi_keycodes_contain, spi_dec_init_keycode_list):
92 Removed these methods, used only by a nasty hack to try
93 and detect whether a key synthesis should be allowed
94 to reset the XKB latch state or not. This code was only
95 required to work around an interaction between GOK,
96 button events, and XKB.
97 (impl_generate_key_event):
98 Removed hack at end of key generation that tried to
99 "do the right thing" if XKB latch keys were generated
100 in the midst of button press/release pairs.
103 Added a check for HAVE_XINPUT. Not normally used yet.
105 2002-11-25 Bill Haneman <bill.haneman@sun.com>
107 Workarounds and fixes for mouse event/XKB interaction.
109 * registryd/deviceeventcontroller.c:
110 (spi_keycodes_contain, spi_dec_init_keycode_list):
111 New internal methods.
112 (spi_dec_set_unlatch_pending):
113 Split the method that tells XKB to expect an
114 unlatch (and revert it) out of the rest of the
115 event handling code. This method is called by the
116 two mouse event handlers (the poll and the filter).
117 (spi_dec_update_and_emit, spi_dec_mouse_check):
118 New methods split from spi_dec_poll_mouse_moved.
119 The second one is now called from inside the filterFn
120 when an XKB delatch event is received, to determine
121 whether to revert the delatch or not.
122 (spi_poll_mouse_moved): Refactor; also we can now
123 properly handle the case where multiple button states
124 have changed between polling cycles and we didn't get
125 notified due to another client's grab.
127 Synchronize the server while handling an XKB notification.
128 Ugly, but apparently necessary to avoid nasty races.
129 Check the mouse state on receipt of an XKB latch change,
130 to decide whether to revert the latch or not. (Latches are
131 reverted if there is an immediately preceding mouse button
132 event that a client has consumed, in which case we don't want
133 the user to see the side-effect of the event).
134 (spi_device_event_controller_forward_mouse_event):
135 Check for modifier events and fire before resetting mouse_mask_state,
136 prevents losing modifier events.
138 (impl_generate_keyboard_event):
139 If we've just generated a keyboard event for a non-shift key,
140 we don't want to revert the pending XKB latch.
141 Otherwise, check the modifier state (via a call to
142 spi_dev_mouse_check) and set the relatch mask to
143 that state before returning.
145 2002-11-24 Bill Haneman <bill.haneman@sun.com>
148 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
151 * atk-bridge/bridge.c:
152 (spi_atk_register_event_listeners):
153 Don't re-register for ATK events if the registry has died
154 and the app needs to re-register; the ATK listeners are in
155 process and doing so will cause duplicate emission.
157 * registryd/deviceeventcontroller.c:
158 (spi_poll_mouse_moved):
159 Reformat the source, detect and emit multiple button-change
160 events (i.e. if multiple buttons have changed between poll
162 Add code to detect mouse-down events even when the pointer
163 is grabbed; workaround for GOK bug 98420.
164 (spi_controller_register_with_devices):
165 Call XTestGrabControl with 'impervious' flag set to True,
166 allows us to synthesize events and query the pointer even during
167 an active grab by another client.
168 (spi_device_event_controller_forward_mouse_event):
169 Set the mouse_mask_state to the mouse_button_state from
170 the intercepted event, to synchronize the grab listener with
173 2002-11-20 Bill Haneman <bill.haneman@sun.com>
175 * cspi/spi_accessible.c:
176 (AccessibleRole_getName):
177 Added necessary strings for making this (deprecated)
178 method work with the new role types.
179 (init_role_table, role_table):
180 Added definition of SPI_ROLE_APPLICATION.
182 * libspi/spi-roletypes.h:
183 Added SPI_ROLE_APPLICATION.
185 * idl/Accessibility_Role.idl:
186 Added ROLE_APPLICATION.
188 * docs/reference/cspi/at-spi-cspi-decl.txt:
189 Added SPI_ROLE_APPLICATION to docs.
191 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
193 * cspi/spi_accessible.c
194 (cspi_init_role_table): Do not write beyond end of role_table.
195 (Accessible_getRole): Use correct type for value returned by
196 Accessibility_Accessible_getRole().
198 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
199 beyond end of role_table. (This fixes bug #98269)
201 * libspi/application.c: Add include file spi-private.h for
202 definition of spi_init_any_nil.
204 2002-11-19 Bill Haneman <bill.haneman@sun.com>
208 * libspi/spi-private.h:
209 Added DGB() macro, and extern int _dbg declaration.
211 * registryd/registry.c:
212 (definitions) storage for _dbg.
214 Get environment variable "AT_SPI_DEBUG".
215 (spi_registry_set_debug):
216 New method, to initialize _dbg value.
217 (spi_listener_struct_new, spi_registry_object_finalize):
218 (notify_listeners_cb):
219 Changed fprintfs to use DBG and g_warning().
221 * registryd/deviceeventcontroller.c:
222 (_deregister_keygrab, spi_controller_register_device_listener):
223 Changed debug/warning messages to use DBG macro.
227 Changed warning messages to use DBG macro and g_warning().
229 * atk-bridge/bridge.c:
230 (atk_bridge_init, spi_atk_bridge_get_registry):
231 (spi_atk_bridge_exit_func):
232 (spi_atk_bridge_property_event_listener):
233 Changed status, warning, and error messages to use
234 g_warning, g_message, and DBG macros.
237 Read the state of the AT_SPI_DEBUG environment variable
238 and set a local '_dbg' accordingly.
240 2002-11-19 Bill Haneman <bill.haneman@sun.com>
242 FIXES for 98836, 98842, other bugs.
245 Revved to 1.1.4, interface-age=4, binary-age=4.
247 * registryd/deviceeventcontroller.c:
249 Fixed crasher bug in last_mouse_pos initialization.
251 * registryd/registry.c:
252 (desktop_add_application, desktop_remove_application):
253 Added (and then commented out) some support for
254 object context marshalling. [TODO]
256 * atk-bridge/bridge.c:
257 (spi_atk_bridge_event_context_create):
258 Commented out object context creation until it can
259 be properly tested and debugged.
261 * registryd/registry.c:
262 (impl_registry_notify_event):
263 Fixed crasher bug, we were calling
264 spi_re_entrant_list_foreach () with an empty list.
266 2002-11-18 Bill Haneman <bill.haneman@sun.com>
268 * idl/Accessibility_Action.idl:
269 * idl/Accessibility_Component.idl:
270 * idl/Accessibility_Desktop.idl:
271 * idl/Accessibility_Event.idl:
272 * idl/Accessibility_Hyperlink.idl:
273 * idl/Accessibility_Image.idl:
274 * idl/Accessibility_Relation.idl:
275 * idl/Accessibility_Selection.idl:
276 * idl/Accessibility_State.idl:
277 * idl/Accessibility_Value.idl:
278 Updated unimplemented slot count to minimum of
279 four for all interfaces, for ABI freeze.
281 * idl/Accessibility_EditableText.idl:
282 * idl/Accessibility_Text.idl:
283 Updated unimplemented slot count to six
286 * idl/Accessibility_Registry.idl:
287 Updated unimplemented slot count to six
288 (also for DeviceEventController),
291 * idl/Accessibility_Table.idl:
292 Updated unimplemented slot count to eight,
295 * idl/Accessibility_Event.idl:
296 Added CORBA_any "any_data" member to Event struct.
298 * idl/Accessibility_Event.idl:
299 Added CORBA_any "any_data" member to Event struct.
301 * atk-bridge/bridge.c:
303 atk_signal_text_changed, atk_signal_child_changed,
304 signal ids queried from gtype system.
305 (AtkBridgeEventContextType): New enum.
306 (AtkBridgeEventContextData): New struct.
307 (AtkBridgeEventContext): New struct.
308 (atk_bridge_init_event_type_consts):
309 New method, initializes type contants for comparison
310 prior to emit_eventv.
311 (atk_bridge_event_context_init): New method,
312 initializes a CORBA_any from an AtkBridgeEventContext.
313 (atk_bridge_focus_tracker): Call spi_init_any_nil to
314 initialize the event.any_data struct.
315 (spi_atk_bridge_event_context_create): New method,
316 creates an AtkBridgeEventContext from signal/event info.
317 (spi_atk_bridge_event_context_free): New method.
318 (spi_atk_emit_eventv): Changed to take an
319 AtkBridgeEventContext parameter. We now initialize
320 the event.any_data member prior to notifying the
321 Registry, via the AtkBridgeEventContext.
322 (spi_atk_bridge_property_event_listener):
323 (spi_atk_bridge_state_event_listener):
324 Match emit_eventv signature.
325 (spi_atk_bridge_object_event_listener):
326 Match emit_eventv signature, and create an
327 event context from the event details.
328 Free the event context afterwards.
329 (spi_atk_bridge_window_event_listener):
330 Create an event context, pass it to the
334 (AccessibleEvent_getContextString):
335 (AccessibleEvent_getContextObject):
336 New methods, allow query of AccessibleEvent objects
337 for more context details (via the "any_data" member
338 of the Event struct, above).
341 Definitions for AccessibleEvent_getContextString
342 and AccessibleEvent_getContextObject.
344 * cspi/spi_listener.h:
345 (InternalEvent): New struct.
348 (AccessibleEvent_getContextString):
349 (AccessibleEvent_getContextObject):
350 Implementations of new methods, for obtaining
351 additional context information from some event types.
353 * cspi/spi_registry.c:
354 (SPI_registerGlobalEventListener):
355 Added mention of active-descendant-changed event in docs.
357 * cspi/cspi-bonobo-listener.c:
359 Marshal the any into the AccessibleEvent via
362 * libspi/spi-private.h:
363 #include <orbit/orbit.h>
365 (spi_init_any_string):
366 (spi_init_any_object):
367 New convenience function declarations.
371 (spi_init_any_string):
372 (spi_init_any_object):
373 New convenience function implementations.
375 * registryd/deviceeventcontroller.c:
376 (spi_poll_dec_mouse_moved):
377 (spi_device_event_controller_forward_mous_event):
378 Initialize any_data member of event.
379 (spi_deregister_controller_device_listener):
380 Fix incorrect param pass which was preventing deregistration.
382 * registryd/registry.c:
383 (desktop_add_application):
384 (desktop_remove_application):
385 Add object data to event's any_data before dispatch.
387 Fix for error messages from GAIL.
389 * test/event-listener-test.c:
390 Test new ContextString and "any_data" API:
391 (report_text_event): New method query and output context string.
392 (main): register a new text listener with report_text_event
395 2002-11-19 Darren Kenny <darren.kenny@sun.com>
397 Fixes for bugs 98127 and 97914.
398 * cspi/spi-roletypes.h:
399 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
401 * cspi/spi-statetypes.h:
402 Added SPI_STATE_MANAGES_DESCENDANTS
404 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
405 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
406 * cspi/spi_accessible.c:
407 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
408 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
409 Accessibility_STATE_MANAGES_DESCENDANTS
410 * libspi/accessible.c:
411 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
412 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
413 As requested by Bill, I also cleaned up the alignment.
415 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
416 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
418 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
419 Accessibility_STATE_MANAGES_DESCENDANTS
420 * docs/reference/cspi/tmpl/spi_accessible.sgml:
421 Document changes reflecting modifications to roles.
422 * docs/reference/cspi/tmpl/spi_relation.sgml:
423 Document changes reflecting modifications to relations.
424 * docs/reference/cspi/tmpl/spi_stateset.sgml:
425 Document changes reflecting modifications to states.
427 2002-11-17 Bill Haneman <bill.haneman@sun.com>
430 Revved to 1.1.3, interface-age=3, binary-age=3.
434 Removed accessx-gui from the tests, since we have a nice
435 keyboard accessibility capplet now :-)
437 * test/keysynth-demo.c:
438 (increment_scan): removed do-nothing default: case,
441 * test/visual-bell.c:
442 (main) : removed do-nothing default: case,
446 (AccessibleAction_getKeyBinding_):
447 Documented keybinding string format.
451 (AccessibleText_getAttributes):
452 Documented the text attribute string format.
453 It's changed to use semicolon delimiters also,
454 to prevent clashes with CSS attributes, but the old
455 trick of looking for ", " strings will still work
456 (as unreliably as ever). Fix for bug related to 97916.
459 Include <cspi/bonobo/cspi-bonobo-listener.h>
461 (SPI_freeAccessibleKeySet):
462 (AccessibleKeystrokeListener_addCallback):
463 (AccessibleKeystrokeListener_removeCallback):
464 Modify to use AccessibleDeviceListener API internally,
465 instead of AccessibleKeystrokeListener.
467 * idl/Accessibility_Event.idl:
468 Added two more empty slots to EventListener (for a total of four).
470 * idl/Accessibility_Accessible.idl:
471 Added four empty slots to Accessible interface.
473 2002-11-15 Bill Haneman <bill.haneman@sun.com>
475 * idl/Accessibility_Registry.idl:
476 (KeyEventType, EventType):
477 Marked KeyEventType as deprecated; it duplicates
478 functionality of EventType, which has been extended to
479 include Mouse-button events.
480 (KeyEventTypeSeq): defined in terms of EventType.
481 (registerDeviceEventListener, deregisterDeviceEventListener):
482 New methods, for managing listeners to device events,
483 which potentially may consume them.
486 Added definition for AccessibleDeviceListener.
488 * cspi/spi-listener.h:
489 (enum AccessibleDeviceEventType):
490 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
491 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
492 for backwards compat.
493 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
494 and typedef'd AccessibleKeystroke to it for back-compat.
495 (AccessibleDeviceListenerCB):
496 New function prototype typedef.
499 (AccessibleDeviceEventMask): New typedef.
500 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
501 (AccessibleKeyMaskType):
502 Set equivalent to AccessibleModifierMaskType for back-compat.
503 (SPI_createAccessibleKeystrokeListener):
504 (AccessibleKeystrokeListener_unref):
505 Deprecated in favor of equivalent (better-named) new API below..
506 keystroke listeners are like all device listeners.
507 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
508 New API names for old features :-).
509 (AccessibleDeviceListener_addCallback):
510 (AccessibleDeviceListener_removeCallback):
511 (SPI_registerDeviceEventListener):
512 (SPI_deregisterDeviceEventListener):
516 (SPI_createAccessibleKeystrokeListener):
517 Use new preferred API, cspi_device_listener_new() and
518 cspi_device_listener_add_cb().
519 (AccessibleKeystrokeListener_removeCallback):
520 Use new preferred API, cspi_device_listener_remove_cb().
521 (AccessibleKeystrokeListener_unref):
522 Use new preferred API, cspi_device_listener_unref().
523 (SPI_createAccessibleDeviceListener):
524 (AccessibleDeviceListener_addCallback):
525 (AccessibleDeviceListener_removeCallback):
526 Implementation of new API.
528 * cspi/spi_registry.c:
529 (SPI_registerDeviceEventListener):
530 (SPI_deregisterDeviceEventListener):
531 Implementation of new API. Fixed memory leak and removed need to
532 allocate EventTypeSeq (thanks Michael for catching this).
533 Squashed a wayward CORBA_exception_free that shouldn't get called.
535 * cspi/bonobo/cspi-bonobo-listener.c:
537 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
538 (cspi_key_event): renamed to cspi_device_event().
539 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
540 Extended to handle mouse button events as well as key events.
541 (CSpiKeystrokeListener):
542 Class superceded by CSpiDeviceListener.
543 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
544 These internal APIs changed to "*device_listener" from "*keystroke_listener".
546 * cspi/bonobo/cspi-bonobo-listener.h:
547 (CSpiKeystrokeListener):
548 Class superceded by CSpiDeviceListener.
549 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
550 These internal APIs changed to "*device_listener" from "*keystroke_listener".
552 * libspi/Makefile.am:
553 Replaced keystrokelistener.h and keystrokelistener.c
554 with devicelistener.h and devicelistener.c; keystrokelisener.h
555 stub retained for back-compat.
557 * libspi/keystrokelistener.c:
561 Replaced inclusion of keystrokelistener.h with devicelistener.h.
563 * registryd/deviceeventcontroller.c:
564 (DEControllerListener): Added Accessibility_EventTypeSeq member.
565 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
566 (DEControllerPrivateData): Added xkb settings data.
567 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
568 button release events (which can't be captured via XGrabButton).
569 Don't dispatch via the 'normal' event mechanism if the device event was
571 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
572 Handle the typeseq data in its new location (see above).
573 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
574 New methods, for "generic" device listeners.
575 (spi_controller_register_device_listener):
576 Now handle mouse event listeners as well as key listeners.
577 (spi_controller_notify_mouselisteners):
579 (spi_device_event_controller_forward_mouse_event):
580 Now we notify mouse device listeners as well as generating the
581 non-consumable "mouse:" events.
583 We must check and restore the XKB
584 modifier map if we consume the event, since the act of triggering
585 a mouse event will normally reset the XKB latch. This is required for
587 (spi_controller_register_with_devices):
588 Load the XKB settings when registering, and register for XKB
590 (spi_key_eventtype_seq_contains_event):
591 Renamed spi_eventtype_seq_contains_event, since it's used
592 internally for all device event types now.
593 (spi_key_event_matches_listener):
594 Uses spi_eventtype_seq_contains_event now.
595 (spi_device_event_controller_object_finalize):
596 Free the private data and the XkbKeyboard struct.
597 (impl_register_device_listener, impl_deregister_device_listener):
598 Implementation of new IDL.
599 (spi_deregister_controller_device_listener):
601 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
602 More efficient implementation, we don't have to create a new
603 XkbControls structure every time we query.
604 (spi_device_event_controller_class_init):
605 Initialize the epv entries for the new IDL. Assign the
606 "spi-dec-private" quark.
607 (spi_device_event_controller_init):
608 Initialize the private data.
609 (spi_device_event_controller_forward_key_event):
610 Removed a bogus CORBA_exception_free() call.
612 * registryd/deviceeventcontroller.h:
613 Replaced inclusion of keystrokelistener.h with
616 * test/event-listener-test.c:
617 (report_mouse_event):
620 Added mouse-event device listener.
622 * test/test-simple.c:
623 (create_test_window):
624 Fixed regression (we were instantiating a GtkRange,
625 which is now an abstract class). Also fixed to match
626 existing AtkRole names, this seems to have changed in ATK
627 awhile ago; too late now I think, and the new
628 mechanism is at least elegant and consistent with the
629 glib enum "nick" APIs.
631 2002-11-15 Darren Kenny <darren.kenny@sun.com>
633 * idl/Accessibility_Relation.idl:
634 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
635 RELATION_EMBEDS,RELATION_EMBEDDED_BY
636 * idl/Accessibility_Role.idl:
637 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
638 * idl/Accessibility_State.idl:
639 add STATE_MANAGES_DESCENDANTS
640 * test/event-listener-test.c:
641 Added a listener for active-descendant events.
643 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
645 * atk-bridge/bridge.c
646 (atk_bridge_init): If application is Bonobo component wait until top
647 level is added before registering
648 (spi_atk_bridge_do_registration): New function which contains code,
649 formerly in atk_bridge_init, to do application registration.
650 (spi_atk_bridge_toplevel_added): Signal called when top level
651 added to Bonobo component
653 This fixes bug #83134.
655 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
657 * registryd/deviceeventcontroller.c
658 Fixed compilation error caused by calling gettimeofday()
661 2002-10-18 Bill Haneman <bill.haneman@sun.com>
666 Added template for HAVE_XKB.
669 Changes to check for XKB, and to set the HAVE_XKB #define if it
673 ()impl_notify_event): Make failure to get event source name
676 * registryd/deviceeventcontroller.c:
677 (#include): include X11/XKBlib.h.
678 (DEControllerPrivateData) : New struct.
679 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
681 (dec_synth_keycode_press) (dec_synth_keycode_release):
682 New methods; split the key synthesis code into these methods.
683 They check XKB settings before determining the "time" values to
684 pass to Xtest; this fixes bug #95828.
685 (impl_generate_keyboard_event): Changed to use methods above,
686 instead of callng Xtest directly.
687 (spi_device_event_controller_init): Initialize new privae struct s
689 (spi_device_event_controllr_object_finalize):
690 Free the (new) private data.
692 * registryd/deviceeventcontroller.h:
693 Add new gpointer to end of struct data.
695 2002-10-16 Bill Haneman <bill.haneman@sun.com>
698 Incremented revision to 1.1.2, SONAME is still '.so', library
699 extensions are ".so.0.0.2".
701 * registryd/deviceeventcontroller.c:
702 FIXES FOR #93592 and #95940.
703 (statics): renamed mouse_button_state to mouse_mask_state,
704 added key_modifier_mask.
705 (spi_dec_poll_mouse_moved):
706 Added key modifier checks, and emit "keyboard:modifiers"
707 events when the key modifiers currently in use change.
708 Also generate "mouse:abs" events periodically, even if the mouse
709 is stationary (should we?).
710 Alternatively we could generate "mouse:abs" events for either all
711 mouse movements, or every 'nth' mouse movement, or at the
712 beginning and end of every "active" mouse period.
714 * test/event-listener-test.c:
715 (main): Added listener for "keyboard:modifiers" events.
717 2002-10-15 Bill Haneman <bill.haneman@sun.com>
720 Added key mask #defines for mouse buttons; e.g.
721 SPI_KEYMASK_BUTTON1, etc.
724 Incremented dependency on ATK to version 1.1.0. (This dependency
725 is probably premature but will soon be real enough).
727 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
729 * libspi/hyperlink.[ch]
730 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
731 (get_hyperlink_from_servant): Check object is AtkHyperlink not
734 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
739 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
741 * registryd/deviceeventcontroller.c
742 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
743 events to be ignored.
744 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
745 keyboard_mode so that XAllowEvents() can be called.
749 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
751 * cspi/spi-accessible.c: Correct names of roles returned by
752 AccessibleRole_getName(). Fixes bug #95055.
754 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
756 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
759 * registryd/registry.c
760 (desktop_remove_application: Write diagnostic message to stderr for
763 (impl_accessibility_registry_deregister_global_event_listener):
764 Correct size of lists array. This addresses bug #94555).
766 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
768 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
771 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
773 * registryd/Makefile: Add CLEANFILES so that .server file is removed
776 * registryd/registry.c (impl_registry_notify_event): Remove
777 unnecessary call to parser_event_type().
779 * docs/reference/cspi/tmpl/spi_component.sgml:
780 Add reference to SPI_LAYER_WINDOW.
782 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
784 * registryd/registry.c
785 (desktop_add_application): Remove leak.
786 (desktop_remove_application): Remove leak.
787 (parser_event_type): Remove leak.
789 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
791 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
792 bogus call to CORBA_string_dup(). Also removed unnecessary
793 g_string_dup/g_free calls.
795 2002-09-13 Bill Haneman <bill.haneman@sun.com>
797 * registryd/deviceeventcontroller.c:
798 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
800 * test/event-listener-test.c:
801 main: commented out three redundant listeners, to reduce output
802 noise. (They still are potentially useful for testing).
805 2002-09-13 Michael Meeks <michael@ximian.com>
807 * Update all the copyrights to include Ximian.
809 2002-09-06 Mark McLoughlin <mark@skynet.ie>
811 * cspi/spi.h: add SPI_LAYER_WINDOW.
813 * cspi/spi_component.c: (AccessibleComponent_getLayer):
814 add Accessibility_LAYER_WINDOW case.
816 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
818 * libspi/component.c: (impl_accessibility_component_get_layer):
819 add ATK_LAYER_WINDOW case.
821 2002-08-28 Bill Haneman <bill.haneman@sun.com>
823 * configure.in: incremented micro version.
825 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
827 2002-08-20 Bill Haneman <bill.haneman@sun.com>
830 Clarified and reworded our commit policy.
833 Started an API "todo" addition list for 2.2.
837 Free char pointer from atk_text_get_selection, which was being leaked.
839 2002-08-19 Bill Haneman <bill.haneman@sun.com>
842 Small revision to author acknowledgement.
844 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
846 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
847 If signal has detail add it to the type of the event.
850 2002-08-12 Michael Meeks <michael@ximian.com>
852 * test/test-simple.c (global_listener_cb): bin bogosity.
853 (test_keylisteners): disable, still doesn't work reliably,
854 certainly not on my system anyway.
856 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
857 don't leak a reference on the DEC. This round-trip
858 fetching of the DEC per keystroke sucks, it should be
861 * cspi/spi-private.h,
862 * cspi/cspi-lowlevel.h,
863 * cspi/bonobo/cspi-bonobo-listener.[ch],
864 * cspi/bonobo/cspi-bonobo.c: get the copyright
865 notices better - there is still a large amount of
866 work in at-spi falsely attributed solely to Sun.
868 * cspi/spi_main.c (cspi_object_ref): kill bogus
869 hash lookup, just increment the ref.
870 (SPI_freeString): make explicit the fact that we
871 handle NULL strings just fine.
872 (report_leaked_ref): obey coding standards.
873 (cspi_object_hash, cspi_object_equal): kill retval.
874 (cspi_object_release): only release if not on loan.
875 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
876 (cspi_object_borrow, cspi_object_return): impl.
878 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
879 use cspi_object_borrow / return.
881 2002-08-12 Darren Kenny <darren.kenny@sun.com>
883 * cspi/bonobo/cspi-bonobo-listener.c:
885 Don't call cspi_oject_new() because this is creating a new Accessible
886 every single time that an event is fired. This causes ATs like at-poke
887 to nolonger recognise the source of the event and thus ignore it.
888 Re-use the object from the cache, ref it and then unref it after the
889 listeners have been called.
891 2002-08-06 Darren Kenny <darren.kenny@sun.com>
893 * test/event-listener-test.c:
894 Added command-line options to disable mouse events (m) and
897 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
899 * configure.in: Update required versions of ATK, GTK+ and GAIL
901 * cspi-1.0.pc.in: Add dependency for X include files
904 * cspi/bonobo/Makefile.am:
905 Add $(X_CFLAGS) so that X include files
906 are picked up even if not in standard place (bug #71686)
908 2002-06-25 Bill Haneman <bill.haneman@sun.com>
910 * registryd/deviceeventcontroller.c: fix for 84261
911 (spi_dec_mouse_moved):
912 Added test of mouse button mask, so that we can detect mouse
913 button release. Unfortunately we can't otherwise detect mouse
914 button release events without consuming the mouse press event,
915 because of the way XGrabButton works. This means that our mouse
916 release events have a latency dependent on the polling period
917 while the mouse button is down. At least in this case we only
918 have to poll while the button is down, and not at other times.
919 If the button masks don't match with what the last press event
920 reported, we report the appropriate button release event.
921 (spi_dec_ungrab_mouse):
922 New method (not yet called).
923 (spi_device_event_controller_forward_mouse_event):
924 New method, sends mouse press event from GdkFilter.
925 (spi_dec_init_mouse_listener):
926 Added code to call XGrabButton, redirecting mouse button events to
927 the root window and our Gdk event loop.
929 Added code to filter mouse button events, and reordered.
931 * test/event-listener-test.c:
933 Added registration for mouse events of type "mouse:button".
935 2002-06-25 Bill Haneman <bill.haneman@sun.com>
937 * registryd/deviceeventcontroller.c: partial fix for 84261
938 (spi_dec_poll_mouse_idle):
939 New method, a timeout which checks to see if the mouse
941 (spi_dec_poll_mouse_moving):
942 A timeout to be called when mouse motion is underway.
943 (spi_dec_poll_mouse_moved):
944 A method which fires an event if the mouse has moved, and reports
945 whether or not it did so.
946 (spi_dec_init_mouse_listener):
947 A method which sets up the timeouts above.
948 (spi_device_event_controller_new):
949 Now calls spi_dec_init_mouse_listener.
951 * registryd/registry.c:
953 Now we initialize the device event controller when the registry is
954 initialized, instead of waiting until a client has requested a key
955 event notification; this is because we need the event controller
956 for mouse events, but the mouse event registration API is a
957 "registry" call and doesn't explicitly call the
958 deviceeventcontroller.
959 We now report mouse motion events with a 100 ms idle latency and
960 a 20 ms granularity when motion is in progress.
962 * test/event-listener-test.c:
964 We now register the "detail listener" for events of type
965 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
966 delivered only for the first mouse event received, and thereafter
967 "mouse:abs" events are delivered.)
969 * cspi/spi_registry.c:
970 DOCS: Documented the above mouse event typestrings.
972 2002-06-21 Bill Haneman <bill.haneman@sun.com>
974 Happy Summer Solstice...
976 * registryd/deviceeventcontroller.c: [fix for bug 84100]
977 (spi_controller_notify_keylisteners):
978 Changes to remove a listener from the listener list, freeing its
979 open keygrabs, if a notification to that listener fails. This
980 means that although a dead listener can continue to hold a passive
981 keygrab, a maximum of one dispatch to such a listener can fail
982 before the listener is removed from the list, thus the keygrab
983 will be released on the next occurrence.
985 (spi_notify_keylisteners):
986 Renamed to spi_controller_notify_keylisteners, as the controller
987 instance must now be passed as an argument.
988 The copied 'notify' GList is now a list of DEControllerKeyListener
989 objects, since we need more than just the CORBA reference if a
990 notify fails and we need to deregister the listener.
991 (impl_notify_listeners_sync):
992 (impl_notify_listeners_async):
993 (spi_device_event_controller_forward_key_event):
994 Modify use of notify_keylisteners in accordance with above
996 (spi_deregister_controller_key_listener):
997 New method introduced by refactoring, from
998 impl_deregister_keystroke_listener.
999 (impl_deregister_keystroke_listener):
1000 Call spi_deregister_controller_key_listener.
1001 (spi_key_listener_clone):
1002 New method to copy a key listner without doing a 'ref' on the
1003 remote object instance; used to create a notifier list.
1004 (spi_key_listener_data_free):
1005 New method, frees data without unreffing the source.
1007 (spi_key_listener_clone_free): new method.
1008 (spi_key_listener_free):
1009 refactored to call spi_key_listener_data_free.
1011 2002-06-20 Bill Haneman <bill.haneman@sun.com>
1013 * registryd/registry.c: [fix for bug 86048]
1014 (notify_listeners_cb):
1015 Clear CORBA system exceptions which occur when notifying
1016 listeners, before returning to the source of the original event,
1017 since the event source doesn't care if the relayed notify failed.
1018 In other words, don't complain to the atk-bridge if the registry
1019 could not notify all its listeners, that's no fault of the
1020 application and thus should not appear to be an error from the
1021 application's perspective.
1023 * cspi/spi_main.c: [fix for bug 85980]
1025 Replaced use of bonobo_object_dup_ref with call to the wrapper
1026 method, csou_dup_ref (); this silences a compiler warning and
1027 provided more portability.
1029 Ping the registry before return, and restart if necessary.
1031 * cspi/bonobo/cspi-bonobo.c:
1033 New internal method.
1035 Fixed this method to return an object reference, as it should have
1038 * cspi/cspi-lowlevel.h:
1039 Added internal definition for cspi_ping() and fixed
1040 return type of cspi_dup_ref().
1043 2002-06-19 Bill Haneman <bill.haneman@sun.com>
1045 * atk-bridge/bridge.c: [fix for bug 85305]
1046 (spi_atk_bridge_register_application):
1047 New method where the initial application registry calls have been
1048 moved; it allows an application to re-register in response to
1049 certain error conditions (such as a registry restart, see below).
1051 Moved some initialization code to the method
1052 spi_atk_bridge_get_registry, below.
1053 (spi_atk_bridge_get_registry):
1054 New, private accessor function for the Accessibility_Registry
1055 instance. If the registry has not been started before, or has
1056 died (as detected by failure of a CORBA exception), it is
1057 restarted before return, and spi_atk_bridge_register_application
1058 is called again to register with the new bridge instance.
1059 (spi_atk_emit_eventv):
1060 Set registry_died on error; use spi_atk_bridge_get_registry () to
1061 access the registry.
1063 * registryd/registry.c:
1064 (impl_accessibility_registry_register_global_event_listener):
1065 Set listener's event_type_quark to etype.minor instead of
1066 etype.major (fix for bug 84856).
1068 * test/event-listener-test.c:
1069 (report_detail_event):
1070 Change the output string so that user/tester can tell that the
1071 'detail listener' was called instead of the 'generic listener'.
1073 2002-06-18 Bill Haneman <bill.haneman@sun.com>
1075 Fixes for bugs 84900, 84908, 84897, 84898.
1080 Revved version to 1.1.0
1081 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1082 version is going to HEAD which will be used for gnome-2-0-1 and later.)
1084 * idl/Accessibility_Registry.idl:
1085 (EventListener::notifyEvent):
1086 Removed 'oneway' directive after extensive consulation with
1087 ORBit2 team and others. This means also that unref() of the event
1088 source can and should be done synchronously after emission, rather
1089 than remotely in the client, after servicing the notify call on
1092 NOTE: This change speeds up listener performance considerably, but
1093 introduces new latency on the application side. We may want to
1094 add an event queue to the atk-bridge.
1096 * atk-bridge/bridge.c:
1097 (spi_atk_bridge_focus_tracker):
1098 Do a local unref() on the event source after emission.
1100 * registryd/registry.c:
1101 (desktop_remove_application):
1102 Do an unref() on the event source after emission.
1103 (desktop_add_application):
1104 Do an unref() on the event source after emission.
1105 (notify_listeners_cb):
1106 When relaying an event, don't automatically add the event source
1107 to the local object cache, just CORBA_dup it instead. Likewise,
1108 if this method reenters, release the ref rather than calling
1110 (impl_registry_notify_event):
1111 No longer call remote unref() on the event source after dispatch.
1113 * libspi/eventlistener.c:
1114 (impl_accessible_event_notify_event):
1115 Removed remote unref ()
1117 * cspi/bonobo/cspi-bonobo-listener.c:
1119 We now call cspi_object_new() instead of cspi_object_add() on
1120 receipt of an event; thus we only have an implicit object ref
1121 while the cspi_event method is being executed. If we need to keep
1122 a reference to the object, the listener must call ref() on the
1123 object. Thus also we don't need to call cspi_object_unref() after
1124 invoking the listener callbacks in this method.
1128 New internal API for creating a new cspi object, without adding it
1129 to the object cache.
1131 Now uses cspi_object_new() to create the cspi object instance.
1133 Now checks to see if the object is in the internal object cache,
1134 and adds it if necessary before incrementing its refcount (note
1135 that new objects are added with a refcount of 1).
1136 (report_leaked_ref):
1137 New method which gives some information on leaked object instances
1138 if leak detection is turned on.
1140 * test/event-listener-test.c:
1141 (timing_test_event):
1142 New method, used for testing event delivery timing for special
1143 events of type "object:test". It reports elapsed time and
1144 events/sec every 500 events.
1146 Added a new listener, 'test listener', to check timing of event
1147 receipt as noted above.
1149 Added some timing output here also, reports elapsed time every 100
1152 * test/stress-test.c:
1153 Emit events of type "object:test", for use with "event-listener-test".
1155 * test/test-simple.c:
1156 (global_listener_cb):
1157 Call Accessible_ref() on the event source before calling
1158 validate_accessible, since the validation process does pointer
1159 comparisons on the event source, meaning that the event source
1160 needs to be added to the local object cache first. Any use of
1161 such pointer comparisons between Accessible objects requires that
1162 the caller hold an explicit reference to those objects.
1163 We also must therefore call Accessible_unref() when leaving this method.
1165 2002-06-13 Bill Haneman <bill.haneman@sun.com>
1167 * registryd/deviceeventcontroller.c:
1168 (spi_controller_update_key_grabs):
1169 Fix for #84735, subsequent keygrab listeners not informed of
1170 registration failure.
1173 (spi_base_construct):
1174 Add an assertion on construct, to make sure the GObject passed in
1175 is really a GObject.
1177 Explicitly initialize object->gobj pointer to NULL;
1179 * cspi/bonobo/cspi-bonobo-listener.c:
1180 (cspi_object_add_ref):
1181 New method, can specify whether to dup-ref a bonobo object passed
1182 in if it's newly added to the object cache.
1184 Now calls cspi_object_add_ref with second param of "FALSE". This
1185 prevents us from doing a pointless dup-ref followed by
1186 release-unref for all those cases where the object is already in
1187 our object cache (fix for #85205).
1189 * atk-bridge/bridge.c:
1190 (spi_atk_bridge_idle_init):
1191 Removed this method, we don't need to initialize in an idle
1194 Changed to call spi_atk_register_event_listeners directly, not via an
1195 idle handler. (fix for #81139)
1196 (gnome_accessibility_module_shutdown):
1197 Removed conditional around deregistration of listeners, since we
1198 don't use the idle handler and thus have always registered when
1200 (spi_init_keystroke_from_atk_key_event):
1201 Changed references to Accessibility_KEY_PRESSED to
1202 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1204 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1206 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1211 * test/stress-test.c:
1214 (may have been an incomplete commit yesterday?)
1216 2002-06-12 Bill Haneman <bill.haneman@sun.com>
1219 Added target for new stress-test.
1221 * test/stress-test.c:
1222 New test, sends 1000 focus notifies in quick succession.
1224 * test/key-listener-test.c:
1225 Now we report whether a keylistener registration
1226 request succeeded or failed.
1228 * test/event-listener-test.c:
1229 Uncommented some listeners which are now implemented.
1232 2002-06-06 Bill Haneman <bill.haneman@sun.com>
1234 * registryd/deviceeventcontroller.c:
1235 (spi_controller_update_key_grabs):
1236 Fix for #82509, lack of failure notification when
1237 ALL_WINDOWS keygrabs fail due to XGrabKey
1238 failure: we synchronize the server when
1239 registering a passive grab, to make sure we get the
1240 error message before the call returns.
1242 2002-06-03 Bill Haneman <bill.haneman@sun.com>
1244 * test/test-simple.c:
1246 Removed #ifdef KEY_IMPL_WORKS guards.
1247 (test_keylisteners):
1248 Removed #ifdef KEY_IMPL_WORKS guards.
1249 Fixed bug which was causing a hang waiting for a
1250 "press" event (which was already overwritten by a "release"
1251 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1253 Added code to set globals 'key_press_received' and
1254 'key_release_received'.
1257 Added section "1.1 API Proposed Additions" which
1258 lists API additions desired for at-spi-1.1 (only one so far).
1259 Updated TODO list a little.
1261 2002-06-02 Bill Haneman <bill.haneman@sun.com>
1263 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1266 * configure.in: Revved to 1.0.0.
1268 * idl/Accessibility_Registry.idl:
1269 (registerKeystrokeListener):
1270 Added boolean return value.
1272 * registryd/registry.c:
1273 (notify_listeners_cb): Minor fix to debug output.
1275 * registryd/Accessibility_Registry.server.in.in:
1276 Revved version number in OAFIID to 1.0.
1278 * registryd/registryd.c:
1280 Use new OAFIID version.
1282 * cspi/bonobo/cspi-bonobo.c:
1284 Use new OAFIID version.
1290 * atk-bridge/bridge.c:
1292 Use new OAFIID version.
1294 * registryd/deviceeventcontroller.c:
1295 (impl_register_keystroke_listener):
1296 Added CORBA_boolean return value.
1297 (spi_controller_register_device_listener):
1298 Added gboolean return value.
1299 (spi_controller_register_global_keygrabs):
1300 Added gboolean return value.
1301 (spi_key_set_contains_key):
1302 Added implementation for many more control keys,
1303 for instance F1-F12, arrow keys, End, Home, Page_Up,
1305 [TODO: some still not implemented].
1307 * text/screen-review-test.c:
1308 (text_chunk_pad_string):
1309 New function: it provides mapping between coordinate
1310 positions of text chunks and character positions in the
1311 screen-review-line output string.
1312 (text_chunk_to_string):
1313 New function, calls text_chunk_pad_string with various
1314 pad/delimiter characters. Pushbuttons are delimited with
1315 square brackets, Frames with vertical 'pipe' lines, and
1316 other text with double quotes.
1317 (text_chunk_list_to_string):
1318 Calls new function text_chunk_to_string.
1319 (toplevel_composite):
1320 New function to composite layers CANVAS through
1321 POPUP in each toplevel (other layers are composited
1322 across toplevels, i.e. BACKGROUND and OVERLAY).
1323 (review_buffer_composite):
1324 Revise to use new methods.
1330 2002-05-31 Laszlo Peter <laca@sun.com>
1332 * configure.in: add the Xtst libdir to the runpath on Solaris,
1333 since it's not in the default library search path.
1335 2002-05-29 jacob berkman <jacob@ximian.com>
1337 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
1339 2002-05-29 Bill Haneman <bill.haneman@sun.com>
1341 * test/screen-review-test.c:
1342 (text_chunk_pad_string):
1343 Added method, which pads the string according to the
1344 text bounds of the chunk. It also takes a 3-character
1345 string as a param which indicates the characters to be
1346 used for start, padding, and end delimitation of the chunk.
1347 (text_chunk_to_string):
1348 Changed to use text_chunk_pad_string.
1350 * configure.in: Fixed bug in AC_OUTPUT that was
1351 causing path substitution in Accessibility_Registry.server
1354 2002-05-23 Bill Haneman <bill.haneman@sun.com>
1356 * text/screen-review-test.c:
1357 (guess_string_clip):
1358 New method which attempts a best-guess at clipping
1359 text from components (like Java labels) which don't
1360 actually implement AccessibleText. This inaccurate
1361 clip is based on the assumption that the label is
1362 justified left-and-right, and monospaced.
1363 (text_chunk_get_clipped_string):
1364 We now call guess_string_clip() for text-containing
1365 components that don't implement AccessibleText.
1367 * test/screen-review-test.c:
1368 (review_buffer_get_text_chunk):
1369 We now pull "name" from labels if they do not implement
1370 AccessibleText (i.e. for Java labels).
1371 (get_screen_review_line_at):
1372 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
1375 Replaceded AC_OUTPUT target
1376 registryd/Accessibility_Registry.server with
1377 registryd/Accessibility_Registry.server.in.
1379 * registryd/Accessibility_Registry.server.in:
1380 Removed (this is now a Makefile target).
1382 * registryd/Accessibility_Registry.server.in.in:
1383 Added (source for target above). We now use $(libexecdir) as
1384 prefix for the executable at-spi-registryd.
1386 * registry/Makefile.am:
1387 Now install at-spi-registryd into $(libexecdir), and build .server
1388 file with path (see above).
1390 2002-05-22 Bill Haneman <bill.haneman@sun.com>
1392 * test/screen-review-test.c:
1393 (text_chunk_get_clipped_string):
1394 We now check to see if words fall within clip bounds
1395 before resorting to character-by-character clip bounds testing.
1397 * TODO: Added a section for "2.2 Proposed API Additions".
1399 2002-05-21 Bill Haneman <bill.haneman@sun.com>
1401 * test/screen-review-test.c:
1403 Added a screen review benchmarking and test program to test
1406 * cspi/spi_accessible.c:
1408 Made some of the debug strings passed to cspi_check_ev a
1409 little more specific.
1411 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
1413 * test/screen-review-test.c: Fix crashes in debug statements
1415 2002-05-20 Bill Haneman <bill.haneman@sun.com>
1417 * test/screen-review-test.c: Added this file.
1419 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1421 * atk-bridge/bridge.c: changed "object:state-change" to
1422 "object:state-changed" to match docs.
1424 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
1426 * atk-bridge/bridge.c: Hooked up state-change event details.
1428 2002-05-11 Bill Haneman <bill.haneman@sun.com>
1430 * registryd/registry.c:
1431 Fixed quarking bug in event string parsing; now events with
1432 detail parameters get matched correctly to listeners.
1435 * util/idl/Magnifier.idl: remove.
1437 * util/*.[ch]: Remove.
1438 Magnification utilities and IDL are now in module gnome-mag.
1440 2002-05-10 Bill Haneman <bill.haneman@sun.com>
1442 * registryd/deviceeventcontroller.c:
1443 Fixed bug in grab key conversion which was causing keycode grabs
1444 to be converted to AnyKey grabs.
1447 updated NEWS file to reflect recent spin-off of gnome-mag.
1449 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
1451 * cspi/spi_accessible.c: Added exception checks. Fixed completely
1452 busted AccessibleStateSet_compare. Removed redundant casts.
1454 * cspi/spi-action.c: Removed redundant casts.
1456 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
1458 * cspi/spi_component.c: Fixed typos and casting error.
1460 * cspi/spi_editabletext.c: Removed redundant casts.
1462 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
1464 * cspi/spi_hypertext.c: Eliminated redundant casts.
1466 * cspi/spi_image.c: Eliminated redundant casts.
1468 * cspi/spi_registry.c: Eliminated redundant casts.
1469 SPI_deregisterGlobalEventListenerAll () removed retval variable.
1470 * cspi/spi_selection.c: Removed redundant casts.
1471 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
1472 handling. Screen geometry and text offsets were being returned as 0
1473 on error which is technically valid-- changed these to return -1.
1474 Added marshaller for text boundary types to fix bug with boundary
1475 types being passed incorrectly to atk.
1477 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1480 * cspi/spi_registry.c:
1481 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
1482 which was uncovered by the recent key changes.
1484 2002-05-09 Bill Haneman <bill.haneman@sun.com>
1486 * test/event-listener-test.c:
1488 Added new test, "event-listener-test";
1489 this code does two things; it benchmarks traversal time
1490 for the accessible hierarchy for the first running accessible
1491 app, and it connects listeners for all supported event types.
1492 It is thus useful as an example event listener and for
1493 diagnostics/debugging of event generation.
1495 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1498 Removed unnecessary dependency on libutil.
1501 Revved micro version: 0.13.1
1503 2002-05-08 Bill Haneman <bill.haneman@sun.com>
1506 Removed util/Makefile from targets.
1509 Removed util subdir from SUBDIRS (temporarily,
1510 pending removal of magnifier-only code
1514 #ifdef-ed out magnifier dependencies, since
1515 magnifier IDL, headers, and binary now live in
1516 module gnome-mag and we don't want at-spi to depend
1517 on gnome-mag. A magnifier demo which can run alongside
1518 simple-at is forthcoming in the gnome-mag module.
1520 NOTE: Split magnifier binary, IDL, and magnification
1521 activation code from at-spi into module gnome-mag.
1523 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
1525 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
1526 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
1528 2002-05-03 Bill Haneman <bill.haneman@sun.com>
1531 Revved to version 0.13.0
1533 * idl/Accessibility_Registry.idl:
1534 Changed definition of KeySet from sequence of longs to sequence of
1535 KeyDefinitions, and added KeyDefinition struct.
1536 Required for fix to bug 80616.
1538 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
1539 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
1540 to use new definition (see above).
1542 * registryd/deviceeventcontroller.c: handle_keygrab(),
1543 spi_keyset_contains_key():
1544 Changed to make use of new struct; this allows matching based on
1545 string key-name, for instance "Tab". This also allows matching of
1546 composed characters, non-alphanumeric characters in a way that
1547 doesn't involve dependencies on X keysym codes directly, etc.
1549 * test/key-listener-test.c:
1550 Added test for Alt-Tab key using "string" specification of keyset,
1551 and modified one of the tests to use a keycode-based keyset.
1552 Thus this test both tests and demonstrates the creation and use of
1553 keysets of three forms: specified via keycode array,
1554 keysym array, and string array. (The string case only contains a
1555 single string, i.e. a string array of length 1).
1558 Turned on PRINT_TREE option by default. Also fixed a
1559 string-freeing bug in the PRINT_TREE code.
1560 Added a listener to window:minimize events.
1562 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
1564 * atk-bridge/bridge.c:
1565 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
1566 for window:activate and window:deactiveate
1567 (atk_bridge_property_event_listener atk_bridge_signal_listener
1568 atk_bridge_window_event_listener) Tidy debug code
1570 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
1572 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
1573 Fixed handling for NULL return value from ATK.
1575 * libspi/action.c libspi/component.c libspi/editabletext.
1576 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
1577 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
1578 Removed redundant casts.
1580 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
1581 Fixed off by one bug.
1583 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
1584 function not present in idl)
1586 2002-05-02 jacob berkman <jacob@ximian.com>
1588 * atk-bridge/Makefile.am: make atk-bridge a real module
1590 2002-04-26 Radek Doulik <rodo@ximian.com>
1592 * libspi/stateset.c (spi_init_state_type_tables): fix size of
1593 atk_state_types table
1595 2002-04-22 jacob berkman <jacob@ximian.com>
1598 * libspi/Makefile.am: add deps on the built files to help
1599 automake, and don't version the ORBit typelib
1601 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
1603 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
1604 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
1605 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
1606 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
1607 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
1608 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
1609 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
1610 libspi/accessible.h libspi/accessible.h libspi/base.h
1611 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
1612 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
1613 libspi/relation.h libspi/remoteobject.h libspi/selection.h
1614 libspi/spi-private.h libspi/statetset.h libspi/table.h
1615 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
1616 util/mag_client.h util/mag_control.c util/mag_image.c
1617 util/mag_image.h util/magnifier.c util/magnifier.h:
1618 Add missing file headers; standardize existing ones
1620 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
1622 * atk-bridge/bridge.c: Added window event support.
1624 2002-04-18 Michael Meeks <michael@ximian.com>
1626 * libspi/relation.c (impl_getNTargets): impl.
1627 (impl_getTarget): impl.
1629 * libspi/Makefile.am: fix stateset install.
1631 2002-04-17 Bill Haneman <bill.haneman@sun.com>
1634 Started putting useful info in this file.
1636 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
1638 * atk-bridge/bridge.c:
1639 Propagate state-changed notifications to ATs
1641 * cspi/spi_registry.c: update docs to reflect actual behavior of
1642 state-change events.
1644 2002-04-17 Bill Haneman <bill.haneman@sun.com>
1647 Incremented version to 0.12.1
1649 * util/mag_client.h:
1650 Add missing declaration for magnifier_exit,
1651 used by mag_control.c - Forte compiler didn't like
1652 the implicit redeclaration of the function :-(
1655 2002-04-16 Bill Haneman <bill.haneman@sun.com>
1658 Revved version to 0.12 due to API change (see below).
1660 * cspi/spi-roletypes.h:
1661 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
1662 definition from the inline docs, and added docs
1663 for SPI_ROLE_LAST_DEFINED.
1666 * cspi/spi_streamablecontent.c:
1667 Added missing seek_type parameter to
1668 (so far unused) method,
1669 AccessibleStreamableContent_seek().
1670 [ RT approval JodyG. ]
1673 Fixed docs for SPI_createAccessibleKeystrokeListener.
1675 * cspi/spi_registry.c:
1676 Fixed docs for SPI_KEYSET_ALL_KEYS.
1678 * docs/reference/cspi/at-spi-cspi-sections.txt:
1679 Added a number of missing APIs to SECTIONS.
1681 2002-04-16 Bill Haneman <bill.haneman@sun.com>
1683 * registryd/Makefile.am:
1685 * cspi/bonobo/Makefile.am:
1686 Add $(X_LIBS) to makefiles.
1688 2002-04-15 Bill Haneman <bill.haneman@sun.com>
1691 Revved version to 0.11.
1693 * libspi/component.c:
1694 Added implementation for grabFocus.
1696 * idl/Accessibility_Component.idl
1697 (Accessibility_Component_grabFocus):
1698 Made this method return boolean to indicate success or failure, to
1699 be consistent with cspi and the corresponding ATK method.
1701 * idl/Accessibility_Selection.idl
1702 (Accessibility_Selection_selectAll) :
1703 Made these methods return boolean to indicate success or
1704 failure, to be consistent with cspi and the corresponding ATK methods.
1706 * idl/Accessibility_EditableText.idl
1707 (Accessibility_EditableText_setTextContents,
1708 Accessibility_EditableText_insertText,
1709 Accessibility_EditableText_cutText,
1710 Accessibility_EditableText_deleteText,
1711 Accessibility_EditableText_pasteText):
1712 Made these methods return boolean to indicate
1715 * cspi/spi_editabletext.c:
1716 Made these methods return booleans.
1718 * libspi/selection.c:
1719 * libspi/component.c:
1720 * libspi/editabletext.c:
1721 Connected the boolean returns from ATK
1722 to the server-side code referenced above.
1724 2002-04-14 Bill Haneman <bill.haneman@sun.com>
1726 * idl/Accessibility_Table.idl: Added missing methods,
1727 Accessibility_Table_addRowSelection,
1728 Accessibility_Table_addColumnSelection,
1729 Accessibility_Table_removeRowSelection,
1730 Accessibility_Table_removeColumnSelection.
1733 Added C wrappers for above IDL:
1734 AccessibleTable_addRowSelection,
1735 AccessibleTable_addColumnSelection,
1736 AccessibleTable_removeRowSelection,
1737 AccessibleTable_removeColumnSelection.
1740 Added server-side implementation code for IDL above, connecting
1741 to pre-existing ATK api.
1743 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
1745 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
1747 * libspi/accessible.c: Added implementation fo
1748 Accessibility_Accessible_get_state.
1750 * libspi/libspi.h: Added stateset.h to the list of includes.
1752 * libspi/stateset.c: Fixed broken implementation.
1754 2002-04-13 Bill Haneman <bill.haneman@sun.com>
1757 Added implementation code for Accessibility_Magnifier_exit ().
1759 * util/mag_control.c:
1760 Added test code for above method; you can
1761 now kill an existing magnifier via
1762 ./mag_control q, from the util directory.
1764 * test/key-listener-test.c:
1766 Added a new test, for our key listener API.
1768 2002-04-11 Bill Haneman <bill.haneman@sun.com>
1770 * test/app.c, test/keysynth-demo.c:
1772 Replace use of snprintf with g_snprintf.
1773 (fix for bugzilla 78249)
1775 2002-03-27 Michael Meeks <michael@ximian.com>
1779 * util/Makefile.am (INCLUDES): fix.
1780 (DONT_DIST_SOURCE): don't distribute the
1783 * libspi/Makefile.am (dist-hook): ditto.
1785 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
1787 * libspi/hypertext.c:
1788 Fix warnings when yelp is used with atk-bridge
1790 2002-03-21 Michael Meeks <michael@ximian.com>
1792 * libspi/application.c (spi_application_new):
1793 use spi_accessible_construct so we use the AtkObject
1796 2002-03-19 Michael Meeks <michael@ximian.com>
1798 * registryd/registry.c (desktop_remove_application),
1799 (desktop_add_application): clean coding style.
1801 * registryd/desktop.c (spi_desktop_remove_application),
1802 (spi_desktop_add_application): kill re-enterency hazards.
1803 (spi_desktop_dispose): remove bogus redundant cast
1804 obscuring bug; fix bug too.
1805 (spi_desktop_init): make the desktop object immortal.
1807 2002-03-16 Bill Haneman <bill.haneman@sun.com>
1810 Added a #define-guarded tree-traversal step
1811 when enumerating the apps (diagnostic tool).
1813 2002-03-15 Bill Haneman <bill.haneman@sun.com>
1815 * idl/Accessibility_Role.idl:
1816 Added ROLE_DRAWING_AREA which seemed to be missing from the
1819 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1821 * cspi/spi-roletypes.h cspi/spi_accessible.c
1822 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
1825 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
1826 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
1827 AT when applications are added and removed from the desktop. This
1828 reverts the previous broken implementation using the backing
1829 AtkObject for the SpiDesktop.
1831 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1833 * registryd/desktop.c: emit the "children-changed::add" and
1834 "children-changed::remove" signals on the backing ATK object for
1835 the desktop so AT can tell when applications are started and shut
1838 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1840 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
1842 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1844 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
1846 * cspi/spi_accessible.c: Implemented c bindings for stateset support
1848 * cspi/state-types.h: synched with IDL and ATK
1850 2002-03-13 Bill Haneman <bill.haneman@sun.com>
1852 * libspi/accessible.c
1853 (impl_accessibility_accessible_get_child_at_index):
1854 Change return value for g_return_if_fail ()
1855 to CORBA_OBJECT_NIL instead of "0" (!)
1857 * registryd/Makefile.am:
1858 * registryd/Accessibility_Register.server.in:
1859 Changed name of executable, "registryd",
1860 to something more informative:
1863 2002-03-13 Michael Meeks <michael@ximian.com>
1865 * atk-bridge/bridge.c (atk_bridge_init): don't register
1866 if we're in a bonobo-component, rather than a bonobo app.
1868 2002-03-13 Michael Meeks <michael@ximian.com>
1870 * atk-bridge/bridge.c (gtk_module_init): split
1871 out body to (atk_bridge_init): here, since otherwise
1872 we get symbol conflicts and oddness when invoked
1873 from (gnome_accessibility_module_init): here (upd.)
1875 2002-03-11 Bill Haneman <bill.haneman@sun.com>
1878 New file. Explicitly allow "build sheriff" putbacks provided
1879 they are tested on Solaris.
1881 * docs/reference/cspi/Makefile.am:
1882 Added '-' to the "cp" command for index.sgml.
1883 ("patch by thomasvs, soon coming to a GUADEC near you")
1886 Incremented version number (0.9.0) for new release.
1887 Changed macro that checks for popt, to better detect
1888 obsolete versions of popt.
1891 Added X_LIBS to AC_SUBST, for applications
1892 that call Xlib API directly.
1895 2002-03-07 Bill Haneman <bill.haneman@sun.com>
1898 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
1901 Fix regression caused by hard-coding major
1902 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
1905 * test/test-simple.c (test_editable_text),
1906 (test_test): revert previous change (error was
1907 a regression in gail which is now fixed).
1909 2002-03-04 Michael Meeks <michael@ximian.com>
1911 * test/test-simple.c (test_editable_text),
1912 (test_text): pass G_MAXINT instead of '-1' for
1913 whole string - is this a good thing !?
1915 * cspi/spi_accessible.c
1916 (Accessible_getRelationSet): fix crasher bug
1917 overwriting the end of the array.
1919 * test/test-simple.c (validate_accessible): free,
1920 not g_free returned relation set.
1922 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
1924 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
1925 implemented stateset support
1927 * idl/Accessibility_State.idl: Made necessary changes to
1928 the IDL to support state sets.
1930 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1932 * registryd/deviceeventcontroller.c:
1933 Added implementation for generateMouseEvent.
1935 * cspi/spi_registry.c:
1936 Connected new implementation for generateMouseEvent
1939 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1942 Incremented revision (but no change in public API
1943 outside of 'utils', which are not installed public yet.)
1945 * libspi/component.c:
1946 Changed to use atk_component API for layers and
1947 mdi_zorder, instead of deprecated atk_object API.
1949 Magnification Utility Enhancements:
1952 Added implementation of createZoomRegion, clearAllZoomRegions,
1953 resizeZoomRegion. Added new commandline argument
1954 "--no-initial-region". Note that clearAllZoomRegions doesn't
1955 unmap the old '0' region as it should (yet), and the other
1956 methods only work when creating/resizing a single region,
1957 which is "region 0".
1958 (Code for multiple region support will be added later.)
1961 Now we raise the magnifier window each time it's refreshed;
1962 this will help keep it on top.
1964 * util/mag_client.h:
1965 Added simple wrappers for above, used by mag_control.
1966 For general use, it's recommended to use the bonobo magnifier
1967 control API directly instead of using these wrappers.
1970 Moved ZoomRegionData from magnifier.c to this file.
1972 * util/mag_control.c:
1973 Added some code to exercise new IDL implementations.
1975 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
1977 * libspi/text.c: Provide implementation for getAttributes.
1979 2002-02-04 Bill Haneman <bill.haneman@sun.com>
1982 Incremented revision.
1984 * test/test-simple.c:
1985 Replaced use of deprecated g_main_iteration with
1986 g_main_context_iteration.
1988 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
1991 Incremented revision for desktop alpha 2.
1993 2002-01-28 Mark McLoughlin <mark@skynet.ie>
1995 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
1998 * test/simple-at.c: include netinet/in.h.
2000 2002-01-24 Mark McLoughlin <mark@skynet.ie>
2002 * cspi/spi_accessible.c: (Accessible_getRelationSet):
2003 use NULL, not CORBA_OBJECT_NIL.
2005 * libspi/accessible.c:
2006 (impl_accessibility_accessible_get_relation_set):
2007 allocate the sequence correctly.
2009 * libspi/remoteobject.h: kill spi_remote_object_new.
2011 * test/test-simple.c: (validate_accessible): add code
2012 to test relation sets, now all we need is to figure
2013 out how to excercise this code path :/
2015 2002-01-18 Michael Meeks <michael@ximian.com>
2017 * test/test-simple.c
2018 (key_listener_cb): consume the key.
2019 (test_keylisteners): update.
2020 (main): wait for any pending unrefs on events.
2022 * registryd/deviceeventcontroller.c
2023 (spi_controller_update_key_grabs): only re-issue the
2024 grab on a key release.
2025 (spi_device_event_controller_forward_key_event):
2026 refresh the keygrabs before we notify the listeners,
2027 to reduce the X ungrab / re-grab race.
2028 (spi_controller_register_with_devices): remove
2029 XSelectInput - we do that with the gdk_window_ call.
2030 (_spi_controller_device_error_handler): return a value.
2031 s/GDK_DISPLAY/spi_get_display/
2033 2002-01-17 Michael Meeks <michael@ximian.com>
2035 * registryd/deviceeventcontroller.c
2036 (_deregister_keygrab): don't blow out the later
2039 * test/test-simple.c (test_keylisteners): do a
2040 more intelligent validation.
2042 2002-01-14 Michael Meeks <michael@ximian.com>
2044 * atk-bridge/bridge.c
2045 (gnome_accessibility_module_init),
2046 (gnome_accessibility_module_shutdown): impl.
2047 (gtk_module_init): protect vs. double inits.
2048 (add_signal_listener): impl.
2049 (spi_atk_bridge_state_event_listener): kill
2050 (deregister_application): split out of
2051 (spi_atk_bridge_exit_func): here.
2053 2002-01-18 Bill Haneman <bill.haneman@sun.com>
2056 Added caret tracking when using magnifier, and
2057 now use text bounds for focus tracking of text elements, rather than
2058 the component bounds - this is helpful for short text fields in long
2059 table cells, at high magnification.
2061 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2063 * registryd/deviceeventcontroller.c:
2064 Regression fix for keylistener de-registration; global keygrabs
2065 were not being released when deregisterKeystrokeListener was
2066 called in cspi, since
2067 Accessibility_DeviceEventController_deregisterKeystrokeListener
2068 was called with a zero-length keyset. That is because the cspi
2069 method, SPI_deregisterKeystrokeListener, does not take a keyset
2070 parameter but instead should remove all the key grabs held be a
2072 The code in impl_deregister_keystroke_listener was changed to copy
2073 the keylist from the listener instance previously registered with
2074 the DeviceEventController before releasing the grabs.
2076 * registryd/registry.c:
2077 * registryd/deviceeventcontroller.c:
2078 * libspi/spi-private.h:
2080 Changed spelling of "re-enterant" to "re-entrant" globally.
2082 2002-01-16 Bill Haneman <bill.haneman@sun.com>
2084 * test/test-simple.c:
2085 Changed key listeners test - the test was slightly mis-using the
2086 (admittedly poorly documented) SPI_generateKeyboardEvent API.
2087 It now uses '=' as the key event listened to and generated,
2088 relying on a keysym match rather than assuming that keycode 33
2089 is always equal to keysym '!'.
2091 2002-01-15 Bill Haneman <bill.haneman@sun.com>
2094 Changed simple-at to use a specific keyset, rather than
2095 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2096 manager, desktop, etc.
2098 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2100 * registryd/deviceeventcontroller.c:
2101 Replaced standard X error handler with a special handler that
2102 is non-fatal for failed keygrabs. This works around
2103 problems with keygrab clashes sometimes observed on
2105 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
2106 mouse handling code as yet).
2108 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2111 Incremented revision for desktop alpha release.
2114 Fixed a couple of the more glaring errors (still not
2117 2002-01-11 Michael Meeks <michael@ximian.com>
2119 * registryd/deviceeventcontroller.c
2120 (spi_device_event_controller_forward_key_event): kill
2121 XUngrabKey / XKeyGrab race.
2122 (spi_controller_grab_keyboard): rename to
2123 (spi_controller_update_key_grabs): this, and deal
2124 with incremental adding / removing grabs more
2126 (_register_keygrab): ensure we're not pending a remove.
2127 (spi_grab_mask_free): impl.
2128 (spi_controller_register_global_keygrabs): split out
2130 (handle_keygrab): impl.
2131 (_deregister_keygrab): impl.
2132 (spi_controller_deregister_global_keygrabs): impl.
2133 (spi_controller_update_key_grabs): re-issue the grab if
2134 we just recieved a notification.
2136 * test/test-simple.c (key_listener_cb): remove debug.
2138 * registryd/deviceeventcontroller.c
2139 (spi_controller_register_device_listener): after
2140 registering a global keygrab, actualy register it !
2141 don't wait for a timeout; doh !
2143 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2144 to make it more readable / manipulable.
2145 s/grabmask/grab_mask/ s/refcount/ref_count/
2146 s/keyval/key_val/ s/modmask/mod_mask
2148 2002-01-08 Michael Meeks <michael@ximian.com>
2150 * registryd/deviceeventcontroller.c
2151 (spi_controller_register_with_devices): use gdk calls to
2153 (global_filter_fn): implement the filter.
2154 (spi_device_event_controller_check_key_event): rename to
2155 (spi_device_event_controller_forward_key_event): this & upd.
2156 (spi_get_display): replace with GDK_DISPLAY.
2158 * registryd/deviceeventcontroller.c
2159 (spi_controller_deregister_device_listener): unroll into
2160 (impl_deregister_keystroke_listener): here to simplify.
2161 (spi_controller_register_global_keygrabs): split cut and
2162 paste (!) out into (_register_keygrab): here, shorter & sweeter.
2163 (spi_controller_deregister_device_listener): remove.
2164 (impl_register_mouse_listener): remove, no mouse listener
2165 support in at-spi-1.0
2167 * registryd/registry.c
2168 (_device_event_controller_hook): kill.
2169 (spi_registry_init): upd.
2171 * registryd/deviceeventcontroller.c
2172 (spi_device_event_controller_class_init): upd.
2173 (spi_check_key_event): merge into.
2174 (spi_device_event_controller_check_key_event):
2175 here and kill strange static ev init, don't leak
2176 the x_event - nor dynamicaly allocate it.
2178 * registryd/registry-main.c (main): re-direct
2179 timeout to remove strange vtable mess.
2181 * registryd/deviceeventcontroller.c
2182 (remove_listener_cb): impl.
2183 (spi_controller_deregister_device_listener):
2184 fix re-enterancy hazard.
2186 2002-01-07 Michael Meeks <michael@ximian.com>
2188 * registryd/deviceeventcontroller.c
2189 (spi_device_event_controller_new): upd.
2190 (impl_notify_listeners_sync): upd. debug.
2191 (spi_notify_keylisteners): fix re-enterancy hazards,
2192 prettify, remove O(n*n) iteration.
2193 (spi_controller_grab_keyboard): fix iteration.
2194 (spi_check_key_event): re-format to suit coding style.
2195 Clean all the warnings - we're warning free.
2197 * registryd/deviceeventcontroller.h:
2198 * registryd/registry.h: make mutualy referential with
2199 typesafe forward references instead of (!) void pointer
2202 2002-01-11 Michael Meeks <michael@ximian.com>
2204 * cspi/spi_accessible.c (role_names): add a role name
2205 to sync this array with the enum; and make the regression
2208 2002-01-10 Michael Meeks <michael@ximian.com>
2210 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
2211 allow expansion of enumeration & kill warning.
2213 * test/test-simple.c (key_listener_cb): impl.
2214 (test_keylisteners): impl.
2216 * cspi/spi-listener.h: make listener signatures const
2217 on the provided (const) events.
2219 * test/keysynth-demo.c: upd. to const events.
2221 * test/simple-at.c: ditto.
2223 2002-01-11 Bill Haneman <bill.haneman@sun.com>
2226 Rev the version to 0.5 (the previous tarball was named 0.4,
2227 even though the micro number was 3), so we need to rev upwards
2228 again for beta2/"desktop-alpha"
2231 Checked in a demo script, which requires editing before use!
2232 Proceed with caution.
2235 Fixed typo in header which was redefining SPI_ACTION_CLASS.
2237 * cspi/spi_accessible.c:
2238 Add a couple of missing enum initializations, and fix some enum
2241 * cspi/spi_registry.c:
2242 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2244 * docs/reference/cspi/at-spi-cspi-sections.txt:
2245 Remove/fix a couple of broken document references.
2248 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
2249 as Alt-Control to listen for commands, since on some systems
2250 Control-Alt may already be grabbed.
2252 2002-01-10 Bill Haneman <bill.haneman@sun.com>
2255 Update version number to 0.4 for Beta2.
2257 * libspi/accessible.c, libspi/accessible.h:
2258 Expose spi_accessible_construct, to enable libgail-gnome
2259 construction from spi_accessible subtype.
2261 * utils/magnifier.c:
2262 Workaround for bug in some non-gnome-compliant window managers
2263 which made magnifier resize improperly.
2265 2002-01-09 Bill Haneman <bill.haneman@sun.com>
2267 * libspi/accessible.c: (spi_accessible_new) :
2268 Move the test for SPI_IS_REMOTE_OBJECT to
2269 spi_accessible_new_return, fixing a bug and compile time warning.
2271 2002-01-08 Michael Meeks <michael@ximian.com>
2273 * registryd/registry.c (parse_event_type): remove strndup.
2275 * libspi/Makefile.am (libspi_la_SOURCES): remove
2276 sources already included in the headers section.
2278 * libspi/util.c: add.
2280 * libspi/spi-private.h: add.
2282 * registryd/registry.c: update to moved list iterators.
2284 2002-01-05 Michael Meeks <michael@ximian.com>
2286 * test/simple-at.c (main): upd. auto-module set to atk-bridge
2288 * test/test-simple.c (main): ditto.
2290 2002-01-04 Michael Meeks <michael@ximian.com>
2292 * libspi/accessible.c (spi_accessible_new): remove 2nd,
2293 redundant construct.
2295 * registryd/registry.c
2296 (get_listener_list): impl.
2297 (impl_accessibility_registry_register_global_event_listener):
2298 re-impl. to simplify using ~, remove dodgy const cast off.
2299 (parse_event_type): constify.
2300 (impl_accessibility_registry_deregister_global_event_listener_all):
2301 re-write, more efficiency and simplicity, kill re-enterancy
2303 (compare_listener_corbaref, compare_corba_objects),
2304 (compare_listener_quarks): define out.
2305 (impl_accessibility_registry_deregister_global_event_listener):
2306 re-write for effiency, and nail re-enterancy hazard.
2307 (impl_accessibility_registry_get_desktop_list): impl.
2308 (re_enterant_list_delete_link): impl.
2309 (re_enterant_list_foreach): impl.
2310 (remove_listener_cb): impl.
2311 (_registry_notify_listeners): kill.
2312 (notify_listeners_cb): impl.
2314 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
2315 (SPI_getDesktopList): impl.
2317 * test/test-simple.c (test_desktop): test the methods.
2319 2002-01-03 Michael Meeks <michael@ximian.com>
2321 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
2322 keystrings since we free them
2323 (SPI_freeAccessibleKeySet): in here.
2325 * libspi/accessible.c (spi_accessible_new): kill warning,
2326 wonder what is going on with the constructor here.
2328 2002-03-01 Bill Haneman <bill.haneman@sun.com>
2330 * libspi/accessible.c (spi_accessible_new ()) :
2331 Added check to see if AtkObject is an SpiRemoteObject before
2332 creating an SpiAccessible.
2334 2002-05-01 Bill Haneman <bill.haneman@sun.com>
2336 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
2337 Enable keygrabs using the Control modifier, now that they are
2338 working properly (they were previously disabled).
2341 Change the command keygrab for this demo to "Control+Alt", so as
2342 to conflict with fewer other key commands on the system; this
2343 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
2345 Removed a pointlessly-chatty keylistener for unshifted keys
2346 (shifted keys are still reported).
2348 2002-02-01 Bill Haneman <bill.haneman@sun.com>
2350 * libspi/remoteobject.h:
2351 * libspi/remoteobject.c:
2352 Added definitions for special AtkObject subtype, required for
2353 support of remote components (specifically, used by BonoboControl
2354 accessibility implementation).
2356 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
2358 * cspi/spi.h: synched relation types with ATK
2360 * cspi/spi_accessible.c: Added implementations of
2361 AcccessibleRelation_* methods
2363 * idl/Accessibility_Relation.idl: added getRelationTypeName
2364 method. Synched known relation types with ATK. Allowed for
2365 relation type extension with the RELATION_EXTENDED type.
2367 * libspi/relation.c: Provided implementations for
2368 AccessibleRelation methods.
2370 2002-01-01 Bill Haneman <bill.haneman@sun.com>
2372 API tweaks for today's API 'freeze'.
2375 Added placeholder functions to allow future compatible expansion
2376 of the IDL interfaces.
2378 * idl/Accessibility_Registry.idl:
2379 Changed generateKeyEvent to generateKeyboardEvent. Changed
2380 signature of this method to accept an optional keystring in
2381 parameter (for complex text input synthesis) and changed use of
2382 simple 'boolean' parameter in registerKeystrokeListener to a
2383 struct, EventListenerMode.
2385 * cspi/spi_accessible.c:
2387 * cspi/spi_streamablecontent.c:
2388 Added references to AccessibleStreamableContent interface, and
2389 definition and implementation of AccessibleStreamableContent
2392 * cspi/spi_registry.c:
2394 Changed generateKeyEvent API to generateKeyboardEvent,
2395 taking a new (optional) keystring parameter to support complex
2400 Renamed directory (to better reflect its actual purpose, bridging
2401 from at-spi to ATK). The .so module is also now named
2404 * idl/Accessibility_Hypertext.idl:
2405 * libspi/accessible.c:
2406 * libspi/hypertext.h:
2407 * libspi/hypertext.c:
2408 Changed Accessibility_Hypertext to *not* derive from
2411 * cspi/spi_registry.c:
2412 Added list of legal event type names for 'window' events, which
2413 completes the registry event API.
2415 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
2417 * at-bridge/bridge.c: Added registration for separate
2418 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
2419 signals. If either of the first two parameters to the generic
2420 bridge signal handler are ints, they are passed on as event
2421 details. This allows an AT to determine what text was inserted.
2423 2001-12-21 Bill Haneman <bill.haneman@sun.com>
2425 * registryd/deviceeventcontroller.c:
2426 Fixed regressions in generateKeyEvent caused by the removal of
2427 gdk_init from registryd; we now use pure X calls to connect to the
2428 display, which makes sense because deviceeventcontroller already
2429 uses a fair bit of X API (should eventually be migrated to a
2430 'portability layer').
2432 * registryd/desktop.c:
2433 Fixed minor regression in spi_desktop_init, changed the way the
2434 desktop name is being set to work with new spi_base API
2435 (gobject-based, rather than AtkObject-based).
2437 * registryd/Makefile.am:
2438 Minor revision of makefile to use XTST_LIBS variable rather than
2439 hard-wiring the Xtst LD_ADD element.
2441 * test/keysynth-demo.c:
2442 Tweaked an output message; added initialization of the
2443 'keystrings' member of the "switch listener" key_set.
2445 * libspi/relation.c:
2446 Squashed compile-time warning.
2448 * libspi/accessible.c:
2449 Cosmetic and formatting fixes, renamed a static method.
2451 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
2453 * libspi/accessible.c
2455 * libspi/application.c
2458 * libspi/component.c
2459 * libspi/editabletext.c
2460 * libspi/hyperlink.c
2461 * libspi/hypertext.c
2463 * libspi/selection.c
2467 * registryd/desktop.c:
2468 Changed SpiBase to contain a GObject pointer rather than an AtkObject
2470 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2472 * idl/Accessibility_Registry.idl:
2473 Added boolean member 'is_text' to DeviceEvent. This is for the
2474 use of key events, and helps prevent ambiguity between composed
2475 key strings and keysym names, since both may potentially be
2476 returned in the 'event_string' member.
2478 * at-bridge/bridge.c:
2479 * registryd/deviceeventcontroller.c:
2480 Use the 'is_text' member when notifying device event listeners.
2481 Knon issue: composed characters are not dealt with correctly by
2482 the global key listener implementation yet.
2484 2001-12-17 Bill Haneman <bill.haneman@sun.com>
2486 * at-bridge/bridge.c:
2487 Namespaced local static methods to spi_atk_bridge_* where
2488 previously named bridge_*, and spi_* elsewhere.
2490 * at-bridge/bridge.c:
2491 * cspi/bonobo/cspi-bonobo-listener.c:
2492 Added demarshalling/conversion for string member of
2493 Accessibility_DeviceEvent to AccessibleKeystroke.
2495 * registryd/deviceeventcontroller.c:
2496 Added code to fill the Accessibility_DeviceEvent key string value
2497 member for global key events (i.e. from XGrabKey), to match
2498 behavior of Accessibility_DeviceEvent from the toolkit key events
2499 from the bridge. Fixed timestamp in global key event notifications.
2502 Added printout of key event's string value to
2503 report_ordinary_key_event, for demo/debugging purposes.
2505 2001-12-15 Bill Haneman <bill.haneman@sun.com>
2507 * idl/Accessibility_Registry.idl:
2508 Removed Accessibility_KeyStroke structure in favor of generic
2509 Accessibility_DeviceEvent structure.
2510 Changed Accessibility_ControllerEventMask from a struct to an
2513 * at-bridge/bridge.c:
2514 Changed APIs to use DeviceEvent structure as above, and removed
2515 bogus casting between these event structures.
2517 * cspi/spi-listener.h:
2518 Added keystring member of AccessibleKeystroke structure, to enable
2519 matching on event "names" rather than only hardware codes and
2523 Added keystrings member of AccessibleKeySet struct, to allow
2524 matching on event names (as above).
2525 Added declarations for SPI_createAccessibleKeySet and
2526 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
2527 event modmasks directly as unsigned ints rather than structs with
2528 refcounts, in the DeviceEventController methods.
2530 * cspi/spi_registry.c:
2531 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
2533 * cspi/spi-roletypes.h:
2534 Added documentation of newly added SPI Roles.
2536 * cspi/bonobo/cspi-bonobo-listener.c:
2537 Changes in support of API changes above.
2539 * libspi/accessible.c:
2540 Converted APIs to use DeviceEvent structure (see IDL changes
2543 * registryd/deviceeventcontroller.c:
2544 Added DEControllerGrabMask structure to track keygrabs not only by
2545 modmask but by keyset as well; this allows us to do "global"
2546 (i.e. X) keygrabs on a per-key or keyset basis rather than always
2547 grabbing on AnyKey and then filtering after-the-fact.
2548 Bugfixes for event filtration mean that we don't get false matches
2549 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
2551 * registryd/deviceeventcontroller.c:
2552 Namespaced a number of static methods to use spi_ prefix. Major
2553 revision to internals of global (i.e. X) key grabs.
2555 * registryd/deviceeventcontroller.h:
2556 Removed keymask_list and added keygrabs_list to
2557 SpiDeviceEventController struct.
2560 Added use of SPI_createAccessibleKeySet API when creating a
2561 listener for only one key. Attach a listener to "shift spacebar
2562 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
2563 X key event names to SPI key event names, so that listeners are
2564 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
2566 * test/keysynth-demo.c:
2567 Changed (incorrect) use of X key event names (KeyPressed,
2568 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
2571 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2573 * libspi/accessible.c:
2574 Convert all AtkRole enumerations to Accessibility_Role enums when
2575 getting a role from an AtkObject.
2577 * cspi/spi_accessible.c:
2578 Complete the conversion of Accessibility_Role enums at runtime to
2579 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
2580 role enums correctly match those given in spi-roletypes.h.
2581 Re-synchronize the local names list for AccessibleRole_getName ().
2582 AccessibleRole_getName is now deprecated, since it duplicates the
2583 more reliable Accessible_getRoleName.
2584 Added some role types from Accessibility_Role.idl.
2586 * idl/Accessibility_Role.idl:
2587 Added some role types used by AtkRole.
2589 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2592 * cspi/spi_registry.c:
2594 * cspi/cspi-bonobo-listener.c:
2595 Namespaced all methods that did not begin with an "SPI_" or
2596 "Accessible" prefix to "SPI_".
2599 Homogenized internal function namespace to "cspi_" for statics.
2602 Patched tests to use the new CSPI API.
2604 * docs/reference/cspi/at-spi-cspi-sections.txt:
2605 Updated docs to reflect namespace changes, and added a number of
2606 methods to the documentation.
2608 * registryd/registry.c:
2609 Changed use of strings and string hashes in listener event
2610 matching and parse_event_string to use GQuark, which is guaranteed
2613 * registryd/registry.h:
2614 Squashed annoying warning.
2616 * idl/Accessibility_Role.idl:
2617 Extended range of available Accessibility_Role values.
2619 * cspi/spi_accessible.c:
2620 Re-ordered role names.
2622 2001-12-12 Bill Haneman <bill.haneman@sun.com>
2624 * idl/Accessibility_Value.idl:
2625 Revert use of union back to CORBA_double, since the double type is
2626 more efficient and can contain the other types without loss of
2629 * idl/Accessibility_Accessible.idl:
2630 Added method Accessibility:Accessible:getRoleName, to complement
2631 Accessibility:Accessible:getRole.
2633 * cspi/spi_accessible.c:
2635 Added C binding for above, Accessible_getRoleName (), and changed
2636 signature of Accessible_getRole () to return an AccessibleRole.
2638 * cspi/spi-roletypes.h:
2639 Changed AccessibleRole_getName to return a char * instead of a
2640 const char *. This method is now at least temporarily deprecated
2641 in favor of asking Accessibles for their RoleNames directly.
2644 Revert to match Accessibility_Value.idl;
2648 Change signature of AccessibleValue methods to use double rather
2652 * cspi/spi_accessible.c:
2653 Changed Accessible_getRole to return an AccessibleRole enum rather
2654 than a UTF-8 string. The UTF-8 string can still be obtained via
2655 AccessibleRole_getName ().
2657 * test/test-simple.c:
2658 Add test_action. Small fixup to match API change to Accessible_getRole.
2661 Bugfix for get_action_from_servant ().
2663 2001-12-11 Michael Meeks <michael@ximian.com>
2665 * libspi/libspi.h: remove registry.h and
2666 desktop.h, deviceeventcontroller.h
2668 * libspi/Makefile.am: remove registry.[ch],
2669 desktop.[ch], deviceeventcontroller.[ch]
2671 * registryd/Makefile.am: add registry.[ch],
2672 desktop.[ch], rename registryd.c to registry-main.c.
2673 add deviceeventcontroller.[ch]
2675 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2678 Replace setenv() call with putenv ().
2680 * libspi/component.c:
2681 Bugfix in AccessibleComponent_getExtents (),
2684 2001-12-11 Michael Meeks <michael@ximian.com>
2686 * libspi/image.c (impl_getImageExtents): impl.
2687 (spi_image_class_init): upd.
2690 (AccessibleImage_getImageDescription): fix daft bug
2693 * test/test-simple.c (global_listener_cb): update
2694 to only quit if not --poke
2695 (main): catch --poke.
2696 (validate_accessible): upd. dumping, call test_image
2699 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
2702 * idl/Accessibility.idl: update all IDL includes.
2704 * idl/*.idl - rename to namespace - this sucks, blame
2705 mjs' bad decision for oafd.
2707 * test/test-simple.c (create_test_window): add more tests.
2708 (create_tree): split this out.
2709 (validate_accessible): bugfix.
2711 2001-12-11 Michael Meeks <michael@ximian.com>
2713 * cspi/bonobo/cspi-bonobo-listener.c:
2714 (cspi_kestroke_listener_unref),
2715 (cspi_event_listener_unref): impl. undoing previous
2716 homenous environment - for Bill.
2718 * cspi/spi_table.c (long_seq_to_array): use
2721 * cspi/spi_main.c: split out all bonoboish bits into
2724 * cspi/spi-impl.h: upd. typedefs.
2726 * cspi/spi_registry.c: update to lowlevel API,
2727 return booleans to indicate success in some places.
2729 * cspi/spi_event.c: update to lowlevel API.
2731 * cspi/bonobo/Makefile.am: add.
2733 * cspi/bonobo/cspi-lowlevel.h: add
2735 * cspi/bonobo/cspi-bonobo.c: add
2737 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
2739 * cspi/Makefile.am: remove spi-listener-impl.[ch],
2740 (SUBDIRS): add bonobo, link in the libs.
2742 * cspi/spi-util.c: kill this file.
2744 * TODO: merge in my bits.
2746 2001-12-11 Michael Meeks <michael@ximian.com>
2748 * test/test-simple.c (test_value, test_table, main):
2749 remove unused variables causing warnings.
2751 * configure.in: cleanup checks - require gail.
2753 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2756 Changed Value interface to use SValue (scalars) rather than
2757 assuming all values are floats. This allows floats, doubles,
2758 longs, shorts, and unsigned values to be manipulated.
2759 Introduced Accessibility:SValue union.
2762 Updated to use new API above, and to work correctly with GValues
2763 of different types in AtkValue.
2766 Updated to use new API above. cspi's API is as yet unchanged.
2769 Updated the Value revision action item.
2771 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2773 * test/test-simple.c:
2774 Added test_table (GtkTreeView widget in test window to follow).
2775 Un-commented test_value, added GtkRange widget.
2776 Added GtkTreeView widget with GtkListStore. It passes regression
2777 test but leaks one SPI object for some reason.
2780 Fixed bug in impl__set_currentValue.
2782 2001-12-10 Michael Meeks <michael@ximian.com>
2784 * cspi/spi_text.c: audit for exception handling,
2785 tolerating NULL object references safely etc.
2787 * cspi/spi_value.c: ditto.
2789 * cspi/spi_table.c (AccessibleTable_getSummary),
2790 (AccessibleTable_getAccessibleAt),
2791 (AccessibleTable_getRowHeader),
2792 (AccessibleTable_getColumnHeader),
2793 (AccessibleTable_getCaption): fix bugs hidden by
2795 (long_seq_to_array): impl.
2796 (AccessibleTable_getSelectedRows),
2797 (AccessibleTable_getSelectedColumns): use it.
2799 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2802 Added a TODO list (rough and short for now).
2804 * cspi/spi_hyperlink.c:
2805 * cspi/spi_hypertext.c:
2806 Fixed macro name typos, and remove use of obsolete macro in
2807 AccessibleHyperlink_getLink.
2809 * cspi/spi_action.c:
2810 * cspi/spi_accessible.c:
2811 * cspi/spi_application.c:
2812 * cspi/spi_component.c:
2813 * cspi/spi_selection.c:
2816 Documentation fixes (removed return values from ref/unref methods).
2818 2001-12-10 Michael Meeks <michael@ximian.com>
2820 * cspi/spi_action.c: audit for exception handling,
2821 tolerating NULL object references safely etc.
2823 * cspi/spi_accessible.c: ditto.
2825 * cspi/spi_component.c: ditto.
2827 * cspi/spi_editabletext.c: ditto.
2829 * cspi/spi_hyperlink.c: ditto.
2831 * cspi/spi_hypertext.c: ditto.
2833 * cspi/spi_image.c: ditto.
2835 * cspi/spi_selection.c: ditto.
2837 2001-12-10 Michael Meeks <michael@ximian.com>
2839 * configure.in: use cspi/libspi.pc.in instead.
2841 * Makefile.am (pkgconfig_DATA): upd. to match.
2843 * test/simple-at.c (report_focus_event): kill hacks around
2844 bad return values, use putenv not setenv
2846 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
2847 fire ChildGone - I killed it.
2849 * libspi/component.c
2850 (impl_accessibility_component_get_extents): remove
2853 * idl/Accessible.idl: kill ChildGone exception.
2855 * cspi/*.[ch]: kill int return from ref / unref.
2857 * cspi/spi_main.c (cspi_object_add_check): fold into
2858 (cspi_object_add): here.
2860 * cspi/spi_component.c (AccessibleComponent_getExtents):
2861 handle exceptions elegantly.
2863 * cspi/spi-private.h (cspi_check_ev_return),
2864 (cspi_return_if_fail): impl.
2866 * cspi/spi_accessible.c: use extensively.
2867 (AccessibleStateSet_equals): add direct compare check.
2869 * cspi/spi_selection.c: tolerate NULL objs, and check
2870 exceptions before return.
2872 * cspi/spi-util.c (cspi_warn_ev): rename to
2873 (cspi_check_ev): this & don't pass ev in; no point.
2875 2001-12-10 Michael Meeks <michael@ximian.com>
2877 * test/test-simple.c: use putenv not setenv
2878 (get_environment_vars): more chatty if you're not using
2881 * test/simple-at.c: do the setenv so more people see the
2884 2001-12-10 Bill Haneman <bill.haneman@sun.com>
2886 * libspi/registry.c:
2887 Changed check of CORBA_environment on notification to be a warning
2888 instead of an error for the moment, since we can recover from this
2889 error when caused by a queued notification from a dead app.
2892 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
2893 used by all current implementors of AtkValue), and coerce to
2894 CORBA_float. (Proper general case fix may require change to Value.idl).
2896 2001-12-09 Bill Haneman <bill.haneman@sun.com>
2900 * cspi/spi_accessible.c:
2901 Documentation fixes: added user_data params to documentation for
2902 listeners and callbacks.
2904 * cspi/spi_accessible.c:
2905 Changed AccessibleStateSet_compare to return a
2906 StateSet rather than return the difference set into a third parameter.
2909 2001-12-09 Bill Haneman <bill.haneman@sun.com>
2912 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
2913 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
2917 Remove subdirectory po from SUBDIRS for now.
2919 * at-bridge/bridge.c:
2920 Beefed up a couple of debug printouts.
2921 One-line fix for signal notification name formatting.
2923 * libspi/accessible.c:
2924 Added assertion to spi_accessible_new ().
2926 * libspi/application.c:
2927 Put #ifdef qualifiers around a printf.
2930 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
2932 * registryd/Makefile.am:
2934 Replaces use of XML_I18N_MERGE_SERVER_RULE with
2935 INTLTOOL_SERVER_RULE macro.
2938 Added an event listener for several ATK signals, for
2939 testing and debugging. Removed a few g_warnings.
2940 Added test output if focussed item implements the Value interface.
2942 * test/test-simple.c:
2943 Added test_value () function (known not to pass at the moment, so
2944 not actually called yet.
2946 2001-12-08 Michael Meeks <michael@ximian.com>
2948 * at-bridge/bridge.c (bridge_focus_tracker),
2949 (emit_eventv): fix the same ref. leak.
2950 (register_atk_event_listeners): don't leak.
2952 * cspi/spi-listener-impl.c (cspi_event): more
2953 protection from client code.
2955 * test/test-simple.c (test_desktop): unref the app.
2957 * test/Makefile.am: upd. TESTS.
2959 * at-bridge/bridge.c (bridge_exit_func): release the registry.
2961 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
2963 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
2965 * cspi/spi_registry.c: constify in strings.
2966 (deregisterGlobalEventListenerAll): don't release the ref.
2968 * cspi/spi.h: start removing redundant / conflicting
2969 gtkdoc comments, making the API readable at a glance :-)
2971 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
2973 * test/keysynth-demo.c (keysynth_exit, main): upd.
2975 * test/simple-at.c (main, simple_at_exit): upd.
2977 * test/test-simple.c (unutterable_horror): kill.
2978 (utterable_normal_derefs): kill.
2979 (main): upd & do a setenv before gtk_init, so that we
2980 can use memprof - and to save the pain of remembering
2981 this, if we're running under memprof - don't exit.
2983 * cspi/spi_main.c (SPI_exit): return exit status
2985 (SPI_event_quit): impl.
2986 (SPI_event_main): simplify.
2987 (cspi_is_gnome_app): kill.
2988 (SPI_init): kill isGNOMEapp arg.
2990 * at-bridge/bridge.c (register_atk_event_listeners):
2991 re-instate the unref.
2992 (bridge_exit_func): don't re-activate the registry,
2993 protect vs. theoretical re-entry, use the
2994 AT_BRIDGE_SHUTDOWN env. var to determine whether to
2995 assert a clean shutdown - for regression tests.
2997 2001-12-08 Abel Cheung <maddog@linux.org.hk>
2999 * configure.in: Comment out dummy i18n support for now,
3000 otherwise it fails to build.
3001 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
3002 EXTRA_DIST. They are missing in tarball.
3004 2001-12-07 Michael Meeks <michael@ximian.com>
3006 * util/magnifier.c: kill bonobo activation reg. race.
3008 * libspi/component.c
3009 (impl_accessibility_component_get_extents): make it match
3012 * libspi/registry.c (_registry_notify_listeners):
3013 re-remove X headers & reconcile conflicts.
3014 (spi_listener_struct_free): bad conflict resolve.
3015 (impl_accessibility_registry_register_application):
3016 more bad merging fixed.
3017 (impl_accessibility_registry_deregister_application): ditto.
3018 (spi_registry_new): ditto.
3019 (spi_registry_init): don't have an applications field.
3021 [ merge fixups2 branch to here ]
3022 2001-12-07 Michael Meeks <michael@ximian.com>
3024 * test/simple-at.c (report_focus_event),
3025 (report_focussed_accessible): remove g_warning debug.
3027 2001-12-07 Michael Meeks <michael@ximian.com>
3029 * test/test-simple.c (validate_tree): comment out some checks.
3030 (test_desktop): app now not registered idly - horay.
3032 2001-12-07 Michael Meeks <michael@ximian.com>
3034 * cspi/spi_registry.c
3035 (registerAccessibleKeystrokeListener): clean, stop it leaking
3036 great swathes of memory, and device event controller references.
3037 ensure we always pass valid sequences.
3038 (deregisterAccessibleKeystrokeListener): ditto.
3039 (generateKeyEvent): upd.
3041 * at-bridge/bridge.c (bridge_key_listener): handle
3042 registry dead exception gracefully.
3043 (bridge_focus_tracker, emit_eventv): free ev.
3045 * test/simple-at.c (report_focus_event): fix polarity.
3047 * libspi/application.c (notify_listeners): kill the ev
3048 argument, and make sure we init the ev we use.
3049 (spi_application_object_event_listener): split out a chunk
3050 (get_atk_object_ref): here & fixup.
3051 (reverse_lookup_name_for_toolkit_event): make const.
3052 (spi_application_toolkit_event_listener): fixup, kill leaks
3055 * at-bridge/bridge.c (register_atk_event_listeners):
3056 don't unref the noop object - causes grief.
3058 * libspi/registry.c: remove the X headers.
3059 turn off the debug churn.
3061 * libspi/accessible.c (spi_accessible_new_return): only
3062 release the ref if we are supposed to [doh]
3064 * test/simple-at.c (report_button_press, report_focus_event):
3065 guard vs. unexpected exit.
3067 * at-bridge/bridge.c (gtk_module_init): prune printf.
3068 (bridge_exit_func): fix app unref.
3070 * libspi/Makefile.am: don't install registry or desktop.h
3072 * libspi/*.h: update includes.
3074 * libspi/application.h: don't include ourself, or
3075 other redundant headers.
3077 2001-12-06 Michael Meeks <michael@ximian.com>
3079 * libspi/accessible.c
3080 (get_accessible_from_servant): impl.
3081 Upd. all CORBA impl.s to use it killing cut and paste.
3083 * cspi/spi_main.c (cspi_cleanup): guard vs. double
3085 (SPI_init): register atexit cleanup handler here.
3087 2001-12-06 Michael Meeks <michael@ximian.com>
3089 * at-bridge/bridge.c (gtk_module_init): g_error on
3090 activation exception
3092 2001-12-06 Michael Meeks <michael@ximian.com>
3094 * at-bridge/bridge.c (gtk_module_init): some sort of
3095 confusing merge clash - reverted.
3096 (bridge_idle_init): ditto.
3098 * test/test-simple.c (main, utterable_normal_derefs):
3099 merge from Bill - somehow not committed.
3101 2001-12-06 Michael Meeks <michael@ximian.com>
3103 * libspi/value.c (spi_value_class_init): upd.
3104 (spi_value_finalize): kill.
3106 * libspi/table.c (spi_table_finalize): kill.
3107 (spi_table_interface_new): upd.
3108 (spi_table_class_init): upd.
3109 (get_table_from_servant): impl.
3110 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3112 * libspi/selection.c (spi_selection_finalize): kill.
3113 (spi_selection_interface_new): upd.
3114 (spi_selection_class_init): upd.
3115 (get_selection_from_servant): impl.
3116 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3118 * libspi/relation.c (spi_relation_finalize): kill.
3119 (spi_relation_class_init, spi_relation_new): upd
3121 * libspi/image.c (spi_image_finalize): kill.
3122 (spi_image_class_init): upd.
3123 (spi_image_interface_new): upd.
3124 (get_image_from_servant): impl.
3125 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3127 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3128 (spi_hyperlink_finalize): kill.
3129 (spi_hyperlink_new): upd.
3130 (get_hyperlink_from_servant): impl.
3131 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3133 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3134 (spi_hypertext_finalize): kill.
3135 (spi_hypertext_class_init): upd.
3136 (get_hypertext_from_servant): impl.
3137 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3139 * libspi/editabletext.c (spi_editable_text_finalize): kill.
3140 (spi_editable_text_interface_new): upd.
3141 (get_editable_text_from_servant): impl.
3142 Upd. all CORBA impl.s to use it killing yet more cut and paste.
3144 * libspi/text.c (get_text_from_servant): impl.
3145 All impls - update to use it killing more cut and paste,
3146 also fix bad string returns on duff args ( a somewhat
3147 impossible case to handle - but hey ).
3148 (spi_text_construct): impl.
3149 (spi_text_interface_new): upd.
3150 (spi_text_object_finalize): kill.
3152 * libspi/component.c
3153 (accessibility_component_object_finalize): kill.
3154 (spi_component_class_init): upd.
3155 (get_component_from_servant): impl. helper to kill cut & paste.
3156 (impl_accessibility_component_contains):
3157 (impl_accessibility_component_get_accessible_at_point):
3158 (impl_accessibility_component_get_position):
3159 (impl_accessibility_component_get_extents):
3160 (impl_accessibility_component_get_mdi_z_order):
3161 (impl_accessibility_component_get_layer):
3162 (spi_component_interface_new): upd.
3164 * libspi/action.c (spi_action_finalize): kill.
3165 (spi_action_class_init): upd. inherit from SpiObject.
3166 (spi_action_interface_new): upd.
3167 (get_action_from_servant): impl. helper to reduce cut & paste.
3168 (impl_getKeyBinding, impl_getName, impl_doAction),
3169 (impl_getDescription): Use it everywhere.
3171 * cspi/spi_main.c (get_live_refs): a pointer hash.
3172 (spi_object_hash, spi_object_equal): comment out.
3173 There are issues with CORBA object hashing that need
3176 * libspi/application.c (spi_application_init),
3177 (spi_application_new): upd.
3179 * libspi/accessible.c (spi_accessible_object_finalize): kill.
3180 (spi_accessible_class_init): upd.
3181 s/accessible/object/ in epv methods.
3183 2001-12-05 Bill Haneman <bill.haneman@sun.com>
3185 * at-bridge/bridge.c:
3186 Reorder the bridge initialization into the bridge gtk_module_init,
3187 an immediate call to bridge_register_app, and an idle_add for
3188 register_atk_event_listeners (the only code that *must* wait until
3189 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3190 the activation, creates the application's Accessible object, and
3191 queues the bridge_idle_init function. Restored call to
3192 Accessibility_Registry_deregisterApplication().
3193 Prior to making this call we obtain a new reference to the
3194 registry, which is a temporary hack that helps us handle apps that
3195 shut down the bonobo mainloop before we get there.
3197 * libspi/registry.c:
3198 Fix string leakage in debug block, and don't segv if a an app
3199 dies before its event notifications have been propagated.
3202 Modify cspi_check_ev() to call g_warning() rather than g_error(),
3203 as stopgap measure until we get proper exception handling when
3204 objects die during or before interrogation.
3208 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3209 Also changed default value of is_gnome_app to TRUE.
3212 * test/keysynth-demo.c:
3213 Changed use of SPI_init and SPI_event_main to reflect API change above.
3216 Made report_focus_event check the warning value from getName
3217 before reporting on focussed accessible; simplifies handling of
3218 notifications from dead objects.
3220 * test/test-simple.c: (Changes not in this patch since source is
3223 2001-12-05 Michael Meeks <michael@ximian.com>
3225 * registryd/registryd.c (main): protect against
3226 bonobo-activation startup race condition.
3228 * cspi/spi_main.c (cspi_object_add_check): cope
3229 with the exception elegantly.
3231 * idl/Accessible.idl: decl. ChildGone
3233 * libspi/desktop.c (spi_desktop_dispose): impl.
3234 (spi_desktop_class_init): upd.
3235 (spi_desktop_add_application),
3236 (spi_desktop_remove_application),
3237 (abnormal_application_termination): impl.
3238 (impl_desktop_get_child_at_index): re-impl.
3241 (impl_accessibility_registry_deregister_application),
3242 (impl_accessibility_registry_register_application):
3243 kill excessive debug clutter.
3245 * test/test-simple.c (test_misc): test some NULL
3246 tolerance. (main): upd.
3248 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3249 implements no interfaces - so let's not crash.
3251 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3253 * libspi/accessible.c (spi_accessible_new_return): impl.
3254 helper to calm the cut and paste, to cope with
3255 NULL AtkObjects effectively and efficiently, and to kill
3256 the referencing bugs.
3258 * libspi/table.c (impl_getAccessibleAt),
3259 (impl_getRowHeader, impl_getColumnHeader): upd.
3261 * libspi/hyperlink.c (impl_getObject): upd.
3263 * libspi/accessible.c
3264 (impl_accessibility_accessible_get_child_at_index): upd.
3266 * libspi/component.c
3267 (impl_accessibility_component_get_accessible_at_point): upd.
3269 * test/test-simple.c (test_editable_text, test_text): impl.
3272 * cspi/spi_editabletext.c
3273 (AccessibleEditableText_insertText): constify.
3275 * test/test-simple.c (focus_me): make more robust.
3277 * libspi/accessible.c: remove some printfs in methods that
3278 we test and work fine, so we can get a clean tree dump.
3280 * test/test-simple.c (validate_accessible),
3281 (validate_tree): make tree dumping pretty too.
3283 * at-bridge/bridge.c (bridge_signal_listener): upd. so
3284 it builds without debug on.
3286 * test/test-simple.c (validate_accessible): fix the most
3289 * cspi/spi_main.c (spi_object_release): leave the nicely
3290 blanked memory around if in debug mode.
3292 * cspi/spi-listener-impl.c (cspi_event): use add_check.
3294 [committed to fixups2]
3295 2001-12-05 Michael Meeks <michael@ximian.com>
3297 * libspi/editabletext.c
3298 (spi_editable_text_class_init): g_type_class_peek_parent,
3299 not interface peek - so we finalize cleanly.
3301 * libspi/accessible.c (spi_accessible_new): kill debug.
3303 * test/test-simple.c (validate_accessible): fix ref.
3304 leak, print strings before freeing them; sigh, comment a
3305 chunk out due to strangeness.
3306 (validate_tree): unref the child after use.
3308 * cspi/spi_component.c (AccessibleComponent_getLayer):
3309 add missing break statement, switch on zlayer not the
3310 uninitialized retval.
3312 * cspi/spi_main.c (cspi_object_add): add assert, local ref
3313 before (possibly re-entering) remote unref.
3315 * test/simple-at.c (main): unref the desktop.
3317 * cspi/spi_accessible.c (cspi_accessible_is_a): move
3320 * cspi/spi_main.c (cspi_accessible_is_a): here to
3321 isolate bonobo API usage more.
3323 * libspi/registry.c (impl_accessibility_registry_register_application):
3324 prune bogus comment.
3326 2001-12-04 Michael Meeks <michael@ximian.com>
3328 * test/test-simple.c (validate_tree): upd.
3329 IndexInParent check to make it more lucid.
3330 (validate_accessible): dump the tree.
3332 * libspi/accessible.c (de_register_public_ref),
3333 (get_public_refs): impl.
3334 (spi_accessible_new): make more efficient & intuitive.
3335 Now IndexInParent check works.
3337 2001-12-04 Michael Meeks <michael@ximian.com>
3339 * cspi/spi-util.h: remove.
3341 * cspi/spi.h: move SPI_freeString here
3343 * libspi/component.c (impl_accessibility_component_get_layer):
3345 (impl_accessibility_component_get_mdi_z_order): ditto,
3346 return -1 on error - is this ok ?
3348 * test/test-simple.c (test_application): impl.
3350 * cspi/spi_accessible.c (Accessible_getApplication),
3351 (Accessible_isApplication): impl.
3353 * libspi/registry.c (spi_listener_struct_free): release
3354 the CORBA reference too.
3356 * libspi/accessible.c
3357 (impl_accessibility_accessible_get_parent): fix ref leak.
3359 * libspi/registry.c (spi_registry_new): make the registry
3360 immortal - we don't want it to go away ever.
3362 * libspi/application.c
3363 (spi_accessible_application_finalize): impl. cleanup.
3365 * cspi/spi_registry.c
3366 (deregisterGlobalEventListenerAll),
3367 (deregisterGlobalEventListener),
3368 (deregisterAccessibleKeystrokeListener): fix ref leak.
3370 * cspi/spi_main.c (SPI_init): remove redundant ref.
3372 * test/test-simple.c (unutterable_horror): impl. to force a
3377 (impl_accessibility_registry_deregister_application): release
3378 the application when we de-register it.
3380 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
3381 until we have the infastructure to get it right.
3383 2001-12-03 Michael Meeks <michael@ximian.com>
3385 * libspi/Makefile.am: only build eventlistener.[ch]
3387 * libspi/accessible.c
3388 (impl_accessibility_accessible_get_child_at_index): don't leak.
3390 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
3391 before we hit the idle handler.
3393 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
3394 debugging than exit.
3396 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
3398 * libspi/listener.c (impl_notify_event): check source
3399 not NIL before unref.
3401 * libspi/registry.c (impl_registry_notify_event): ditto.
3403 * libspi/eventlistener.c
3404 (impl_accessible_event_notify_event): unref the source.
3406 * libspi/accessibleeventlistener.c
3407 (impl_accessible_event_notify_event): unref the source.
3409 * idl/Event.idl: remove 'hash_id' attribute - of no
3412 * libspi/application.c (notify_listeners): upd list
3414 (spi_application_object_event_listener),
3415 (spi_application_toolkit_event_listener): upd to do correct
3419 (_registry_notify_listeners): update.
3420 (parse_event_type): this method also leaks like a sieve.
3421 (impl_accessibility_registry_deregister_global_event_listener):
3422 fix ETYPE_WINDOW case.
3424 * libspi/application.c
3425 (impl_accessibility_application_register_object_event_listener):
3428 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
3430 * libspi/hypertext.c (impl_getLink): ditto.
3432 * cspi/spi_main.c (cspi_object_add): remove
3433 bogus CORBA_Object_duplicate.
3435 * cspi/spi-listener-impl.c (cspi_event): dup/ref
3438 * cspi/spi_accessible.c
3439 (Accessible_getRelationSet): fix leak / referencing issue.
3441 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
3442 (cspi_object_add, cspi_object_unref): upd.
3443 (spi_object_release, get_live_refs): impl.
3444 (cspi_cleanup): simplify.
3446 * *.[ch]: s/boolean/SpiBoolean/
3448 * cspi/spi_accessible.c (role_names): actualy order so it
3449 corresponds with the enum !
3451 * test/test-simple.c (test_roles): check some role strings
3452 vs. enums to detect offset errors.
3454 2001-12-01 Michael Meeks <michael@ximian.com>
3456 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
3458 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
3460 (Accessible_getChildAtIndex): use cspi_add_check so we
3461 check the ev before using a (possibly) invalid value.
3463 * libspi/accessible.c
3464 (impl_accessibility_accessible_get_parent): don't segv
3467 * at-bridge/bridge.c (gtk_module_init): upd.
3468 (bridge_property_event_listener): don't leak strings
3470 (bridge_state_event_listener),
3471 (bridge_property_event_listener): don't use a static
3472 buffer in case of recursive event emission &
3473 re-enterancy - split out the swathe of cut and paste
3475 (emit_eventv): and fix 2 ref leaks here & comply to the
3477 (bridge_register_app): rename to
3478 (bridge_idle_init): this and kill arg parsing, split
3479 various inits & bonobo-activation registration to module
3480 init time, kill referencing error.
3481 (bridge_exit_func): fix the same leak.
3482 (bridge_focus_tracker): don't leak event structures
3484 (bridge_signal_listener): more leakage and cut & paste
3486 (bridge_key_listener): return the result - FIXME is
3487 this polarity correct ?
3488 (accessibility_keystroke_from_atk_key_event): rename
3489 (accessibility_init_keystroke_from_atk_key_event): and stop
3491 (gtk_module_init): return a value - not that it is checked by
3493 (bridge_key_listener): register my horror at casting between
3494 IDL defined structs.
3495 (bridge_get_registry): kill - not used.
3497 * cspi/spi_accessible.c (Accessible_getRole): make return const.
3499 * test/test-simple.c (test_roles): impl.
3500 (test_desktop, validate_accessible, validate_tree): impl.
3502 * cspi/spi_accessible.c (role_names): fixup bogus
3503 MAX_ROLES setup, make constants const for efficient linkage
3504 (AccessibleRole_getName): conform to coding style, make
3507 2001-11-30 Michael Meeks <michael@ximian.com>
3509 * cspi/spi.h: add missing prototype.
3511 * libspi/registry.c (spi_listener_struct_new): fix sig.
3513 * test/Makefile.am: add test-simple
3515 * test/test-simple.c: add
3517 * test/test.sh: add.
3519 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
3521 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
3522 do it straight - since otherwise we often get an activation race.
3524 [ work before Bill duplicated a chunk of it ... ]
3525 2001-11-30 Michael Meeks <michael@ximian.com>
3527 * libspi/keystrokelistener.c
3528 (spi_keystroke_listener_class_init): fixup arg
3531 * libspi/eventlistener.c
3532 (spi_event_listener_class_init): ditto.
3534 * tests/test.sh: add.
3536 * cspi/spi-listener-impl.h: update macros.
3538 * cspi/spi-listener-impl.c
3539 (cspi_event_listener_remove_callback): add
3540 correct pre-conditions.
3542 * cspi/spi_main.c (SPI_exit): guard vs. double
3543 exits, exit the mainloop nicely.
3544 (SPI_event_main): make more sense.
3545 (SPI_init): move the atexit evilness here so we
3546 always do it (yuck).
3547 (SPI_event_main): upd.
3549 * test/simple-at.c: update for listener changes.
3551 * registryd/registryd.c (main): prune kruft.
3553 * libspi/libspi.h: upd.
3555 * libspi/eventlistener.[ch]: rename broken macros.
3557 * libspi/accessibleeventlistener.[ch]: remove.
3559 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
3561 * test/test-simple.c: Add - automated tests.
3563 * cspi/spi-listener-impl.c (cspi_event),
3564 (cspi_key_event): add user_data to invoke.
3565 (cspi_keystroke_listener_finalize): impl.
3566 (cspi_keystroke_listener_class_init): upd.
3569 (createAccessibleEventListener),
3570 (AccessibleEventListener_addCallback),
3571 (createAccessibleKeystrokeListener),
3572 (AccessibleKeystrokeListener_addCallback): upd.
3574 * libspi/deviceeventcontroller.c
3575 (spi_device_event_controller_check_key_event): add public proto.
3578 (impl_accessibility_registry_deregister_global_event_listener):
3579 always init listeners.
3580 (_registry_notify_listeners): yes it is.
3582 * cspi/spi-listener-impl.c (cspi_key_event):
3584 (cspi_event_listener_finalize): impl.
3585 (cspi_event_listener_class_init): hook up.
3586 (event_handler_new, event_handler_free),
3587 (event_list_remove_by_callback): impl.
3588 (cspi_event_listener_remove_callback),
3589 (cspi_keystroke_listener_remove_callback),
3590 (cspi_keystroke_listener_add_callback),
3591 (cspi_event_listener_add_callback): upd.
3593 * libspi/keystrokelistener.c
3594 (keystroke_listener_object_finalize): kill
3595 (spi_keystroke_listener_class_init): upd.
3596 (spi_keystroke_listener_add_callback),
3597 (spi_keystroke_listener_remove_callback): kill,
3599 (impl_key_event): prune drasticaly.
3601 * libspi/eventlistener.c
3602 (spi_event_listener_add_callback),
3603 (spi_event_listener_remove_callback): kill, use
3605 (impl_accessible_event_notify_event): upd.
3606 (spi_event_listener_object_finalize): remove.
3608 * libspi/Makefile.am: use eventlistener.[ch]
3610 2001-12-04 Bill Haneman <bill.haneman@sun.com>
3612 * libspi/registry.c (_registry_notify_listeners):
3613 Changed listener loop iteration to use preferred convention.
3614 Got rid of string memory leaks caused be calling g_strconcat
3615 inside function calls.
3617 * libspi/registry.c (parse_event_type):
3618 Stopped g_strconcat memory leaks, free the g_strsplit return,
3619 g_strdup the split pieces when used, etc.
3621 2001-12-04 Bill Haneman <bill.haneman@sun.com>
3624 Change method 'compare' to return a 'difference set' rather than
3625 taking a StateSet as an out parameter (more Java-friendly).
3627 * idl/Accessible.idl:
3628 Added CORBA struct 'BoundingBox', to faciliate API changes below:
3630 * idl/Component.idl:
3632 Changed methods 'getExtents' and 'getImageExtents' in these
3633 interfaces to return a BoundingBox structure.
3634 (getPosition and getSize are redundant and possibly should be
3635 removed, rather than creating a corresponding Point struct.)
3637 * cspi/spi_component.c:
3638 Modify implementation of getExtents to reflect the above IDL
3643 Add (missing) AccessibleImage_getExtents () API.
3645 * docs/reference/cspi/at-spi-cspi-sections.txt:
3646 Added AccessibleImage_getImageExtents () to docs.
3648 2001-12-03 Bill Haneman <bill.haneman@sun.com>
3650 * idl/Component.idl:
3651 Added two methods, getLayer () and getMDIZOrder (), to reflect
3652 the new ATK methods atk_object_get_layer and
3653 atk_object_get_mdi_z_order. (Which arguably should be part of the
3654 AtkComponent API and AtkObject). Also added an enum,
3655 ComponentLayer, for the first method's return value.
3657 * libspi/component.c:
3658 Added implementations for these methods.
3660 * cspi/spi_component.c:
3662 Added cspi binding methods for above,
3663 AccessibleComponent_getLayer() and
3664 AccessibleComponent_getMDIZOrder().
3665 Added cspi enum 'AccessibleComponentLayer'.
3667 * docs/reference/cspi/at-spi-cspi-sections.txt:
3668 Added above methods to docs.
3672 Changed typedef for 'boolean' type (and all references to it) to
3673 SPIBoolean, to avoid keyword clashes with C++.
3676 Changed usages of 'boolean' to SPIBoolean.
3678 * test/keysynth-demo.c:
3679 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
3680 app), except where SPIBoolean is required by the callbacks API.
3682 2001-12-02 Bill Haneman <bill.haneman@sun.com>
3684 * cspi/spi_registry.c:
3685 Removed obsolete X event loop for passive keygrabs (which now
3688 * registryd/registryd.c:
3689 Removed unnecessary call to gdk_init() [cruft]. This also allows
3690 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
3693 2001-11-28 Bill Haneman <bill.haneman@sun.com>
3695 * docs/reference/cspi:
3696 Included docs for SPI_freeString in generated documentation.
3699 Renamed spi_freeString to SPI_freeString, for consistency. Added
3700 documentation for this function.
3703 Renamed spi_freeString to SPI_freeString, for consistency.
3704 Removed obsolete method declaration string_from_corba_string.
3706 * test/keysynth-demo.c:
3707 Small tweak to comments.
3710 Stopped leaking the strings returned from CSPI.
3712 2001-11-28 Bill Haneman <bill.haneman@sun.com>
3714 Merged Michael's branch (see his ChangeLog entries below).
3716 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
3717 bridge is alive, release on exit.
3719 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
3720 Fix type check macro.
3723 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
3726 Added is_gnome_app static, and method cspi_is_gnome_app(),
3727 so we can call the appropriate shutdown routine at exit in SPI_exit.
3729 * cspi/spi_main.c (cspi_object_ref):
3730 Duplicate the corba object passed in, since we're keeping it around.
3732 * cspi/SPI_exit.c, cspi_cleanup:
3733 Moved the releasing of the live refs to its own function, so we
3734 can put it in g_atexit (). Call the appropriate shutdown API
3735 depending on whethe calling client is a gnome app or not
3736 (bonobo_main_quit or CORBA_ORB_shutdown).
3738 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
3739 Unref the listener when this method is called, after
3740 deregistration. Updated the API docs to note this behavior.
3742 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
3743 Bugfixes: Ref the bonobo object when returning a parent or child
3744 reference, or an AccessibleRelation. Generally made sure
3745 BonoboObject refcount is incremented whenever we return an
3748 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
3749 Fixed typo/bug in signal declaration.
3751 * libspi/accessibleeventlistener.h:
3754 * libspi/application.c (spi_application_new):
3755 Fixed leak in initialization.
3758 Remembered to increment bonobo-object refcount when returning
3759 children (applications) from desktop object.
3760 Added (empty) finalize method.
3762 * libspi/deviceeventcontroller.c:
3763 Hold a ref to listeners inside DEControllerKeyListeners.
3764 Added dec_key_listener_free() method. Use prepend instead of
3765 append in key_listener list. Fixed some refcount madness and
3766 leaks in the listener registration/deregistration - deregistration
3767 now calls dec_key_listener_free() on listeners, and on the
3768 temporarily constructed dec_key_listener() used to perform the search/match.
3770 * libspi/hypertext.c (spi_hypertest_finalize):
3771 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
3772 class. Also fixed spi_hypertext_interface_new() and
3773 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
3775 * libspi/hypertext.h:
3776 Removed pointless and duplicate AtkObject pointer from
3779 * libspi/keystrokelistener.c:
3780 Fixed incorrect type of keystroke_listener_parent_class,
3781 renamed keystroke_listener_object_finalize to
3782 spi_keystroke_listener_object_finalize.
3783 Fixed typo in signal declaration
3784 (spi_keystroke_listener_class_init).
3786 * libspi/registry.c:
3787 Added funcsions spi_listener_struct_new() and
3788 spi_listener_struct_free() to help with memory management issues.
3789 We also now use these methods instead of gnew + poking stuff into
3790 the struct, and to decrement listener counts/free the listeners
3791 when deregistering them.
3792 Fix more refcount bugs in getDesktop() and
3793 getDeviceEventController().
3796 De-ref the desktop after enumerating the applications. Explicitly
3797 decrement the refcounts on the created listeners on exit (using
3798 _unref for keystroke listeners, and via the
3799 deregisterGlobalEventListenerAll command for other event
3802 2001-11-27 Michael Meeks <michael@ximian.com>
3804 * cspi/spi-listener.h: fixup enum.
3806 2001-11-27 Michael Meeks <michael@ximian.com>
3808 * cspi/spi-listener-impl.c (cspi_event_listener_new),
3809 (cspi_keystroke_listener_new): Use the cspi variants.
3811 2001-11-26 Michael Meeks <michael@ximian.com>
3813 * test/keysynth-demo.c: fix 2 compile warnings, missing
3816 * test/simple-at.c (report_focussed_accessible),
3817 (report_focus_event, report_button_press),
3818 (check_property_change, is_command_key),
3819 (report_ordinary_key_event, report_command_key_event): upd.
3821 * util/mag_client.h: include pre-requisites.
3823 * libspi/accessibleeventlistener.c
3824 (spi_event_listener_object_finalize): free any lingering
3827 * libspi/keystrokelistener.c
3828 (keystroke_listener_object_finalize): ditto.
3830 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
3831 callbacks, with cspi types.
3833 * cspi/spi_event.c (createAccessibleEventListener): chain to
3834 (AccessibleEventListener_addCallback): here.
3835 (createAccessibleKeystrokeListener): chain to
3836 (AccessibleKeystrokeListener_addCallback): here.
3838 * libspi/keystrokelistener.c
3839 (spi_keystroke_listener_class_init): add signal.
3840 (impl_key_event): emit the event.
3841 (boolean_handled_accumulator): impl.
3842 (marshal_BOOLEAN__POINTER): add, gack.
3844 * libspi/accessibleeventlistener.c
3845 (spi_event_listener_class_init): add signal.
3846 (impl_accessible_event_notify_event): emit the signal &
3847 make the loop efficient.
3848 (spi_event_listener_add_callback): prepend the callback.
3850 * libspi/accessibleeventlistener.h: add an 'event' signal,
3851 decl type on callback.
3853 * libspi/keystrokelistener.h: ditto.
3855 * cspi/spi-listener.h: make methods typesafe and
3856 make them use the new event typedefs.
3858 * test/simple-at.c (report_focussed_accessible):
3859 include mag_client.h
3860 Use *(void *)text_interface not the other thing.
3862 * configure.in: add gtk to registryd bits - since we use
3865 * util/magnifier.c: include libbonobo.h
3867 2001-11-25 Bill Haneman <bill.haneman@sun.com>
3869 * test/keysynth-demo.c:
3870 Turned this into a simple scanning keyboard, to demonstrate the
3871 use of g_timeout_add () as a means of creating timers for
3872 scanning, and the use of GtkStyle for visually indicating when
3873 virtual keyboard elements are selected.
3875 keysynth-demo now listens to any keyboard keys with zero-valued
3876 keycodes (i.e. 'unused' keys) and interprets them as
3879 Reworked the shiftlatch code so that shift-down state isn't held
3880 for long periods (it's only synthesized immediately prior to
3881 the keysynth event it's modifying). Note that shiftlatch in this
3882 demo is a convenience, not intended to take the place of AccessX
3883 which is the better choice for getting 'sticky' modifier keys.
3885 * libspi/deviceeventcontroller.c:
3886 * at-bridge/bridge.c:
3887 * cspi/spi_registry.c:
3888 Removed some debug print stuff, and put other verbosity in #ifdef
3893 Implemented some more of the magnifier IDL for the simple
3894 magnifier: namely, getZoomRegionParams.
3895 Added mag_x and mag_y members to MagnifierData struct, aid of this
3897 Added GtkWindow::realize signal handler to magnifier, to keep it
3898 from receiving keyboard focus from the WM.
3900 2001-11-23 Mark McLoughlin <mark@skynet.ie>
3902 * cspi/spi-private.h: my guess at what michael forgot
3903 before he ran off to NZ :-)
3905 2001-11-23 Michael Meeks <michael@ximian.com>
3907 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
3908 comment out non existant method invoke so we link.
3910 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
3911 use bonobo_exception_get_text for more friendly warnings.
3913 * cspi/spi.c (Obj_Add): move into spi_main & rename
3914 spi_object_add; kill spi.c
3916 * cspi/spi_registry.c
3917 (deregisterGlobalEventListener),
3918 (deregisterGlobalEventListenerAll),
3919 (registerGlobalEventListener): fix exception leaks.
3921 * cspi/spi_main.c (spi_exception): impl. helper, so we
3922 don't leak exceptions.
3924 * cspi/spi_selection.c
3925 (AccessibleSelection_deselectSelectedChild): return the
3928 * cspi/spi_main.c (spi_ev): impl; hack - gack.
3929 (spi_registry): ditto.
3930 (SPI_init): guard against double inits.
3932 * cspi/*.c: use spi_ev (), and spi_registry () where
3933 appropriate - a temporary hack until we have something
3934 better. Use spi_object_add
3936 2001-11-22 Michael Meeks <michael@ximian.com>
3938 * cspi/Makefile.am: re organise, install the headers.
3940 * cspi/*.h: add G_BEGIN/END_DECLS
3942 2001-11-22 Bill Haneman <bill.haneman@sun.com>
3945 Added non-preemptive keylistener for key events with no modifiers
3946 and shift-only modifier.
3948 * libspi/keystrokelistener.c:
3949 Removed some verbose diagnostics printout.
3951 * cspi/spi_registry.c:
3952 Fixed a bug that caused all key listeners to be registered as
3955 * libspi/deviceeventcontroller.c:
3956 Fixed bug that caused XGrabKey (preemptive key grab) to be called
3957 for non-preemptive key masks.
3960 2001-11-22 Bill Haneman <bill.haneman@sun.com>
3962 * docs/reference/idl/at-spi-idl-docs.sgml:
3963 * docs/reference/idl/at-spi-idl-sections.txt:
3964 * docs/reference/idl/at-spi-idl-overrides.txt:
3965 Added missing files.
3967 * docs/reference/Makefile.am:
3968 removed idl from SUBDIRS until we can figure a way to get gtk-doc
3969 to scan the IDL files :-(
3974 Added .cvsignore files.
3976 2001-11-21 Bill Haneman <bill.haneman@sun.com>
3978 * libspi/deviceeventcontroller.c:
3979 * libspi/keystrokelistener.c:
3981 * cspi/spi_registry.c:
3982 Added filters for KeySets, KeyEventSeq, and event types to key
3983 event dispatching, so listeners should only receive those events
3984 that they requested :-)
3986 2001-11-21 Bill Haneman <bill.haneman@sun.com>
3991 * docs/reference:Makefile.am:
3992 * docs/reference/cspi:
3993 * docs/reference/cspi:Makefile.am:
3994 * docs/reference/cspi:tmpl:
3995 * docs/reference/cspi:tmpl:*.sgml:
3996 * docs/reference/idl:
3997 * docs/reference/idl:Makefile.am:
3998 * docs/reference/idl:at-spi-idl-sections.txt:
3999 * docs/reference/idl:at-spi-idl-docs.sgml:
4000 * docs/reference/idl:tmpl:
4001 * docs/reference/idl:tmpl:*.sgml:
4003 Restructured docs directory to allow separate 'reference' docs
4004 section, and forked idl and cspi docs. Added the sgml template
4005 files to CVS. Added the first sections/structural sgml for the
4008 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
4010 * configure.in, libspi/Makefile.am: find libXtst.
4012 2001-11-21 Michael Meeks <michael@ximian.com>
4014 * test/accessx-gui.c: s/spi_value/value/ - doh.
4016 * libspi/base.[ch]: add.
4018 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4020 * idl/Accessible.idl:
4021 * idl/Application.idl:
4024 Started gtk-doc cleanup on IDL.
4026 * libspi/deviceeventcontroller.c:
4027 Added and connected non-preemptive key notification from the
4028 toolkits (in addition to the pre-emptive support from XServer
4029 which we had before, but which causes 'focus flashing'). Filters
4030 are presently limited to key modifiers and global/non-global,
4031 KeySets are presently ignored, as are KeyEvent masks.
4033 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
4034 structs into the persistant structure rather than just storing
4035 pointers to things that might not persist across servant
4038 The XGrabKey call now does async keygrabs, because synchronous
4039 ones were deadlocking with GDK_event code in a very nasty way.
4041 Added boolean to internal method notify_keylisteners, to indicate
4042 whether the event came from the 'toolkit source' or the 'global
4043 (XServer) source' - this is used in the notification process to
4044 determine which listeners to send the event to.
4046 deviceeventcontroller.c is now warning-free.
4048 * libspi/registry.c:
4049 Fixed regression in application de-registration.
4050 Also fixed some really brain-dead weirdness having to do with
4051 event dispatching - event structs are now duplicated before being
4052 re-marshalled in the dispatch to listeners. This also fixes a
4053 Solaris build problem.
4056 2001-11-20 Michael Meeks <michael@ximian.com>
4059 (impl_accessibility_registry_deregister_global_event_listener):
4062 * libspi/deviceeventcontroller.c
4063 (spi_device_event_controller_check_key_event): return
4064 FALSE on no virtual method.
4066 * libspi/*..h: make includes work on a correctly pathed install.
4068 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4070 * libspi/application.h: kill unused ( and whacked out )
4071 gboolean *spi_application_set_id (AtkObject *app, long id);
4073 2001-11-20 Michael Meeks <michael@ximian.com>
4075 * libspi/*.[ch]: further convert to bonobo's type func
4076 macros, remove redundnant casts etc.
4078 * libspi/text.c s/accessibility_text/spi_text/g,
4079 re-order to de-cruft.
4081 * libspi/hypertext.c: re-order to kill a huge slew
4082 of redundant forward decls.
4084 * libspi/relation.c: ditto.
4086 * libspi/image.c: ditto.
4088 * */.cvsignore: update
4090 2001-11-20 Michael Meeks <michael@ximian.com>
4092 * libspi/deviceeventcontroller.c
4093 (_controller_register_with_devices): use g_getenv,
4094 kill stdlib.h include.
4096 * libspi/keystrokelistener.c
4097 (spi_keystroke_listener_get_type): kill
4098 (spi_keystroke_listener_class_init),
4099 (spi_keystroke_listener_init): rename to this.
4101 * libspi/text.c (impl_getAttributes): fix warning / bug.
4103 * libspi/*.[ch]: more headers, includes and over commenting.
4105 2001-11-20 Michael Meeks <michael@ximian.com>
4107 * libspi/*.[ch]: fixup headers, includes and over commenting.
4109 * libspi/image.c (impl__get_imageDescription): const
4110 correctness warning fix. remove redundant casting.
4112 * libspi/table.c (impl_getRowDescription): ditto.
4113 (impl_getColumnDescription): ditto.
4115 * libspi/libspi.h: add.
4117 2001-11-19 Michael Meeks <michael@ximian.com>
4119 * libspi/editabletext.c (impl_setAttributes): fix warnings.
4121 * libspi/component.c (accessibility_component_get_type):
4122 rename to (spi_component_get_type): and macroify.
4123 (accessibility_component_init): rename to
4124 (spi_component_init): this
4125 (accessibility_component_class_init): rename to
4126 (spi_component_class_init): this
4128 * libspi/action.c (spi_action_get_type): kill, use the macro.
4130 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4133 * libspi/application.c (spi_application_object_event_listener),
4134 (impl_accessibility_application_register_object_event_listener):
4135 warning fixes / const understanding updates.
4137 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4140 2001-11-18 Bill Haneman <bill.haneman@sun.com>
4142 * libspi/spi_accessible.c: Added docs and C bindings for
4143 AccessibleStateSet. (No implementations yet). Documentation
4144 coverage for C bindings now 100%. Made docs for event listeners
4149 boolean notifyListenersSync (in DeviceEventListener listener,
4150 in DeviceEvent event);
4152 oneway void notifyListenersAsync (in DeviceEventListener listener,
4153 in DeviceEvent event);
4155 Added DeviceEventListener and DeviceEvent structs (may deprecate
4156 KeyStroke and KeystrokeListener in favor of this generic
4157 event/listener framework for devices).
4159 * libspi/deviceeventcontroller.c:
4161 Changed some key listener code to take masks, etc., and paved the
4162 way for integration of toolkit/non-preemptive key events. Changed
4163 signatures of some internal methods.
4165 * at-bridge/bridge.c:
4166 Fixed regression connecting to interface signals, apparently
4167 caused by GTK+ changes.
4169 Added an internal bridge_state_listener to deal with
4170 property-change:accessible-state signals.
4172 Changed the key_listeners GList to store structs (including masks,
4173 etc.) instead of just CORBA_Objects (required for full
4174 implementation of key listener API).
4176 Connected the bridge to all currently supported Atk signals.
4177 Events now supported:
4178 object:property-change
4179 object:property-change:accessible-name
4180 object:property-change:accessible-state
4181 object:property-change:accessible-description
4182 object:property-change:accessible-parent
4183 object:property-change:accessible-value
4184 object:property-change:accessible-role
4185 object:property-change:accessible-table-caption
4186 object:property-change:accessible-table-column-description
4187 object:property-change:accessible-table-column-header
4188 object:property-change:accessible-table-row-description
4189 object:property-change:accessible-table-row-header
4190 object:property-change:accessible-table-summary
4191 object:children-changed
4192 object:visible-data-changed
4193 object:selection-changed
4194 object:text-selection-changed
4196 object:text-caret-moved
4198 object:row-reordered
4200 object:column-inserted
4201 object:column-reordered
4202 object:column-deleted
4203 object:model-changed
4205 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4207 * libspi/hyperlink.c,h:
4208 Fixed some broken stuff in hyperlink.
4210 * libspi/relation.h:
4211 * libspi/relation.c:
4212 * cspi/spi_accessible.c:
4213 Initial implementations of AccessibleRelation methods, and docs.
4215 * libspi/accessible.c:
4216 Fixed a bug that caused SEGV if an accessible
4217 object's description is NULL, and a client
4218 requests it. An empty string is now returned.
4220 * cspi/spi_editabletext.c:
4221 * cspi/spi_hypertext.c:
4223 * cspi/spi_hyperlink.c:
4227 Doc coverage now 95%.
4229 2001-11-16 Bill Haneman <bill.haneman@sun.com>
4231 One last namespacing revision:
4232 * libspi/accessibleeventlistener.[ch]:
4233 Renamed SpiAccessibleEventListener to SpiEventListener,
4234 (no need for two namespaces ;-)
4236 And lots of documentation fixes:
4238 * docs/at-spi-docs.sgml:
4239 Fixed 'underscore vs. hyphen' bug that was preventing
4240 the gtk-doc API docs from being automatically generated.
4243 * cspi/spi-listener.h
4245 * cspi/spi_accessible.c
4247 * cspi/spi_application.c
4248 * cspi/spi_component.c
4249 * cspi/spi_editabletext.c
4251 * cspi/spi_hypertext.c
4253 * cspi/spi_registry.c
4254 * cspi/spi_selection.c
4258 * docs/at-spi-docs.sgml
4259 * docs/at-spi-sections.txt
4261 Added and fixed up gtk-doc documentation in cspi.
4263 Interfaces now (fully) documented (subject to revision and enhancement):
4265 Event Listener Support
4267 AccessibleApplication
4271 AccessibleEditableText
4278 AccessibleRelationSet
4283 2001-11-14 Bill Haneman <bill.haneman@sun.com>
4285 * at-bridge/bridge.c:
4286 Initial work for toolkit-level key snooper connection by bridge.
4291 New typedefs and fixes to support new namespacing, and cleaner
4292 separation of cspi bindings from libspi bonobo implementation.
4293 Removed inconsistent and extraneous Spi* namespace prefix that
4294 had crept into cspi headers.
4295 Lots of comment fixes that sed had missed.
4297 * cspi/spi-roletypes.h:
4298 * cspi/spi-statetypes.h:
4299 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
4300 to AccessibleRoleType.
4302 * libspi/accessibleeventlistener.h:
4303 Fixed minor namespacing weirdness.
4305 * libspi/deviceeventcontroller.c:
4306 Reordered some internal API for device listeners.
4307 Changed the key registry final boolean to 'is_system_global'
4308 rather than 'is_synchronous', which is more descriptive of its
4310 Added spi_device_event_controller_new().
4311 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
4313 * libspi/keystrokelistener.[ch]:
4314 Namespaced KeystrokeListener to SpiKeystrokeListener.
4315 Changed uses of keymasks to use SPI_ prefix, and did other
4318 * libspi/keymasks.h:
4319 Namespaced keymask constants with SPI_ prefix.
4321 * libspi/registry.c:
4322 Some warning fixes, and knock-on fixes from namespace changes.
4325 Added rules for accessx-gui test program.
4327 * test/accessx-gui.c:
4328 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
4329 utility. It doesn't actually use at-spi, but it's still cool and
4332 * test/keysynth-demo.c:
4336 Fixes so that these test clients work properly with the namespaced
4337 libraries. (Incompletely tested for technical reasons, fixes may follow)
4340 2001-11-13 Michael Meeks <michael@ximian.com>
4342 * libspi/application.c
4343 (impl_accessibility_application_get_version),
4344 (impl_accessibility_application_get_toolkit_name):
4346 (impl_accessibility_application_set_id),
4347 (impl_accessibility_application_get_id): remove
4348 redundant casting code.
4350 * libspi/action.c (impl_getDescription): fix warnings.
4352 * libspi/accessible.c
4353 (impl_accessibility_accessible_get_parent),
4354 (impl_accessibility_accessible_get_child_at_index),
4355 (impl_accessibility_accessible_get_state),
4356 (impl_accessibility_accessible_get_relation_set):
4357 warning fixes & include action.h
4359 2001-11-13 Michael Meeks <michael@ximian.com>
4361 * *.[ch] fix bits I screwed up:
4363 s/([^ \tb(\*\&\?\",])spi_/\1/g;
4364 s/([^ \tb(\*\&\?\",])Spi/\1/g;
4366 2001-11-13 Michael Meeks <michael@ximian.com>
4368 * *.[ch] Namespace libspi into spi_ and Spi.
4370 2001-13-11 Michael Meeks <michael@ximian.com>
4372 * Makefile.am: dist & install at-spi-1.0.pc
4374 * libspi/Makefile.am: install into at-spi-1.0
4376 * idl/Makefile.am (idldir): install into at-spi-1.0
4378 * at-spi-1.0.pc.in: add.
4380 * configure.in: build it.
4382 2001-11-12 Bill Haneman <bill.haneman@sun.com>
4384 * test/keysynth-demo.c:
4385 Use a 'realize' signal-handler to set the WM properties for
4386 the virtual keyboard, rather than making it a "POPUP" type
4387 override-redirect window (thanks to anders carlsson for that
4390 2001-11-11 Bill Haneman <bill.haneman@sun.com>
4393 * test/keysynth-demo.c:
4394 Added new test of key synthesis, which creates a simple
4395 (mouse-operated) onscreen keyboard. It inserts key events into
4396 the currently-focused window, thus it does not grab keyboard focus
4399 * cspi/spi_registry.c:
4400 Added C binding for AT-SPI generateKeyEvent.
4402 * libspi/deviceeventcontroller.c:
4403 Added call to XFilterEvent so that key listener works with XIM (we
4404 hope). Added event_synth_type to generateKeyEvent, so that we can
4405 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
4406 synthesize a press/release pair for KeySyms.
4408 2001-11-09 Bill Haneman <bill.haneman@sun.com>
4410 * libspi/Makefile.am:
4411 * registryd/Makefile.am:
4412 (temporary) hack to include libXtst in libspi and registryd.
4413 (Needed for keystroke synthesis, see below).
4416 Improved API for registerKeystrokeListener, in accordance with
4417 discussions with Gnopernicus team and X server research.
4419 * libspi/registry.c:
4420 * libspi/deviceeventcontroller.c:
4421 * libspi/accessible.c:
4422 * libspi/keystrokelistener.c:
4423 Changes and fixes to support keylisteners for potentially
4424 consumed key events (that is, 'passive grabs').
4425 Added implementation for generateKeyEvent() [untested].
4428 Changes to registerKeystrokeListener() API, as above.
4429 Added deregisterGlobalEventListenerAll(), and
4430 deregisterKeystrokeListener(), which are needed for clean exit of
4432 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
4433 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
4435 * cspi/spi_registry.c:
4436 Added implementations of function prototypes mentioned above.
4438 * registryd/registryd.c:
4439 Added the key listener event source as a g_timeout(), to allow
4440 receipt of key events that are not caught by GDK (since GDK
4441 doesn't support passive keygrabs, this was necessary).
4444 Changed to attach a keylistener to 'Alt' keys, and
4445 respond to the following keycommands: Alt-M (toggle magnifier);
4446 Alt-F (toggle speech); Alt-Q (quit).
4447 Added an exit routine to deregister the listeners, and a key
4448 listener that prints some key info to the console when a key
4449 matches the listener mask (and is thus received by the listener).
4451 * util/idl/Magnifier.idl:
4452 Changes to magnifier API to support multiple zoom regions,
4453 non-uniform scaling in x and y, markDirty, and a host of other
4454 features that would be useful to magnification.
4457 * util/mag_client.c:
4458 * util/mag_client.h:
4459 * util/mag_control.c:
4461 Source code changes to support the above IDL changes.
4464 As above, and also changes to use a (slower) generic conversion
4465 path for colormap conversions, since the fast RGB conversions have been
4466 reported to fail for 16-bit displays.
4468 2001-10-26 Michael Meeks <michael@ximian.com>
4470 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
4472 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
4474 * at-bridge/Makefile.am: fix LDFLAGS.
4476 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4478 * at-bridge/bridge.c:
4479 Re-worked listeners for toolkit events, now we have signal
4480 and property listeners. Added a private method
4481 register_atk_event_listeners(), which registers with the
4482 various atk and gtk signals we need to monitor in order to emit
4484 Added emission hook for AtkObject:property-change events, to
4485 support the 'property listeners'.
4486 Fixed some alloc()s of Accessibility_Event structs to use CORBA
4489 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
4490 which emit warnings and exit, respectively, if CORBA errors occur
4491 during remote calls, and we now use these methods to check most of
4492 our CORBA calls in the C bindings.
4494 * cspi/spi_accessible.c:
4495 Changed AccessibleSelection_refSelectedChild() to
4496 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
4497 now increment refcounts.
4499 * cspi/spi_component.c:
4500 Fixed some long pointer casts (dangerous!) to pass pointers to
4501 CORBA_longs of the proper type to the CORBA stubs, and copy the
4502 data into the longs that were passed into the C bindings code.
4504 * at-bridge/bridge.c:
4506 * libspi/accessible.c:
4507 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
4508 hyperlinks, AtkHyperlink is an object type.
4510 * libspi/application.c:
4511 Added various conversions to and from "generic" event types and
4512 atk-specific types; this is really part of the 'bridge'
4513 implementation but is valid for all AtkObject-based accessibility
4516 * libspi/editabletext.c:
4517 Fixed nasty bug wherein editable text's finalize method was
4518 unref'ing tha AtkObject reference that the text parent class was
4519 about to unref _again_. There was also a nasty inheritance bug
4520 that meant that the AccessibleEditableText class was corrupt.
4522 * libspi/selection.c:
4523 Provided implementations for some selection API that was broken.
4525 * idl/Application.idl:
4526 Added registerObjectEventListener () method.
4529 Fixed a number of return values that were Bonobo_Unknowns from
4530 bonobo_object_corba_objref(), which I
4531 forgot to dup before returning. Changed instances of
4532 bonobo_object_corba_objref (bonobo_object(o)) to
4533 BONOBO_OBJREF(o), for concision and clarity.
4535 2001-10-13 Louise Miller <louise.miller@sun.com>
4537 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
4538 idl/Event.idl, idl/Registry.idl
4539 Changed these files to include Bonobo_Unknown.idl instead
4542 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
4544 * libspi/component.c libspi/component.h:
4545 Fixed typo. Added assertions for object checks in
4546 AccessibleComponent code.
4548 2001-10-09 Bill Haneman <bill.haneman@sun.com>
4550 * idl/Accessible.idl:
4551 Added 'isEqual (Accessible *object)'
4552 method for Accessible. (Not Yet Implemented).
4555 Changed signature of registerKeystrokeListener() to
4556 take a KeySet and KeyEventSeq so that specific keys and event
4557 types could be requested for monitoring, and added a flag
4558 is_synchronous so that either synchronous or asynchronous
4559 notification could be requested. (However this is not all
4560 implemented yet). This also meant adding two new typedefs,
4561 KeyEventSeq and KeySet.
4564 Added two new relations, RELATION_TOOLTIP_FOR and
4565 RELATION_LEAFNODE_OF.
4568 Added new state, STATE_HAS_TOOLTIP.
4570 * libspi/text.c, editabletext.c:
4571 Added new assertions to all casts of bonobo-objects from
4572 CORBA servants, to prevent Text API calls on non-text objects.
4573 Changed suspect casts of int-pointer types, so that we
4574 always send a valid CORBA_long pointer to the CORBA APIs that use
4575 in/out long parameters. We then have to copy from the CORBA_long
4576 into the regular long or int for return to the C bindings, or
4577 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
4580 * libspi/deviceeventcontroller.c:
4581 Cleaned these sources up.
4583 Changed return type for getCharacterAtOffset to
4584 CORBA_unsigned_long, to allow for 32-bit characters.
4587 2001-10-08 Bill Haneman <bill.haneman@sun.com>
4591 Fixed 'make dist' so that distro compiles...
4592 * libspi/keymasks.h:
4594 * cspi/spi-listener.c:
4595 KeystrokeListenerCB now returns a boolean.
4597 Added KeyEventType struct, and KeyStroke.
4598 Also added createKeystrokeListener(),
4599 KeystrokeListener_addCallback(),
4600 KeystrokeListener_removeCallback(), and added a keymask to
4601 registerKeystrokeListener().
4602 * cspi/spi_accessible.c:
4603 Changed numerous return types for interfaces from
4604 AccessibleComponent to Accessible<InterfaceName>; this was
4605 probably a cut-and-paste error.
4607 Implementations of new KeystrokeListener api (from spi.h,
4610 Changes to key modifier mapping.
4611 Created ControllerEventMask struct.
4612 Made DeviceEventController derive from Bonobo::Unknown.
4614 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
4615 * libspi/deviceeventcontroller.c:
4616 Added a number of new internal (private) methods.
4617 * libspi/editabletext.c:
4618 * libspi/editabletext.h:
4619 Fixed a number of bugs related to the fact that
4620 editabletext inherits from text. Fixed the EditableText struct,
4621 the init() call, and use correct casts when calling Text methods
4622 from an EditableText object. Removed (duplicate) atko from the
4623 EditableText structure, we use the one in the parent Text
4624 structure via the casts mentioned above.
4625 * libspi/keystrokelistener.[ch]:
4626 * libspi/registry.c:
4627 Changes in support of keyboard handling (above).
4629 Keyboard handling, though partly functional, is still not
4630 recommended for at-spi client use as there is considerable
4631 work yet to be done.
4634 Changed some places where pointers to various int types
4635 are cast to be pointers to CORBA_long types and vice-versa:
4636 pointer casting is not safe so we pass pointers of the correct
4637 types and then cast the result before putting it into the target
4640 * libspi/text.h: minor typos corrected.
4642 We now speak not only the name of a Text element, but the
4643 first sentence of its content, when it receives focus.
4644 I also changed the text compression to 75% from 50%.
4645 * util/Accessibility_Util.server.in:
4646 Changed the default magnifier type to be a 3x vertical
4647 splitscreen magnifier (was previously a 2x horizontal one).
4649 2001-10-03 Bill Haneman <bill.haneman@sun.com>
4651 * libspi/keystrokelistener.h:
4652 * libspi/keystrokelistener.c:
4653 Initial functional implementations of KeystrokeListener.
4656 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
4658 Fixed string handling for NULL strings in libspi.
4659 Added spi_freeString to free strings returned by C bindings.
4661 2001-09-30 Bill Haneman <bill.haneman@sun.com>
4663 * libspi/keystrokelistener.h:
4664 * libspi/keystrokelistener.c:
4665 Began (no-op) implementations of KeystrokeListener
4667 * libspi/deviceeventcontroller.c:
4668 * libspi/deviceeventcontroller.h:
4669 Began creating implementations of DeviceEventController,
4670 to handle keystroke and mouse event listening and
4672 * libspi/accessible.c:
4673 Stubbed-in the implementations for
4674 Accessibility_Accessible_getState and
4675 Accessibility_Accessible_getRelationSet.
4676 * libspi/registry.c:
4677 Improved de-registration process and fixed some bugs,
4678 deregistration now works correctly.
4680 Added initialization of applications list (to NULL).
4682 Reduced speech compression from 0.5 to 0.7, for demo.
4683 Changed call to gdk_window_set_decorations()
4684 to gtk_window_set_decorated().
4685 * at-bridge/bridge.c:
4686 Bridge now deregisters when app exits, via
4687 registration of a cleanup function
4688 with the g_atexit() call.
4689 Required making 'app' static, renamed 'this_app'.
4690 Fixed broken use of bonobo_init, passing argv wrongly.
4692 2001-09-27 Bill Haneman <bill.haneman@sun.com>
4696 Created a new directory for
4697 accessibility-related utilities, primarily for
4698 testing and demo purposes, but with possible
4705 Onscreen magnifier utility that
4706 is implemented as a bonobo service.
4708 * util/mag_client.c:
4709 * util/mag_client.h:
4710 Client-side support (simple C bindings)
4711 for Magnification service
4713 * util/mag_control.c:
4714 Client program example for
4715 Magnification service
4717 * util/Accessibility_Magnifier.server.in:
4718 Bonobo-activation file for the
4719 Magnification service.
4722 * util/idl/Magnifier.idl:
4723 IDL defining the bonobo Magnification
4727 Modifications to use the bonobo-activated magnifier
4728 above, in place of trying to connect to an existing
4729 magnifier that uses socket-listening IPC.
4731 If env variable MAGNIFIER is set, a magnifier service
4732 will be started if one does not exist.
4734 2001-09-25 Bill Haneman <bill.haneman@sun.com>
4736 * at-bridge/bridge.c:
4737 applied patch from Marc to build and run
4738 against new glib and gtk+ (seemed like a change
4739 to bonobo_init signature was made ?)
4741 made festival-server support turned off by default.
4742 Added support for a simple magnifier (off by default)
4743 which will be added to a 'util' directory later.
4744 * at-bridge/Makefile.am:
4745 Changed "application.h" header from a 'source'
4746 to a 'dependency' of libat-bridge.
4748 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
4757 Added interface implementation c files to list of
4758 includes so they are included in libcspi.
4761 Changed prototype of AccessibleAction_doAction to return a
4763 Changed prototype of AccessibleTable_getCaption to
4764 return an Accessible.
4765 Changed prototype of AccessibleTable_getSelectedRows
4766 and AccessibleTable_getSelectedColumns to
4767 return a long (returns the number of selected rows
4768 or columns respectively).
4769 Changed name of AccessibleText_refRunAttributes to
4770 AccessibleText_getAttributes.
4771 Changed prototype of AccessibleText_getCharacterExtents to
4772 return a void rather than a boolean.
4773 Added support for a AccessibleCoordType parameter
4774 specifying what type of coordinates are desired.
4775 Added an AccessibleCordType parameter to
4776 AccessibleText_getPointAtOffset.
4778 * cspi/spi_accessible.c:
4779 Added code to return the outstanding interfaces from
4780 Accessible_queryInterface.
4782 * cspi/spi_action.c:
4784 Corrected call to getNActions to call the c binding
4787 * cspi/spi_editabletext.c:
4789 Changed name from setRunAttributes to setAttributes.
4791 * cspi/spi_hyperlink.c:
4793 Changed call to getNAnchors to correctly call the c
4794 binding for an attribute.
4796 * cspi/spi_hypertext.c:
4798 Changed getImageDescription to correctly call the
4799 binding for an attribute.
4801 * cspi/spi_selection.c:
4802 Changed getNSelectedChildren to correctly call the c
4803 binding for the attribute.
4804 Changed refSelectedChild to getSelectedChild.
4808 Changed getCaption to return an Accessible.
4809 Fixed calls which retrieve attributes.
4810 Changed refAt to getAccessibleAt.
4811 Changed getNSelectedRows and getNSelectedColumns to
4815 Changed getCharacterExtents and getPointAtOffset to accept an
4816 AccessibleCoordType.
4818 Changed calls which retrieve attributes.
4819 Changed refRunAttributes to getAttributes.
4824 * idl/Hyperlink.idl:
4825 Changed n_anchors attribute to nAnchors to keep naming
4826 convention consistent.
4829 Made Table inherit from Bonobo::Unknown.
4830 Added nSelectedColumns and nSelectedRows attributes.
4833 Made Value inherit from Bonobo::Unknown.
4835 * libspi/hyperlink.c:
4836 Change for nAnchors attributte name change.
4838 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
4846 Added interface implementation c files to list of
4847 includes so they are included in libcspi.
4850 Changed prototype of AccessibleAction_doAction to return a
4852 Changed prototype of AccessibleTable_getCaption to
4853 return an Accessible.
4854 Changed prototype of AccessibleTable_getSelectedRows
4855 and AccessibleTable_getSelectedColumns to
4856 return a long (returns the number of selected rows
4857 or columns respectively).
4858 Changed name of AccessibleText_refRunAttributes to
4859 AccessibleText_getAttributes.
4860 Changed prototype of AccessibleText_getCharacterExtents to
4861 return a void rather than a boolean.
4862 Added support for a AccessibleCoordType parameter
4863 specifying what type of coordinates are desired.
4864 Added an AccessibleCordType parameter to
4865 AccessibleText_getPointAtOffset.
4867 * cspi/spi_accessible.c:
4868 Added code to return the outstanding interfaces from
4869 Accessible_queryInterface.
4871 * cspi/spi_action.c:
4873 Corrected call to getNActions to call the c binding
4876 * cspi/spi_editabletext.c:
4878 Changed name from setRunAttributes to setAttributes.
4880 * cspi/spi_hyperlink.c:
4882 Changed call to getNAnchors to correctly call the c
4883 binding for an attribute.
4885 * cspi/spi_hypertext.c:
4887 Changed getImageDescription to correctly call the
4888 binding for an attribute.
4890 * cspi/spi_selection.c:
4891 Changed getNSelectedChildren to correctly call the c
4892 binding for the attribute.
4893 Changed refSelectedChild to getSelectedChild.
4897 Changed getCaption to return an Accessible.
4898 Fixed calls which retrieve attributes.
4899 Changed refAt to getAccessibleAt.
4900 Changed getNSelectedRows and getNSelectedColumns to
4904 Changed getCharacterExtents and getPointAtOffset to accept an
4905 AccessibleCoordType.
4907 Changed calls which retrieve attributes.
4908 Changed refRunAttributes to getAttributes.
4913 * idl/Hyperlink.idl:
4914 Changed n_anchors attribute to nAnchors to keep naming
4915 convention consistent.
4918 Made Table inherit from Bonobo::Unknown.
4919 Added nSelectedColumns and nSelectedRows attributes.
4922 Made Value inherit from Bonobo::Unknown.
4924 * libspi/hyperlink.c:
4925 Change for nAnchors attributte name change.
4928 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
4930 implementations-- made server implementations own AtkObject pointers
4931 rather than their respective AtkInterrface pointers to fix
4932 refcounting. AtkHyperlink is still broken.
4934 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4935 * cspi/spi_accessible.c:
4936 Added method Accessible_Role_getName(),
4937 and requisite string array (role_names).
4938 Added conversion string_from_corba_strin() call
4939 to Accessible_getName and _getDescription.
4940 * libspi/accessible.c:
4941 Added implementation for Accessible_getRole()
4943 Added festival support, used if environment variable
4946 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4948 * at-bridge/bridge.c:
4949 Now allocate Accessibility_Event using
4950 Accessibility_Event__alloc() instead of g_new0().
4951 * libspi/accessibleeventlistener.c:
4952 Initialize AccessibleEventListener->callbacks to NULL.
4953 Fixed accessible__event_listener_init() param, changed to
4954 "AccessibleEventListener *" type.
4955 Changed a bonobo_object_release_unref() call to
4956 Accessibility_Accessible_unref().
4957 * libspi/listener.c:
4958 Changed Bonobo_Unknown_unref to (equivalent)
4959 Accessibility_Accessible_unref.
4960 * libspi/registry.c:
4961 Changed bonobo_object_release_unref to
4962 Accessibility_Accessible_unref.
4964 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
4967 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
4968 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
4969 spi-util.c spi-util.h
4970 Implementations for C bindings to remaining accessibility
4973 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
4976 changed return value of Action from void to boolean to
4977 bring in line with ATK.
4980 Changed getText funcions to return "out" start and end offsets.
4981 Changed getAttributes to take and offset and return the start
4982 and end offset of the attribute run.
4983 Changed getOffsetAtPoint and getCharacterExtents to take an
4984 enum describing whether coordinates are window or screen.
4987 libspi/action.c libspi/action.h libspi/editabletext.c
4988 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
4989 libspi/hypertext.c libspi/hypertext.h libspi/image.c
4990 libspi/image.h libspi/selection.c libspi/selection.h
4991 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
4992 libspi/value.c libspi/value.h
4993 Added server implementations for outstanding ATK interfaces
4994 not yet implemented.
4996 2001-09-04 Bill Haneman <bill.haneman@sun.com>
4999 Added (missing) getName() method.
5000 Made nActions an attribute.
5001 * idl/EditableText.idl:
5002 Changed order of params in setAttributes.
5003 * idl/Hyperlink.idl:
5004 Removed getAnchor, added getURI.
5006 Changed attributes to methods, for efficiency
5007 (so that getting extents can be done in one call)
5008 * idl/Selection.idl:
5009 Changed nSelectedChildren to attribute, and re-indented.
5010 * idl/Table.idl: changed nrows, ncolumns, caption, summary
5012 * idl/Text.idl: reformatted to match our coding style.
5013 (temporarily?) removed getRowColumnAtOffset().
5014 Changed text selection API to support multi-select and
5015 non-contiguous selections, as in ATK.
5016 * idl/Value.idl: changed some methods to attributes.
5018 2001-08-24 Mark McLoughlin <mark@skynet.ie>
5020 * libspi/listener.c(impl_notify_event):
5021 BonoboUnkown_unref the source instead
5022 of bonobo_object_release_unref - the ORB
5023 handles the releasing.
5025 * configure.in: require ORBit-2.3.94 for
5028 2001-08-21 Bill Haneman <bill.haneman@sun.com>
5030 Tagged CVS repository 'EA_1_0'.
5031 * README.EARLY_ACCESS:
5032 Alphabetized acknowledgements list, and
5034 Listed some known dependencies of at-spi.
5036 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5038 * docs/at-spi-docs.sgml:
5039 * docs/at-spi-sections.txt:
5040 * docs/at-spi-overrides.txt: (Added zero-length file)
5041 Documentation improvements - gtk-doc should build
5042 docs for all implemented C bindings now.
5045 * cspi/spi.c: (New file)
5046 * cspi/spi_event.c: (New file)
5047 * cspi/spi_registry.c: (New file)
5048 * cspi/spi_accessible.c: (New file)
5049 * cspi/spi_application.c: (New file)
5050 * cspi/spi_component.c: (New file)
5051 Split spi_main.c into six parts, and included them from
5052 "spi.c". This is a bit of a hack, probably temporary,
5053 but required by gtk-doc, apparently.
5055 2001-08-20 Bill Haneman <bill.haneman@sun.com>
5058 * docs/at-spi-docs.sgml:
5059 * docs/at-spi-sections.txt:
5061 Initial checkins/modifications for gtk-doc generation.
5064 Added (missing) interface query methods to Accessible's C binding.
5066 Added GenericInterface type definition.
5068 Added query for AccessibleComponent interface to focus event handler.
5069 Added printout of bounding box for focussed component.
5070 * libspi/component.c:
5071 Added partial implementation for AccessibleComponent to C binding.
5072 * idl/Application.idl:
5073 * libspi/registry.c:
5074 * libspi/listener.c:
5075 * libspi/application.c:
5076 * libspi/application.h:
5077 Changed "ID" attribute type from string to long.
5079 2001-08-19 Bill Haneman <bill.haneman@sun.com>
5083 Made method naming consistent: methods taking object args
5084 start with uppercase, other methods (except those using
5085 acronyms) start with lowercase. Underscores delimit between
5086 object names and method names:
5087 SPI_init() - uppercase since it starts with an acronym.
5088 getDesktopCount () - lowercase start since no object param0.
5089 Accessible_getName() - uppercase object type name, studlyCaps method
5093 Added gtk-doc documentation for all currently implemented
5094 methods in the C bindings API.
5096 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5098 * Makefile.am : changed build order to build test last.
5101 Changed "createEventListener" to "CreateEventListener".
5102 * libspi/accessibleeventlistener.c :
5103 Bugfix for addition of callbacks.
5104 * test/Makefile.am :
5105 * test/simple-at.c :
5106 Added new test that uses the C bindings API.
5108 * libspi/listener.c :
5109 * libspi/registry.c :
5110 * libspi/accessibleeventlistener.c :
5111 * at-bridge/bridge.c :
5112 Renamed member "target" of Accessibility_Event to "source",
5113 which is more descriptive.
5116 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5120 * cspi/Makefile.am :
5121 Added makefile support for at-spi/cspi directory.
5124 * cspi/spi-listener.h : (NEW FILE)
5125 Added support for/use of spi-listener.h.
5127 C bindings now build successfully, with no warnings.
5128 * libspi/accessibleeventlistener.h : (NEW FILE)
5129 * libspi/accessibleeventlistener.c : (NEW FILE)
5130 * libspi/Makefile.am :
5131 Added new object type "AccessibleEventListener"
5132 which inherits from Listener, and allows attachment
5133 of in-process callbacks (so that a client with a listening
5134 object instance can add functionality to the local
5135 implementation, dynamically).
5137 2001-08-18 Bill Haneman <bill.haneman@sun.com>
5139 * libspi/accessible.c:
5140 Add implementation for get_index_in_parent().
5142 Added #include of "spi-roletypes.h", and
5143 added enumerated type AccessibleCoordType.
5144 Added definition for KeystrokeListener (function type).
5147 * cspi/spi-statetypes.h :
5148 * cspi/spi-roletypes.h :
5150 Added these headers, used by spi.h.
5152 Added code (NOTE: not yet built by make).
5154 2001-08-18 Mark McLoughlin <mark@skynet.ie>
5156 * libspi/Makefile.am: generate imodule
5157 at the same time as other idl compiler
5160 2001-08-17 Bill Haneman <bill.haneman@sun.com>
5161 * libspi/registry.c :
5162 * libspi/application.c :
5163 * idl/Application.idl :
5164 Made registration with toolkit an application method,
5165 which is required since each app has its own toolkit static
5166 environment. Thus the bridge must register for
5167 notification of toolkit events from each application in turn.
5168 Toolkit notifications are now successfully registered for, and
5169 sent to the listening at client.
5171 Changed toolkit event string to use hyphens rather than underscores.
5172 * libspi/listener.c :
5173 listner now gives more info in debug mode - it reports the
5174 name of the event received, as well as the name of the source.
5177 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5179 * libspi/registry.c :
5180 added more implementation for toolkit events.
5181 Fixed bug such that toolkit event registrations
5182 (via atk) use the whole event name string, not
5184 Removed a useless call to an ORBit_ method.
5185 * at-bridge/bridge.c :
5186 Removed unused local sbuf[] variable.
5188 We now register for Gtk:GtkWidget:button_press_event
5189 events as well as "focus:" events.
5191 Add some more API from Registry.idl that was missing,
5192 for keystroke listening, keystroke and mouse event
5193 synthesis, and enumeration of accessible desktops.
5195 2001-08-16 Michael Meeks <michael@ximian.com>
5197 * configure.in: use AM_GLIB_GNU_GETTEXT.
5199 * Makefile.am (SUBDIRS): kill intl.
5201 2001-08-15 Michael Meeks <michael@ximian.com>
5203 * registryd/Makefile.am: s/oaf/server/ relocate info file.
5205 * configure.in: upd.
5207 * configure.in: depend on a recent bonobo-activation that
5208 will find our server files ...
5210 2001-08-16 Bill Haneman <bill.haneman@sun.com>
5212 * libspi/accessible.c : accessible_new() :
5213 Now we add the Component interface via bonobo_object_add_interface,
5214 if the contained AtkObject implements AtkComponent.
5215 * libspi/accessible.h : now include "component.h"
5216 * libspi/component.h :
5217 * libspi/component.c : added files - implementation of
5218 bonobo wrapper object for Accessibility/Component
5219 * libspi/listener.c :
5220 Added test code to check for Accessibility/Component:1.0
5221 interface and report whether it is implemented by the
5223 * libspi/registry.c :
5224 Now we check for not only the hash of the whole event
5225 string before relaying the event, we also check the
5226 "minor" event string (without the detail string).
5227 This allows event listeners to be registered against
5228 all events of a certain major+minor type, or just
5229 against a specific major+minor+detail type.
5230 * libspi/accessible.c :
5231 Added implementations for Accessible:get_parent(),
5232 Accessible:getChildCount(), and Accessible:getChildAtIndex().
5233 * libspi/registry.c :
5234 * libspi/listener.c :
5235 Replaced calls to Accessibility_Accessible_ref() and
5236 Accessibility_Accessible_unref() with
5237 calls to bonobo_object_dup_ref() and
5238 bonobo_object_release_unref(), so that the CORBA object
5239 is dup-ed and released when relayed, as well as the bonobo object.
5241 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5243 * libspi/Makefile.am,
5244 registryd/Makefile.am,
5245 at-bridge/Makefile.am.
5246 test/Makefile.am, configure.in:
5247 reverse previous changes.
5249 * /idl/Image.idl: fix typo.
5251 * test/Makefile.am: put DEBUG_FLAGS
5254 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5256 * test/app.c: use argv[0] instead of
5259 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5261 * libspi/Makefile.am,
5262 registryd/Makefile.am,
5263 at-bridge/Makefile.am.
5264 test/Makefile.am, configure.in:
5265 cleanup, replace individual LIBS/CFLAGS with
5266 AT_COMMON_{LIBS|CFLAGS}.
5270 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5272 * configure.in, libspi/Makefile.am:
5273 Change IDL path checking for bonobo-activation
5276 2001-08-15 Bill Haneman <bill.haneman@sun.com>
5278 * registryd/registry.c : separated event listeners to use
5279 3 separate lists (focus, window, toolkit). Began testing
5280 event names against hashes before relaying events.
5281 * test/at.c : now register for events of type "focus:"
5282 * test/app.c : now generate events of type "focus:"
5283 * at-bridge/bridge.c : register with ATK for focus events,
5284 and we now relay those focus events to any "focus:" listeners.
5285 This now works with the bridge as a GTK_MODULE when running test/at.
5286 * libspi/registry.c :
5287 * libspi/listener.c :
5288 now we ref event sources before propagating, and unref on receipt.
5289 * libspi/registry.c :
5290 some changes to internal structs, to support event typestring hashes.
5291 * text/app.c : changed the way the appname is generated.
5292 * cspi : added directory that will hold the C bindings library for
5293 non-CORBA/bonobo-savvy clients.
5294 * cspi/spi.h : header file that contains the function prototypes for the C binding.
5295 * idl/Component.idl : added in parameter to indicate coord system for
5296 geometry-related calls.
5297 * idl/Hyperlink.idl : added readonly n_links attribute
5298 * idl/Image.idl : changed methods to attributes.
5300 2001-08-15 Mark McLoughlin <mark@skynet.ie>
5302 * at-bridge/Makefile.am: link against
5303 ../libspi/libspi.la instead of -lspi.
5305 * at-spi/test/app.c: include
5306 bonobo-activation.h. Use a default appname
5307 if one is not provided.
5309 2001-08-14 Bill Haneman <bill.haneman@sun.com>
5311 * idl/Registry.idl : temporarily changed register_Application
5312 to oneway, to work around issue with initial registration
5314 * idl/Application.idl : changed attribute "id" from readonly
5315 to read-write, since it needs to be assigned by Registry.
5316 * registryd/registryd.c : added call to set application id
5318 * registryd/registry.c : changed de-registration procedure to
5319 use CORBA_Object_hash() to find matching object ref in application
5320 lists and listener lists.
5321 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
5322 began distinguishing between event types (work in progress).
5324 2001-08-13 Bill Haneman <bill.haneman@sun.com>
5327 * libspi/application.c:
5328 Added implementations for get/set id, get_toolkitName,
5330 * registryd/registryd.c :
5334 Converted from use of OAF to bonobo-activation.
5335 * libspi/desktop.h :
5336 * libspi/desktop.c :
5338 Removed references to atksimpleobject, since base atkobject
5339 implementation now provides functionality we need.
5340 * libspi/atksimpleobject.c :
5341 * libspi/atksimpleobject.h :
5346 * at-bridge/Makefile.am
5347 * at-bridge/bridge.c
5350 Added directory "bridge" and contents, and added dependencies
5351 in Makefile.am/configure.in.
5352 Initial checkin of "at-bridge".
5353 This code is a GTK_MODULE which automatically registers
5354 GTK+ apps with the accessibility registry, using an object
5355 reference to the root ATK object.
5357 2001-08-10 Mark McLoughlin <mark@skynet.ie>
5359 * po/Makefile.in.in: Remove. Again. If this
5360 doesn't get autogenerated - you need to update
5363 2001-08-07 Mark McLoughlin <mark@skynet.ie>
5365 * po/Makefile.in.in: Add. Again.
5367 2001-07-31 Bill Haneman <bill.haneman@sun.com>
5369 * libspi/accessible.c : added support for 'description' property.
5370 * libspi/accessible.c
5372 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
5373 (since the two are now equivalent in libbonobo)
5381 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
5382 Bonobo::Unknown as does Accessibility::Accessible.
5383 * idl/StreamableContent.idl : as above, and replaced internal InputStream
5384 interface with Bonobo::Stream, since it was redundant with it.
5385 (The Stream returned by a StreamableContext object is expected to
5386 implement only a subset of Bonobo::Stream)
5388 2001-07-28 Anders Carlsson <andersca@gnome.org>
5390 * libspi/accessible.c (accessible_object_finalize): Change
5391 g_free to g_object_unref since the AtkObject is a GObject.
5393 2001-07-30 Bill Haneman <bill.haneman@sun.com>
5395 * idl/Accessibility.idl: add new IDL files
5398 * idl/Action.idl: Definitions of actionable UI object
5399 * idl/Component.idl: Definitions of UI component geometry, etc.
5400 * idl/Hyperlink.idl: Defs of hyperlink behavior
5401 * idl/Image.idl: Def of accessible image
5402 * idl/Selection.idl: Definition of UI object with selectable children
5403 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
5404 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
5405 * idl/Text.idl: Interface defs for UI elements with complex textual content
5406 * idl/Value.idl: Definition of UI element that is a value controller or display
5408 2001-07-27 Michael Meeks <michael@ximian.com>
5410 * po/Makefile.in.in: remove autogenerated file from CVS.
5412 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
5415 * idl/Registry.idl: include guard.
5417 * idl/Accessibility.idl: Add, and include all the other IDL
5420 * idl/*.idl: remove mass of pragmas etc.
5422 2001-07-26 Michael Meeks <michael@ximian.com>
5424 * registryd/Makefile.am (registryd_SOURCES): remove
5427 2001-07-27 Mark McLoughlin <mark@skynet.ie>
5429 * libspi/.cvsignore, registryd/.cvsignore,
5430 test/.cvsignore: updated.
5432 * po/Makefile.in.in: gettext update.
5434 2001-07-25 Bill Haneman <bill.haneman@sun.com>
5436 * initial CVS checkin
5438 2001-06-29 Michael Meeks <michael@ximian.com>
5440 * configure.in: add AM_CONFIG_HEADER to gen config.h