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