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