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