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