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