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