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