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