dc33a177c898bfdedd847d6ffb23037328b8bf96
[platform/core/uifw/at-spi2-atk.git] / ChangeLog
1 2002-12-10  Padraig O'Briain  <padraig.obriain@sun.com>
2
3         * cspi/spi_event.c 
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.
7
8         * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to 
9         avoid implicit declaration of functions.
10         
11 2002-12-09  Padraig O'Briain  <padraig.obriain@sun.com>
12
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.
23
24         * libspi/spi_private.[ch]:
25         (spi_init_any_object): Change second parameter from CORBA_Object to
26         CORBA_Object*.
27         Omit call to CORBA_Object_duplicate(). 
28         Set CORBA_any's _value to CORBA_Object*.        
29
30 2002-12-06  Bill Haneman  <bill.haneman@sun.com>
31
32         * configure.in:
33         Revved to 1.1.6.
34         
35         * cspi/spi.h: 
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.
40
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.
45         
46         * cspi/spi_main.c:
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.
51
52         * cspi/spi_event.c:
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 
62         for queue lookup.
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.
69
70         * cspi/bonobo/cspi-bonobo-listener.c:
71         (cspi_event):
72         Initialize the new private data elements (id, magic, ref_count).
73         
74         * atk-bridge/bridge.c:
75         (spi_atk_bridge_signal_listener):
76         Fixed bug #100530, passing wrong params to emission func.
77
78         * registryd/deviceeventcontroller.c:
79         (spi_dec_button_update_and_emit): 
80         Fixed type in mask bit operations; fix for #99799.
81         
82 2002-12-02  Bill Haneman  <bill.haneman@sun.com>
83
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
88         need to be reverted:
89         
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.  
101
102         * configure.in:
103         Added a check for HAVE_XINPUT.  Not normally used yet.
104
105 2002-11-25  Bill Haneman  <bill.haneman@sun.com>
106
107         Workarounds and fixes for mouse event/XKB interaction.
108         
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.
126         (global_filter_fn): 
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.
137
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.
144         
145 2002-11-24  Bill Haneman  <bill.haneman@sun.com>
146
147         * NEWS: 
148         Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
149         retagged).
150         
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.
156
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
161         intervals).
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
171         the poll state.
172         
173 2002-11-20  Bill Haneman  <bill.haneman@sun.com>
174
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.
181
182         * libspi/spi-roletypes.h:
183         Added SPI_ROLE_APPLICATION.
184
185         * idl/Accessibility_Role.idl:
186         Added ROLE_APPLICATION. 
187
188         * docs/reference/cspi/at-spi-cspi-decl.txt:
189         Added SPI_ROLE_APPLICATION to docs.
190
191 2002-11-20  Padraig O'Briain  <padraig.obriain@sun.com>
192
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().
197
198         * libspi/accessible.c (spi_init_role_lookup_table): Do not write
199         beyond end of role_table. (This fixes bug #98269)
200
201         * libspi/application.c: Add include file spi-private.h for 
202         definition of spi_init_any_nil.
203
204 2002-11-19 Bill Haneman <bill.haneman@sun.com>
205
206         FIX for bug 99024.
207         
208         * libspi/spi-private.h:
209         Added DGB() macro, and extern int _dbg declaration.
210         
211         * registryd/registry.c:
212         (definitions) storage for _dbg.
213         (spi_registry_init):
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().
220
221         * registryd/deviceeventcontroller.c:
222         (_deregister_keygrab, spi_controller_register_device_listener):
223         Changed debug/warning messages to use DBG macro.
224
225         * libspi/listener.c:
226         (impl_notify_event):
227         Changed warning messages to use DBG macro and g_warning().
228
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.
235
236         (atk_bridge_init):
237         Read the state of the AT_SPI_DEBUG environment variable
238         and set a local '_dbg' accordingly.
239         
240 2002-11-19 Bill Haneman <bill.haneman@sun.com>
241
242         FIXES for 98836, 98842, other bugs.
243         
244         * configure.in:
245         Revved to 1.1.4, interface-age=4, binary-age=4.
246
247         * registryd/deviceeventcontroller.c:
248         (statics):
249         Fixed crasher bug in last_mouse_pos initialization.
250
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]
255
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.
260
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.
265
266 2002-11-18  Bill Haneman <bill.haneman@sun.com>
267         
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. 
280
281         * idl/Accessibility_EditableText.idl:
282         * idl/Accessibility_Text.idl:
283         Updated unimplemented slot count to six
284         for ABI freeze. 
285         
286         * idl/Accessibility_Registry.idl:
287         Updated unimplemented slot count to six
288         (also for DeviceEventController), 
289         for ABI freeze. 
290
291         * idl/Accessibility_Table.idl:
292         Updated unimplemented slot count to eight,
293         for ABI freeze. 
294
295         * idl/Accessibility_Event.idl:
296         Added CORBA_any "any_data" member to Event struct.
297
298         * idl/Accessibility_Event.idl:
299         Added CORBA_any "any_data" member to Event struct.
300
301         * atk-bridge/bridge.c:
302         (statics):
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
331         emit_eventv call.
332         
333         * cspi/spi_event.c:
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).
339         
340         * cspi/spi.h:
341         Definitions for AccessibleEvent_getContextString
342         and AccessibleEvent_getContextObject.
343
344         * cspi/spi_listener.h:
345         (InternalEvent): New struct.
346
347         * cspi/spi_event.c:
348         (AccessibleEvent_getContextString):
349         (AccessibleEvent_getContextObject):
350         Implementations of new methods, for obtaining
351         additional context information from some event types.
352
353         * cspi/spi_registry.c:
354         (SPI_registerGlobalEventListener):
355         Added mention of active-descendant-changed event in docs.
356
357         * cspi/cspi-bonobo-listener.c:
358         (cspi_event):
359         Marshal the any into the AccessibleEvent via
360         InternalEvent.
361         
362         * libspi/spi-private.h:
363         #include <orbit/orbit.h>
364         (spi_init_any_nil):
365         (spi_init_any_string):
366         (spi_init_any_object):
367         New convenience function declarations.
368
369         * libspi/util.c:
370         (spi_init_any_nil):
371         (spi_init_any_string):
372         (spi_init_any_object):
373         New convenience function implementations.
374
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.
381
382         * registryd/registry.c:
383         (desktop_add_application):
384         (desktop_remove_application):
385         Add object data to event's any_data before dispatch.
386         (parse_event_type):
387         Fix for error messages from GAIL.
388         
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
393         callback.
394
395 2002-11-19  Darren Kenny  <darren.kenny@sun.com>
396
397         Fixes for bugs 98127 and 97914.
398         * cspi/spi-roletypes.h:
399         Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
400         SPI_ROLE_RULER
401         * cspi/spi-statetypes.h:
402         Added SPI_STATE_MANAGES_DESCENDANTS
403         * cspi/spi.h:
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.
414         * libspi/relation.c:
415         Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
416         EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
417         * libspi/stateset.c:
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.
426
427 2002-11-17  Bill Haneman <bill.haneman@sun.com>
428
429         * configure.in:
430         Revved to 1.1.3, interface-age=3, binary-age=3.
431         Added REBUILD macro.
432
433         * test/Makefile.am:
434         Removed accessx-gui from the tests, since we have a nice
435         keyboard accessibility capplet now :-)
436
437         * test/keysynth-demo.c:
438         (increment_scan): removed do-nothing default: case,
439         silences warning.
440
441         * test/visual-bell.c:
442         (main) : removed do-nothing default: case, 
443         silences warning.
444
445         * cspi/spi_action.c:
446         (AccessibleAction_getKeyBinding_): 
447         Documented keybinding string format.
448         FIX for bug 97916.
449
450         * cspi/spi_text.c:
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.
457
458         * cspi/spi_event.c:
459         Include <cspi/bonobo/cspi-bonobo-listener.h>
460         Fixes build warning.
461         (SPI_freeAccessibleKeySet):
462         (AccessibleKeystrokeListener_addCallback):
463         (AccessibleKeystrokeListener_removeCallback):
464         Modify to use AccessibleDeviceListener API internally,
465         instead of AccessibleKeystrokeListener.
466         
467         * idl/Accessibility_Event.idl:
468         Added two more empty slots to EventListener (for a total of four).
469
470         * idl/Accessibility_Accessible.idl:
471         Added four empty slots to Accessible interface.
472
473 2002-11-15  Bill Haneman <bill.haneman@sun.com>
474
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.     
484         
485         * cspi/spi-impl.h:
486         Added definition for AccessibleDeviceListener.
487
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.
497
498         * cspi/spi.h:
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): 
513         New methods.
514         
515         * cspi/spi_event.c:
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.
527
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.
534
535         * cspi/bonobo/cspi-bonobo-listener.c:
536         (EventHandler):
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".
545
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".
551
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.
556
557         * libspi/keystrokelistener.c:
558         Removed file.
559
560         * libspi/libspi.h:
561         Replaced inclusion of keystrokelistener.h with devicelistener.h.        
562
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
570         consumed.
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):
578         New internal method.
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.  
582         (global_filter_fn):
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 
586         instance by GOK.
587         (spi_controller_register_with_devices):
588         Load the XKB settings when registering, and register for XKB 
589         state notify events. 
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):
600         New internal method.
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.
611         
612         * registryd/deviceeventcontroller.h:
613         Replaced inclusion of keystrokelistener.h with
614         devicelistener.h.
615
616         * test/event-listener-test.c:
617         (report_mouse_event):
618         New method.
619         (main):
620         Added mouse-event device listener.
621
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.  
630
631 2002-11-15  Darren Kenny  <darren.kenny@sun.com>
632
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.
642
643 2002-11-15  Padraig O'Briain  <padraig.obriain@sun.com>
644
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
652
653         This fixes bug #83134.
654
655 2002-10-23  Vitaly Tishkov  <tvv@sparc.spb.su>
656
657         * registryd/deviceeventcontroller.c
658         Fixed compilation error caused by calling gettimeofday() 
659         with 1 parameter
660
661 2002-10-18  Bill Haneman  <bill.haneman@sun.com>
662
663         BUGFIX for #95828.
664
665         * acconfig.h:
666         Added template for HAVE_XKB.
667         
668         * configure.in:
669         Changes to check for XKB, and to set the HAVE_XKB #define if it 
670         is available.
671         
672         * libspi/listener.c:
673         ()impl_notify_event): Make failure to get event source name
674         nonfatal.
675
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) : 
680         New methods.
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
688         above.
689         (spi_device_event_controllr_object_finalize):
690         Free the (new) private data.
691
692         * registryd/deviceeventcontroller.h:
693         Add new gpointer to end of struct data.
694
695 2002-10-16  Bill Haneman  <bill.haneman@sun.com>
696
697         * configure.in:
698         Incremented revision to 1.1.2, SONAME is still '.so', library
699         extensions are ".so.0.0.2".
700
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.
713         
714         * test/event-listener-test.c:
715         (main): Added listener for "keyboard:modifiers" events.
716         
717 2002-10-15  Bill Haneman  <bill.haneman@sun.com>
718
719         * libspi/keymasks.h:
720         Added key mask #defines for mouse buttons; e.g.
721         SPI_KEYMASK_BUTTON1, etc.
722
723         * configure.in:
724         Incremented dependency on ATK to version 1.1.0. (This dependency
725         is probably premature but will soon be real enough).
726
727 2002-10-11  Padraig O'Briain  <padraig.obriain@sun.com>
728
729         * libspi/hyperlink.[ch]
730         (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
731         (get_hyperlink_from_servant): Check object is AtkHyperlink not 
732         AtkObject.
733
734         * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
735         AtkObject.
736
737         Fixes bug #95517.
738
739 2002-10-10  Padraig O'Briain  <padraig.obriain@sun.com>
740
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.
746
747         Fixes bug #93658.
748
749 2002-10-08  Padraig O'Briain  <padraig.obriain@sun.com>
750
751         * cspi/spi-accessible.c: Correct names of roles returned by
752         AccessibleRole_getName(). Fixes bug #95055.
753
754 2002-10-03  Padraig O'Briain  <padraig.obriain@sun.com>
755
756         * cspi/spi_main.c (report_leaked_ref): Report address of leaked
757         object.
758
759         * registryd/registry.c
760         (desktop_remove_application: Write diagnostic message to stderr for
761         consistency.
762
763         (impl_accessibility_registry_deregister_global_event_listener):
764         Correct size of lists array. This addresses bug #94555).
765
766 2002-09-24  Padraig O'Briain  <padraig.obriain@sun.com>
767
768         * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
769         in some role names.
770
771 2002-09-19  Padraig O'Briain  <padraig.obriain@sun.com>
772
773         * registryd/Makefile: Add CLEANFILES so that .server file is removed
774         on make clean
775
776         * registryd/registry.c (impl_registry_notify_event): Remove
777         unnecessary call to parser_event_type().
778
779         * docs/reference/cspi/tmpl/spi_component.sgml:
780         Add reference to SPI_LAYER_WINDOW.
781
782 2002-09-17  Padraig O'Briain  <padraig.obriain@sun.com>
783
784         * registryd/registry.c
785         (desktop_add_application): Remove leak.
786         (desktop_remove_application): Remove leak.
787         (parser_event_type): Remove leak.
788
789 2002-09-16  Padraig O'Briain  <padraig.obriain@sun.com>
790
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.
794         
795 2002-09-13  Bill Haneman <bill.haneman@sun.com>
796
797         * registryd/deviceeventcontroller.c:
798         spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
799
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).
803         
804
805 2002-09-13  Michael Meeks  <michael@ximian.com>
806
807         * Update all the copyrights to include Ximian.
808
809 2002-09-06  Mark McLoughlin  <mark@skynet.ie>
810
811         * cspi/spi.h: add SPI_LAYER_WINDOW.
812
813         * cspi/spi_component.c: (AccessibleComponent_getLayer):
814         add Accessibility_LAYER_WINDOW case.
815
816         * idl/Accessibility_Component.idl: add LAYER_WINDOW.
817
818         * libspi/component.c: (impl_accessibility_component_get_layer):
819         add ATK_LAYER_WINDOW case.
820
821 2002-08-28  Bill Haneman <bill.haneman@sun.com>
822
823         * configure.in: incremented micro version.
824
825         * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
826
827 2002-08-20  Bill Haneman <bill.haneman@sun.com>
828
829         * HACKING: 
830         Clarified and reworded our commit policy.
831
832         * NEWS:
833         Started an API "todo" addition list for 2.2.
834
835         * libspi/text.c:
836         (impl_getSelection):
837         Free char pointer from atk_text_get_selection, which was being leaked.
838
839 2002-08-19  Bill Haneman <bill.haneman@sun.com>
840
841         * AUTHORS: 
842         Small revision to author acknowledgement.
843
844 2002-08-19  Padraig O'Briain  <padraig.obriain@sun.com>
845
846         * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
847         If signal has detail add it to the type of the event.
848         (bug #90838)
849         
850 2002-08-12  Michael Meeks  <michael@ximian.com>
851
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.
855
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
859         cached.
860
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.
867
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.
877
878         * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
879         use cspi_object_borrow / return.
880
881 2002-08-12  Darren Kenny  <darren.kenny@sun.com>
882
883         * cspi/bonobo/cspi-bonobo-listener.c: 
884         (cspi_event):
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.
890
891 2002-08-06  Darren Kenny  <darren.kenny@sun.com>
892
893         * test/event-listener-test.c: 
894         Added command-line options to disable mouse events (m) and
895         show usage (h). 
896
897 2002-07-31  Padraig O'Briain  <padraig.obriain@sun.com>
898
899         * configure.in: Update required versions of ATK, GTK+ and GAIL
900
901         * cspi-1.0.pc.in: Add dependency for X include files
902
903         * cspi/Makefile.am:
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)
907
908 2002-06-25  Bill Haneman  <bill.haneman@sun.com>
909
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.
928         (global_filter_fn):
929         Added code to filter mouse button events, and reordered.
930         
931         * test/event-listener-test.c:
932         (main):
933         Added registration for mouse events of type "mouse:button".
934
935 2002-06-25  Bill Haneman  <bill.haneman@sun.com>
936
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
940         has moved.
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.
950
951         * registryd/registry.c:
952         (spi_registry_init):
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.
961
962         * test/event-listener-test.c:
963         (main):
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.)
968
969         * cspi/spi_registry.c:
970         DOCS: Documented the above mouse event typestrings.
971         
972 2002-06-21  Bill Haneman  <bill.haneman@sun.com>
973
974         Happy Summer Solstice...
975
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.
984         As part of this fix:
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
995         changes.
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.
1006         Used in refactor.
1007         (spi_key_listener_clone_free): new method.
1008         (spi_key_listener_free): 
1009         refactored to call spi_key_listener_data_free.
1010         
1011 2002-06-20  Bill Haneman  <bill.haneman@sun.com>
1012
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.
1022         
1023         * cspi/spi_main.c: [fix for bug 85980]
1024         (cspi_object_ref):
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.
1028         (cspi_registry):
1029         Ping the registry before return, and restart if necessary.
1030
1031         * cspi/bonobo/cspi-bonobo.c:
1032         (cspi_ping):
1033         New internal method.
1034         (cspi_dup_ref):
1035         Fixed this method to return an object reference, as it should have
1036         all along.
1037
1038         * cspi/cspi-lowlevel.h:
1039         Added internal definition for cspi_ping() and fixed 
1040         return type of cspi_dup_ref().
1041         
1042
1043 2002-06-19  Bill Haneman  <bill.haneman@sun.com>
1044
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).
1050         (atk_bridge_init):
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.
1062         
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).
1067
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'.
1072         
1073 2002-06-18  Bill Haneman  <bill.haneman@sun.com>
1074
1075         Fixes for bugs 84900, 84908, 84897, 84898.
1076
1077         * NEWS: updated.
1078         
1079         * configure.in:
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.)
1083         
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
1090         the listener side.
1091
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.
1095
1096         * atk-bridge/bridge.c:
1097         (spi_atk_bridge_focus_tracker):
1098         Do a local unref() on the event source after emission.
1099         
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
1109         unref() as well.
1110         (impl_registry_notify_event):
1111         No longer call remote unref() on the event source after dispatch.
1112
1113         * libspi/eventlistener.c:
1114         (impl_accessible_event_notify_event):
1115         Removed remote unref ()
1116         
1117         * cspi/bonobo/cspi-bonobo-listener.c:
1118         (cspi_event):
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.
1125         
1126         * cspi/spi_main.c:
1127         (cspi_object_new):
1128         New internal API for creating a new cspi object, without adding it
1129         to the object cache.
1130         (cspi_object_add):
1131         Now uses cspi_object_new() to create the cspi object instance.
1132         (cspi_object_ref):
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.
1139
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.
1145         (main):
1146         Added a new listener, 'test listener', to check timing of event
1147         receipt as noted above.
1148         (report_event):
1149         Added some timing output here also, reports elapsed time every 100
1150         events.
1151
1152         * test/stress-test.c:
1153         Emit events of type "object:test", for use with "event-listener-test".
1154
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.
1164
1165 2002-06-13  Bill Haneman  <bill.haneman@sun.com>
1166
1167         * registryd/deviceeventcontroller.c:
1168         (spi_controller_update_key_grabs):
1169         Fix for #84735, subsequent keygrab listeners not informed of
1170         registration failure.
1171
1172         * libspi/base.c:
1173         (spi_base_construct):
1174         Add an assertion on construct, to make sure the GObject passed in
1175         is really a GObject.
1176         (spi_base_init):
1177         Explicitly initialize object->gobj pointer to NULL;
1178
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.
1183         (cspi_object_add):
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).
1188
1189         * atk-bridge/bridge.c:
1190         (spi_atk_bridge_idle_init):
1191         Removed this method, we don't need to initialize in an idle
1192         handler anymore;
1193         (atk_bridge_init):
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
1199         shutdown is called.
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).
1203         
1204 2002-06-12  Bill Haneman  <bill.haneman@sun.com>
1205
1206         (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1207         
1208         * configure.in:
1209         Revved to 1.0.1
1210
1211         * test/stress-test.c:
1212         Added file.
1213
1214         (may have been an incomplete commit yesterday?)
1215
1216 2002-06-12  Bill Haneman  <bill.haneman@sun.com>
1217
1218         * test/Makefile.am:
1219         Added target for new stress-test.
1220         
1221         * test/stress-test.c:
1222         New test, sends 1000 focus notifies in quick succession.
1223
1224         * test/key-listener-test.c:
1225         Now we report whether a keylistener registration
1226         request succeeded or failed.
1227
1228         * test/event-listener-test.c:
1229         Uncommented some listeners which are now implemented.
1230
1231
1232 2002-06-06  Bill Haneman  <bill.haneman@sun.com>
1233
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.
1241
1242 2002-06-03  Bill Haneman  <bill.haneman@sun.com>
1243
1244         * test/test-simple.c:
1245         (key_listener_cb):
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.
1252         (key_listener_cb):
1253         Added code to set globals 'key_press_received' and
1254         'key_release_received'.
1255
1256         * TODO:
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.
1260         
1261 2002-06-02  Bill Haneman  <bill.haneman@sun.com>
1262
1263         AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1264         API frozen.
1265         
1266         * configure.in: Revved to 1.0.0.
1267
1268         * idl/Accessibility_Registry.idl:
1269         (registerKeystrokeListener):
1270         Added boolean return value.
1271         
1272         * registryd/registry.c:
1273         (notify_listeners_cb): Minor fix to debug output.
1274
1275         * registryd/Accessibility_Registry.server.in.in:
1276         Revved version number in OAFIID to 1.0.
1277
1278         * registryd/registryd.c:
1279         (main):
1280         Use new OAFIID version.
1281
1282         * cspi/bonobo/cspi-bonobo.c:
1283         (cspi_init):
1284         Use new OAFIID version.
1285
1286         * test/at.c:
1287         (main):
1288         * test/app.c:
1289         (main):
1290         * atk-bridge/bridge.c:
1291         (atk_bridge_init):
1292         Use new OAFIID version.
1293
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,
1304         Page_Down, Escape.
1305         [TODO: some still not implemented]. 
1306         
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.
1325         
1326         
1327         
1328         
1329
1330 2002-05-31  Laszlo Peter  <laca@sun.com>
1331
1332         * configure.in: add the Xtst libdir to the runpath on Solaris,
1333         since it's not in the default library search path.
1334
1335 2002-05-29  jacob berkman  <jacob@ximian.com>
1336
1337         * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
1338
1339 2002-05-29  Bill Haneman  <bill.haneman@sun.com>
1340
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.
1349         
1350         * configure.in: Fixed bug in AC_OUTPUT that was
1351         causing path substitution in Accessibility_Registry.server
1352         to fail.
1353
1354 2002-05-23  Bill Haneman  <bill.haneman@sun.com>
1355
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.
1366
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.
1373
1374         * configure.in:
1375         Replaceded AC_OUTPUT target
1376         registryd/Accessibility_Registry.server with 
1377         registryd/Accessibility_Registry.server.in.
1378
1379         * registryd/Accessibility_Registry.server.in:
1380         Removed (this is now a Makefile target).
1381
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.
1385
1386         * registry/Makefile.am: 
1387         Now install at-spi-registryd into $(libexecdir), and build .server
1388         file with path (see above).
1389         
1390 2002-05-22  Bill Haneman  <bill.haneman@sun.com>
1391
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.
1396
1397         * TODO: Added a section for "2.2 Proposed API Additions".
1398
1399 2002-05-21  Bill Haneman  <bill.haneman@sun.com>
1400
1401         * test/screen-review-test.c:
1402         * test/Makefile.am:
1403         Added a screen review benchmarking and test program to test
1404         directory.
1405
1406         * cspi/spi_accessible.c:
1407         * cspi/spi_main.c:
1408         Made some of the debug strings passed to cspi_check_ev a
1409         little more specific.
1410
1411 2002-05-21  Padraig O'Briain  <padraig.obriain@sun.com>
1412
1413         * test/screen-review-test.c: Fix crashes in debug statements
1414
1415 2002-05-20  Bill Haneman  <bill.haneman@sun.com>
1416
1417         * test/screen-review-test.c: Added this file.
1418
1419 2002-05-13  Marc Mulcahy <marc.mulcahy@sun.com>
1420
1421         * atk-bridge/bridge.c: changed "object:state-change" to
1422         "object:state-changed" to match docs.
1423
1424 2002-05-13  Marc Mulcahy <marc.mulcahy@sun.com>
1425
1426         * atk-bridge/bridge.c: Hooked up state-change event details.
1427
1428 2002-05-11  Bill Haneman <bill.haneman@sun.com>
1429
1430         * registryd/registry.c:
1431         Fixed quarking bug in event string parsing; now events with
1432         detail parameters get matched correctly to listeners.
1433         [Bugzilla 80608].
1434
1435         * util/idl/Magnifier.idl: remove.
1436         * util/idl: remove
1437         * util/*.[ch]: Remove.
1438         Magnification utilities and IDL are now in module gnome-mag.
1439
1440 2002-05-10  Bill Haneman <bill.haneman@sun.com>
1441
1442         * registryd/deviceeventcontroller.c:
1443         Fixed bug in grab key conversion which was causing keycode grabs
1444         to be converted to AnyKey grabs.
1445
1446         * NEWS:
1447         updated NEWS file to reflect recent spin-off of gnome-mag.
1448
1449 2002-05-09  Marc Mulcahy <marc.mulcahy@sun.com>
1450
1451         * cspi/spi_accessible.c: Added exception checks.  Fixed completely
1452         busted AccessibleStateSet_compare.  Removed redundant casts.
1453         
1454         * cspi/spi-action.c: Removed redundant casts.
1455
1456         * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
1457
1458         * cspi/spi_component.c: Fixed typos and casting error.
1459
1460         * cspi/spi_editabletext.c: Removed redundant casts.
1461
1462         * cspi/spi_hyperlink.c: Fixed casting and exception checking.
1463
1464         * cspi/spi_hypertext.c: Eliminated redundant casts.
1465
1466         * cspi/spi_image.c: Eliminated redundant casts.
1467
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.
1476                         
1477 2002-05-09  Bill Haneman <bill.haneman@sun.com>
1478
1479         
1480         * cspi/spi_registry.c:
1481         Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
1482         which was uncovered by the recent key changes.
1483
1484 2002-05-09  Bill Haneman <bill.haneman@sun.com>
1485
1486         * test/event-listener-test.c:
1487         * test/Makefile.am:
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.
1494         
1495 2002-05-08  Bill Haneman <bill.haneman@sun.com>
1496
1497         * test/Makefile.am:
1498         Removed unnecessary dependency on libutil.
1499
1500         * configure.in:
1501         Revved micro version: 0.13.1
1502
1503 2002-05-08  Bill Haneman <bill.haneman@sun.com>
1504
1505         * configure.in: 
1506         Removed util/Makefile from targets.
1507
1508         * Makefile.am:
1509         Removed util subdir from SUBDIRS (temporarily, 
1510         pending removal of magnifier-only code
1511         from UTIL).
1512
1513         * test/simple-at.c:
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.
1519         
1520         NOTE: Split magnifier binary, IDL, and magnification
1521         activation code from at-spi into module gnome-mag.
1522
1523 2002-05-03  Marc Mulcahy <marc.mulcahy@sun.com>
1524  
1525         * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
1526         cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
1527  
1528 2002-05-03  Bill Haneman <bill.haneman@sun.com>
1529
1530         * configure.in:
1531         Revved to version 0.13.0
1532         
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.
1537
1538         * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
1539         Changed AccessibleKeySet to Accessibility_KeySet marshalling code
1540         to use new definition (see above).  
1541
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.
1548         
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).        
1556
1557         * test/simple-at.c:
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.
1561         
1562 2002-05-08  Padraig O'Briain  <padraig.obriain@sun.com>
1563
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
1569
1570 2002-05-02  Marc Mulcahy <marc.mulcahy@sun.com>
1571
1572         * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
1573         Fixed handling for NULL return value from ATK.
1574
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.
1579         
1580         * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
1581         Fixed off by one bug.
1582         
1583         *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
1584         function not present in idl)
1585         
1586 2002-05-02  jacob berkman  <jacob@ximian.com>
1587
1588         * atk-bridge/Makefile.am: make atk-bridge a real module
1589
1590 2002-04-26  Radek Doulik  <rodo@ximian.com>
1591
1592         * libspi/stateset.c (spi_init_state_type_tables): fix size of
1593         atk_state_types table
1594
1595 2002-04-22  jacob berkman  <jacob@ximian.com>
1596
1597         * util/Makefile.am: 
1598         * libspi/Makefile.am: add deps on the built files to help
1599         automake, and don't version the ORBit typelib
1600
1601 2002-04-19  Padraig O'Briain  <padraig.obriain@sun.com>
1602
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
1619
1620 2002-04-18  Marc Mulcahy  <marc.mulcahy@sun.com>
1621
1622         * atk-bridge/bridge.c: Added window event support.
1623
1624 2002-04-18  Michael Meeks  <michael@ximian.com>
1625
1626         * libspi/relation.c (impl_getNTargets): impl.
1627         (impl_getTarget): impl.
1628
1629         * libspi/Makefile.am: fix stateset install.
1630
1631 2002-04-17  Bill Haneman <bill.haneman@sun.com>
1632
1633         * NEWS:
1634         Started putting useful info in this file.
1635         
1636 2002-04-17  Marc Mulcahy <marc.mulcahy@sun.com>
1637  
1638         * atk-bridge/bridge.c: 
1639         Propagate state-changed notifications to ATs
1640  
1641         * cspi/spi_registry.c: update docs to reflect actual behavior of
1642         state-change events.
1643
1644 2002-04-17  Bill Haneman <bill.haneman@sun.com>
1645
1646         * configure.in:
1647         Incremented version to 0.12.1
1648         
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 :-(
1653
1654
1655 2002-04-16  Bill Haneman <bill.haneman@sun.com>
1656
1657         * configure.in:
1658         Revved version to 0.12 due to API change (see below).
1659
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.
1664
1665         * cspi/spi.h:
1666         * cspi/spi_streamablecontent.c:
1667         Added missing seek_type parameter to
1668         (so far unused) method, 
1669         AccessibleStreamableContent_seek().
1670         [ RT approval JodyG. ]
1671
1672         * cspi/spi_event.c:
1673         Fixed docs for SPI_createAccessibleKeystrokeListener.
1674
1675         * cspi/spi_registry.c:
1676         Fixed docs for SPI_KEYSET_ALL_KEYS.
1677         
1678         * docs/reference/cspi/at-spi-cspi-sections.txt:
1679         Added a number of missing APIs to SECTIONS.
1680         
1681 2002-04-16  Bill Haneman <bill.haneman@sun.com>
1682
1683         * registryd/Makefile.am:
1684         * cspi/Makefile.am:
1685         * cspi/bonobo/Makefile.am:
1686         Add $(X_LIBS) to makefiles.
1687
1688 2002-04-15  Bill Haneman <bill.haneman@sun.com>
1689
1690         * configure.in:
1691         Revved version to 0.11.
1692
1693         * libspi/component.c:
1694         Added implementation for grabFocus.
1695
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.
1700         
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.
1705         
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
1713         success or failure.
1714
1715         * cspi/spi_editabletext.c:
1716         Made these methods return booleans.
1717
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.
1723         
1724 2002-04-14  Bill Haneman <bill.haneman@sun.com>
1725
1726         * idl/Accessibility_Table.idl: Added missing methods,
1727         Accessibility_Table_addRowSelection,
1728         Accessibility_Table_addColumnSelection,
1729         Accessibility_Table_removeRowSelection,
1730         Accessibility_Table_removeColumnSelection.
1731
1732         * cspi/spi_table.c:
1733         Added C wrappers for above IDL:
1734         AccessibleTable_addRowSelection,
1735         AccessibleTable_addColumnSelection,
1736         AccessibleTable_removeRowSelection,
1737         AccessibleTable_removeColumnSelection.
1738         
1739         * libspi/table.c:
1740         Added server-side implementation code for IDL above, connecting
1741         to pre-existing ATK api.
1742         
1743 2002-04-13  Marc Mulcahy <marc.mulcahy@sun.com>
1744
1745         * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
1746
1747         * libspi/accessible.c: Added implementation fo
1748         Accessibility_Accessible_get_state.
1749         
1750         * libspi/libspi.h: Added stateset.h to the list of includes.
1751
1752         * libspi/stateset.c: Fixed broken implementation.
1753
1754 2002-04-13  Bill Haneman <bill.haneman@sun.com>
1755
1756         * util/magnifier.c:
1757         Added implementation code for Accessibility_Magnifier_exit ().
1758
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.
1763
1764         * test/key-listener-test.c:
1765         * test/Makefile.am:
1766         Added a new test, for our key listener API.
1767
1768 2002-04-11  Bill Haneman <bill.haneman@sun.com>
1769
1770         * test/app.c, test/keysynth-demo.c:
1771         * util/magnifier.c:
1772         Replace use of snprintf with g_snprintf.
1773         (fix for bugzilla 78249)
1774
1775 2002-03-27  Michael Meeks  <michael@ximian.com>
1776
1777         * Version 0.10.0
1778
1779         * util/Makefile.am (INCLUDES): fix.
1780         (DONT_DIST_SOURCE): don't distribute the
1781         generated files.
1782
1783         * libspi/Makefile.am (dist-hook): ditto.
1784
1785 2002-03-27  Padraig O'Briain  <padraig.obriain@sun.com>
1786
1787         * libspi/hypertext.c:
1788         Fix warnings when yelp is used with atk-bridge
1789
1790 2002-03-21  Michael Meeks  <michael@ximian.com>
1791
1792         * libspi/application.c (spi_application_new):
1793         use spi_accessible_construct so we use the AtkObject
1794         cache correctly.
1795
1796 2002-03-19  Michael Meeks  <michael@ximian.com>
1797
1798         * registryd/registry.c (desktop_remove_application),
1799         (desktop_add_application): clean coding style.
1800
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.
1806
1807 2002-03-16 Bill Haneman <bill.haneman@sun.com>
1808
1809         * test/simple-at.c:
1810         Added a #define-guarded tree-traversal step
1811         when enumerating the apps (diagnostic tool).
1812
1813 2002-03-15 Bill Haneman <bill.haneman@sun.com>
1814
1815         * idl/Accessibility_Role.idl:
1816         Added ROLE_DRAWING_AREA which seemed to be missing from the
1817         previous commit.
1818
1819 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1820
1821         * cspi/spi-roletypes.h cspi/spi_accessible.c
1822         idl/Accessibility_Role.idl libspi/accessible.c: synched up role
1823         types with ATK.
1824
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.
1830         
1831         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
1832
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
1836         down.
1837
1838         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
1839
1840         * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
1841
1842         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
1843
1844         * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
1845
1846         * cspi/spi_accessible.c: Implemented c bindings for stateset support
1847
1848         * cspi/state-types.h: synched with IDL and ATK
1849
1850         2002-03-13  Bill Haneman <bill.haneman@sun.com>
1851
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" (!)
1856
1857         * registryd/Makefile.am:
1858         * registryd/Accessibility_Register.server.in:
1859         Changed name of executable, "registryd",
1860         to something more informative:
1861         "at-spi-registryd".
1862
1863 2002-03-13  Michael Meeks  <michael@ximian.com>
1864
1865         * atk-bridge/bridge.c (atk_bridge_init): don't register
1866         if we're in a bonobo-component, rather than a bonobo app.
1867
1868 2002-03-13  Michael Meeks  <michael@ximian.com>
1869
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.)
1874
1875 2002-03-11  Bill Haneman  <bill.haneman@sun.com>
1876
1877         * HACKING:
1878         New file.  Explicitly allow "build sheriff" putbacks provided
1879         they are tested on Solaris.
1880         
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")
1884
1885         * configure.in:
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.
1889         
1890         * configure.in:
1891         Added X_LIBS to AC_SUBST, for applications
1892         that call Xlib API directly.
1893         
1894
1895 2002-03-07  Bill Haneman  <bill.haneman@sun.com>
1896
1897         * configure.in:
1898         Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
1899
1900         * util/Makefile.am:
1901         Fix regression caused by hard-coding major
1902         version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
1903         (see above change).
1904         
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).
1908         
1909 2002-03-04  Michael Meeks  <michael@ximian.com>
1910
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 !?
1914
1915         * cspi/spi_accessible.c
1916         (Accessible_getRelationSet): fix crasher bug
1917         overwriting the end of the array.
1918
1919         * test/test-simple.c (validate_accessible): free,
1920         not g_free returned relation set.
1921
1922 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
1923
1924         * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
1925         implemented stateset support
1926
1927         * idl/Accessibility_State.idl: Made necessary changes to
1928         the IDL to support state sets.
1929
1930 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1931
1932         * registryd/deviceeventcontroller.c:
1933         Added implementation for generateMouseEvent.
1934
1935         * cspi/spi_registry.c:
1936         Connected new implementation for generateMouseEvent
1937         to the C bindings.
1938         
1939 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1940
1941         * configure.in: 0.8
1942         Incremented revision (but no change in public API
1943         outside of 'utils', which are not installed public yet.)
1944
1945         * libspi/component.c:
1946         Changed to use atk_component API for layers and
1947         mdi_zorder, instead of deprecated atk_object API.
1948         
1949         Magnification Utility Enhancements:
1950         
1951         * util/magnifier.c:
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.)
1959
1960         * util/mag_image.c:
1961         Now we raise the magnifier window each time it's refreshed;
1962         this will help keep it on top.
1963         
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.
1968
1969         * util/mag_image.h:
1970         Moved ZoomRegionData from magnifier.c to this file.
1971         
1972         * util/mag_control.c: 
1973         Added some code to exercise new IDL implementations.
1974         
1975 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
1976
1977         * libspi/text.c: Provide implementation for getAttributes.
1978
1979 2002-02-04  Bill Haneman <bill.haneman@sun.com>
1980         
1981         * configure.in:
1982         Incremented revision.
1983
1984         * test/test-simple.c:
1985         Replaced use of deprecated g_main_iteration with 
1986         g_main_context_iteration.
1987         
1988 2002-01-28  Padraig O'Briain <padraig.obriain@sun.com>
1989
1990         * configure.in:
1991         Incremented revision for desktop alpha 2.
1992
1993 2002-01-28  Mark McLoughlin  <mark@skynet.ie>
1994
1995         * libspi/remoteobject.[ch]: make RemoteObject and interface rather
1996         than an atk object.
1997
1998         * test/simple-at.c: include netinet/in.h.
1999
2000 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
2001
2002         * cspi/spi_accessible.c: (Accessible_getRelationSet):
2003         use NULL, not CORBA_OBJECT_NIL.
2004
2005         * libspi/accessible.c:
2006         (impl_accessibility_accessible_get_relation_set):
2007         allocate the sequence correctly.
2008
2009         * libspi/remoteobject.h: kill spi_remote_object_new.
2010
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 :/
2014
2015 2002-01-18  Michael Meeks  <michael@ximian.com>
2016
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.
2021
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/
2032
2033 2002-01-17  Michael Meeks  <michael@ximian.com>
2034
2035         * registryd/deviceeventcontroller.c
2036         (_deregister_keygrab): don't blow out the later
2037         assertion.
2038
2039         * test/test-simple.c (test_keylisteners): do a
2040         more intelligent validation.
2041
2042 2002-01-14  Michael Meeks  <michael@ximian.com>
2043
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.
2052
2053 2002-01-18  Bill Haneman <bill.haneman@sun.com>
2054
2055         * test/simple-at.c:
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.
2060         
2061 2002-01-16  Bill Haneman <bill.haneman@sun.com>
2062
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
2071         keystroke listener.  
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.
2075
2076         * registryd/registry.c:
2077         * registryd/deviceeventcontroller.c:
2078         * libspi/spi-private.h:
2079         * libspi/util.c:
2080         Changed spelling of "re-enterant" to "re-entrant" globally.
2081
2082 2002-01-16  Bill Haneman <bill.haneman@sun.com>
2083
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 '!'.
2090
2091 2002-01-15  Bill Haneman <bill.haneman@sun.com>
2092
2093         * test/simple-at.c:
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.
2097         
2098 2002-01-11  Bill Haneman <bill.haneman@sun.com>
2099
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 
2104         Solaris using CDE.
2105         Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate 
2106         mouse handling code as yet).
2107         
2108 2002-01-11  Bill Haneman <bill.haneman@sun.com>
2109
2110         * configure.in:
2111         Incremented revision for desktop alpha release.
2112
2113         * README:
2114         Fixed a couple of the more glaring errors (still not 
2115         very up-to-date).
2116
2117 2002-01-11  Michael Meeks  <michael@ximian.com>
2118
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
2125         sensibly.
2126         (_register_keygrab): ensure we're not pending a remove.
2127         (spi_grab_mask_free): impl.
2128         (spi_controller_register_global_keygrabs): split out
2129         common code into:
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.
2135
2136         * test/test-simple.c (key_listener_cb): remove debug.
2137
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 !
2142
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
2147
2148 2002-01-08  Michael Meeks  <michael@ximian.com>
2149
2150         * registryd/deviceeventcontroller.c
2151         (spi_controller_register_with_devices): use gdk calls to
2152         setup a filter.
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.
2157
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
2166
2167         * registryd/registry.c
2168         (_device_event_controller_hook): kill.
2169         (spi_registry_init): upd.
2170
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.
2177
2178         * registryd/registry-main.c (main): re-direct
2179         timeout to remove strange vtable mess.
2180
2181         * registryd/deviceeventcontroller.c
2182         (remove_listener_cb): impl.
2183         (spi_controller_deregister_device_listener):
2184         fix re-enterancy hazard.
2185
2186 2002-01-07  Michael Meeks  <michael@ximian.com>
2187
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.
2196
2197         * registryd/deviceeventcontroller.h:
2198         * registryd/registry.h: make mutualy referential with
2199         typesafe forward references instead of (!) void pointer
2200         hacks.
2201
2202 2002-01-11  Michael Meeks  <michael@ximian.com>
2203
2204         * cspi/spi_accessible.c (role_names): add a role name
2205         to sync this array with the enum; and make the regression
2206         tests pass, sigh.
2207
2208 2002-01-10  Michael Meeks  <michael@ximian.com>
2209
2210         * cspi/spi_registry.c (SPI_generateKeyboardEvent): 
2211         allow expansion of enumeration & kill warning.
2212
2213         * test/test-simple.c (key_listener_cb): impl.
2214         (test_keylisteners): impl.
2215
2216         * cspi/spi-listener.h: make listener signatures const
2217         on the provided (const) events.
2218
2219         * test/keysynth-demo.c: upd. to const events.
2220
2221         * test/simple-at.c: ditto.
2222
2223 2002-01-11  Bill Haneman <bill.haneman@sun.com>
2224
2225         * configure.in:
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" 
2229  
2230         * test/demo.csh:
2231         Checked in a demo script, which requires editing before use!
2232         Proceed with caution.
2233         
2234         * libspi/value.h:
2235         Fixed typo in header which was redefining SPI_ACTION_CLASS.
2236
2237         * cspi/spi_accessible.c:
2238         Add a couple of missing enum initializations, and fix some enum
2239         comments.
2240
2241         * cspi/spi_registry.c:
2242         Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2243         
2244         * docs/reference/cspi/at-spi-cspi-sections.txt:
2245         Remove/fix a couple of broken document references.
2246
2247         * test/simple-at.c:
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.
2251
2252 2002-01-10  Bill Haneman <bill.haneman@sun.com>
2253
2254         * configure.in:
2255         Update version number to 0.4 for Beta2.
2256         
2257         * libspi/accessible.c, libspi/accessible.h:
2258         Expose spi_accessible_construct, to enable libgail-gnome
2259         construction from spi_accessible subtype.
2260
2261         * utils/magnifier.c:
2262         Workaround for bug in some non-gnome-compliant window managers
2263         which made magnifier resize improperly.
2264
2265 2002-01-09  Bill Haneman <bill.haneman@sun.com>
2266
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.
2270         
2271 2002-01-08  Michael Meeks  <michael@ximian.com>
2272
2273         * registryd/registry.c (parse_event_type): remove strndup.
2274
2275         * libspi/Makefile.am (libspi_la_SOURCES): remove
2276         sources already included in the headers section.
2277
2278         * libspi/util.c: add.
2279
2280         * libspi/spi-private.h: add.
2281
2282         * registryd/registry.c: update to moved list iterators.
2283
2284 2002-01-05  Michael Meeks  <michael@ximian.com>
2285
2286         * test/simple-at.c (main): upd. auto-module set to atk-bridge
2287
2288         * test/test-simple.c (main): ditto.
2289
2290 2002-01-04  Michael Meeks  <michael@ximian.com>
2291
2292         * libspi/accessible.c (spi_accessible_new): remove 2nd,
2293         redundant construct.
2294
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
2302         hazard.
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.
2313
2314         * cspi/spi_registry.c (SPI_freeDesktopList): impl.
2315         (SPI_getDesktopList): impl.
2316
2317         * test/test-simple.c (test_desktop): test the methods.
2318
2319 2002-01-03  Michael Meeks  <michael@ximian.com>
2320
2321         * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
2322         keystrings since we free them
2323         (SPI_freeAccessibleKeySet): in here.
2324
2325         * libspi/accessible.c (spi_accessible_new): kill warning,
2326         wonder what is going on with the constructor here.
2327
2328 2002-03-01  Bill Haneman <bill.haneman@sun.com>
2329
2330         * libspi/accessible.c (spi_accessible_new ()) :
2331         Added check to see if AtkObject is an SpiRemoteObject before
2332         creating an SpiAccessible.
2333         
2334 2002-05-01  Bill Haneman <bill.haneman@sun.com>
2335
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).
2339
2340         * test/simple-at.c:
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".
2344
2345         Removed a pointlessly-chatty keylistener for unshifted keys
2346         (shifted keys are still reported).
2347         
2348 2002-02-01  Bill Haneman <bill.haneman@sun.com>
2349
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).
2355         
2356 2002-01-02 Marc Mulcahy  <marc.mulcahy@sun.com>
2357
2358         * cspi/spi.h: synched relation types with ATK
2359
2360         * cspi/spi_accessible.c: Added implementations of
2361         AcccessibleRelation_* methods
2362
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.
2366         
2367         * libspi/relation.c: Provided implementations for
2368         AccessibleRelation methods.
2369
2370 2002-01-01  Bill Haneman <bill.haneman@sun.com>
2371
2372         API tweaks for today's API 'freeze'.
2373
2374         * idl/*:
2375         Added placeholder functions to allow future compatible expansion
2376         of the IDL interfaces.
2377
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.
2384
2385         * cspi/spi_accessible.c:
2386         * cspi/spi.h:
2387         * cspi/spi_streamablecontent.c:
2388         Added references to AccessibleStreamableContent interface, and
2389         definition and implementation of AccessibleStreamableContent 
2390         C bindings.
2391
2392         * cspi/spi_registry.c:
2393         * cspi/spi.h:
2394         Changed generateKeyEvent API to generateKeyboardEvent,
2395         taking a new (optional) keystring parameter to support complex
2396         text input.
2397         
2398         * at-bridge/*:
2399         * atk-bridge/*:
2400         Renamed directory (to better reflect its actual purpose, bridging
2401         from at-spi to ATK).  The .so module is also now named
2402         libatk-bridge.so.
2403
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
2409         Accessibility_Text.
2410
2411         * cspi/spi_registry.c:
2412         Added list of legal event type names for 'window' events, which
2413         completes the registry event API.
2414
2415 2001-12-22  Marc Mulcahy  <marc.mulcahy@sun.com>
2416
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.
2422
2423 2001-12-21  Bill Haneman <bill.haneman@sun.com>
2424
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').
2431
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).
2436
2437         * registryd/Makefile.am:
2438         Minor revision of makefile to use XTST_LIBS variable rather than
2439         hard-wiring the Xtst LD_ADD element.
2440
2441         * test/keysynth-demo.c:
2442         Tweaked an output message; added initialization of the
2443         'keystrings' member of the "switch listener" key_set.
2444
2445         * libspi/relation.c:
2446         Squashed compile-time warning.
2447
2448         * libspi/accessible.c:
2449         Cosmetic and formatting fixes, renamed a static method.
2450         
2451 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
2452
2453         * libspi/accessible.c 
2454         * libspi/action.c
2455         * libspi/application.c 
2456         * libspi/base.c 
2457         * libspi/base.h
2458         * libspi/component.c 
2459         * libspi/editabletext.c
2460         * libspi/hyperlink.c 
2461         * libspi/hypertext.c
2462         * libspi/image.c 
2463         * libspi/selection.c 
2464         * libspi/table.c
2465         * libspi/text.c 
2466         * libspi/value.c 
2467         * registryd/desktop.c:
2468         Changed SpiBase to contain a GObject pointer rather than an AtkObject
2469
2470 2001-12-17  Bill Haneman <bill.haneman@sun.com>
2471
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.
2477
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.
2483         
2484 2001-12-17  Bill Haneman <bill.haneman@sun.com>
2485
2486         * at-bridge/bridge.c:
2487         Namespaced local static methods to spi_atk_bridge_* where
2488         previously named bridge_*, and spi_* elsewhere.
2489
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.
2494
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.
2500
2501         * test/simple-at.c:
2502         Added printout of key event's string value to
2503         report_ordinary_key_event, for demo/debugging purposes.
2504
2505 2001-12-15  Bill Haneman <bill.haneman@sun.com>
2506
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
2511         unsigned long.
2512
2513         * at-bridge/bridge.c:
2514         Changed APIs to use DeviceEvent structure as above, and removed
2515         bogus casting between these event structures.
2516
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
2520         keysyms.
2521
2522         * cspi/spi.h:
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.
2529
2530         * cspi/spi_registry.c:
2531         Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
2532
2533         * cspi/spi-roletypes.h:
2534         Added documentation of newly added SPI Roles.
2535
2536         * cspi/bonobo/cspi-bonobo-listener.c:
2537         Changes in support of API changes above.
2538         
2539         * libspi/accessible.c:
2540         Converted APIs to use DeviceEvent structure (see IDL changes
2541         above). 
2542
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.
2550
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.
2554
2555         * registryd/deviceeventcontroller.h:
2556         Removed keymask_list and added keygrabs_list to
2557         SpiDeviceEventController struct.
2558
2559         * test/simple-at.c:
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.
2565         
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.
2569         
2570
2571 2001-12-12  Bill Haneman <bill.haneman@sun.com>
2572
2573         * libspi/accessible.c:
2574         Convert all AtkRole enumerations to Accessibility_Role enums when
2575         getting a role from an AtkObject.
2576         
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.
2585
2586         * idl/Accessibility_Role.idl:
2587         Added some role types used by AtkRole.
2588
2589 2001-12-12  Bill Haneman <bill.haneman@sun.com>
2590         
2591         * cspi/spi.h:
2592         * cspi/spi_registry.c:
2593         * cspi/spi_event.c:
2594         * cspi/cspi-bonobo-listener.c:
2595         Namespaced all methods that did not begin with an "SPI_" or
2596         "Accessible" prefix to "SPI_".  
2597
2598         * cspi/spi_main.c:
2599         Homogenized internal function namespace to "cspi_" for statics.
2600         
2601         * test/*.c:
2602         Patched tests to use the new CSPI API.
2603
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.
2607         
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
2611         unique.
2612         
2613         * registryd/registry.h:
2614         Squashed annoying warning.
2615
2616         * idl/Accessibility_Role.idl:
2617         Extended range of available Accessibility_Role values.
2618
2619         * cspi/spi_accessible.c:
2620         Re-ordered role names. 
2621
2622 2001-12-12  Bill Haneman <bill.haneman@sun.com>
2623
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
2627         precision.
2628
2629         * idl/Accessibility_Accessible.idl:
2630         Added method Accessibility:Accessible:getRoleName, to complement
2631         Accessibility:Accessible:getRole.
2632
2633         * cspi/spi_accessible.c:
2634         * cspi/spi.h:
2635         Added C binding for above, Accessible_getRoleName (), and changed
2636         signature of Accessible_getRole () to return an AccessibleRole.
2637
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.
2642
2643         * libspi/value.c:
2644         Revert to match Accessibility_Value.idl;
2645
2646         * cspi/spi_value.c:
2647         * cspi/spi.h:
2648         Change signature of AccessibleValue methods to use double rather
2649         than float.
2650
2651         * cspi/spi.h:
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 ().
2656         
2657         * test/test-simple.c:
2658         Add test_action.  Small fixup to match API change to Accessible_getRole.
2659
2660         * libspi/action.c:
2661         Bugfix for get_action_from_servant ().
2662
2663 2001-12-11  Michael Meeks  <michael@ximian.com>
2664
2665         * libspi/libspi.h: remove registry.h and
2666         desktop.h, deviceeventcontroller.h
2667
2668         * libspi/Makefile.am: remove registry.[ch],
2669         desktop.[ch], deviceeventcontroller.[ch]
2670
2671         * registryd/Makefile.am: add registry.[ch],
2672         desktop.[ch], rename registryd.c to registry-main.c.
2673         add deviceeventcontroller.[ch]
2674
2675 2001-12-11  Bill Haneman <bill.haneman@sun.com>
2676
2677         * test/simple-at.c:
2678         Replace setenv() call with putenv ().
2679
2680         * libspi/component.c:
2681         Bugfix in AccessibleComponent_getExtents (),
2682         (from Adi Dascal).
2683         
2684 2001-12-11  Michael Meeks  <michael@ximian.com>
2685
2686         * libspi/image.c (impl_getImageExtents): impl.
2687         (spi_image_class_init): upd.
2688
2689         * cspi/spi_image.c
2690         (AccessibleImage_getImageDescription): fix daft bug
2691         of mine (doh).
2692
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
2697         (test_image): impl.
2698
2699         * libspi/Makefile.am (IDL_DEPS): fixup the IDL
2700         dependencies.
2701
2702         * idl/Accessibility.idl: update all IDL includes.
2703
2704         * idl/*.idl - rename to namespace - this sucks, blame
2705         mjs' bad decision for oafd.
2706
2707         * test/test-simple.c (create_test_window): add more tests.
2708         (create_tree): split this out.
2709         (validate_accessible): bugfix.
2710
2711 2001-12-11  Michael Meeks  <michael@ximian.com>
2712
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.
2717
2718         * cspi/spi_table.c (long_seq_to_array): use
2719         malloc instead.
2720
2721         * cspi/spi_main.c: split out all bonoboish bits into
2722         bonobo/
2723
2724         * cspi/spi-impl.h: upd. typedefs.
2725
2726         * cspi/spi_registry.c: update to lowlevel API,
2727         return booleans to indicate success in some places.
2728
2729         * cspi/spi_event.c: update to lowlevel API.
2730
2731         * cspi/bonobo/Makefile.am: add.
2732
2733         * cspi/bonobo/cspi-lowlevel.h: add
2734
2735         * cspi/bonobo/cspi-bonobo.c: add
2736
2737         * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
2738
2739         * cspi/Makefile.am: remove spi-listener-impl.[ch],
2740         (SUBDIRS): add bonobo, link in the libs.
2741
2742         * cspi/spi-util.c: kill this file.
2743
2744         * TODO: merge in my bits.
2745
2746 2001-12-11  Michael Meeks  <michael@ximian.com>
2747
2748         * test/test-simple.c (test_value, test_table, main):
2749         remove unused variables causing warnings.
2750
2751         * configure.in: cleanup checks - require gail.
2752
2753 2001-12-11  Bill Haneman  <bill.haneman@sun.com>
2754
2755         * idl/Value.idl:
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.
2760
2761         * libspi/value.c:
2762         Updated to use new API above, and to work correctly with GValues
2763         of different types in AtkValue.
2764
2765         * cspi/spi_value.c:
2766         Updated to use new API above.  cspi's API is as yet unchanged.
2767
2768         * TODO: 
2769         Updated the Value revision action item.
2770         
2771 2001-12-10  Bill Haneman  <bill.haneman@sun.com>
2772
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.
2778
2779         * libspi/value.c:
2780         Fixed bug in impl__set_currentValue.
2781
2782 2001-12-10  Michael Meeks  <michael@ximian.com>
2783
2784         * cspi/spi_text.c: audit for exception handling,
2785         tolerating NULL object references safely etc.
2786
2787         * cspi/spi_value.c: ditto.
2788
2789         * cspi/spi_table.c (AccessibleTable_getSummary),
2790         (AccessibleTable_getAccessibleAt),
2791         (AccessibleTable_getRowHeader),
2792         (AccessibleTable_getColumnHeader),
2793         (AccessibleTable_getCaption): fix bugs hidden by
2794         incorrect casts.
2795         (long_seq_to_array): impl.
2796         (AccessibleTable_getSelectedRows),
2797         (AccessibleTable_getSelectedColumns): use it.
2798
2799 2001-12-10  Bill Haneman  <bill.haneman@sun.com>
2800
2801         * TODO:
2802         Added a TODO list (rough and short for now).
2803
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.
2808
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:
2814         * cspi/spi_text.c:
2815         * cspi/spi_value.c:
2816         Documentation fixes (removed return values from ref/unref methods).
2817
2818 2001-12-10  Michael Meeks  <michael@ximian.com>
2819
2820         * cspi/spi_action.c: audit for exception handling,
2821         tolerating NULL object references safely etc.
2822
2823         * cspi/spi_accessible.c: ditto.
2824
2825         * cspi/spi_component.c: ditto.
2826
2827         * cspi/spi_editabletext.c: ditto.
2828
2829         * cspi/spi_hyperlink.c: ditto.
2830
2831         * cspi/spi_hypertext.c: ditto.
2832
2833         * cspi/spi_image.c: ditto.
2834
2835         * cspi/spi_selection.c: ditto.
2836
2837 2001-12-10  Michael Meeks  <michael@ximian.com>
2838
2839         * configure.in: use cspi/libspi.pc.in instead.
2840
2841         * Makefile.am (pkgconfig_DATA): upd. to match.
2842
2843         * test/simple-at.c (report_focus_event): kill hacks around
2844         bad return values, use putenv not setenv
2845
2846         * libspi/desktop.c (impl_desktop_get_child_at_index): don't
2847         fire ChildGone - I killed it.
2848
2849         * libspi/component.c
2850         (impl_accessibility_component_get_extents): remove
2851         bogus return.
2852
2853         * idl/Accessible.idl: kill ChildGone exception.
2854
2855         * cspi/*.[ch]: kill int return from ref / unref.
2856         
2857         * cspi/spi_main.c (cspi_object_add_check): fold into
2858         (cspi_object_add): here.
2859
2860         * cspi/spi_component.c (AccessibleComponent_getExtents):
2861         handle exceptions elegantly.
2862
2863         * cspi/spi-private.h (cspi_check_ev_return),
2864         (cspi_return_if_fail): impl.
2865
2866         * cspi/spi_accessible.c: use extensively.
2867         (AccessibleStateSet_equals): add direct compare check.
2868
2869         * cspi/spi_selection.c: tolerate NULL objs, and check
2870         exceptions before return.
2871
2872         * cspi/spi-util.c (cspi_warn_ev): rename to
2873         (cspi_check_ev): this & don't pass ev in; no point.
2874
2875 2001-12-10  Michael Meeks  <michael@ximian.com>
2876
2877         * test/test-simple.c: use putenv not setenv
2878         (get_environment_vars): more chatty if you're not using
2879         the fun bits.
2880
2881         * test/simple-at.c: do the setenv so more people see the
2882         nice demo easily.
2883
2884 2001-12-10  Bill Haneman <bill.haneman@sun.com>
2885
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.
2890         
2891         * libspi/value.c:
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).
2895
2896 2001-12-09  Bill Haneman <bill.haneman@sun.com>
2897
2898         * cspi/spi.h:
2899         * cspi/spi_event.c:
2900         * cspi/spi_accessible.c:
2901         Documentation fixes: added user_data params to documentation for 
2902         listeners and callbacks.  
2903
2904         * cspi/spi_accessible.c: 
2905         Changed AccessibleStateSet_compare to return a
2906         StateSet rather than return the difference set into a third parameter.
2907         
2908         
2909 2001-12-09  Bill Haneman <bill.haneman@sun.com>
2910
2911         * configure.in:
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
2914         it). 
2915
2916         * Makefile.am:
2917         Remove subdirectory po from SUBDIRS for now.
2918
2919         * at-bridge/bridge.c:
2920         Beefed up a couple of debug printouts.
2921         One-line fix for signal notification name formatting.
2922
2923         * libspi/accessible.c:
2924         Added assertion to spi_accessible_new ().
2925
2926         * libspi/application.c:
2927         Put #ifdef qualifiers around a printf.
2928
2929         * libspi/value.c:
2930         Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
2931
2932         * registryd/Makefile.am:
2933         * util/Makefile.am:
2934         Replaces use of XML_I18N_MERGE_SERVER_RULE with
2935         INTLTOOL_SERVER_RULE macro.
2936
2937         * test/simple-at.c:
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.
2941
2942         * test/test-simple.c:
2943         Added test_value () function (known not to pass at the moment, so
2944         not actually called yet.
2945         
2946 2001-12-08  Michael Meeks  <michael@ximian.com>
2947
2948         * at-bridge/bridge.c (bridge_focus_tracker),
2949         (emit_eventv): fix the same ref. leak.
2950         (register_atk_event_listeners): don't leak.
2951
2952         * cspi/spi-listener-impl.c (cspi_event): more 
2953         protection from client code.
2954
2955         * test/test-simple.c (test_desktop): unref the app.
2956
2957         * test/Makefile.am: upd. TESTS.
2958
2959         * at-bridge/bridge.c (bridge_exit_func): release the registry.
2960
2961         * test/keysynth-demo.c (keysynth_exit): unref the listeners.
2962
2963         * cspi/spi_accessible.c (Accessible_queryInterface): constify.
2964
2965         * cspi/spi_registry.c: constify in strings.
2966         (deregisterGlobalEventListenerAll): don't release the ref.
2967
2968         * cspi/spi.h: start removing redundant / conflicting
2969         gtkdoc comments, making the API readable at a glance :-)
2970         
2971         * cspi/spi_event.c (AccessibleEventListener_unref): impl.
2972
2973         * test/keysynth-demo.c (keysynth_exit, main): upd.
2974
2975         * test/simple-at.c (main, simple_at_exit): upd.
2976
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.
2982
2983         * cspi/spi_main.c (SPI_exit): return exit status
2984         for cspi.
2985         (SPI_event_quit): impl.
2986         (SPI_event_main): simplify.
2987         (cspi_is_gnome_app): kill.
2988         (SPI_init): kill isGNOMEapp arg.
2989
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.
2996
2997 2001-12-08  Abel Cheung  <maddog@linux.org.hk>
2998
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.
3003
3004 2001-12-07  Michael Meeks  <michael@ximian.com>
3005
3006         * util/magnifier.c: kill bonobo activation reg. race.
3007
3008         * libspi/component.c
3009         (impl_accessibility_component_get_extents): make it match
3010         it's sig.
3011
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.
3020
3021 [ merge fixups2 branch to here ]
3022 2001-12-07  Michael Meeks  <michael@ximian.com>
3023
3024         * test/simple-at.c (report_focus_event),
3025         (report_focussed_accessible): remove g_warning debug.
3026
3027 2001-12-07  Michael Meeks  <michael@ximian.com>
3028
3029         * test/test-simple.c (validate_tree): comment out some checks.
3030         (test_desktop): app now not registered idly - horay.
3031
3032 2001-12-07  Michael Meeks  <michael@ximian.com>
3033
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.
3040
3041         * at-bridge/bridge.c (bridge_key_listener): handle
3042         registry dead exception gracefully.
3043         (bridge_focus_tracker, emit_eventv): free ev.
3044
3045         * test/simple-at.c (report_focus_event): fix polarity.
3046
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
3053         ref problems etc.
3054
3055         * at-bridge/bridge.c (register_atk_event_listeners):
3056         don't unref the noop object - causes grief.
3057
3058         * libspi/registry.c: remove the X headers.
3059         turn off the debug churn.
3060
3061         * libspi/accessible.c (spi_accessible_new_return): only
3062         release the ref if we are supposed to [doh]
3063
3064         * test/simple-at.c (report_button_press, report_focus_event):
3065         guard vs. unexpected exit.
3066
3067         * at-bridge/bridge.c (gtk_module_init): prune printf.
3068         (bridge_exit_func): fix app unref.
3069
3070         * libspi/Makefile.am: don't install registry or desktop.h
3071
3072         * libspi/*.h: update includes.
3073
3074         * libspi/application.h: don't include ourself, or
3075         other redundant headers.
3076
3077 2001-12-06  Michael Meeks  <michael@ximian.com>
3078
3079         * libspi/accessible.c
3080         (get_accessible_from_servant): impl.
3081         Upd. all CORBA impl.s to use it killing cut and paste.
3082
3083         * cspi/spi_main.c (cspi_cleanup): guard vs. double
3084         invokes.
3085         (SPI_init): register atexit cleanup handler here.
3086
3087 2001-12-06  Michael Meeks  <michael@ximian.com>
3088
3089         * at-bridge/bridge.c (gtk_module_init): g_error on
3090         activation exception
3091
3092 2001-12-06  Michael Meeks  <michael@ximian.com>
3093
3094         * at-bridge/bridge.c (gtk_module_init): some sort of
3095         confusing merge clash - reverted.
3096         (bridge_idle_init): ditto.
3097
3098         * test/test-simple.c (main, utterable_normal_derefs):
3099         merge from Bill - somehow not committed.
3100
3101 2001-12-06  Michael Meeks  <michael@ximian.com>
3102
3103         * libspi/value.c (spi_value_class_init): upd.
3104         (spi_value_finalize): kill.
3105
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.
3111
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.
3117
3118         * libspi/relation.c (spi_relation_finalize): kill.
3119         (spi_relation_class_init, spi_relation_new): upd
3120
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.
3126
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.
3132
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.
3138
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.
3143         
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.
3151
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.
3163
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.
3170
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
3174         solving.
3175
3176         * libspi/application.c (spi_application_init),
3177         (spi_application_new): upd.
3178
3179         * libspi/accessible.c (spi_accessible_object_finalize): kill.
3180         (spi_accessible_class_init): upd.
3181         s/accessible/object/ in epv methods.
3182
3183 2001-12-05  Bill Haneman <bill.haneman@sun.com>
3184
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.
3196
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.
3200
3201         * cpi/spi_util.c:
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.  
3205
3206         * cspi/spi_main.c:
3207         * cspi/spi.h:
3208         Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3209         Also changed default value of is_gnome_app to TRUE.
3210
3211         * test/simple-at.c:
3212         * test/keysynth-demo.c:
3213         Changed use of SPI_init and SPI_event_main to reflect API change above.
3214
3215         * test/simple-at.c:
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.
3219
3220         * test/test-simple.c: (Changes not in this patch since source is
3221         not in CVS ?)
3222         
3223 2001-12-05  Michael Meeks  <michael@ximian.com>
3224
3225         * registryd/registryd.c (main): protect against
3226         bonobo-activation startup race condition.
3227
3228         * cspi/spi_main.c (cspi_object_add_check): cope
3229         with the exception elegantly.
3230
3231         * idl/Accessible.idl: decl. ChildGone
3232
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.
3239
3240         * libspi/registry.c
3241         (impl_accessibility_registry_deregister_application),
3242         (impl_accessibility_registry_register_application): 
3243         kill excessive debug clutter.
3244
3245         * test/test-simple.c (test_misc): test some NULL
3246         tolerance. (main): upd.
3247
3248         * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3249         implements no interfaces - so let's not crash.
3250
3251         * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3252
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.
3257
3258         * libspi/table.c (impl_getAccessibleAt),
3259         (impl_getRowHeader, impl_getColumnHeader): upd.
3260
3261         * libspi/hyperlink.c (impl_getObject): upd.
3262
3263         * libspi/accessible.c
3264         (impl_accessibility_accessible_get_child_at_index): upd.
3265
3266         * libspi/component.c
3267         (impl_accessibility_component_get_accessible_at_point): upd.
3268
3269         * test/test-simple.c (test_editable_text, test_text): impl.
3270         some simple tests.
3271
3272         * cspi/spi_editabletext.c
3273         (AccessibleEditableText_insertText): constify.
3274
3275         * test/test-simple.c (focus_me): make more robust.
3276
3277         * libspi/accessible.c: remove some printfs in methods that
3278         we test and work fine, so we can get a clean tree dump.
3279
3280         * test/test-simple.c (validate_accessible),
3281         (validate_tree): make tree dumping pretty too.
3282
3283         * at-bridge/bridge.c (bridge_signal_listener): upd. so
3284         it builds without debug on.
3285
3286         * test/test-simple.c (validate_accessible): fix the most
3287         ludicrous bug.
3288
3289         * cspi/spi_main.c (spi_object_release): leave the nicely
3290         blanked memory around if in debug mode.
3291
3292         * cspi/spi-listener-impl.c (cspi_event): use add_check.
3293
3294 [committed to fixups2]
3295 2001-12-05  Michael Meeks  <michael@ximian.com>
3296
3297         * libspi/editabletext.c
3298         (spi_editable_text_class_init): g_type_class_peek_parent,
3299         not interface peek - so we finalize cleanly.
3300
3301         * libspi/accessible.c (spi_accessible_new): kill debug.
3302
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.
3307
3308         * cspi/spi_component.c (AccessibleComponent_getLayer):
3309         add missing break statement, switch on zlayer not the
3310         uninitialized retval.
3311
3312         * cspi/spi_main.c (cspi_object_add): add assert, local ref
3313         before (possibly re-entering) remote unref.
3314
3315         * test/simple-at.c (main): unref the desktop.
3316
3317         * cspi/spi_accessible.c (cspi_accessible_is_a): move 
3318         into:
3319         
3320         * cspi/spi_main.c (cspi_accessible_is_a): here to 
3321         isolate bonobo API usage more.
3322
3323         * libspi/registry.c (impl_accessibility_registry_register_application): 
3324         prune bogus comment.
3325
3326 2001-12-04  Michael Meeks  <michael@ximian.com>
3327
3328         * test/test-simple.c (validate_tree): upd.
3329         IndexInParent check to make it more lucid.
3330         (validate_accessible): dump the tree.
3331
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.
3336
3337 2001-12-04  Michael Meeks  <michael@ximian.com>
3338
3339         * cspi/spi-util.h: remove.
3340
3341         * cspi/spi.h: move SPI_freeString here
3342
3343         * libspi/component.c (impl_accessibility_component_get_layer): 
3344         warning fixage.
3345         (impl_accessibility_component_get_mdi_z_order): ditto,
3346         return -1 on error - is this ok ?
3347
3348         * test/test-simple.c (test_application): impl.
3349
3350         * cspi/spi_accessible.c (Accessible_getApplication),
3351         (Accessible_isApplication): impl.
3352
3353         * libspi/registry.c (spi_listener_struct_free): release
3354         the CORBA reference too.
3355
3356         * libspi/accessible.c
3357         (impl_accessibility_accessible_get_parent): fix ref leak.
3358
3359         * libspi/registry.c (spi_registry_new): make the registry
3360         immortal - we don't want it to go away ever.
3361
3362         * libspi/application.c
3363         (spi_accessible_application_finalize): impl. cleanup.
3364
3365         * cspi/spi_registry.c
3366         (deregisterGlobalEventListenerAll),
3367         (deregisterGlobalEventListener),
3368         (deregisterAccessibleKeystrokeListener): fix ref leak.
3369
3370         * cspi/spi_main.c (SPI_init): remove redundant ref.
3371
3372         * test/test-simple.c (unutterable_horror): impl. to force a
3373         clean shutdown.
3374         (main): use it.
3375
3376         * libspi/registry.c
3377         (impl_accessibility_registry_deregister_application): release
3378         the application when we de-register it.
3379
3380         * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
3381         until we have the infastructure to get it right.
3382
3383 2001-12-03  Michael Meeks  <michael@ximian.com>
3384
3385         * libspi/Makefile.am: only build eventlistener.[ch]
3386
3387         * libspi/accessible.c
3388         (impl_accessibility_accessible_get_child_at_index): don't leak.
3389
3390         * at-bridge/bridge.c (bridge_exit_func): cope with an exit
3391         before we hit the idle handler.
3392
3393         * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
3394         debugging than exit.
3395
3396         * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
3397
3398         * libspi/listener.c (impl_notify_event): check source
3399         not NIL before unref.
3400
3401         * libspi/registry.c (impl_registry_notify_event): ditto.
3402
3403         * libspi/eventlistener.c
3404         (impl_accessible_event_notify_event): unref the source.
3405
3406         * libspi/accessibleeventlistener.c
3407         (impl_accessible_event_notify_event): unref the source.
3408
3409         * idl/Event.idl: remove 'hash_id' attribute - of no
3410         concievable use.
3411
3412         * libspi/application.c (notify_listeners): upd list
3413         iteration & sig.
3414         (spi_application_object_event_listener), 
3415         (spi_application_toolkit_event_listener): upd to do correct
3416         CORBA ref counting.
3417
3418         * libspi/registry.c
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.
3423
3424         * libspi/application.c
3425         (impl_accessibility_application_register_object_event_listener): 
3426         kill leak.
3427
3428         * libspi/hyperlink.c (impl_getObject): fix ref mistake.
3429
3430         * libspi/hypertext.c (impl_getLink): ditto.
3431
3432         * cspi/spi_main.c (cspi_object_add): remove
3433         bogus CORBA_Object_duplicate.
3434
3435         * cspi/spi-listener-impl.c (cspi_event): dup/ref
3436         on the object_add.
3437
3438         * cspi/spi_accessible.c
3439         (Accessible_getRelationSet): fix leak / referencing issue.
3440
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.
3445
3446         * *.[ch]: s/boolean/SpiBoolean/
3447
3448         * cspi/spi_accessible.c (role_names): actualy order so it
3449         corresponds with the enum !
3450
3451         * test/test-simple.c (test_roles): check some role strings
3452         vs. enums to detect offset errors.
3453
3454 2001-12-01  Michael Meeks  <michael@ximian.com>
3455
3456         * cspi/spi_main.c (cspi_object_add_check): impl. helper.
3457
3458         * cspi/spi_accessible.c (Accessible_getChildAtIndex):
3459         check ev before 
3460         (Accessible_getChildAtIndex): use cspi_add_check so we
3461         check the ev before using a (possibly) invalid value.
3462
3463         * libspi/accessible.c
3464         (impl_accessibility_accessible_get_parent): don't segv
3465         on a NULL parent.
3466
3467         * at-bridge/bridge.c (gtk_module_init): upd.
3468         (bridge_property_event_listener): don't leak strings
3469         and events !
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
3474         into:
3475         (emit_eventv): and fix 2 ref leaks here & comply to the
3476         coding style.
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
3483         and strings.
3484         (bridge_signal_listener): more leakage and cut & paste
3485         fixage.
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
3490         leakage.
3491         (gtk_module_init): return a value - not that it is checked by
3492         Gtk - but hey.
3493         (bridge_key_listener): register my horror at casting between
3494         IDL defined structs.
3495         (bridge_get_registry): kill - not used.
3496
3497         * cspi/spi_accessible.c (Accessible_getRole): make return const.
3498
3499         * test/test-simple.c (test_roles): impl.
3500         (test_desktop, validate_accessible, validate_tree): impl.
3501
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
3505         return 'const'
3506
3507 2001-11-30  Michael Meeks  <michael@ximian.com>
3508
3509         * cspi/spi.h: add missing prototype.
3510
3511         * libspi/registry.c (spi_listener_struct_new): fix sig.
3512
3513         * test/Makefile.am: add test-simple
3514
3515         * test/test-simple.c: add
3516
3517         * test/test.sh: add.
3518
3519         * cspi/spi_main.c (SPI_init): make SPI_inited module global,
3520
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.
3523
3524 [ work before Bill duplicated a chunk of it ... ]
3525 2001-11-30  Michael Meeks  <michael@ximian.com>
3526
3527         * libspi/keystrokelistener.c
3528         (spi_keystroke_listener_class_init): fixup arg
3529         count (doh).
3530
3531         * libspi/eventlistener.c
3532         (spi_event_listener_class_init): ditto.
3533
3534         * tests/test.sh: add.
3535
3536         * cspi/spi-listener-impl.h: update macros.
3537
3538         * cspi/spi-listener-impl.c
3539         (cspi_event_listener_remove_callback): add
3540         correct pre-conditions.
3541
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.
3548
3549         * test/simple-at.c: update for listener changes.
3550
3551         * registryd/registryd.c (main): prune kruft.
3552
3553         * libspi/libspi.h: upd.
3554
3555         * libspi/eventlistener.[ch]: rename broken macros.
3556
3557         * libspi/accessibleeventlistener.[ch]: remove.
3558
3559         * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
3560
3561         * test/test-simple.c: Add - automated tests.
3562
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.
3567
3568         * cspi/spi_event.c
3569         (createAccessibleEventListener),
3570         (AccessibleEventListener_addCallback),
3571         (createAccessibleKeystrokeListener),
3572         (AccessibleKeystrokeListener_addCallback): upd.
3573
3574         * libspi/deviceeventcontroller.c
3575         (spi_device_event_controller_check_key_event): add public proto.
3576
3577         * libspi/registry.c
3578         (impl_accessibility_registry_deregister_global_event_listener): 
3579         always init listeners.
3580         (_registry_notify_listeners): yes it is.
3581
3582         * cspi/spi-listener-impl.c (cspi_key_event): 
3583         move debug to here.
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.
3592
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,
3598         use signals.
3599         (impl_key_event): prune drasticaly.
3600
3601         * libspi/eventlistener.c
3602         (spi_event_listener_add_callback),
3603         (spi_event_listener_remove_callback): kill, use
3604         signals.
3605         (impl_accessible_event_notify_event): upd.
3606         (spi_event_listener_object_finalize): remove.
3607
3608         * libspi/Makefile.am: use eventlistener.[ch]
3609
3610 2001-12-04  Bill Haneman  <bill.haneman@sun.com>
3611
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.
3616
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.
3620
3621 2001-12-04  Bill Haneman  <bill.haneman@sun.com>
3622
3623         * idl/State.idl: 
3624         Change method 'compare' to return a 'difference set' rather than
3625         taking a StateSet as an out parameter (more Java-friendly).
3626
3627         * idl/Accessible.idl:
3628         Added CORBA struct 'BoundingBox', to faciliate API changes below:
3629         
3630         * idl/Component.idl:
3631         * idl/Image.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.)
3636
3637         * cspi/spi_component.c:
3638         Modify implementation of getExtents to reflect the above IDL
3639         change.
3640         
3641         * cspi/spi_image.c:
3642         * cspi/spi.h:
3643         Add (missing) AccessibleImage_getExtents () API.
3644
3645         * docs/reference/cspi/at-spi-cspi-sections.txt:
3646         Added AccessibleImage_getImageExtents () to docs.
3647         
3648 2001-12-03  Bill Haneman  <bill.haneman@sun.com>
3649
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.
3656
3657         * libspi/component.c:
3658         Added implementations for these methods.
3659
3660         * cspi/spi_component.c:
3661         * cspi/spi.h:
3662         Added cspi binding methods for above, 
3663         AccessibleComponent_getLayer() and
3664         AccessibleComponent_getMDIZOrder().
3665         Added cspi enum 'AccessibleComponentLayer'.
3666
3667         * docs/reference/cspi/at-spi-cspi-sections.txt:
3668         Added above methods to docs.
3669
3670         * cspi/spi-impl.h:
3671         * cspi/spi*.[ch]:
3672         Changed typedef for 'boolean' type (and all references to it) to
3673         SPIBoolean, to avoid keyword clashes with C++.
3674
3675         * test/simple-at.c:
3676         Changed usages of 'boolean' to SPIBoolean.
3677
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.
3681         
3682 2001-12-02  Bill Haneman  <bill.haneman@sun.com>
3683
3684         * cspi/spi_registry.c:
3685         Removed obsolete X event loop for passive keygrabs (which now
3686         lives in libspi).
3687
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
3691         * configure.in.
3692
3693 2001-11-28  Bill Haneman  <bill.haneman@sun.com>
3694
3695         * docs/reference/cspi:
3696         Included docs for SPI_freeString in generated documentation.
3697
3698         * cspi/spi-util.c:c
3699         Renamed spi_freeString to SPI_freeString, for consistency.  Added
3700         documentation for this function.
3701
3702         * cspi/spi-util.h:
3703         Renamed spi_freeString to SPI_freeString, for consistency.  
3704         Removed obsolete method declaration string_from_corba_string.
3705
3706         * test/keysynth-demo.c:
3707         Small tweak to comments.
3708
3709         * test/simple-at.c:
3710         Stopped leaking the strings returned from CSPI. 
3711
3712 2001-11-28  Bill Haneman  <bill.haneman@sun.com>
3713
3714         Merged Michael's branch (see his ChangeLog entries below).
3715         
3716         * at-bridge/bridge.c: Explicitly hold a ref to the registry while
3717         bridge is alive, release on exit.
3718         
3719         * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
3720         Fix type check macro.
3721         
3722         * cspi/spi_event.c:
3723         Added AccessibleKeystrokeListener_unref() method to reduce leakage.
3724         
3725         * cspi/spi_main.c: 
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.
3728         
3729         * cspi/spi_main.c (cspi_object_ref):
3730         Duplicate the corba object passed in, since we're keeping it around.
3731         
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).
3737         
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.
3741
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
3746         Accessible.
3747
3748         * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
3749         Fixed typo/bug in signal declaration.
3750         
3751         * libspi/accessibleeventlistener.h:
3752         Fixed a type macro.
3753
3754         * libspi/application.c (spi_application_new):
3755         Fixed leak in initialization.
3756
3757         * libspi/desktop.c:
3758         Remembered to increment bonobo-object refcount when returning
3759         children (applications) from desktop object.
3760         Added (empty) finalize method.
3761
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.
3769
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.
3774
3775         * libspi/hypertext.h: 
3776         Removed pointless and duplicate AtkObject pointer from
3777         SpiHypertextClass.
3778
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).
3785
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().  
3794
3795         * test/simple-at.c:
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
3800         listeners).
3801         
3802 2001-11-27  Michael Meeks  <michael@ximian.com>
3803
3804         * cspi/spi-listener.h: fixup enum.
3805
3806 2001-11-27  Michael Meeks  <michael@ximian.com>
3807
3808         * cspi/spi-listener-impl.c (cspi_event_listener_new),
3809         (cspi_keystroke_listener_new): Use the cspi variants.
3810
3811 2001-11-26  Michael Meeks  <michael@ximian.com>
3812
3813         * test/keysynth-demo.c: fix 2 compile warnings, missing
3814         type in decl. etc.
3815
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.
3820
3821         * util/mag_client.h: include pre-requisites.
3822
3823         * libspi/accessibleeventlistener.c
3824         (spi_event_listener_object_finalize): free any lingering
3825         callbacks.
3826         
3827         * libspi/keystrokelistener.c
3828         (keystroke_listener_object_finalize): ditto.
3829
3830         * cspi/spi-listener-impl.[ch]: Add to implement cspi style
3831         callbacks, with cspi types.
3832         
3833         * cspi/spi_event.c (createAccessibleEventListener): chain to
3834         (AccessibleEventListener_addCallback): here.
3835         (createAccessibleKeystrokeListener): chain to 
3836         (AccessibleKeystrokeListener_addCallback): here.
3837
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.
3843
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.
3849
3850         * libspi/accessibleeventlistener.h: add an 'event' signal,
3851         decl type on callback.
3852
3853         * libspi/keystrokelistener.h: ditto.
3854
3855         * cspi/spi-listener.h: make methods typesafe and
3856         make them use the new event typedefs.
3857
3858         * test/simple-at.c (report_focussed_accessible):
3859         include mag_client.h
3860         Use *(void *)text_interface not the other thing.
3861         
3862         * configure.in: add gtk to registryd bits - since we use
3863         gdk there ( why ? )
3864
3865         * util/magnifier.c: include libbonobo.h
3866         
3867 2001-11-25  Bill Haneman  <bill.haneman@sun.com>
3868
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.
3874
3875         keysynth-demo now listens to any keyboard keys with zero-valued
3876         keycodes (i.e. 'unused' keys) and interprets them as
3877         single-switches.
3878
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.
3884
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
3889         blocks.
3890
3891         * util/magnifier.c:
3892         * util/mag_image.h:
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
3896         implementation.
3897         Added GtkWindow::realize signal handler to magnifier, to keep it
3898         from receiving keyboard focus from the WM.
3899
3900 2001-11-23  Mark McLoughlin  <mark@skynet.ie>
3901
3902         * cspi/spi-private.h: my guess at what michael forgot
3903         before he ran off to NZ :-)
3904
3905 2001-11-23  Michael Meeks  <michael@ximian.com>
3906
3907         * cspi/spi_event.c (AccessibleEventListener_removeCallback):
3908         comment out non existant method invoke so we link.
3909
3910         * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
3911         use bonobo_exception_get_text for more friendly warnings.
3912
3913         * cspi/spi.c (Obj_Add): move into spi_main & rename
3914         spi_object_add; kill spi.c
3915
3916         * cspi/spi_registry.c
3917         (deregisterGlobalEventListener),
3918         (deregisterGlobalEventListenerAll),
3919         (registerGlobalEventListener): fix exception leaks.
3920
3921         * cspi/spi_main.c (spi_exception): impl. helper, so we
3922         don't leak exceptions.
3923
3924         * cspi/spi_selection.c
3925         (AccessibleSelection_deselectSelectedChild): return the
3926         success state.
3927
3928         * cspi/spi_main.c (spi_ev): impl; hack - gack.
3929         (spi_registry): ditto.
3930         (SPI_init): guard against double inits.
3931
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
3935
3936 2001-11-22  Michael Meeks  <michael@ximian.com>
3937
3938         * cspi/Makefile.am: re organise, install the headers.
3939
3940         * cspi/*.h: add G_BEGIN/END_DECLS
3941
3942 2001-11-22  Bill Haneman  <bill.haneman@sun.com>
3943
3944         * test/simple-at.c:
3945         Added non-preemptive keylistener for key events with no modifiers
3946         and shift-only modifier.
3947
3948         * libspi/keystrokelistener.c:
3949         Removed some verbose diagnostics printout.
3950
3951         * cspi/spi_registry.c:
3952         Fixed a bug that caused all key listeners to be registered as
3953         pre-emptive.
3954         
3955         * libspi/deviceeventcontroller.c:
3956         Fixed bug that caused XGrabKey (preemptive key grab) to be called
3957         for non-preemptive key masks.
3958
3959
3960 2001-11-22  Bill Haneman  <bill.haneman@sun.com>
3961
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.
3966
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 :-(
3970
3971         * docs/reference:
3972         * docs/cspi:
3973         * docs/idl:
3974         Added .cvsignore files.
3975         
3976 2001-11-21  Bill Haneman  <bill.haneman@sun.com>
3977
3978         * libspi/deviceeventcontroller.c:
3979         * libspi/keystrokelistener.c:
3980         * cspi/spi_event.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 :-)
3985
3986 2001-11-21  Bill Haneman  <bill.haneman@sun.com>
3987
3988         * configure.in:
3989         * docs/Makefile.am:
3990         * docs/reference:
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:
4002
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
4006         IDL docs.
4007
4008 2001-11-21  Laszlo Peter  <laca@ireland.sun.com>
4009
4010         * configure.in, libspi/Makefile.am: find libXtst.
4011
4012 2001-11-21  Michael Meeks  <michael@ximian.com>
4013
4014         * test/accessx-gui.c: s/spi_value/value/ - doh.
4015
4016         * libspi/base.[ch]: add.
4017
4018 2001-11-18  Bill Haneman <bill.haneman@sun.com>
4019
4020         * idl/Accessible.idl:
4021         * idl/Application.idl:
4022         * idl/Registry.idl:
4023         * idl/Action.idl:
4024         Started gtk-doc cleanup on IDL.
4025
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.
4032
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
4036         invocations.
4037
4038         The XGrabKey call now does async keygrabs, because synchronous
4039         ones were deadlocking with GDK_event code in a very nasty way.
4040
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.
4045
4046         deviceeventcontroller.c is now warning-free.
4047         
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.
4054         
4055         
4056 2001-11-20  Michael Meeks  <michael@ximian.com>
4057
4058         * libspi/registry.c
4059         (impl_accessibility_registry_deregister_global_event_listener): 
4060         segv. protection.
4061
4062         * libspi/deviceeventcontroller.c
4063         (spi_device_event_controller_check_key_event): return
4064         FALSE on no virtual method.
4065
4066         * libspi/*..h: make includes work on a correctly pathed install.
4067
4068         * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
4069
4070         * libspi/application.h: kill unused ( and whacked out )
4071         gboolean *spi_application_set_id (AtkObject *app, long id);
4072
4073 2001-11-20  Michael Meeks  <michael@ximian.com>
4074
4075         * libspi/*.[ch]: further convert to bonobo's type func
4076         macros, remove redundnant casts etc.
4077
4078         * libspi/text.c s/accessibility_text/spi_text/g,
4079         re-order to de-cruft.
4080
4081         * libspi/hypertext.c: re-order to kill a huge slew
4082         of redundant forward decls.
4083
4084         * libspi/relation.c: ditto.
4085
4086         * libspi/image.c: ditto.
4087
4088         * */.cvsignore: update
4089         
4090 2001-11-20  Michael Meeks  <michael@ximian.com>
4091
4092         * libspi/deviceeventcontroller.c
4093         (_controller_register_with_devices): use g_getenv,
4094         kill stdlib.h include.
4095
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.
4100
4101         * libspi/text.c (impl_getAttributes): fix warning / bug.
4102
4103         * libspi/*.[ch]: more headers, includes and over commenting.
4104         
4105 2001-11-20  Michael Meeks  <michael@ximian.com>
4106
4107         * libspi/*.[ch]: fixup headers, includes and over commenting.
4108
4109         * libspi/image.c (impl__get_imageDescription): const
4110         correctness warning fix. remove redundant casting.
4111
4112         * libspi/table.c (impl_getRowDescription): ditto.
4113         (impl_getColumnDescription): ditto.
4114
4115         * libspi/libspi.h: add.
4116
4117 2001-11-19  Michael Meeks  <michael@ximian.com>
4118
4119         * libspi/editabletext.c (impl_setAttributes): fix warnings.
4120
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
4127
4128         * libspi/action.c (spi_action_get_type): kill, use the macro.
4129
4130         * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4131         to avoid prototype.
4132
4133         * libspi/application.c (spi_application_object_event_listener),
4134         (impl_accessibility_application_register_object_event_listener):
4135         warning fixes / const understanding updates.
4136
4137         * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4138         warning fixes.
4139
4140 2001-11-18  Bill Haneman <bill.haneman@sun.com>
4141
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
4145         more explicit.
4146         
4147         * idl/Registry.idl:
4148         Added methods 
4149             boolean notifyListenersSync (in DeviceEventListener listener,
4150                                      in DeviceEvent event);
4151
4152             oneway void notifyListenersAsync (in DeviceEventListener listener,
4153                                           in DeviceEvent event);
4154
4155         Added DeviceEventListener and DeviceEvent structs (may deprecate
4156         KeyStroke and KeystrokeListener in favor of this generic
4157         event/listener framework for devices).
4158
4159         * libspi/deviceeventcontroller.c:
4160
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.
4164
4165         * at-bridge/bridge.c:
4166         Fixed regression connecting to interface signals, apparently
4167         caused by GTK+ changes.
4168
4169         Added an internal bridge_state_listener to deal with
4170         property-change:accessible-state signals.
4171
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).
4175
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
4195             object:text-changed
4196             object:text-caret-moved
4197             object:row-inserted
4198             object:row-reordered
4199             object:row-deleted
4200             object:column-inserted
4201             object:column-reordered
4202             object:column-deleted
4203             object:model-changed        
4204
4205 2001-11-16  Bill Haneman <bill.haneman@sun.com>
4206
4207         * libspi/hyperlink.c,h:
4208         Fixed some broken stuff in hyperlink.
4209         
4210         * libspi/relation.h:
4211         * libspi/relation.c:
4212         * cspi/spi_accessible.c:
4213         Initial implementations of AccessibleRelation methods, and docs.
4214
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.
4219
4220         * cspi/spi_editabletext.c:
4221         * cspi/spi_hypertext.c:
4222         * cspi/spi_image.c:
4223         * cspi/spi_hyperlink.c:
4224         * cspi/spi_table.c:
4225         Added docs.  
4226
4227         Doc coverage now 95%.
4228
4229 2001-11-16  Bill Haneman <bill.haneman@sun.com>
4230
4231         One last namespacing revision:
4232         * libspi/accessibleeventlistener.[ch]:
4233         Renamed SpiAccessibleEventListener to SpiEventListener,
4234         (no need for two namespaces ;-)
4235
4236         And lots of documentation fixes:
4237
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.
4241
4242         * cspi/spi-impl.h
4243         * cspi/spi-listener.h
4244         * cspi/spi.h
4245         * cspi/spi_accessible.c
4246         * cspi/spi_action.c
4247         * cspi/spi_application.c
4248         * cspi/spi_component.c
4249         * cspi/spi_editabletext.c
4250         * cspi/spi_event.c
4251         * cspi/spi_hypertext.c
4252         * cspi/spi_main.c
4253         * cspi/spi_registry.c
4254         * cspi/spi_selection.c
4255         * cspi/spi_text.c
4256         * cspi/spi_value.c
4257         * docs/Makefile.am
4258         * docs/at-spi-docs.sgml
4259         * docs/at-spi-sections.txt
4260         
4261         Added and fixed up gtk-doc documentation in cspi.
4262         
4263         Interfaces now (fully) documented (subject to revision and enhancement):
4264         SPI_main
4265         Event Listener Support
4266         Registry API
4267         AccessibleApplication
4268         Accessible
4269         AccessibleAction
4270         AccessibleComponent
4271         AccessibleEditableText
4272         AccessibleSelection
4273         AccessibleText
4274         AccessibleValue
4275
4276         still pending:
4277         AccessibleStateSet
4278         AccessibleRelationSet
4279         AccessibleImage
4280         AccessibleTable
4281         AccessibleHyperlink
4282         
4283 2001-11-14  Bill Haneman <bill.haneman@sun.com>
4284
4285         * at-bridge/bridge.c:
4286         Initial work for toolkit-level key snooper connection by bridge.
4287
4288         * cspi/spi-impl.h:
4289         * cspi/spi_*.h:
4290         * cspi/spi_*.c:
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.
4296
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.
4301         
4302         * libspi/accessibleeventlistener.h:
4303         Fixed minor namespacing weirdness.
4304
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 
4309         actual meaning.
4310         Added spi_device_event_controller_new().
4311         Added  SpiRegistry backpointer to SpiDeviceEventControllerClass.
4312          
4313         * libspi/keystrokelistener.[ch]:
4314         Namespaced KeystrokeListener to SpiKeystrokeListener.
4315         Changed uses of keymasks to use SPI_ prefix, and did other
4316         knock-on fixups.
4317
4318         * libspi/keymasks.h:
4319         Namespaced keymask constants with SPI_ prefix.
4320
4321         * libspi/registry.c:
4322         Some warning fixes, and knock-on fixes from namespace changes.
4323
4324         * test/Makefile.am:
4325         Added rules for accessx-gui test program.
4326
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
4330         useful ;-)
4331
4332         * test/keysynth-demo.c:
4333         * test/simple-at.c:
4334         * test/at.c:
4335         * test/app.c:
4336         Fixes so that these test clients work properly with the namespaced
4337         libraries. (Incompletely tested for technical reasons, fixes may follow)
4338         
4339
4340 2001-11-13  Michael Meeks  <michael@ximian.com>
4341
4342         * libspi/application.c
4343         (impl_accessibility_application_get_version),
4344         (impl_accessibility_application_get_toolkit_name):
4345         warning fixes.
4346         (impl_accessibility_application_set_id),
4347         (impl_accessibility_application_get_id): remove
4348         redundant casting code.
4349
4350         * libspi/action.c (impl_getDescription): fix warnings.
4351
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
4358
4359 2001-11-13  Michael Meeks  <michael@ximian.com>
4360
4361         * *.[ch] fix bits I screwed up:
4362
4363                 s/([^ \tb(\*\&\?\",])spi_/\1/g;
4364                 s/([^ \tb(\*\&\?\",])Spi/\1/g;
4365         
4366 2001-11-13  Michael Meeks  <michael@ximian.com>
4367
4368         * *.[ch] Namespace libspi into spi_ and Spi.
4369
4370 2001-13-11  Michael Meeks  <michael@ximian.com>
4371
4372         * Makefile.am: dist & install at-spi-1.0.pc
4373
4374         * libspi/Makefile.am: install into at-spi-1.0
4375
4376         * idl/Makefile.am (idldir): install into at-spi-1.0
4377
4378         * at-spi-1.0.pc.in: add.
4379
4380         * configure.in: build it.
4381
4382 2001-11-12  Bill Haneman <bill.haneman@sun.com>
4383
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
4388         tip!)
4389
4390 2001-11-11  Bill Haneman <bill.haneman@sun.com>
4391
4392         * test/Makefile.am:
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
4397         itself.
4398
4399         * cspi/spi_registry.c:
4400         Added C binding for AT-SPI generateKeyEvent.
4401
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.    
4407         
4408 2001-11-09  Bill Haneman <bill.haneman@sun.com>
4409
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).
4414
4415         * idl/Registry.idl:
4416         Improved API for registerKeystrokeListener, in accordance with
4417         discussions with Gnopernicus team and X server research.
4418
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].
4426
4427         * cspi/spi.h:
4428         Changes to registerKeystrokeListener() API, as above.
4429         Added deregisterGlobalEventListenerAll(), and 
4430         deregisterKeystrokeListener(), which are needed for clean exit of
4431         clients.
4432         Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
4433         and a macro ALL_KEYS which may be used in place of a KeySet pointer.
4434         
4435         * cspi/spi_registry.c:
4436         Added implementations of function prototypes mentioned above.
4437         
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).
4442
4443         * test/simple-at.c:
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).
4450         
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.
4455
4456         * util/mag_image.h:
4457         * util/mag_client.c:
4458         * util/mag_client.h:
4459         * util/mag_control.c:
4460         * util/magnifier.c:
4461         Source code changes to support the above IDL changes.
4462         
4463         * util/mag_image.c:
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.
4467
4468 2001-10-26  Michael Meeks  <michael@ximian.com>
4469
4470         * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
4471
4472 2001-10-26  Laszlo Peter <laca@ireland.sun.com>
4473
4474         * at-bridge/Makefile.am: fix LDFLAGS.
4475
4476 2001-10-09  Bill Haneman <bill.haneman@sun.com>
4477
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
4483         our at-spi events.
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
4487         allocation.
4488
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.
4493
4494         * cspi/spi_accessible.c:
4495         Changed AccessibleSelection_refSelectedChild() to
4496         AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
4497         now increment refcounts.
4498
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.
4503         
4504         * at-bridge/bridge.c:
4505         
4506         * libspi/accessible.c:
4507         Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
4508         hyperlinks, AtkHyperlink is an object type.     
4509
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 
4514         implementations.
4515
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.
4521
4522         * libspi/selection.c:
4523         Provided implementations for some selection API that was broken.
4524         
4525         * idl/Application.idl:
4526         Added registerObjectEventListener () method.
4527
4528         * THROUGHOUT:
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.
4534         
4535 2001-10-13  Louise Miller <louise.miller@sun.com>
4536
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
4540         of Bonobo.idl
4541
4542 2001-09-10  Marc Mulcahy <marc.mulcahy@sun.com
4543
4544         * libspi/component.c libspi/component.h:
4545                 Fixed typo.  Added assertions for object checks in 
4546         AccessibleComponent code.
4547
4548 2001-10-09  Bill Haneman <bill.haneman@sun.com>
4549
4550         * idl/Accessible.idl:
4551                 Added 'isEqual (Accessible *object)' 
4552         method for Accessible. (Not Yet Implemented).
4553         
4554         * idl/Registry.idl:
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.
4562
4563         * idl/Relation.idl: 
4564                 Added two new relations, RELATION_TOOLTIP_FOR and
4565         RELATION_LEAFNODE_OF.
4566
4567         * idl/State.idl:
4568                 Added new state, STATE_HAS_TOOLTIP.
4569         
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.
4578         
4579         * cspi/spi_text.c:
4580         * libspi/deviceeventcontroller.c:
4581                 Cleaned these sources up.
4582         * idl/Text.idl:
4583                 Changed return type for getCharacterAtOffset to
4584         CORBA_unsigned_long, to allow for 32-bit characters.
4585         
4586                 
4587 2001-10-08  Bill Haneman <bill.haneman@sun.com>
4588
4589         * util/Makefile.am:
4590         * idl/Makefile.am:
4591                 Fixed 'make dist' so that distro compiles...
4592         * libspi/keymasks.h:
4593                 new file.
4594         * cspi/spi-listener.c:
4595                 KeystrokeListenerCB now returns a boolean.
4596         * cspi/spi.h:
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.
4606         * cspi/spi_event.c:
4607                 Implementations of new KeystrokeListener api (from spi.h,
4608         above).
4609         * idl/Registry.idl:
4610                 Changes to key modifier mapping.
4611                 Created ControllerEventMask struct.
4612                 Made DeviceEventController derive from Bonobo::Unknown.
4613         * idl/Text.idl:
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).
4628         
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.
4632
4633         * libspi/text.c:
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
4638         pointers.
4639
4640         * libspi/text.h: minor typos corrected.
4641         * test/simple-at.c: 
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).
4648
4649 2001-10-03  Bill Haneman <bill.haneman@sun.com>
4650
4651         * libspi/keystrokelistener.h:
4652         * libspi/keystrokelistener.c:
4653                 Initial functional implementations of KeystrokeListener.
4654         * idl/Registry.idl:
4655         
4656 2001-10-05  Marc Mulcahy <marc.mulcahy@sun.com>
4657
4658         Fixed string handling for NULL strings in libspi.
4659         Added spi_freeString to free strings returned by C bindings.
4660
4661 2001-09-30  Bill Haneman <bill.haneman@sun.com>
4662
4663         * libspi/keystrokelistener.h:
4664         * libspi/keystrokelistener.c:
4665                 Began (no-op) implementations of KeystrokeListener
4666                         (see below).
4667         * libspi/deviceeventcontroller.c:
4668         * libspi/deviceeventcontroller.h:
4669                 Began creating implementations of DeviceEventController,
4670                         to handle keystroke and mouse event listening and
4671                         synthesis.
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.
4679         * libspi/desktop.c:
4680                 Added initialization of applications list (to NULL).
4681         * util/magnifier.c:
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.
4691
4692 2001-09-27  Bill Haneman <bill.haneman@sun.com>
4693
4694         * util:
4695         * util/Makefile.am: 
4696                 Created a new directory for 
4697                         accessibility-related utilities, primarily for
4698                         testing and demo purposes, but with possible
4699                         end-user utility.
4700         
4701         * util/magnifier.c:
4702         * util/magnifier.h:
4703         * util/mag_image.c:
4704         * util/mag_image.h:
4705                 Onscreen magnifier utility that
4706                         is implemented as a bonobo service.
4707         
4708         * util/mag_client.c:
4709         * util/mag_client.h:
4710                 Client-side support (simple C bindings) 
4711                         for Magnification service
4712         
4713         * util/mag_control.c:
4714                 Client program example for 
4715                         Magnification service
4716         
4717         * util/Accessibility_Magnifier.server.in:
4718                 Bonobo-activation file for the 
4719                         Magnification service.
4720         
4721         * util/idl:
4722         * util/idl/Magnifier.idl:
4723                 IDL defining the bonobo Magnification
4724                         service interface.
4725
4726         * test/simple-at.c:
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.
4730
4731                 If env variable MAGNIFIER is set, a magnifier service
4732                         will be started if one does not exist.
4733         
4734 2001-09-25  Bill Haneman <bill.haneman@sun.com>
4735
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 ?)
4740         * test/simple-at.c:
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.
4747
4748 2001-09-12  Marc Mulcahy <marc.mulcahy@sun.com>
4749
4750         * cspi/Makefile.am:
4751                 Added spi-util.c.
4752
4753         * cspi/spi-util.c:
4754                 Fixed typo
4755
4756         * cspi/spi.c:
4757                 Added interface implementation c files to list of
4758                         includes so they are included in libcspi.
4759
4760         * cspi/spi.h:
4761                 Changed prototype of AccessibleAction_doAction to return a
4762                         boolean.
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.
4777
4778         * cspi/spi_accessible.c:
4779                 Added code to return the outstanding interfaces from
4780                         Accessible_queryInterface.
4781
4782         * cspi/spi_action.c:
4783                 Fixed typos.
4784                 Corrected call to getNActions to call the c binding
4785                         for an attribute.
4786
4787         * cspi/spi_editabletext.c:
4788                 Fixed typos.
4789                 Changed name from setRunAttributes to setAttributes.
4790
4791         * cspi/spi_hyperlink.c:
4792                 Fixed typos.
4793                 Changed call to getNAnchors to correctly call the c
4794                         binding for an attribute.
4795
4796         * cspi/spi_hypertext.c:
4797                 Fixed typos.
4798                 Changed getImageDescription to correctly call the
4799                         binding for an attribute.
4800
4801         * cspi/spi_selection.c:
4802                 Changed getNSelectedChildren to correctly call the c
4803                         binding for the attribute.
4804                 Changed refSelectedChild to getSelectedChild.
4805
4806         * cspi/spi_table.c:
4807                 Fixed typos.
4808                 Changed getCaption to return an Accessible.
4809                 Fixed calls which retrieve attributes.
4810                 Changed refAt to getAccessibleAt.
4811                 Changed getNSelectedRows and getNSelectedColumns to
4812                         return longs.
4813
4814         * cspi/spi_text.c:
4815                 Changed getCharacterExtents and getPointAtOffset to accept an
4816                         AccessibleCoordType.
4817                 Fixed typos.
4818                 Changed calls which retrieve attributes.
4819                 Changed refRunAttributes to getAttributes.
4820
4821         * cspi/spi_value.c:
4822                 Fixed typos.
4823
4824         * idl/Hyperlink.idl:
4825                 Changed n_anchors attribute to nAnchors to keep naming
4826                         convention consistent.
4827
4828         * idl/Table.idl:
4829                 Made Table inherit from Bonobo::Unknown.
4830                 Added nSelectedColumns and nSelectedRows attributes.
4831
4832         * idl/Value.idl:
4833                 Made Value inherit from Bonobo::Unknown.
4834
4835         * libspi/hyperlink.c:
4836                 Change for nAnchors attributte name change.
4837
4838 2001-09-12  Marc Mulcahy <marc.mulcahy@sun.com>
4839         * cspi/Makefile.am:
4840                 Added spi-util.c.
4841
4842         * cspi/spi-util.c:
4843                 Fixed typo
4844
4845         * cspi/spi.c:
4846                 Added interface implementation c files to list of
4847                         includes so they are included in libcspi.
4848
4849         * cspi/spi.h:
4850                 Changed prototype of AccessibleAction_doAction to return a
4851                         boolean.
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.
4866
4867         * cspi/spi_accessible.c:
4868                 Added code to return the outstanding interfaces from
4869                         Accessible_queryInterface.
4870
4871         * cspi/spi_action.c:
4872                 Fixed typos.
4873                 Corrected call to getNActions to call the c binding
4874                         for an attribute.
4875
4876         * cspi/spi_editabletext.c:
4877                 Fixed typos.
4878                 Changed name from setRunAttributes to setAttributes.
4879
4880         * cspi/spi_hyperlink.c:
4881                 Fixed typos.
4882                 Changed call to getNAnchors to correctly call the c
4883                         binding for an attribute.
4884
4885         * cspi/spi_hypertext.c:
4886                 Fixed typos.
4887                 Changed getImageDescription to correctly call the
4888                         binding for an attribute.
4889
4890         * cspi/spi_selection.c:
4891                 Changed getNSelectedChildren to correctly call the c
4892                         binding for the attribute.
4893                 Changed refSelectedChild to getSelectedChild.
4894
4895         * cspi/spi_table.c:
4896                 Fixed typos.
4897                 Changed getCaption to return an Accessible.
4898                 Fixed calls which retrieve attributes.
4899                 Changed refAt to getAccessibleAt.
4900                 Changed getNSelectedRows and getNSelectedColumns to
4901                         return longs.
4902
4903         * cspi/spi_text.c:
4904                 Changed getCharacterExtents and getPointAtOffset to accept an
4905                         AccessibleCoordType.
4906                 Fixed typos.
4907                 Changed calls which retrieve attributes.
4908                 Changed refRunAttributes to getAttributes.
4909
4910         * cspi/spi_value.c:
4911                 Fixed typos.
4912
4913         * idl/Hyperlink.idl:
4914                 Changed n_anchors attribute to nAnchors to keep naming
4915                         convention consistent.
4916
4917         * idl/Table.idl:
4918                 Made Table inherit from Bonobo::Unknown.
4919                 Added nSelectedColumns and nSelectedRows attributes.
4920
4921         * idl/Value.idl:
4922                 Made Value inherit from Bonobo::Unknown.
4923
4924         * libspi/hyperlink.c:
4925                 Change for nAnchors attributte name change.
4926
4927
4928 2001-09-05  Marc Mulcahy <marc.mulcahy@sun.com>
4929
4930         implementations-- made server implementations own AtkObject pointers
4931         rather than their respective AtkInterrface pointers to fix
4932         refcounting.  AtkHyperlink is still broken.
4933
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()
4942         * test/simple-at.c:
4943                 Added festival support, used if environment variable
4944                         FESTIVAL is set.
4945         
4946 2001-09-04  Bill Haneman <bill.haneman@sun.com>
4947
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.
4963         
4964 2001-09-04  Marc Mulcahy <marc.mulcahy@sun.com>
4965         
4966         * Added files:
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 
4971             interfaces.
4972
4973 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
4974         
4975         * idl/Action.idl:
4976             changed return value of Action from void to boolean to 
4977             bring in line with ATK.
4978
4979         * idl/Text.idl:
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.
4985
4986         * Added files:
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.
4995  
4996 2001-09-04  Bill Haneman <bill.haneman@sun.com>
4997
4998         * idl/Action.idl:
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.
5005         * idl/Image.idl:
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 
5011                 to attributes.
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.
5017
5018 2001-08-24  Mark McLoughlin <mark@skynet.ie>
5019
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.
5024
5025         * configure.in: require ORBit-2.3.94 for
5026         this behaviour.
5027
5028 2001-08-21  Bill Haneman <bill.haneman@sun.com>
5029
5030         Tagged CVS repository 'EA_1_0'.
5031         * README.EARLY_ACCESS:
5032         Alphabetized acknowledgements list, and
5033         added someone.
5034         Listed some known dependencies of at-spi.
5035
5036 2001-08-20  Bill Haneman <bill.haneman@sun.com>
5037
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.
5043         * cspi/Makefile.am:
5044         * cspi/spi_main.c:
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.
5054         
5055 2001-08-20  Bill Haneman <bill.haneman@sun.com>
5056
5057         * docs/Makefile.am:
5058         * docs/at-spi-docs.sgml:
5059         * docs/at-spi-sections.txt:
5060         * configure.in:
5061         Initial checkins/modifications for gtk-doc generation.
5062         * cspi/spi.h:
5063         * cspi/spi.c:
5064         Added (missing) interface query methods to Accessible's C binding.
5065         * cspi/spi-impl.h:
5066         Added GenericInterface type definition.
5067         * test/simple-at.c:
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.
5078
5079 2001-08-19  Bill Haneman <bill.haneman@sun.com>
5080
5081         * cspi/spi.h:
5082         * cspi/spi.c:
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
5090                                name.
5091
5092         * cspi/spi.h:
5093         Added gtk-doc documentation for all currently implemented
5094         methods in the C bindings API.
5095
5096 2001-08-18  Bill Haneman <bill.haneman@sun.com>
5097
5098         * Makefile.am : changed build order to build test last.
5099         * cspi/spi.h :
5100         * cspi/spi_main.c :
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.
5107         * idl/Event.idl :
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.
5114         
5115
5116 2001-08-18  Bill Haneman <bill.haneman@sun.com>
5117
5118         * Makefile.am: 
5119         * configure.in :
5120         * cspi/Makefile.am :
5121         Added makefile support for at-spi/cspi directory.
5122         * cspi/spi.h : 
5123         * cspi/spi-impl.h :
5124         * cspi/spi-listener.h : (NEW FILE)
5125         Added support for/use of spi-listener.h.
5126         * cspi/spi_main.c :
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).
5136
5137 2001-08-18  Bill Haneman <bill.haneman@sun.com>
5138
5139         * libspi/accessible.c: 
5140         Add implementation for get_index_in_parent().
5141         * cspi/spi.h : 
5142         Added #include of "spi-roletypes.h", and
5143         added enumerated type AccessibleCoordType.
5144         Added definition for KeystrokeListener (function type).
5145
5146         ADDED FILES:
5147         * cspi/spi-statetypes.h :
5148         * cspi/spi-roletypes.h :
5149         * cspi/spi-impl.h :
5150         Added these headers, used by spi.h.
5151         * cspi/spi_main.c : 
5152         Added code (NOTE: not yet built by make).
5153
5154 2001-08-18  Mark McLoughlin <mark@skynet.ie>
5155
5156         * libspi/Makefile.am: generate imodule
5157         at the same time as other idl compiler 
5158         generated files. 
5159
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.
5170         * test/at.c :
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.
5175         
5176
5177 2001-08-16  Bill Haneman <bill.haneman@sun.com>
5178
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 
5183         just minor+detail.
5184         Removed a useless call to an ORBit_ method.
5185         * at-bridge/bridge.c :
5186         Removed unused local sbuf[] variable.
5187         * test/at.c :
5188         We now register for Gtk:GtkWidget:button_press_event 
5189         events as well as "focus:" events.
5190         * cspi/spi.h :
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.
5194
5195 2001-08-16  Michael Meeks  <michael@ximian.com>
5196
5197         * configure.in: use AM_GLIB_GNU_GETTEXT.
5198
5199         * Makefile.am (SUBDIRS): kill intl.
5200
5201 2001-08-15  Michael Meeks  <michael@ximian.com>
5202
5203         * registryd/Makefile.am: s/oaf/server/ relocate info file.
5204
5205         * configure.in: upd.
5206
5207         * configure.in: depend on a recent bonobo-activation that
5208         will find our server files ...
5209
5210 2001-08-16  Bill Haneman <bill.haneman@sun.com>
5211
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
5222         event source.
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.
5240
5241 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5242
5243         * libspi/Makefile.am,
5244           registryd/Makefile.am,
5245           at-bridge/Makefile.am.
5246           test/Makefile.am, configure.in:
5247         reverse previous changes.
5248
5249         * /idl/Image.idl: fix typo.
5250
5251         * test/Makefile.am: put DEBUG_FLAGS
5252         in CFLAGS.
5253
5254 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5255
5256         * test/app.c: use argv[0] instead of
5257         g_type_prgname.
5258
5259 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5260
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}.
5267
5268         * README: format.
5269
5270 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5271         
5272         * configure.in, libspi/Makefile.am:
5273         Change IDL path checking for bonobo-activation
5274         as opposed to oaf.
5275
5276 2001-08-15  Bill Haneman <bill.haneman@sun.com>
5277
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.
5299         
5300 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5301
5302         * at-bridge/Makefile.am: link against
5303         ../libspi/libspi.la instead of -lspi.
5304
5305         * at-spi/test/app.c: include 
5306         bonobo-activation.h. Use a default appname
5307         if one is not provided.
5308
5309 2001-08-14  Bill Haneman <bill.haneman@sun.com>
5310
5311         * idl/Registry.idl : temporarily changed register_Application
5312         to oneway, to work around issue with initial registration 
5313         re-entrancy.
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 
5317         on registration.
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).
5323
5324 2001-08-13  Bill Haneman <bill.haneman@sun.com>
5325
5326         CHANGES:
5327         * libspi/application.c:
5328         Added implementations for get/set id, get_toolkitName,
5329         get_version.
5330         * registryd/registryd.c :
5331         * test/at.c :
5332         * test/app.c :
5333         * Makefile.am :
5334         Converted from use of OAF to bonobo-activation.
5335         * libspi/desktop.h :
5336         * libspi/desktop.c :
5337         * test/app.c :
5338         Removed references to atksimpleobject, since base atkobject
5339         implementation now provides functionality we need.
5340         * libspi/atksimpleobject.c :
5341         * libspi/atksimpleobject.h :
5342         Removed.
5343         
5344         ADDITIONS:
5345         * at-bridge
5346         * at-bridge/Makefile.am
5347         * at-bridge/bridge.c
5348         * configure.in
5349         * Makefile.am
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.
5356         
5357 2001-08-10  Mark McLoughlin <mark@skynet.ie>
5358
5359         * po/Makefile.in.in: Remove. Again. If this
5360         doesn't get autogenerated - you need to update
5361         gnome-common.
5362
5363 2001-08-07  Mark McLoughlin <mark@skynet.ie>
5364
5365         * po/Makefile.in.in: Add. Again.
5366
5367 2001-07-31  Bill Haneman <bill.haneman@sun.com>
5368
5369         * libspi/accessible.c : added support for 'description' property.
5370         * libspi/accessible.c
5371         * libspi/desktop.c
5372         * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
5373             (since the two are now equivalent in libbonobo)
5374         * idl/Action.idl
5375         * idl/Component.idl
5376         * idl/Hyperlink.idl
5377         * idl/Image.idl
5378         * idl/Selection.idl
5379         * idl/Table.idl
5380         * idl/Text.idl
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)
5387
5388 2001-07-28  Anders Carlsson  <andersca@gnome.org>
5389
5390         * libspi/accessible.c (accessible_object_finalize): Change
5391           g_free to g_object_unref since the AtkObject is a GObject.
5392
5393 2001-07-30  Bill Haneman <bill.haneman@sun.com>
5394
5395         * idl/Accessibility.idl: add new IDL files
5396         
5397         Added:
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
5407         
5408 2001-07-27  Michael Meeks  <michael@ximian.com>
5409
5410         * po/Makefile.in.in: remove autogenerated file from CVS.
5411
5412         * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
5413         type library.
5414
5415         * idl/Registry.idl: include guard.
5416
5417         * idl/Accessibility.idl: Add, and include all the other IDL
5418         files.
5419
5420         * idl/*.idl: remove mass of pragmas etc.
5421
5422 2001-07-26  Michael Meeks  <michael@ximian.com>
5423
5424         * registryd/Makefile.am (registryd_SOURCES): remove
5425         redundant at_.
5426
5427 2001-07-27  Mark McLoughlin <mark@skynet.ie>
5428
5429         * libspi/.cvsignore, registryd/.cvsignore,
5430           test/.cvsignore: updated.
5431
5432         * po/Makefile.in.in: gettext update.
5433
5434 2001-07-25  Bill Haneman <bill.haneman@sun.com>
5435
5436         * initial CVS checkin
5437
5438 2001-06-29  Michael Meeks  <michael@ximian.com>
5439
5440         * configure.in: add AM_CONFIG_HEADER to gen config.h
5441
5442         * acconfig.h: add.
5443