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