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