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