3155916622234b05bd83eb5054fb66eccb2797d6
[platform/core/uifw/at-spi2-atk.git] / ChangeLog
1 2002-12-02  Bill Haneman  <bill.haneman@sun.com>
2
3         Removed some of the more dangerous workarounds from
4         previous commit; they are only needed by GOK, which
5         in reality should be using another method to accomplish
6         the goals.  So on reconsideration some of the workarounds
7         need to be reverted:
8         
9         * registryd/deviceeventcontroller.c:
10         (spi_keycodes_contain, spi_dec_init_keycode_list): 
11         Removed these methods, used only by a nasty hack to try
12         and detect whether a key synthesis should be allowed
13         to reset the XKB latch state or not. This code was only
14         required to work around an interaction between GOK,
15         button events, and XKB.
16         (impl_generate_key_event):
17         Removed hack at end of key generation that tried to
18         "do the right thing" if XKB latch keys were generated
19         in the midst of button press/release pairs.  
20
21         * configure.in:
22         Added a check for HAVE_XINPUT.  Not normally used yet.
23
24 2002-11-25  Bill Haneman  <bill.haneman@sun.com>
25
26         Workarounds and fixes for mouse event/XKB interaction.
27         
28         * registryd/deviceeventcontroller.c:
29         (spi_keycodes_contain, spi_dec_init_keycode_list): 
30         New internal methods.
31         (spi_dec_set_unlatch_pending):
32         Split the method that tells XKB to expect an
33         unlatch (and revert it) out of the rest of the
34         event handling code.  This method is called by the
35         two mouse event handlers (the poll and the filter).
36         (spi_dec_update_and_emit, spi_dec_mouse_check): 
37         New methods split from spi_dec_poll_mouse_moved.
38         The second one is now called from inside the filterFn
39         when an XKB delatch event is received, to determine 
40         whether to revert the delatch or not.
41         (spi_poll_mouse_moved): Refactor; also we can now
42         properly handle the case where multiple button states
43         have changed between polling cycles and we didn't get
44         notified due to another client's grab.
45         (global_filter_fn): 
46         Synchronize the server while handling an XKB notification.
47         Ugly, but apparently necessary to avoid nasty races.
48         Check the mouse state on receipt of an XKB latch change,
49         to decide whether to revert the latch or not. (Latches are
50         reverted if there is an immediately preceding mouse button
51         event that a client has consumed, in which case we don't want
52         the user to see the side-effect of the event).
53         (spi_device_event_controller_forward_mouse_event):
54         Check for modifier events and fire before resetting mouse_mask_state,
55         prevents losing modifier events.
56
57         (impl_generate_keyboard_event):
58         If we've just generated a keyboard event for a non-shift key,
59         we don't want to revert the pending XKB latch. 
60         Otherwise, check the modifier state (via a call to 
61         spi_dev_mouse_check) and set the relatch mask to 
62         that state before returning.
63         
64 2002-11-24  Bill Haneman  <bill.haneman@sun.com>
65
66         * NEWS: 
67         Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
68         retagged).
69         
70         * atk-bridge/bridge.c:
71         (spi_atk_register_event_listeners):
72         Don't re-register for ATK events if the registry has died
73         and the app needs to re-register; the ATK listeners are in
74         process and doing so will cause duplicate emission.
75
76         * registryd/deviceeventcontroller.c:
77         (spi_poll_mouse_moved):
78         Reformat the source, detect and emit multiple button-change
79         events (i.e. if multiple buttons have changed between poll
80         intervals).
81         Add code to detect mouse-down events even when the pointer
82         is grabbed; workaround for GOK bug 98420.
83         (spi_controller_register_with_devices):
84         Call XTestGrabControl with 'impervious' flag set to True,
85         allows us to synthesize events and query the pointer even during
86         an active grab by another client.
87         (spi_device_event_controller_forward_mouse_event):
88         Set the mouse_mask_state to the mouse_button_state from
89         the intercepted event, to synchronize the grab listener with
90         the poll state.
91         
92 2002-11-20  Bill Haneman  <bill.haneman@sun.com>
93
94         * cspi/spi_accessible.c:
95         (AccessibleRole_getName):
96         Added necessary strings for making this (deprecated) 
97         method work with the new role types. 
98         (init_role_table, role_table):
99         Added definition of SPI_ROLE_APPLICATION.
100
101         * libspi/spi-roletypes.h:
102         Added SPI_ROLE_APPLICATION.
103
104         * idl/Accessibility_Role.idl:
105         Added ROLE_APPLICATION. 
106
107         * docs/reference/cspi/at-spi-cspi-decl.txt:
108         Added SPI_ROLE_APPLICATION to docs.
109
110 2002-11-20  Padraig O'Briain  <padraig.obriain@sun.com>
111
112         * cspi/spi_accessible.c
113         (cspi_init_role_table): Do not write beyond end of role_table.
114         (Accessible_getRole): Use correct type for value returned by
115         Accessibility_Accessible_getRole().
116
117         * libspi/accessible.c (spi_init_role_lookup_table): Do not write
118         beyond end of role_table. (This fixes bug #98269)
119
120         * libspi/application.c: Add include file spi-private.h for 
121         definition of spi_init_any_nil.
122
123 2002-11-19 Bill Haneman <bill.haneman@sun.com>
124
125         FIX for bug 99024.
126         
127         * libspi/spi-private.h:
128         Added DGB() macro, and extern int _dbg declaration.
129         
130         * registryd/registry.c:
131         (definitions) storage for _dbg.
132         (spi_registry_init):
133         Get environment variable "AT_SPI_DEBUG".
134         (spi_registry_set_debug):
135         New method, to initialize _dbg value.
136         (spi_listener_struct_new, spi_registry_object_finalize):
137         (notify_listeners_cb):
138         Changed fprintfs to use DBG and g_warning().
139
140         * registryd/deviceeventcontroller.c:
141         (_deregister_keygrab, spi_controller_register_device_listener):
142         Changed debug/warning messages to use DBG macro.
143
144         * libspi/listener.c:
145         (impl_notify_event):
146         Changed warning messages to use DBG macro and g_warning().
147
148         * atk-bridge/bridge.c:
149         (atk_bridge_init, spi_atk_bridge_get_registry):
150         (spi_atk_bridge_exit_func):
151         (spi_atk_bridge_property_event_listener):
152         Changed status, warning, and error messages to use
153         g_warning, g_message, and DBG macros.
154
155         (atk_bridge_init):
156         Read the state of the AT_SPI_DEBUG environment variable
157         and set a local '_dbg' accordingly.
158         
159 2002-11-19 Bill Haneman <bill.haneman@sun.com>
160
161         FIXES for 98836, 98842, other bugs.
162         
163         * configure.in:
164         Revved to 1.1.4, interface-age=4, binary-age=4.
165
166         * registryd/deviceeventcontroller.c:
167         (statics):
168         Fixed crasher bug in last_mouse_pos initialization.
169
170         * registryd/registry.c:
171         (desktop_add_application, desktop_remove_application):
172         Added (and then commented out) some support for
173         object context marshalling. [TODO]
174
175         * atk-bridge/bridge.c:
176         (spi_atk_bridge_event_context_create):
177         Commented out object context creation until it can
178         be properly tested and debugged.
179
180         * registryd/registry.c:
181         (impl_registry_notify_event):
182         Fixed crasher bug, we were calling 
183         spi_re_entrant_list_foreach () with an empty list.
184
185 2002-11-18  Bill Haneman <bill.haneman@sun.com>
186         
187         * idl/Accessibility_Action.idl:
188         * idl/Accessibility_Component.idl:
189         * idl/Accessibility_Desktop.idl:
190         * idl/Accessibility_Event.idl:
191         * idl/Accessibility_Hyperlink.idl:
192         * idl/Accessibility_Image.idl:
193         * idl/Accessibility_Relation.idl:
194         * idl/Accessibility_Selection.idl:
195         * idl/Accessibility_State.idl:
196         * idl/Accessibility_Value.idl:
197         Updated unimplemented slot count to minimum of
198         four for all interfaces, for ABI freeze. 
199
200         * idl/Accessibility_EditableText.idl:
201         * idl/Accessibility_Text.idl:
202         Updated unimplemented slot count to six
203         for ABI freeze. 
204         
205         * idl/Accessibility_Registry.idl:
206         Updated unimplemented slot count to six
207         (also for DeviceEventController), 
208         for ABI freeze. 
209
210         * idl/Accessibility_Table.idl:
211         Updated unimplemented slot count to eight,
212         for ABI freeze. 
213
214         * idl/Accessibility_Event.idl:
215         Added CORBA_any "any_data" member to Event struct.
216
217         * idl/Accessibility_Event.idl:
218         Added CORBA_any "any_data" member to Event struct.
219
220         * atk-bridge/bridge.c:
221         (statics):
222         atk_signal_text_changed, atk_signal_child_changed,
223         signal ids queried from gtype system.
224         (AtkBridgeEventContextType): New enum.
225         (AtkBridgeEventContextData): New struct.
226         (AtkBridgeEventContext): New struct.
227         (atk_bridge_init_event_type_consts):
228         New method, initializes type contants for comparison 
229         prior to emit_eventv.
230         (atk_bridge_event_context_init): New method,
231         initializes a CORBA_any from an AtkBridgeEventContext.
232         (atk_bridge_focus_tracker): Call spi_init_any_nil to
233         initialize the event.any_data struct.
234         (spi_atk_bridge_event_context_create): New method,
235         creates an AtkBridgeEventContext from signal/event info.
236         (spi_atk_bridge_event_context_free): New method.
237         (spi_atk_emit_eventv): Changed to take an 
238         AtkBridgeEventContext parameter. We now initialize
239         the event.any_data member prior to notifying the 
240         Registry, via the AtkBridgeEventContext.
241         (spi_atk_bridge_property_event_listener):
242         (spi_atk_bridge_state_event_listener):
243         Match emit_eventv signature.
244         (spi_atk_bridge_object_event_listener):
245         Match emit_eventv signature, and create an
246         event context from the event details.
247         Free the event context afterwards.
248         (spi_atk_bridge_window_event_listener):
249         Create an event context, pass it to the
250         emit_eventv call.
251         
252         * cspi/spi_event.c:
253         (AccessibleEvent_getContextString):
254         (AccessibleEvent_getContextObject):
255         New methods, allow query of AccessibleEvent objects
256         for more context details (via the "any_data" member 
257         of the Event struct, above).
258         
259         * cspi/spi.h:
260         Definitions for AccessibleEvent_getContextString
261         and AccessibleEvent_getContextObject.
262
263         * cspi/spi_listener.h:
264         (InternalEvent): New struct.
265
266         * cspi/spi_event.c:
267         (AccessibleEvent_getContextString):
268         (AccessibleEvent_getContextObject):
269         Implementations of new methods, for obtaining
270         additional context information from some event types.
271
272         * cspi/spi_registry.c:
273         (SPI_registerGlobalEventListener):
274         Added mention of active-descendant-changed event in docs.
275
276         * cspi/cspi-bonobo-listener.c:
277         (cspi_event):
278         Marshal the any into the AccessibleEvent via
279         InternalEvent.
280         
281         * libspi/spi-private.h:
282         #include <orbit/orbit.h>
283         (spi_init_any_nil):
284         (spi_init_any_string):
285         (spi_init_any_object):
286         New convenience function declarations.
287
288         * libspi/util.c:
289         (spi_init_any_nil):
290         (spi_init_any_string):
291         (spi_init_any_object):
292         New convenience function implementations.
293
294         * registryd/deviceeventcontroller.c:
295         (spi_poll_dec_mouse_moved):
296         (spi_device_event_controller_forward_mous_event):
297         Initialize any_data member of event.
298         (spi_deregister_controller_device_listener):
299         Fix incorrect param pass which was preventing deregistration.
300
301         * registryd/registry.c:
302         (desktop_add_application):
303         (desktop_remove_application):
304         Add object data to event's any_data before dispatch.
305         (parse_event_type):
306         Fix for error messages from GAIL.
307         
308         * test/event-listener-test.c:
309         Test new ContextString and "any_data" API:
310         (report_text_event): New method query and output context string.
311         (main): register a new text listener with report_text_event
312         callback.
313
314 2002-11-19  Darren Kenny  <darren.kenny@sun.com>
315
316         Fixes for bugs 98127 and 97914.
317         * cspi/spi-roletypes.h:
318         Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
319         SPI_ROLE_RULER
320         * cspi/spi-statetypes.h:
321         Added SPI_STATE_MANAGES_DESCENDANTS
322         * cspi/spi.h:
323         Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
324         SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
325         * cspi/spi_accessible.c:
326         Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
327         Added mapping from SPI_STATE_MANAGES_DESCENDANTS to 
328         Accessibility_STATE_MANAGES_DESCENDANTS
329         * libspi/accessible.c:
330         Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
331         Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} 
332         As requested by Bill, I also cleaned up the alignment.
333         * libspi/relation.c:
334         Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
335         EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
336         * libspi/stateset.c:
337         Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
338         Accessibility_STATE_MANAGES_DESCENDANTS
339         * docs/reference/cspi/tmpl/spi_accessible.sgml:
340         Document changes reflecting modifications to roles.
341         * docs/reference/cspi/tmpl/spi_relation.sgml:
342         Document changes reflecting modifications to relations.
343         * docs/reference/cspi/tmpl/spi_stateset.sgml:
344         Document changes reflecting modifications to states.
345
346 2002-11-17  Bill Haneman <bill.haneman@sun.com>
347
348         * configure.in:
349         Revved to 1.1.3, interface-age=3, binary-age=3.
350         Added REBUILD macro.
351
352         * test/Makefile.am:
353         Removed accessx-gui from the tests, since we have a nice
354         keyboard accessibility capplet now :-)
355
356         * test/keysynth-demo.c:
357         (increment_scan): removed do-nothing default: case,
358         silences warning.
359
360         * test/visual-bell.c:
361         (main) : removed do-nothing default: case, 
362         silences warning.
363
364         * cspi/spi_action.c:
365         (AccessibleAction_getKeyBinding_): 
366         Documented keybinding string format.
367         FIX for bug 97916.
368
369         * cspi/spi_text.c:
370         (AccessibleText_getAttributes):
371         Documented the text attribute string format.
372         It's changed to use semicolon delimiters also,
373         to prevent clashes with CSS attributes, but the old
374         trick of looking for ", " strings will still work
375         (as unreliably as ever).  Fix for bug related to 97916.
376
377         * cspi/spi_event.c:
378         Include <cspi/bonobo/cspi-bonobo-listener.h>
379         Fixes build warning.
380         (SPI_freeAccessibleKeySet):
381         (AccessibleKeystrokeListener_addCallback):
382         (AccessibleKeystrokeListener_removeCallback):
383         Modify to use AccessibleDeviceListener API internally,
384         instead of AccessibleKeystrokeListener.
385         
386         * idl/Accessibility_Event.idl:
387         Added two more empty slots to EventListener (for a total of four).
388
389         * idl/Accessibility_Accessible.idl:
390         Added four empty slots to Accessible interface.
391
392 2002-11-15  Bill Haneman <bill.haneman@sun.com>
393
394         * idl/Accessibility_Registry.idl:
395         (KeyEventType, EventType):
396         Marked KeyEventType as deprecated; it duplicates
397         functionality of EventType, which has been extended to
398         include Mouse-button events.
399         (KeyEventTypeSeq): defined in terms of EventType.
400         (registerDeviceEventListener, deregisterDeviceEventListener):
401         New methods, for managing listeners to device events,
402         which potentially may consume them.     
403         
404         * cspi/spi-impl.h:
405         Added definition for AccessibleDeviceListener.
406
407         * cspi/spi-listener.h:
408         (enum AccessibleDeviceEventType):
409         Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
410         Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
411         for backwards compat.
412         (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
413         and typedef'd AccessibleKeystroke to it for back-compat.
414         (AccessibleDeviceListenerCB):
415         New function prototype typedef.
416
417         * cspi/spi.h:
418         (AccessibleDeviceEventMask): New typedef.
419         (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
420         (AccessibleKeyMaskType): 
421         Set equivalent to AccessibleModifierMaskType for back-compat.   
422         (SPI_createAccessibleKeystrokeListener):
423         (AccessibleKeystrokeListener_unref):
424         Deprecated in favor of equivalent (better-named) new API below..
425         keystroke listeners are like all device listeners.
426         (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
427         New API names for old features :-).
428         (AccessibleDeviceListener_addCallback):
429         (AccessibleDeviceListener_removeCallback): 
430         (SPI_registerDeviceEventListener): 
431         (SPI_deregisterDeviceEventListener): 
432         New methods.
433         
434         * cspi/spi_event.c:
435         (SPI_createAccessibleKeystrokeListener):
436         Use new preferred API, cspi_device_listener_new() and
437         cspi_device_listener_add_cb().
438         (AccessibleKeystrokeListener_removeCallback):
439         Use new preferred API, cspi_device_listener_remove_cb().
440         (AccessibleKeystrokeListener_unref):
441         Use new preferred API, cspi_device_listener_unref().
442         (SPI_createAccessibleDeviceListener):
443         (AccessibleDeviceListener_addCallback):
444         (AccessibleDeviceListener_removeCallback):
445         Implementation of new API.
446
447         * cspi/spi_registry.c:
448         (SPI_registerDeviceEventListener):
449         (SPI_deregisterDeviceEventListener):
450         Implementation of new API.  Fixed memory leak and removed need to
451         allocate EventTypeSeq (thanks Michael for catching this).
452         Squashed a wayward CORBA_exception_free that shouldn't get called.
453
454         * cspi/bonobo/cspi-bonobo-listener.c:
455         (EventHandler):
456         Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
457         (cspi_key_event): renamed to cspi_device_event().
458         Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
459         Extended to handle mouse button events as well as key events.
460         (CSpiKeystrokeListener):
461         Class superceded by CSpiDeviceListener.
462         (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
463         These internal APIs changed to "*device_listener" from "*keystroke_listener".
464
465         * cspi/bonobo/cspi-bonobo-listener.h:
466         (CSpiKeystrokeListener):
467         Class superceded by CSpiDeviceListener.
468         (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
469         These internal APIs changed to "*device_listener" from "*keystroke_listener".
470
471         * libspi/Makefile.am:
472         Replaced keystrokelistener.h and keystrokelistener.c
473         with devicelistener.h and devicelistener.c; keystrokelisener.h
474         stub retained for back-compat.
475
476         * libspi/keystrokelistener.c:
477         Removed file.
478
479         * libspi/libspi.h:
480         Replaced inclusion of keystrokelistener.h with devicelistener.h.        
481
482         * registryd/deviceeventcontroller.c:
483         (DEControllerListener): Added Accessibility_EventTypeSeq member.
484         (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
485         (DEControllerPrivateData): Added xkb settings data.
486         (spi_dec_poll_mouse_moved): Changed to dispatch device events for
487         button release events (which can't be captured via XGrabButton).
488         Don't dispatch via the 'normal' event mechanism if the device event was
489         consumed.
490         (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
491         Handle the typeseq data in its new location (see above).
492         (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
493         New methods, for "generic" device listeners.
494         (spi_controller_register_device_listener):
495         Now handle mouse event listeners as well as key listeners.
496         (spi_controller_notify_mouselisteners):
497         New internal method.
498         (spi_device_event_controller_forward_mouse_event):
499         Now we notify mouse device listeners as well as generating the
500         non-consumable "mouse:" events.  
501         (global_filter_fn):
502         We must check and restore the XKB
503         modifier map if we consume the event, since the act of triggering
504         a mouse event will normally reset the XKB latch.  This is required for 
505         instance by GOK.
506         (spi_controller_register_with_devices):
507         Load the XKB settings when registering, and register for XKB 
508         state notify events. 
509         (spi_key_eventtype_seq_contains_event):
510         Renamed spi_eventtype_seq_contains_event, since it's used
511         internally for all device event types now.
512         (spi_key_event_matches_listener):
513         Uses spi_eventtype_seq_contains_event now.
514         (spi_device_event_controller_object_finalize):
515         Free the private data and the XkbKeyboard struct.
516         (impl_register_device_listener, impl_deregister_device_listener):
517         Implementation of new IDL.
518         (spi_deregister_controller_device_listener):
519         New internal method.
520         (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
521         More efficient implementation, we don't have to create a new
522         XkbControls structure every time we query.
523         (spi_device_event_controller_class_init):
524         Initialize the epv entries for the new IDL.  Assign the 
525         "spi-dec-private" quark.
526         (spi_device_event_controller_init):
527         Initialize the private data.
528         (spi_device_event_controller_forward_key_event):
529         Removed a bogus CORBA_exception_free() call.
530         
531         * registryd/deviceeventcontroller.h:
532         Replaced inclusion of keystrokelistener.h with
533         devicelistener.h.
534
535         * test/event-listener-test.c:
536         (report_mouse_event):
537         New method.
538         (main):
539         Added mouse-event device listener.
540
541         * test/test-simple.c:
542         (create_test_window):
543         Fixed regression (we were instantiating a GtkRange,
544         which is now an abstract class).  Also fixed to match
545         existing AtkRole names, this seems to have changed in ATK
546         awhile ago; too late now I think, and the new
547         mechanism is at least elegant and consistent with the
548         glib enum "nick" APIs.  
549
550 2002-11-15  Darren Kenny  <darren.kenny@sun.com>
551
552         * idl/Accessibility_Relation.idl:
553         add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
554         RELATION_EMBEDS,RELATION_EMBEDDED_BY
555         * idl/Accessibility_Role.idl:
556         add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
557         * idl/Accessibility_State.idl:
558         add STATE_MANAGES_DESCENDANTS
559         * test/event-listener-test.c:
560         Added a listener for active-descendant events.
561
562 2002-11-15  Padraig O'Briain  <padraig.obriain@sun.com>
563
564         * atk-bridge/bridge.c
565         (atk_bridge_init): If application is Bonobo component wait until top
566         level is added before registering
567         (spi_atk_bridge_do_registration): New function which contains code, 
568         formerly in atk_bridge_init, to do application registration.
569         (spi_atk_bridge_toplevel_added): Signal called when top level
570         added to Bonobo component
571
572         This fixes bug #83134.
573
574 2002-10-23  Vitaly Tishkov  <tvv@sparc.spb.su>
575
576         * registryd/deviceeventcontroller.c
577         Fixed compilation error caused by calling gettimeofday() 
578         with 1 parameter
579
580 2002-10-18  Bill Haneman  <bill.haneman@sun.com>
581
582         BUGFIX for #95828.
583
584         * acconfig.h:
585         Added template for HAVE_XKB.
586         
587         * configure.in:
588         Changes to check for XKB, and to set the HAVE_XKB #define if it 
589         is available.
590         
591         * libspi/listener.c:
592         ()impl_notify_event): Make failure to get event source name
593         nonfatal.
594
595         * registryd/deviceeventcontroller.c:
596         (#include): include X11/XKBlib.h.
597         (DEControllerPrivateData) : New struct.
598         (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) : 
599         New methods.
600         (dec_synth_keycode_press) (dec_synth_keycode_release):
601         New methods; split the key synthesis code into these methods.
602         They check XKB settings before determining the "time" values to
603         pass to Xtest; this fixes bug #95828.
604         (impl_generate_keyboard_event): Changed to use methods above,
605         instead of callng Xtest directly.
606         (spi_device_event_controller_init): Initialize new privae struct s
607         above.
608         (spi_device_event_controllr_object_finalize):
609         Free the (new) private data.
610
611         * registryd/deviceeventcontroller.h:
612         Add new gpointer to end of struct data.
613
614 2002-10-16  Bill Haneman  <bill.haneman@sun.com>
615
616         * configure.in:
617         Incremented revision to 1.1.2, SONAME is still '.so', library
618         extensions are ".so.0.0.2".
619
620         * registryd/deviceeventcontroller.c:
621         FIXES FOR #93592 and #95940.
622         (statics):  renamed mouse_button_state to mouse_mask_state, 
623         added key_modifier_mask.
624         (spi_dec_poll_mouse_moved): 
625         Added key modifier checks, and emit "keyboard:modifiers"
626         events when the key modifiers currently in use change.
627         Also generate "mouse:abs" events periodically, even if the mouse
628         is stationary (should we?).
629         Alternatively we could generate "mouse:abs" events for either all
630         mouse movements, or every 'nth' mouse movement, or at the
631         beginning and end of every "active" mouse period.
632         
633         * test/event-listener-test.c:
634         (main): Added listener for "keyboard:modifiers" events.
635         
636 2002-10-15  Bill Haneman  <bill.haneman@sun.com>
637
638         * libspi/keymasks.h:
639         Added key mask #defines for mouse buttons; e.g.
640         SPI_KEYMASK_BUTTON1, etc.
641
642         * configure.in:
643         Incremented dependency on ATK to version 1.1.0. (This dependency
644         is probably premature but will soon be real enough).
645
646 2002-10-11  Padraig O'Briain  <padraig.obriain@sun.com>
647
648         * libspi/hyperlink.[ch]
649         (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
650         (get_hyperlink_from_servant): Check object is AtkHyperlink not 
651         AtkObject.
652
653         * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
654         AtkObject.
655
656         Fixes bug #95517.
657
658 2002-10-10  Padraig O'Briain  <padraig.obriain@sun.com>
659
660         * registryd/deviceeventcontroller.c
661         (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
662         events to be ignored.
663         (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
664         keyboard_mode so that XAllowEvents() can be called.
665
666         Fixes bug #93658.
667
668 2002-10-08  Padraig O'Briain  <padraig.obriain@sun.com>
669
670         * cspi/spi-accessible.c: Correct names of roles returned by
671         AccessibleRole_getName(). Fixes bug #95055.
672
673 2002-10-03  Padraig O'Briain  <padraig.obriain@sun.com>
674
675         * cspi/spi_main.c (report_leaked_ref): Report address of leaked
676         object.
677
678         * registryd/registry.c
679         (desktop_remove_application: Write diagnostic message to stderr for
680         consistency.
681
682         (impl_accessibility_registry_deregister_global_event_listener):
683         Correct size of lists array. This addresses bug #94555).
684
685 2002-09-24  Padraig O'Briain  <padraig.obriain@sun.com>
686
687         * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
688         in some role names.
689
690 2002-09-19  Padraig O'Briain  <padraig.obriain@sun.com>
691
692         * registryd/Makefile: Add CLEANFILES so that .server file is removed
693         on make clean
694
695         * registryd/registry.c (impl_registry_notify_event): Remove
696         unnecessary call to parser_event_type().
697
698         * docs/reference/cspi/tmpl/spi_component.sgml:
699         Add reference to SPI_LAYER_WINDOW.
700
701 2002-09-17  Padraig O'Briain  <padraig.obriain@sun.com>
702
703         * registryd/registry.c
704         (desktop_add_application): Remove leak.
705         (desktop_remove_application): Remove leak.
706         (parser_event_type): Remove leak.
707
708 2002-09-16  Padraig O'Briain  <padraig.obriain@sun.com>
709
710         * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
711         bogus call to CORBA_string_dup(). Also removed unnecessary
712         g_string_dup/g_free calls.
713         
714 2002-09-13  Bill Haneman <bill.haneman@sun.com>
715
716         * registryd/deviceeventcontroller.c:
717         spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
718
719         * test/event-listener-test.c:
720         main: commented out three redundant listeners, to reduce output
721         noise. (They still are potentially useful for testing).
722         
723
724 2002-09-13  Michael Meeks  <michael@ximian.com>
725
726         * Update all the copyrights to include Ximian.
727
728 2002-09-06  Mark McLoughlin  <mark@skynet.ie>
729
730         * cspi/spi.h: add SPI_LAYER_WINDOW.
731
732         * cspi/spi_component.c: (AccessibleComponent_getLayer):
733         add Accessibility_LAYER_WINDOW case.
734
735         * idl/Accessibility_Component.idl: add LAYER_WINDOW.
736
737         * libspi/component.c: (impl_accessibility_component_get_layer):
738         add ATK_LAYER_WINDOW case.
739
740 2002-08-28  Bill Haneman <bill.haneman@sun.com>
741
742         * configure.in: incremented micro version.
743
744         * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
745
746 2002-08-20  Bill Haneman <bill.haneman@sun.com>
747
748         * HACKING: 
749         Clarified and reworded our commit policy.
750
751         * NEWS:
752         Started an API "todo" addition list for 2.2.
753
754         * libspi/text.c:
755         (impl_getSelection):
756         Free char pointer from atk_text_get_selection, which was being leaked.
757
758 2002-08-19  Bill Haneman <bill.haneman@sun.com>
759
760         * AUTHORS: 
761         Small revision to author acknowledgement.
762
763 2002-08-19  Padraig O'Briain  <padraig.obriain@sun.com>
764
765         * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
766         If signal has detail add it to the type of the event.
767         (bug #90838)
768         
769 2002-08-12  Michael Meeks  <michael@ximian.com>
770
771         * test/test-simple.c (global_listener_cb): bin bogosity.
772         (test_keylisteners): disable, still doesn't work reliably,
773         certainly not on my system anyway.
774
775         * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
776         don't leak a reference on the DEC. This round-trip
777         fetching of the DEC per keystroke sucks, it should be
778         cached.
779
780         * cspi/spi-private.h,
781         * cspi/cspi-lowlevel.h,
782         * cspi/bonobo/cspi-bonobo-listener.[ch],
783         * cspi/bonobo/cspi-bonobo.c: get the copyright
784         notices better - there is still a large amount of
785         work in at-spi falsely attributed solely to Sun.
786
787         * cspi/spi_main.c (cspi_object_ref): kill bogus
788         hash lookup, just increment the ref.
789         (SPI_freeString): make explicit the fact that we
790         handle NULL strings just fine.
791         (report_leaked_ref): obey coding standards.
792         (cspi_object_hash, cspi_object_equal): kill retval.
793         (cspi_object_release): only release if not on loan.
794         (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
795         (cspi_object_borrow, cspi_object_return): impl.
796
797         * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
798         use cspi_object_borrow / return.
799
800 2002-08-12  Darren Kenny  <darren.kenny@sun.com>
801
802         * cspi/bonobo/cspi-bonobo-listener.c: 
803         (cspi_event):
804         Don't call cspi_oject_new() because this is creating a new Accessible
805         every single time that an event is fired. This causes ATs like at-poke
806         to nolonger recognise the source of the event and thus ignore it.
807         Re-use the object from the cache, ref it and then unref it after the
808         listeners have been called.
809
810 2002-08-06  Darren Kenny  <darren.kenny@sun.com>
811
812         * test/event-listener-test.c: 
813         Added command-line options to disable mouse events (m) and
814         show usage (h). 
815
816 2002-07-31  Padraig O'Briain  <padraig.obriain@sun.com>
817
818         * configure.in: Update required versions of ATK, GTK+ and GAIL
819
820         * cspi-1.0.pc.in: Add dependency for X include files
821
822         * cspi/Makefile.am:
823         * cspi/bonobo/Makefile.am: 
824         Add $(X_CFLAGS) so that X include files 
825         are picked up even if not in standard place (bug #71686)
826
827 2002-06-25  Bill Haneman  <bill.haneman@sun.com>
828
829         * registryd/deviceeventcontroller.c: fix for 84261
830         (spi_dec_mouse_moved):
831         Added test of mouse button mask, so that we can detect mouse
832         button release.  Unfortunately we can't otherwise detect mouse
833         button release events without consuming the mouse press event,
834         because of the way XGrabButton works.  This means that our mouse
835         release events have a latency dependent on the polling period
836         while the mouse button is down.  At least in this case we only
837         have to poll while the button is down, and not at other times.
838         If the button masks don't match with what the last press event
839         reported, we report the appropriate button release event.
840         (spi_dec_ungrab_mouse):
841         New method (not yet called).
842         (spi_device_event_controller_forward_mouse_event):
843         New method, sends mouse press event from GdkFilter.
844         (spi_dec_init_mouse_listener):
845         Added code to call XGrabButton, redirecting mouse button events to
846         the root window and our Gdk event loop.
847         (global_filter_fn):
848         Added code to filter mouse button events, and reordered.
849         
850         * test/event-listener-test.c:
851         (main):
852         Added registration for mouse events of type "mouse:button".
853
854 2002-06-25  Bill Haneman  <bill.haneman@sun.com>
855
856         * registryd/deviceeventcontroller.c: partial fix for 84261
857         (spi_dec_poll_mouse_idle):
858         New method, a timeout which checks to see if the mouse
859         has moved.
860         (spi_dec_poll_mouse_moving):
861         A timeout to be called when mouse motion is underway.
862         (spi_dec_poll_mouse_moved):
863         A method which fires an event if the mouse has moved, and reports
864         whether or not it did so. 
865         (spi_dec_init_mouse_listener):
866         A method which sets up the timeouts above.
867         (spi_device_event_controller_new):
868         Now calls spi_dec_init_mouse_listener.
869
870         * registryd/registry.c:
871         (spi_registry_init):
872         Now we initialize the device event controller when the registry is
873         initialized, instead of waiting until a client has requested a key
874         event notification; this is because we need the event controller
875         for mouse events, but the mouse event registration API is a
876         "registry" call and doesn't explicitly call the 
877         deviceeventcontroller.
878         We now report mouse motion events with a 100 ms idle latency and
879         a 20 ms granularity when motion is in progress.
880
881         * test/event-listener-test.c:
882         (main):
883         We now register the "detail listener" for events of type 
884         "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
885         delivered only for the first mouse event received, and thereafter
886         "mouse:abs" events are delivered.)
887
888         * cspi/spi_registry.c:
889         DOCS: Documented the above mouse event typestrings.
890         
891 2002-06-21  Bill Haneman  <bill.haneman@sun.com>
892
893         Happy Summer Solstice...
894
895         * registryd/deviceeventcontroller.c: [fix for bug 84100]
896         (spi_controller_notify_keylisteners):
897         Changes to remove a listener from the listener list, freeing its
898         open keygrabs, if a notification to that listener fails.  This
899         means that although a dead listener can continue to hold a passive
900         keygrab, a maximum of one dispatch to such a listener can fail
901         before the listener is removed from the list, thus the keygrab
902         will be released on the next occurrence.
903         As part of this fix:
904         (spi_notify_keylisteners):
905         Renamed to spi_controller_notify_keylisteners, as the controller
906         instance must now be passed as an argument.
907         The copied 'notify' GList is now a list of DEControllerKeyListener
908         objects, since we need more than just the CORBA reference if a
909         notify fails and we need to deregister the listener.
910         (impl_notify_listeners_sync):
911         (impl_notify_listeners_async):
912         (spi_device_event_controller_forward_key_event):
913         Modify use of notify_keylisteners in accordance with above
914         changes.
915         (spi_deregister_controller_key_listener):
916         New method introduced by refactoring, from 
917         impl_deregister_keystroke_listener.
918         (impl_deregister_keystroke_listener):
919         Call spi_deregister_controller_key_listener.
920         (spi_key_listener_clone):
921         New method to copy a key listner without doing a 'ref' on the
922         remote object instance; used to create a notifier list.
923         (spi_key_listener_data_free):
924         New method, frees data without unreffing the source.
925         Used in refactor.
926         (spi_key_listener_clone_free): new method.
927         (spi_key_listener_free): 
928         refactored to call spi_key_listener_data_free.
929         
930 2002-06-20  Bill Haneman  <bill.haneman@sun.com>
931
932         * registryd/registry.c: [fix for bug 86048]
933         (notify_listeners_cb):
934         Clear CORBA system exceptions which occur when notifying
935         listeners, before returning to the source of the original event,
936         since the event source doesn't care if the relayed notify failed.
937         In other words, don't complain to the atk-bridge if the registry
938         could not notify all its listeners, that's no fault of the
939         application and thus should not appear to be an error from the
940         application's perspective.
941         
942         * cspi/spi_main.c: [fix for bug 85980]
943         (cspi_object_ref):
944         Replaced use of bonobo_object_dup_ref with call to the wrapper
945         method, csou_dup_ref (); this silences a compiler warning and
946         provided more portability.
947         (cspi_registry):
948         Ping the registry before return, and restart if necessary.
949
950         * cspi/bonobo/cspi-bonobo.c:
951         (cspi_ping):
952         New internal method.
953         (cspi_dup_ref):
954         Fixed this method to return an object reference, as it should have
955         all along.
956
957         * cspi/cspi-lowlevel.h:
958         Added internal definition for cspi_ping() and fixed 
959         return type of cspi_dup_ref().
960         
961
962 2002-06-19  Bill Haneman  <bill.haneman@sun.com>
963
964         * atk-bridge/bridge.c:  [fix for bug 85305]
965         (spi_atk_bridge_register_application):
966         New method where the initial application registry calls have been
967         moved; it allows an application to re-register in response to
968         certain error conditions (such as a registry restart, see below).
969         (atk_bridge_init):
970         Moved some initialization code to the method
971         spi_atk_bridge_get_registry, below.
972         (spi_atk_bridge_get_registry):
973         New, private accessor function for the Accessibility_Registry
974         instance.  If the registry has not been started before, or has
975         died (as detected by failure of a CORBA exception), it is
976         restarted before return, and spi_atk_bridge_register_application
977         is called again to register with the new bridge instance.
978         (spi_atk_emit_eventv):
979         Set registry_died on error; use spi_atk_bridge_get_registry () to
980         access the registry.
981         
982         * registryd/registry.c:
983         (impl_accessibility_registry_register_global_event_listener):
984         Set listener's event_type_quark to etype.minor instead of
985         etype.major (fix for bug 84856).
986
987         * test/event-listener-test.c:
988         (report_detail_event):
989         Change the output string so that user/tester can tell that the
990         'detail listener' was called instead of the 'generic listener'.
991         
992 2002-06-18  Bill Haneman  <bill.haneman@sun.com>
993
994         Fixes for bugs 84900, 84908, 84897, 84898.
995
996         * NEWS: updated.
997         
998         * configure.in:
999         Revved version to 1.1.0 
1000         (reserving the 1.0.X branch for gnome-2-0-0 branch, this
1001         version is going to HEAD which will be used for gnome-2-0-1 and later.)
1002         
1003         * idl/Accessibility_Registry.idl:
1004         (EventListener::notifyEvent):
1005         Removed 'oneway' directive after extensive consulation with
1006         ORBit2 team and others.  This means also that unref() of the event
1007         source can and should be done synchronously after emission, rather
1008         than remotely in the client, after servicing the notify call on
1009         the listener side.
1010
1011         NOTE: This change speeds up listener performance considerably, but
1012         introduces new latency on the application side.  We may want to
1013         add an event queue to the atk-bridge.
1014
1015         * atk-bridge/bridge.c:
1016         (spi_atk_bridge_focus_tracker):
1017         Do a local unref() on the event source after emission.
1018         
1019         * registryd/registry.c:
1020         (desktop_remove_application):
1021         Do an unref() on the event source after emission.
1022         (desktop_add_application):
1023         Do an unref() on the event source after emission.
1024         (notify_listeners_cb):
1025         When relaying an event, don't automatically add the event source
1026         to the local object cache, just CORBA_dup it instead.  Likewise,
1027         if this method reenters, release the ref rather than calling
1028         unref() as well.
1029         (impl_registry_notify_event):
1030         No longer call remote unref() on the event source after dispatch.
1031
1032         * libspi/eventlistener.c:
1033         (impl_accessible_event_notify_event):
1034         Removed remote unref ()
1035         
1036         * cspi/bonobo/cspi-bonobo-listener.c:
1037         (cspi_event):
1038         We now call cspi_object_new() instead of cspi_object_add() on
1039         receipt of an event; thus we only have an implicit object ref
1040         while the cspi_event method is being executed.  If we need to keep
1041         a reference to the object, the listener must call ref() on the
1042         object.  Thus also we don't need to call cspi_object_unref() after
1043         invoking the listener callbacks in this method.
1044         
1045         * cspi/spi_main.c:
1046         (cspi_object_new):
1047         New internal API for creating a new cspi object, without adding it
1048         to the object cache.
1049         (cspi_object_add):
1050         Now uses cspi_object_new() to create the cspi object instance.
1051         (cspi_object_ref):
1052         Now checks to see if the object is in the internal object cache,
1053         and adds it if necessary before incrementing its refcount (note
1054         that new objects are added with a refcount of 1).
1055         (report_leaked_ref):
1056         New method which gives some information on leaked object instances
1057         if leak detection is turned on.
1058
1059         * test/event-listener-test.c:
1060         (timing_test_event):
1061         New method, used for testing event delivery timing for special
1062         events of type "object:test".  It reports elapsed time and
1063         events/sec every 500 events.
1064         (main):
1065         Added a new listener, 'test listener', to check timing of event
1066         receipt as noted above.
1067         (report_event):
1068         Added some timing output here also, reports elapsed time every 100
1069         events.
1070
1071         * test/stress-test.c:
1072         Emit events of type "object:test", for use with "event-listener-test".
1073
1074         * test/test-simple.c:
1075         (global_listener_cb):
1076         Call Accessible_ref() on the event source before calling
1077         validate_accessible, since the validation process does pointer
1078         comparisons on the event source, meaning that the event source
1079         needs to be added to the local object cache first.  Any use of
1080         such pointer comparisons between Accessible objects requires that
1081         the caller hold an explicit reference to those objects.
1082         We also must therefore call Accessible_unref() when leaving this method.
1083
1084 2002-06-13  Bill Haneman  <bill.haneman@sun.com>
1085
1086         * registryd/deviceeventcontroller.c:
1087         (spi_controller_update_key_grabs):
1088         Fix for #84735, subsequent keygrab listeners not informed of
1089         registration failure.
1090
1091         * libspi/base.c:
1092         (spi_base_construct):
1093         Add an assertion on construct, to make sure the GObject passed in
1094         is really a GObject.
1095         (spi_base_init):
1096         Explicitly initialize object->gobj pointer to NULL;
1097
1098         * cspi/bonobo/cspi-bonobo-listener.c:
1099         (cspi_object_add_ref):
1100         New method, can specify whether to dup-ref a bonobo object passed
1101         in if it's newly added to the object cache.
1102         (cspi_object_add):
1103         Now calls cspi_object_add_ref with second param of "FALSE".  This
1104         prevents us from doing a pointless dup-ref followed by
1105         release-unref for all those cases where the object is already in
1106         our object cache (fix for #85205).
1107
1108         * atk-bridge/bridge.c:
1109         (spi_atk_bridge_idle_init):
1110         Removed this method, we don't need to initialize in an idle
1111         handler anymore;
1112         (atk_bridge_init):
1113         Changed to call spi_atk_register_event_listeners directly, not via an
1114         idle handler. (fix for #81139)
1115         (gnome_accessibility_module_shutdown):
1116         Removed conditional around deregistration of listeners, since we
1117         don't use the idle handler and thus have always registered when
1118         shutdown is called.
1119         (spi_init_keystroke_from_atk_key_event):
1120         Changed references to Accessibility_KEY_PRESSED to 
1121         Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
1122         
1123 2002-06-12  Bill Haneman  <bill.haneman@sun.com>
1124
1125         (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
1126         
1127         * configure.in:
1128         Revved to 1.0.1
1129
1130         * test/stress-test.c:
1131         Added file.
1132
1133         (may have been an incomplete commit yesterday?)
1134
1135 2002-06-12  Bill Haneman  <bill.haneman@sun.com>
1136
1137         * test/Makefile.am:
1138         Added target for new stress-test.
1139         
1140         * test/stress-test.c:
1141         New test, sends 1000 focus notifies in quick succession.
1142
1143         * test/key-listener-test.c:
1144         Now we report whether a keylistener registration
1145         request succeeded or failed.
1146
1147         * test/event-listener-test.c:
1148         Uncommented some listeners which are now implemented.
1149
1150
1151 2002-06-06  Bill Haneman  <bill.haneman@sun.com>
1152
1153         * registryd/deviceeventcontroller.c:
1154         (spi_controller_update_key_grabs):
1155         Fix for #82509, lack of failure notification when
1156         ALL_WINDOWS keygrabs fail due to XGrabKey
1157         failure: we synchronize the server when 
1158         registering a passive grab, to make sure we get the
1159         error message before the call returns.
1160
1161 2002-06-03  Bill Haneman  <bill.haneman@sun.com>
1162
1163         * test/test-simple.c:
1164         (key_listener_cb):
1165         Removed #ifdef KEY_IMPL_WORKS guards.
1166         (test_keylisteners):
1167         Removed #ifdef KEY_IMPL_WORKS guards.
1168         Fixed bug which was causing a hang waiting for a 
1169         "press" event (which was already overwritten by a "release" 
1170         event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
1171         (key_listener_cb):
1172         Added code to set globals 'key_press_received' and
1173         'key_release_received'.
1174
1175         * TODO:
1176         Added section "1.1 API Proposed Additions" which
1177         lists API additions desired for at-spi-1.1 (only one so far).
1178         Updated TODO list a little.
1179         
1180 2002-06-02  Bill Haneman  <bill.haneman@sun.com>
1181
1182         AT-SPI 1.0 API FINAL: at-spi 1.0 is now
1183         API frozen.
1184         
1185         * configure.in: Revved to 1.0.0.
1186
1187         * idl/Accessibility_Registry.idl:
1188         (registerKeystrokeListener):
1189         Added boolean return value.
1190         
1191         * registryd/registry.c:
1192         (notify_listeners_cb): Minor fix to debug output.
1193
1194         * registryd/Accessibility_Registry.server.in.in:
1195         Revved version number in OAFIID to 1.0.
1196
1197         * registryd/registryd.c:
1198         (main):
1199         Use new OAFIID version.
1200
1201         * cspi/bonobo/cspi-bonobo.c:
1202         (cspi_init):
1203         Use new OAFIID version.
1204
1205         * test/at.c:
1206         (main):
1207         * test/app.c:
1208         (main):
1209         * atk-bridge/bridge.c:
1210         (atk_bridge_init):
1211         Use new OAFIID version.
1212
1213         * registryd/deviceeventcontroller.c:
1214         (impl_register_keystroke_listener):
1215         Added CORBA_boolean return value.
1216         (spi_controller_register_device_listener):
1217         Added gboolean return value.
1218         (spi_controller_register_global_keygrabs):
1219         Added gboolean return value.
1220         (spi_key_set_contains_key):
1221         Added implementation for many more control keys,
1222         for instance F1-F12, arrow keys, End, Home, Page_Up,
1223         Page_Down, Escape.
1224         [TODO: some still not implemented]. 
1225         
1226         * text/screen-review-test.c:
1227         (text_chunk_pad_string):
1228         New function: it provides mapping between coordinate
1229         positions of text chunks and character positions in the
1230         screen-review-line output string.
1231         (text_chunk_to_string):
1232         New function, calls text_chunk_pad_string with various
1233         pad/delimiter characters. Pushbuttons are delimited with
1234         square brackets, Frames with vertical 'pipe' lines, and 
1235         other text with double quotes.
1236         (text_chunk_list_to_string):
1237         Calls new function text_chunk_to_string.
1238         (toplevel_composite):
1239         New function to composite layers CANVAS through
1240         POPUP in each toplevel (other layers are composited
1241         across toplevels, i.e. BACKGROUND and OVERLAY).
1242         (review_buffer_composite):
1243         Revise to use new methods.
1244         
1245         
1246         
1247         
1248
1249 2002-05-31  Laszlo Peter  <laca@sun.com>
1250
1251         * configure.in: add the Xtst libdir to the runpath on Solaris,
1252         since it's not in the default library search path.
1253
1254 2002-05-29  jacob berkman  <jacob@ximian.com>
1255
1256         * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
1257
1258 2002-05-29  Bill Haneman  <bill.haneman@sun.com>
1259
1260         * test/screen-review-test.c:
1261         (text_chunk_pad_string):
1262         Added method, which pads the string according to the 
1263         text bounds of the chunk.  It also takes a 3-character
1264         string as a param which indicates the characters to be 
1265         used for start, padding, and end delimitation of the chunk.
1266         (text_chunk_to_string):
1267         Changed to use text_chunk_pad_string.
1268         
1269         * configure.in: Fixed bug in AC_OUTPUT that was
1270         causing path substitution in Accessibility_Registry.server
1271         to fail.
1272
1273 2002-05-23  Bill Haneman  <bill.haneman@sun.com>
1274
1275         * text/screen-review-test.c:
1276         (guess_string_clip):
1277         New method which attempts a best-guess at clipping
1278         text from components (like Java labels) which don't
1279         actually implement AccessibleText.  This inaccurate
1280         clip is based on the assumption that the label is
1281         justified left-and-right, and monospaced.
1282         (text_chunk_get_clipped_string):
1283         We now call guess_string_clip() for text-containing
1284         components that don't implement AccessibleText.
1285
1286         * test/screen-review-test.c:
1287         (review_buffer_get_text_chunk):
1288         We now pull "name" from labels if they do not implement
1289         AccessibleText (i.e. for Java labels).
1290         (get_screen_review_line_at):
1291         Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
1292
1293         * configure.in:
1294         Replaceded AC_OUTPUT target
1295         registryd/Accessibility_Registry.server with 
1296         registryd/Accessibility_Registry.server.in.
1297
1298         * registryd/Accessibility_Registry.server.in:
1299         Removed (this is now a Makefile target).
1300
1301         * registryd/Accessibility_Registry.server.in.in:
1302         Added (source for target above).  We now use $(libexecdir) as
1303         prefix for the executable at-spi-registryd.
1304
1305         * registry/Makefile.am: 
1306         Now install at-spi-registryd into $(libexecdir), and build .server
1307         file with path (see above).
1308         
1309 2002-05-22  Bill Haneman  <bill.haneman@sun.com>
1310
1311         * test/screen-review-test.c:
1312         (text_chunk_get_clipped_string):        
1313         We now check to see if words fall within clip bounds 
1314         before resorting to character-by-character clip bounds testing.
1315
1316         * TODO: Added a section for "2.2 Proposed API Additions".
1317
1318 2002-05-21  Bill Haneman  <bill.haneman@sun.com>
1319
1320         * test/screen-review-test.c:
1321         * test/Makefile.am:
1322         Added a screen review benchmarking and test program to test
1323         directory.
1324
1325         * cspi/spi_accessible.c:
1326         * cspi/spi_main.c:
1327         Made some of the debug strings passed to cspi_check_ev a
1328         little more specific.
1329
1330 2002-05-21  Padraig O'Briain  <padraig.obriain@sun.com>
1331
1332         * test/screen-review-test.c: Fix crashes in debug statements
1333
1334 2002-05-20  Bill Haneman  <bill.haneman@sun.com>
1335
1336         * test/screen-review-test.c: Added this file.
1337
1338 2002-05-13  Marc Mulcahy <marc.mulcahy@sun.com>
1339
1340         * atk-bridge/bridge.c: changed "object:state-change" to
1341         "object:state-changed" to match docs.
1342
1343 2002-05-13  Marc Mulcahy <marc.mulcahy@sun.com>
1344
1345         * atk-bridge/bridge.c: Hooked up state-change event details.
1346
1347 2002-05-11  Bill Haneman <bill.haneman@sun.com>
1348
1349         * registryd/registry.c:
1350         Fixed quarking bug in event string parsing; now events with
1351         detail parameters get matched correctly to listeners.
1352         [Bugzilla 80608].
1353
1354         * util/idl/Magnifier.idl: remove.
1355         * util/idl: remove
1356         * util/*.[ch]: Remove.
1357         Magnification utilities and IDL are now in module gnome-mag.
1358
1359 2002-05-10  Bill Haneman <bill.haneman@sun.com>
1360
1361         * registryd/deviceeventcontroller.c:
1362         Fixed bug in grab key conversion which was causing keycode grabs
1363         to be converted to AnyKey grabs.
1364
1365         * NEWS:
1366         updated NEWS file to reflect recent spin-off of gnome-mag.
1367
1368 2002-05-09  Marc Mulcahy <marc.mulcahy@sun.com>
1369
1370         * cspi/spi_accessible.c: Added exception checks.  Fixed completely
1371         busted AccessibleStateSet_compare.  Removed redundant casts.
1372         
1373         * cspi/spi-action.c: Removed redundant casts.
1374
1375         * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
1376
1377         * cspi/spi_component.c: Fixed typos and casting error.
1378
1379         * cspi/spi_editabletext.c: Removed redundant casts.
1380
1381         * cspi/spi_hyperlink.c: Fixed casting and exception checking.
1382
1383         * cspi/spi_hypertext.c: Eliminated redundant casts.
1384
1385         * cspi/spi_image.c: Eliminated redundant casts.
1386
1387         * cspi/spi_registry.c: Eliminated redundant casts.
1388         SPI_deregisterGlobalEventListenerAll () removed retval variable.
1389         * cspi/spi_selection.c: Removed redundant casts.
1390         * cspi/spi_text.c: Eliminated redundant casts.  Fixed exception
1391         handling.  Screen geometry and text offsets were being returned as 0
1392         on error which is technically valid-- changed these to return -1.
1393         Added marshaller for text boundary types to fix bug with boundary
1394         types being passed incorrectly to atk.
1395                         
1396 2002-05-09  Bill Haneman <bill.haneman@sun.com>
1397
1398         
1399         * cspi/spi_registry.c:
1400         Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
1401         which was uncovered by the recent key changes.
1402
1403 2002-05-09  Bill Haneman <bill.haneman@sun.com>
1404
1405         * test/event-listener-test.c:
1406         * test/Makefile.am:
1407         Added new test, "event-listener-test"; 
1408         this code does two things; it benchmarks traversal time 
1409         for the accessible hierarchy for the first running accessible 
1410         app, and it connects listeners for all supported event types.  
1411         It is thus useful as an example event listener and for 
1412         diagnostics/debugging of event generation.
1413         
1414 2002-05-08  Bill Haneman <bill.haneman@sun.com>
1415
1416         * test/Makefile.am:
1417         Removed unnecessary dependency on libutil.
1418
1419         * configure.in:
1420         Revved micro version: 0.13.1
1421
1422 2002-05-08  Bill Haneman <bill.haneman@sun.com>
1423
1424         * configure.in: 
1425         Removed util/Makefile from targets.
1426
1427         * Makefile.am:
1428         Removed util subdir from SUBDIRS (temporarily, 
1429         pending removal of magnifier-only code
1430         from UTIL).
1431
1432         * test/simple-at.c:
1433         #ifdef-ed out magnifier dependencies, since
1434         magnifier IDL, headers, and binary now live in
1435         module gnome-mag and we don't want at-spi to depend 
1436         on gnome-mag.  A magnifier demo which can run alongside
1437         simple-at is forthcoming in the gnome-mag module.
1438         
1439         NOTE: Split magnifier binary, IDL, and magnification
1440         activation code from at-spi into module gnome-mag.
1441
1442 2002-05-03  Marc Mulcahy <marc.mulcahy@sun.com>
1443  
1444         * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
1445         cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
1446  
1447 2002-05-03  Bill Haneman <bill.haneman@sun.com>
1448
1449         * configure.in:
1450         Revved to version 0.13.0
1451         
1452         * idl/Accessibility_Registry.idl:
1453         Changed definition of KeySet from sequence of longs to sequence of
1454         KeyDefinitions, and added KeyDefinition struct.
1455         Required for fix to bug 80616.
1456
1457         * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
1458         Changed AccessibleKeySet to Accessibility_KeySet marshalling code
1459         to use new definition (see above).  
1460
1461         * registryd/deviceeventcontroller.c: handle_keygrab(), 
1462         spi_keyset_contains_key():
1463         Changed to make use of new struct; this allows matching based on
1464         string key-name, for instance "Tab".  This also allows matching of
1465         composed characters, non-alphanumeric characters in a way that
1466         doesn't involve dependencies on X keysym codes directly, etc.
1467         
1468         * test/key-listener-test.c:
1469         Added test for Alt-Tab key using "string" specification of keyset,
1470         and modified one of the tests to use a keycode-based keyset.
1471         Thus this test both tests and demonstrates the creation and use of
1472         keysets of three forms:  specified via keycode array, 
1473         keysym array, and string array. (The string case only contains a
1474         single string, i.e. a string array of length 1).        
1475
1476         * test/simple-at.c:
1477         Turned on PRINT_TREE option by default.  Also fixed a
1478         string-freeing bug in the PRINT_TREE code.  
1479         Added a listener to window:minimize events.
1480         
1481 2002-05-08  Padraig O'Briain  <padraig.obriain@sun.com>
1482
1483         * atk-bridge/bridge.c:
1484         (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
1485         for window:activate and window:deactiveate
1486         (atk_bridge_property_event_listener atk_bridge_signal_listener
1487         atk_bridge_window_event_listener) Tidy debug code
1488
1489 2002-05-02  Marc Mulcahy <marc.mulcahy@sun.com>
1490
1491         * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
1492         Fixed handling for NULL return value from ATK.
1493
1494         * libspi/action.c libspi/component.c libspi/editabletext.
1495         libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
1496         libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
1497         Removed redundant casts.
1498         
1499         * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
1500         Fixed off by one bug.
1501         
1502         *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
1503         function not present in idl)
1504         
1505 2002-05-02  jacob berkman  <jacob@ximian.com>
1506
1507         * atk-bridge/Makefile.am: make atk-bridge a real module
1508
1509 2002-04-26  Radek Doulik  <rodo@ximian.com>
1510
1511         * libspi/stateset.c (spi_init_state_type_tables): fix size of
1512         atk_state_types table
1513
1514 2002-04-22  jacob berkman  <jacob@ximian.com>
1515
1516         * util/Makefile.am: 
1517         * libspi/Makefile.am: add deps on the built files to help
1518         automake, and don't version the ORBit typelib
1519
1520 2002-04-19  Padraig O'Briain  <padraig.obriain@sun.com>
1521
1522         * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h 
1523         cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
1524         cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c 
1525         cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
1526         cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
1527         cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
1528         cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
1529         libspi/accessible.h libspi/accessible.h libspi/base.h 
1530         libspi/component.h libspi/editabletext.h libspi/hyperlink.h 
1531         libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
1532         libspi/relation.h libspi/remoteobject.h libspi/selection.h 
1533         libspi/spi-private.h libspi/statetset.h libspi/table.h
1534         libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
1535         util/mag_client.h util/mag_control.c util/mag_image.c
1536         util/mag_image.h util/magnifier.c util/magnifier.h: 
1537         Add missing file headers; standardize existing ones
1538
1539 2002-04-18  Marc Mulcahy  <marc.mulcahy@sun.com>
1540
1541         * atk-bridge/bridge.c: Added window event support.
1542
1543 2002-04-18  Michael Meeks  <michael@ximian.com>
1544
1545         * libspi/relation.c (impl_getNTargets): impl.
1546         (impl_getTarget): impl.
1547
1548         * libspi/Makefile.am: fix stateset install.
1549
1550 2002-04-17  Bill Haneman <bill.haneman@sun.com>
1551
1552         * NEWS:
1553         Started putting useful info in this file.
1554         
1555 2002-04-17  Marc Mulcahy <marc.mulcahy@sun.com>
1556  
1557         * atk-bridge/bridge.c: 
1558         Propagate state-changed notifications to ATs
1559  
1560         * cspi/spi_registry.c: update docs to reflect actual behavior of
1561         state-change events.
1562
1563 2002-04-17  Bill Haneman <bill.haneman@sun.com>
1564
1565         * configure.in:
1566         Incremented version to 0.12.1
1567         
1568         * util/mag_client.h:
1569         Add missing declaration for magnifier_exit, 
1570         used by mag_control.c - Forte compiler didn't like
1571         the implicit redeclaration of the function :-(
1572
1573
1574 2002-04-16  Bill Haneman <bill.haneman@sun.com>
1575
1576         * configure.in:
1577         Revved version to 0.12 due to API change (see below).
1578
1579         * cspi/spi-roletypes.h:
1580         removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE 
1581         definition from the inline docs, and added docs
1582         for SPI_ROLE_LAST_DEFINED.
1583
1584         * cspi/spi.h:
1585         * cspi/spi_streamablecontent.c:
1586         Added missing seek_type parameter to
1587         (so far unused) method, 
1588         AccessibleStreamableContent_seek().
1589         [ RT approval JodyG. ]
1590
1591         * cspi/spi_event.c:
1592         Fixed docs for SPI_createAccessibleKeystrokeListener.
1593
1594         * cspi/spi_registry.c:
1595         Fixed docs for SPI_KEYSET_ALL_KEYS.
1596         
1597         * docs/reference/cspi/at-spi-cspi-sections.txt:
1598         Added a number of missing APIs to SECTIONS.
1599         
1600 2002-04-16  Bill Haneman <bill.haneman@sun.com>
1601
1602         * registryd/Makefile.am:
1603         * cspi/Makefile.am:
1604         * cspi/bonobo/Makefile.am:
1605         Add $(X_LIBS) to makefiles.
1606
1607 2002-04-15  Bill Haneman <bill.haneman@sun.com>
1608
1609         * configure.in:
1610         Revved version to 0.11.
1611
1612         * libspi/component.c:
1613         Added implementation for grabFocus.
1614
1615         * idl/Accessibility_Component.idl
1616         (Accessibility_Component_grabFocus):
1617         Made this method return boolean to indicate success or failure, to
1618         be consistent with cspi and the corresponding ATK method.
1619         
1620         * idl/Accessibility_Selection.idl
1621         (Accessibility_Selection_selectAll) :
1622         Made these methods return boolean to indicate success or
1623         failure, to be consistent with cspi and the corresponding ATK methods.
1624         
1625         * idl/Accessibility_EditableText.idl 
1626         (Accessibility_EditableText_setTextContents,
1627          Accessibility_EditableText_insertText,
1628          Accessibility_EditableText_cutText,
1629          Accessibility_EditableText_deleteText,
1630          Accessibility_EditableText_pasteText):
1631         Made these methods return boolean to indicate
1632         success or failure.
1633
1634         * cspi/spi_editabletext.c:
1635         Made these methods return booleans.
1636
1637         * libspi/selection.c:
1638         * libspi/component.c:
1639         * libspi/editabletext.c:
1640         Connected the boolean returns from ATK
1641         to the server-side code referenced above.
1642         
1643 2002-04-14  Bill Haneman <bill.haneman@sun.com>
1644
1645         * idl/Accessibility_Table.idl: Added missing methods,
1646         Accessibility_Table_addRowSelection,
1647         Accessibility_Table_addColumnSelection,
1648         Accessibility_Table_removeRowSelection,
1649         Accessibility_Table_removeColumnSelection.
1650
1651         * cspi/spi_table.c:
1652         Added C wrappers for above IDL:
1653         AccessibleTable_addRowSelection,
1654         AccessibleTable_addColumnSelection,
1655         AccessibleTable_removeRowSelection,
1656         AccessibleTable_removeColumnSelection.
1657         
1658         * libspi/table.c:
1659         Added server-side implementation code for IDL above, connecting
1660         to pre-existing ATK api.
1661         
1662 2002-04-13  Marc Mulcahy <marc.mulcahy@sun.com>
1663
1664         * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
1665
1666         * libspi/accessible.c: Added implementation fo
1667         Accessibility_Accessible_get_state.
1668         
1669         * libspi/libspi.h: Added stateset.h to the list of includes.
1670
1671         * libspi/stateset.c: Fixed broken implementation.
1672
1673 2002-04-13  Bill Haneman <bill.haneman@sun.com>
1674
1675         * util/magnifier.c:
1676         Added implementation code for Accessibility_Magnifier_exit ().
1677
1678         * util/mag_control.c:
1679         Added test code for above method; you can
1680         now kill an existing magnifier via 
1681         ./mag_control q, from the util directory.
1682
1683         * test/key-listener-test.c:
1684         * test/Makefile.am:
1685         Added a new test, for our key listener API.
1686
1687 2002-04-11  Bill Haneman <bill.haneman@sun.com>
1688
1689         * test/app.c, test/keysynth-demo.c:
1690         * util/magnifier.c:
1691         Replace use of snprintf with g_snprintf.
1692         (fix for bugzilla 78249)
1693
1694 2002-03-27  Michael Meeks  <michael@ximian.com>
1695
1696         * Version 0.10.0
1697
1698         * util/Makefile.am (INCLUDES): fix.
1699         (DONT_DIST_SOURCE): don't distribute the
1700         generated files.
1701
1702         * libspi/Makefile.am (dist-hook): ditto.
1703
1704 2002-03-27  Padraig O'Briain  <padraig.obriain@sun.com>
1705
1706         * libspi/hypertext.c:
1707         Fix warnings when yelp is used with atk-bridge
1708
1709 2002-03-21  Michael Meeks  <michael@ximian.com>
1710
1711         * libspi/application.c (spi_application_new):
1712         use spi_accessible_construct so we use the AtkObject
1713         cache correctly.
1714
1715 2002-03-19  Michael Meeks  <michael@ximian.com>
1716
1717         * registryd/registry.c (desktop_remove_application),
1718         (desktop_add_application): clean coding style.
1719
1720         * registryd/desktop.c (spi_desktop_remove_application),
1721         (spi_desktop_add_application): kill re-enterency hazards.
1722         (spi_desktop_dispose): remove bogus redundant cast
1723         obscuring bug; fix bug too.
1724         (spi_desktop_init): make the desktop object immortal.
1725
1726 2002-03-16 Bill Haneman <bill.haneman@sun.com>
1727
1728         * test/simple-at.c:
1729         Added a #define-guarded tree-traversal step
1730         when enumerating the apps (diagnostic tool).
1731
1732 2002-03-15 Bill Haneman <bill.haneman@sun.com>
1733
1734         * idl/Accessibility_Role.idl:
1735         Added ROLE_DRAWING_AREA which seemed to be missing from the
1736         previous commit.
1737
1738 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
1739
1740         * cspi/spi-roletypes.h cspi/spi_accessible.c
1741         idl/Accessibility_Role.idl libspi/accessible.c: synched up role
1742         types with ATK.
1743
1744         * registryd/desktop.c registryd/desktop.h registryd/registry.c:
1745         Added signals to SpiDesktop and callbacks in SpiRegistry to notify
1746         AT when applications are added and removed from the desktop.  This
1747         reverts the previous broken implementation using the backing
1748         AtkObject for the SpiDesktop.
1749         
1750         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
1751
1752         * registryd/desktop.c: emit the "children-changed::add" and
1753         "children-changed::remove" signals on the backing ATK object for
1754         the desktop so AT can tell when applications are started and shut
1755         down.
1756
1757         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
1758
1759         * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
1760
1761         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
1762
1763         * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
1764
1765         * cspi/spi_accessible.c: Implemented c bindings for stateset support
1766
1767         * cspi/state-types.h: synched with IDL and ATK
1768
1769         2002-03-13  Bill Haneman <bill.haneman@sun.com>
1770
1771         * libspi/accessible.c 
1772         (impl_accessibility_accessible_get_child_at_index):
1773         Change return value for g_return_if_fail ()
1774         to CORBA_OBJECT_NIL instead of "0" (!)
1775
1776         * registryd/Makefile.am:
1777         * registryd/Accessibility_Register.server.in:
1778         Changed name of executable, "registryd",
1779         to something more informative:
1780         "at-spi-registryd".
1781
1782 2002-03-13  Michael Meeks  <michael@ximian.com>
1783
1784         * atk-bridge/bridge.c (atk_bridge_init): don't register
1785         if we're in a bonobo-component, rather than a bonobo app.
1786
1787 2002-03-13  Michael Meeks  <michael@ximian.com>
1788
1789         * atk-bridge/bridge.c (gtk_module_init): split
1790         out body to (atk_bridge_init): here, since otherwise
1791         we get symbol conflicts and oddness when invoked
1792         from (gnome_accessibility_module_init): here (upd.)
1793
1794 2002-03-11  Bill Haneman  <bill.haneman@sun.com>
1795
1796         * HACKING:
1797         New file.  Explicitly allow "build sheriff" putbacks provided
1798         they are tested on Solaris.
1799         
1800         * docs/reference/cspi/Makefile.am:
1801         Added '-' to the "cp" command for index.sgml.
1802         ("patch by thomasvs, soon coming to a GUADEC near you")
1803
1804         * configure.in:
1805         Incremented version number (0.9.0) for new release.
1806         Changed macro that checks for popt, to better detect
1807         obsolete versions of popt.
1808         
1809         * configure.in:
1810         Added X_LIBS to AC_SUBST, for applications
1811         that call Xlib API directly.
1812         
1813
1814 2002-03-07  Bill Haneman  <bill.haneman@sun.com>
1815
1816         * configure.in:
1817         Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
1818
1819         * util/Makefile.am:
1820         Fix regression caused by hard-coding major
1821         version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
1822         (see above change).
1823         
1824         * test/test-simple.c (test_editable_text),
1825         (test_test): revert previous change (error was 
1826         a regression in gail which is now fixed).
1827         
1828 2002-03-04  Michael Meeks  <michael@ximian.com>
1829
1830         * test/test-simple.c (test_editable_text),
1831         (test_text): pass G_MAXINT instead of '-1' for
1832         whole string - is this a good thing !?
1833
1834         * cspi/spi_accessible.c
1835         (Accessible_getRelationSet): fix crasher bug
1836         overwriting the end of the array.
1837
1838         * test/test-simple.c (validate_accessible): free,
1839         not g_free returned relation set.
1840
1841 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
1842
1843         * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
1844         implemented stateset support
1845
1846         * idl/Accessibility_State.idl: Made necessary changes to
1847         the IDL to support state sets.
1848
1849 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1850
1851         * registryd/deviceeventcontroller.c:
1852         Added implementation for generateMouseEvent.
1853
1854         * cspi/spi_registry.c:
1855         Connected new implementation for generateMouseEvent
1856         to the C bindings.
1857         
1858 2002-02-12 Bill Haneman <bill.haneman@sun.com>
1859
1860         * configure.in: 0.8
1861         Incremented revision (but no change in public API
1862         outside of 'utils', which are not installed public yet.)
1863
1864         * libspi/component.c:
1865         Changed to use atk_component API for layers and
1866         mdi_zorder, instead of deprecated atk_object API.
1867         
1868         Magnification Utility Enhancements:
1869         
1870         * util/magnifier.c:
1871         Added implementation of createZoomRegion, clearAllZoomRegions,
1872         resizeZoomRegion.  Added new commandline argument
1873         "--no-initial-region".  Note that clearAllZoomRegions doesn't
1874         unmap the old '0' region as it should (yet), and the other
1875         methods only work when creating/resizing a single region,
1876         which is "region 0".  
1877         (Code for multiple region support will be added later.)
1878
1879         * util/mag_image.c:
1880         Now we raise the magnifier window each time it's refreshed;
1881         this will help keep it on top.
1882         
1883         * util/mag_client.h:
1884         Added simple wrappers for above, used by mag_control.
1885         For general use, it's recommended to use the bonobo magnifier
1886         control API directly instead of using these wrappers.
1887
1888         * util/mag_image.h:
1889         Moved ZoomRegionData from magnifier.c to this file.
1890         
1891         * util/mag_control.c: 
1892         Added some code to exercise new IDL implementations.
1893         
1894 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
1895
1896         * libspi/text.c: Provide implementation for getAttributes.
1897
1898 2002-02-04  Bill Haneman <bill.haneman@sun.com>
1899         
1900         * configure.in:
1901         Incremented revision.
1902
1903         * test/test-simple.c:
1904         Replaced use of deprecated g_main_iteration with 
1905         g_main_context_iteration.
1906         
1907 2002-01-28  Padraig O'Briain <padraig.obriain@sun.com>
1908
1909         * configure.in:
1910         Incremented revision for desktop alpha 2.
1911
1912 2002-01-28  Mark McLoughlin  <mark@skynet.ie>
1913
1914         * libspi/remoteobject.[ch]: make RemoteObject and interface rather
1915         than an atk object.
1916
1917         * test/simple-at.c: include netinet/in.h.
1918
1919 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
1920
1921         * cspi/spi_accessible.c: (Accessible_getRelationSet):
1922         use NULL, not CORBA_OBJECT_NIL.
1923
1924         * libspi/accessible.c:
1925         (impl_accessibility_accessible_get_relation_set):
1926         allocate the sequence correctly.
1927
1928         * libspi/remoteobject.h: kill spi_remote_object_new.
1929
1930         * test/test-simple.c: (validate_accessible): add code
1931         to test relation sets, now all we need is to figure
1932         out how to excercise this code path :/
1933
1934 2002-01-18  Michael Meeks  <michael@ximian.com>
1935
1936         * test/test-simple.c
1937         (key_listener_cb): consume the key.
1938         (test_keylisteners): update.
1939         (main): wait for any pending unrefs on events.
1940
1941         * registryd/deviceeventcontroller.c
1942         (spi_controller_update_key_grabs): only re-issue the
1943         grab on a key release.
1944         (spi_device_event_controller_forward_key_event):
1945         refresh the keygrabs before we notify the listeners,
1946         to reduce the X ungrab / re-grab race.
1947         (spi_controller_register_with_devices): remove
1948         XSelectInput - we do that with the gdk_window_ call.
1949         (_spi_controller_device_error_handler): return a value.
1950         s/GDK_DISPLAY/spi_get_display/
1951
1952 2002-01-17  Michael Meeks  <michael@ximian.com>
1953
1954         * registryd/deviceeventcontroller.c
1955         (_deregister_keygrab): don't blow out the later
1956         assertion.
1957
1958         * test/test-simple.c (test_keylisteners): do a
1959         more intelligent validation.
1960
1961 2002-01-14  Michael Meeks  <michael@ximian.com>
1962
1963         * atk-bridge/bridge.c
1964         (gnome_accessibility_module_init),
1965         (gnome_accessibility_module_shutdown): impl.
1966         (gtk_module_init): protect vs. double inits.
1967         (add_signal_listener): impl.
1968         (spi_atk_bridge_state_event_listener): kill
1969         (deregister_application): split out of
1970         (spi_atk_bridge_exit_func): here.
1971
1972 2002-01-18  Bill Haneman <bill.haneman@sun.com>
1973
1974         * test/simple-at.c:
1975         Added caret tracking when using magnifier, and 
1976         now use text bounds for focus tracking of text elements, rather than
1977         the component bounds - this is helpful for short text fields in long
1978         table cells, at high magnification.
1979         
1980 2002-01-16  Bill Haneman <bill.haneman@sun.com>
1981
1982         * registryd/deviceeventcontroller.c:
1983         Regression fix for keylistener de-registration; global keygrabs
1984         were not being released when deregisterKeystrokeListener was
1985         called in cspi, since 
1986         Accessibility_DeviceEventController_deregisterKeystrokeListener
1987         was called with a zero-length keyset.  That is because the cspi
1988         method, SPI_deregisterKeystrokeListener, does not take a keyset
1989         parameter but instead should remove all the key grabs held be a
1990         keystroke listener.  
1991         The code in impl_deregister_keystroke_listener was changed to copy
1992         the keylist from the listener instance previously registered with
1993         the DeviceEventController before releasing the grabs.
1994
1995         * registryd/registry.c:
1996         * registryd/deviceeventcontroller.c:
1997         * libspi/spi-private.h:
1998         * libspi/util.c:
1999         Changed spelling of "re-enterant" to "re-entrant" globally.
2000
2001 2002-01-16  Bill Haneman <bill.haneman@sun.com>
2002
2003         * test/test-simple.c:
2004         Changed key listeners test - the test was slightly mis-using the
2005         (admittedly poorly documented) SPI_generateKeyboardEvent API.
2006         It now uses '=' as the key event listened to and generated,
2007         relying on a keysym match rather than assuming that keycode 33 
2008         is always equal to keysym '!'.
2009
2010 2002-01-15  Bill Haneman <bill.haneman@sun.com>
2011
2012         * test/simple-at.c:
2013         Changed simple-at to use a specific keyset, rather than
2014         SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
2015         manager, desktop, etc.
2016         
2017 2002-01-11  Bill Haneman <bill.haneman@sun.com>
2018
2019         * registryd/deviceeventcontroller.c:
2020         Replaced standard X error handler with a special handler that 
2021         is non-fatal for failed keygrabs.  This works around 
2022         problems with keygrab clashes sometimes observed on 
2023         Solaris using CDE.
2024         Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate 
2025         mouse handling code as yet).
2026         
2027 2002-01-11  Bill Haneman <bill.haneman@sun.com>
2028
2029         * configure.in:
2030         Incremented revision for desktop alpha release.
2031
2032         * README:
2033         Fixed a couple of the more glaring errors (still not 
2034         very up-to-date).
2035
2036 2002-01-11  Michael Meeks  <michael@ximian.com>
2037
2038         * registryd/deviceeventcontroller.c
2039         (spi_device_event_controller_forward_key_event): kill
2040         XUngrabKey / XKeyGrab race.
2041         (spi_controller_grab_keyboard): rename to
2042         (spi_controller_update_key_grabs): this, and deal
2043         with incremental adding / removing grabs more
2044         sensibly.
2045         (_register_keygrab): ensure we're not pending a remove.
2046         (spi_grab_mask_free): impl.
2047         (spi_controller_register_global_keygrabs): split out
2048         common code into:
2049         (handle_keygrab): impl.
2050         (_deregister_keygrab): impl.
2051         (spi_controller_deregister_global_keygrabs): impl.
2052         (spi_controller_update_key_grabs): re-issue the grab if
2053         we just recieved a notification.
2054
2055         * test/test-simple.c (key_listener_cb): remove debug.
2056
2057         * registryd/deviceeventcontroller.c
2058         (spi_controller_register_device_listener): after
2059         registering a global keygrab, actualy register it !
2060         don't wait for a timeout; doh !
2061
2062         * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
2063         to make it more readable / manipulable.
2064         s/grabmask/grab_mask/ s/refcount/ref_count/
2065         s/keyval/key_val/ s/modmask/mod_mask
2066
2067 2002-01-08  Michael Meeks  <michael@ximian.com>
2068
2069         * registryd/deviceeventcontroller.c
2070         (spi_controller_register_with_devices): use gdk calls to
2071         setup a filter.
2072         (global_filter_fn): implement the filter.
2073         (spi_device_event_controller_check_key_event): rename to
2074         (spi_device_event_controller_forward_key_event): this & upd.
2075         (spi_get_display): replace with GDK_DISPLAY.
2076
2077         * registryd/deviceeventcontroller.c
2078         (spi_controller_deregister_device_listener): unroll into
2079         (impl_deregister_keystroke_listener): here to simplify.
2080         (spi_controller_register_global_keygrabs): split cut and
2081         paste (!) out into (_register_keygrab): here, shorter & sweeter.
2082         (spi_controller_deregister_device_listener): remove.
2083         (impl_register_mouse_listener): remove, no mouse listener
2084         support in at-spi-1.0
2085
2086         * registryd/registry.c
2087         (_device_event_controller_hook): kill.
2088         (spi_registry_init): upd.
2089
2090         * registryd/deviceeventcontroller.c
2091         (spi_device_event_controller_class_init): upd.
2092         (spi_check_key_event): merge into.
2093         (spi_device_event_controller_check_key_event):
2094         here and kill strange static ev init, don't leak
2095         the x_event - nor dynamicaly allocate it.
2096
2097         * registryd/registry-main.c (main): re-direct
2098         timeout to remove strange vtable mess.
2099
2100         * registryd/deviceeventcontroller.c
2101         (remove_listener_cb): impl.
2102         (spi_controller_deregister_device_listener):
2103         fix re-enterancy hazard.
2104
2105 2002-01-07  Michael Meeks  <michael@ximian.com>
2106
2107         * registryd/deviceeventcontroller.c
2108         (spi_device_event_controller_new): upd.
2109         (impl_notify_listeners_sync): upd. debug.
2110         (spi_notify_keylisteners): fix re-enterancy hazards,
2111         prettify, remove O(n*n) iteration.
2112         (spi_controller_grab_keyboard): fix iteration.
2113         (spi_check_key_event): re-format to suit coding style.
2114         Clean all the warnings - we're warning free.
2115
2116         * registryd/deviceeventcontroller.h:
2117         * registryd/registry.h: make mutualy referential with
2118         typesafe forward references instead of (!) void pointer
2119         hacks.
2120
2121 2002-01-11  Michael Meeks  <michael@ximian.com>
2122
2123         * cspi/spi_accessible.c (role_names): add a role name
2124         to sync this array with the enum; and make the regression
2125         tests pass, sigh.
2126
2127 2002-01-10  Michael Meeks  <michael@ximian.com>
2128
2129         * cspi/spi_registry.c (SPI_generateKeyboardEvent): 
2130         allow expansion of enumeration & kill warning.
2131
2132         * test/test-simple.c (key_listener_cb): impl.
2133         (test_keylisteners): impl.
2134
2135         * cspi/spi-listener.h: make listener signatures const
2136         on the provided (const) events.
2137
2138         * test/keysynth-demo.c: upd. to const events.
2139
2140         * test/simple-at.c: ditto.
2141
2142 2002-01-11  Bill Haneman <bill.haneman@sun.com>
2143
2144         * configure.in:
2145         Rev the version to 0.5 (the previous tarball was named 0.4, 
2146         even though the micro number was 3), so we need to rev upwards
2147         again for beta2/"desktop-alpha" 
2148  
2149         * test/demo.csh:
2150         Checked in a demo script, which requires editing before use!
2151         Proceed with caution.
2152         
2153         * libspi/value.h:
2154         Fixed typo in header which was redefining SPI_ACTION_CLASS.
2155
2156         * cspi/spi_accessible.c:
2157         Add a couple of missing enum initializations, and fix some enum
2158         comments.
2159
2160         * cspi/spi_registry.c:
2161         Add comment describing keystring parameter to SPI_generateKeyboardEvent.
2162         
2163         * docs/reference/cspi/at-spi-cspi-sections.txt:
2164         Remove/fix a couple of broken document references.
2165
2166         * test/simple-at.c:
2167         Minor tweaks to the demo.  We now (sigh) use Alt-SHIFTLOCK as well
2168         as Alt-Control to listen for commands, since on some systems
2169         Control-Alt may already be grabbed.
2170
2171 2002-01-10  Bill Haneman <bill.haneman@sun.com>
2172
2173         * configure.in:
2174         Update version number to 0.4 for Beta2.
2175         
2176         * libspi/accessible.c, libspi/accessible.h:
2177         Expose spi_accessible_construct, to enable libgail-gnome
2178         construction from spi_accessible subtype.
2179
2180         * utils/magnifier.c:
2181         Workaround for bug in some non-gnome-compliant window managers
2182         which made magnifier resize improperly.
2183
2184 2002-01-09  Bill Haneman <bill.haneman@sun.com>
2185
2186         * libspi/accessible.c: (spi_accessible_new) :
2187         Move the test for SPI_IS_REMOTE_OBJECT to
2188         spi_accessible_new_return, fixing a bug and compile time warning.
2189         
2190 2002-01-08  Michael Meeks  <michael@ximian.com>
2191
2192         * registryd/registry.c (parse_event_type): remove strndup.
2193
2194         * libspi/Makefile.am (libspi_la_SOURCES): remove
2195         sources already included in the headers section.
2196
2197         * libspi/util.c: add.
2198
2199         * libspi/spi-private.h: add.
2200
2201         * registryd/registry.c: update to moved list iterators.
2202
2203 2002-01-05  Michael Meeks  <michael@ximian.com>
2204
2205         * test/simple-at.c (main): upd. auto-module set to atk-bridge
2206
2207         * test/test-simple.c (main): ditto.
2208
2209 2002-01-04  Michael Meeks  <michael@ximian.com>
2210
2211         * libspi/accessible.c (spi_accessible_new): remove 2nd,
2212         redundant construct.
2213
2214         * registryd/registry.c
2215         (get_listener_list): impl.
2216         (impl_accessibility_registry_register_global_event_listener):
2217         re-impl. to simplify using ~, remove dodgy const cast off.
2218         (parse_event_type): constify.
2219         (impl_accessibility_registry_deregister_global_event_listener_all): 
2220         re-write, more efficiency and simplicity, kill re-enterancy
2221         hazard.
2222         (compare_listener_corbaref, compare_corba_objects),
2223         (compare_listener_quarks): define out.
2224         (impl_accessibility_registry_deregister_global_event_listener): 
2225         re-write for effiency, and nail re-enterancy hazard.
2226         (impl_accessibility_registry_get_desktop_list): impl.
2227         (re_enterant_list_delete_link): impl.
2228         (re_enterant_list_foreach): impl.
2229         (remove_listener_cb): impl.
2230         (_registry_notify_listeners): kill.
2231         (notify_listeners_cb): impl.
2232
2233         * cspi/spi_registry.c (SPI_freeDesktopList): impl.
2234         (SPI_getDesktopList): impl.
2235
2236         * test/test-simple.c (test_desktop): test the methods.
2237
2238 2002-01-03  Michael Meeks  <michael@ximian.com>
2239
2240         * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
2241         keystrings since we free them
2242         (SPI_freeAccessibleKeySet): in here.
2243
2244         * libspi/accessible.c (spi_accessible_new): kill warning,
2245         wonder what is going on with the constructor here.
2246
2247 2002-03-01  Bill Haneman <bill.haneman@sun.com>
2248
2249         * libspi/accessible.c (spi_accessible_new ()) :
2250         Added check to see if AtkObject is an SpiRemoteObject before
2251         creating an SpiAccessible.
2252         
2253 2002-05-01  Bill Haneman <bill.haneman@sun.com>
2254
2255         * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
2256         Enable keygrabs using the Control modifier, now that they are
2257         working properly (they were previously disabled).
2258
2259         * test/simple-at.c:
2260         Change the command keygrab for this demo to "Control+Alt", so as
2261         to conflict with fewer other key commands on the system; this
2262         means that the quit command for "simple-at" is now "Ctrl-Alt-q".
2263
2264         Removed a pointlessly-chatty keylistener for unshifted keys
2265         (shifted keys are still reported).
2266         
2267 2002-02-01  Bill Haneman <bill.haneman@sun.com>
2268
2269         * libspi/remoteobject.h:
2270         * libspi/remoteobject.c:
2271         Added definitions for special AtkObject subtype, required for
2272         support of remote components (specifically, used by BonoboControl
2273         accessibility implementation).
2274         
2275 2002-01-02 Marc Mulcahy  <marc.mulcahy@sun.com>
2276
2277         * cspi/spi.h: synched relation types with ATK
2278
2279         * cspi/spi_accessible.c: Added implementations of
2280         AcccessibleRelation_* methods
2281
2282         * idl/Accessibility_Relation.idl: added getRelationTypeName
2283         method.  Synched known relation types with ATK.  Allowed for
2284         relation type extension with the RELATION_EXTENDED type.
2285         
2286         * libspi/relation.c: Provided implementations for
2287         AccessibleRelation methods.
2288
2289 2002-01-01  Bill Haneman <bill.haneman@sun.com>
2290
2291         API tweaks for today's API 'freeze'.
2292
2293         * idl/*:
2294         Added placeholder functions to allow future compatible expansion
2295         of the IDL interfaces.
2296
2297         * idl/Accessibility_Registry.idl:
2298         Changed generateKeyEvent to generateKeyboardEvent.  Changed
2299         signature of this method to accept an optional keystring in
2300         parameter (for complex text input synthesis) and changed use of
2301         simple 'boolean' parameter in registerKeystrokeListener to a
2302         struct, EventListenerMode.
2303
2304         * cspi/spi_accessible.c:
2305         * cspi/spi.h:
2306         * cspi/spi_streamablecontent.c:
2307         Added references to AccessibleStreamableContent interface, and
2308         definition and implementation of AccessibleStreamableContent 
2309         C bindings.
2310
2311         * cspi/spi_registry.c:
2312         * cspi/spi.h:
2313         Changed generateKeyEvent API to generateKeyboardEvent,
2314         taking a new (optional) keystring parameter to support complex
2315         text input.
2316         
2317         * at-bridge/*:
2318         * atk-bridge/*:
2319         Renamed directory (to better reflect its actual purpose, bridging
2320         from at-spi to ATK).  The .so module is also now named
2321         libatk-bridge.so.
2322
2323         * idl/Accessibility_Hypertext.idl:
2324         * libspi/accessible.c:
2325         * libspi/hypertext.h:
2326         * libspi/hypertext.c:
2327         Changed Accessibility_Hypertext to *not* derive from
2328         Accessibility_Text.
2329
2330         * cspi/spi_registry.c:
2331         Added list of legal event type names for 'window' events, which
2332         completes the registry event API.
2333
2334 2001-12-22  Marc Mulcahy  <marc.mulcahy@sun.com>
2335
2336         * at-bridge/bridge.c: Added registration for separate
2337         "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
2338         signals.  If either of the first two parameters to the generic
2339         bridge signal handler are ints, they are passed on as event
2340         details.  This allows an AT to determine what text was inserted.
2341
2342 2001-12-21  Bill Haneman <bill.haneman@sun.com>
2343
2344         * registryd/deviceeventcontroller.c:
2345         Fixed regressions in generateKeyEvent caused by the removal of
2346         gdk_init from registryd; we now use pure X calls to connect to the
2347         display, which makes sense because deviceeventcontroller already
2348         uses a fair bit of X API (should eventually be migrated to a
2349         'portability layer').
2350
2351         * registryd/desktop.c:
2352         Fixed minor regression in spi_desktop_init, changed the way the
2353         desktop name is being set to work with new spi_base API
2354         (gobject-based, rather than AtkObject-based).
2355
2356         * registryd/Makefile.am:
2357         Minor revision of makefile to use XTST_LIBS variable rather than
2358         hard-wiring the Xtst LD_ADD element.
2359
2360         * test/keysynth-demo.c:
2361         Tweaked an output message; added initialization of the
2362         'keystrings' member of the "switch listener" key_set.
2363
2364         * libspi/relation.c:
2365         Squashed compile-time warning.
2366
2367         * libspi/accessible.c:
2368         Cosmetic and formatting fixes, renamed a static method.
2369         
2370 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
2371
2372         * libspi/accessible.c 
2373         * libspi/action.c
2374         * libspi/application.c 
2375         * libspi/base.c 
2376         * libspi/base.h
2377         * libspi/component.c 
2378         * libspi/editabletext.c
2379         * libspi/hyperlink.c 
2380         * libspi/hypertext.c
2381         * libspi/image.c 
2382         * libspi/selection.c 
2383         * libspi/table.c
2384         * libspi/text.c 
2385         * libspi/value.c 
2386         * registryd/desktop.c:
2387         Changed SpiBase to contain a GObject pointer rather than an AtkObject
2388
2389 2001-12-17  Bill Haneman <bill.haneman@sun.com>
2390
2391         * idl/Accessibility_Registry.idl:
2392         Added boolean member 'is_text' to DeviceEvent.  This is for the
2393         use of key events, and helps prevent ambiguity between composed
2394         key strings and keysym names, since both may potentially be
2395         returned in the 'event_string' member.
2396
2397         * at-bridge/bridge.c:
2398         * registryd/deviceeventcontroller.c:
2399         Use the 'is_text' member when notifying device event listeners.
2400         Knon issue: composed characters are not dealt with correctly by
2401         the global key listener implementation yet.
2402         
2403 2001-12-17  Bill Haneman <bill.haneman@sun.com>
2404
2405         * at-bridge/bridge.c:
2406         Namespaced local static methods to spi_atk_bridge_* where
2407         previously named bridge_*, and spi_* elsewhere.
2408
2409         * at-bridge/bridge.c:
2410         * cspi/bonobo/cspi-bonobo-listener.c:
2411         Added demarshalling/conversion for string member of
2412         Accessibility_DeviceEvent to AccessibleKeystroke.
2413
2414         * registryd/deviceeventcontroller.c:
2415         Added code to fill the Accessibility_DeviceEvent key string value
2416         member for global key events (i.e. from XGrabKey), to match
2417         behavior of Accessibility_DeviceEvent from the toolkit key events
2418         from the bridge.  Fixed timestamp in global key event notifications.
2419
2420         * test/simple-at.c:
2421         Added printout of key event's string value to
2422         report_ordinary_key_event, for demo/debugging purposes.
2423
2424 2001-12-15  Bill Haneman <bill.haneman@sun.com>
2425
2426         * idl/Accessibility_Registry.idl:
2427         Removed Accessibility_KeyStroke structure in favor of generic
2428         Accessibility_DeviceEvent structure.
2429         Changed Accessibility_ControllerEventMask from a struct to an
2430         unsigned long.
2431
2432         * at-bridge/bridge.c:
2433         Changed APIs to use DeviceEvent structure as above, and removed
2434         bogus casting between these event structures.
2435
2436         * cspi/spi-listener.h:
2437         Added keystring member of AccessibleKeystroke structure, to enable
2438         matching on event "names" rather than only hardware codes and
2439         keysyms.
2440
2441         * cspi/spi.h:
2442         Added keystrings member of AccessibleKeySet struct, to allow
2443         matching on event names (as above).
2444         Added declarations for SPI_createAccessibleKeySet and
2445         SPI_freeAccessibleKeySet.  Due to changes in libspi, we now pass
2446         event modmasks directly as unsigned ints rather than structs with
2447         refcounts, in the DeviceEventController methods.
2448
2449         * cspi/spi_registry.c:
2450         Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
2451
2452         * cspi/spi-roletypes.h:
2453         Added documentation of newly added SPI Roles.
2454
2455         * cspi/bonobo/cspi-bonobo-listener.c:
2456         Changes in support of API changes above.
2457         
2458         * libspi/accessible.c:
2459         Converted APIs to use DeviceEvent structure (see IDL changes
2460         above). 
2461
2462         * registryd/deviceeventcontroller.c:
2463         Added DEControllerGrabMask structure to track keygrabs not only by
2464         modmask but by keyset as well; this allows us to do "global"
2465         (i.e. X) keygrabs on a per-key or keyset basis rather than always
2466         grabbing on AnyKey and then filtering after-the-fact.
2467         Bugfixes for event filtration mean that we don't get false matches
2468         on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
2469
2470         * registryd/deviceeventcontroller.c:
2471         Namespaced a number of static methods to use spi_ prefix.  Major
2472         revision to internals of global (i.e. X) key grabs.
2473
2474         * registryd/deviceeventcontroller.h:
2475         Removed keymask_list and added keygrabs_list to
2476         SpiDeviceEventController struct.
2477
2478         * test/simple-at.c:
2479         Added use of SPI_createAccessibleKeySet API when creating a
2480         listener for only one key.  Attach a listener to "shift spacebar
2481         SPI_KEY_RELEASE" as a demonstration.  Changed (incorrect) usage of
2482         X key event names to SPI key event names, so that listeners are
2483         registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
2484         
2485         * test/keysynth-demo.c:
2486         Changed (incorrect) use of X key event names (KeyPressed,
2487         KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
2488         
2489
2490 2001-12-12  Bill Haneman <bill.haneman@sun.com>
2491
2492         * libspi/accessible.c:
2493         Convert all AtkRole enumerations to Accessibility_Role enums when
2494         getting a role from an AtkObject.
2495         
2496         * cspi/spi_accessible.c:
2497         Complete the conversion of Accessibility_Role enums at runtime to
2498         AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
2499         role enums correctly match those given in spi-roletypes.h.  
2500         Re-synchronize the local names list for AccessibleRole_getName ().
2501         AccessibleRole_getName is now deprecated, since it duplicates the
2502         more reliable Accessible_getRoleName.
2503         Added some role types from Accessibility_Role.idl.
2504
2505         * idl/Accessibility_Role.idl:
2506         Added some role types used by AtkRole.
2507
2508 2001-12-12  Bill Haneman <bill.haneman@sun.com>
2509         
2510         * cspi/spi.h:
2511         * cspi/spi_registry.c:
2512         * cspi/spi_event.c:
2513         * cspi/cspi-bonobo-listener.c:
2514         Namespaced all methods that did not begin with an "SPI_" or
2515         "Accessible" prefix to "SPI_".  
2516
2517         * cspi/spi_main.c:
2518         Homogenized internal function namespace to "cspi_" for statics.
2519         
2520         * test/*.c:
2521         Patched tests to use the new CSPI API.
2522
2523         * docs/reference/cspi/at-spi-cspi-sections.txt:
2524         Updated docs to reflect namespace changes, and added a number of
2525         methods to the documentation.
2526         
2527         * registryd/registry.c:
2528         Changed use of strings and string hashes in listener event
2529         matching and parse_event_string to use GQuark, which is guaranteed
2530         unique.
2531         
2532         * registryd/registry.h:
2533         Squashed annoying warning.
2534
2535         * idl/Accessibility_Role.idl:
2536         Extended range of available Accessibility_Role values.
2537
2538         * cspi/spi_accessible.c:
2539         Re-ordered role names. 
2540
2541 2001-12-12  Bill Haneman <bill.haneman@sun.com>
2542
2543         * idl/Accessibility_Value.idl:
2544         Revert use of union back to CORBA_double, since the double type is
2545         more efficient and can contain the other types without loss of
2546         precision.
2547
2548         * idl/Accessibility_Accessible.idl:
2549         Added method Accessibility:Accessible:getRoleName, to complement
2550         Accessibility:Accessible:getRole.
2551
2552         * cspi/spi_accessible.c:
2553         * cspi/spi.h:
2554         Added C binding for above, Accessible_getRoleName (), and changed
2555         signature of Accessible_getRole () to return an AccessibleRole.
2556
2557         * cspi/spi-roletypes.h:
2558         Changed AccessibleRole_getName to return a char * instead of a
2559         const char *.  This method is now at least temporarily deprecated 
2560         in favor of asking Accessibles for their RoleNames directly.
2561
2562         * libspi/value.c:
2563         Revert to match Accessibility_Value.idl;
2564
2565         * cspi/spi_value.c:
2566         * cspi/spi.h:
2567         Change signature of AccessibleValue methods to use double rather
2568         than float.
2569
2570         * cspi/spi.h:
2571         * cspi/spi_accessible.c:
2572         Changed Accessible_getRole to return an AccessibleRole enum rather
2573         than a UTF-8 string.  The UTF-8 string can still be obtained via
2574         AccessibleRole_getName ().
2575         
2576         * test/test-simple.c:
2577         Add test_action.  Small fixup to match API change to Accessible_getRole.
2578
2579         * libspi/action.c:
2580         Bugfix for get_action_from_servant ().
2581
2582 2001-12-11  Michael Meeks  <michael@ximian.com>
2583
2584         * libspi/libspi.h: remove registry.h and
2585         desktop.h, deviceeventcontroller.h
2586
2587         * libspi/Makefile.am: remove registry.[ch],
2588         desktop.[ch], deviceeventcontroller.[ch]
2589
2590         * registryd/Makefile.am: add registry.[ch],
2591         desktop.[ch], rename registryd.c to registry-main.c.
2592         add deviceeventcontroller.[ch]
2593
2594 2001-12-11  Bill Haneman <bill.haneman@sun.com>
2595
2596         * test/simple-at.c:
2597         Replace setenv() call with putenv ().
2598
2599         * libspi/component.c:
2600         Bugfix in AccessibleComponent_getExtents (),
2601         (from Adi Dascal).
2602         
2603 2001-12-11  Michael Meeks  <michael@ximian.com>
2604
2605         * libspi/image.c (impl_getImageExtents): impl.
2606         (spi_image_class_init): upd.
2607
2608         * cspi/spi_image.c
2609         (AccessibleImage_getImageDescription): fix daft bug
2610         of mine (doh).
2611
2612         * test/test-simple.c (global_listener_cb): update
2613         to only quit if not --poke
2614         (main): catch --poke.
2615         (validate_accessible): upd. dumping, call test_image
2616         (test_image): impl.
2617
2618         * libspi/Makefile.am (IDL_DEPS): fixup the IDL
2619         dependencies.
2620
2621         * idl/Accessibility.idl: update all IDL includes.
2622
2623         * idl/*.idl - rename to namespace - this sucks, blame
2624         mjs' bad decision for oafd.
2625
2626         * test/test-simple.c (create_test_window): add more tests.
2627         (create_tree): split this out.
2628         (validate_accessible): bugfix.
2629
2630 2001-12-11  Michael Meeks  <michael@ximian.com>
2631
2632         * cspi/bonobo/cspi-bonobo-listener.c: 
2633         (cspi_kestroke_listener_unref),
2634         (cspi_event_listener_unref): impl. undoing previous
2635         homenous environment - for Bill.
2636
2637         * cspi/spi_table.c (long_seq_to_array): use
2638         malloc instead.
2639
2640         * cspi/spi_main.c: split out all bonoboish bits into
2641         bonobo/
2642
2643         * cspi/spi-impl.h: upd. typedefs.
2644
2645         * cspi/spi_registry.c: update to lowlevel API,
2646         return booleans to indicate success in some places.
2647
2648         * cspi/spi_event.c: update to lowlevel API.
2649
2650         * cspi/bonobo/Makefile.am: add.
2651
2652         * cspi/bonobo/cspi-lowlevel.h: add
2653
2654         * cspi/bonobo/cspi-bonobo.c: add
2655
2656         * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
2657
2658         * cspi/Makefile.am: remove spi-listener-impl.[ch],
2659         (SUBDIRS): add bonobo, link in the libs.
2660
2661         * cspi/spi-util.c: kill this file.
2662
2663         * TODO: merge in my bits.
2664
2665 2001-12-11  Michael Meeks  <michael@ximian.com>
2666
2667         * test/test-simple.c (test_value, test_table, main):
2668         remove unused variables causing warnings.
2669
2670         * configure.in: cleanup checks - require gail.
2671
2672 2001-12-11  Bill Haneman  <bill.haneman@sun.com>
2673
2674         * idl/Value.idl:
2675         Changed Value interface to use SValue (scalars) rather than
2676         assuming all values are floats.  This allows floats, doubles,
2677         longs, shorts, and unsigned values to be manipulated.
2678         Introduced Accessibility:SValue union.
2679
2680         * libspi/value.c:
2681         Updated to use new API above, and to work correctly with GValues
2682         of different types in AtkValue.
2683
2684         * cspi/spi_value.c:
2685         Updated to use new API above.  cspi's API is as yet unchanged.
2686
2687         * TODO: 
2688         Updated the Value revision action item.
2689         
2690 2001-12-10  Bill Haneman  <bill.haneman@sun.com>
2691
2692         * test/test-simple.c:
2693         Added test_table (GtkTreeView widget in test window to follow).
2694         Un-commented test_value, added GtkRange widget.
2695         Added GtkTreeView widget with GtkListStore.  It passes regression
2696         test but leaks one SPI object for some reason.
2697
2698         * libspi/value.c:
2699         Fixed bug in impl__set_currentValue.
2700
2701 2001-12-10  Michael Meeks  <michael@ximian.com>
2702
2703         * cspi/spi_text.c: audit for exception handling,
2704         tolerating NULL object references safely etc.
2705
2706         * cspi/spi_value.c: ditto.
2707
2708         * cspi/spi_table.c (AccessibleTable_getSummary),
2709         (AccessibleTable_getAccessibleAt),
2710         (AccessibleTable_getRowHeader),
2711         (AccessibleTable_getColumnHeader),
2712         (AccessibleTable_getCaption): fix bugs hidden by
2713         incorrect casts.
2714         (long_seq_to_array): impl.
2715         (AccessibleTable_getSelectedRows),
2716         (AccessibleTable_getSelectedColumns): use it.
2717
2718 2001-12-10  Bill Haneman  <bill.haneman@sun.com>
2719
2720         * TODO:
2721         Added a TODO list (rough and short for now).
2722
2723         * cspi/spi_hyperlink.c:
2724         * cspi/spi_hypertext.c:
2725         Fixed macro name typos, and remove use of obsolete macro in 
2726         AccessibleHyperlink_getLink.
2727
2728         * cspi/spi_action.c:
2729         * cspi/spi_accessible.c:
2730         * cspi/spi_application.c:
2731         * cspi/spi_component.c:
2732         * cspi/spi_selection.c:
2733         * cspi/spi_text.c:
2734         * cspi/spi_value.c:
2735         Documentation fixes (removed return values from ref/unref methods).
2736
2737 2001-12-10  Michael Meeks  <michael@ximian.com>
2738
2739         * cspi/spi_action.c: audit for exception handling,
2740         tolerating NULL object references safely etc.
2741
2742         * cspi/spi_accessible.c: ditto.
2743
2744         * cspi/spi_component.c: ditto.
2745
2746         * cspi/spi_editabletext.c: ditto.
2747
2748         * cspi/spi_hyperlink.c: ditto.
2749
2750         * cspi/spi_hypertext.c: ditto.
2751
2752         * cspi/spi_image.c: ditto.
2753
2754         * cspi/spi_selection.c: ditto.
2755
2756 2001-12-10  Michael Meeks  <michael@ximian.com>
2757
2758         * configure.in: use cspi/libspi.pc.in instead.
2759
2760         * Makefile.am (pkgconfig_DATA): upd. to match.
2761
2762         * test/simple-at.c (report_focus_event): kill hacks around
2763         bad return values, use putenv not setenv
2764
2765         * libspi/desktop.c (impl_desktop_get_child_at_index): don't
2766         fire ChildGone - I killed it.
2767
2768         * libspi/component.c
2769         (impl_accessibility_component_get_extents): remove
2770         bogus return.
2771
2772         * idl/Accessible.idl: kill ChildGone exception.
2773
2774         * cspi/*.[ch]: kill int return from ref / unref.
2775         
2776         * cspi/spi_main.c (cspi_object_add_check): fold into
2777         (cspi_object_add): here.
2778
2779         * cspi/spi_component.c (AccessibleComponent_getExtents):
2780         handle exceptions elegantly.
2781
2782         * cspi/spi-private.h (cspi_check_ev_return),
2783         (cspi_return_if_fail): impl.
2784
2785         * cspi/spi_accessible.c: use extensively.
2786         (AccessibleStateSet_equals): add direct compare check.
2787
2788         * cspi/spi_selection.c: tolerate NULL objs, and check
2789         exceptions before return.
2790
2791         * cspi/spi-util.c (cspi_warn_ev): rename to
2792         (cspi_check_ev): this & don't pass ev in; no point.
2793
2794 2001-12-10  Michael Meeks  <michael@ximian.com>
2795
2796         * test/test-simple.c: use putenv not setenv
2797         (get_environment_vars): more chatty if you're not using
2798         the fun bits.
2799
2800         * test/simple-at.c: do the setenv so more people see the
2801         nice demo easily.
2802
2803 2001-12-10  Bill Haneman <bill.haneman@sun.com>
2804
2805         * libspi/registry.c:
2806         Changed check of CORBA_environment on notification to be a warning
2807         instead of an error for the moment, since we can recover from this
2808         error when caused by a queued notification from a dead app.
2809         
2810         * libspi/value.c:
2811         Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
2812         used by all current implementors of AtkValue), and coerce to
2813         CORBA_float. (Proper general case fix may require change to Value.idl).
2814
2815 2001-12-09  Bill Haneman <bill.haneman@sun.com>
2816
2817         * cspi/spi.h:
2818         * cspi/spi_event.c:
2819         * cspi/spi_accessible.c:
2820         Documentation fixes: added user_data params to documentation for 
2821         listeners and callbacks.  
2822
2823         * cspi/spi_accessible.c: 
2824         Changed AccessibleStateSet_compare to return a
2825         StateSet rather than return the difference set into a third parameter.
2826         
2827         
2828 2001-12-09  Bill Haneman <bill.haneman@sun.com>
2829
2830         * configure.in:
2831         Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
2832         remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
2833         it). 
2834
2835         * Makefile.am:
2836         Remove subdirectory po from SUBDIRS for now.
2837
2838         * at-bridge/bridge.c:
2839         Beefed up a couple of debug printouts.
2840         One-line fix for signal notification name formatting.
2841
2842         * libspi/accessible.c:
2843         Added assertion to spi_accessible_new ().
2844
2845         * libspi/application.c:
2846         Put #ifdef qualifiers around a printf.
2847
2848         * libspi/value.c:
2849         Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
2850
2851         * registryd/Makefile.am:
2852         * util/Makefile.am:
2853         Replaces use of XML_I18N_MERGE_SERVER_RULE with
2854         INTLTOOL_SERVER_RULE macro.
2855
2856         * test/simple-at.c:
2857         Added an event listener for several ATK signals, for
2858         testing and debugging.  Removed a few g_warnings.
2859         Added test output if focussed item implements the Value interface.
2860
2861         * test/test-simple.c:
2862         Added test_value () function (known not to pass at the moment, so
2863         not actually called yet.
2864         
2865 2001-12-08  Michael Meeks  <michael@ximian.com>
2866
2867         * at-bridge/bridge.c (bridge_focus_tracker),
2868         (emit_eventv): fix the same ref. leak.
2869         (register_atk_event_listeners): don't leak.
2870
2871         * cspi/spi-listener-impl.c (cspi_event): more 
2872         protection from client code.
2873
2874         * test/test-simple.c (test_desktop): unref the app.
2875
2876         * test/Makefile.am: upd. TESTS.
2877
2878         * at-bridge/bridge.c (bridge_exit_func): release the registry.
2879
2880         * test/keysynth-demo.c (keysynth_exit): unref the listeners.
2881
2882         * cspi/spi_accessible.c (Accessible_queryInterface): constify.
2883
2884         * cspi/spi_registry.c: constify in strings.
2885         (deregisterGlobalEventListenerAll): don't release the ref.
2886
2887         * cspi/spi.h: start removing redundant / conflicting
2888         gtkdoc comments, making the API readable at a glance :-)
2889         
2890         * cspi/spi_event.c (AccessibleEventListener_unref): impl.
2891
2892         * test/keysynth-demo.c (keysynth_exit, main): upd.
2893
2894         * test/simple-at.c (main, simple_at_exit): upd.
2895
2896         * test/test-simple.c (unutterable_horror): kill.
2897         (utterable_normal_derefs): kill.
2898         (main): upd & do a setenv before gtk_init, so that we
2899         can use memprof - and to save the pain of remembering
2900         this, if we're running under memprof - don't exit.
2901
2902         * cspi/spi_main.c (SPI_exit): return exit status
2903         for cspi.
2904         (SPI_event_quit): impl.
2905         (SPI_event_main): simplify.
2906         (cspi_is_gnome_app): kill.
2907         (SPI_init): kill isGNOMEapp arg.
2908
2909         * at-bridge/bridge.c (register_atk_event_listeners):
2910         re-instate the unref.
2911         (bridge_exit_func): don't re-activate the registry,
2912         protect vs. theoretical re-entry, use the
2913         AT_BRIDGE_SHUTDOWN env. var to determine whether to
2914         assert a clean shutdown - for regression tests.
2915
2916 2001-12-08  Abel Cheung  <maddog@linux.org.hk>
2917
2918         * configure.in: Comment out dummy i18n support for now,
2919           otherwise it fails to build.
2920         * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
2921           EXTRA_DIST. They are missing in tarball.
2922
2923 2001-12-07  Michael Meeks  <michael@ximian.com>
2924
2925         * util/magnifier.c: kill bonobo activation reg. race.
2926
2927         * libspi/component.c
2928         (impl_accessibility_component_get_extents): make it match
2929         it's sig.
2930
2931         * libspi/registry.c (_registry_notify_listeners):
2932         re-remove X headers & reconcile conflicts.
2933         (spi_listener_struct_free): bad conflict resolve.
2934         (impl_accessibility_registry_register_application):
2935         more bad merging fixed.
2936         (impl_accessibility_registry_deregister_application): ditto.
2937         (spi_registry_new): ditto.
2938         (spi_registry_init): don't have an applications field.
2939
2940 [ merge fixups2 branch to here ]
2941 2001-12-07  Michael Meeks  <michael@ximian.com>
2942
2943         * test/simple-at.c (report_focus_event),
2944         (report_focussed_accessible): remove g_warning debug.
2945
2946 2001-12-07  Michael Meeks  <michael@ximian.com>
2947
2948         * test/test-simple.c (validate_tree): comment out some checks.
2949         (test_desktop): app now not registered idly - horay.
2950
2951 2001-12-07  Michael Meeks  <michael@ximian.com>
2952
2953         * cspi/spi_registry.c
2954         (registerAccessibleKeystrokeListener): clean, stop it leaking
2955         great swathes of memory, and device event controller references.
2956         ensure we always pass valid sequences.
2957         (deregisterAccessibleKeystrokeListener): ditto.
2958         (generateKeyEvent): upd.
2959
2960         * at-bridge/bridge.c (bridge_key_listener): handle
2961         registry dead exception gracefully.
2962         (bridge_focus_tracker, emit_eventv): free ev.
2963
2964         * test/simple-at.c (report_focus_event): fix polarity.
2965
2966         * libspi/application.c (notify_listeners): kill the ev
2967         argument, and make sure we init the ev we use.
2968         (spi_application_object_event_listener): split out a chunk
2969         (get_atk_object_ref): here & fixup.
2970         (reverse_lookup_name_for_toolkit_event): make const.
2971         (spi_application_toolkit_event_listener): fixup, kill leaks
2972         ref problems etc.
2973
2974         * at-bridge/bridge.c (register_atk_event_listeners):
2975         don't unref the noop object - causes grief.
2976
2977         * libspi/registry.c: remove the X headers.
2978         turn off the debug churn.
2979
2980         * libspi/accessible.c (spi_accessible_new_return): only
2981         release the ref if we are supposed to [doh]
2982
2983         * test/simple-at.c (report_button_press, report_focus_event):
2984         guard vs. unexpected exit.
2985
2986         * at-bridge/bridge.c (gtk_module_init): prune printf.
2987         (bridge_exit_func): fix app unref.
2988
2989         * libspi/Makefile.am: don't install registry or desktop.h
2990
2991         * libspi/*.h: update includes.
2992
2993         * libspi/application.h: don't include ourself, or
2994         other redundant headers.
2995
2996 2001-12-06  Michael Meeks  <michael@ximian.com>
2997
2998         * libspi/accessible.c
2999         (get_accessible_from_servant): impl.
3000         Upd. all CORBA impl.s to use it killing cut and paste.
3001
3002         * cspi/spi_main.c (cspi_cleanup): guard vs. double
3003         invokes.
3004         (SPI_init): register atexit cleanup handler here.
3005
3006 2001-12-06  Michael Meeks  <michael@ximian.com>
3007
3008         * at-bridge/bridge.c (gtk_module_init): g_error on
3009         activation exception
3010
3011 2001-12-06  Michael Meeks  <michael@ximian.com>
3012
3013         * at-bridge/bridge.c (gtk_module_init): some sort of
3014         confusing merge clash - reverted.
3015         (bridge_idle_init): ditto.
3016
3017         * test/test-simple.c (main, utterable_normal_derefs):
3018         merge from Bill - somehow not committed.
3019
3020 2001-12-06  Michael Meeks  <michael@ximian.com>
3021
3022         * libspi/value.c (spi_value_class_init): upd.
3023         (spi_value_finalize): kill.
3024
3025         * libspi/table.c (spi_table_finalize): kill.
3026         (spi_table_interface_new): upd.
3027         (spi_table_class_init): upd.
3028         (get_table_from_servant): impl.
3029         Upd. all CORBA impl.s to use it killing yet more cut and paste.
3030
3031         * libspi/selection.c (spi_selection_finalize): kill.
3032         (spi_selection_interface_new): upd.
3033         (spi_selection_class_init): upd.
3034         (get_selection_from_servant): impl.
3035         Upd. all CORBA impl.s to use it killing yet more cut and paste.
3036
3037         * libspi/relation.c (spi_relation_finalize): kill.
3038         (spi_relation_class_init, spi_relation_new): upd
3039
3040         * libspi/image.c (spi_image_finalize): kill.
3041         (spi_image_class_init): upd.
3042         (spi_image_interface_new): upd.
3043         (get_image_from_servant): impl.
3044         Upd. all CORBA impl.s to use it killing yet more cut and paste.
3045
3046         * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
3047         (spi_hyperlink_finalize): kill.
3048         (spi_hyperlink_new): upd.
3049         (get_hyperlink_from_servant): impl.
3050         Upd. all CORBA impl.s to use it killing yet more cut and paste.
3051
3052         * libspi/hypertext.c (spi_hypertext_interface_new): upd.
3053         (spi_hypertext_finalize): kill.
3054         (spi_hypertext_class_init): upd.
3055         (get_hypertext_from_servant): impl.
3056         Upd. all CORBA impl.s to use it killing yet more cut and paste.
3057
3058         * libspi/editabletext.c (spi_editable_text_finalize): kill.
3059         (spi_editable_text_interface_new): upd.
3060         (get_editable_text_from_servant): impl.
3061         Upd. all CORBA impl.s to use it killing yet more cut and paste.
3062         
3063         * libspi/text.c (get_text_from_servant): impl.
3064         All impls - update to use it killing more cut and paste,
3065         also fix bad string returns on duff args ( a somewhat
3066         impossible case to handle - but hey ).
3067         (spi_text_construct): impl.
3068         (spi_text_interface_new): upd.
3069         (spi_text_object_finalize): kill.
3070
3071         * libspi/component.c
3072         (accessibility_component_object_finalize): kill.
3073         (spi_component_class_init): upd.
3074         (get_component_from_servant): impl. helper to kill cut & paste.
3075         (impl_accessibility_component_contains): 
3076         (impl_accessibility_component_get_accessible_at_point): 
3077         (impl_accessibility_component_get_position): 
3078         (impl_accessibility_component_get_extents): 
3079         (impl_accessibility_component_get_mdi_z_order): 
3080         (impl_accessibility_component_get_layer): 
3081         (spi_component_interface_new): upd.
3082
3083         * libspi/action.c (spi_action_finalize): kill.
3084         (spi_action_class_init): upd. inherit from SpiObject.
3085         (spi_action_interface_new): upd.
3086         (get_action_from_servant): impl. helper to reduce cut & paste.
3087         (impl_getKeyBinding, impl_getName, impl_doAction),
3088         (impl_getDescription): Use it everywhere.
3089
3090         * cspi/spi_main.c (get_live_refs): a pointer hash.
3091         (spi_object_hash, spi_object_equal): comment out.
3092         There are issues with CORBA object hashing that need
3093         solving.
3094
3095         * libspi/application.c (spi_application_init),
3096         (spi_application_new): upd.
3097
3098         * libspi/accessible.c (spi_accessible_object_finalize): kill.
3099         (spi_accessible_class_init): upd.
3100         s/accessible/object/ in epv methods.
3101
3102 2001-12-05  Bill Haneman <bill.haneman@sun.com>
3103
3104         * at-bridge/bridge.c:
3105         Reorder the bridge initialization into the bridge gtk_module_init,
3106         an immediate call to bridge_register_app, and an idle_add for
3107         register_atk_event_listeners (the only code that *must* wait until
3108         GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
3109         the activation, creates the application's Accessible object, and
3110         queues the bridge_idle_init function.  Restored call to
3111         Accessibility_Registry_deregisterApplication().  
3112         Prior to making this call we obtain a new reference to the
3113         registry, which is a temporary hack that helps us handle apps that
3114         shut down the bonobo mainloop before we get there.
3115
3116         * libspi/registry.c:
3117         Fix string leakage in debug block, and don't segv if a an app
3118         dies before its event notifications have been propagated.
3119
3120         * cpi/spi_util.c:
3121         Modify cspi_check_ev() to call g_warning() rather than g_error(),
3122         as stopgap measure until we get proper exception handling when 
3123         objects die during or before interrogation.  
3124
3125         * cspi/spi_main.c:
3126         * cspi/spi.h:
3127         Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
3128         Also changed default value of is_gnome_app to TRUE.
3129
3130         * test/simple-at.c:
3131         * test/keysynth-demo.c:
3132         Changed use of SPI_init and SPI_event_main to reflect API change above.
3133
3134         * test/simple-at.c:
3135         Made report_focus_event check the warning value from getName
3136         before reporting on focussed accessible; simplifies handling of
3137         notifications from dead objects.
3138
3139         * test/test-simple.c: (Changes not in this patch since source is
3140         not in CVS ?)
3141         
3142 2001-12-05  Michael Meeks  <michael@ximian.com>
3143
3144         * registryd/registryd.c (main): protect against
3145         bonobo-activation startup race condition.
3146
3147         * cspi/spi_main.c (cspi_object_add_check): cope
3148         with the exception elegantly.
3149
3150         * idl/Accessible.idl: decl. ChildGone
3151
3152         * libspi/desktop.c (spi_desktop_dispose): impl.
3153         (spi_desktop_class_init): upd.
3154         (spi_desktop_add_application),
3155         (spi_desktop_remove_application),
3156         (abnormal_application_termination): impl.
3157         (impl_desktop_get_child_at_index): re-impl.
3158
3159         * libspi/registry.c
3160         (impl_accessibility_registry_deregister_application),
3161         (impl_accessibility_registry_register_application): 
3162         kill excessive debug clutter.
3163
3164         * test/test-simple.c (test_misc): test some NULL
3165         tolerance. (main): upd.
3166
3167         * cspi/spi_main.c (cspi_accessible_is_a): a NULL
3168         implements no interfaces - so let's not crash.
3169
3170         * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
3171
3172         * libspi/accessible.c (spi_accessible_new_return): impl.
3173         helper to calm the cut and paste, to cope with
3174         NULL AtkObjects effectively and efficiently, and to kill
3175         the referencing bugs.
3176
3177         * libspi/table.c (impl_getAccessibleAt),
3178         (impl_getRowHeader, impl_getColumnHeader): upd.
3179
3180         * libspi/hyperlink.c (impl_getObject): upd.
3181
3182         * libspi/accessible.c
3183         (impl_accessibility_accessible_get_child_at_index): upd.
3184
3185         * libspi/component.c
3186         (impl_accessibility_component_get_accessible_at_point): upd.
3187
3188         * test/test-simple.c (test_editable_text, test_text): impl.
3189         some simple tests.
3190
3191         * cspi/spi_editabletext.c
3192         (AccessibleEditableText_insertText): constify.
3193
3194         * test/test-simple.c (focus_me): make more robust.
3195
3196         * libspi/accessible.c: remove some printfs in methods that
3197         we test and work fine, so we can get a clean tree dump.
3198
3199         * test/test-simple.c (validate_accessible),
3200         (validate_tree): make tree dumping pretty too.
3201
3202         * at-bridge/bridge.c (bridge_signal_listener): upd. so
3203         it builds without debug on.
3204
3205         * test/test-simple.c (validate_accessible): fix the most
3206         ludicrous bug.
3207
3208         * cspi/spi_main.c (spi_object_release): leave the nicely
3209         blanked memory around if in debug mode.
3210
3211         * cspi/spi-listener-impl.c (cspi_event): use add_check.
3212
3213 [committed to fixups2]
3214 2001-12-05  Michael Meeks  <michael@ximian.com>
3215
3216         * libspi/editabletext.c
3217         (spi_editable_text_class_init): g_type_class_peek_parent,
3218         not interface peek - so we finalize cleanly.
3219
3220         * libspi/accessible.c (spi_accessible_new): kill debug.
3221
3222         * test/test-simple.c (validate_accessible): fix ref.
3223         leak, print strings before freeing them; sigh, comment a
3224         chunk out due to strangeness.
3225         (validate_tree): unref the child after use.
3226
3227         * cspi/spi_component.c (AccessibleComponent_getLayer):
3228         add missing break statement, switch on zlayer not the
3229         uninitialized retval.
3230
3231         * cspi/spi_main.c (cspi_object_add): add assert, local ref
3232         before (possibly re-entering) remote unref.
3233
3234         * test/simple-at.c (main): unref the desktop.
3235
3236         * cspi/spi_accessible.c (cspi_accessible_is_a): move 
3237         into:
3238         
3239         * cspi/spi_main.c (cspi_accessible_is_a): here to 
3240         isolate bonobo API usage more.
3241
3242         * libspi/registry.c (impl_accessibility_registry_register_application): 
3243         prune bogus comment.
3244
3245 2001-12-04  Michael Meeks  <michael@ximian.com>
3246
3247         * test/test-simple.c (validate_tree): upd.
3248         IndexInParent check to make it more lucid.
3249         (validate_accessible): dump the tree.
3250
3251         * libspi/accessible.c (de_register_public_ref),
3252         (get_public_refs): impl.
3253         (spi_accessible_new): make more efficient & intuitive.
3254         Now IndexInParent check works.
3255
3256 2001-12-04  Michael Meeks  <michael@ximian.com>
3257
3258         * cspi/spi-util.h: remove.
3259
3260         * cspi/spi.h: move SPI_freeString here
3261
3262         * libspi/component.c (impl_accessibility_component_get_layer): 
3263         warning fixage.
3264         (impl_accessibility_component_get_mdi_z_order): ditto,
3265         return -1 on error - is this ok ?
3266
3267         * test/test-simple.c (test_application): impl.
3268
3269         * cspi/spi_accessible.c (Accessible_getApplication),
3270         (Accessible_isApplication): impl.
3271
3272         * libspi/registry.c (spi_listener_struct_free): release
3273         the CORBA reference too.
3274
3275         * libspi/accessible.c
3276         (impl_accessibility_accessible_get_parent): fix ref leak.
3277
3278         * libspi/registry.c (spi_registry_new): make the registry
3279         immortal - we don't want it to go away ever.
3280
3281         * libspi/application.c
3282         (spi_accessible_application_finalize): impl. cleanup.
3283
3284         * cspi/spi_registry.c
3285         (deregisterGlobalEventListenerAll),
3286         (deregisterGlobalEventListener),
3287         (deregisterAccessibleKeystrokeListener): fix ref leak.
3288
3289         * cspi/spi_main.c (SPI_init): remove redundant ref.
3290
3291         * test/test-simple.c (unutterable_horror): impl. to force a
3292         clean shutdown.
3293         (main): use it.
3294
3295         * libspi/registry.c
3296         (impl_accessibility_registry_deregister_application): release
3297         the application when we de-register it.
3298
3299         * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
3300         until we have the infastructure to get it right.
3301
3302 2001-12-03  Michael Meeks  <michael@ximian.com>
3303
3304         * libspi/Makefile.am: only build eventlistener.[ch]
3305
3306         * libspi/accessible.c
3307         (impl_accessibility_accessible_get_child_at_index): don't leak.
3308
3309         * at-bridge/bridge.c (bridge_exit_func): cope with an exit
3310         before we hit the idle handler.
3311
3312         * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
3313         debugging than exit.
3314
3315         * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
3316
3317         * libspi/listener.c (impl_notify_event): check source
3318         not NIL before unref.
3319
3320         * libspi/registry.c (impl_registry_notify_event): ditto.
3321
3322         * libspi/eventlistener.c
3323         (impl_accessible_event_notify_event): unref the source.
3324
3325         * libspi/accessibleeventlistener.c
3326         (impl_accessible_event_notify_event): unref the source.
3327
3328         * idl/Event.idl: remove 'hash_id' attribute - of no
3329         concievable use.
3330
3331         * libspi/application.c (notify_listeners): upd list
3332         iteration & sig.
3333         (spi_application_object_event_listener), 
3334         (spi_application_toolkit_event_listener): upd to do correct
3335         CORBA ref counting.
3336
3337         * libspi/registry.c
3338         (_registry_notify_listeners): update.
3339         (parse_event_type): this method also leaks like a sieve.
3340         (impl_accessibility_registry_deregister_global_event_listener): 
3341         fix ETYPE_WINDOW case.
3342
3343         * libspi/application.c
3344         (impl_accessibility_application_register_object_event_listener): 
3345         kill leak.
3346
3347         * libspi/hyperlink.c (impl_getObject): fix ref mistake.
3348
3349         * libspi/hypertext.c (impl_getLink): ditto.
3350
3351         * cspi/spi_main.c (cspi_object_add): remove
3352         bogus CORBA_Object_duplicate.
3353
3354         * cspi/spi-listener-impl.c (cspi_event): dup/ref
3355         on the object_add.
3356
3357         * cspi/spi_accessible.c
3358         (Accessible_getRelationSet): fix leak / referencing issue.
3359
3360         * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
3361         (cspi_object_add, cspi_object_unref): upd.
3362         (spi_object_release, get_live_refs): impl.
3363         (cspi_cleanup): simplify.
3364
3365         * *.[ch]: s/boolean/SpiBoolean/
3366
3367         * cspi/spi_accessible.c (role_names): actualy order so it
3368         corresponds with the enum !
3369
3370         * test/test-simple.c (test_roles): check some role strings
3371         vs. enums to detect offset errors.
3372
3373 2001-12-01  Michael Meeks  <michael@ximian.com>
3374
3375         * cspi/spi_main.c (cspi_object_add_check): impl. helper.
3376
3377         * cspi/spi_accessible.c (Accessible_getChildAtIndex):
3378         check ev before 
3379         (Accessible_getChildAtIndex): use cspi_add_check so we
3380         check the ev before using a (possibly) invalid value.
3381
3382         * libspi/accessible.c
3383         (impl_accessibility_accessible_get_parent): don't segv
3384         on a NULL parent.
3385
3386         * at-bridge/bridge.c (gtk_module_init): upd.
3387         (bridge_property_event_listener): don't leak strings
3388         and events !
3389         (bridge_state_event_listener),
3390         (bridge_property_event_listener): don't use a static
3391         buffer in case of recursive event emission &
3392         re-enterancy - split out the swathe of cut and paste
3393         into:
3394         (emit_eventv): and fix 2 ref leaks here & comply to the
3395         coding style.
3396         (bridge_register_app): rename to 
3397         (bridge_idle_init): this and kill arg parsing, split
3398         various inits & bonobo-activation registration to module
3399         init time, kill referencing error.
3400         (bridge_exit_func): fix the same leak.
3401         (bridge_focus_tracker): don't leak event structures
3402         and strings.
3403         (bridge_signal_listener): more leakage and cut & paste
3404         fixage.
3405         (bridge_key_listener): return the result - FIXME is
3406         this polarity correct ?
3407         (accessibility_keystroke_from_atk_key_event): rename
3408         (accessibility_init_keystroke_from_atk_key_event): and stop
3409         leakage.
3410         (gtk_module_init): return a value - not that it is checked by
3411         Gtk - but hey.
3412         (bridge_key_listener): register my horror at casting between
3413         IDL defined structs.
3414         (bridge_get_registry): kill - not used.
3415
3416         * cspi/spi_accessible.c (Accessible_getRole): make return const.
3417
3418         * test/test-simple.c (test_roles): impl.
3419         (test_desktop, validate_accessible, validate_tree): impl.
3420
3421         * cspi/spi_accessible.c (role_names): fixup bogus
3422         MAX_ROLES setup, make constants const for efficient linkage
3423         (AccessibleRole_getName): conform to coding style, make
3424         return 'const'
3425
3426 2001-11-30  Michael Meeks  <michael@ximian.com>
3427
3428         * cspi/spi.h: add missing prototype.
3429
3430         * libspi/registry.c (spi_listener_struct_new): fix sig.
3431
3432         * test/Makefile.am: add test-simple
3433
3434         * test/test-simple.c: add
3435
3436         * test/test.sh: add.
3437
3438         * cspi/spi_main.c (SPI_init): make SPI_inited module global,
3439
3440         * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
3441         do it straight - since otherwise we often get an activation race.
3442
3443 [ work before Bill duplicated a chunk of it ... ]
3444 2001-11-30  Michael Meeks  <michael@ximian.com>
3445
3446         * libspi/keystrokelistener.c
3447         (spi_keystroke_listener_class_init): fixup arg
3448         count (doh).
3449
3450         * libspi/eventlistener.c
3451         (spi_event_listener_class_init): ditto.
3452
3453         * tests/test.sh: add.
3454
3455         * cspi/spi-listener-impl.h: update macros.
3456
3457         * cspi/spi-listener-impl.c
3458         (cspi_event_listener_remove_callback): add
3459         correct pre-conditions.
3460
3461         * cspi/spi_main.c (SPI_exit): guard vs. double
3462         exits, exit the mainloop nicely.
3463         (SPI_event_main): make more sense.
3464         (SPI_init): move the atexit evilness here so we
3465         always do it (yuck).
3466         (SPI_event_main): upd.
3467
3468         * test/simple-at.c: update for listener changes.
3469
3470         * registryd/registryd.c (main): prune kruft.
3471
3472         * libspi/libspi.h: upd.
3473
3474         * libspi/eventlistener.[ch]: rename broken macros.
3475
3476         * libspi/accessibleeventlistener.[ch]: remove.
3477
3478         * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
3479
3480         * test/test-simple.c: Add - automated tests.
3481
3482         * cspi/spi-listener-impl.c (cspi_event),
3483         (cspi_key_event): add user_data to invoke.
3484         (cspi_keystroke_listener_finalize): impl.
3485         (cspi_keystroke_listener_class_init): upd.
3486
3487         * cspi/spi_event.c
3488         (createAccessibleEventListener),
3489         (AccessibleEventListener_addCallback),
3490         (createAccessibleKeystrokeListener),
3491         (AccessibleKeystrokeListener_addCallback): upd.
3492
3493         * libspi/deviceeventcontroller.c
3494         (spi_device_event_controller_check_key_event): add public proto.
3495
3496         * libspi/registry.c
3497         (impl_accessibility_registry_deregister_global_event_listener): 
3498         always init listeners.
3499         (_registry_notify_listeners): yes it is.
3500
3501         * cspi/spi-listener-impl.c (cspi_key_event): 
3502         move debug to here.
3503         (cspi_event_listener_finalize): impl.
3504         (cspi_event_listener_class_init): hook up.
3505         (event_handler_new, event_handler_free),
3506         (event_list_remove_by_callback): impl.
3507         (cspi_event_listener_remove_callback),
3508         (cspi_keystroke_listener_remove_callback),
3509         (cspi_keystroke_listener_add_callback),
3510         (cspi_event_listener_add_callback): upd.
3511
3512         * libspi/keystrokelistener.c
3513         (keystroke_listener_object_finalize): kill
3514         (spi_keystroke_listener_class_init): upd.
3515         (spi_keystroke_listener_add_callback),
3516         (spi_keystroke_listener_remove_callback): kill,
3517         use signals.
3518         (impl_key_event): prune drasticaly.
3519
3520         * libspi/eventlistener.c
3521         (spi_event_listener_add_callback),
3522         (spi_event_listener_remove_callback): kill, use
3523         signals.
3524         (impl_accessible_event_notify_event): upd.
3525         (spi_event_listener_object_finalize): remove.
3526
3527         * libspi/Makefile.am: use eventlistener.[ch]
3528
3529 2001-12-04  Bill Haneman  <bill.haneman@sun.com>
3530
3531         * libspi/registry.c (_registry_notify_listeners):
3532         Changed listener loop iteration to use preferred convention.
3533         Got rid of string memory leaks caused be calling g_strconcat
3534         inside function calls.
3535
3536         * libspi/registry.c (parse_event_type):
3537         Stopped g_strconcat memory leaks, free the g_strsplit return,
3538         g_strdup the split pieces when used, etc.
3539
3540 2001-12-04  Bill Haneman  <bill.haneman@sun.com>
3541
3542         * idl/State.idl: 
3543         Change method 'compare' to return a 'difference set' rather than
3544         taking a StateSet as an out parameter (more Java-friendly).
3545
3546         * idl/Accessible.idl:
3547         Added CORBA struct 'BoundingBox', to faciliate API changes below:
3548         
3549         * idl/Component.idl:
3550         * idl/Image.idl:
3551         Changed methods 'getExtents' and 'getImageExtents' in these
3552         interfaces to return a BoundingBox structure.  
3553         (getPosition and getSize are redundant and possibly should be
3554         removed, rather than creating a corresponding Point struct.)
3555
3556         * cspi/spi_component.c:
3557         Modify implementation of getExtents to reflect the above IDL
3558         change.
3559         
3560         * cspi/spi_image.c:
3561         * cspi/spi.h:
3562         Add (missing) AccessibleImage_getExtents () API.
3563
3564         * docs/reference/cspi/at-spi-cspi-sections.txt:
3565         Added AccessibleImage_getImageExtents () to docs.
3566         
3567 2001-12-03  Bill Haneman  <bill.haneman@sun.com>
3568
3569         * idl/Component.idl:
3570         Added two methods, getLayer () and getMDIZOrder (), to reflect
3571         the new ATK methods atk_object_get_layer and
3572         atk_object_get_mdi_z_order. (Which arguably should be part of the
3573         AtkComponent API and AtkObject).  Also added an enum,
3574         ComponentLayer, for the first method's return value.
3575
3576         * libspi/component.c:
3577         Added implementations for these methods.
3578
3579         * cspi/spi_component.c:
3580         * cspi/spi.h:
3581         Added cspi binding methods for above, 
3582         AccessibleComponent_getLayer() and
3583         AccessibleComponent_getMDIZOrder().
3584         Added cspi enum 'AccessibleComponentLayer'.
3585
3586         * docs/reference/cspi/at-spi-cspi-sections.txt:
3587         Added above methods to docs.
3588
3589         * cspi/spi-impl.h:
3590         * cspi/spi*.[ch]:
3591         Changed typedef for 'boolean' type (and all references to it) to
3592         SPIBoolean, to avoid keyword clashes with C++.
3593
3594         * test/simple-at.c:
3595         Changed usages of 'boolean' to SPIBoolean.
3596
3597         * test/keysynth-demo.c:
3598         Changed usages of 'boolean' to 'gboolean' (since this is a gnome
3599         app), except where SPIBoolean is required by the callbacks API.
3600         
3601 2001-12-02  Bill Haneman  <bill.haneman@sun.com>
3602
3603         * cspi/spi_registry.c:
3604         Removed obsolete X event loop for passive keygrabs (which now
3605         lives in libspi).
3606
3607         * registryd/registryd.c:
3608         Removed unnecessary call to gdk_init() [cruft]. This also allows
3609         removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
3610         * configure.in.
3611
3612 2001-11-28  Bill Haneman  <bill.haneman@sun.com>
3613
3614         * docs/reference/cspi:
3615         Included docs for SPI_freeString in generated documentation.
3616
3617         * cspi/spi-util.c:c
3618         Renamed spi_freeString to SPI_freeString, for consistency.  Added
3619         documentation for this function.
3620
3621         * cspi/spi-util.h:
3622         Renamed spi_freeString to SPI_freeString, for consistency.  
3623         Removed obsolete method declaration string_from_corba_string.
3624
3625         * test/keysynth-demo.c:
3626         Small tweak to comments.
3627
3628         * test/simple-at.c:
3629         Stopped leaking the strings returned from CSPI. 
3630
3631 2001-11-28  Bill Haneman  <bill.haneman@sun.com>
3632
3633         Merged Michael's branch (see his ChangeLog entries below).
3634         
3635         * at-bridge/bridge.c: Explicitly hold a ref to the registry while
3636         bridge is alive, release on exit.
3637         
3638         * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
3639         Fix type check macro.
3640         
3641         * cspi/spi_event.c:
3642         Added AccessibleKeystrokeListener_unref() method to reduce leakage.
3643         
3644         * cspi/spi_main.c: 
3645         Added is_gnome_app static, and method cspi_is_gnome_app(), 
3646         so we can call the appropriate shutdown routine at exit in SPI_exit.
3647         
3648         * cspi/spi_main.c (cspi_object_ref):
3649         Duplicate the corba object passed in, since we're keeping it around.
3650         
3651         * cspi/SPI_exit.c, cspi_cleanup:
3652         Moved the releasing of the live refs to its own function, so we
3653         can put it in g_atexit ().  Call the appropriate shutdown API
3654         depending on whethe calling client is a gnome app or not
3655         (bonobo_main_quit or CORBA_ORB_shutdown).
3656         
3657         * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
3658         Unref the listener when this method is called, after
3659         deregistration.  Updated the API docs to note this behavior.
3660
3661         * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
3662         Bugfixes: Ref the bonobo object when returning a parent or child 
3663         reference, or an AccessibleRelation.  Generally made sure
3664         BonoboObject refcount is incremented whenever we return an
3665         Accessible.
3666
3667         * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
3668         Fixed typo/bug in signal declaration.
3669         
3670         * libspi/accessibleeventlistener.h:
3671         Fixed a type macro.
3672
3673         * libspi/application.c (spi_application_new):
3674         Fixed leak in initialization.
3675
3676         * libspi/desktop.c:
3677         Remembered to increment bonobo-object refcount when returning
3678         children (applications) from desktop object.
3679         Added (empty) finalize method.
3680
3681         * libspi/deviceeventcontroller.c:
3682         Hold a ref to listeners inside DEControllerKeyListeners.
3683         Added dec_key_listener_free() method.  Use prepend instead of
3684         append in key_listener list.  Fixed some refcount madness and
3685         leaks in the listener registration/deregistration - deregistration
3686         now calls dec_key_listener_free() on listeners, and on the
3687         temporarily constructed dec_key_listener() used to perform the search/match.
3688
3689         * libspi/hypertext.c (spi_hypertest_finalize):
3690         Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
3691         class.  Also fixed spi_hypertext_interface_new() and
3692         SpiHypertextClass.  Fixed a couple of paren-whitespace formatting bugs.
3693
3694         * libspi/hypertext.h: 
3695         Removed pointless and duplicate AtkObject pointer from
3696         SpiHypertextClass.
3697
3698         * libspi/keystrokelistener.c:
3699         Fixed incorrect type of keystroke_listener_parent_class,
3700         renamed keystroke_listener_object_finalize to
3701         spi_keystroke_listener_object_finalize.
3702         Fixed typo in signal declaration
3703         (spi_keystroke_listener_class_init).
3704
3705         * libspi/registry.c:
3706         Added funcsions spi_listener_struct_new() and
3707         spi_listener_struct_free() to help with memory management issues.
3708         We also now use these methods instead of gnew + poking stuff into
3709         the struct, and to decrement listener counts/free the listeners
3710         when deregistering them.
3711         Fix more refcount bugs in getDesktop() and
3712         getDeviceEventController().  
3713
3714         * test/simple-at.c:
3715         De-ref the desktop after enumerating the applications.  Explicitly
3716         decrement the refcounts on the created listeners on exit (using
3717         _unref for keystroke listeners, and via the
3718         deregisterGlobalEventListenerAll command for other event
3719         listeners).
3720         
3721 2001-11-27  Michael Meeks  <michael@ximian.com>
3722
3723         * cspi/spi-listener.h: fixup enum.
3724
3725 2001-11-27  Michael Meeks  <michael@ximian.com>
3726
3727         * cspi/spi-listener-impl.c (cspi_event_listener_new),
3728         (cspi_keystroke_listener_new): Use the cspi variants.
3729
3730 2001-11-26  Michael Meeks  <michael@ximian.com>
3731
3732         * test/keysynth-demo.c: fix 2 compile warnings, missing
3733         type in decl. etc.
3734
3735         * test/simple-at.c (report_focussed_accessible),
3736         (report_focus_event, report_button_press),
3737         (check_property_change, is_command_key),
3738         (report_ordinary_key_event, report_command_key_event): upd.
3739
3740         * util/mag_client.h: include pre-requisites.
3741
3742         * libspi/accessibleeventlistener.c
3743         (spi_event_listener_object_finalize): free any lingering
3744         callbacks.
3745         
3746         * libspi/keystrokelistener.c
3747         (keystroke_listener_object_finalize): ditto.
3748
3749         * cspi/spi-listener-impl.[ch]: Add to implement cspi style
3750         callbacks, with cspi types.
3751         
3752         * cspi/spi_event.c (createAccessibleEventListener): chain to
3753         (AccessibleEventListener_addCallback): here.
3754         (createAccessibleKeystrokeListener): chain to 
3755         (AccessibleKeystrokeListener_addCallback): here.
3756
3757         * libspi/keystrokelistener.c
3758         (spi_keystroke_listener_class_init): add signal.
3759         (impl_key_event): emit the event.
3760         (boolean_handled_accumulator): impl.
3761         (marshal_BOOLEAN__POINTER): add, gack.
3762
3763         * libspi/accessibleeventlistener.c
3764         (spi_event_listener_class_init): add signal.
3765         (impl_accessible_event_notify_event): emit the signal &
3766         make the loop efficient.
3767         (spi_event_listener_add_callback): prepend the callback.
3768
3769         * libspi/accessibleeventlistener.h: add an 'event' signal,
3770         decl type on callback.
3771
3772         * libspi/keystrokelistener.h: ditto.
3773
3774         * cspi/spi-listener.h: make methods typesafe and
3775         make them use the new event typedefs.
3776
3777         * test/simple-at.c (report_focussed_accessible):
3778         include mag_client.h
3779         Use *(void *)text_interface not the other thing.
3780         
3781         * configure.in: add gtk to registryd bits - since we use
3782         gdk there ( why ? )
3783
3784         * util/magnifier.c: include libbonobo.h
3785         
3786 2001-11-25  Bill Haneman  <bill.haneman@sun.com>
3787
3788         * test/keysynth-demo.c:
3789         Turned this into a simple scanning keyboard, to demonstrate the
3790         use of g_timeout_add () as a means of creating timers for
3791         scanning, and the use of GtkStyle for visually indicating when
3792         virtual keyboard elements are selected.
3793
3794         keysynth-demo now listens to any keyboard keys with zero-valued
3795         keycodes (i.e. 'unused' keys) and interprets them as
3796         single-switches.
3797
3798         Reworked the shiftlatch code so that shift-down state isn't held
3799         for long periods (it's only synthesized immediately prior to
3800         the keysynth event it's modifying).  Note that shiftlatch in this
3801         demo is a convenience, not intended to take the place of AccessX 
3802         which is the better choice for getting 'sticky' modifier keys.
3803
3804         * libspi/deviceeventcontroller.c:
3805         * at-bridge/bridge.c:
3806         * cspi/spi_registry.c:
3807         Removed some debug print stuff, and put other verbosity in #ifdef
3808         blocks.
3809
3810         * util/magnifier.c:
3811         * util/mag_image.h:
3812         Implemented some more of the magnifier IDL for the simple
3813         magnifier: namely, getZoomRegionParams. 
3814         Added mag_x and mag_y members to MagnifierData struct, aid of this
3815         implementation.
3816         Added GtkWindow::realize signal handler to magnifier, to keep it
3817         from receiving keyboard focus from the WM.
3818
3819 2001-11-23  Mark McLoughlin  <mark@skynet.ie>
3820
3821         * cspi/spi-private.h: my guess at what michael forgot
3822         before he ran off to NZ :-)
3823
3824 2001-11-23  Michael Meeks  <michael@ximian.com>
3825
3826         * cspi/spi_event.c (AccessibleEventListener_removeCallback):
3827         comment out non existant method invoke so we link.
3828
3829         * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
3830         use bonobo_exception_get_text for more friendly warnings.
3831
3832         * cspi/spi.c (Obj_Add): move into spi_main & rename
3833         spi_object_add; kill spi.c
3834
3835         * cspi/spi_registry.c
3836         (deregisterGlobalEventListener),
3837         (deregisterGlobalEventListenerAll),
3838         (registerGlobalEventListener): fix exception leaks.
3839
3840         * cspi/spi_main.c (spi_exception): impl. helper, so we
3841         don't leak exceptions.
3842
3843         * cspi/spi_selection.c
3844         (AccessibleSelection_deselectSelectedChild): return the
3845         success state.
3846
3847         * cspi/spi_main.c (spi_ev): impl; hack - gack.
3848         (spi_registry): ditto.
3849         (SPI_init): guard against double inits.
3850
3851         * cspi/*.c: use spi_ev (), and spi_registry () where
3852         appropriate - a temporary hack until we have something
3853         better. Use spi_object_add
3854
3855 2001-11-22  Michael Meeks  <michael@ximian.com>
3856
3857         * cspi/Makefile.am: re organise, install the headers.
3858
3859         * cspi/*.h: add G_BEGIN/END_DECLS
3860
3861 2001-11-22  Bill Haneman  <bill.haneman@sun.com>
3862
3863         * test/simple-at.c:
3864         Added non-preemptive keylistener for key events with no modifiers
3865         and shift-only modifier.
3866
3867         * libspi/keystrokelistener.c:
3868         Removed some verbose diagnostics printout.
3869
3870         * cspi/spi_registry.c:
3871         Fixed a bug that caused all key listeners to be registered as
3872         pre-emptive.
3873         
3874         * libspi/deviceeventcontroller.c:
3875         Fixed bug that caused XGrabKey (preemptive key grab) to be called
3876         for non-preemptive key masks.
3877
3878
3879 2001-11-22  Bill Haneman  <bill.haneman@sun.com>
3880
3881         * docs/reference/idl/at-spi-idl-docs.sgml:
3882         * docs/reference/idl/at-spi-idl-sections.txt:
3883         * docs/reference/idl/at-spi-idl-overrides.txt:
3884         Added missing files.
3885
3886         * docs/reference/Makefile.am:
3887         removed idl from SUBDIRS until we can figure a way to get gtk-doc
3888         to scan the IDL files :-(
3889
3890         * docs/reference:
3891         * docs/cspi:
3892         * docs/idl:
3893         Added .cvsignore files.
3894         
3895 2001-11-21  Bill Haneman  <bill.haneman@sun.com>
3896
3897         * libspi/deviceeventcontroller.c:
3898         * libspi/keystrokelistener.c:
3899         * cspi/spi_event.c:
3900         * cspi/spi_registry.c:
3901         Added filters for KeySets, KeyEventSeq, and event types to key
3902         event dispatching, so listeners should only receive those events
3903         that they requested :-)
3904
3905 2001-11-21  Bill Haneman  <bill.haneman@sun.com>
3906
3907         * configure.in:
3908         * docs/Makefile.am:
3909         * docs/reference:
3910         * docs/reference:Makefile.am:
3911         * docs/reference/cspi:
3912         * docs/reference/cspi:Makefile.am:
3913         * docs/reference/cspi:tmpl:
3914         * docs/reference/cspi:tmpl:*.sgml:
3915         * docs/reference/idl:
3916         * docs/reference/idl:Makefile.am:
3917         * docs/reference/idl:at-spi-idl-sections.txt:
3918         * docs/reference/idl:at-spi-idl-docs.sgml:
3919         * docs/reference/idl:tmpl:
3920         * docs/reference/idl:tmpl:*.sgml:
3921
3922         Restructured docs directory to allow separate 'reference' docs
3923         section, and forked idl and cspi docs.  Added the sgml template
3924         files to CVS.  Added the first sections/structural sgml for the
3925         IDL docs.
3926
3927 2001-11-21  Laszlo Peter  <laca@ireland.sun.com>
3928
3929         * configure.in, libspi/Makefile.am: find libXtst.
3930
3931 2001-11-21  Michael Meeks  <michael@ximian.com>
3932
3933         * test/accessx-gui.c: s/spi_value/value/ - doh.
3934
3935         * libspi/base.[ch]: add.
3936
3937 2001-11-18  Bill Haneman <bill.haneman@sun.com>
3938
3939         * idl/Accessible.idl:
3940         * idl/Application.idl:
3941         * idl/Registry.idl:
3942         * idl/Action.idl:
3943         Started gtk-doc cleanup on IDL.
3944
3945         * libspi/deviceeventcontroller.c:
3946         Added and connected non-preemptive key notification from the
3947         toolkits (in addition to the pre-emptive support from XServer
3948         which we had before, but which causes 'focus flashing').  Filters
3949         are presently limited to key modifiers and global/non-global,
3950         KeySets are presently ignored, as are KeyEvent masks.
3951
3952         Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
3953         structs into the persistant structure rather than just storing
3954         pointers to things that might not persist across servant
3955         invocations.
3956
3957         The XGrabKey call now does async keygrabs, because synchronous
3958         ones were deadlocking with GDK_event code in a very nasty way.
3959
3960         Added boolean to internal method notify_keylisteners, to indicate
3961         whether the event came from the 'toolkit source' or the 'global
3962         (XServer) source' - this is used in the notification process to
3963         determine which listeners to send the event to.
3964
3965         deviceeventcontroller.c is now warning-free.
3966         
3967         * libspi/registry.c:
3968         Fixed regression in application de-registration.
3969         Also fixed some really brain-dead weirdness having to do with
3970         event dispatching - event structs are now duplicated before being
3971         re-marshalled in the dispatch to listeners.  This also fixes a
3972         Solaris build problem.
3973         
3974         
3975 2001-11-20  Michael Meeks  <michael@ximian.com>
3976
3977         * libspi/registry.c
3978         (impl_accessibility_registry_deregister_global_event_listener): 
3979         segv. protection.
3980
3981         * libspi/deviceeventcontroller.c
3982         (spi_device_event_controller_check_key_event): return
3983         FALSE on no virtual method.
3984
3985         * libspi/*..h: make includes work on a correctly pathed install.
3986
3987         * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
3988
3989         * libspi/application.h: kill unused ( and whacked out )
3990         gboolean *spi_application_set_id (AtkObject *app, long id);
3991
3992 2001-11-20  Michael Meeks  <michael@ximian.com>
3993
3994         * libspi/*.[ch]: further convert to bonobo's type func
3995         macros, remove redundnant casts etc.
3996
3997         * libspi/text.c s/accessibility_text/spi_text/g,
3998         re-order to de-cruft.
3999
4000         * libspi/hypertext.c: re-order to kill a huge slew
4001         of redundant forward decls.
4002
4003         * libspi/relation.c: ditto.
4004
4005         * libspi/image.c: ditto.
4006
4007         * */.cvsignore: update
4008         
4009 2001-11-20  Michael Meeks  <michael@ximian.com>
4010
4011         * libspi/deviceeventcontroller.c
4012         (_controller_register_with_devices): use g_getenv,
4013         kill stdlib.h include.
4014
4015         * libspi/keystrokelistener.c
4016         (spi_keystroke_listener_get_type): kill
4017         (spi_keystroke_listener_class_init),
4018         (spi_keystroke_listener_init): rename to this.
4019
4020         * libspi/text.c (impl_getAttributes): fix warning / bug.
4021
4022         * libspi/*.[ch]: more headers, includes and over commenting.
4023         
4024 2001-11-20  Michael Meeks  <michael@ximian.com>
4025
4026         * libspi/*.[ch]: fixup headers, includes and over commenting.
4027
4028         * libspi/image.c (impl__get_imageDescription): const
4029         correctness warning fix. remove redundant casting.
4030
4031         * libspi/table.c (impl_getRowDescription): ditto.
4032         (impl_getColumnDescription): ditto.
4033
4034         * libspi/libspi.h: add.
4035
4036 2001-11-19  Michael Meeks  <michael@ximian.com>
4037
4038         * libspi/editabletext.c (impl_setAttributes): fix warnings.
4039
4040         * libspi/component.c (accessibility_component_get_type): 
4041         rename to (spi_component_get_type): and macroify.
4042         (accessibility_component_init): rename to
4043         (spi_component_init): this
4044         (accessibility_component_class_init): rename to
4045         (spi_component_class_init): this
4046
4047         * libspi/action.c (spi_action_get_type): kill, use the macro.
4048
4049         * libspi/deviceeventcontroller.c (_compare_listeners): re-order
4050         to avoid prototype.
4051
4052         * libspi/application.c (spi_application_object_event_listener),
4053         (impl_accessibility_application_register_object_event_listener):
4054         warning fixes / const understanding updates.
4055
4056         * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
4057         warning fixes.
4058
4059 2001-11-18  Bill Haneman <bill.haneman@sun.com>
4060
4061         * libspi/spi_accessible.c: Added docs and C bindings for
4062         AccessibleStateSet. (No implementations yet).  Documentation
4063         coverage for C bindings now 100%. Made docs for event listeners
4064         more explicit.
4065         
4066         * idl/Registry.idl:
4067         Added methods 
4068             boolean notifyListenersSync (in DeviceEventListener listener,
4069                                      in DeviceEvent event);
4070
4071             oneway void notifyListenersAsync (in DeviceEventListener listener,
4072                                           in DeviceEvent event);
4073
4074         Added DeviceEventListener and DeviceEvent structs (may deprecate
4075         KeyStroke and KeystrokeListener in favor of this generic
4076         event/listener framework for devices).
4077
4078         * libspi/deviceeventcontroller.c:
4079
4080         Changed some key listener code to take masks, etc., and paved the
4081         way for integration of toolkit/non-preemptive key events. Changed
4082         signatures of some internal methods.
4083
4084         * at-bridge/bridge.c:
4085         Fixed regression connecting to interface signals, apparently
4086         caused by GTK+ changes.
4087
4088         Added an internal bridge_state_listener to deal with
4089         property-change:accessible-state signals.
4090
4091         Changed the key_listeners GList to store structs (including masks,
4092         etc.) instead of just CORBA_Objects (required for full
4093         implementation of key listener API).
4094
4095         Connected the bridge to all currently supported Atk signals.
4096         Events now supported: 
4097             object:property-change
4098             object:property-change:accessible-name
4099             object:property-change:accessible-state
4100             object:property-change:accessible-description
4101             object:property-change:accessible-parent
4102             object:property-change:accessible-value
4103             object:property-change:accessible-role
4104             object:property-change:accessible-table-caption
4105             object:property-change:accessible-table-column-description
4106             object:property-change:accessible-table-column-header
4107             object:property-change:accessible-table-row-description
4108             object:property-change:accessible-table-row-header
4109             object:property-change:accessible-table-summary
4110             object:children-changed
4111             object:visible-data-changed
4112             object:selection-changed
4113             object:text-selection-changed
4114             object:text-changed
4115             object:text-caret-moved
4116             object:row-inserted
4117             object:row-reordered
4118             object:row-deleted
4119             object:column-inserted
4120             object:column-reordered
4121             object:column-deleted
4122             object:model-changed        
4123
4124 2001-11-16  Bill Haneman <bill.haneman@sun.com>
4125
4126         * libspi/hyperlink.c,h:
4127         Fixed some broken stuff in hyperlink.
4128         
4129         * libspi/relation.h:
4130         * libspi/relation.c:
4131         * cspi/spi_accessible.c:
4132         Initial implementations of AccessibleRelation methods, and docs.
4133
4134         * libspi/accessible.c:
4135         Fixed a bug that caused SEGV  if an accessible
4136         object's description is NULL, and a client
4137         requests it.  An empty string is now returned.
4138
4139         * cspi/spi_editabletext.c:
4140         * cspi/spi_hypertext.c:
4141         * cspi/spi_image.c:
4142         * cspi/spi_hyperlink.c:
4143         * cspi/spi_table.c:
4144         Added docs.  
4145
4146         Doc coverage now 95%.
4147
4148 2001-11-16  Bill Haneman <bill.haneman@sun.com>
4149
4150         One last namespacing revision:
4151         * libspi/accessibleeventlistener.[ch]:
4152         Renamed SpiAccessibleEventListener to SpiEventListener,
4153         (no need for two namespaces ;-)
4154
4155         And lots of documentation fixes:
4156
4157         * docs/at-spi-docs.sgml:
4158         Fixed 'underscore vs. hyphen' bug that was preventing
4159         the gtk-doc API docs from being automatically generated.
4160
4161         * cspi/spi-impl.h
4162         * cspi/spi-listener.h
4163         * cspi/spi.h
4164         * cspi/spi_accessible.c
4165         * cspi/spi_action.c
4166         * cspi/spi_application.c
4167         * cspi/spi_component.c
4168         * cspi/spi_editabletext.c
4169         * cspi/spi_event.c
4170         * cspi/spi_hypertext.c
4171         * cspi/spi_main.c
4172         * cspi/spi_registry.c
4173         * cspi/spi_selection.c
4174         * cspi/spi_text.c
4175         * cspi/spi_value.c
4176         * docs/Makefile.am
4177         * docs/at-spi-docs.sgml
4178         * docs/at-spi-sections.txt
4179         
4180         Added and fixed up gtk-doc documentation in cspi.
4181         
4182         Interfaces now (fully) documented (subject to revision and enhancement):
4183         SPI_main
4184         Event Listener Support
4185         Registry API
4186         AccessibleApplication
4187         Accessible
4188         AccessibleAction
4189         AccessibleComponent
4190         AccessibleEditableText
4191         AccessibleSelection
4192         AccessibleText
4193         AccessibleValue
4194
4195         still pending:
4196         AccessibleStateSet
4197         AccessibleRelationSet
4198         AccessibleImage
4199         AccessibleTable
4200         AccessibleHyperlink
4201         
4202 2001-11-14  Bill Haneman <bill.haneman@sun.com>
4203
4204         * at-bridge/bridge.c:
4205         Initial work for toolkit-level key snooper connection by bridge.
4206
4207         * cspi/spi-impl.h:
4208         * cspi/spi_*.h:
4209         * cspi/spi_*.c:
4210         New typedefs and fixes to support new namespacing, and cleaner
4211         separation of cspi bindings from libspi bonobo implementation.  
4212         Removed inconsistent and extraneous Spi* namespace prefix that
4213         had crept into cspi headers.
4214         Lots of comment fixes that sed had missed.
4215
4216         * cspi/spi-roletypes.h:
4217         * cspi/spi-statetypes.h:
4218         Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
4219         to AccessibleRoleType.
4220         
4221         * libspi/accessibleeventlistener.h:
4222         Fixed minor namespacing weirdness.
4223
4224         * libspi/deviceeventcontroller.c:
4225         Reordered some internal API for device listeners.
4226         Changed the key registry final boolean to 'is_system_global'
4227         rather than 'is_synchronous', which is more descriptive of its 
4228         actual meaning.
4229         Added spi_device_event_controller_new().
4230         Added  SpiRegistry backpointer to SpiDeviceEventControllerClass.
4231          
4232         * libspi/keystrokelistener.[ch]:
4233         Namespaced KeystrokeListener to SpiKeystrokeListener.
4234         Changed uses of keymasks to use SPI_ prefix, and did other
4235         knock-on fixups.
4236
4237         * libspi/keymasks.h:
4238         Namespaced keymask constants with SPI_ prefix.
4239
4240         * libspi/registry.c:
4241         Some warning fixes, and knock-on fixes from namespace changes.
4242
4243         * test/Makefile.am:
4244         Added rules for accessx-gui test program.
4245
4246         * test/accessx-gui.c:
4247         Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
4248         utility.  It doesn't actually use at-spi, but it's still cool and
4249         useful ;-)
4250
4251         * test/keysynth-demo.c:
4252         * test/simple-at.c:
4253         * test/at.c:
4254         * test/app.c:
4255         Fixes so that these test clients work properly with the namespaced
4256         libraries. (Incompletely tested for technical reasons, fixes may follow)
4257         
4258
4259 2001-11-13  Michael Meeks  <michael@ximian.com>
4260
4261         * libspi/application.c
4262         (impl_accessibility_application_get_version),
4263         (impl_accessibility_application_get_toolkit_name):
4264         warning fixes.
4265         (impl_accessibility_application_set_id),
4266         (impl_accessibility_application_get_id): remove
4267         redundant casting code.
4268
4269         * libspi/action.c (impl_getDescription): fix warnings.
4270
4271         * libspi/accessible.c
4272         (impl_accessibility_accessible_get_parent),
4273         (impl_accessibility_accessible_get_child_at_index),
4274         (impl_accessibility_accessible_get_state),
4275         (impl_accessibility_accessible_get_relation_set):
4276         warning fixes & include action.h
4277
4278 2001-11-13  Michael Meeks  <michael@ximian.com>
4279
4280         * *.[ch] fix bits I screwed up:
4281
4282                 s/([^ \tb(\*\&\?\",])spi_/\1/g;
4283                 s/([^ \tb(\*\&\?\",])Spi/\1/g;
4284         
4285 2001-11-13  Michael Meeks  <michael@ximian.com>
4286
4287         * *.[ch] Namespace libspi into spi_ and Spi.
4288
4289 2001-13-11  Michael Meeks  <michael@ximian.com>
4290
4291         * Makefile.am: dist & install at-spi-1.0.pc
4292
4293         * libspi/Makefile.am: install into at-spi-1.0
4294
4295         * idl/Makefile.am (idldir): install into at-spi-1.0
4296
4297         * at-spi-1.0.pc.in: add.
4298
4299         * configure.in: build it.
4300
4301 2001-11-12  Bill Haneman <bill.haneman@sun.com>
4302
4303         * test/keysynth-demo.c:
4304         Use a 'realize' signal-handler to set the WM properties for
4305         the virtual keyboard, rather than making it a "POPUP" type
4306         override-redirect window (thanks to anders carlsson for that
4307         tip!)
4308
4309 2001-11-11  Bill Haneman <bill.haneman@sun.com>
4310
4311         * test/Makefile.am:
4312         * test/keysynth-demo.c:
4313         Added new test of key synthesis, which creates a simple
4314         (mouse-operated) onscreen keyboard.  It inserts key events into
4315         the currently-focused window, thus it does not grab keyboard focus
4316         itself.
4317
4318         * cspi/spi_registry.c:
4319         Added C binding for AT-SPI generateKeyEvent.
4320
4321         * libspi/deviceeventcontroller.c:
4322         Added call to XFilterEvent so that key listener works with XIM (we
4323         hope).  Added event_synth_type to generateKeyEvent, so that we can
4324         produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
4325         synthesize a press/release pair for KeySyms.    
4326         
4327 2001-11-09  Bill Haneman <bill.haneman@sun.com>
4328
4329         * libspi/Makefile.am: 
4330         * registryd/Makefile.am:
4331         (temporary) hack to include libXtst in libspi and registryd.
4332         (Needed for keystroke synthesis, see below).
4333
4334         * idl/Registry.idl:
4335         Improved API for registerKeystrokeListener, in accordance with
4336         discussions with Gnopernicus team and X server research.
4337
4338         * libspi/registry.c:
4339         * libspi/deviceeventcontroller.c:
4340         * libspi/accessible.c:
4341         * libspi/keystrokelistener.c:
4342         Changes and fixes to support keylisteners for potentially
4343         consumed key events (that is, 'passive grabs').
4344         Added implementation for generateKeyEvent() [untested].
4345
4346         * cspi/spi.h:
4347         Changes to registerKeystrokeListener() API, as above.
4348         Added deregisterGlobalEventListenerAll(), and 
4349         deregisterKeystrokeListener(), which are needed for clean exit of
4350         clients.
4351         Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
4352         and a macro ALL_KEYS which may be used in place of a KeySet pointer.
4353         
4354         * cspi/spi_registry.c:
4355         Added implementations of function prototypes mentioned above.
4356         
4357         * registryd/registryd.c:
4358         Added the key listener event source as a g_timeout(), to allow
4359         receipt of key events that are not caught by GDK (since GDK
4360         doesn't support passive keygrabs, this was necessary).
4361
4362         * test/simple-at.c:
4363         Changed to attach a keylistener to 'Alt' keys, and
4364         respond to the following keycommands: Alt-M (toggle magnifier);
4365         Alt-F (toggle speech); Alt-Q (quit).
4366         Added an exit routine to deregister the listeners, and a key
4367         listener that prints some key info to the console when a key
4368         matches the listener mask (and is thus received by the listener).
4369         
4370         * util/idl/Magnifier.idl:
4371         Changes to magnifier API to support multiple zoom regions,
4372         non-uniform scaling in x and y, markDirty, and a host of other
4373         features that would be useful to magnification.
4374
4375         * util/mag_image.h:
4376         * util/mag_client.c:
4377         * util/mag_client.h:
4378         * util/mag_control.c:
4379         * util/magnifier.c:
4380         Source code changes to support the above IDL changes.
4381         
4382         * util/mag_image.c:
4383         As above, and also changes to use a (slower) generic conversion
4384         path for colormap conversions, since the fast RGB conversions have been
4385         reported to fail for 16-bit displays.
4386
4387 2001-10-26  Michael Meeks  <michael@ximian.com>
4388
4389         * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
4390
4391 2001-10-26  Laszlo Peter <laca@ireland.sun.com>
4392
4393         * at-bridge/Makefile.am: fix LDFLAGS.
4394
4395 2001-10-09  Bill Haneman <bill.haneman@sun.com>
4396
4397         * at-bridge/bridge.c:
4398         Re-worked listeners for toolkit events, now we have signal
4399         and property listeners. Added a private method
4400         register_atk_event_listeners(), which registers with the
4401         various atk and gtk signals we need to monitor in order to emit
4402         our at-spi events.
4403         Added emission hook for AtkObject:property-change events, to
4404         support the 'property listeners'.
4405         Fixed some alloc()s of Accessibility_Event structs to use CORBA
4406         allocation.
4407
4408         * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
4409         which emit warnings and exit, respectively, if CORBA errors occur
4410         during remote calls, and we now use these methods to check most of
4411         our CORBA calls in the C bindings.
4412
4413         * cspi/spi_accessible.c:
4414         Changed AccessibleSelection_refSelectedChild() to
4415         AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
4416         now increment refcounts.
4417
4418         * cspi/spi_component.c:
4419         Fixed some long pointer casts (dangerous!) to pass pointers to
4420         CORBA_longs of the proper type to the CORBA stubs, and copy the
4421         data into the longs that were passed into the C bindings code.
4422         
4423         * at-bridge/bridge.c:
4424         
4425         * libspi/accessible.c:
4426         Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
4427         hyperlinks, AtkHyperlink is an object type.     
4428
4429         * libspi/application.c:
4430         Added various conversions to and from "generic" event types and
4431         atk-specific types; this is really part of the 'bridge'
4432         implementation but is valid for all AtkObject-based accessibility 
4433         implementations.
4434
4435         * libspi/editabletext.c:
4436         Fixed nasty bug wherein editable text's finalize method was
4437         unref'ing tha AtkObject reference that the text parent class was
4438         about to unref _again_.  There was also a nasty inheritance bug
4439         that meant that the AccessibleEditableText class was corrupt.
4440
4441         * libspi/selection.c:
4442         Provided implementations for some selection API that was broken.
4443         
4444         * idl/Application.idl:
4445         Added registerObjectEventListener () method.
4446
4447         * THROUGHOUT:
4448         Fixed a number of return values that were Bonobo_Unknowns from
4449         bonobo_object_corba_objref(), which I
4450         forgot to dup before returning.  Changed instances of 
4451         bonobo_object_corba_objref (bonobo_object(o)) to
4452         BONOBO_OBJREF(o), for concision and clarity.
4453         
4454 2001-10-13  Louise Miller <louise.miller@sun.com>
4455
4456         * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
4457         idl/Event.idl, idl/Registry.idl
4458         Changed these files to include Bonobo_Unknown.idl instead
4459         of Bonobo.idl
4460
4461 2001-09-10  Marc Mulcahy <marc.mulcahy@sun.com
4462
4463         * libspi/component.c libspi/component.h:
4464                 Fixed typo.  Added assertions for object checks in 
4465         AccessibleComponent code.
4466
4467 2001-10-09  Bill Haneman <bill.haneman@sun.com>
4468
4469         * idl/Accessible.idl:
4470                 Added 'isEqual (Accessible *object)' 
4471         method for Accessible. (Not Yet Implemented).
4472         
4473         * idl/Registry.idl:
4474                 Changed signature of registerKeystrokeListener() to
4475         take a KeySet and KeyEventSeq so that specific keys and event
4476         types could be requested for monitoring, and added a flag
4477         is_synchronous so that either synchronous or asynchronous
4478         notification could be requested.  (However this is not all
4479         implemented yet). This also meant adding two new typedefs,
4480         KeyEventSeq and KeySet.
4481
4482         * idl/Relation.idl: 
4483                 Added two new relations, RELATION_TOOLTIP_FOR and
4484         RELATION_LEAFNODE_OF.
4485
4486         * idl/State.idl:
4487                 Added new state, STATE_HAS_TOOLTIP.
4488         
4489         * libspi/text.c, editabletext.c:
4490                 Added new assertions to all casts of bonobo-objects from
4491         CORBA servants, to prevent Text API calls on non-text objects.
4492                 Changed suspect casts of int-pointer types, so that we
4493         always send a valid CORBA_long pointer to the CORBA APIs that use
4494         in/out long parameters.  We then have to copy from the CORBA_long
4495         into the regular long or int for return to the C bindings, or
4496         vice-versa when returning parameters from ATK calls to the bonobo wrappers.
4497         
4498         * cspi/spi_text.c:
4499         * libspi/deviceeventcontroller.c:
4500                 Cleaned these sources up.
4501         * idl/Text.idl:
4502                 Changed return type for getCharacterAtOffset to
4503         CORBA_unsigned_long, to allow for 32-bit characters.
4504         
4505                 
4506 2001-10-08  Bill Haneman <bill.haneman@sun.com>
4507
4508         * util/Makefile.am:
4509         * idl/Makefile.am:
4510                 Fixed 'make dist' so that distro compiles...
4511         * libspi/keymasks.h:
4512                 new file.
4513         * cspi/spi-listener.c:
4514                 KeystrokeListenerCB now returns a boolean.
4515         * cspi/spi.h:
4516                 Added KeyEventType struct, and KeyStroke.
4517                 Also added createKeystrokeListener(),
4518         KeystrokeListener_addCallback(),
4519         KeystrokeListener_removeCallback(), and added a keymask to
4520         registerKeystrokeListener().
4521         * cspi/spi_accessible.c:
4522                 Changed numerous return types for interfaces from
4523         AccessibleComponent to Accessible<InterfaceName>; this was
4524         probably a cut-and-paste error.
4525         * cspi/spi_event.c:
4526                 Implementations of new KeystrokeListener api (from spi.h,
4527         above).
4528         * idl/Registry.idl:
4529                 Changes to key modifier mapping.
4530                 Created ControllerEventMask struct.
4531                 Made DeviceEventController derive from Bonobo::Unknown.
4532         * idl/Text.idl:
4533                 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
4534         * libspi/deviceeventcontroller.c:
4535                 Added a number of new internal (private) methods.
4536         * libspi/editabletext.c:
4537         * libspi/editabletext.h:
4538                 Fixed a number of bugs related to the fact that
4539         editabletext inherits from text.  Fixed the EditableText struct,
4540         the init() call, and use correct casts when calling Text methods
4541         from an EditableText object.  Removed (duplicate) atko from the
4542         EditableText structure, we use the one in the parent Text
4543         structure via the casts mentioned above.
4544         * libspi/keystrokelistener.[ch]:
4545         * libspi/registry.c:
4546                 Changes in support of keyboard handling (above).
4547         
4548         Keyboard handling, though partly functional, is still not
4549         recommended for at-spi client use as there is considerable 
4550         work yet to be done.
4551
4552         * libspi/text.c:
4553                 Changed some places where pointers to various int types
4554         are cast to be pointers to CORBA_long types and vice-versa:
4555         pointer casting is not safe so we pass pointers of the correct
4556         types and then cast the result before putting it into the target
4557         pointers.
4558
4559         * libspi/text.h: minor typos corrected.
4560         * test/simple-at.c: 
4561                 We now speak not only the name of a Text element, but the
4562         first sentence of its content, when it receives focus.
4563                 I also changed the text compression to 75% from 50%.
4564         * util/Accessibility_Util.server.in:
4565                 Changed the default magnifier type to be a 3x vertical
4566         splitscreen magnifier (was previously a 2x horizontal one).
4567
4568 2001-10-03  Bill Haneman <bill.haneman@sun.com>
4569
4570         * libspi/keystrokelistener.h:
4571         * libspi/keystrokelistener.c:
4572                 Initial functional implementations of KeystrokeListener.
4573         * idl/Registry.idl:
4574         
4575 2001-10-05  Marc Mulcahy <marc.mulcahy@sun.com>
4576
4577         Fixed string handling for NULL strings in libspi.
4578         Added spi_freeString to free strings returned by C bindings.
4579
4580 2001-09-30  Bill Haneman <bill.haneman@sun.com>
4581
4582         * libspi/keystrokelistener.h:
4583         * libspi/keystrokelistener.c:
4584                 Began (no-op) implementations of KeystrokeListener
4585                         (see below).
4586         * libspi/deviceeventcontroller.c:
4587         * libspi/deviceeventcontroller.h:
4588                 Began creating implementations of DeviceEventController,
4589                         to handle keystroke and mouse event listening and
4590                         synthesis.
4591         * libspi/accessible.c:
4592                 Stubbed-in the implementations for
4593                         Accessibility_Accessible_getState and
4594                         Accessibility_Accessible_getRelationSet.
4595         * libspi/registry.c:
4596                 Improved de-registration process and fixed some bugs, 
4597                         deregistration now works correctly.
4598         * libspi/desktop.c:
4599                 Added initialization of applications list (to NULL).
4600         * util/magnifier.c:
4601                 Reduced speech compression from 0.5 to 0.7, for demo.
4602                 Changed call to gdk_window_set_decorations()
4603                         to gtk_window_set_decorated().
4604         * at-bridge/bridge.c:
4605                 Bridge now deregisters when app exits, via
4606                         registration of a cleanup function
4607                         with the g_atexit() call.
4608                         Required making 'app' static, renamed 'this_app'.
4609                 Fixed broken use of bonobo_init, passing argv wrongly.
4610
4611 2001-09-27  Bill Haneman <bill.haneman@sun.com>
4612
4613         * util:
4614         * util/Makefile.am: 
4615                 Created a new directory for 
4616                         accessibility-related utilities, primarily for
4617                         testing and demo purposes, but with possible
4618                         end-user utility.
4619         
4620         * util/magnifier.c:
4621         * util/magnifier.h:
4622         * util/mag_image.c:
4623         * util/mag_image.h:
4624                 Onscreen magnifier utility that
4625                         is implemented as a bonobo service.
4626         
4627         * util/mag_client.c:
4628         * util/mag_client.h:
4629                 Client-side support (simple C bindings) 
4630                         for Magnification service
4631         
4632         * util/mag_control.c:
4633                 Client program example for 
4634                         Magnification service
4635         
4636         * util/Accessibility_Magnifier.server.in:
4637                 Bonobo-activation file for the 
4638                         Magnification service.
4639         
4640         * util/idl:
4641         * util/idl/Magnifier.idl:
4642                 IDL defining the bonobo Magnification
4643                         service interface.
4644
4645         * test/simple-at.c:
4646                 Modifications to use the bonobo-activated magnifier
4647                         above, in place of trying to connect to an existing
4648                         magnifier that uses socket-listening IPC.
4649
4650                 If env variable MAGNIFIER is set, a magnifier service
4651                         will be started if one does not exist.
4652         
4653 2001-09-25  Bill Haneman <bill.haneman@sun.com>
4654
4655         * at-bridge/bridge.c:
4656                 applied patch from Marc to build and run 
4657                 against new glib and gtk+ (seemed like a change 
4658                 to bonobo_init signature was made ?)
4659         * test/simple-at.c:
4660                 made festival-server support turned off by default.
4661                 Added support for a simple magnifier (off by default)
4662                 which will be added to a 'util' directory later.
4663         * at-bridge/Makefile.am:
4664                 Changed "application.h" header from a 'source'
4665                 to a 'dependency' of libat-bridge.
4666
4667 2001-09-12  Marc Mulcahy <marc.mulcahy@sun.com>
4668
4669         * cspi/Makefile.am:
4670                 Added spi-util.c.
4671
4672         * cspi/spi-util.c:
4673                 Fixed typo
4674
4675         * cspi/spi.c:
4676                 Added interface implementation c files to list of
4677                         includes so they are included in libcspi.
4678
4679         * cspi/spi.h:
4680                 Changed prototype of AccessibleAction_doAction to return a
4681                         boolean.
4682                 Changed prototype of AccessibleTable_getCaption to
4683                         return an Accessible.
4684                 Changed prototype of AccessibleTable_getSelectedRows
4685                         and AccessibleTable_getSelectedColumns to
4686                         return a long (returns the number of selected rows
4687                         or columns respectively).
4688                 Changed name of AccessibleText_refRunAttributes to
4689                         AccessibleText_getAttributes.
4690                 Changed prototype of AccessibleText_getCharacterExtents to
4691                         return a void rather than a boolean. 
4692                 Added support for a AccessibleCoordType parameter
4693                         specifying what type of coordinates are desired.
4694                 Added an AccessibleCordType parameter to
4695                         AccessibleText_getPointAtOffset.
4696
4697         * cspi/spi_accessible.c:
4698                 Added code to return the outstanding interfaces from
4699                         Accessible_queryInterface.
4700
4701         * cspi/spi_action.c:
4702                 Fixed typos.
4703                 Corrected call to getNActions to call the c binding
4704                         for an attribute.
4705
4706         * cspi/spi_editabletext.c:
4707                 Fixed typos.
4708                 Changed name from setRunAttributes to setAttributes.
4709
4710         * cspi/spi_hyperlink.c:
4711                 Fixed typos.
4712                 Changed call to getNAnchors to correctly call the c
4713                         binding for an attribute.
4714
4715         * cspi/spi_hypertext.c:
4716                 Fixed typos.
4717                 Changed getImageDescription to correctly call the
4718                         binding for an attribute.
4719
4720         * cspi/spi_selection.c:
4721                 Changed getNSelectedChildren to correctly call the c
4722                         binding for the attribute.
4723                 Changed refSelectedChild to getSelectedChild.
4724
4725         * cspi/spi_table.c:
4726                 Fixed typos.
4727                 Changed getCaption to return an Accessible.
4728                 Fixed calls which retrieve attributes.
4729                 Changed refAt to getAccessibleAt.
4730                 Changed getNSelectedRows and getNSelectedColumns to
4731                         return longs.
4732
4733         * cspi/spi_text.c:
4734                 Changed getCharacterExtents and getPointAtOffset to accept an
4735                         AccessibleCoordType.
4736                 Fixed typos.
4737                 Changed calls which retrieve attributes.
4738                 Changed refRunAttributes to getAttributes.
4739
4740         * cspi/spi_value.c:
4741                 Fixed typos.
4742
4743         * idl/Hyperlink.idl:
4744                 Changed n_anchors attribute to nAnchors to keep naming
4745                         convention consistent.
4746
4747         * idl/Table.idl:
4748                 Made Table inherit from Bonobo::Unknown.
4749                 Added nSelectedColumns and nSelectedRows attributes.
4750
4751         * idl/Value.idl:
4752                 Made Value inherit from Bonobo::Unknown.
4753
4754         * libspi/hyperlink.c:
4755                 Change for nAnchors attributte name change.
4756
4757 2001-09-12  Marc Mulcahy <marc.mulcahy@sun.com>
4758         * cspi/Makefile.am:
4759                 Added spi-util.c.
4760
4761         * cspi/spi-util.c:
4762                 Fixed typo
4763
4764         * cspi/spi.c:
4765                 Added interface implementation c files to list of
4766                         includes so they are included in libcspi.
4767
4768         * cspi/spi.h:
4769                 Changed prototype of AccessibleAction_doAction to return a
4770                         boolean.
4771                 Changed prototype of AccessibleTable_getCaption to
4772                         return an Accessible.
4773                 Changed prototype of AccessibleTable_getSelectedRows
4774                         and AccessibleTable_getSelectedColumns to
4775                         return a long (returns the number of selected rows
4776                         or columns respectively).
4777                 Changed name of AccessibleText_refRunAttributes to
4778                         AccessibleText_getAttributes.
4779                 Changed prototype of AccessibleText_getCharacterExtents to
4780                         return a void rather than a boolean. 
4781                 Added support for a AccessibleCoordType parameter
4782                         specifying what type of coordinates are desired.
4783                 Added an AccessibleCordType parameter to
4784                         AccessibleText_getPointAtOffset.
4785
4786         * cspi/spi_accessible.c:
4787                 Added code to return the outstanding interfaces from
4788                         Accessible_queryInterface.
4789
4790         * cspi/spi_action.c:
4791                 Fixed typos.
4792                 Corrected call to getNActions to call the c binding
4793                         for an attribute.
4794
4795         * cspi/spi_editabletext.c:
4796                 Fixed typos.
4797                 Changed name from setRunAttributes to setAttributes.
4798
4799         * cspi/spi_hyperlink.c:
4800                 Fixed typos.
4801                 Changed call to getNAnchors to correctly call the c
4802                         binding for an attribute.
4803
4804         * cspi/spi_hypertext.c:
4805                 Fixed typos.
4806                 Changed getImageDescription to correctly call the
4807                         binding for an attribute.
4808
4809         * cspi/spi_selection.c:
4810                 Changed getNSelectedChildren to correctly call the c
4811                         binding for the attribute.
4812                 Changed refSelectedChild to getSelectedChild.
4813
4814         * cspi/spi_table.c:
4815                 Fixed typos.
4816                 Changed getCaption to return an Accessible.
4817                 Fixed calls which retrieve attributes.
4818                 Changed refAt to getAccessibleAt.
4819                 Changed getNSelectedRows and getNSelectedColumns to
4820                         return longs.
4821
4822         * cspi/spi_text.c:
4823                 Changed getCharacterExtents and getPointAtOffset to accept an
4824                         AccessibleCoordType.
4825                 Fixed typos.
4826                 Changed calls which retrieve attributes.
4827                 Changed refRunAttributes to getAttributes.
4828
4829         * cspi/spi_value.c:
4830                 Fixed typos.
4831
4832         * idl/Hyperlink.idl:
4833                 Changed n_anchors attribute to nAnchors to keep naming
4834                         convention consistent.
4835
4836         * idl/Table.idl:
4837                 Made Table inherit from Bonobo::Unknown.
4838                 Added nSelectedColumns and nSelectedRows attributes.
4839
4840         * idl/Value.idl:
4841                 Made Value inherit from Bonobo::Unknown.
4842
4843         * libspi/hyperlink.c:
4844                 Change for nAnchors attributte name change.
4845
4846
4847 2001-09-05  Marc Mulcahy <marc.mulcahy@sun.com>
4848
4849         implementations-- made server implementations own AtkObject pointers
4850         rather than their respective AtkInterrface pointers to fix
4851         refcounting.  AtkHyperlink is still broken.
4852
4853 2001-09-04  Bill Haneman <bill.haneman@sun.com>
4854         * cspi/spi_accessible.c:
4855                 Added method Accessible_Role_getName(),
4856                         and requisite string array (role_names).
4857                 Added conversion string_from_corba_strin() call
4858                         to Accessible_getName and _getDescription.
4859         * libspi/accessible.c:
4860                 Added implementation for Accessible_getRole()
4861         * test/simple-at.c:
4862                 Added festival support, used if environment variable
4863                         FESTIVAL is set.
4864         
4865 2001-09-04  Bill Haneman <bill.haneman@sun.com>
4866
4867         * at-bridge/bridge.c:
4868             Now allocate Accessibility_Event using
4869             Accessibility_Event__alloc() instead of g_new0().
4870         * libspi/accessibleeventlistener.c:
4871             Initialize AccessibleEventListener->callbacks to NULL.
4872             Fixed accessible__event_listener_init() param, changed to
4873             "AccessibleEventListener *" type.
4874             Changed a bonobo_object_release_unref() call to
4875             Accessibility_Accessible_unref().
4876         * libspi/listener.c:
4877             Changed Bonobo_Unknown_unref to (equivalent) 
4878             Accessibility_Accessible_unref.
4879         * libspi/registry.c:
4880             Changed bonobo_object_release_unref to 
4881             Accessibility_Accessible_unref.
4882         
4883 2001-09-04  Marc Mulcahy <marc.mulcahy@sun.com>
4884         
4885         * Added files:
4886             spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
4887             spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
4888             spi-util.c spi-util.h
4889             Implementations for C bindings to remaining accessibility 
4890             interfaces.
4891
4892 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
4893         
4894         * idl/Action.idl:
4895             changed return value of Action from void to boolean to 
4896             bring in line with ATK.
4897
4898         * idl/Text.idl:
4899             Changed getText funcions to return "out" start and end offsets.
4900             Changed getAttributes to take and offset and return the start 
4901             and end offset of the attribute run.
4902             Changed getOffsetAtPoint and getCharacterExtents to take an 
4903              enum describing whether coordinates are window or screen.
4904
4905         * Added files:
4906             libspi/action.c libspi/action.h libspi/editabletext.c 
4907             libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
4908             libspi/hypertext.c libspi/hypertext.h libspi/image.c 
4909             libspi/image.h libspi/selection.c libspi/selection.h
4910             libspi/table.c libspi/table.h libspi/text.c libspi/text.h 
4911             libspi/value.c libspi/value.h
4912             Added server implementations for outstanding ATK interfaces 
4913             not yet implemented.
4914  
4915 2001-09-04  Bill Haneman <bill.haneman@sun.com>
4916
4917         * idl/Action.idl:
4918                 Added (missing) getName() method. 
4919                 Made nActions an attribute.
4920         * idl/EditableText.idl:
4921                 Changed order of params in setAttributes.
4922         * idl/Hyperlink.idl:
4923                 Removed getAnchor, added getURI.
4924         * idl/Image.idl:
4925                 Changed attributes to methods, for efficiency
4926                 (so that getting extents can be done in one call)
4927         * idl/Selection.idl:
4928                 Changed nSelectedChildren to attribute, and re-indented.
4929         * idl/Table.idl: changed nrows, ncolumns, caption, summary 
4930                 to attributes.
4931         * idl/Text.idl: reformatted to match our coding style.
4932                 (temporarily?) removed getRowColumnAtOffset().
4933                 Changed text selection API to support multi-select and
4934                 non-contiguous selections, as in ATK.
4935         * idl/Value.idl: changed some methods to attributes.
4936
4937 2001-08-24  Mark McLoughlin <mark@skynet.ie>
4938
4939         * libspi/listener.c(impl_notify_event):
4940         BonoboUnkown_unref the source instead
4941         of bonobo_object_release_unref - the ORB
4942         handles the releasing.
4943
4944         * configure.in: require ORBit-2.3.94 for
4945         this behaviour.
4946
4947 2001-08-21  Bill Haneman <bill.haneman@sun.com>
4948
4949         Tagged CVS repository 'EA_1_0'.
4950         * README.EARLY_ACCESS:
4951         Alphabetized acknowledgements list, and
4952         added someone.
4953         Listed some known dependencies of at-spi.
4954
4955 2001-08-20  Bill Haneman <bill.haneman@sun.com>
4956
4957         * docs/at-spi-docs.sgml:
4958         * docs/at-spi-sections.txt:
4959         * docs/at-spi-overrides.txt: (Added zero-length file)
4960         Documentation improvements - gtk-doc should build
4961         docs for all implemented C bindings now.
4962         * cspi/Makefile.am:
4963         * cspi/spi_main.c:
4964         * cspi/spi.c: (New file)
4965         * cspi/spi_event.c: (New file)
4966         * cspi/spi_registry.c: (New file)
4967         * cspi/spi_accessible.c: (New file)
4968         * cspi/spi_application.c: (New file)
4969         * cspi/spi_component.c: (New file)
4970         Split spi_main.c into six parts, and included them from
4971         "spi.c".  This is a bit of a hack, probably temporary,
4972         but required by gtk-doc, apparently.
4973         
4974 2001-08-20  Bill Haneman <bill.haneman@sun.com>
4975
4976         * docs/Makefile.am:
4977         * docs/at-spi-docs.sgml:
4978         * docs/at-spi-sections.txt:
4979         * configure.in:
4980         Initial checkins/modifications for gtk-doc generation.
4981         * cspi/spi.h:
4982         * cspi/spi.c:
4983         Added (missing) interface query methods to Accessible's C binding.
4984         * cspi/spi-impl.h:
4985         Added GenericInterface type definition.
4986         * test/simple-at.c:
4987         Added query for AccessibleComponent interface to focus event handler.
4988         Added printout of bounding box for focussed component.
4989         * libspi/component.c:
4990         Added partial implementation for AccessibleComponent to C binding.
4991         * idl/Application.idl:
4992         * libspi/registry.c:
4993         * libspi/listener.c:
4994         * libspi/application.c:
4995         * libspi/application.h:
4996         Changed "ID" attribute type from string to long.
4997
4998 2001-08-19  Bill Haneman <bill.haneman@sun.com>
4999
5000         * cspi/spi.h:
5001         * cspi/spi.c:
5002         Made method naming consistent: methods taking object args
5003         start with uppercase, other methods (except those using
5004         acronyms) start with lowercase.  Underscores delimit between
5005         object names and method names:
5006         SPI_init() - uppercase since it starts with an acronym.
5007         getDesktopCount () - lowercase start since no object param0.
5008         Accessible_getName() - uppercase object type name, studlyCaps method
5009                                name.
5010
5011         * cspi/spi.h:
5012         Added gtk-doc documentation for all currently implemented
5013         methods in the C bindings API.
5014
5015 2001-08-18  Bill Haneman <bill.haneman@sun.com>
5016
5017         * Makefile.am : changed build order to build test last.
5018         * cspi/spi.h :
5019         * cspi/spi_main.c :
5020         Changed "createEventListener" to "CreateEventListener".
5021         * libspi/accessibleeventlistener.c :
5022         Bugfix for addition of callbacks.
5023         * test/Makefile.am :
5024         * test/simple-at.c :
5025         Added new test that uses the C bindings API.
5026         * idl/Event.idl :
5027         * libspi/listener.c :
5028         * libspi/registry.c :
5029         * libspi/accessibleeventlistener.c :
5030         * at-bridge/bridge.c :
5031         Renamed member "target" of Accessibility_Event to "source",
5032         which is more descriptive.
5033         
5034
5035 2001-08-18  Bill Haneman <bill.haneman@sun.com>
5036
5037         * Makefile.am: 
5038         * configure.in :
5039         * cspi/Makefile.am :
5040         Added makefile support for at-spi/cspi directory.
5041         * cspi/spi.h : 
5042         * cspi/spi-impl.h :
5043         * cspi/spi-listener.h : (NEW FILE)
5044         Added support for/use of spi-listener.h.
5045         * cspi/spi_main.c :
5046         C bindings now build successfully, with no warnings.
5047         * libspi/accessibleeventlistener.h : (NEW FILE)
5048         * libspi/accessibleeventlistener.c : (NEW FILE)
5049         * libspi/Makefile.am :
5050         Added new object type "AccessibleEventListener"
5051         which inherits from Listener, and allows attachment
5052         of in-process callbacks (so that a client with a listening
5053         object instance can add functionality to the local 
5054         implementation, dynamically).
5055
5056 2001-08-18  Bill Haneman <bill.haneman@sun.com>
5057
5058         * libspi/accessible.c: 
5059         Add implementation for get_index_in_parent().
5060         * cspi/spi.h : 
5061         Added #include of "spi-roletypes.h", and
5062         added enumerated type AccessibleCoordType.
5063         Added definition for KeystrokeListener (function type).
5064
5065         ADDED FILES:
5066         * cspi/spi-statetypes.h :
5067         * cspi/spi-roletypes.h :
5068         * cspi/spi-impl.h :
5069         Added these headers, used by spi.h.
5070         * cspi/spi_main.c : 
5071         Added code (NOTE: not yet built by make).
5072
5073 2001-08-18  Mark McLoughlin <mark@skynet.ie>
5074
5075         * libspi/Makefile.am: generate imodule
5076         at the same time as other idl compiler 
5077         generated files. 
5078
5079 2001-08-17  Bill Haneman <bill.haneman@sun.com>
5080         * libspi/registry.c :
5081         * libspi/application.c :
5082         * idl/Application.idl :
5083         Made registration with toolkit an application method,
5084         which is required since each app has its own toolkit static
5085         environment.  Thus the bridge must register for 
5086         notification of toolkit events from each application in turn.
5087         Toolkit notifications are now successfully registered for, and
5088         sent to the listening at client.
5089         * test/at.c :
5090         Changed toolkit event string to use hyphens rather than underscores.
5091         * libspi/listener.c :
5092         listner now gives more info in debug mode - it reports the
5093         name of the event received, as well as the name of the source.
5094         
5095
5096 2001-08-16  Bill Haneman <bill.haneman@sun.com>
5097
5098         * libspi/registry.c :
5099         added more implementation for toolkit events.
5100         Fixed bug such that toolkit event registrations
5101         (via atk) use the whole event name string, not 
5102         just minor+detail.
5103         Removed a useless call to an ORBit_ method.
5104         * at-bridge/bridge.c :
5105         Removed unused local sbuf[] variable.
5106         * test/at.c :
5107         We now register for Gtk:GtkWidget:button_press_event 
5108         events as well as "focus:" events.
5109         * cspi/spi.h :
5110         Add some more API from Registry.idl that was missing,
5111         for keystroke listening, keystroke and mouse event
5112         synthesis, and enumeration of accessible desktops.
5113
5114 2001-08-16  Michael Meeks  <michael@ximian.com>
5115
5116         * configure.in: use AM_GLIB_GNU_GETTEXT.
5117
5118         * Makefile.am (SUBDIRS): kill intl.
5119
5120 2001-08-15  Michael Meeks  <michael@ximian.com>
5121
5122         * registryd/Makefile.am: s/oaf/server/ relocate info file.
5123
5124         * configure.in: upd.
5125
5126         * configure.in: depend on a recent bonobo-activation that
5127         will find our server files ...
5128
5129 2001-08-16  Bill Haneman <bill.haneman@sun.com>
5130
5131         * libspi/accessible.c : accessible_new() :
5132         Now we add the Component interface via bonobo_object_add_interface,
5133         if the contained AtkObject implements AtkComponent.
5134         * libspi/accessible.h : now include "component.h"
5135         * libspi/component.h :
5136         * libspi/component.c : added files - implementation of
5137         bonobo wrapper object for Accessibility/Component
5138         * libspi/listener.c :
5139         Added test code to check for Accessibility/Component:1.0
5140         interface and report whether it is implemented by the
5141         event source.
5142         * libspi/registry.c :
5143         Now we check for not only the hash of the whole event 
5144         string before relaying the event, we also check the
5145         "minor" event string (without the detail string).
5146         This allows event listeners to be registered against
5147         all events of a certain major+minor type, or just
5148         against a specific major+minor+detail type.
5149         * libspi/accessible.c :
5150         Added implementations for Accessible:get_parent(),
5151         Accessible:getChildCount(), and Accessible:getChildAtIndex().
5152         * libspi/registry.c :
5153         * libspi/listener.c :
5154         Replaced calls to Accessibility_Accessible_ref() and
5155         Accessibility_Accessible_unref() with 
5156         calls to bonobo_object_dup_ref() and 
5157         bonobo_object_release_unref(), so that the CORBA object
5158         is dup-ed and released when relayed, as well as the bonobo object.
5159
5160 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5161
5162         * libspi/Makefile.am,
5163           registryd/Makefile.am,
5164           at-bridge/Makefile.am.
5165           test/Makefile.am, configure.in:
5166         reverse previous changes.
5167
5168         * /idl/Image.idl: fix typo.
5169
5170         * test/Makefile.am: put DEBUG_FLAGS
5171         in CFLAGS.
5172
5173 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5174
5175         * test/app.c: use argv[0] instead of
5176         g_type_prgname.
5177
5178 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5179
5180         * libspi/Makefile.am,
5181           registryd/Makefile.am,
5182           at-bridge/Makefile.am.
5183           test/Makefile.am, configure.in:
5184         cleanup, replace individual LIBS/CFLAGS with
5185         AT_COMMON_{LIBS|CFLAGS}.
5186
5187         * README: format.
5188
5189 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5190         
5191         * configure.in, libspi/Makefile.am:
5192         Change IDL path checking for bonobo-activation
5193         as opposed to oaf.
5194
5195 2001-08-15  Bill Haneman <bill.haneman@sun.com>
5196
5197         * registryd/registry.c : separated event listeners to use
5198         3 separate lists (focus, window, toolkit).  Began testing
5199         event names against hashes before relaying events.
5200         * test/at.c : now register for events of type "focus:"
5201         * test/app.c : now generate events of type "focus:"
5202         * at-bridge/bridge.c : register with ATK for focus events,
5203         and we now relay those focus events to any "focus:" listeners.
5204         This now works with the bridge as a GTK_MODULE when running test/at.
5205         * libspi/registry.c :
5206         * libspi/listener.c : 
5207         now we ref event sources before propagating, and unref on receipt.
5208         * libspi/registry.c : 
5209         some changes to internal structs, to support event typestring hashes.
5210         * text/app.c : changed the way the appname is generated.
5211         * cspi : added directory that will hold the C bindings library for 
5212                 non-CORBA/bonobo-savvy clients.
5213         * cspi/spi.h : header file that contains the function prototypes for the C binding.
5214         * idl/Component.idl : added in parameter to indicate coord system for
5215                 geometry-related calls.
5216         * idl/Hyperlink.idl : added readonly n_links attribute
5217         * idl/Image.idl : changed methods to attributes.
5218         
5219 2001-08-15  Mark McLoughlin <mark@skynet.ie>
5220
5221         * at-bridge/Makefile.am: link against
5222         ../libspi/libspi.la instead of -lspi.
5223
5224         * at-spi/test/app.c: include 
5225         bonobo-activation.h. Use a default appname
5226         if one is not provided.
5227
5228 2001-08-14  Bill Haneman <bill.haneman@sun.com>
5229
5230         * idl/Registry.idl : temporarily changed register_Application
5231         to oneway, to work around issue with initial registration 
5232         re-entrancy.
5233         * idl/Application.idl : changed attribute "id" from readonly 
5234         to read-write, since it needs to be assigned by Registry.
5235         * registryd/registryd.c : added call to set application id 
5236         on registration.
5237         * registryd/registry.c : changed de-registration procedure to
5238         use CORBA_Object_hash() to find matching object ref in application
5239         lists and listener lists.
5240         * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
5241         began distinguishing between event types (work in progress).
5242
5243 2001-08-13  Bill Haneman <bill.haneman@sun.com>
5244
5245         CHANGES:
5246         * libspi/application.c:
5247         Added implementations for get/set id, get_toolkitName,
5248         get_version.
5249         * registryd/registryd.c :
5250         * test/at.c :
5251         * test/app.c :
5252         * Makefile.am :
5253         Converted from use of OAF to bonobo-activation.
5254         * libspi/desktop.h :
5255         * libspi/desktop.c :
5256         * test/app.c :
5257         Removed references to atksimpleobject, since base atkobject
5258         implementation now provides functionality we need.
5259         * libspi/atksimpleobject.c :
5260         * libspi/atksimpleobject.h :
5261         Removed.
5262         
5263         ADDITIONS:
5264         * at-bridge
5265         * at-bridge/Makefile.am
5266         * at-bridge/bridge.c
5267         * configure.in
5268         * Makefile.am
5269         Added directory "bridge" and contents, and added dependencies
5270         in Makefile.am/configure.in.  
5271         Initial checkin of "at-bridge".
5272         This code is a GTK_MODULE which automatically registers
5273         GTK+ apps with the accessibility registry, using an object
5274         reference to the root ATK object.
5275         
5276 2001-08-10  Mark McLoughlin <mark@skynet.ie>
5277
5278         * po/Makefile.in.in: Remove. Again. If this
5279         doesn't get autogenerated - you need to update
5280         gnome-common.
5281
5282 2001-08-07  Mark McLoughlin <mark@skynet.ie>
5283
5284         * po/Makefile.in.in: Add. Again.
5285
5286 2001-07-31  Bill Haneman <bill.haneman@sun.com>
5287
5288         * libspi/accessible.c : added support for 'description' property.
5289         * libspi/accessible.c
5290         * libspi/desktop.c
5291         * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
5292             (since the two are now equivalent in libbonobo)
5293         * idl/Action.idl
5294         * idl/Component.idl
5295         * idl/Hyperlink.idl
5296         * idl/Image.idl
5297         * idl/Selection.idl
5298         * idl/Table.idl
5299         * idl/Text.idl
5300         * idl/Value.idl : changed these 'secondary' interfaces to inherit from
5301              Bonobo::Unknown as does Accessibility::Accessible.
5302         * idl/StreamableContent.idl : as above, and replaced internal InputStream
5303              interface with Bonobo::Stream, since it was redundant with it.
5304              (The Stream returned by a StreamableContext object is expected to
5305              implement only a subset of Bonobo::Stream)
5306
5307 2001-07-28  Anders Carlsson  <andersca@gnome.org>
5308
5309         * libspi/accessible.c (accessible_object_finalize): Change
5310           g_free to g_object_unref since the AtkObject is a GObject.
5311
5312 2001-07-30  Bill Haneman <bill.haneman@sun.com>
5313
5314         * idl/Accessibility.idl: add new IDL files
5315         
5316         Added:
5317         * idl/Action.idl: Definitions of actionable UI object
5318         * idl/Component.idl: Definitions of UI component geometry, etc.
5319         * idl/Hyperlink.idl: Defs of hyperlink behavior
5320         * idl/Image.idl: Def of accessible image
5321         * idl/Selection.idl: Definition of UI object with selectable children
5322         * idl/StreamableContent.idl: Definition of UI object with streamable backing data
5323         * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
5324         * idl/Text.idl: Interface defs for UI elements with complex textual content
5325         * idl/Value.idl: Definition of UI element that is a value controller or display
5326         
5327 2001-07-27  Michael Meeks  <michael@ximian.com>
5328
5329         * po/Makefile.in.in: remove autogenerated file from CVS.
5330
5331         * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
5332         type library.
5333
5334         * idl/Registry.idl: include guard.
5335
5336         * idl/Accessibility.idl: Add, and include all the other IDL
5337         files.
5338
5339         * idl/*.idl: remove mass of pragmas etc.
5340
5341 2001-07-26  Michael Meeks  <michael@ximian.com>
5342
5343         * registryd/Makefile.am (registryd_SOURCES): remove
5344         redundant at_.
5345
5346 2001-07-27  Mark McLoughlin <mark@skynet.ie>
5347
5348         * libspi/.cvsignore, registryd/.cvsignore,
5349           test/.cvsignore: updated.
5350
5351         * po/Makefile.in.in: gettext update.
5352
5353 2001-07-25  Bill Haneman <bill.haneman@sun.com>
5354
5355         * initial CVS checkin
5356
5357 2001-06-29  Michael Meeks  <michael@ximian.com>
5358
5359         * configure.in: add AM_CONFIG_HEADER to gen config.h
5360
5361         * acconfig.h: add.
5362