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