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