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