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