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