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