2006-12-14 Li Yuan <li.yuan@sun.com>
[platform/core/uifw/at-spi2-atk.git] / ChangeLog
1 2006-12-14  Li Yuan  <li.yuan@sun.com>
2
3         Fix for #352444
4         * atk-bridge/bridge.c: (spi_atk_emit_eventv),
5         (spi_atk_bridge_property_event_listener),
6         (spi_atk_bridge_signal_listener):
7         Free some CORBA objects to fix memory leak and crash.
8
9 2006-12-13  Li Yuan <li.yuan@sun.com>
10
11         Patch from Ariel Rios to fix #163132 and #377079.
12         * atk-bridge/bridge.c: (spi_atk_bridge_do_registration),
13         (spi_atk_bridge_get_registry_ior):
14         Use g_warning instead of g_error and g_critical to avoid crash.
15
16 2006-12-11 Bill Haneman <bill.haneman@sun.com>
17
18         * libspi/text.c:
19         (impl_getAttributeRun):Return an empty CORBA_seq instead of NULL,
20         if there are no non-default attributes defined at the current offset.
21         Fixes bug #372172.
22
23 2006-12-04  Bill Haneman <bill.haneman@sun.com>
24
25         * idl/Accessibility_Role.idl: Fixed the documentation for
26         ROLE_FORM; bug #382271.  Thanks to George Kraft for finding this.
27         
28 2006-12-04  Bill Haneman <bill.haneman@sun.com>
29         
30         * Added Li Yuan <li.yuan@sun.com> to MAINTAINERS.
31
32 2006-11-07  Bill Haneman <bill.haneman@sun.com>
33
34         Patches from Padraig O'Briain for bugs #361386 and #369377.
35         
36         * registryd/registry.c:
37         (struct NotifyContext): Change the e_out
38         member from an Accessibility_Event struct to a pointer to 
39         struct.
40         (notify_listeners_cb): Modify to use the new struct definition above.
41         Allows use of ORBit_copy_value instead of CORBA_any__copy.
42
43         * registryd/deviceeventcontroller.c:
44         (spi_dec_button_update_and_emit): Free the event's any_data
45         after emission.
46         (spi_dec_mouse_check):Free the event details any struct
47         after emission.
48         (spi_device_event_controller_forward_mouse_event): Free any.
49         (spi_device_event_controller_forward_key_event): Ditto.
50         
51 2006-11-07  Bill Haneman <bill.haneman@sun.com>
52
53         * configure.in: Uprev/release 1.7.13 for gnome 2.17.2.
54         Don't require gtk+ and gail for building most of at-spi
55         including libspi.
56
57         * registryd/registry-main.c (main): We now get te value of display
58         using the env var DISPLAY rather than using the gdk_display_get_default
59         to avoid dependancy of gdk. Also, once the registry is started, we set 
60         the ior of the registry as an X property.
61         (registry_set_ior): Set ior as the AT_SPI_IOR Root window property.
62
63         * atk-bridge/bridge.c (atk_bridge_init): We keep track whether 
64         the registration was successfull.
65         (spi_atk_bridge_do_registration): This function now returns success 
66         or not on activating the registry. 
67         (spi_atk_bridge_get_registry_ior): Look whether the AT_SPI_IOR property
68         has been set in the X root window and return it if available.
69         (spi_atk_bridge_get_registry): We now get the registry using the IOR 
70         saved as  a X property rather than using the OAFID. 
71
72 2006-10-01  Bill Haneman <bill.haneman@sun.com>
73
74         * configure.in: Uprev/release 1.7.12 for gnome 2.16.1.
75
76 2006-09-25  Bill Haneman <bill.haneman@sun.com>
77
78         * registryd/registry.c:
79         (desktop_remove_application): Don't pass a ref to the
80         dead application with the event, since it's probably
81         defunct and will cause SEGV if we try to unref, 
82         extract app name, etc.
83         Bug #353226.
84         
85 2006-09-20  Bill Haneman <bill.haneman@sun.com>
86
87         Patch from Neo Liu <nian.liu@sun.com>,
88         bug #356688.
89
90         * atk-bridge/bridge.c:
91         (spi_atk_bridge_document_event_listener): New, for 
92         AtkDocument signals.
93
94 2006-08-30  Bill Haneman <bill.haneman@sun.com>
95
96         * idl/*.idl:
97         Changed some parameter names so as not to 
98         collide with class names - allows IDL to be compiled with
99         OMNIorb compiler.  Thanks to Gary Cramblitt for this patch.
100         
101 2006-08-22  Bill Haneman <bill.haneman@sun.com>
102
103         * atk-bridge/bridge.c:
104         (spi_atk_bridge_signal_listener): 
105         Patch from Ginn Chen, assign detail1 in children-changed
106         so that the child object can be assigned to the Any when the
107         at-spi event is emitted.  Bug #350552.
108
109         * libspi/application.c:
110         (spi_application_finalize): Remove g_print debug output.
111         Bug #350958.
112         
113 2006-08-21  Bill Haneman <bill.haneman@sun.com>
114
115         * configure.in: Revved to AT-SPI 1.7.11.
116
117         * libspi/accessible.c:
118         (spi_accessible_new): Aggregate Hyperlink interface
119         if the GObject is an ATK_HYPERLINK_IMPL. See bug #352227.
120
121         * libspi/hyperlink.c:
122         (spi_hyperlink_new): Don't aggregate Action a second time if this
123         interface is created for an AtkHyperlinkImpl object (i.e. for a 
124         child Accessible, as opposed to the Hyperlink instance from
125         Hypertext:getLink.
126         (get_hyperlink_from_servant): Obtain the hyperlink from
127         atk_hyperlink_impl_get_hyperlink, if ATK_IS_HYPERLINK_IMPL.
128         
129         Patch section from Ginn Chen...
130
131         * cspi/spi_accessible.c:
132         (_cspi_accessible_set_from_sequence): 
133         Changed g_newa to g_new0 on Ginn Chen's suggestion.
134
135         * libspi/accessible.c:
136         (impl_getAttributes): Fixed to use the AtkAttribute struct properly.
137         (spi_accessible_new): Add the Document interface if present.
138
139         * libspi/document.c:
140         (impl_getAttributes): Fixed to use AtkAttribute properly.
141
142         * libspi/text.c:
143         (impl_getAttributes, impl_getDefaultAttributes): 
144         (impl_getAttributeRun): Fixed to use AtkAttribute struct properly.
145         
146 2006-08-17  Bill Haneman <bill.haneman@sun.com>
147
148         * cspi/spi-private.h, cspi/spi_accessible.c:
149         (_cspi_attribute_set_from_sequence): Renamed from
150         cspi_attribute_set_from_sequence, to suppress export.
151
152         * cspi/spi.h:
153         (SPIRelationType): Fixed typo in PARENT_WINDOW_OF 
154         inline docs, which was keeping the doc from appearing.
155         (SPIExceptionHandler): Doc this.
156         
157         * cspi/spi_document.c:
158         Added inline gtk-docs cut-n-pasted from the doxygen
159         docs in the corresponding IDL files.
160         (AccessibleDocument_getAttributes): Fix the retval here.
161
162         * cspi/spi_streamablecontent.c:
163         Fixed some 'Since' tags that were accidentally doxygen-style.
164
165         * cspi/spi_table.c:
166         (AccessibleTable_getRowColumnExtentsAtIndex): Cut and pasted
167         docs from the IDL file.
168
169         * docs/reference/cspi/at-spi-cspi-docs.sgml:
170         Added entities for Document and StreamableContent interfaces.
171
172         * docs/reference/cspi/at-spi-cspi-sections.txt:
173         Added some docs that were present inline but not getting
174         exported to HTML.
175         
176 2006-07-31  Bill Haneman <bill.haneman@sun.com>
177
178         * libspi/text.c:
179         (impl_getRangeExtents): Use the atk_text_get_range_extents
180         API instead of looping over character bounds, now that
181         ATK includes it.
182         (impl_getBoundedRanges): Use atk_text_get_bounded_ranges.
183         (_spi_text_bounds_contain): Remove, not needed anymore.
184         (_spi_text_rect_union): Remove, not needed anymore.
185         
186 2006-07-31  Bill Haneman <bill.haneman@sun.com>
187
188         * atk-bridge/bridge.c: 
189         (spi_atk_emit_eventv): Fix the CORBA_free call which was
190         causing 64-bit troubles and memory leaks.
191         Special thanks to Alexander Larsson who finally seems to 
192         have tracked down the problem, not just here but in
193         libspi/util.c...
194         
195         * libspi/util.c:
196         (spi_init_any_object): Make sure we copy the CORBA value
197         when initializing an object for passing as a CORBA_Any.
198         Bug #337239.
199         
200 2006-07-21  Bill Haneman <billh@gnome.org>
201
202         * idl/Accessibility.idl:
203         Reverted pragma changes, this broke the build in some envs
204         including the Debian team's build and some tinderbox builds.
205         
206 2006-07-19  Bill Haneman <billh@gnome.org> modifications to patch from
207
208         * configure.in:
209         Revved to 1.7.10, and edited the Xevie check (bug #319994).
210
211         * idl/Accessibility.idl:
212         Reworked inclusion of Bonobo_Unknown.idl, to 
213         avoid double-linking libs in the Bonobo environment.
214         Thanks to Michael Meeks for the workaround, see bug #313122.
215
216         * registryd/deviceeventcontroller.c:
217         (spi_controller_notify_keylisteners): 
218         Set the SPI_NUMLOCK_MASK bit if the modifier 
219         corresponding to the conceptual numlock state is set.
220         Bug #143702.
221         
222 2006-07-18  Bill Haneman <billh@gnome.org> modifications to patch from
223
224         * idl/Accessibility_Selection.idl:
225         (deselectChild): New method.
226
227         * libspi/selection.c:
228         (impl_deselectChild): Implement the new IDL method.
229
230         * cspi/spi.h:
231         (AccessibleSelection_deselectChild): Added new method.
232         
233         * cspi/spi_selection.c:
234         (AccessibleSelection_deselectChild): New method implemented.
235         
236 2006-07-13  Bill Haneman <billh@gnome.org> modifications to patch from
237
238         * cspi/bonobo/cspi-bonobo.c:
239         (cspi_init): Replace g_error with g_warning, prevent
240         SEGV if the registry cannot be activated. Bug #346393.
241         
242 2006-07-12  Bill Haneman <billh@gnome.org> modifications to patch from
243
244         * po/LINGUAS: put LINGUAS where it belongs. Fixes i18n.
245         
246 2006-07-12  Bill Haneman <billh@gnome.org> modifications to patch from
247 2006-07-12  Ariel Rios  <arios@us.ibm.com>
248
249         See RFE #326536.
250         
251         * idl/Accessibility_Table.idl:
252         (getRowColumnExtentsAtIndex): New method for getting
253         selection status and extents in one API call.
254
255         * libspi/table.c:
256         (impl_getRowColumnExtentsAtIndex): Implementation of
257         new method above.
258         (spi_table_class_init): Add above to epv.
259
260         * cspi/spi.h:
261         * cspi/spi_table.c:
262         (AccessibleTable_getRowColumnExtentsAtIndex): New
263         method, retrieves selection status and row/col extents
264         for a table cell in a single API call.
265
266 2006-07-12  Bill Haneman <billh@gnome.org> modifications to patch from
267 2006-07-12  Ariel Rios  <arios@us.ibm.com>
268
269         * cspi/bonobo/cspi-bonobo.c: Remove warning adding <cspi/spi-private.h>
270
271         * cspi/spi_text.c: 
272         (AccessibleText_getAttributeRun,AccessibleText_getDefaultAttributes):
273         New bindings for new methods defined in idl and libspi.
274
275         * cspi/spi.h: 
276         (AccessibleText_getAttributeRun,AccessibleText_getDefaultAttributes):
277        Added prototype functions.
278
279         * libspi/text.c: 
280         (impl_getAttributeRun, impl_getDefaultAttributeSet): New method implementation
281         Bug #326520
282         (spi_text_class_init): Added previous methods.
283        
284         * libspi/spi.h:  
285         (impl_getAttributeRun, impl_getDefaultAttributeSet): Added prototypes
286         * libspi/spi-private.h: Corrections.
287
288 2006-06-29  Bill Haneman <bill.haneman@sun.com>
289
290         Added Document interface (see bug #326520), 
291         with work from Ariel Rios <arios@us.ibm.com>.
292
293         * configure.in: Bump to 1.7.8.
294         
295         * libspi/Makefile.am: Added document.[ch] to sources 
296
297         * libspi/document.h: 
298         (SpiDocument, SpiDocumentClass):
299                New interface implementation.
300         (spi_document_get_type, spi_document_construct)
301         (spi_document_interface_new): New methods added. 
302         (SPI_DOCUMENT_TYPE, SPI_DOCUMENT)
303         (SPI_DOCUMENT_CLASS, IS_DOCUMENT, IS_DOCUMENT_CLASS): 
304         Added macros for SpiDocument 
305         for new object.                     
306
307         * libspi/document.c: 
308         (spi_document_interface_new): Get a  
309         new document interface. New.
310         (get_document_from_servant): Get an AtkDocument from servant New.
311         (impl_getLocale, impl_getAttributeValue, impl_getAttributes): 
312         Implementation of methods defined on idl.
313         (spi_document_class_init, spi_document_init) 
314         Init methods for SpiDocument. new
315
316         * idl/Accessibility.idl: Added Accessibility_Document.idl.
317
318         * cspi/Makefile.am: Added spi_document.c to sources.
319
320         * cspi/spi_document.c: 
321         (AccessibleDocument_ref, AccessibleDocument_unref):      Added.
322         (AccessibleDocument_getLocale, AccesibleDocument_getAttributeValue)
323         (AccessibleDocument_getAttributes): Bindings for methods defined
324         on libspi
325
326         * cspi/spi_accessible.c: 
327         (Accessible_isDocument, Accessible_getDocument) New.
328         * cspi/spi.h: 
329         (Accessible_isDocument, Accessible_getDocument)
330         (AccessibleDocument_ref, AccessibleDocument_unref)
331         (AccessibleDocument_getLocale, AccessibleDocument_getAttributeValue)
332         (AccessibleDocument_getAttributes): Bindings added.
333         
334         * idl/Makefile.am: Added Accessibility_Document.idl to
335         idl_DATA.
336         
337 2006-06-29  Bill Haneman <bill.haneman@sun.com>
338
339         * idl/Accessibility_Document.idl: New interface
340         for complex documents.  First stage of fix for RFE
341         #326520.
342         
343 2006-06-27  Bill Haneman <bill.haneman@sun.com>
344
345         * libspi/streamablecontent.c:
346         (impl_content_stream_close):
347         Unref the GIOChannel on close.
348         
349 2006-06-23  Bill Haneman <bill.haneman@sun.com>
350
351         * idl/Accessibility_Role.idl: 
352         * libspi/accessiblerole.c:
353         * cspi/spi_accessible.c: Added ROLE_LINK,
354         ROLE_REDUNDANT_OBJECT, and ROLE_INPUT_METHOD_WINDOW.
355         Bug #345758 and bug #140635.
356
357         
358 2006-06-22  Bill Haneman <bill.haneman@sun.com>
359
360         Bug #345701.
361         
362         * idl/Accessibility_StreamableContent.idl:
363         Fix derivation of StreamableContent and ContentStream.
364
365         * cspi/spi_streamablecontent.c:
366         (accessible_content_stream_client_read):
367         Fix the datatype of the content stream used.
368         Interpret short reads as EOF, and stop trying to 
369         read when we've fulfilled the request.
370         (AccessibleStreamableContent_getContentTypes):
371         Use g_strdup, not CORBA_string_dup, for the strings.
372         (AccessibleStreamableContent_open):
373         Correctly use the new getStream method for opening,
374         not the deprecated getContent method.
375         Use the object reference as the stream hash key.
376         Make note of the 'one stream per client per streamable'
377         limitation in the docs.
378         
379         * libspi/libspi.h:
380         Add streamablecontent.h to the list of #includes.
381
382         * libspi/streamablecontent.c:
383         (impl_content_stream_read): Initialize the GError.
384         Allocate the incoming buffer if reading a fixed length of
385         data.  Use g_memmove instead of memcpy.
386         (impl_accessibility_streamable_get_content_types):
387         Init typelist->_maximum.  Only allocate the buffer if
388         there is a non-zero number of content types available.
389         (BONOBO_TYPE_FUNC_FULL(SpiStreamable): Move to end.
390
391         * libspi/streamablecontent.h:
392         (SPI_STREAMABLE_TYPE): Fix this macro, it was totally broken.
393
394         * libspi/value.h: 
395         (SPI_IS_VALUE): Fix a typo in this macro too.
396         
397 2006-06-16  Bill Haneman <bill.haneman@sun.com>
398
399         RFE #326532:
400         
401         * idl/Accessibility_StreambleContent.idl:
402         Deprecate the Bonobo_Stream-based methods in favor of
403         a self-contained "ContentStream" interface.  This should 
404         allow us to remove BonoboStream dependencies entirely, since
405         there were no non-NIL implementations of the old methods anyway.
406         (ContentStream): New interface.
407         (ContentStream::SeekType): Enum.
408         (ContentStream::seek): New.
409         (ContentStream::read): New.
410         (ContentStream::close): New.
411         (getContent): Deprecate.
412         (getURI): New method, returns a URI pointing to the content, if available.
413         
414         * libspi/streamablecontent.c:
415         (SpiContentStream): Internal object type definition used to
416         implement Accessibility::StreamableContent::ContentStream via
417         AtkStreamableContent's GIOChannel back-end.
418         (spi_content_stream_new, spi_content_stream_dispose): See above;
419         static methods.
420         (impl_content_stream_seek, impl_content_stream_read):
421         (impl_content_stream_close): New, implementations of
422         ContentStream's IDL.
423         (impl_accessibility_streamable_get_stream): Implement the 
424         public method Accessibility::StreamableContent::getStream.
425         (impl_accessibility_streamable_get_uri): Implement the 
426         public method Accessibility::StreamableContent::getURI.
427
428         * cspi/spi_streamablecontent.c:
429         (accessible_bonobo_stream_client_seek): Replaced by
430         (accessible_content_stream_client_seek).
431         (accessible_bonobo_stream_client_read): Replaced by
432         (accessible_content_stream_client_read).
433         (AccessibleStreamableContent_open):
434         (AccessibleStreamableContent_seek):
435         (AccessibleStreamableContent_read):
436         (AccessibleStreamableContent_close): Use the new 'getStream'
437         API instead of the deprecated 'getContent' API, inside the cspi wrappers.
438         
439 2006-06-15  Bill Haneman <bill.haneman@sun.com>
440
441         * idl/Accessibility.idl: #include Bonobo_Unknown.idl,
442         remove from other .idl files (except LoginHelper).
443         See bug #313122.
444
445 2006-06-14  Bill Haneman <bill.haneman@sun.com>
446
447         * */Makefile.am: Add WARN_CFLAGS to INCLUDES.
448         Bug #308239.
449
450         * configure.in, */Makefile.am: mingw patch, modified from
451         original patch by yselkowitz.  Bug #314216.
452
453         * cspi/spi-impl.h: Added #defines SPI_TRUE and SPI_FALSE
454         for completeness.  Bug #163111.
455
456         * atk-bridge/bridge.c, cspi/bonobo/cspi-bonobo.c:
457         * libspi/util.c,  registryd/registry-main.c:
458         Fix guint/char* casts.
459         Patch from chpe, bug #333883.
460         
461 2006-06-12  Bill Haneman <bill.haneman@sun.com>
462
463         * configure.in: Require atk-1.12.0, to pick up
464         new API. (bug #344412).
465
466         * libspi-1.0-uninstalled.pc.in:
467         * libspi-1.0.pc.in:
468         * libloginhelper-1.0.pc.in: Remove gtk+ dependency.
469         Fix for #341488 from Samual Thibault.
470
471         * configure.in, LINGUAS: Use LINGUAS, bug #338023.
472         Thanks to Brian Pepple.
473         
474 2006-06-09  Bill Haneman <bill.haneman@sun.com>
475
476         * libspi/table.c:
477         (impl_get_nSelectedRows, impl_get_nSelectedColumns):
478         New, missing implementations of attribute reading methods
479         in epv.  Bug #339021.
480
481         * cspi/spi.h, spi_value.c:
482         (AccessibleValue_getMinimumIncrement): New methods wrapping 
483         the (formerly unimplemented) property from Value.idl.
484         
485         * libspi/value.c:
486         (impl_get_minimumIncrement): Implementation for retrieving
487         the minimum valuator increment, (formerly unimplemented).
488         Bug #344265.
489         
490 2006-06-09  Bill Haneman <bill.haneman@sun.com>
491
492         * idl/Accessibility_State.idl:
493         Added STATE_VISITED (bug #338369).
494         
495         * cspi/spi_accessible.c: 
496         (spi_state_to_corba) Fixed marshalling of new statetypes.
497         
498         * libspi/stateset.c:
499         (spi_init_state_tables, impl_getStates): 
500         Fixed conversion of new statetypes to/from ATK.
501
502         * idl/Accessibility_Role.idl: Added ROLE_FORM (bug #344266).
503
504         * cspi/spi-roletypes.h, spi_accessible.c: Added marshalling 
505         definitions/conversions for new roles from ATK.
506
507         * idl/Accessibility_Relation.idl:
508         * libspi/relation.c:
509         * cspi/spi.h, spi_accessible.c: Added SPI_RELATION_DESCRIBED_BY and 
510         SPI_RELATION_DESCRIPTION_FOR.  (bug #344264) Also
511         SPI_PARENT_WINDOW_OF, which was in ATK but not AT-SPI.
512
513         * libspi/accessible.c: Fixed marshalling of new role types from
514         ATK.
515         
516 2006-04-17  Matthias Clasen  <mclasen@redhat.com>
517
518         * revert my previous change
519
520 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
521
522         * configure.in: Remove obssolete no_NO locale
523         * po/no.po: And the translation.
524
525 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
526
527         * atk-bridge/bridge.c (spi_atk_emit_eventv): Fix a 
528         memory-management error that caused crashes on x86_64.
529         (#337239)
530
531 2006-03-30  Guntupalli Karunakar  <karunakar@indlinux.org>
532
533         * configure.in: Added 'dz' (Dzongkha) to ALL_LINGUAS.
534
535 2006-03-27  Bill Haneman <bill.haneman@sun.com>
536
537         * configure.in: Define $LIBTOOL_EXPORT_OPTIONS
538         to strip "cspi_*" from the symbol table.
539         
540         * cspi/spi_streamablecontent.c:
541         (get_streams): Make this method static.
542
543         * cspi/spi_main.c:
544         (_cspi_exception_throw): rename to cspi_exception_throw,
545         so we can strip it with the rest...
546
547         * cspi/Makefile.am:
548         Add LIBTOOL_EXPORT_OPTIONS to libcspi_la_LDFLAGS.
549         
550 2006-03-27  Bill Haneman <bill.haneman@sun.com>
551
552         Add doxygen-generated IDL docs to tarball, and enable 
553         doxygen during build/install when available.  Bug #301345.
554         
555         * configure.in: Add docs/reference/idl/Makefile to AC_OUTPUT.
556
557         * docs/reference/Makefile.am: Add idl to SUBDIRS.
558
559         * docs/reference/idl/Makefile.am: Optionally use
560         doxygen to create docs.
561         
562 2006-03-20  Vladimer Sichinava  <vlsichinava@gmail.com>
563
564         * configure.in: Added "ka" (Georgian) to ALL_LINGUAS
565
566 2006-03-20  Bill Haneman <bill.haneman@sun.com>
567
568         * libspi/table.c:
569         (impl_get_selected_rows): Don't free the selection if it's
570         empty or has not been assigned; init it to NULL so you can tell.
571         Also, allow for zero selected rows.
572         (impl_getSelectedColumns): Ditto.  Bug #319088.
573
574 2006-03-11  Vincent Untz  <vuntz@gnome.org>
575
576         Leak fix for bug #334217.
577
578         * libspi/application.c: spi_application_toolkit_event_listener():
579         don't duplicate the string we pass as an argument to
580         spi_init_any_nil() since spi_init_any_nil() already does it
581         * registryd/deviceeventcontroller.c:
582         (spi_dec_button_update_and_emit): ditto
583         (spi_dec_mouse_check): ditto
584         (spi_dec_emit_modifier_event): ditto
585         (spi_device_event_controller_forward_mouse): ditto
586         * registryd/registry.c:
587         (desktop_add_application): ditto
588         (desktop_remove_application): ditto
589
590 2006-02-20  Bill Haneman <billh@gnome.org>
591
592         * configure.in: Rev to 1.7.6.
593
594         Leak fixes for bug #331924.
595         
596         * atk-bridge/bridge.c:
597         (spi_atk_bridge_init_base): Don't dup the string, it's already
598         been dup-ed.  Fixes a leak.
599         (spi_atk_emit_eventv): Move the CORBA_free call here, 
600         instead of spi_atk_state_event_listener; fixes another leak.
601         (spi_atk_bridge_key_listener):Free the dup'ed key strings after
602         notifying the registry; fixes another leak.
603
604         * registryd/registry.c:
605         (registry_flush_event_queue): Free the CORBA_any when 
606         flushing the event, not just the string.  Fixes another leak.
607         (registry_queue_event): Free the CORBA_any when dropping
608         events on the floor; fixes another leak.
609
610         * libspi/util.c:
611         (spi_init_any_object, spi_init_any_nil): 
612         Always set _release to TRUE.  Fixes another leak.
613
614 2006-02-20  Bill Haneman <billh@gnome.org>
615
616         * configure.in: Rev to 1.7.5.
617         Reinstate localization of this module.  Thanks for Rodney
618         Dawes for fixing my patch.
619
620         * registryd/Makefile.am: Remove Accessibility_Registry.server 
621         from dist, since it needs to be re-created at configure time.
622         Fixes bug #3331484.
623         
624 2006-01-31  Bill Haneman <billh@gnome.org>
625
626         * configure.in: Rev to 1.7.4 (to include build fix below).
627         
628         * idl/Makefile.am: Include Selector.idl in dist.
629         Fixes bug #328859.
630
631         * cspi/spi_event.c:
632         (cspi_internal_event_get_object): Handle case where
633         "object" isn't present, i.e. CORBA_TC_Object doesn't match
634         the EventDetails data.
635         (cspi_internal_event_get_text): Handle NULL string.
636         (cspi_internal_event_get_rect): Handle missing/empty rect
637         data, Accessibility_TC_RectBounds doesn't match any_data.
638
639 2006-01-30  Bill Haneman <billh@gnome.org>
640
641         * Released 1.7.3.
642
643         * atk-bridge/bridge.c:
644         (spi_atk_emit_eventv): Check for SPI_REMOTE_OBJECT 
645         interface and use that when instantiating a new source
646         accessible.  Better fix for bug #321814.
647         
648 2006-01-27  Bill Haneman <billh@gnome.org>
649
650         * idl/Accessibility_Selector.idl: Added to the cvs repository.
651
652         * configure.in: Revved to 1.7.3.
653         
654 2006-01-17  Bill Haneman <billh@gnome.org>
655
656         * configure.in: Revved to 1.7.2, re-dist to include docs.
657
658 2006-01-09  Bill Haneman <billh@gnome.org>
659
660         * configure.in: Removed po/Makefile.in inclusion, we do not need
661         it.  Revved to 1.7.0.
662
663         * idl/Accessibility.idl: Improved documentation here, and for all
664         IDL in the 'GNOME::Accessibility' namespace.
665
666         * idl/Accessibility_Accessible.idl:
667         (LOCALE_TYPE): Added enum.
668         (AttributeSet): New, for returning multiple name/value attribute pairs.
669         (RoleSet): New, sequence of Roles, to be used in upcoming
670         Collection API.
671         (getAttributes): New API, allows retrieval of name/value pair
672         annotations for all kinds of Accessible objects.  C.f. 
673         Text:getAttributes, which is only for typographic/textual/semantic tags in
674         text content.
675         (getApplication): New, retrieves the host/containing Application
676         instance for an object (without having to walk up the whole tree).
677
678         * idl/Accessibility_Component.idl:
679         (getAlpha): New method, returns the alpha blending (aka 'opacity')
680         value for an object.  An alpha of 1.0 is fully opaque, 0.0 is
681         fully transparent.
682
683         * idl/Accessibility_Event.idl:
684         (EventDetails): New struct definition, for encapsulating
685         commonly-queried information about emitted events.  The use of
686         this structure in emitted events (in the 'any' member of
687         Accessibility_Event) should greatly reduce the number of
688         client-server roundtrips necessary.
689
690         * idl/Accessibility_Image.idl:
691         (imageLocale): New, a readonly attribute indicating the POSIX 
692         LC_MESSAGES locale of the image and associated Alt/descriptive
693         text.
694
695         * idl/Accessibility_Relation.idl:
696         (RELATION_PARENT_WINDOW_OF): Include, as complement to
697         RELATION_POPUP_FOR.
698
699         * idl/Accessibility_Role.idl:
700         (ROLE_ENTRY, ROLE_CHART, ROLE_CAPTION, ROLE_DOCUMENT_FRAME)
701         (ROLE_HEADING, ROLE_PAGE, ROLE_SECTION): New roles for
702         complex document and form support.
703
704         * idl/Accessibility_State.idl:
705         (STATE_REQUIRED, STATE_TRUNCATED, STATE_ANIMATED)
706         (STATE_INVALID_ENTRY, STATE_SUPPORTS_AUTOCOMPLETION)
707         (STATE_SELECTABLE_TEXT, STATE_IS_DEFAULT): New states,
708         for support of complex documents and forms.
709
710         * idl/Accessibility_StreamableContent.idl:
711         (SeekType, IOError, NotSupported, NoPermission): New enum and exceptions, to
712         allow old bonobo-stream interfaces to be deprecated in the next
713         release.
714
715         * idl/Accessibility_Text.idl:
716         (getAttributeValue): New method, allows query-by-name of single
717         attributes.
718
719         * libspi/accessible.c:
720         Added support for new roles.  Implemented new methods
721         (impl_accessibility_accessible_get_application): New
722         (impl_accessibility_accessible_get_attributes): New
723
724         * libspi/component.c:
725         (impl_accessibility_component_get_alpha): New.
726
727         * libspi/image.c:
728         (impl_accessibility_image_get_locale): New.
729
730         * libspi/relation.c: Added support for new relation type.
731
732         * libspi/stateset.c: Added support for new state types.
733
734         * libspi/text.c: 
735         (impl_getAttributeValue): New.
736         
737         * libspi/util.c:
738         New prototypes for private methods
739         spi_init_any_nil,
740         spi_init_any_object, spi_init_any_string,
741         spi_init_any_rect.
742         
743         * libspi/spi_event.c: 
744         Use EventDetails in the event emission methods.
745
746         * cspi/spi-private.h:
747         (cspi_role_from_spi_role): Expose this adapter method, since
748         we need it in the bridge (see below).
749
750         * cspi/spi.h:
751         (AccessibleEvent_getSourceName):
752         (AccessibleEvent_getSourceRole):
753         (AccessibleEvent_getSourceApplication):
754         (AccessibleEvent_getSourceDetails):
755         New methods for interrogating/demarshalling
756         event details (i.e. source's accessible name, role, 
757         and host app).
758
759         * cspi/spi_accessible.c: Use cspi_role_from_spi_role.
760         Make use of the new EventDetails struct in events, if present.
761         (AccessibleEvent_getSourceName)
762         (AccessibleEvent_getSourceRole)
763         (AccessibleEvent_getSourceApplication)
764         (AccessibleEvent_getSourceDetails): Implement the newly exposed
765         methods from spi.h.
766         (Accessible_getAttributes): New, wraps
767         Accessibility_Accessible_getAttributes.
768         (Accessible_getHostApplication): New, wraps
769         Accessibility_Accessible_getApplication.
770
771         * cspi/spi_image.c:
772         (AccessibleImage_getImageLocale): New wrapper for
773         Accessibility_Image_get_imageLocale.
774
775         * cspi/spi_component.c:
776         (AccessibleComponent_getAlpha): New wrapper for
777         Accessibility_Component_getAlpha.
778         
779         * atk-bridge/bridge.c:
780         Use new prototyped for init_any methods.
781         (spi_atk_bridge_init_nil, spi_atk_bridge_init_object)
782         (spi_atk_bridge_init_string, spi_atk_bridge_init_rect)
783         (spi_atk_bridge_init_base): Wrappers
784         for spi_init_any_* methods, due to refactor; include extended
785         information in the Accessibility_EventDetails struct, for instance
786         accessible-name, Role, and containing Application.
787
788         * registryd/registry.c: 
789         Use new event emission (with EventDetails).
790         
791         * registryd/deviceeventcontroller.c:
792         Use new event emission (with EventDetails).
793
794 2006-01-09  Kjartan Maraas <kmaraas@gnome.org>
795
796         * configure.in: Generate po/Makefile.in
797         * cspi/spi_main.c: Add #ifdef PRINT_LEAKS around a function
798         * cspi/spi_streamablecontent.c: 
799         (accessible_bonobo_stream_client_seek),
800         (AccessibleStreamableContent_seek): Remove unused vars.
801         * libspi/application.c: Missing header.
802         * libspi/text.c: (impl_getDefaultAttributes): Unused vars
803         * login-helper/login-helper.c: (login_helper_finalize),
804         (login_helper_init): Remove unused stuff
805         * registryd/deviceeventcontroller.c: (spi_dec_replace_map_keysym),
806         (spi_dec_init_mouse_listener), (is_key_released): Remove unused vars
807         and surround some with #ifdef GRAB_BUTTON.
808         * test/event-listener-test.c: (main), (report_event),
809         (report_caret_event), (report_detail_event),
810         (report_detail1_event), (report_bounds_event), (report_text_event),
811         (report_text_selection_event),
812         (report_active_descendant_changed_event),
813         (report_children_changed_event), (report_name_changed_event),
814         (report_description_changed_event), (report_parent_changed_event),
815         (report_window_event), (report_table_summary_event),
816         (report_table_header_event), (report_table_caption_event),
817         (report_table_row_description_event),
818         (report_table_column_description_event), (timing_test_event):
819         Remove a bunch of unused variables and fix a slew of format specifiers
820         * test/key-listener-test.c: (report_all_key_event): Format specifier
821         * test/keypad-test.c: (print_key_event): Same
822         * test/login-helper-server-test.c: (main): Include gtkmain.h and remove
823         unused var.
824         * test/screen-review-test.c: (main), (print_chunk_debug),
825         (review_buffer_get_text_chunk), (debug_chunk_list),
826         (string_guess_clip), (text_chunk_get_clipped_string),
827         (text_chunk_list_to_string), (get_screen_review_line_at):
828         Remove unused variables and fix format specifiers.
829         * test/simple-at.c: (report_text_event): Format specifier fix.
830         * test/stress-test.c: (main): Remove unused var.
831
832 2005-12-29  Abel Cheung  <maddog@linuxhall.org>
833
834         * configure.in: Add zh_HK, zh_TW to ALL_LINGUAS
835         (yes I know that's useless)
836
837 2005-11-20  Theppitak Karoonboonyanan  <thep@linux.thai.net>
838
839         * configure.in: Added "th" (Thai) to ALL_LINGUAS.
840
841 2005-11-17  Michael Meeks  <michael.meeks@novell.com>
842
843         * atk-bridge/bridge.c (spi_atk_emit_eventv): 
844         urgh-fix embarassing typo.
845
846 2005-11-16  Michael Meeks  <michael.meeks@novell.com>
847
848         * atk-bridge/bridge.c (spi_atk_emit_eventv):
849         do a faster, less problematic _unref call on this local
850         object, rather than a slower (potentially cross-thread
851         complicated) CORBA call.
852
853 2005-11-02  Kjartan Maraas  <kmaraas@gnome.org>
854
855         * atk-bridge/bridge.c: (spi_atk_bridge_signal_listener):
856         * cspi/spi_streamablecontent.c: (AccessibleStreamableContent_seek):
857         * registryd/deviceeventcontroller.c:
858         (spi_controller_notify_mouselisteners),
859         (impl_generate_keyboard_event):
860         * test/screen-review-test.c: (chunk_bounds_within):
861         * test/test-simple.c: (test_desktop): Remove some unused code
862         and fix compiler warnings. Closes bug #320049.
863
864 2005-10-27 Bill Haneman <bill.haneman@sun.com>
865
866         * registryd/deviceeventcontroller.c:
867         (spi_controller_notify_keylisteners): Check
868         to make sure the event listener has requested 'preemptive'
869         status before pre-empting an event.
870         
871 2005-08-29 Bill Haneman <bill.haneman@sun.com>
872
873         * configure.in, README, NEWS: Release 1.6.5.
874         
875 2005-07-25  Matthias Clasen  <mclasen@redhat.com>
876
877         * test/window-listener-test.c: Fix a printf
878         format error.  (#169453)
879
880 2005-07-15  Bill Haneman <bill.haneman@sun.com>
881
882         * tests/test-simple.c: 
883         (key_listener_cb): Ensure that the keystring is dup'ed instead of
884         relying on the old string from the key event hanging around after
885         the event handler returns.  Fixes broken 'make check'.
886         
887 2005-06-06  Swapnil Hajare  <dreamil@gmail.com>
888
889         * Added Marathi (mr_IN) translations.
890
891 2005-05-27  Kjartan Maraas  <kmaraas@gnome.org>
892
893         * cspi/bonobo/cspi-bonobo-listener.c:
894         (cspi_event_list_remove_by_cb): Fix the build.
895
896 2005-05-26  Michael Meeks  <michael.meeks@novell.com>
897
898         * cspi/bonobo/cspi-bonobo-listener.c
899         (cspi_event_list_remove_by_cb): actually filter by callback.
900
901 2005-05-25  Bill Haneman <bill.haneman@sun.com>
902
903         * registryd/registry.c (remove_listener_cb):
904         Make deregistration filter rules match the event emission rules.
905
906 2005-05-25  Michael Meeks  <michael.meeks@novell.com>
907
908         * registryd/registry.c (remove_listener_cb),
909         (impl_accessibility_registry_deregister_global_event_listener),
910         (impl_accessibility_registry_deregister_global_event_listener_all): 
911         pass a closure to the remove callback to filter listeners more
912         accurately on remove.
913
914 2005-04-05  Bill Haneman <bill.haneman@sun.com>
915
916         * configure.in: Revved to 1.6.4.
917         Remember to put quotes around XEVIE_LIBS assignment.
918         Fixed one of tertiary AC_CHECK_HEADER tests for XEvie.
919         Fixes bug #303694.
920
921         * tests/event-listener-test.c: Tweaked the tests - more detail
922         from caret events, and some interrogation of AccessibleText APIs.
923         Commented-out the bounds-changed events by default, since they can
924         be very noisy.
925
926 2005-04-14  Kjartan Maraas  <kmaraas@gnome.org>
927
928         * atk-bridge/bridge.c: (spi_atk_emit_eventv): Plug a leak.
929         * cspi/bonobo/cspi-bonobo-listener.c: (cspi_device_event):
930         Same here. Closes bug #167806
931
932 2005-04-05  Bill Haneman <bill.haneman@sun.com>
933
934         * atk-bridge/bridge.c: 
935         (spi_atk_bridge_signal_listener):
936         Free the any._value if any._release is TRUE,
937         since the ORB won't do it for us in this case
938         [because this method is not a skel].
939         Fix for bug #168679.    
940         
941 2005-03-30  Steve Murphy  <murf@e-tools.com>
942
943         * configure.in: Added "rw" to ALL_LINGUAS.
944
945 2005-03-29  Bill Haneman <bill.haneman@sun.com>
946
947         * configure.in: Improved check for HAVE_XEVIE, to detect 
948         presence on XOrg, where -lXevie is a separate library.
949
950 2005-03-08  Bill Haneman <bill.haneman@sun.com>
951
952         * configure.in, NEWS, README: Revved to 1.6.3.
953
954 2005-02-16  Adi Attar  <aattar@cvs.gnome.org>
955
956         * configure.in: Added "xh" to ALL_LINGUAS.
957
958 2005-02-07  Bill Haneman <bill.haneman@sun.com>
959
960         * atk-bridge/bridge.c: 
961         (atk_bridge_init): Added missing NULL in g_strconcat(),
962         also check for symlink before logging to 
963         insecure directory.  Thanks to meissner@suse.de.
964
965 2005-01-25  Padraig O'Briain <padraig.obriain@sun.com>
966
967         * tests/login-helper-server-test.c: Add return call to main
968         function. Patch from Chris Lahey. Fixes bug #165129.
969
970 2004-12-20  Padraig O'Briain <padraig.obriain@sun.com>
971
972         * cspi/spi.h: Add description for SPI_RELATION_SUBWINDOW_OF.
973
974 2004-12-09  Bill Haneman <billh@gnome.org>
975
976         * registryd/registry-main.c:
977         Added #define <string.h> for strrchr. (bug 160862).
978         Thanks to Vincent Berger for catching.
979         
980 2004-12-09  Padraig O'Briain <padraig.obriain@sun.com>
981
982         * atk-bridge/bridge.c (spi_atk_get_registry): Do not attempt to
983         restart registry process if the registry process is found to have died
984         and the current process is exiting.
985         (spi_atk_bridge_exit_func): Do not attempt to deregister the
986         application if the registry process has died.
987         (spi_atk_emit_eventv): Return if call to spi_atk_get_registry
988         does not return a registry object.
989         (spi_atk_tidy_windows): Give up if the registry process has died.
990
991         This fixes problems with hangs and crashes when logging out.
992
993 2004-12-03  Padraig O'Briain <padraig.obriain@sun.com>
994
995         * registryd/desktop.c: Add checking that we are not exiting before
996         calling spi_desktop_remove_application in 
997         abnormal_application_termination. Fix for bug #152147.
998
999 2004-12-02  Bill Haneman <billh@gnome.org>
1000
1001         * configure.in, NEWS, README: Revved to 1.6.1.
1002         
1003         Patch from Padraig O'Briain <padraig.obriain@sun.com>
1004         * atk-bridge/bridge.c:
1005         (atk_bridge_init): Save the pid when we start, to detect forks.
1006         (spi_atk_bridge_exit_func): Don't call the cleanup routines
1007         if we're in a forked pid.
1008         
1009 2004-10-09  Bill Haneman <billh@gnome.org>
1010
1011         * idl/Accessibility_LoginHelper.idl:
1012         Improved inline documentation.
1013
1014 2004-10-02  Jesus Bravo Alvarez  <suso@trasno.net>
1015
1016         * configure.in: Added gl (Galician) to ALL_LINGUAS
1017
1018 2004-09-30  Kjartan Maraas  <kmaraas@gnome.org>
1019
1020         * libspi/accessible.c:
1021         (impl_accessibility_accessible_get_role_name),
1022         (impl_accessibility_accessible_get_local_role_name):
1023         NULL vs. 0 cleanups.
1024         * libspi/component.c:
1025         (impl_accessibility_component_get_accessible_at_point):
1026         Same here.
1027         * libspi/eventlistener.c: (spi_event_listener_new):
1028         ANSIfication.
1029         * libspi/stateset.c: (impl_compare): More of the same
1030         * libspi/table.c: (impl_getRowDescription): Again.
1031         * registryd/desktop.c: (spi_atk_desktop_get_type): Same
1032         * registryd/deviceeventcontroller.c: (spi_clear_error_state),
1033         (impl_generate_keyboard_event): Same.
1034         * registryd/registry-main.c: (main): Same
1035         * test/event-listener-test.c: (test_exit): Same
1036         * test/keysynth-demo.c: (scan_state), (create_vkbd): Same
1037         * test/keysynth-test.c: (test_key_synthesis): Same
1038         * test/login-helper-server-test.c: (main): Fix warning.
1039         * test/screen-review-test.c: (test_exit): Fix include.
1040         * test/simple-at.c: (simple_at_exit), (_festival_init):
1041         ANSIfication.
1042
1043 2004-09-13  Padraig O'Briain <padraig.vriain@sun.com>
1044
1045         * configure.in, NEWS, README: Revved to 1.6.0.
1046
1047 2004-09-12  Bill Haneman <bill.haneman@sun.com>
1048
1049         * configure.in: Rev and re-dist, since the 1.5.4 tarball
1050         was missing the HTML docs.
1051
1052 2004-09-12  Tomasz KÅ‚oczko <kloczek@pld.org.pl>
1053
1054         * configure.in: only cleanups:
1055         - better looking PKG_CHECK_MODULES() output,
1056         - justification,
1057         - declare in one common place required versions of other tools using
1058           m4_define().
1059
1060 2004-09-11  J.H.M. Dassen (Ray) <jdassen@debian.org>
1061
1062         * configure.in: libspi/accessible.c uses ATK_ROLE_EMBEDDED
1063         (unconditionally) which was introduced in ATK 1.7.2. Bumped the
1064         required ATK version accordingly.
1065
1066 2004-09-03 Bill Haneman    <bill.haneman@sun.com>
1067
1068         * cspi/bonobo/cspi-bonobo.c:
1069         (cspi_display_name): Fix C99ism.
1070         * atk-bridge/bridge.c:
1071         (spi_display_name): Fix C99ism.
1072         Patch from Jens Granseuer, jensgr@gmx.net.
1073         
1074 2004-09-03  Gora Mohanty  <gmohanty@cvs.gnome.org>
1075  
1076         * configure.in: Added "or" to ALL_LINGUAS.
1077
1078 2004-08-20  Bill Haneman    <bill.haneman@sun.com>
1079
1080         * configure.in, NEWS, README: Revved to 1.5.4.
1081         
1082         * registryd/registry-main.c:
1083         (main): Set the reg_env to use AT_SPI_DISPLAY instead of
1084         $DISPLAY.  
1085         
1086         * cspi/bonobo/cspi-bonobo.c:
1087         (cspi_display_name): New convenience method, gets DISPLAY with
1088         screen number stripped, if AT_SPI_DISPLAY isn't already set.
1089         (cspi_init): Set the activation env value above before getting
1090         the registry.
1091         
1092         * atk-bridge/bridge.c:
1093         (spi_display_name): Create the AT_SPI_DISPLAY activation
1094         environment for an app, based on the DISPLAY environment with the
1095         screen number stripped off.
1096         (atk_bridge_init):  Allow redirection of error messages to a log.
1097         (spi_atk_bridge_get_registry): Call
1098         bonobo_activation_set_activation_env_value for AT_SPI_DISPLAY.
1099
1100         Fixes for bugs #149962, #136986, #144086.
1101         
1102 2004-08-16  Christian Rose  <menthos@menthos.com>
1103
1104         * configure.in: Added "bs" to ALL_LINGUAS.
1105
1106 2004-08-12  Kjartan Maraas  <kmaraas@gnome.org>
1107
1108         * configure.in: Added nb to ALL_LINGUAS.
1109
1110 2004-09-03 Bill Haneman <bill.haneman@sun.com>
1111
1112         * cspi/spi_main.c:
1113         (SPI_init): Return error code '2' if the activated
1114         registry cannot be pinged. Fixes bug #147648.
1115         
1116 2004-07-28 Bill Haneman <bill.haneman@sun.com>
1117
1118         * registryd/deviceeventcontroller.c:
1119         (spi_dec_init_mouse_listener): Don't do XGrabButton, 
1120         rely on timer-poll instead, to avoid conflict with 
1121         xstroke.
1122         
1123 2004-07-20  Bill Haneman <bill.haneman@sun.com>
1124
1125         * configure.in: Revved to 1.5.3.
1126
1127         * idl/Accessibility_Role.idl: Added ROLE_EMBEDDED (bug #144415).
1128
1129         * libspi/accessible.c: Added support for ROLE_EMBEDDED.
1130
1131         * cspi/spi_accessible.c: Support for ROLE_EMBEDDED.
1132
1133         * cspi/spi-roletypes.h: Added SPI_ROLE_EMBEDDED.
1134         
1135 2004-06-11  Bill Haneman <bill.haneman@sun.com>
1136
1137         * atk-bridge/bridge.c:
1138         (spi_atk_bridge_do_registration): 
1139         Register with ATK for AtkComponent:bounds-changed events.
1140         (api_atk_bridge_signal_listener): 
1141         Marshal the AtkRectangle info into the event notification
1142         for object:bounds-changed events.
1143         
1144         * libspi/util.c:
1145         (spi_init_any_rect): New method, inits a corba struct of
1146         type Accessibility_BoundingBox from an AtkRectangle.
1147
1148         * libspi/spi-private.h: Declared spi_init_any_rect (above).
1149         
1150         * cspi/spi.h:
1151         (SPIRect): New struct definition.
1152         (SPI_freeRect): New declaration.
1153         (AccessibleBoundsChangedEvent_getNewBounds): New, see below.
1154
1155         * cspi/spi_event.c:
1156         (AccessibleBoundsChangedEvent_getNewBounds): New method,
1157         implemented.  Gets the bounding box data from the CORBA_any
1158         associated with a bounds-changed event notification.
1159         (cspi_internal_event_get_rect): New, used internally by above method.
1160         
1161         * cspi/spi_main.c:
1162         (SPI_freeRect): Implemented this new method, for freeing
1163         SPIRect structs.
1164         
1165         * test/event-listener-test.c:
1166         (main, report_bounds_event):
1167         Added a test for object:bounds-changed events.
1168         
1169 2004-06-01  Bill Haneman <bill.haneman@sun.com>
1170
1171         * test/login-helper-server-test.c:
1172         (main): Fix C99-ism.  Thanks to Jens Granseuer.
1173         
1174 2004-05-28  Padraig O'Briain <padraig.obriain@sun.com>
1175
1176         * libloginhelper-1.0.pc.in:
1177         * idl/Accessibility_LoginHelper.idl: 
1178         * login-helper/Makefile.am:
1179         * login-helper/login-helper.[ch]:
1180         * test/login-helper-client-test.c:
1181         * test/login-helper-server-test.c: Added files missing from CVS.
1182         Files obtained from at-spi-1.5.2 tarball.
1183
1184 2004-05-27  Bill Haneman <bill.haneman@sun.com>
1185
1186         * configure.in: Create login-helper/Makefile.  
1187         Incremented micro version.
1188
1189         * Makefile.am:  Add login-helper subdir and pkgconfig data.
1190         
1191         * login-helper: New subdir.
1192
1193         * libloginhelper-1.0.pc.in: New.
1194
1195         * idl/Accessibility_LoginHelper.idl: New file, defines
1196         interface whereby authentication clients can identify agents which
1197         need access to services during the login process, e.g. screen lock
1198         dialogs, etc.
1199
1200         * login-helper/Makefile.am : New.
1201
1202         * login-helper/login-helper.[ch] : New, implementation of
1203         a LoginHelper base class.  Services needing LoginHelper can subclass.
1204
1205         * test/Makefile.am : Added test for login-helper, client and
1206         server.
1207
1208         * test/app.c, at.c, keypad-test.c, keysynth-test.c, stress-test.c:
1209         Use proper prefix in #include files.
1210
1211         * test/login-helper-client-test.c: New.
1212         
1213         * test/login-helper-server-test.c: New.
1214
1215 2004-05-27  Alexander Shopov <ash@contact.bg>
1216
1217         * configure.in (ALL_LINGUAS): Added "bg" (Bulgarian)
1218
1219 2004-05-14  Padraig O'Briain <padraig.obriain@sun.com>
1220
1221         * cspi/spi_main.c (cspi_object_unref): Add check that reference count
1222         is positive. This should make it easier to detect inapprorpiate unref
1223         calls.
1224
1225 2004-05-11  James Henstridge  <james@daa.com.au>
1226
1227         * configure.in: remove GNOME_PLATFORM_GNOME_2 macro, which is a
1228         no-op and deprecated.
1229
1230 2004-05-03  Pablo Saratxaga  <pablo@mandrakesoft.com>
1231
1232         * configure.in: Added "wa" (Walloon) to ALL_LINGUAS.
1233
1234 2004-04-28 Bill Haneman <billh@gnome.org>
1235
1236         * Makefile.am: Added --enable-gtk-doc to
1237         DISTCHECK_CONFIGURE_FLAGS; fixes make distcheck.
1238         
1239 2004-04-19 Bill Haneman <billh@gnome.org>
1240
1241         * configure.in: Revved to 1.5.1.
1242
1243         * registryd/deviceeventcontroller.c:
1244         #define XK_LATIN1.
1245         (DEControllerPrivateData): Added fields for 
1246         reserved_keycode, reserved_keysym, and reserved_reset_timeout.
1247         (spi_dec_replace_map_keysym): New internal utility for
1248         replacing a keysym in the keymap - used to allow
1249         synthesis of individual characters which aren't in the
1250         current X keymap.
1251         (spi_dec_reset_reserved): New; resets the changed keysym value 
1252         in the map.
1253         (keycode_for_keysym): We now try to deal with failed
1254         XKeysymToKeycode requests by changing a keymap value
1255         and returning a reserved keycode.  We now take 
1256         a DEController pointer as first arg.
1257         (spi_controller_register_with_devices): Call XkbGetMap with 
1258         the XkbKeySymsMask.  Find the highest keycode in the current
1259         keymap which doesn't have any grabs, and mark that one for
1260         temporary re-mapping when out-of-range KeySyms are synthesized.
1261         (dec_synth_keycode_press): Call XFlush after synthesizing the key
1262         event.
1263         
1264 2004-04-08  Guntupalli Karunakar  <karunakar@freedomink.org>
1265
1266         * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
1267
1268 2004-03-24  Alexander Winston  <alexander.winston@comcast.net>
1269
1270         * configure.in: Added "en_CA" (Canadian English) to ALL_LINGUAS.
1271
1272 2004-03-24  Bill Haneman <billh@gnome.org>
1273
1274         * cspi/spi.h:
1275         (AccessibleTable_addRowSelection),
1276         (AccessibleTable_addColumnSelection),
1277         (AccessibleTable_removeRowSelection),
1278         (AccessibleTable_removeColumnSelection):
1279         Add declarations for spi wrappers which were
1280         inadvertantly omitted.  Fixes bug #133413.
1281
1282         * configure.in:
1283         Revved to 1.5.0 (unstable series for GNOME 2.7).
1284         
1285 2004-03-24  Bill Haneman <billh@gnome.org>
1286
1287         * atk-bridge/bridge.c:
1288         Bracketed some debug output in 
1289         conditionals, to avoid printing it in normal use.
1290         Fixes bug #136660.
1291
1292         * libspi/hyperlink.c:
1293         Don't cast 'object' to ATK_OBJECT when constructing
1294         an AtkAction interface for a hyperlink.
1295         See discussion in bug #120659.
1296
1297         * test/key-listener-test.c:
1298         (report_all_key_event): Send output to stderr,
1299         not stdout, for consistency with the rest of the test callbacks.
1300
1301         * configure.in:
1302         Add -lXext to XINPUT_LIBS. Fix for bug #132237.
1303         Don't add X_LIBS to CFLAGS (Fix for bug #134332).
1304         Incremented to 1.4.1 (but didn't dist yet - I'm going to 
1305         try incrementing the revision AFTER doing a dist, at least
1306         for awhile).
1307         
1308 2004-03-22  Bill Haneman <billh@gnome.org>
1309
1310         * configure.in: Revved to 1.4.0, libtool 9.14.9
1311
1312 2004-03-17  Laszlo Peter  <laca@sun.com>
1313
1314         * libspi-1.0-uninstalled.pc.in: add idldir
1315
1316         * cspi-1.0-uninstalled.pc.in: add idldir
1317
1318 2004-03-16  Gareth Owen <gowen72@yahoo.com>
1319
1320         * configure.in: Added "en_GB" to ALL_LINGUAS
1321
1322 2004-03-15  Bill Haneman <billh@gnome.org>
1323
1324         * configure.in: Revved to 1.3.16, 
1325         libtool 9.13.9.
1326         
1327 2004-03-15  Laszlo Peter  <laca@sun.com>
1328
1329         * libspi-1.0-uninstalled.pc.in: new file
1330
1331         * cspi-1.0-uninstalled.pc.in: new file
1332
1333         * configure.in: add the new pc files to AC_OUTPUT
1334
1335         * Makefile.am: add the new pc files to EXTRA_DIST
1336
1337 2004-03-12  Bill Haneman <billh@gnome.org>
1338
1339         * atk-bridge/bridge.c:
1340         (spi_atk_bridge_key_listener):
1341         Make sure to return consumed=FALSE if snoop 
1342         event is not dispatched to listener.
1343         Fixes #134037.
1344         
1345 2004-03-01  Bill Haneman <billh@gnome.org>
1346
1347         * configure.in: Revved to 1.3.15, 
1348         libtool 9.12.9.
1349         
1350 2004-03-07  Danilo Segan  <dsegan@gmx.net>
1351
1352         * configure.in: Added "sr@ije" to ALL_LINGUAS.
1353
1354 2004-03-03  Guntupalli Karunakar  <karunakar@freedomink.org>
1355
1356         * configure.in: Added "pa" for Punjabi in ALL_LINGUAS.
1357
1358 2004-03-01  Bill Haneman <billh@gnome.org>
1359
1360         * configure.in: Revved to 1.3.14.
1361         
1362         * cspi/spi_main.c:
1363         (SPI_exit): Removed "bye-bye" exit message.
1364         Moved "leak" report to happen before the
1365         iteration over the leaked refs list.
1366         Don't PRINT_LEAKS unless DEBUG_OBJECTS is also #defined.
1367         
1368 2004-02-24  Bill Haneman <billh@gnome.org>
1369
1370         * configure.in: Revved to 1.3.13.
1371
1372         * docs/reference/cspi/Makefile.am:
1373         Correct typo that was breaking the docs build.
1374
1375 2004-02-11  Padraig O'Briain <padraig.obriain@sun.com>
1376
1377         * autogen.sh: Require version 1.7 of automake.
1378         
1379         * configure.in: call GTK_DOC_CHECK([1.0])
1380
1381         * atk-bridge/Makefile.am: Remove use of LDFLAGS and CFLAGS
1382
1383         * docs/reference/cspi/Makefile.am: Update to use new gtk-doc.
1384
1385         * libspi/Makefile.am: Remove use of LDFLAGS and CFLAGS.
1386
1387         * test/Makefile.am:  Remove use of CFLAGS.
1388
1389         This fixes bug #132987.
1390
1391 2004-02-11  Bill Haneman <billh@gnome.org>
1392
1393         * reverted most of Tomasz' patch below, since it was breaking
1394         builds (see bug #134058).
1395         
1396 2004-02-10  Tomasz KÅ‚oczko <kloczek@pld.org.pl>
1397
1398         * docs/reference/cspi/at-spi-cspi.types: added empty file for
1399           correct pass "make dist" (empty .. because seems no sach types in
1400           header files with gtk-doc markups).
1401         * docs/reference/cspi/Makefile.am, configure.in:
1402           Added better gtk-doc support using GTK_DOC_CHECK aclocal macro
1403           from gtk-doc >= 1.0 (modyfications based on scheme from atk).
1404         * Makefile.am: added:
1405           DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
1406           for force correct pass generate documentation on "make distcheck".
1407         * libspi/Makefile.am: fixes for automake >= 1.6.
1408         * configure.in: Trivial cleanup: remove AC_SUBST(CFLAGS),
1409           AC_SUBST(CPPFLAGS) and AC_SUBST(LDFLAGS). This variables are
1410           substed by default.
1411
1412 Sun Feb  8 11:20:50 2004  Matthias Clasen  <maclas@gmx.de>
1413
1414         * docs/reference/cspi/Makefile.am (install-data-local): Install
1415         index.sgml since the doc autobuilder on widget.gnome.org looks for
1416         that file.
1417
1418 2004-02-02  Padraig O'Briain  <padraig.obriain@sun.com>
1419
1420         * atk-bridge/bridge.c (spi_atk_tidy_windows): Correct g_free call to
1421         g_object_unref.
1422
1423 2004-02-01  Robert Sedak  <robert.sedak@sk.htnet.hr>
1424
1425         * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
1426
1427 2004-01-27  Brian Cameron <brian.cameron@sun.com>
1428
1429         * test/simple-at.c: Fixed null string problems that cause core
1430           dumping problems on Solaris.
1431
1432 2004-01-12  Bill Haneman <billh@gnome.org>
1433         
1434         * configure.in: Incremented version to 1.3.11.
1435
1436 2004-01-05  Padraig O'Briain  <padraig.obriain@sun.com>
1437
1438         * docs/reference/cspi/at-spi-cspi-docs.sgml: Added XML in
1439         DOCTYPE statement. Fixes bug #129728. Patch supplied by Sebastien
1440         Bacher.
1441
1442 2004-01-01  Roozbeh Pournader  <roozbeh@sharif.edu>
1443
1444         * configure.in: Added "fa" to ALL_LINGUAS.
1445
1446 2003-12-20  Arafat Medini <lumina@silverpen.de>
1447
1448         * configure.in: Added "ar" to ALL_LINGUAS
1449
1450 2003-12-16      Bill Haneman <billh@gnome.org>
1451
1452         * registryd/registry-main.c:
1453         (main):
1454         Set the reg_env DISPLAY variable before registering the
1455         activated registry service.  Fixes bug #129479.
1456
1457 2003-12-16      Mohammad DAMT  <mdamt@bisnisweb.com>
1458
1459         * configure.in: Added "id" in ALL_LINGUAS
1460         * po/id.po: Indonesian translation by Ahmad Riza H Nst <ari@160c.afraid.org>
1461
1462 2003-12-15  Padraig O'Briain <padraig.obriain@sun.com>
1463
1464         * registryd/deviceeventcontroller.c (global_filter_fn):
1465         When an event is consumed discard any XEvents were added to
1466         the queue while dealing with the the event. This can happen if
1467         processing of the event takes a long time. Call XUngrabKeyboard
1468         if an event was discarded. This fixes bug $124837.
1469         Only call wait_for_release_event for a KeyPress.
1470         Use local variable display instead of spi_get_display().
1471         (spi_controller_update_key_grabs): Move call to keycode_for_keysym
1472         outside for loop.
1473
1474 2003-12-11  Padraig O'Briain <padraig.obriain@sun.com>
1475
1476         * registryd/deviceeventcontroller.c (spi_dec_translate_mask):
1477         Allow for mask to contain values other than NumLock mask.
1478         Fixes bug #129103.
1479
1480 2003-12-10  Padraig O'Briain <padraig.obriain@sun.com>
1481
1482         * registryd/devieceventcontroller.c:
1483         (wait_for_release_event): Change first parameter from GdkEvent to 
1484         XEvent.
1485         (global_filter_fn); Correct call to wait_for_release_event.
1486
1487         Fixes bug #128912.
1488
1489 2003-12-08  Bill Haneman <billh@gnome.org>
1490
1491         Version 1.3.10.
1492
1493         * registryd/ucs2keysym.c: New file.
1494
1495         * registryd/deviceeventcontroller.c:
1496         (dec_keysym_for_unichar): Remove old partial implementation and
1497         replace with call to ucs2keysym(), which is much more complete.
1498         Thanks to Marcus G. Kuhn who put the original keysym2ucs.c into
1499         the public domain.
1500
1501         Fixes bug #128824.
1502
1503 2003-12-05  Bill Haneman <billh@gnome.org>
1504
1505         * configure.in: Version 1.3.9.
1506
1507         * docs/reference/cspi/tmpl/spi_registry.sgml:
1508         Added reference to libspi/keymasks.h to the
1509         description of Registry queries: AccessibleKeyMaskType.
1510         Fixes bug #118103.
1511
1512 2003-12-04  Bill Haneman <billh@gnome.org>
1513
1514         Fix for bug #121974.
1515         
1516         * idl/Accessibility_Application.idl:
1517         (Accessibility::LOCALE_TYPE): New enum, corresponds to
1518         setlocale's LC_TYPEs.
1519         (Accessibility::Application::getLocale): New method.
1520         Allows clients to query the locale, by type, of an app.
1521         
1522         * cspi/spi.h:
1523         * cspi/spi_application.c:
1524         (AccessibleApplication_getLocale): New method, wraps IDL above.
1525
1526         * libspi/application.c:
1527         (spi_application_class_init): Init epv entry for getLocale.
1528         (impl_accessibility_application_get_locale): Impl for above.
1529
1530         * test/test-simple.c:
1531         (test_application): Added assertion for getLocale, i.e.
1532         that the string from AccessibleApplication_getLocale (app, type) 
1533         is the same as that from setlocale (type, NULL);
1534
1535 2003-12-03  Padraig O'Briain <padraig.obriain@sun.com>
1536
1537         *registryd/deviceeventcontroller.c: Add an idle handler which polls
1538         the keyboard on a timeout intil the key state goes from pressed to
1539         released. Fixes bug #111429.
1540
1541 2003-12-03  Padraig O'Briain <padraig.obriain@sun.com>
1542
1543         * atk-bridge/bridge.c: (atk_bridge_init): Create accessible application 
1544         root object so that it is present when a context menu in an 
1545         out-of-process applet is popped up.
1546         (spi_atk_bridge_do_registration): Create acceessible application root
1547         object only if it does not exist.
1548
1549         This fixes bug #125834.
1550
1551 2003-12-01  Bill Haneman <billh@gnome.org>
1552
1553         Fix for bug #114926.  Thanks to Michael Meeks for some of this patch.
1554
1555         * cspi/spi.h:
1556         Added enum for AccessibleStreamableContentSeekType.
1557         (AccessibleStreamableContent_freeContentTypeList): New.
1558         
1559         * cspi/spi_streamablecontent.c:
1560         (accessible_bonobo_stream_client_seek): New private method.
1561         (AccessibleStreamableContent_seek): Implemented this method,
1562         using Bonobo_Stream_seek.
1563         (AccessibleStreamableContent_freeContentTypeList): New method
1564         for freeing the return value from 
1565         AccessibleStreamableContent_getContentTypes.
1566         (stream_cache_item_free): Replaces stream_release; stop leaks.
1567         (stream_release): removed.
1568         (AccessibleStreamableContent_read): Use properly init'd CORBA_evs, 
1569         free the memory properly.
1570
1571 2003-12-02  Padraig O'Briain <padraig.obriain@sun.com>
1572
1573         Fix for bug #116009.
1574
1575         * cspi/spi-roletypes.h: Add SPI_ROLE_EDITBAR.
1576
1577         * cspi/spi_accessible.c (cspi_init_role_table): Add SPI_ROLE_EDITBAR.
1578
1579         * docs/reference/cspi/tmpl/spi-accessible.sgml: Add SPI_ROLE_EDITBAR
1580
1581         * idl/Accessibility_Role.idl: Add ROLE_EDITBAR.
1582
1583 2003-12-01  Bill Haneman <billh@gnome.org>
1584
1585         Fix for bug/rfe #127463.
1586         
1587         * idl/Accessibility_Accessible.idl:
1588         (getLocalizedRoleName): New.
1589         (unimplemented4): Removed (replaced by above).
1590
1591         * libspi/accessible.c:
1592         (impl_accessibility_accessible_get_local_role_name): New.
1593         (spi_accessible_class_init): Add getLocalizedRoleName entry to
1594         epv.
1595         
1596         * cspi/spi.h:
1597         (Accessible_getLocalizedRoleName): New.
1598
1599         * cspi/spi_accessible.c:
1600         (Accessible_getLocalizedRoleName): New.
1601         
1602 2003-12-01  Bill Haneman <billh@gnome.org>
1603         
1604         Fix for bug #118581.
1605         * idl/Accessibility_Text.idl:
1606         (getDefaultAttributes): New.
1607         (unimplemented4): Removed (replaced by above method).
1608
1609         * libspi/text.c:
1610         (impl_getDefaultAttributes): New method.
1611         (spi_text_class_init):
1612         initialize the get_default_attributes slot in the epv.
1613
1614         * cspi/spi.h:
1615         (AccessibleText_getDefaultAttributes): New prototype.
1616
1617         * cspi/spi_text.c:
1618         (AccessibleText_getDefaultAttributes): New method.
1619
1620 2003-11-06  Padraig O'Briain <padraig.obriain@sun.com>
1621
1622         * cspi/spi_accessible.c (cspi_init_relation_type_table): Do not
1623         write beyond the end of the table. Fixes bug #120473.
1624
1625 2003-09-30  Christian Rose  <menthos@menthos.com>
1626
1627         * configure.in: Added "eu" to ALL_LINGUAS.
1628
1629 2003-09-28  Kjartan Maraas  <kmaraas@gnome.org>
1630
1631         * configure.in: ALL_LINGUAS: Added no.
1632
1633 2003-09-28  Gediminas Paulauskas  <menesis@delfi.lt>
1634
1635     * configure.in: Added lt to ALL_LINGUAS.
1636
1637 2003-09-25  Padraig O'Briain <padraig.obriain@sun.com>
1638
1639         * atk-bridge/bridge.c:
1640         (atk_bridge_init): Register event listeners always even for 
1641         out-of-process applet.
1642         (spi_atk_bridge_toplevel_added): Remove call to 
1643         spi_atk_bridge_event_type_consts as it is now called in atk_bridge_init
1644         (spi_atk_bridge_toplevelk_removed): Remove call to 
1645         spi_atk_deregister_event_listenersa as the listeners are now always
1646         registered
1647         (spi_atk_bridge_register_application): Remove call to
1648         spi_atk_register_event_listeners as it is not done in atk_bridge_init
1649
1650         This fixes bug #120991.
1651
1652         * libspi/table.c (impl_getColumnDescription): Correct typo,
1653         pointed out by Bolian.Yin@sun.com.
1654
1655 2003-09-21  Ãƒ\85smund Skjæveland  <aasmunds@fys.uio.no>
1656
1657         * configure.in: Added nn to ALL_LINGUAS (which is commented out).
1658
1659 2003-09-08  Bill Haneman <billh@gnome.org>
1660
1661         * configure.in: Revved to 1.3.7.
1662
1663         This is the GNOME 2.4.0 release of at-spi.
1664
1665         * docs/reference/cspi/Makefile.am:
1666         Removed spurious inclusion of 'index.sgml' in the
1667         html directory; this was breaking make distcheck and
1668         also some other build environments.
1669
1670 2003-09-05  Padraig O'Briain <padraig.obriain@sun.com>
1671
1672         * registryd/registry.[ch}:
1673         Add queue_handler_id and focus_object to SpiRegistry data structure.
1674         (registry_flush_event_queue): If event being discarded is 
1675         "state-change:focused" store object as focus_object.
1676         (registry_start_queue): Remove queue handler and focus object
1677         if present.
1678         (registry_discard_event): New function which discards a focus event
1679         if we had stored focus object in the registry.
1680         (registry_queue_event): Add new check that is_queueing is set as this
1681         function is reentrant.
1682         (registry_filer_event): Add call to registry_discard_event.
1683         
1684         This resolves issues raised in bug #108664.
1685         
1686 2003-09-05  Taneem Ahmed  <taneem@bengalinux.org>
1687
1688         * configure.in: Added "bn" to ALL_LINGUAS.
1689
1690 2003-09-04  Bill Haneman <billh@gnome.org>
1691
1692         * cspi/spi_event.c: Documentation improvements for
1693         (SPI_registerAccessibleKeylistener).
1694
1695         * docs/reference/tmpl/spi_registry.sgml:
1696         Documentation improvements for SpiAccessibleKeylistenerCB.
1697
1698 2003-09-02  Mugurel Tudor  <mugurelu@go.ro>
1699
1700         * configure.in: Added "ro" to ALL_LINGUAS.
1701
1702
1703 2003-09-01  Padraig O'Briain <padraig.obriain@sun.com>
1704
1705         * cspi/spi_main.c (cspi_object_return): Ensure that reference count is
1706         not decremented to zero. Fixes bug #120725.
1707
1708 2003-08-30  KAMAGASAKO Masatoshi  <emerald@gnome.gr.jp>
1709
1710         * configure.in: Added "ja" to ALL_LINGUAS.
1711
1712 2003-08-22  Samúel Jón Gunnarsson  <sammi@techattack.nu>
1713
1714         * configure.in: Added "is" to ALL_LINGUAS.
1715         
1716 2003-08-22  Christian Rose  <menthos@menthos.com>
1717
1718         * configure.in: Added "nl" to ALL_LINGUAS.
1719
1720 2003-08-19  Padraig O'Briain <padraig.obriain@sun.com>
1721
1722         * cspi/spi-private.h: Add declaration for _cspi_exceptoin_throw
1723         * cspi/spi_accessible.c (cspi_init_relation_type_table): Add call
1724         to return a value.
1725         * cspi/spi_event.c: (AccessibleEvent_unref); Add casts to gfree
1726         arguments.
1727         * cspi/spi_main.c (SPI_Exception_getSourceType); Return the correct
1728         type for unspecified exception.
1729         * cspi_streamablecontect): Add include of string.h for memcpy.
1730         (stream_release): Correct call to bonobo_object_release_unref
1731         (stream_cache_item_free): Correct call to bonobo_object_release_unref
1732         * cspi/bonobo/spi-bonobo.c: (cspi_check_event): Add cast to second
1733         argument of _cspi_expection_throw.
1734         * libspi/hyperlink.c: Add include of libspi/action.h:
1735         (spi_hyperlink_new): Cast argument to spi_action_interface_new.
1736         * libspi/streamablecontent.c: add include of libspi/component.h.
1737         * regisrtyd/deviceeventcontroller.c:
1738         (spi_dec_translate_mask): Removed unused variable priv.
1739         (dec_synth_keysym): Initialize lock_mods to avoid compilker warning/
1740         * registryd/registry.c:
1741         (registry_filter_event): Remove unused variable queue_is-empty.
1742         (impl_registry_notify_event): Use correct modifier in fprintf call.
1743
1744         This fixes compiler warnings reported in bug #120220.
1745         
1746 2003-08-18  Padraig O'Briain <padraig.obriain@sun.com>
1747
1748         * registryd/registryd.c: Remove this file.
1749
1750 2003-08-17  Sanlig Badral  <badral@openmn.org>
1751
1752         * configure.in: Added mn to ALL_LINGUAS.
1753
1754 2003-08-16  Tõivo Leedjärv  <toivo@linux.ee>
1755
1756         * configure.in: Added et to ALL_LINGUAS.
1757
1758 2003-08-13  Padraig O'Briain <padraig.obriain@sun.com>
1759
1760         * test/event-listener-test.c: Change active-descendant to 
1761         active-descendant-changed.
1762
1763 2003-08-10  Sami Pesonen  <sampeson@iki.fi>
1764
1765         * configure.in: Added "fi" in ALL_LINGUAS.
1766
1767 2003-08-08  Guntupalli Karunakar  <karunakar@freedomink.org>
1768
1769         * configure.in: Added "hi" in ALL_LINGUAS.
1770
1771 2003-08-08  Padraig O'Briain <padraig.obriain@sun.com>
1772
1773         * configure.in: Revved to 1.3.6.
1774
1775         * NEWS: updated.
1776         
1777 2003-08-07  Padraig O'Briain <padraig.obriain@sun.com>
1778
1779         * registryd/deviceeventcontroller.c
1780         (spi_device_event_controller_object_finalize): Fix typo in previous 
1781         commit.
1782
1783 2003-08-07  Marc Mulcahy  <marc.mulcahy@sun.com>
1784
1785         * registryd/deviceeventcontroller.c
1786         (spi_device_event_controller_object_finalize): Fix build on
1787         systems without XEvIE.
1788         
1789 2003-08-06  Brian Cameron <Brian.Cameron@sun.com>
1790
1791         * acconfig.h, configure.in, registryd/Makefile.am,
1792           registryd/devicecontoller.[ch]: Add XEViE support.
1793
1794 2003-08-06  Wang Jian  <lark@linux.net.cn>
1795
1796         * configure.in: Added "zh_CN" to ALL_LINGUAS.
1797
1798 2003-08-06  Metin Amiroff<metin@karegen.com>
1799
1800         * configure.in: Added "az" (Azerbaijani) to ALL_LINGUAS
1801
1802 2003-08-06  Padraig O'Briain <padraig.obriain@sun.com>
1803
1804         * idl/Accessibility_Registry.idl: Put MODIFIER_SHIFTLOCk and
1805         MODIFIER_ALT in correct place. 
1806
1807         This fixes part of bug #118114.
1808
1809 2003-07-30  Alessio Frusciante  <algol@firenze.linux.it>
1810
1811         * configure.in: Added "it" (Italian) to ALL_LINGUAS.
1812
1813 2003-07-28  Changwoo Ryu  <cwryu@debian.org>
1814
1815         * configure.in: Added "ko" to ALL_LINGUAS.
1816
1817 2003-07-28  Ole Laursen  <olau@hardworking.dk>
1818
1819         * configure.in: Added "da" to the commented out ALL_LINGUAS.
1820
1821 2003-07-27  Laurent Dhima  <laurenti@alblinux.net>
1822
1823         * configure.in: Added "sq" to ALL_LINGUAS.
1824
1825 2003-07-27  Hasbullah Bin Pit  <sebol@ikhlas.com>
1826                                                                                 
1827         * configure.in: Added 'ms' (Malay) in ALL_LINGUAS.
1828
1829 2003-07-24  Pablo Saratxaga  <pablo@mandrakesoft.com>
1830
1831         * configure.in: updated ALL_LINGUAS list
1832
1833 2003-07-24  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
1834
1835         * configure.in: Added Belarusian to ALL_LINGUAS.
1836
1837 2003-07-23  Padraig O'Briain <padraig.obriain@sun.com>
1838
1839         * cspi/spi_event.c (AccessibleEvent_unref): Call CORBA_free for
1840         event->data.
1841         * cspi/bonobo/cspi-bonobo-listener.c (cspi_event): Call 
1842         CORBA_any__alloc to allocate CORBA_Any in InternalEvent.
1843
1844         This fixes bug #116949.
1845
1846 2003-07-22  Padraig O'Briain <padraig.obriain@sun.com>
1847
1848         * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
1849         Correct CSPI to SPI in function documentation.
1850
1851         This fixes bug #118054.
1852
1853 2003-07-16  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
1854
1855         * configure.in: Added Russian to ALL_LINGUAS.
1856
1857 2003-07-16  Duarte Loreto <happyguy_pt@hotmail.com>
1858
1859         * configure.in: Added Portuguese (pt) to ALL_LINGUAS.
1860
1861 2003-07-14  Danilo Ã… Segan  <dsegan@gmx.net>
1862
1863         * configure.in: Added "sr" and "sr@Latn" (Serbian) to ALL_LINGUAS.
1864
1865 2003-07-10  Joel Brich <joel.brich@laposte.net>
1866
1867         * configure.in: Added "eo" (Esperanto) to ALL_LINGUAS.
1868
1869 2003-07-07  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>
1870
1871         * configure.in (ALL_LINGUAS): Added "es" (Spanish).
1872
1873 2003-07-07  Padraig O'Briain <padraig.obriain@sun.com>
1874
1875         * cspi/spi_event.c (AccessibleEvent_unref): Update code to free
1876         resources allocated for AccessibleEvent. See cspi_event().
1877
1878         * cspi/spi_streamablecontent.c (cspi_streams_close_all): Set
1879         static variable streams to NULL.
1880
1881         * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
1882         Update so that AcessibleEvent_ref will work.
1883
1884         This fixes bug #116624.
1885
1886 2003-07-06  Jordi Mallach  <jordi@sindominio.net>
1887
1888         * configure.in (ALL_LINGUAS): Added "ca" (Catalan).
1889
1890 2003-07-06  Christophe Merlet  <redfox@redfoxcenter.org>
1891
1892         * configure.in: Added "fr" (French) to ALL_LINGUAS.
1893
1894 2003-07-02  Christian Neumair  <chris@gnome-de.org>
1895
1896         * configure.in: Added "de" (German) to ALL_LINGUAS.
1897
1898 2003-07-01  Dafydd Harries  <daf@parnassus.ath.cx>
1899
1900         * configure.in: Added "cy" (Welsh) to ALL_LINGUAS.
1901
1902 2003-07-01  Miloslav Trmac  <mitr@volny.cz>
1903
1904         * configure.in: Addded "cs" to ALL_LINGUAS. Why is it commented out?
1905
1906 2003-07-01  Artur Flinta  <aflinta@cvs.gnome.org>
1907
1908         * configure.in: Added "pl" to ALL_LINGUAS.
1909
1910 2003-07-01  Gil "Dolfin" Osher <dolfin@rpg.org.il>
1911
1912         * configure.in: Added "he" (Hebrew) to ALL_LINGUAS.
1913
1914 2003-06-30  Bill Haneman <bill.haneman@sun.com>
1915         
1916         * libspi/action.c:
1917         (get_action_from_servant): 
1918         Removed assertion that action is implemented on an AtkObject.
1919
1920         * libspi/hyperlink.c:
1921         (spi_hyperlink_new):
1922         Aggregate AccessibleAction interface on the hyperlink object if
1923         the object implements AtkAction.  (This convention is used in
1924         gtkhtml2.)
1925         
1926 2003-06-30  Bill Haneman <bill.haneman@sun.com>
1927
1928         * configure.in: Revved to 1.3.5.
1929         
1930         * registryd/Accessibility_Registry.server.in.in:
1931         Marked up appropriate strings for translation.
1932         
1933         * atk-bridge/bridge.c: Marked a couple of
1934         user-visible warnings for translation.  Questionable
1935         whether they are really useful, but possibly so.
1936
1937         
1938 2003-06-28  Christian Rose  <menthos@menthos.com>
1939
1940         * configure.in: Added "sv" to ALL_LINGUAS.
1941
1942 2003-06-26  Bill Haneman <bill.haneman@sun.com>
1943
1944         * registryd/registry.c: 
1945         (spi_registry_object_finalize): Unref the deviceeventcontroller.
1946         (registry_defer_on_event): Defer focus: events, this is an
1947         improvement to the patch for bug #108664.
1948
1949         * TODO: Update with 2.4/"Dev Complete" items.
1950
1951 2003-06-26  Padraig O'Briain <padraig.obriain@sun.com>
1952
1953         * atk-bridge/bridge.c:
1954         (spi_atk_bridge_init_event_type_consts): Ensure that this function only
1955         looks up signals once.
1956         (atk_bridge_init): Call spi_atk_bridge_init_event_type_consts only
1957         if doing registration.
1958         (spi_atk_bridge_toplevel_added): Call spi_bridge_init_event_type_consts
1959         when doing registration.
1960         
1961         This fixes bug #115014.
1962
1963 2003-06-25  Padraig O'Briain <padraig.obriain@sun.com>
1964
1965         * atk-bridge/bridge.c:
1966         (atk_bridge_init): Add signal handler for children-changed:remove on
1967         root when in a BonoboComponent.
1968         (spi_atk_bridge_toplevel_added): Call spi_atk_bridge_do_registration
1969         for first toplevel only other incrememt variable toplevels.
1970         (spi_atk_bridge_toplevel_removed): For last toplevel deregister 
1971         application and remove listeners.
1972         (spi_atk_bridge_get-registry): Change NULL to CORBA_OBJECT_NIL for
1973         consistency.
1974         (spi_atk_deregister_event_listeners): New function which removes
1975         listeners.
1976         (reinit_register_vars): New fuction which reinitializes variables.
1977
1978         This fixes bug #111578.
1979
1980 2003-06-13  Bill Haneman <bill.haneman@sun.com>
1981
1982         * configure.in: version 1.3.4.
1983
1984         * cspi/spi_accessible.c:
1985         Changed test of obj==NULL to obj==CORBA_OBJECT_NIL.
1986
1987
1988 2003-06-13  Michael Meeks  <michael@ximian.com>
1989
1990         * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
1991
1992         * cspi/spi_main.c (cspi_peek_ev): impl.
1993
1994 2003-06-11  Padraig O'Briain <padraig.obriain@sun.com>
1995
1996         * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
1997
1998         * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
1999
2000         * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role 
2001         SPI_ROLE_AUTOCOMPLETE
2002
2003         * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
2004
2005         * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
2006         for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
2007
2008 2003-06-11  Bill Haneman <bill.haneman@sun.com>
2009
2010         * libspi/streamablecontent.h:
2011         * libspi/streamablecontent.c:
2012         New files, provide implementation/wrappers for
2013         Accessibility_StreamableContent.
2014
2015         * cspi/spi_streamablecontent.c:
2016         Connected the C wrappers to the libspi C bindings.
2017         (AccessibleStreamableContent_close): New method.
2018
2019         * cspi/spi.h:
2020         (AccessibleStreamableContent_close): New method, needed
2021         since we have an "open, [seek], read, close" model in cspi.
2022         
2023 2003-06-11  Bill Haneman <bill.haneman@sun.com>
2024
2025         Fix for #108664; Padraig's revision of my original patch.
2026         
2027         * registryd/registry.h:
2028         Added event queue list, is_queuing, and exit_notify_timeout
2029         to the registry struct.
2030         
2031         * registryd/registry.c:
2032         (registry_init): Initialize new struct from registry.h.
2033         (impl_registry_notify_event):
2034         Filter events before notifying, in case some need to be
2035         deferred, etc.
2036         (registry_filter_event): New,
2037         we defer certain incoming events (for instance 
2038         window:deactivate) because we may wish to hide
2039         or reject them based on pending events.  This is
2040         mostly a workaround for bug #108664.
2041         (registry_queue_event, registry_start_queue): New.
2042         (registry_defer_on_event): Test event to see if it
2043         initiates queuing.
2044         (registry_reset_on_event): Returns TRUE if the
2045         event should cause a queue reset.
2046         (registry_discard_on_event): Returns TRUE if the event
2047         should cause the previous queue contents to be discarded.
2048         (registry_timeout_flush_queue): Flushes the pending event
2049         queue if no reset/discard-triggering events have come in 
2050         within the timeout period.
2051         (registry_emit_event): New.
2052         (registry_clone_notify_context): New, used when queueing the 
2053         event notify contexts.
2054
2055 2003-06-10  Bill Haneman <bill.haneman@sun.com>
2056
2057         * configure.in: Version revved to 1.3.2, lt 0.9.2
2058         Incremented ATK required version to 1.3.4.
2059
2060         * cspi/spi_registry.c:
2061         (SPI_generateKeyEvent):
2062         We now pass the keystring along if it's non-null.
2063         
2064         * registryd/deviceeventcontroller.c:
2065         (keysym_mod_mask): New method, returns modifier mask 
2066         required to generate a keysym from a given keycode.
2067         (dec_synth_keysym): New method.
2068         (dec_synth_keystring): New method.
2069         (dec_get_modifier_state): New method.
2070         (dec_lock_modifiers): New
2071         (dec_unlock_modifiers): New.
2072         (dec_keysym_for_unichar): New, rather brute-force
2073         conversion from UCS-4 to X KeySyms.  Only works for
2074         Latin at the moment, with partial implementations for
2075         Greek, Hebrew, and (incomplete) Katakana.
2076         (impl_generate_keyboard_event): Now implement 
2077         "KEYSTRING" synthesis and implement "KEYSYM"
2078         synthesis properly.
2079         (keycode_from_keysym): Improved, passes a returned
2080         modmask value now if the corresponding param is non-NULL.
2081         
2082         Fixes bugs #92143  and #109776.
2083
2084         * test/Makefile.am:
2085         * test/keysynth-test.c:
2086         New test program for key synthesis, to confirm fixes for
2087         above bugs.
2088
2089
2090 2003-06-10  Padraig O'Briain <padraig.obriain@sun.com>
2091
2092         * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
2093
2094         * cspi/spi_accessible.c (cspi_init_relation_type_table):
2095         Add line for RELATION_POPUP_FOR
2096
2097         * docs/reference/cspi/tmpl/spi_relation.sgml: 
2098         Add relation SPI_RELATION_POPUP_FOR
2099
2100         * docs/reference/cspi/tmpl/spi_stateset.sgml: 
2101         Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE 
2102
2103         * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
2104
2105         * libspi/relation.c (spi_init_relation_type_table): 
2106         Add line for RELATION_POPUP_FOR
2107
2108 2003-06-10  Padraig O'Briain <padraig.obriain@sun.com>
2109
2110         * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if 
2111         there are still windows which have not been deleted and emit 
2112         window:deactivate, if necessary and window:destroy events.
2113         This fixes bug #114370. The change on June 5th was not correct.
2114
2115 2003-06-09  Bill Haneman <bill.haneman@sun.com>
2116
2117         * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
2118
2119         * cspi/spi.h: 
2120         (SPI_dupString): Allow dup-ing of a string such that it's safe to
2121         SPI_freeString it.
2122         New methods for client exception handling and interception.
2123         (SPI_exceptionHandlerPush): New - push a handler onto the stack.
2124         (SPI_exceptionHandlerPop): You guessed it... 
2125         (SPI_getSourceType): Return the type of object which offended.
2126         (SPI_getExceptionCode): Return an enum code telling, possibly, 
2127         what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
2128         (SPIAccessibleException_getSource): get the source object for
2129         exceptions that come from Accessibles, if SPIExceptionSourceType is
2130         SPI_EXCEPTION_SOURCE_ACCESSIBLE.
2131         (SPIException_getDescription): New, returns a string description of
2132         the problem.  [Not yet a stable ABI, strings are not frozen]
2133
2134         * cspi/spi-private.h:
2135         Added implementation details of opaque SPIException
2136         structure.
2137         
2138         * cspi/spi_main.c:
2139         Implementations of above.  Also
2140         (_cspi_exception_throw): new private method that 
2141         dispatches exceptions to handlers, called from cspi-bonobo.c
2142
2143         * cspi/bonobo/cspi-bonobo.c:
2144         (cspi_check_ev): call _cspi_exception_throw.
2145         Don't print a warning message if the exception has been 
2146         handled by _cspi_exception_throw.
2147         
2148 2003-06-05  Padraig O'Briain <padraig.obriain@sun.com>
2149
2150         * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if 
2151         there are still windows which have not been deleted and emit 
2152         window:deactivate, if necessary and window:destroy events.
2153         This fixes bug #114370.
2154
2155 2003-06-03  Bill Haneman <bill.haneman@sun.com>
2156
2157         * cspi/spi_main.c:
2158         (cspi_accessible_is_a): Make non-fatal 
2159         if the object reference is dead.
2160
2161 Mon Jun  2 15:35:29 2003  Jonathan Blandford  <jrb@redhat.com>
2162
2163         * cspi/spi_main.c: #include <stdio.h>
2164         * test/simple-at.c: ditto
2165         * test/event-listener-test.c: ditto
2166         * test/screen-review-test.c: ditto
2167
2168 2003-05-30  Michael Meeks  <michael@ximian.com>
2169
2170         * test/test-simple.c (main): use CORBA_ORB_perform_work
2171         instead of an unnecessary linc_ call.
2172
2173 2003-05-20  Padraig O'Briain <padraig.obriain@sun.com>
2174
2175         * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
2176         Add SPI_STATE_INDETERMINATE.
2177
2178         * cspi/spi_accessible.c (spi_state_to_corba): Add support for
2179         INDETERMINATE.
2180
2181         * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
2182
2183         * libspi/stateset.c (init_state_type_tables): Add support for
2184         INDETERMINATE.
2185
2186 2003-05-19  Padraig O'Briain <padraig.obriain@sun.com>
2187
2188         * configure: Update versions of atk and gail required.
2189         This fixes bug #113268.
2190         
2191 2003-05-02  Bill Haneman  <bill.haneman@sun.com>
2192
2193         * configure.in: Revved micro version to 1.3.1 (because of build fix).
2194
2195 2003-05-02  Frederic Crozat  <fcrozat@mandrakesoft.com>
2196
2197         * libspi/Makefile.am:
2198         Ensure headers are generated before being used by c sources.
2199
2200 2003-05-01  Bill Haneman <bill.haneman@sun.com>
2201
2202         * configure.in:
2203         Simplified lt versioning rules.
2204         Incremented version to 1.3.0, to indicate that we're on the
2205         unstable branch now.  
2206
2207 2003-04-29  Padraig O'Briain <padraig.obriain@sun.com>
2208
2209         * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
2210         Add MKDB_OPTIONS=--outtput-format=xml
2211
2212         * docs/reference/cspi/at-spi-cspi-docs.sgml
2213         docs/reference/idl/at-spi-idl-docs.sgml:
2214         Convert to Docbook XML.
2215
2216         This fixes bug #111793.
2217
2218 2003-04-25  Padraig O'Briain <padraig.obriain@sun.com>
2219
2220         * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
2221         AcccessibleKeyEventType, AccessibleKeyMaskType.
2222
2223         * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
2224
2225         * cspi/state-types.h: Add documentation for AccessibleState.
2226
2227         * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
2228         AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
2229         AccessibleKeySynthType, AccessibleKeyListenerSyncType, 
2230         AccessibleComponentLayer.
2231
2232         * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs 
2233         in documentation.
2234
2235         * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
2236
2237         * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of 
2238         Accessible.  Add description of AccessibleEvent, 
2239         AccessibleEventListenerCB.
2240
2241         * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra 
2242         documentation.
2243
2244         * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra 
2245         documentation. Add description of AccessibleKeystrokeListenerCB,
2246         AccessibleKeyEventMask, AccessibleModifierMaskType, 
2247         AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
2248         AccessibleDeviceEventMask, AccessibleDeviceListenerCB. 
2249
2250         * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
2251         AccessibleStateSet.
2252
2253         * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra 
2254         documentation.
2255
2256         This fixes bug #104730.
2257
2258 2003-04-24  Padraig O'Briain <padraig.obriain@sun.com>
2259
2260         * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
2261         Set is_text field of Accessibility_DeviceEvent data structure.
2262
2263         * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
2264         is-text field of AccessibleDeviceEvent data structure.
2265
2266         This addresses part of bug #108666.
2267
2268         * registryd/devcieeventcontroller.c: Unset debug option.
2269
2270 2003-04-14  Padraig O'Briain <padraig.obriain@sun.com>
2271
2272         * cspi/accessible.c:
2273         (cpi_initial_relation_type_table): New function which initializes 
2274         mapping between Accessibility_RelationType and AccessibleRelationType.
2275         (cspi_relation_type_from_spi_relation_type): New function which
2276         translates an Accessibility_RelationType into an AccessibleRelationType.
2277         (AccessibleRelation_getRelationType): Use 
2278         cpi_relation_type_get_spi_relation_type to return correct value.
2279         (spi_state_to_corba): Return correct type for default case.
2280
2281         * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
2282         Use Accessibility_EventType instead of Accessibility_KeyEventType.
2283
2284         * cspi/cspi-bonobo-listener.c:
2285         Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
2286         warnings.
2287
2288         * libspi/accessible.c, libspi/action.c, libspi/application.c,
2289         libspi/base.c, libspi/component.c, libspi.devicelistener.c,
2290         libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
2291         libspi/image.c, libspi/listener.c, libspi/selection.c, 
2292         libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c, 
2293         registryd/desktop.c, registryd/registry.c:
2294         Remove semicolon after BONOBO_TYPE_FUNC_FULL.
2295
2296         * libspi/eventlistener.c
2297         Remove semicolon after BONOBO_TYPE_FUNC.
2298
2299         * libspi/relation.c:
2300         Remove semicolon after BONOBO_TYPE_FUNC_FULL.
2301         (spi_init_relation_type_table): Initialize using correct type.
2302
2303         * registryd/desktop.c:
2304         Remove semicolon after BONOBO_TYPE_FUNC_FULL.
2305         (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead 
2306         of Accessibility_KeyEventType.
2307
2308         * test/key-listener-test.c (report_tab_key_event): Use fprintf
2309         instead of g_print.
2310
2311         * tests/simple-at.c, tests/screen-review-test.c:
2312         Add include for <strings.h>.
2313
2314         * tests.stress-test.c:
2315         Add includes for <unistd.h> and <bonobo/bonobo-main.h>
2316
2317         These changes fix compiler warnings when using FORTE compiler on
2318         Solaris; fixes bug #107479.
2319
2320         
2321 2003-04-10  Bill Haneman <bill.haneman@sun.com>
2322
2323
2324         * configure.in: revved to 1.1.10
2325         
2326         * libspi/keymasks.h:
2327         (SPI_KEYMASK_NUMLOCK): Added.
2328
2329         * registryd/deviceeventcontroller.c:
2330         (spi_key_event_matches_listener): AND with a smaller
2331         bitmask (as we should).  
2332         (spi_dec_translate_mask): 
2333         New method, sets the virtual NumLock modifier bit
2334         if numlock is on.  Eventually it can handle other virtual
2335         modifier bits if needed, or other marshalling from
2336         at-spi modifier masks to platform (X) masks.
2337         (spi_dec_key_listener_new):
2338         Call spi_dec_translate_mask to set up virtual mod bits
2339         in the 'mask' field when creating a new listener struct.
2340         (spi_dec_emit_modifier_event):
2341         Set the virtual (i.e. NumLock) bits before emitting event.
2342         (spi_controller_register_with_devices):
2343         Query for the NumLock modifier 'physical' bit if Xkb is
2344         present, for use in above methods.
2345
2346         Fix for 107261.
2347         
2348 2003-04-10  Bill Haneman <bill.haneman@sun.com>
2349         
2350         * registryd/deviceeventcontroller.c:
2351         (spi_keystroke_from_x_key_event):
2352         Instead of checking to see if the keysym is
2353         printable, check the string from XLookupString
2354         if available, get the first unicode character from it,
2355         and call g_unichar_isprint to determine whether the
2356         is_text flag should be TRUE or FALSE.
2357         
2358         Fix for bug 110419.
2359
2360 2003-04-02  Padraig O'Briain <padraig.obriain@sun.com>
2361
2362         * atk-bridge/bridge.c: Add support for extended events
2363         * cspi/spi_event.c: Add documentation and implementation for
2364         extended events.
2365         * tests/event-listener-test.c: Add tests for extended events.
2366
2367         This fixes bugs #100424 and #100426.
2368  
2369 2003-04-02  Padraig O'Briain <padraig.obriain@sun.com>
2370
2371         * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
2372         of LT_CURRENT. This fixes bug #89350.
2373
2374 2003-04-01  Padraig O'Briain <padraig.obriain@sun.com>
2375
2376         * atk-bridge/bridge.c (spi_bridge_signal_listener):  Add check for
2377         number of signal parameter values before accessing them. This fixes
2378         bug #109626.
2379
2380 2003-04-01  Bill Haneman <bill.haneman@sun.com>
2381
2382         * configure.in: Fixed duplicate inclusion of -lspi.
2383         * branched for gnome-2-2/HEAD.  
2384         [created tag "gnome-2-2"]
2385
2386 2003-03-07  Bill Haneman <bill.haneman@sun.com>
2387
2388         * configure.in: 1.1.9 release.
2389         * NEWS: updated.
2390         
2391 2003-03-07  Bill Haneman <bill.haneman@sun.com>
2392
2393         [needed by GOK, to fix bugs 107985 and 107988]
2394         * registryd/deviceeventcontroller.c:
2395         (spi_dec_clear_unlatch_pending):
2396         New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
2397         (spi_dec_set_unlatch_pending):Revised DEBUG comment.
2398         (spi_dec_init_mouse_listener):Emit warning if mouse button
2399         passive grab fails.
2400         (spi_device_event_controller_forward_mouse_event):
2401         Removed unnecessary parens from a conditional.
2402         (global_filter_fn):Added TODO comment.
2403         (impl_generate_keyboard_event):
2404         Cancel a pending relatch if a 'delatching' key was 
2405         synthesized.
2406         
2407 2003-03-07  Padraig O'Briain <padraig.obriain@sun.com>
2408
2409         * atk-bridge/bridge.c:
2410         Change atk_signal_child_changed to atk_signal_children_changed. 
2411         Reorganize code in spi_atk_bridge_signal_listener().
2412
2413         * test/event-listener-test.c:
2414         Add children_changed_listener and report_children_changed_event()
2415         to test AccessibleChildEvent_getChildAccessible.
2416
2417 2003-03-05  Padraig O'Briain <padraig.obriain@sun.com>
2418
2419         * cspi/spi_event.c (cspi_internal_event_get_text): Change
2420         g_strdup to CORBA_String_dup (bug #105291)
2421
2422         * test/event-listener-test.c (report_text_event): Add call to
2423         SPI_freeString.
2424
2425 2003-02-28  Bill Haneman <bill.haneman@sun.com>
2426
2427         * registryd/deviceeventcontroller.c:
2428         (spi_keystroke_from_x_key_event): 
2429         Fix string and keysym return codes to match modifier state. 
2430         [bug #107256]
2431
2432 2003-02-28  Bill Haneman <bill.haneman@sun.com>
2433
2434         * registryd/deviceeventcontroller.c:
2435         (spi_keystroke_from_x_key_event): 
2436         Fix segv due to improper use of isprint(c). [bug #107254]
2437
2438 2003-02-24  Bill Haneman <bill.haneman@sun.com>
2439
2440         * cspi/spi_text.c:
2441         (get_accessible_text_boundary_type):
2442         Move default return value to (new) default case in switch.
2443         (get_accessible_text_clip_type):
2444         Move default return value to (new) default case in switch.
2445         
2446         * libspi/application.c:
2447         (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
2448         Remove unused methods.
2449         (impl_accessibility_application_register_object_event_listener):
2450         Remove unused methods.
2451
2452         * libspi/value.c:
2453         Added #include of <math.h>.
2454
2455         * registryd/deviceeventcontroller.c:
2456         (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since 
2457         we don't currently use this method.
2458         (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
2459         have_xkb is TRUE.
2460         (impl_generate_key_event):
2461         Remove unused variables.
2462         (impl_generate_mouse_event):
2463         Initialize button to zero, just in case we get an invalid
2464         input.  Added support for mouse buttons 4 and 5.
2465         (spi_device_event_controller_new):
2466         Removed unused variable declaration for 'private'.
2467         (registry.h):
2468         Added #include of <gdk/gdk.h>
2469
2470 2003-02-14  Padraig O'Briain <padraig.obriain@sun.com>
2471
2472         * configure.in: Update to work when X is not installed in expected 
2473         location. Fixes bug #105836.
2474
2475         * atk-bridge/bridge.c
2476         (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
2477         AtkHypertext
2478         (spi_atk_register_event_listener): Add signal listener for 
2479         link-selected
2480         (spi_atk_bridge_signal_listener): Event event when link-selected
2481         signal is emitted. (bug #104622)
2482
2483         * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
2484         on returned string. (bug #105291)
2485
2486         * test/event-listener-test.c: Add test for link-selected.
2487         
2488 2003-02-14  Padraig O'Briain <padraig.obriain@sun.com>
2489
2490         * atk-bridge/Makefile.am: Correct typo in previous commit.
2491
2492 2003-02-13  Padraig O'Briain <padraig.obriain@sun.com>
2493
2494         * atk-bridge/Makefile.am: Allow for build directory to be different 
2495         from source directory
2496
2497         * registryd/Makefile.am: Allow for build directory to be different
2498         from source directory
2499
2500         Bug #104744.
2501
2502 2003-01-29  Bill Haneman <bill.haneman@sun.com>
2503         
2504         * cspi/Makefile.am:
2505         Fixed dependencies for libcspi so that libspi gets pulled in
2506         properly.  Fixes 104741.
2507
2508         * cspi/spi.h:
2509         * cspi/spi_event.c:
2510         Clean up inline docs a little.
2511
2512 2003-01-27  Padraig O'Briain <padraig.obriain@sun.com>
2513
2514         * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
2515         This is done by implementing AtkComponent for SpiAtkDesktop, which is
2516         the AtkObject within an SpiDesktop.
2517         This addresses bug #101524.
2518
2519         * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
2520         Remove call to gdk_init().
2521
2522         * registryd/registry.c (spi_registry_init): Add call to gdk_init()
2523         so that Display is set when SpiDesktop is created.
2524
2525 2003-01-21  Padraig O'Briain <padraig.obriain@sun.com>
2526
2527         * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
2528         This fixes bug #102830.
2529
2530 2003-01-15  Padraig O'Briain <padraig.obriain@sun.com>
2531
2532         * test/test-simple.c: Update to take account of fact that GailButton 
2533         now implements AtkText.
2534         (create_text_window): Set name on AtkObject for GtkEntry.
2535         (validate_accessible): Check accessible name before calling test_text().
2536
2537         * libspi/Makefile.am: Fix problem with building outside of source
2538         directory. Bug #98120.
2539
2540         * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
2541         typo in documentation comments. Bug #94275.
2542
2543 2003-01-15  Padraig O'Briain <padraig.obriain@sun.com>
2544
2545         * libspi/text.c (impl_getBoundedRanges): Bug fix.
2546
2547 2003-01-10  Padraig O'Briain <padraig.obriain@sun.com>
2548
2549         * libspi/text.c:
2550         Add includes to avoid compiler warnings on Solaris.
2551         (impl_getRangeExtents): Bug fix.
2552
2553 2002-12-17  Bill Haneman <bill.haneman@sun.com>
2554
2555         Fix for 100944, [API addition approved by Gman and murrayc].
2556         
2557         * NEWS: updated.
2558         
2559         * configure.in:
2560         Revved to 1.1.8.
2561
2562         * idl/Accessibility_Text.idl:
2563         (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
2564         (Text::getRangeExtents): New method for efficient 
2565         bounds query of a text range.
2566         (Text::getBoundedRanges): New method for efficient
2567         clipping of text to bounding boxes.
2568         (unImplemented7, unImplemented8): 
2569         Removed these padding methods to preserve bincompat.
2570
2571         * libspi/text.c:
2572         (impl_getRangeExtents): implementation of new IDL.
2573         (impl_getBoundedRanges): implementation of new IDL.
2574         (SpiTextRect): Internal use struct.
2575         (_spi_text_rect_union): internal method, calculates union of two
2576         SpiTextRect bounding rects.
2577         (_spi_text_range_seq_from_gslist): internal method, allows us
2578         to build our sequence efficiently as a gslist then convert it
2579         to a CORBA seq.
2580         (_spi_bounds_contain): internal method, determines whether
2581         a text character is "in" or "out" of a clip rect according to
2582         values of TEXT_CLIP_TYPE.
2583         (spi_text_class_init): Initialize the new methods in the epv.
2584         
2585         * cspi/spi.h:
2586         (AccessibleTextClipType): New enum used by screen review api.
2587         (AccessibleTextRange): New struct used by screen review api.
2588         (AccessibleText_getRangeExtents): 
2589         cspi binding for Accessibility_Text_getRangeExtents.
2590         (AccessibleText_getBoundedRanges):
2591         cspi binding for Accessibility_Text_getBoundedRanges.
2592         (AccessibleTextRange_freeRanges): convenience method.
2593         
2594         * cspi/spi_text.c:
2595         (AccessibleText_getRangeExtents): 
2596         cspi binding for Accessibility_Text_getRangeExtents.
2597         (AccessibleText_getBoundedRanges):
2598         cspi binding for Accessibility_Text_getBoundedRanges.
2599         (AccessibleTextRange_freeRanges): convenience method.
2600         (get_accessible_text_clip_type): internal conversion method.
2601         (get_accessible_text_ranges_from_range_seq): internal conversion method.
2602
2603         * registryd/deviceeventcontroller.c:
2604         (spi_dec_mouse_check):
2605         Improved behavior for mouse:abs events 
2606         [same granularity as mouse:rel events, and no
2607         events when mouse is idle].     
2608         
2609 2002-12-16  Michael Meeks  <michael@ximian.com>
2610
2611         * cspi/spi_accessible.c (spi_state_to_corba): rename.
2612
2613         * libspi/stateset.c (state_spi_to_atk): split out
2614         ( fix several remote array bounds nasties )
2615         (spi_atk_state_set_from_sequence, impl_contains, impl_add),
2616         (impl_remove): make safe from array bounds issues.
2617         (spi_atk_state_from_spi_state): impl.
2618
2619         * libspi/stateset.h (spi_state_set_cache_is_empty): 
2620         add a set of wrapper defines to get layering right.
2621
2622         * cspi/spi_accessible.c: update state set stuff to
2623         use it.
2624
2625 2002-12-14  Michael Meeks  <michael@ximian.com>
2626
2627         * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
2628         to avoid 2 roundtrips to the registry per key event
2629         (spi_atk_bridge_key_listener): upd.
2630         (deregister_application): release the dec.
2631
2632         * registryd/registry.c (notify_listeners_cb):
2633         bin lots of re-enterant complexity - we no longer
2634         do a round-trip bonobo ref here, ensure that a single
2635         listener's exception failure won't poison all other
2636         notifications.
2637         (impl_registry_notify_event): bin obvious memory leak.
2638
2639 2002-12-13  Michael Meeks  <michael@ximian.com>
2640
2641         * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
2642         init the ev so the error is meaningful.
2643         (spi_atk_bridge_key_listener): ditto.
2644
2645         * cspi/spi_main.c (cspi_ev): init the ev so we start
2646         with a clean slate, otherwise the first exception
2647         kills us completely.
2648
2649         * cspi/spi_text.c (get_accessible_text_boundary_type): 
2650         add a fallthrough for no warnings.
2651
2652         * cspi/spi_registry.c: prune unused warnings.
2653
2654         * cspi/spi_main.c (cspi_object_take): fix
2655         mind-blowing brokenness ( by watching the compile
2656         warnings )
2657
2658         * cspi/spi_accessible.c (Accessible_getStateSet):
2659         re-impl. to use an AtkStateSet.
2660         (spi_state_type_from_accessible_state),
2661         (init_state_table): bin these.
2662
2663         * libspi/stateset.c (spi_atk_state_set_from_sequence):
2664         split out from
2665         (atk_state_set_from_accessibility_state_set): here.
2666
2667         * cspi/spi_accessible.c (spi_state_to_atk): impl.
2668         (AccessibleStateSet_contains, AccessibleStateSet_ref),
2669         (AccessibleStateSet_unref, AccessibleStateSet_contains),
2670         (AccessibleStateSet_add, AccessibleStateSet_remove),
2671         (AccessibleStateSet_equals, AccessibleStateSet_compare),
2672         (AccessibleStateSet_isEmpty): re-write to use a local
2673         AtkStateSet object.
2674
2675 2002-12-13  Bill Haneman <bill.haneman@sun.com>
2676
2677         * configure.in: Revved to 1.1.7 (new keymask vals).
2678
2679 2002-12-10  Bill Haneman <bill.haneman@sun.com>
2680
2681         * libspi/keymasks.h:
2682         Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
2683
2684 2002-12-10  Padraig O'Briain  <padraig.obriain@sun.com>
2685
2686         * cspi/spi_event.c 
2687         (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent() 
2688         to compare two CORBA_TypeCodes.
2689         (cspi_internal_event_add): Silence warning from FORTE compiler.
2690
2691         * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to 
2692         avoid implicit declaration of functions.
2693         
2694 2002-12-09  Padraig O'Briain  <padraig.obriain@sun.com>
2695
2696         * atk-bridge/bridge.c:
2697         (spi_atk_bridge_init_event_type_consts): Store signal id for
2698         active-descendant-changed signal.
2699         (spi_atk_register_event_listeners): Add signal listener for
2700         active-descendant-changed signal,
2701         (spi_atk_bridge_signal_listener): Move code in function 
2702         spi_atk-signal_emit_event() into this function.
2703         Add support for active-descendant-changed
2704         Update support for child-changed signal.
2705         (spi_bridge_window_event_listener): Silence warning.
2706
2707         * libspi/spi_private.[ch]:
2708         (spi_init_any_object): Change second parameter from CORBA_Object to
2709         CORBA_Object*.
2710         Omit call to CORBA_Object_duplicate(). 
2711         Set CORBA_any's _value to CORBA_Object*.        
2712
2713 2002-12-06  Bill Haneman  <bill.haneman@sun.com>
2714
2715         * configure.in:
2716         Revved to 1.1.6.
2717         
2718         * cspi/spi.h: 
2719         (AccessibleEvent_ref, AccessibleEvent_unref):
2720         New methods, for persisting an event outside the emission context.
2721         Must be used if the new accessor methods are to be called
2722         outside of the event listener's callback.
2723
2724         * cspi/bonobo/cspi-bonobo.c:
2725         (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
2726         as second parameter instead of NULL, so we can call
2727         cspi_check_ev afterwards.
2728         
2729         * cspi/spi_main.c:
2730         (cspi_object_take): New internal method, 
2731         converts a CORBA_Object reference to a hard ref on
2732         an Accessible if possible, returning NULL if the object
2733         reference is invalid or an Accessible * otherwise.
2734
2735         * cspi/spi_event.c:
2736         (AccessibleEvent_ref): 
2737         Increment the event's internal private refcount, and 
2738         add the event's internal struct to an internal cache 
2739         if it's not already there.
2740         (AccessibleEvent_unref): 
2741         Decrement the event's refcount and remove it from
2742         the cspi event cache if refcount==0.
2743         (cspi_event_compare): New private method.
2744         Compares two event structs via their ids. Used 
2745         for queue lookup.
2746         (cspi_internal_event_lookup): New private method.
2747         (cspi_internal_event_check): New private method,
2748         a 0-order sanity check for events to make sure their
2749         private data is intact.
2750         (cspi_internal_event_add, cspi_internal_event_remove):
2751         New private methods for managiing the event cache.
2752
2753         * cspi/bonobo/cspi-bonobo-listener.c:
2754         (cspi_event):
2755         Initialize the new private data elements (id, magic, ref_count).
2756         
2757         * atk-bridge/bridge.c:
2758         (spi_atk_bridge_signal_listener):
2759         Fixed bug #100530, passing wrong params to emission func.
2760
2761         * registryd/deviceeventcontroller.c:
2762         (spi_dec_button_update_and_emit): 
2763         Fixed type in mask bit operations; fix for #99799.
2764         
2765 2002-12-02  Bill Haneman  <bill.haneman@sun.com>
2766
2767         Removed some of the more dangerous workarounds from
2768         previous commit; they are only needed by GOK, which
2769         in reality should be using another method to accomplish
2770         the goals.  So on reconsideration some of the workarounds
2771         need to be reverted:
2772         
2773         * registryd/deviceeventcontroller.c:
2774         (spi_keycodes_contain, spi_dec_init_keycode_list): 
2775         Removed these methods, used only by a nasty hack to try
2776         and detect whether a key synthesis should be allowed
2777         to reset the XKB latch state or not. This code was only
2778         required to work around an interaction between GOK,
2779         button events, and XKB.
2780         (impl_generate_key_event):
2781         Removed hack at end of key generation that tried to
2782         "do the right thing" if XKB latch keys were generated
2783         in the midst of button press/release pairs.  
2784
2785         * configure.in:
2786         Added a check for HAVE_XINPUT.  Not normally used yet.
2787
2788 2002-11-25  Bill Haneman  <bill.haneman@sun.com>
2789
2790         Workarounds and fixes for mouse event/XKB interaction.
2791         
2792         * registryd/deviceeventcontroller.c:
2793         (spi_keycodes_contain, spi_dec_init_keycode_list): 
2794         New internal methods.
2795         (spi_dec_set_unlatch_pending):
2796         Split the method that tells XKB to expect an
2797         unlatch (and revert it) out of the rest of the
2798         event handling code.  This method is called by the
2799         two mouse event handlers (the poll and the filter).
2800         (spi_dec_update_and_emit, spi_dec_mouse_check): 
2801         New methods split from spi_dec_poll_mouse_moved.
2802         The second one is now called from inside the filterFn
2803         when an XKB delatch event is received, to determine 
2804         whether to revert the delatch or not.
2805         (spi_poll_mouse_moved): Refactor; also we can now
2806         properly handle the case where multiple button states
2807         have changed between polling cycles and we didn't get
2808         notified due to another client's grab.
2809         (global_filter_fn): 
2810         Synchronize the server while handling an XKB notification.
2811         Ugly, but apparently necessary to avoid nasty races.
2812         Check the mouse state on receipt of an XKB latch change,
2813         to decide whether to revert the latch or not. (Latches are
2814         reverted if there is an immediately preceding mouse button
2815         event that a client has consumed, in which case we don't want
2816         the user to see the side-effect of the event).
2817         (spi_device_event_controller_forward_mouse_event):
2818         Check for modifier events and fire before resetting mouse_mask_state,
2819         prevents losing modifier events.
2820
2821         (impl_generate_keyboard_event):
2822         If we've just generated a keyboard event for a non-shift key,
2823         we don't want to revert the pending XKB latch. 
2824         Otherwise, check the modifier state (via a call to 
2825         spi_dev_mouse_check) and set the relatch mask to 
2826         that state before returning.
2827         
2828 2002-11-24  Bill Haneman  <bill.haneman@sun.com>
2829
2830         * NEWS: 
2831         Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
2832         retagged).
2833         
2834         * atk-bridge/bridge.c:
2835         (spi_atk_register_event_listeners):
2836         Don't re-register for ATK events if the registry has died
2837         and the app needs to re-register; the ATK listeners are in
2838         process and doing so will cause duplicate emission.
2839
2840         * registryd/deviceeventcontroller.c:
2841         (spi_poll_mouse_moved):
2842         Reformat the source, detect and emit multiple button-change
2843         events (i.e. if multiple buttons have changed between poll
2844         intervals).
2845         Add code to detect mouse-down events even when the pointer
2846         is grabbed; workaround for GOK bug 98420.
2847         (spi_controller_register_with_devices):
2848         Call XTestGrabControl with 'impervious' flag set to True,
2849         allows us to synthesize events and query the pointer even during
2850         an active grab by another client.
2851         (spi_device_event_controller_forward_mouse_event):
2852         Set the mouse_mask_state to the mouse_button_state from
2853         the intercepted event, to synchronize the grab listener with
2854         the poll state.
2855         
2856 2002-11-20  Bill Haneman  <bill.haneman@sun.com>
2857
2858         * cspi/spi_accessible.c:
2859         (AccessibleRole_getName):
2860         Added necessary strings for making this (deprecated) 
2861         method work with the new role types. 
2862         (init_role_table, role_table):
2863         Added definition of SPI_ROLE_APPLICATION.
2864
2865         * libspi/spi-roletypes.h:
2866         Added SPI_ROLE_APPLICATION.
2867
2868         * idl/Accessibility_Role.idl:
2869         Added ROLE_APPLICATION. 
2870
2871         * docs/reference/cspi/at-spi-cspi-decl.txt:
2872         Added SPI_ROLE_APPLICATION to docs.
2873
2874 2002-11-20  Padraig O'Briain  <padraig.obriain@sun.com>
2875
2876         * cspi/spi_accessible.c
2877         (cspi_init_role_table): Do not write beyond end of role_table.
2878         (Accessible_getRole): Use correct type for value returned by
2879         Accessibility_Accessible_getRole().
2880
2881         * libspi/accessible.c (spi_init_role_lookup_table): Do not write
2882         beyond end of role_table. (This fixes bug #98269)
2883
2884         * libspi/application.c: Add include file spi-private.h for 
2885         definition of spi_init_any_nil.
2886
2887 2002-11-19 Bill Haneman <bill.haneman@sun.com>
2888
2889         FIX for bug 99024.
2890         
2891         * libspi/spi-private.h:
2892         Added DGB() macro, and extern int _dbg declaration.
2893         
2894         * registryd/registry.c:
2895         (definitions) storage for _dbg.
2896         (spi_registry_init):
2897         Get environment variable "AT_SPI_DEBUG".
2898         (spi_registry_set_debug):
2899         New method, to initialize _dbg value.
2900         (spi_listener_struct_new, spi_registry_object_finalize):
2901         (notify_listeners_cb):
2902         Changed fprintfs to use DBG and g_warning().
2903
2904         * registryd/deviceeventcontroller.c:
2905         (_deregister_keygrab, spi_controller_register_device_listener):
2906         Changed debug/warning messages to use DBG macro.
2907
2908         * libspi/listener.c:
2909         (impl_notify_event):
2910         Changed warning messages to use DBG macro and g_warning().
2911
2912         * atk-bridge/bridge.c:
2913         (atk_bridge_init, spi_atk_bridge_get_registry):
2914         (spi_atk_bridge_exit_func):
2915         (spi_atk_bridge_property_event_listener):
2916         Changed status, warning, and error messages to use
2917         g_warning, g_message, and DBG macros.
2918
2919         (atk_bridge_init):
2920         Read the state of the AT_SPI_DEBUG environment variable
2921         and set a local '_dbg' accordingly.
2922         
2923 2002-11-19 Bill Haneman <bill.haneman@sun.com>
2924
2925         FIXES for 98836, 98842, other bugs.
2926         
2927         * configure.in:
2928         Revved to 1.1.4, interface-age=4, binary-age=4.
2929
2930         * registryd/deviceeventcontroller.c:
2931         (statics):
2932         Fixed crasher bug in last_mouse_pos initialization.
2933
2934         * registryd/registry.c:
2935         (desktop_add_application, desktop_remove_application):
2936         Added (and then commented out) some support for
2937         object context marshalling. [TODO]
2938
2939         * atk-bridge/bridge.c:
2940         (spi_atk_bridge_event_context_create):
2941         Commented out object context creation until it can
2942         be properly tested and debugged.
2943
2944         * registryd/registry.c:
2945         (impl_registry_notify_event):
2946         Fixed crasher bug, we were calling 
2947         spi_re_entrant_list_foreach () with an empty list.
2948
2949 2002-11-18  Bill Haneman <bill.haneman@sun.com>
2950         
2951         * idl/Accessibility_Action.idl:
2952         * idl/Accessibility_Component.idl:
2953         * idl/Accessibility_Desktop.idl:
2954         * idl/Accessibility_Event.idl:
2955         * idl/Accessibility_Hyperlink.idl:
2956         * idl/Accessibility_Image.idl:
2957         * idl/Accessibility_Relation.idl:
2958         * idl/Accessibility_Selection.idl:
2959         * idl/Accessibility_State.idl:
2960         * idl/Accessibility_Value.idl:
2961         Updated unimplemented slot count to minimum of
2962         four for all interfaces, for ABI freeze. 
2963
2964         * idl/Accessibility_EditableText.idl:
2965         * idl/Accessibility_Text.idl:
2966         Updated unimplemented slot count to six
2967         for ABI freeze. 
2968         
2969         * idl/Accessibility_Registry.idl:
2970         Updated unimplemented slot count to six
2971         (also for DeviceEventController), 
2972         for ABI freeze. 
2973
2974         * idl/Accessibility_Table.idl:
2975         Updated unimplemented slot count to eight,
2976         for ABI freeze. 
2977
2978         * idl/Accessibility_Event.idl:
2979         Added CORBA_any "any_data" member to Event struct.
2980
2981         * idl/Accessibility_Event.idl:
2982         Added CORBA_any "any_data" member to Event struct.
2983
2984         * atk-bridge/bridge.c:
2985         (statics):
2986         atk_signal_text_changed, atk_signal_child_changed,
2987         signal ids queried from gtype system.
2988         (AtkBridgeEventContextType): New enum.
2989         (AtkBridgeEventContextData): New struct.
2990         (AtkBridgeEventContext): New struct.
2991         (atk_bridge_init_event_type_consts):
2992         New method, initializes type contants for comparison 
2993         prior to emit_eventv.
2994         (atk_bridge_event_context_init): New method,
2995         initializes a CORBA_any from an AtkBridgeEventContext.
2996         (atk_bridge_focus_tracker): Call spi_init_any_nil to
2997         initialize the event.any_data struct.
2998         (spi_atk_bridge_event_context_create): New method,
2999         creates an AtkBridgeEventContext from signal/event info.
3000         (spi_atk_bridge_event_context_free): New method.
3001         (spi_atk_emit_eventv): Changed to take an 
3002         AtkBridgeEventContext parameter. We now initialize
3003         the event.any_data member prior to notifying the 
3004         Registry, via the AtkBridgeEventContext.
3005         (spi_atk_bridge_property_event_listener):
3006         (spi_atk_bridge_state_event_listener):
3007         Match emit_eventv signature.
3008         (spi_atk_bridge_object_event_listener):
3009         Match emit_eventv signature, and create an
3010         event context from the event details.
3011         Free the event context afterwards.
3012         (spi_atk_bridge_window_event_listener):
3013         Create an event context, pass it to the
3014         emit_eventv call.
3015         
3016         * cspi/spi_event.c:
3017         (AccessibleEvent_getContextString):
3018         (AccessibleEvent_getContextObject):
3019         New methods, allow query of AccessibleEvent objects
3020         for more context details (via the "any_data" member 
3021         of the Event struct, above).
3022         
3023         * cspi/spi.h:
3024         Definitions for AccessibleEvent_getContextString
3025         and AccessibleEvent_getContextObject.
3026
3027         * cspi/spi_listener.h:
3028         (InternalEvent): New struct.
3029
3030         * cspi/spi_event.c:
3031         (AccessibleEvent_getContextString):
3032         (AccessibleEvent_getContextObject):
3033         Implementations of new methods, for obtaining
3034         additional context information from some event types.
3035
3036         * cspi/spi_registry.c:
3037         (SPI_registerGlobalEventListener):
3038         Added mention of active-descendant-changed event in docs.
3039
3040         * cspi/cspi-bonobo-listener.c:
3041         (cspi_event):
3042         Marshal the any into the AccessibleEvent via
3043         InternalEvent.
3044         
3045         * libspi/spi-private.h:
3046         #include <orbit/orbit.h>
3047         (spi_init_any_nil):
3048         (spi_init_any_string):
3049         (spi_init_any_object):
3050         New convenience function declarations.
3051
3052         * libspi/util.c:
3053         (spi_init_any_nil):
3054         (spi_init_any_string):
3055         (spi_init_any_object):
3056         New convenience function implementations.
3057
3058         * registryd/deviceeventcontroller.c:
3059         (spi_poll_dec_mouse_moved):
3060         (spi_device_event_controller_forward_mous_event):
3061         Initialize any_data member of event.
3062         (spi_deregister_controller_device_listener):
3063         Fix incorrect param pass which was preventing deregistration.
3064
3065         * registryd/registry.c:
3066         (desktop_add_application):
3067         (desktop_remove_application):
3068         Add object data to event's any_data before dispatch.
3069         (parse_event_type):
3070         Fix for error messages from GAIL.
3071         
3072         * test/event-listener-test.c:
3073         Test new ContextString and "any_data" API:
3074         (report_text_event): New method query and output context string.
3075         (main): register a new text listener with report_text_event
3076         callback.
3077
3078 2002-11-19  Darren Kenny  <darren.kenny@sun.com>
3079
3080         Fixes for bugs 98127 and 97914.
3081         * cspi/spi-roletypes.h:
3082         Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
3083         SPI_ROLE_RULER
3084         * cspi/spi-statetypes.h:
3085         Added SPI_STATE_MANAGES_DESCENDANTS
3086         * cspi/spi.h:
3087         Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
3088         SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
3089         * cspi/spi_accessible.c:
3090         Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
3091         Added mapping from SPI_STATE_MANAGES_DESCENDANTS to 
3092         Accessibility_STATE_MANAGES_DESCENDANTS
3093         * libspi/accessible.c:
3094         Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
3095         Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} 
3096         As requested by Bill, I also cleaned up the alignment.
3097         * libspi/relation.c:
3098         Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
3099         EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
3100         * libspi/stateset.c:
3101         Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
3102         Accessibility_STATE_MANAGES_DESCENDANTS
3103         * docs/reference/cspi/tmpl/spi_accessible.sgml:
3104         Document changes reflecting modifications to roles.
3105         * docs/reference/cspi/tmpl/spi_relation.sgml:
3106         Document changes reflecting modifications to relations.
3107         * docs/reference/cspi/tmpl/spi_stateset.sgml:
3108         Document changes reflecting modifications to states.
3109
3110 2002-11-17  Bill Haneman <bill.haneman@sun.com>
3111
3112         * configure.in:
3113         Revved to 1.1.3, interface-age=3, binary-age=3.
3114         Added REBUILD macro.
3115
3116         * test/Makefile.am:
3117         Removed accessx-gui from the tests, since we have a nice
3118         keyboard accessibility capplet now :-)
3119
3120         * test/keysynth-demo.c:
3121         (increment_scan): removed do-nothing default: case,
3122         silences warning.
3123
3124         * test/visual-bell.c:
3125         (main) : removed do-nothing default: case, 
3126         silences warning.
3127
3128         * cspi/spi_action.c:
3129         (AccessibleAction_getKeyBinding_): 
3130         Documented keybinding string format.
3131         FIX for bug 97916.
3132
3133         * cspi/spi_text.c:
3134         (AccessibleText_getAttributes):
3135         Documented the text attribute string format.
3136         It's changed to use semicolon delimiters also,
3137         to prevent clashes with CSS attributes, but the old
3138         trick of looking for ", " strings will still work
3139         (as unreliably as ever).  Fix for bug related to 97916.
3140
3141         * cspi/spi_event.c:
3142         Include <cspi/bonobo/cspi-bonobo-listener.h>
3143         Fixes build warning.
3144         (SPI_freeAccessibleKeySet):
3145         (AccessibleKeystrokeListener_addCallback):
3146         (AccessibleKeystrokeListener_removeCallback):
3147         Modify to use AccessibleDeviceListener API internally,
3148         instead of AccessibleKeystrokeListener.
3149         
3150         * idl/Accessibility_Event.idl:
3151         Added two more empty slots to EventListener (for a total of four).
3152
3153         * idl/Accessibility_Accessible.idl:
3154         Added four empty slots to Accessible interface.
3155
3156 2002-11-15  Bill Haneman <bill.haneman@sun.com>
3157
3158         * idl/Accessibility_Registry.idl:
3159         (KeyEventType, EventType):
3160         Marked KeyEventType as deprecated; it duplicates
3161         functionality of EventType, which has been extended to
3162         include Mouse-button events.
3163         (KeyEventTypeSeq): defined in terms of EventType.
3164         (registerDeviceEventListener, deregisterDeviceEventListener):
3165         New methods, for managing listeners to device events,
3166         which potentially may consume them.     
3167         
3168         * cspi/spi-impl.h:
3169         Added definition for AccessibleDeviceListener.
3170
3171         * cspi/spi-listener.h:
3172         (enum AccessibleDeviceEventType):
3173         Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
3174         Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
3175         for backwards compat.
3176         (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
3177         and typedef'd AccessibleKeystroke to it for back-compat.
3178         (AccessibleDeviceListenerCB):
3179         New function prototype typedef.
3180
3181         * cspi/spi.h:
3182         (AccessibleDeviceEventMask): New typedef.
3183         (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
3184         (AccessibleKeyMaskType): 
3185         Set equivalent to AccessibleModifierMaskType for back-compat.   
3186         (SPI_createAccessibleKeystrokeListener):
3187         (AccessibleKeystrokeListener_unref):
3188         Deprecated in favor of equivalent (better-named) new API below..
3189         keystroke listeners are like all device listeners.
3190         (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
3191         New API names for old features :-).
3192         (AccessibleDeviceListener_addCallback):
3193         (AccessibleDeviceListener_removeCallback): 
3194         (SPI_registerDeviceEventListener): 
3195         (SPI_deregisterDeviceEventListener): 
3196         New methods.
3197         
3198         * cspi/spi_event.c:
3199         (SPI_createAccessibleKeystrokeListener):
3200         Use new preferred API, cspi_device_listener_new() and
3201         cspi_device_listener_add_cb().
3202         (AccessibleKeystrokeListener_removeCallback):
3203         Use new preferred API, cspi_device_listener_remove_cb().
3204         (AccessibleKeystrokeListener_unref):
3205         Use new preferred API, cspi_device_listener_unref().
3206         (SPI_createAccessibleDeviceListener):
3207         (AccessibleDeviceListener_addCallback):
3208         (AccessibleDeviceListener_removeCallback):
3209         Implementation of new API.
3210
3211         * cspi/spi_registry.c:
3212         (SPI_registerDeviceEventListener):
3213         (SPI_deregisterDeviceEventListener):
3214         Implementation of new API.  Fixed memory leak and removed need to
3215         allocate EventTypeSeq (thanks Michael for catching this).
3216         Squashed a wayward CORBA_exception_free that shouldn't get called.
3217
3218         * cspi/bonobo/cspi-bonobo-listener.c:
3219         (EventHandler):
3220         Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
3221         (cspi_key_event): renamed to cspi_device_event().
3222         Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
3223         Extended to handle mouse button events as well as key events.
3224         (CSpiKeystrokeListener):
3225         Class superceded by CSpiDeviceListener.
3226         (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
3227         These internal APIs changed to "*device_listener" from "*keystroke_listener".
3228
3229         * cspi/bonobo/cspi-bonobo-listener.h:
3230         (CSpiKeystrokeListener):
3231         Class superceded by CSpiDeviceListener.
3232         (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
3233         These internal APIs changed to "*device_listener" from "*keystroke_listener".
3234
3235         * libspi/Makefile.am:
3236         Replaced keystrokelistener.h and keystrokelistener.c
3237         with devicelistener.h and devicelistener.c; keystrokelisener.h
3238         stub retained for back-compat.
3239
3240         * libspi/keystrokelistener.c:
3241         Removed file.
3242
3243         * libspi/libspi.h:
3244         Replaced inclusion of keystrokelistener.h with devicelistener.h.        
3245
3246         * registryd/deviceeventcontroller.c:
3247         (DEControllerListener): Added Accessibility_EventTypeSeq member.
3248         (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
3249         (DEControllerPrivateData): Added xkb settings data.
3250         (spi_dec_poll_mouse_moved): Changed to dispatch device events for
3251         button release events (which can't be captured via XGrabButton).
3252         Don't dispatch via the 'normal' event mechanism if the device event was
3253         consumed.
3254         (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
3255         Handle the typeseq data in its new location (see above).
3256         (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
3257         New methods, for "generic" device listeners.
3258         (spi_controller_register_device_listener):
3259         Now handle mouse event listeners as well as key listeners.
3260         (spi_controller_notify_mouselisteners):
3261         New internal method.
3262         (spi_device_event_controller_forward_mouse_event):
3263         Now we notify mouse device listeners as well as generating the
3264         non-consumable "mouse:" events.  
3265         (global_filter_fn):
3266         We must check and restore the XKB
3267         modifier map if we consume the event, since the act of triggering
3268         a mouse event will normally reset the XKB latch.  This is required for 
3269         instance by GOK.
3270         (spi_controller_register_with_devices):
3271         Load the XKB settings when registering, and register for XKB 
3272         state notify events. 
3273         (spi_key_eventtype_seq_contains_event):
3274         Renamed spi_eventtype_seq_contains_event, since it's used
3275         internally for all device event types now.
3276         (spi_key_event_matches_listener):
3277         Uses spi_eventtype_seq_contains_event now.
3278         (spi_device_event_controller_object_finalize):
3279         Free the private data and the XkbKeyboard struct.
3280         (impl_register_device_listener, impl_deregister_device_listener):
3281         Implementation of new IDL.
3282         (spi_deregister_controller_device_listener):
3283         New internal method.
3284         (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
3285         More efficient implementation, we don't have to create a new
3286         XkbControls structure every time we query.
3287         (spi_device_event_controller_class_init):
3288         Initialize the epv entries for the new IDL.  Assign the 
3289         "spi-dec-private" quark.
3290         (spi_device_event_controller_init):
3291         Initialize the private data.
3292         (spi_device_event_controller_forward_key_event):
3293         Removed a bogus CORBA_exception_free() call.
3294         
3295         * registryd/deviceeventcontroller.h:
3296         Replaced inclusion of keystrokelistener.h with
3297         devicelistener.h.
3298
3299         * test/event-listener-test.c:
3300         (report_mouse_event):
3301         New method.
3302         (main):
3303         Added mouse-event device listener.
3304
3305         * test/test-simple.c:
3306         (create_test_window):
3307         Fixed regression (we were instantiating a GtkRange,
3308         which is now an abstract class).  Also fixed to match
3309         existing AtkRole names, this seems to have changed in ATK
3310         awhile ago; too late now I think, and the new
3311         mechanism is at least elegant and consistent with the
3312         glib enum "nick" APIs.  
3313
3314 2002-11-15  Darren Kenny  <darren.kenny@sun.com>
3315
3316         * idl/Accessibility_Relation.idl:
3317         add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
3318         RELATION_EMBEDS,RELATION_EMBEDDED_BY
3319         * idl/Accessibility_Role.idl:
3320         add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
3321         * idl/Accessibility_State.idl:
3322         add STATE_MANAGES_DESCENDANTS
3323         * test/event-listener-test.c:
3324         Added a listener for active-descendant events.
3325
3326 2002-11-15  Padraig O'Briain  <padraig.obriain@sun.com>
3327
3328         * atk-bridge/bridge.c
3329         (atk_bridge_init): If application is Bonobo component wait until top
3330         level is added before registering
3331         (spi_atk_bridge_do_registration): New function which contains code, 
3332         formerly in atk_bridge_init, to do application registration.
3333         (spi_atk_bridge_toplevel_added): Signal called when top level
3334         added to Bonobo component
3335
3336         This fixes bug #83134.
3337
3338 2002-10-23  Vitaly Tishkov  <tvv@sparc.spb.su>
3339
3340         * registryd/deviceeventcontroller.c
3341         Fixed compilation error caused by calling gettimeofday() 
3342         with 1 parameter
3343
3344 2002-10-18  Bill Haneman  <bill.haneman@sun.com>
3345
3346         BUGFIX for #95828.
3347
3348         * acconfig.h:
3349         Added template for HAVE_XKB.
3350         
3351         * configure.in:
3352         Changes to check for XKB, and to set the HAVE_XKB #define if it 
3353         is available.
3354         
3355         * libspi/listener.c:
3356         ()impl_notify_event): Make failure to get event source name
3357         nonfatal.
3358
3359         * registryd/deviceeventcontroller.c:
3360         (#include): include X11/XKBlib.h.
3361         (DEControllerPrivateData) : New struct.
3362         (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) : 
3363         New methods.
3364         (dec_synth_keycode_press) (dec_synth_keycode_release):
3365         New methods; split the key synthesis code into these methods.
3366         They check XKB settings before determining the "time" values to
3367         pass to Xtest; this fixes bug #95828.
3368         (impl_generate_keyboard_event): Changed to use methods above,
3369         instead of callng Xtest directly.
3370         (spi_device_event_controller_init): Initialize new privae struct s
3371         above.
3372         (spi_device_event_controllr_object_finalize):
3373         Free the (new) private data.
3374
3375         * registryd/deviceeventcontroller.h:
3376         Add new gpointer to end of struct data.
3377
3378 2002-10-16  Bill Haneman  <bill.haneman@sun.com>
3379
3380         * configure.in:
3381         Incremented revision to 1.1.2, SONAME is still '.so', library
3382         extensions are ".so.0.0.2".
3383
3384         * registryd/deviceeventcontroller.c:
3385         FIXES FOR #93592 and #95940.
3386         (statics):  renamed mouse_button_state to mouse_mask_state, 
3387         added key_modifier_mask.
3388         (spi_dec_poll_mouse_moved): 
3389         Added key modifier checks, and emit "keyboard:modifiers"
3390         events when the key modifiers currently in use change.
3391         Also generate "mouse:abs" events periodically, even if the mouse
3392         is stationary (should we?).
3393         Alternatively we could generate "mouse:abs" events for either all
3394         mouse movements, or every 'nth' mouse movement, or at the
3395         beginning and end of every "active" mouse period.
3396         
3397         * test/event-listener-test.c:
3398         (main): Added listener for "keyboard:modifiers" events.
3399         
3400 2002-10-15  Bill Haneman  <bill.haneman@sun.com>
3401
3402         * libspi/keymasks.h:
3403         Added key mask #defines for mouse buttons; e.g.
3404         SPI_KEYMASK_BUTTON1, etc.
3405
3406         * configure.in:
3407         Incremented dependency on ATK to version 1.1.0. (This dependency
3408         is probably premature but will soon be real enough).
3409
3410 2002-10-11  Padraig O'Briain  <padraig.obriain@sun.com>
3411
3412         * libspi/hyperlink.[ch]
3413         (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
3414         (get_hyperlink_from_servant): Check object is AtkHyperlink not 
3415         AtkObject.
3416
3417         * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
3418         AtkObject.
3419
3420         Fixes bug #95517.
3421
3422 2002-10-10  Padraig O'Briain  <padraig.obriain@sun.com>
3423
3424         * registryd/deviceeventcontroller.c
3425         (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
3426         events to be ignored.
3427         (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
3428         keyboard_mode so that XAllowEvents() can be called.
3429
3430         Fixes bug #93658.
3431
3432 2002-10-08  Padraig O'Briain  <padraig.obriain@sun.com>
3433
3434         * cspi/spi-accessible.c: Correct names of roles returned by
3435         AccessibleRole_getName(). Fixes bug #95055.
3436
3437 2002-10-03  Padraig O'Briain  <padraig.obriain@sun.com>
3438
3439         * cspi/spi_main.c (report_leaked_ref): Report address of leaked
3440         object.
3441
3442         * registryd/registry.c
3443         (desktop_remove_application: Write diagnostic message to stderr for
3444         consistency.
3445
3446         (impl_accessibility_registry_deregister_global_event_listener):
3447         Correct size of lists array. This addresses bug #94555).
3448
3449 2002-09-24  Padraig O'Briain  <padraig.obriain@sun.com>
3450
3451         * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
3452         in some role names.
3453
3454 2002-09-19  Padraig O'Briain  <padraig.obriain@sun.com>
3455
3456         * registryd/Makefile: Add CLEANFILES so that .server file is removed
3457         on make clean
3458
3459         * registryd/registry.c (impl_registry_notify_event): Remove
3460         unnecessary call to parser_event_type().
3461
3462         * docs/reference/cspi/tmpl/spi_component.sgml:
3463         Add reference to SPI_LAYER_WINDOW.
3464
3465 2002-09-17  Padraig O'Briain  <padraig.obriain@sun.com>
3466
3467         * registryd/registry.c
3468         (desktop_add_application): Remove leak.
3469         (desktop_remove_application): Remove leak.
3470         (parser_event_type): Remove leak.
3471
3472 2002-09-16  Padraig O'Briain  <padraig.obriain@sun.com>
3473
3474         * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
3475         bogus call to CORBA_string_dup(). Also removed unnecessary
3476         g_string_dup/g_free calls.
3477         
3478 2002-09-13  Bill Haneman <bill.haneman@sun.com>
3479
3480         * registryd/deviceeventcontroller.c:
3481         spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
3482
3483         * test/event-listener-test.c:
3484         main: commented out three redundant listeners, to reduce output
3485         noise. (They still are potentially useful for testing).
3486         
3487
3488 2002-09-13  Michael Meeks  <michael@ximian.com>
3489
3490         * Update all the copyrights to include Ximian.
3491
3492 2002-09-06  Mark McLoughlin  <mark@skynet.ie>
3493
3494         * cspi/spi.h: add SPI_LAYER_WINDOW.
3495
3496         * cspi/spi_component.c: (AccessibleComponent_getLayer):
3497         add Accessibility_LAYER_WINDOW case.
3498
3499         * idl/Accessibility_Component.idl: add LAYER_WINDOW.
3500
3501         * libspi/component.c: (impl_accessibility_component_get_layer):
3502         add ATK_LAYER_WINDOW case.
3503
3504 2002-08-28  Bill Haneman <bill.haneman@sun.com>
3505
3506         * configure.in: incremented micro version.
3507
3508         * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
3509
3510 2002-08-20  Bill Haneman <bill.haneman@sun.com>
3511
3512         * HACKING: 
3513         Clarified and reworded our commit policy.
3514
3515         * NEWS:
3516         Started an API "todo" addition list for 2.2.
3517
3518         * libspi/text.c:
3519         (impl_getSelection):
3520         Free char pointer from atk_text_get_selection, which was being leaked.
3521
3522 2002-08-19  Bill Haneman <bill.haneman@sun.com>
3523
3524         * AUTHORS: 
3525         Small revision to author acknowledgement.
3526
3527 2002-08-19  Padraig O'Briain  <padraig.obriain@sun.com>
3528
3529         * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
3530         If signal has detail add it to the type of the event.
3531         (bug #90838)
3532         
3533 2002-08-12  Michael Meeks  <michael@ximian.com>
3534
3535         * test/test-simple.c (global_listener_cb): bin bogosity.
3536         (test_keylisteners): disable, still doesn't work reliably,
3537         certainly not on my system anyway.
3538
3539         * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
3540         don't leak a reference on the DEC. This round-trip
3541         fetching of the DEC per keystroke sucks, it should be
3542         cached.
3543
3544         * cspi/spi-private.h,
3545         * cspi/cspi-lowlevel.h,
3546         * cspi/bonobo/cspi-bonobo-listener.[ch],
3547         * cspi/bonobo/cspi-bonobo.c: get the copyright
3548         notices better - there is still a large amount of
3549         work in at-spi falsely attributed solely to Sun.
3550
3551         * cspi/spi_main.c (cspi_object_ref): kill bogus
3552         hash lookup, just increment the ref.
3553         (SPI_freeString): make explicit the fact that we
3554         handle NULL strings just fine.
3555         (report_leaked_ref): obey coding standards.
3556         (cspi_object_hash, cspi_object_equal): kill retval.
3557         (cspi_object_release): only release if not on loan.
3558         (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
3559         (cspi_object_borrow, cspi_object_return): impl.
3560
3561         * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
3562         use cspi_object_borrow / return.
3563
3564 2002-08-12  Darren Kenny  <darren.kenny@sun.com>
3565
3566         * cspi/bonobo/cspi-bonobo-listener.c: 
3567         (cspi_event):
3568         Don't call cspi_oject_new() because this is creating a new Accessible
3569         every single time that an event is fired. This causes ATs like at-poke
3570         to nolonger recognise the source of the event and thus ignore it.
3571         Re-use the object from the cache, ref it and then unref it after the
3572         listeners have been called.
3573
3574 2002-08-06  Darren Kenny  <darren.kenny@sun.com>
3575
3576         * test/event-listener-test.c: 
3577         Added command-line options to disable mouse events (m) and
3578         show usage (h). 
3579
3580 2002-07-31  Padraig O'Briain  <padraig.obriain@sun.com>
3581
3582         * configure.in: Update required versions of ATK, GTK+ and GAIL
3583
3584         * cspi-1.0.pc.in: Add dependency for X include files
3585
3586         * cspi/Makefile.am:
3587         * cspi/bonobo/Makefile.am: 
3588         Add $(X_CFLAGS) so that X include files 
3589         are picked up even if not in standard place (bug #71686)
3590
3591 2002-06-25  Bill Haneman  <bill.haneman@sun.com>
3592
3593         * registryd/deviceeventcontroller.c: fix for 84261
3594         (spi_dec_mouse_moved):
3595         Added test of mouse button mask, so that we can detect mouse
3596         button release.  Unfortunately we can't otherwise detect mouse
3597         button release events without consuming the mouse press event,
3598         because of the way XGrabButton works.  This means that our mouse
3599         release events have a latency dependent on the polling period
3600         while the mouse button is down.  At least in this case we only
3601         have to poll while the button is down, and not at other times.
3602         If the button masks don't match with what the last press event
3603         reported, we report the appropriate button release event.
3604         (spi_dec_ungrab_mouse):
3605         New method (not yet called).
3606         (spi_device_event_controller_forward_mouse_event):
3607         New method, sends mouse press event from GdkFilter.
3608         (spi_dec_init_mouse_listener):
3609         Added code to call XGrabButton, redirecting mouse button events to
3610         the root window and our Gdk event loop.
3611         (global_filter_fn):
3612         Added code to filter mouse button events, and reordered.
3613         
3614         * test/event-listener-test.c:
3615         (main):
3616         Added registration for mouse events of type "mouse:button".
3617
3618 2002-06-25  Bill Haneman  <bill.haneman@sun.com>
3619
3620         * registryd/deviceeventcontroller.c: partial fix for 84261
3621         (spi_dec_poll_mouse_idle):
3622         New method, a timeout which checks to see if the mouse
3623         has moved.
3624         (spi_dec_poll_mouse_moving):
3625         A timeout to be called when mouse motion is underway.
3626         (spi_dec_poll_mouse_moved):
3627         A method which fires an event if the mouse has moved, and reports
3628         whether or not it did so. 
3629         (spi_dec_init_mouse_listener):
3630         A method which sets up the timeouts above.
3631         (spi_device_event_controller_new):
3632         Now calls spi_dec_init_mouse_listener.
3633
3634         * registryd/registry.c:
3635         (spi_registry_init):
3636         Now we initialize the device event controller when the registry is
3637         initialized, instead of waiting until a client has requested a key
3638         event notification; this is because we need the event controller
3639         for mouse events, but the mouse event registration API is a
3640         "registry" call and doesn't explicitly call the 
3641         deviceeventcontroller.
3642         We now report mouse motion events with a 100 ms idle latency and
3643         a 20 ms granularity when motion is in progress.
3644
3645         * test/event-listener-test.c:
3646         (main):
3647         We now register the "detail listener" for events of type 
3648         "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
3649         delivered only for the first mouse event received, and thereafter
3650         "mouse:abs" events are delivered.)
3651
3652         * cspi/spi_registry.c:
3653         DOCS: Documented the above mouse event typestrings.
3654         
3655 2002-06-21  Bill Haneman  <bill.haneman@sun.com>
3656
3657         Happy Summer Solstice...
3658
3659         * registryd/deviceeventcontroller.c: [fix for bug 84100]
3660         (spi_controller_notify_keylisteners):
3661         Changes to remove a listener from the listener list, freeing its
3662         open keygrabs, if a notification to that listener fails.  This
3663         means that although a dead listener can continue to hold a passive
3664         keygrab, a maximum of one dispatch to such a listener can fail
3665         before the listener is removed from the list, thus the keygrab
3666         will be released on the next occurrence.
3667         As part of this fix:
3668         (spi_notify_keylisteners):
3669         Renamed to spi_controller_notify_keylisteners, as the controller
3670         instance must now be passed as an argument.
3671         The copied 'notify' GList is now a list of DEControllerKeyListener
3672         objects, since we need more than just the CORBA reference if a
3673         notify fails and we need to deregister the listener.
3674         (impl_notify_listeners_sync):
3675         (impl_notify_listeners_async):
3676         (spi_device_event_controller_forward_key_event):
3677         Modify use of notify_keylisteners in accordance with above
3678         changes.
3679         (spi_deregister_controller_key_listener):
3680         New method introduced by refactoring, from 
3681         impl_deregister_keystroke_listener.
3682         (impl_deregister_keystroke_listener):
3683         Call spi_deregister_controller_key_listener.
3684         (spi_key_listener_clone):
3685         New method to copy a key listner without doing a 'ref' on the
3686         remote object instance; used to create a notifier list.
3687         (spi_key_listener_data_free):
3688         New method, frees data without unreffing the source.
3689         Used in refactor.
3690         (spi_key_listener_clone_free): new method.
3691         (spi_key_listener_free): 
3692         refactored to call spi_key_listener_data_free.
3693         
3694 2002-06-20  Bill Haneman  <bill.haneman@sun.com>
3695
3696         * registryd/registry.c: [fix for bug 86048]
3697         (notify_listeners_cb):
3698         Clear CORBA system exceptions which occur when notifying
3699         listeners, before returning to the source of the original event,
3700         since the event source doesn't care if the relayed notify failed.
3701         In other words, don't complain to the atk-bridge if the registry
3702         could not notify all its listeners, that's no fault of the
3703         application and thus should not appear to be an error from the
3704         application's perspective.
3705         
3706         * cspi/spi_main.c: [fix for bug 85980]
3707         (cspi_object_ref):
3708         Replaced use of bonobo_object_dup_ref with call to the wrapper
3709         method, csou_dup_ref (); this silences a compiler warning and
3710         provided more portability.
3711         (cspi_registry):
3712         Ping the registry before return, and restart if necessary.
3713
3714         * cspi/bonobo/cspi-bonobo.c:
3715         (cspi_ping):
3716         New internal method.
3717         (cspi_dup_ref):
3718         Fixed this method to return an object reference, as it should have
3719         all along.
3720
3721         * cspi/cspi-lowlevel.h:
3722         Added internal definition for cspi_ping() and fixed 
3723         return type of cspi_dup_ref().
3724         
3725
3726 2002-06-19  Bill Haneman  <bill.haneman@sun.com>
3727
3728         * atk-bridge/bridge.c:  [fix for bug 85305]
3729         (spi_atk_bridge_register_application):
3730         New method where the initial application registry calls have been
3731         moved; it allows an application to re-register in response to
3732         certain error conditions (such as a registry restart, see below).
3733         (atk_bridge_init):
3734         Moved some initialization code to the method
3735         spi_atk_bridge_get_registry, below.
3736         (spi_atk_bridge_get_registry):
3737         New, private accessor function for the Accessibility_Registry
3738         instance.  If the registry has not been started before, or has
3739         died (as detected by failure of a CORBA exception), it is
3740         restarted before return, and spi_atk_bridge_register_application
3741         is called again to register with the new bridge instance.
3742         (spi_atk_emit_eventv):
3743         Set registry_died on error; use spi_atk_bridge_get_registry () to
3744         access the registry.
3745         
3746         * registryd/registry.c:
3747         (impl_accessibility_registry_register_global_event_listener):
3748         Set listener's event_type_quark to etype.minor instead of
3749         etype.major (fix for bug 84856).
3750
3751         * test/event-listener-test.c:
3752         (report_detail_event):
3753         Change the output string so that user/tester can tell that the
3754         'detail listener' was called instead of the 'generic listener'.
3755         
3756 2002-06-18  Bill Haneman  <bill.haneman@sun.com>
3757
3758         Fixes for bugs 84900, 84908, 84897, 84898.
3759
3760         * NEWS: updated.
3761         
3762         * configure.in:
3763         Revved version to 1.1.0 
3764         (reserving the 1.0.X branch for gnome-2-0-0 branch, this
3765         version is going to HEAD which will be used for gnome-2-0-1 and later.)
3766         
3767         * idl/Accessibility_Registry.idl:
3768         (EventListener::notifyEvent):
3769         Removed 'oneway' directive after extensive consulation with
3770         ORBit2 team and others.  This means also that unref() of the event
3771         source can and should be done synchronously after emission, rather
3772         than remotely in the client, after servicing the notify call on
3773         the listener side.
3774
3775         NOTE: This change speeds up listener performance considerably, but
3776         introduces new latency on the application side.  We may want to
3777         add an event queue to the atk-bridge.
3778
3779         * atk-bridge/bridge.c:
3780         (spi_atk_bridge_focus_tracker):
3781         Do a local unref() on the event source after emission.
3782         
3783         * registryd/registry.c:
3784         (desktop_remove_application):
3785         Do an unref() on the event source after emission.
3786         (desktop_add_application):
3787         Do an unref() on the event source after emission.
3788         (notify_listeners_cb):
3789         When relaying an event, don't automatically add the event source
3790         to the local object cache, just CORBA_dup it instead.  Likewise,
3791         if this method reenters, release the ref rather than calling
3792         unref() as well.
3793         (impl_registry_notify_event):
3794         No longer call remote unref() on the event source after dispatch.
3795
3796         * libspi/eventlistener.c:
3797         (impl_accessible_event_notify_event):
3798         Removed remote unref ()
3799         
3800         * cspi/bonobo/cspi-bonobo-listener.c:
3801         (cspi_event):
3802         We now call cspi_object_new() instead of cspi_object_add() on
3803         receipt of an event; thus we only have an implicit object ref
3804         while the cspi_event method is being executed.  If we need to keep
3805         a reference to the object, the listener must call ref() on the
3806         object.  Thus also we don't need to call cspi_object_unref() after
3807         invoking the listener callbacks in this method.
3808         
3809         * cspi/spi_main.c:
3810         (cspi_object_new):
3811         New internal API for creating a new cspi object, without adding it
3812         to the object cache.
3813         (cspi_object_add):
3814         Now uses cspi_object_new() to create the cspi object instance.
3815         (cspi_object_ref):
3816         Now checks to see if the object is in the internal object cache,
3817         and adds it if necessary before incrementing its refcount (note
3818         that new objects are added with a refcount of 1).
3819         (report_leaked_ref):
3820         New method which gives some information on leaked object instances
3821         if leak detection is turned on.
3822
3823         * test/event-listener-test.c:
3824         (timing_test_event):
3825         New method, used for testing event delivery timing for special
3826         events of type "object:test".  It reports elapsed time and
3827         events/sec every 500 events.
3828         (main):
3829         Added a new listener, 'test listener', to check timing of event
3830         receipt as noted above.
3831         (report_event):
3832         Added some timing output here also, reports elapsed time every 100
3833         events.
3834
3835         * test/stress-test.c:
3836         Emit events of type "object:test", for use with "event-listener-test".
3837
3838         * test/test-simple.c:
3839         (global_listener_cb):
3840         Call Accessible_ref() on the event source before calling
3841         validate_accessible, since the validation process does pointer
3842         comparisons on the event source, meaning that the event source
3843         needs to be added to the local object cache first.  Any use of
3844         such pointer comparisons between Accessible objects requires that
3845         the caller hold an explicit reference to those objects.
3846         We also must therefore call Accessible_unref() when leaving this method.
3847
3848 2002-06-13  Bill Haneman  <bill.haneman@sun.com>
3849
3850         * registryd/deviceeventcontroller.c:
3851         (spi_controller_update_key_grabs):
3852         Fix for #84735, subsequent keygrab listeners not informed of
3853         registration failure.
3854
3855         * libspi/base.c:
3856         (spi_base_construct):
3857         Add an assertion on construct, to make sure the GObject passed in
3858         is really a GObject.
3859         (spi_base_init):
3860         Explicitly initialize object->gobj pointer to NULL;
3861
3862         * cspi/bonobo/cspi-bonobo-listener.c:
3863         (cspi_object_add_ref):
3864         New method, can specify whether to dup-ref a bonobo object passed
3865         in if it's newly added to the object cache.
3866         (cspi_object_add):
3867         Now calls cspi_object_add_ref with second param of "FALSE".  This
3868         prevents us from doing a pointless dup-ref followed by
3869         release-unref for all those cases where the object is already in
3870         our object cache (fix for #85205).
3871
3872         * atk-bridge/bridge.c:
3873         (spi_atk_bridge_idle_init):
3874         Removed this method, we don't need to initialize in an idle
3875         handler anymore;
3876         (atk_bridge_init):
3877         Changed to call spi_atk_register_event_listeners directly, not via an
3878         idle handler. (fix for #81139)
3879         (gnome_accessibility_module_shutdown):
3880         Removed conditional around deregistration of listeners, since we
3881         don't use the idle handler and thus have always registered when
3882         shutdown is called.
3883         (spi_init_keystroke_from_atk_key_event):
3884         Changed references to Accessibility_KEY_PRESSED to 
3885         Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
3886         
3887 2002-06-12  Bill Haneman  <bill.haneman@sun.com>
3888
3889         (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
3890         
3891         * configure.in:
3892         Revved to 1.0.1
3893
3894         * test/stress-test.c:
3895         Added file.
3896
3897         (may have been an incomplete commit yesterday?)
3898
3899 2002-06-12  Bill Haneman  <bill.haneman@sun.com>
3900
3901         * test/Makefile.am:
3902         Added target for new stress-test.
3903         
3904         * test/stress-test.c:
3905         New test, sends 1000 focus notifies in quick succession.
3906
3907         * test/key-listener-test.c:
3908         Now we report whether a keylistener registration
3909         request succeeded or failed.
3910
3911         * test/event-listener-test.c:
3912         Uncommented some listeners which are now implemented.
3913
3914
3915 2002-06-06  Bill Haneman  <bill.haneman@sun.com>
3916
3917         * registryd/deviceeventcontroller.c:
3918         (spi_controller_update_key_grabs):
3919         Fix for #82509, lack of failure notification when
3920         ALL_WINDOWS keygrabs fail due to XGrabKey
3921         failure: we synchronize the server when 
3922         registering a passive grab, to make sure we get the
3923         error message before the call returns.
3924
3925 2002-06-03  Bill Haneman  <bill.haneman@sun.com>
3926
3927         * test/test-simple.c:
3928         (key_listener_cb):
3929         Removed #ifdef KEY_IMPL_WORKS guards.
3930         (test_keylisteners):
3931         Removed #ifdef KEY_IMPL_WORKS guards.
3932         Fixed bug which was causing a hang waiting for a 
3933         "press" event (which was already overwritten by a "release" 
3934         event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
3935         (key_listener_cb):
3936         Added code to set globals 'key_press_received' and
3937         'key_release_received'.
3938
3939         * TODO:
3940         Added section "1.1 API Proposed Additions" which
3941         lists API additions desired for at-spi-1.1 (only one so far).
3942         Updated TODO list a little.
3943         
3944 2002-06-02  Bill Haneman  <bill.haneman@sun.com>
3945
3946         AT-SPI 1.0 API FINAL: at-spi 1.0 is now
3947         API frozen.
3948         
3949         * configure.in: Revved to 1.0.0.
3950
3951         * idl/Accessibility_Registry.idl:
3952         (registerKeystrokeListener):
3953         Added boolean return value.
3954         
3955         * registryd/registry.c:
3956         (notify_listeners_cb): Minor fix to debug output.
3957
3958         * registryd/Accessibility_Registry.server.in.in:
3959         Revved version number in OAFIID to 1.0.
3960
3961         * registryd/registryd.c:
3962         (main):
3963         Use new OAFIID version.
3964
3965         * cspi/bonobo/cspi-bonobo.c:
3966         (cspi_init):
3967         Use new OAFIID version.
3968
3969         * test/at.c:
3970         (main):
3971         * test/app.c:
3972         (main):
3973         * atk-bridge/bridge.c:
3974         (atk_bridge_init):
3975         Use new OAFIID version.
3976
3977         * registryd/deviceeventcontroller.c:
3978         (impl_register_keystroke_listener):
3979         Added CORBA_boolean return value.
3980         (spi_controller_register_device_listener):
3981         Added gboolean return value.
3982         (spi_controller_register_global_keygrabs):
3983         Added gboolean return value.
3984         (spi_key_set_contains_key):
3985         Added implementation for many more control keys,
3986         for instance F1-F12, arrow keys, End, Home, Page_Up,
3987         Page_Down, Escape.
3988         [TODO: some still not implemented]. 
3989         
3990         * text/screen-review-test.c:
3991         (text_chunk_pad_string):
3992         New function: it provides mapping between coordinate
3993         positions of text chunks and character positions in the
3994         screen-review-line output string.
3995         (text_chunk_to_string):
3996         New function, calls text_chunk_pad_string with various
3997         pad/delimiter characters. Pushbuttons are delimited with
3998         square brackets, Frames with vertical 'pipe' lines, and 
3999         other text with double quotes.
4000         (text_chunk_list_to_string):
4001         Calls new function text_chunk_to_string.
4002         (toplevel_composite):
4003         New function to composite layers CANVAS through
4004         POPUP in each toplevel (other layers are composited
4005         across toplevels, i.e. BACKGROUND and OVERLAY).
4006         (review_buffer_composite):
4007         Revise to use new methods.
4008         
4009         
4010         
4011         
4012
4013 2002-05-31  Laszlo Peter  <laca@sun.com>
4014
4015         * configure.in: add the Xtst libdir to the runpath on Solaris,
4016         since it's not in the default library search path.
4017
4018 2002-05-29  jacob berkman  <jacob@ximian.com>
4019
4020         * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
4021
4022 2002-05-29  Bill Haneman  <bill.haneman@sun.com>
4023
4024         * test/screen-review-test.c:
4025         (text_chunk_pad_string):
4026         Added method, which pads the string according to the 
4027         text bounds of the chunk.  It also takes a 3-character
4028         string as a param which indicates the characters to be 
4029         used for start, padding, and end delimitation of the chunk.
4030         (text_chunk_to_string):
4031         Changed to use text_chunk_pad_string.
4032         
4033         * configure.in: Fixed bug in AC_OUTPUT that was
4034         causing path substitution in Accessibility_Registry.server
4035         to fail.
4036
4037 2002-05-23  Bill Haneman  <bill.haneman@sun.com>
4038
4039         * text/screen-review-test.c:
4040         (guess_string_clip):
4041         New method which attempts a best-guess at clipping
4042         text from components (like Java labels) which don't
4043         actually implement AccessibleText.  This inaccurate
4044         clip is based on the assumption that the label is
4045         justified left-and-right, and monospaced.
4046         (text_chunk_get_clipped_string):
4047         We now call guess_string_clip() for text-containing
4048         components that don't implement AccessibleText.
4049
4050         * test/screen-review-test.c:
4051         (review_buffer_get_text_chunk):
4052         We now pull "name" from labels if they do not implement
4053         AccessibleText (i.e. for Java labels).
4054         (get_screen_review_line_at):
4055         Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
4056
4057         * configure.in:
4058         Replaceded AC_OUTPUT target
4059         registryd/Accessibility_Registry.server with 
4060         registryd/Accessibility_Registry.server.in.
4061
4062         * registryd/Accessibility_Registry.server.in:
4063         Removed (this is now a Makefile target).
4064
4065         * registryd/Accessibility_Registry.server.in.in:
4066         Added (source for target above).  We now use $(libexecdir) as
4067         prefix for the executable at-spi-registryd.
4068
4069         * registry/Makefile.am: 
4070         Now install at-spi-registryd into $(libexecdir), and build .server
4071         file with path (see above).
4072         
4073 2002-05-22  Bill Haneman  <bill.haneman@sun.com>
4074
4075         * test/screen-review-test.c:
4076         (text_chunk_get_clipped_string):        
4077         We now check to see if words fall within clip bounds 
4078         before resorting to character-by-character clip bounds testing.
4079
4080         * TODO: Added a section for "2.2 Proposed API Additions".
4081
4082 2002-05-21  Bill Haneman  <bill.haneman@sun.com>
4083
4084         * test/screen-review-test.c:
4085         * test/Makefile.am:
4086         Added a screen review benchmarking and test program to test
4087         directory.
4088
4089         * cspi/spi_accessible.c:
4090         * cspi/spi_main.c:
4091         Made some of the debug strings passed to cspi_check_ev a
4092         little more specific.
4093
4094 2002-05-21  Padraig O'Briain  <padraig.obriain@sun.com>
4095
4096         * test/screen-review-test.c: Fix crashes in debug statements
4097
4098 2002-05-20  Bill Haneman  <bill.haneman@sun.com>
4099
4100         * test/screen-review-test.c: Added this file.
4101
4102 2002-05-13  Marc Mulcahy <marc.mulcahy@sun.com>
4103
4104         * atk-bridge/bridge.c: changed "object:state-change" to
4105         "object:state-changed" to match docs.
4106
4107 2002-05-13  Marc Mulcahy <marc.mulcahy@sun.com>
4108
4109         * atk-bridge/bridge.c: Hooked up state-change event details.
4110
4111 2002-05-11  Bill Haneman <bill.haneman@sun.com>
4112
4113         * registryd/registry.c:
4114         Fixed quarking bug in event string parsing; now events with
4115         detail parameters get matched correctly to listeners.
4116         [Bugzilla 80608].
4117
4118         * util/idl/Magnifier.idl: remove.
4119         * util/idl: remove
4120         * util/*.[ch]: Remove.
4121         Magnification utilities and IDL are now in module gnome-mag.
4122
4123 2002-05-10  Bill Haneman <bill.haneman@sun.com>
4124
4125         * registryd/deviceeventcontroller.c:
4126         Fixed bug in grab key conversion which was causing keycode grabs
4127         to be converted to AnyKey grabs.
4128
4129         * NEWS:
4130         updated NEWS file to reflect recent spin-off of gnome-mag.
4131
4132 2002-05-09  Marc Mulcahy <marc.mulcahy@sun.com>
4133
4134         * cspi/spi_accessible.c: Added exception checks.  Fixed completely
4135         busted AccessibleStateSet_compare.  Removed redundant casts.
4136         
4137         * cspi/spi-action.c: Removed redundant casts.
4138
4139         * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
4140
4141         * cspi/spi_component.c: Fixed typos and casting error.
4142
4143         * cspi/spi_editabletext.c: Removed redundant casts.
4144
4145         * cspi/spi_hyperlink.c: Fixed casting and exception checking.
4146
4147         * cspi/spi_hypertext.c: Eliminated redundant casts.
4148
4149         * cspi/spi_image.c: Eliminated redundant casts.
4150
4151         * cspi/spi_registry.c: Eliminated redundant casts.
4152         SPI_deregisterGlobalEventListenerAll () removed retval variable.
4153         * cspi/spi_selection.c: Removed redundant casts.
4154         * cspi/spi_text.c: Eliminated redundant casts.  Fixed exception
4155         handling.  Screen geometry and text offsets were being returned as 0
4156         on error which is technically valid-- changed these to return -1.
4157         Added marshaller for text boundary types to fix bug with boundary
4158         types being passed incorrectly to atk.
4159                         
4160 2002-05-09  Bill Haneman <bill.haneman@sun.com>
4161
4162         
4163         * cspi/spi_registry.c:
4164         Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
4165         which was uncovered by the recent key changes.
4166
4167 2002-05-09  Bill Haneman <bill.haneman@sun.com>
4168
4169         * test/event-listener-test.c:
4170         * test/Makefile.am:
4171         Added new test, "event-listener-test"; 
4172         this code does two things; it benchmarks traversal time 
4173         for the accessible hierarchy for the first running accessible 
4174         app, and it connects listeners for all supported event types.  
4175         It is thus useful as an example event listener and for 
4176         diagnostics/debugging of event generation.
4177         
4178 2002-05-08  Bill Haneman <bill.haneman@sun.com>
4179
4180         * test/Makefile.am:
4181         Removed unnecessary dependency on libutil.
4182
4183         * configure.in:
4184         Revved micro version: 0.13.1
4185
4186 2002-05-08  Bill Haneman <bill.haneman@sun.com>
4187
4188         * configure.in: 
4189         Removed util/Makefile from targets.
4190
4191         * Makefile.am:
4192         Removed util subdir from SUBDIRS (temporarily, 
4193         pending removal of magnifier-only code
4194         from UTIL).
4195
4196         * test/simple-at.c:
4197         #ifdef-ed out magnifier dependencies, since
4198         magnifier IDL, headers, and binary now live in
4199         module gnome-mag and we don't want at-spi to depend 
4200         on gnome-mag.  A magnifier demo which can run alongside
4201         simple-at is forthcoming in the gnome-mag module.
4202         
4203         NOTE: Split magnifier binary, IDL, and magnification
4204         activation code from at-spi into module gnome-mag.
4205
4206 2002-05-03  Marc Mulcahy <marc.mulcahy@sun.com>
4207  
4208         * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
4209         cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
4210  
4211 2002-05-03  Bill Haneman <bill.haneman@sun.com>
4212
4213         * configure.in:
4214         Revved to version 0.13.0
4215         
4216         * idl/Accessibility_Registry.idl:
4217         Changed definition of KeySet from sequence of longs to sequence of
4218         KeyDefinitions, and added KeyDefinition struct.
4219         Required for fix to bug 80616.
4220
4221         * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
4222         Changed AccessibleKeySet to Accessibility_KeySet marshalling code
4223         to use new definition (see above).  
4224
4225         * registryd/deviceeventcontroller.c: handle_keygrab(), 
4226         spi_keyset_contains_key():
4227         Changed to make use of new struct; this allows matching based on
4228         string key-name, for instance "Tab".  This also allows matching of
4229         composed characters, non-alphanumeric characters in a way that
4230         doesn't involve dependencies on X keysym codes directly, etc.
4231         
4232         * test/key-listener-test.c:
4233         Added test for Alt-Tab key using "string" specification of keyset,
4234         and modified one of the tests to use a keycode-based keyset.
4235         Thus this test both tests and demonstrates the creation and use of
4236         keysets of three forms:  specified via keycode array, 
4237         keysym array, and string array. (The string case only contains a
4238         single string, i.e. a string array of length 1).        
4239
4240         * test/simple-at.c:
4241         Turned on PRINT_TREE option by default.  Also fixed a
4242         string-freeing bug in the PRINT_TREE code.  
4243         Added a listener to window:minimize events.
4244         
4245 2002-05-08  Padraig O'Briain  <padraig.obriain@sun.com>
4246
4247         * atk-bridge/bridge.c:
4248         (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
4249         for window:activate and window:deactiveate
4250         (atk_bridge_property_event_listener atk_bridge_signal_listener
4251         atk_bridge_window_event_listener) Tidy debug code
4252
4253 2002-05-02  Marc Mulcahy <marc.mulcahy@sun.com>
4254
4255         * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
4256         Fixed handling for NULL return value from ATK.
4257
4258         * libspi/action.c libspi/component.c libspi/editabletext.
4259         libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
4260         libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
4261         Removed redundant casts.
4262         
4263         * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
4264         Fixed off by one bug.
4265         
4266         *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
4267         function not present in idl)
4268         
4269 2002-05-02  jacob berkman  <jacob@ximian.com>
4270
4271         * atk-bridge/Makefile.am: make atk-bridge a real module
4272
4273 2002-04-26  Radek Doulik  <rodo@ximian.com>
4274
4275         * libspi/stateset.c (spi_init_state_type_tables): fix size of
4276         atk_state_types table
4277
4278 2002-04-22  jacob berkman  <jacob@ximian.com>
4279
4280         * util/Makefile.am: 
4281         * libspi/Makefile.am: add deps on the built files to help
4282         automake, and don't version the ORBit typelib
4283
4284 2002-04-19  Padraig O'Briain  <padraig.obriain@sun.com>
4285
4286         * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h 
4287         cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
4288         cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c 
4289         cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
4290         cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
4291         cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
4292         cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
4293         libspi/accessible.h libspi/accessible.h libspi/base.h 
4294         libspi/component.h libspi/editabletext.h libspi/hyperlink.h 
4295         libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
4296         libspi/relation.h libspi/remoteobject.h libspi/selection.h 
4297         libspi/spi-private.h libspi/statetset.h libspi/table.h
4298         libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
4299         util/mag_client.h util/mag_control.c util/mag_image.c
4300         util/mag_image.h util/magnifier.c util/magnifier.h: 
4301         Add missing file headers; standardize existing ones
4302
4303 2002-04-18  Marc Mulcahy  <marc.mulcahy@sun.com>
4304
4305         * atk-bridge/bridge.c: Added window event support.
4306
4307 2002-04-18  Michael Meeks  <michael@ximian.com>
4308
4309         * libspi/relation.c (impl_getNTargets): impl.
4310         (impl_getTarget): impl.
4311
4312         * libspi/Makefile.am: fix stateset install.
4313
4314 2002-04-17  Bill Haneman <bill.haneman@sun.com>
4315
4316         * NEWS:
4317         Started putting useful info in this file.
4318         
4319 2002-04-17  Marc Mulcahy <marc.mulcahy@sun.com>
4320  
4321         * atk-bridge/bridge.c: 
4322         Propagate state-changed notifications to ATs
4323  
4324         * cspi/spi_registry.c: update docs to reflect actual behavior of
4325         state-change events.
4326
4327 2002-04-17  Bill Haneman <bill.haneman@sun.com>
4328
4329         * configure.in:
4330         Incremented version to 0.12.1
4331         
4332         * util/mag_client.h:
4333         Add missing declaration for magnifier_exit, 
4334         used by mag_control.c - Forte compiler didn't like
4335         the implicit redeclaration of the function :-(
4336
4337
4338 2002-04-16  Bill Haneman <bill.haneman@sun.com>
4339
4340         * configure.in:
4341         Revved version to 0.12 due to API change (see below).
4342
4343         * cspi/spi-roletypes.h:
4344         removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE 
4345         definition from the inline docs, and added docs
4346         for SPI_ROLE_LAST_DEFINED.
4347
4348         * cspi/spi.h:
4349         * cspi/spi_streamablecontent.c:
4350         Added missing seek_type parameter to
4351         (so far unused) method, 
4352         AccessibleStreamableContent_seek().
4353         [ RT approval JodyG. ]
4354
4355         * cspi/spi_event.c:
4356         Fixed docs for SPI_createAccessibleKeystrokeListener.
4357
4358         * cspi/spi_registry.c:
4359         Fixed docs for SPI_KEYSET_ALL_KEYS.
4360         
4361         * docs/reference/cspi/at-spi-cspi-sections.txt:
4362         Added a number of missing APIs to SECTIONS.
4363         
4364 2002-04-16  Bill Haneman <bill.haneman@sun.com>
4365
4366         * registryd/Makefile.am:
4367         * cspi/Makefile.am:
4368         * cspi/bonobo/Makefile.am:
4369         Add $(X_LIBS) to makefiles.
4370
4371 2002-04-15  Bill Haneman <bill.haneman@sun.com>
4372
4373         * configure.in:
4374         Revved version to 0.11.
4375
4376         * libspi/component.c:
4377         Added implementation for grabFocus.
4378
4379         * idl/Accessibility_Component.idl
4380         (Accessibility_Component_grabFocus):
4381         Made this method return boolean to indicate success or failure, to
4382         be consistent with cspi and the corresponding ATK method.
4383         
4384         * idl/Accessibility_Selection.idl
4385         (Accessibility_Selection_selectAll) :
4386         Made these methods return boolean to indicate success or
4387         failure, to be consistent with cspi and the corresponding ATK methods.
4388         
4389         * idl/Accessibility_EditableText.idl 
4390         (Accessibility_EditableText_setTextContents,
4391          Accessibility_EditableText_insertText,
4392          Accessibility_EditableText_cutText,
4393          Accessibility_EditableText_deleteText,
4394          Accessibility_EditableText_pasteText):
4395         Made these methods return boolean to indicate
4396         success or failure.
4397
4398         * cspi/spi_editabletext.c:
4399         Made these methods return booleans.
4400
4401         * libspi/selection.c:
4402         * libspi/component.c:
4403         * libspi/editabletext.c:
4404         Connected the boolean returns from ATK
4405         to the server-side code referenced above.
4406         
4407 2002-04-14  Bill Haneman <bill.haneman@sun.com>
4408
4409         * idl/Accessibility_Table.idl: Added missing methods,
4410         Accessibility_Table_addRowSelection,
4411         Accessibility_Table_addColumnSelection,
4412         Accessibility_Table_removeRowSelection,
4413         Accessibility_Table_removeColumnSelection.
4414
4415         * cspi/spi_table.c:
4416         Added C wrappers for above IDL:
4417         AccessibleTable_addRowSelection,
4418         AccessibleTable_addColumnSelection,
4419         AccessibleTable_removeRowSelection,
4420         AccessibleTable_removeColumnSelection.
4421         
4422         * libspi/table.c:
4423         Added server-side implementation code for IDL above, connecting
4424         to pre-existing ATK api.
4425         
4426 2002-04-13  Marc Mulcahy <marc.mulcahy@sun.com>
4427
4428         * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
4429
4430         * libspi/accessible.c: Added implementation fo
4431         Accessibility_Accessible_get_state.
4432         
4433         * libspi/libspi.h: Added stateset.h to the list of includes.
4434
4435         * libspi/stateset.c: Fixed broken implementation.
4436
4437 2002-04-13  Bill Haneman <bill.haneman@sun.com>
4438
4439         * util/magnifier.c:
4440         Added implementation code for Accessibility_Magnifier_exit ().
4441
4442         * util/mag_control.c:
4443         Added test code for above method; you can
4444         now kill an existing magnifier via 
4445         ./mag_control q, from the util directory.
4446
4447         * test/key-listener-test.c:
4448         * test/Makefile.am:
4449         Added a new test, for our key listener API.
4450
4451 2002-04-11  Bill Haneman <bill.haneman@sun.com>
4452
4453         * test/app.c, test/keysynth-demo.c:
4454         * util/magnifier.c:
4455         Replace use of snprintf with g_snprintf.
4456         (fix for bugzilla 78249)
4457
4458 2002-03-27  Michael Meeks  <michael@ximian.com>
4459
4460         * Version 0.10.0
4461
4462         * util/Makefile.am (INCLUDES): fix.
4463         (DONT_DIST_SOURCE): don't distribute the
4464         generated files.
4465
4466         * libspi/Makefile.am (dist-hook): ditto.
4467
4468 2002-03-27  Padraig O'Briain  <padraig.obriain@sun.com>
4469
4470         * libspi/hypertext.c:
4471         Fix warnings when yelp is used with atk-bridge
4472
4473 2002-03-21  Michael Meeks  <michael@ximian.com>
4474
4475         * libspi/application.c (spi_application_new):
4476         use spi_accessible_construct so we use the AtkObject
4477         cache correctly.
4478
4479 2002-03-19  Michael Meeks  <michael@ximian.com>
4480
4481         * registryd/registry.c (desktop_remove_application),
4482         (desktop_add_application): clean coding style.
4483
4484         * registryd/desktop.c (spi_desktop_remove_application),
4485         (spi_desktop_add_application): kill re-enterency hazards.
4486         (spi_desktop_dispose): remove bogus redundant cast
4487         obscuring bug; fix bug too.
4488         (spi_desktop_init): make the desktop object immortal.
4489
4490 2002-03-16 Bill Haneman <bill.haneman@sun.com>
4491
4492         * test/simple-at.c:
4493         Added a #define-guarded tree-traversal step
4494         when enumerating the apps (diagnostic tool).
4495
4496 2002-03-15 Bill Haneman <bill.haneman@sun.com>
4497
4498         * idl/Accessibility_Role.idl:
4499         Added ROLE_DRAWING_AREA which seemed to be missing from the
4500         previous commit.
4501
4502 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
4503
4504         * cspi/spi-roletypes.h cspi/spi_accessible.c
4505         idl/Accessibility_Role.idl libspi/accessible.c: synched up role
4506         types with ATK.
4507
4508         * registryd/desktop.c registryd/desktop.h registryd/registry.c:
4509         Added signals to SpiDesktop and callbacks in SpiRegistry to notify
4510         AT when applications are added and removed from the desktop.  This
4511         reverts the previous broken implementation using the backing
4512         AtkObject for the SpiDesktop.
4513         
4514         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
4515
4516         * registryd/desktop.c: emit the "children-changed::add" and
4517         "children-changed::remove" signals on the backing ATK object for
4518         the desktop so AT can tell when applications are started and shut
4519         down.
4520
4521         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
4522
4523         * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
4524
4525         2002-03-14  Marc Mulcahy <marc.mulcahy@sun.com>
4526
4527         * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
4528
4529         * cspi/spi_accessible.c: Implemented c bindings for stateset support
4530
4531         * cspi/state-types.h: synched with IDL and ATK
4532
4533         2002-03-13  Bill Haneman <bill.haneman@sun.com>
4534
4535         * libspi/accessible.c 
4536         (impl_accessibility_accessible_get_child_at_index):
4537         Change return value for g_return_if_fail ()
4538         to CORBA_OBJECT_NIL instead of "0" (!)
4539
4540         * registryd/Makefile.am:
4541         * registryd/Accessibility_Register.server.in:
4542         Changed name of executable, "registryd",
4543         to something more informative:
4544         "at-spi-registryd".
4545
4546 2002-03-13  Michael Meeks  <michael@ximian.com>
4547
4548         * atk-bridge/bridge.c (atk_bridge_init): don't register
4549         if we're in a bonobo-component, rather than a bonobo app.
4550
4551 2002-03-13  Michael Meeks  <michael@ximian.com>
4552
4553         * atk-bridge/bridge.c (gtk_module_init): split
4554         out body to (atk_bridge_init): here, since otherwise
4555         we get symbol conflicts and oddness when invoked
4556         from (gnome_accessibility_module_init): here (upd.)
4557
4558 2002-03-11  Bill Haneman  <bill.haneman@sun.com>
4559
4560         * HACKING:
4561         New file.  Explicitly allow "build sheriff" putbacks provided
4562         they are tested on Solaris.
4563         
4564         * docs/reference/cspi/Makefile.am:
4565         Added '-' to the "cp" command for index.sgml.
4566         ("patch by thomasvs, soon coming to a GUADEC near you")
4567
4568         * configure.in:
4569         Incremented version number (0.9.0) for new release.
4570         Changed macro that checks for popt, to better detect
4571         obsolete versions of popt.
4572         
4573         * configure.in:
4574         Added X_LIBS to AC_SUBST, for applications
4575         that call Xlib API directly.
4576         
4577
4578 2002-03-07  Bill Haneman  <bill.haneman@sun.com>
4579
4580         * configure.in:
4581         Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
4582
4583         * util/Makefile.am:
4584         Fix regression caused by hard-coding major
4585         version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
4586         (see above change).
4587         
4588         * test/test-simple.c (test_editable_text),
4589         (test_test): revert previous change (error was 
4590         a regression in gail which is now fixed).
4591         
4592 2002-03-04  Michael Meeks  <michael@ximian.com>
4593
4594         * test/test-simple.c (test_editable_text),
4595         (test_text): pass G_MAXINT instead of '-1' for
4596         whole string - is this a good thing !?
4597
4598         * cspi/spi_accessible.c
4599         (Accessible_getRelationSet): fix crasher bug
4600         overwriting the end of the array.
4601
4602         * test/test-simple.c (validate_accessible): free,
4603         not g_free returned relation set.
4604
4605 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
4606
4607         * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
4608         implemented stateset support
4609
4610         * idl/Accessibility_State.idl: Made necessary changes to
4611         the IDL to support state sets.
4612
4613 2002-02-12 Bill Haneman <bill.haneman@sun.com>
4614
4615         * registryd/deviceeventcontroller.c:
4616         Added implementation for generateMouseEvent.
4617
4618         * cspi/spi_registry.c:
4619         Connected new implementation for generateMouseEvent
4620         to the C bindings.
4621         
4622 2002-02-12 Bill Haneman <bill.haneman@sun.com>
4623
4624         * configure.in: 0.8
4625         Incremented revision (but no change in public API
4626         outside of 'utils', which are not installed public yet.)
4627
4628         * libspi/component.c:
4629         Changed to use atk_component API for layers and
4630         mdi_zorder, instead of deprecated atk_object API.
4631         
4632         Magnification Utility Enhancements:
4633         
4634         * util/magnifier.c:
4635         Added implementation of createZoomRegion, clearAllZoomRegions,
4636         resizeZoomRegion.  Added new commandline argument
4637         "--no-initial-region".  Note that clearAllZoomRegions doesn't
4638         unmap the old '0' region as it should (yet), and the other
4639         methods only work when creating/resizing a single region,
4640         which is "region 0".  
4641         (Code for multiple region support will be added later.)
4642
4643         * util/mag_image.c:
4644         Now we raise the magnifier window each time it's refreshed;
4645         this will help keep it on top.
4646         
4647         * util/mag_client.h:
4648         Added simple wrappers for above, used by mag_control.
4649         For general use, it's recommended to use the bonobo magnifier
4650         control API directly instead of using these wrappers.
4651
4652         * util/mag_image.h:
4653         Moved ZoomRegionData from magnifier.c to this file.
4654         
4655         * util/mag_control.c: 
4656         Added some code to exercise new IDL implementations.
4657         
4658 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
4659
4660         * libspi/text.c: Provide implementation for getAttributes.
4661
4662 2002-02-04  Bill Haneman <bill.haneman@sun.com>
4663         
4664         * configure.in:
4665         Incremented revision.
4666
4667         * test/test-simple.c:
4668         Replaced use of deprecated g_main_iteration with 
4669         g_main_context_iteration.
4670         
4671 2002-01-28  Padraig O'Briain <padraig.obriain@sun.com>
4672
4673         * configure.in:
4674         Incremented revision for desktop alpha 2.
4675
4676 2002-01-28  Mark McLoughlin  <mark@skynet.ie>
4677
4678         * libspi/remoteobject.[ch]: make RemoteObject and interface rather
4679         than an atk object.
4680
4681         * test/simple-at.c: include netinet/in.h.
4682
4683 2002-01-24  Mark McLoughlin  <mark@skynet.ie>
4684
4685         * cspi/spi_accessible.c: (Accessible_getRelationSet):
4686         use NULL, not CORBA_OBJECT_NIL.
4687
4688         * libspi/accessible.c:
4689         (impl_accessibility_accessible_get_relation_set):
4690         allocate the sequence correctly.
4691
4692         * libspi/remoteobject.h: kill spi_remote_object_new.
4693
4694         * test/test-simple.c: (validate_accessible): add code
4695         to test relation sets, now all we need is to figure
4696         out how to excercise this code path :/
4697
4698 2002-01-18  Michael Meeks  <michael@ximian.com>
4699
4700         * test/test-simple.c
4701         (key_listener_cb): consume the key.
4702         (test_keylisteners): update.
4703         (main): wait for any pending unrefs on events.
4704
4705         * registryd/deviceeventcontroller.c
4706         (spi_controller_update_key_grabs): only re-issue the
4707         grab on a key release.
4708         (spi_device_event_controller_forward_key_event):
4709         refresh the keygrabs before we notify the listeners,
4710         to reduce the X ungrab / re-grab race.
4711         (spi_controller_register_with_devices): remove
4712         XSelectInput - we do that with the gdk_window_ call.
4713         (_spi_controller_device_error_handler): return a value.
4714         s/GDK_DISPLAY/spi_get_display/
4715
4716 2002-01-17  Michael Meeks  <michael@ximian.com>
4717
4718         * registryd/deviceeventcontroller.c
4719         (_deregister_keygrab): don't blow out the later
4720         assertion.
4721
4722         * test/test-simple.c (test_keylisteners): do a
4723         more intelligent validation.
4724
4725 2002-01-14  Michael Meeks  <michael@ximian.com>
4726
4727         * atk-bridge/bridge.c
4728         (gnome_accessibility_module_init),
4729         (gnome_accessibility_module_shutdown): impl.
4730         (gtk_module_init): protect vs. double inits.
4731         (add_signal_listener): impl.
4732         (spi_atk_bridge_state_event_listener): kill
4733         (deregister_application): split out of
4734         (spi_atk_bridge_exit_func): here.
4735
4736 2002-01-18  Bill Haneman <bill.haneman@sun.com>
4737
4738         * test/simple-at.c:
4739         Added caret tracking when using magnifier, and 
4740         now use text bounds for focus tracking of text elements, rather than
4741         the component bounds - this is helpful for short text fields in long
4742         table cells, at high magnification.
4743         
4744 2002-01-16  Bill Haneman <bill.haneman@sun.com>
4745
4746         * registryd/deviceeventcontroller.c:
4747         Regression fix for keylistener de-registration; global keygrabs
4748         were not being released when deregisterKeystrokeListener was
4749         called in cspi, since 
4750         Accessibility_DeviceEventController_deregisterKeystrokeListener
4751         was called with a zero-length keyset.  That is because the cspi
4752         method, SPI_deregisterKeystrokeListener, does not take a keyset
4753         parameter but instead should remove all the key grabs held be a
4754         keystroke listener.  
4755         The code in impl_deregister_keystroke_listener was changed to copy
4756         the keylist from the listener instance previously registered with
4757         the DeviceEventController before releasing the grabs.
4758
4759         * registryd/registry.c:
4760         * registryd/deviceeventcontroller.c:
4761         * libspi/spi-private.h:
4762         * libspi/util.c:
4763         Changed spelling of "re-enterant" to "re-entrant" globally.
4764
4765 2002-01-16  Bill Haneman <bill.haneman@sun.com>
4766
4767         * test/test-simple.c:
4768         Changed key listeners test - the test was slightly mis-using the
4769         (admittedly poorly documented) SPI_generateKeyboardEvent API.
4770         It now uses '=' as the key event listened to and generated,
4771         relying on a keysym match rather than assuming that keycode 33 
4772         is always equal to keysym '!'.
4773
4774 2002-01-15  Bill Haneman <bill.haneman@sun.com>
4775
4776         * test/simple-at.c:
4777         Changed simple-at to use a specific keyset, rather than
4778         SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
4779         manager, desktop, etc.
4780         
4781 2002-01-11  Bill Haneman <bill.haneman@sun.com>
4782
4783         * registryd/deviceeventcontroller.c:
4784         Replaced standard X error handler with a special handler that 
4785         is non-fatal for failed keygrabs.  This works around 
4786         problems with keygrab clashes sometimes observed on 
4787         Solaris using CDE.
4788         Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate 
4789         mouse handling code as yet).
4790         
4791 2002-01-11  Bill Haneman <bill.haneman@sun.com>
4792
4793         * configure.in:
4794         Incremented revision for desktop alpha release.
4795
4796         * README:
4797         Fixed a couple of the more glaring errors (still not 
4798         very up-to-date).
4799
4800 2002-01-11  Michael Meeks  <michael@ximian.com>
4801
4802         * registryd/deviceeventcontroller.c
4803         (spi_device_event_controller_forward_key_event): kill
4804         XUngrabKey / XKeyGrab race.
4805         (spi_controller_grab_keyboard): rename to
4806         (spi_controller_update_key_grabs): this, and deal
4807         with incremental adding / removing grabs more
4808         sensibly.
4809         (_register_keygrab): ensure we're not pending a remove.
4810         (spi_grab_mask_free): impl.
4811         (spi_controller_register_global_keygrabs): split out
4812         common code into:
4813         (handle_keygrab): impl.
4814         (_deregister_keygrab): impl.
4815         (spi_controller_deregister_global_keygrabs): impl.
4816         (spi_controller_update_key_grabs): re-issue the grab if
4817         we just recieved a notification.
4818
4819         * test/test-simple.c (key_listener_cb): remove debug.
4820
4821         * registryd/deviceeventcontroller.c
4822         (spi_controller_register_device_listener): after
4823         registering a global keygrab, actualy register it !
4824         don't wait for a timeout; doh !
4825
4826         * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
4827         to make it more readable / manipulable.
4828         s/grabmask/grab_mask/ s/refcount/ref_count/
4829         s/keyval/key_val/ s/modmask/mod_mask
4830
4831 2002-01-08  Michael Meeks  <michael@ximian.com>
4832
4833         * registryd/deviceeventcontroller.c
4834         (spi_controller_register_with_devices): use gdk calls to
4835         setup a filter.
4836         (global_filter_fn): implement the filter.
4837         (spi_device_event_controller_check_key_event): rename to
4838         (spi_device_event_controller_forward_key_event): this & upd.
4839         (spi_get_display): replace with GDK_DISPLAY.
4840
4841         * registryd/deviceeventcontroller.c
4842         (spi_controller_deregister_device_listener): unroll into
4843         (impl_deregister_keystroke_listener): here to simplify.
4844         (spi_controller_register_global_keygrabs): split cut and
4845         paste (!) out into (_register_keygrab): here, shorter & sweeter.
4846         (spi_controller_deregister_device_listener): remove.
4847         (impl_register_mouse_listener): remove, no mouse listener
4848         support in at-spi-1.0
4849
4850         * registryd/registry.c
4851         (_device_event_controller_hook): kill.
4852         (spi_registry_init): upd.
4853
4854         * registryd/deviceeventcontroller.c
4855         (spi_device_event_controller_class_init): upd.
4856         (spi_check_key_event): merge into.
4857         (spi_device_event_controller_check_key_event):
4858         here and kill strange static ev init, don't leak
4859         the x_event - nor dynamicaly allocate it.
4860
4861         * registryd/registry-main.c (main): re-direct
4862         timeout to remove strange vtable mess.
4863
4864         * registryd/deviceeventcontroller.c
4865         (remove_listener_cb): impl.
4866         (spi_controller_deregister_device_listener):
4867         fix re-enterancy hazard.
4868
4869 2002-01-07  Michael Meeks  <michael@ximian.com>
4870
4871         * registryd/deviceeventcontroller.c
4872         (spi_device_event_controller_new): upd.
4873         (impl_notify_listeners_sync): upd. debug.
4874         (spi_notify_keylisteners): fix re-enterancy hazards,
4875         prettify, remove O(n*n) iteration.
4876         (spi_controller_grab_keyboard): fix iteration.
4877         (spi_check_key_event): re-format to suit coding style.
4878         Clean all the warnings - we're warning free.
4879
4880         * registryd/deviceeventcontroller.h:
4881         * registryd/registry.h: make mutualy referential with
4882         typesafe forward references instead of (!) void pointer
4883         hacks.
4884
4885 2002-01-11  Michael Meeks  <michael@ximian.com>
4886
4887         * cspi/spi_accessible.c (role_names): add a role name
4888         to sync this array with the enum; and make the regression
4889         tests pass, sigh.
4890
4891 2002-01-10  Michael Meeks  <michael@ximian.com>
4892
4893         * cspi/spi_registry.c (SPI_generateKeyboardEvent): 
4894         allow expansion of enumeration & kill warning.
4895
4896         * test/test-simple.c (key_listener_cb): impl.
4897         (test_keylisteners): impl.
4898
4899         * cspi/spi-listener.h: make listener signatures const
4900         on the provided (const) events.
4901
4902         * test/keysynth-demo.c: upd. to const events.
4903
4904         * test/simple-at.c: ditto.
4905
4906 2002-01-11  Bill Haneman <bill.haneman@sun.com>
4907
4908         * configure.in:
4909         Rev the version to 0.5 (the previous tarball was named 0.4, 
4910         even though the micro number was 3), so we need to rev upwards
4911         again for beta2/"desktop-alpha" 
4912  
4913         * test/demo.csh:
4914         Checked in a demo script, which requires editing before use!
4915         Proceed with caution.
4916         
4917         * libspi/value.h:
4918         Fixed typo in header which was redefining SPI_ACTION_CLASS.
4919
4920         * cspi/spi_accessible.c:
4921         Add a couple of missing enum initializations, and fix some enum
4922         comments.
4923
4924         * cspi/spi_registry.c:
4925         Add comment describing keystring parameter to SPI_generateKeyboardEvent.
4926         
4927         * docs/reference/cspi/at-spi-cspi-sections.txt:
4928         Remove/fix a couple of broken document references.
4929
4930         * test/simple-at.c:
4931         Minor tweaks to the demo.  We now (sigh) use Alt-SHIFTLOCK as well
4932         as Alt-Control to listen for commands, since on some systems
4933         Control-Alt may already be grabbed.
4934
4935 2002-01-10  Bill Haneman <bill.haneman@sun.com>
4936
4937         * configure.in:
4938         Update version number to 0.4 for Beta2.
4939         
4940         * libspi/accessible.c, libspi/accessible.h:
4941         Expose spi_accessible_construct, to enable libgail-gnome
4942         construction from spi_accessible subtype.
4943
4944         * utils/magnifier.c:
4945         Workaround for bug in some non-gnome-compliant window managers
4946         which made magnifier resize improperly.
4947
4948 2002-01-09  Bill Haneman <bill.haneman@sun.com>
4949
4950         * libspi/accessible.c: (spi_accessible_new) :
4951         Move the test for SPI_IS_REMOTE_OBJECT to
4952         spi_accessible_new_return, fixing a bug and compile time warning.
4953         
4954 2002-01-08  Michael Meeks  <michael@ximian.com>
4955
4956         * registryd/registry.c (parse_event_type): remove strndup.
4957
4958         * libspi/Makefile.am (libspi_la_SOURCES): remove
4959         sources already included in the headers section.
4960
4961         * libspi/util.c: add.
4962
4963         * libspi/spi-private.h: add.
4964
4965         * registryd/registry.c: update to moved list iterators.
4966
4967 2002-01-05  Michael Meeks  <michael@ximian.com>
4968
4969         * test/simple-at.c (main): upd. auto-module set to atk-bridge
4970
4971         * test/test-simple.c (main): ditto.
4972
4973 2002-01-04  Michael Meeks  <michael@ximian.com>
4974
4975         * libspi/accessible.c (spi_accessible_new): remove 2nd,
4976         redundant construct.
4977
4978         * registryd/registry.c
4979         (get_listener_list): impl.
4980         (impl_accessibility_registry_register_global_event_listener):
4981         re-impl. to simplify using ~, remove dodgy const cast off.
4982         (parse_event_type): constify.
4983         (impl_accessibility_registry_deregister_global_event_listener_all): 
4984         re-write, more efficiency and simplicity, kill re-enterancy
4985         hazard.
4986         (compare_listener_corbaref, compare_corba_objects),
4987         (compare_listener_quarks): define out.
4988         (impl_accessibility_registry_deregister_global_event_listener): 
4989         re-write for effiency, and nail re-enterancy hazard.
4990         (impl_accessibility_registry_get_desktop_list): impl.
4991         (re_enterant_list_delete_link): impl.
4992         (re_enterant_list_foreach): impl.
4993         (remove_listener_cb): impl.
4994         (_registry_notify_listeners): kill.
4995         (notify_listeners_cb): impl.
4996
4997         * cspi/spi_registry.c (SPI_freeDesktopList): impl.
4998         (SPI_getDesktopList): impl.
4999
5000         * test/test-simple.c (test_desktop): test the methods.
5001
5002 2002-01-03  Michael Meeks  <michael@ximian.com>
5003
5004         * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
5005         keystrings since we free them
5006         (SPI_freeAccessibleKeySet): in here.
5007
5008         * libspi/accessible.c (spi_accessible_new): kill warning,
5009         wonder what is going on with the constructor here.
5010
5011 2002-03-01  Bill Haneman <bill.haneman@sun.com>
5012
5013         * libspi/accessible.c (spi_accessible_new ()) :
5014         Added check to see if AtkObject is an SpiRemoteObject before
5015         creating an SpiAccessible.
5016         
5017 2002-05-01  Bill Haneman <bill.haneman@sun.com>
5018
5019         * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
5020         Enable keygrabs using the Control modifier, now that they are
5021         working properly (they were previously disabled).
5022
5023         * test/simple-at.c:
5024         Change the command keygrab for this demo to "Control+Alt", so as
5025         to conflict with fewer other key commands on the system; this
5026         means that the quit command for "simple-at" is now "Ctrl-Alt-q".
5027
5028         Removed a pointlessly-chatty keylistener for unshifted keys
5029         (shifted keys are still reported).
5030         
5031 2002-02-01  Bill Haneman <bill.haneman@sun.com>
5032
5033         * libspi/remoteobject.h:
5034         * libspi/remoteobject.c:
5035         Added definitions for special AtkObject subtype, required for
5036         support of remote components (specifically, used by BonoboControl
5037         accessibility implementation).
5038         
5039 2002-01-02 Marc Mulcahy  <marc.mulcahy@sun.com>
5040
5041         * cspi/spi.h: synched relation types with ATK
5042
5043         * cspi/spi_accessible.c: Added implementations of
5044         AcccessibleRelation_* methods
5045
5046         * idl/Accessibility_Relation.idl: added getRelationTypeName
5047         method.  Synched known relation types with ATK.  Allowed for
5048         relation type extension with the RELATION_EXTENDED type.
5049         
5050         * libspi/relation.c: Provided implementations for
5051         AccessibleRelation methods.
5052
5053 2002-01-01  Bill Haneman <bill.haneman@sun.com>
5054
5055         API tweaks for today's API 'freeze'.
5056
5057         * idl/*:
5058         Added placeholder functions to allow future compatible expansion
5059         of the IDL interfaces.
5060
5061         * idl/Accessibility_Registry.idl:
5062         Changed generateKeyEvent to generateKeyboardEvent.  Changed
5063         signature of this method to accept an optional keystring in
5064         parameter (for complex text input synthesis) and changed use of
5065         simple 'boolean' parameter in registerKeystrokeListener to a
5066         struct, EventListenerMode.
5067
5068         * cspi/spi_accessible.c:
5069         * cspi/spi.h:
5070         * cspi/spi_streamablecontent.c:
5071         Added references to AccessibleStreamableContent interface, and
5072         definition and implementation of AccessibleStreamableContent 
5073         C bindings.
5074
5075         * cspi/spi_registry.c:
5076         * cspi/spi.h:
5077         Changed generateKeyEvent API to generateKeyboardEvent,
5078         taking a new (optional) keystring parameter to support complex
5079         text input.
5080         
5081         * at-bridge/*:
5082         * atk-bridge/*:
5083         Renamed directory (to better reflect its actual purpose, bridging
5084         from at-spi to ATK).  The .so module is also now named
5085         libatk-bridge.so.
5086
5087         * idl/Accessibility_Hypertext.idl:
5088         * libspi/accessible.c:
5089         * libspi/hypertext.h:
5090         * libspi/hypertext.c:
5091         Changed Accessibility_Hypertext to *not* derive from
5092         Accessibility_Text.
5093
5094         * cspi/spi_registry.c:
5095         Added list of legal event type names for 'window' events, which
5096         completes the registry event API.
5097
5098 2001-12-22  Marc Mulcahy  <marc.mulcahy@sun.com>
5099
5100         * at-bridge/bridge.c: Added registration for separate
5101         "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
5102         signals.  If either of the first two parameters to the generic
5103         bridge signal handler are ints, they are passed on as event
5104         details.  This allows an AT to determine what text was inserted.
5105
5106 2001-12-21  Bill Haneman <bill.haneman@sun.com>
5107
5108         * registryd/deviceeventcontroller.c:
5109         Fixed regressions in generateKeyEvent caused by the removal of
5110         gdk_init from registryd; we now use pure X calls to connect to the
5111         display, which makes sense because deviceeventcontroller already
5112         uses a fair bit of X API (should eventually be migrated to a
5113         'portability layer').
5114
5115         * registryd/desktop.c:
5116         Fixed minor regression in spi_desktop_init, changed the way the
5117         desktop name is being set to work with new spi_base API
5118         (gobject-based, rather than AtkObject-based).
5119
5120         * registryd/Makefile.am:
5121         Minor revision of makefile to use XTST_LIBS variable rather than
5122         hard-wiring the Xtst LD_ADD element.
5123
5124         * test/keysynth-demo.c:
5125         Tweaked an output message; added initialization of the
5126         'keystrings' member of the "switch listener" key_set.
5127
5128         * libspi/relation.c:
5129         Squashed compile-time warning.
5130
5131         * libspi/accessible.c:
5132         Cosmetic and formatting fixes, renamed a static method.
5133         
5134 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
5135
5136         * libspi/accessible.c 
5137         * libspi/action.c
5138         * libspi/application.c 
5139         * libspi/base.c 
5140         * libspi/base.h
5141         * libspi/component.c 
5142         * libspi/editabletext.c
5143         * libspi/hyperlink.c 
5144         * libspi/hypertext.c
5145         * libspi/image.c 
5146         * libspi/selection.c 
5147         * libspi/table.c
5148         * libspi/text.c 
5149         * libspi/value.c 
5150         * registryd/desktop.c:
5151         Changed SpiBase to contain a GObject pointer rather than an AtkObject
5152
5153 2001-12-17  Bill Haneman <bill.haneman@sun.com>
5154
5155         * idl/Accessibility_Registry.idl:
5156         Added boolean member 'is_text' to DeviceEvent.  This is for the
5157         use of key events, and helps prevent ambiguity between composed
5158         key strings and keysym names, since both may potentially be
5159         returned in the 'event_string' member.
5160
5161         * at-bridge/bridge.c:
5162         * registryd/deviceeventcontroller.c:
5163         Use the 'is_text' member when notifying device event listeners.
5164         Knon issue: composed characters are not dealt with correctly by
5165         the global key listener implementation yet.
5166         
5167 2001-12-17  Bill Haneman <bill.haneman@sun.com>
5168
5169         * at-bridge/bridge.c:
5170         Namespaced local static methods to spi_atk_bridge_* where
5171         previously named bridge_*, and spi_* elsewhere.
5172
5173         * at-bridge/bridge.c:
5174         * cspi/bonobo/cspi-bonobo-listener.c:
5175         Added demarshalling/conversion for string member of
5176         Accessibility_DeviceEvent to AccessibleKeystroke.
5177
5178         * registryd/deviceeventcontroller.c:
5179         Added code to fill the Accessibility_DeviceEvent key string value
5180         member for global key events (i.e. from XGrabKey), to match
5181         behavior of Accessibility_DeviceEvent from the toolkit key events
5182         from the bridge.  Fixed timestamp in global key event notifications.
5183
5184         * test/simple-at.c:
5185         Added printout of key event's string value to
5186         report_ordinary_key_event, for demo/debugging purposes.
5187
5188 2001-12-15  Bill Haneman <bill.haneman@sun.com>
5189
5190         * idl/Accessibility_Registry.idl:
5191         Removed Accessibility_KeyStroke structure in favor of generic
5192         Accessibility_DeviceEvent structure.
5193         Changed Accessibility_ControllerEventMask from a struct to an
5194         unsigned long.
5195
5196         * at-bridge/bridge.c:
5197         Changed APIs to use DeviceEvent structure as above, and removed
5198         bogus casting between these event structures.
5199
5200         * cspi/spi-listener.h:
5201         Added keystring member of AccessibleKeystroke structure, to enable
5202         matching on event "names" rather than only hardware codes and
5203         keysyms.
5204
5205         * cspi/spi.h:
5206         Added keystrings member of AccessibleKeySet struct, to allow
5207         matching on event names (as above).
5208         Added declarations for SPI_createAccessibleKeySet and
5209         SPI_freeAccessibleKeySet.  Due to changes in libspi, we now pass
5210         event modmasks directly as unsigned ints rather than structs with
5211         refcounts, in the DeviceEventController methods.
5212
5213         * cspi/spi_registry.c:
5214         Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
5215
5216         * cspi/spi-roletypes.h:
5217         Added documentation of newly added SPI Roles.
5218
5219         * cspi/bonobo/cspi-bonobo-listener.c:
5220         Changes in support of API changes above.
5221         
5222         * libspi/accessible.c:
5223         Converted APIs to use DeviceEvent structure (see IDL changes
5224         above). 
5225
5226         * registryd/deviceeventcontroller.c:
5227         Added DEControllerGrabMask structure to track keygrabs not only by
5228         modmask but by keyset as well; this allows us to do "global"
5229         (i.e. X) keygrabs on a per-key or keyset basis rather than always
5230         grabbing on AnyKey and then filtering after-the-fact.
5231         Bugfixes for event filtration mean that we don't get false matches
5232         on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
5233
5234         * registryd/deviceeventcontroller.c:
5235         Namespaced a number of static methods to use spi_ prefix.  Major
5236         revision to internals of global (i.e. X) key grabs.
5237
5238         * registryd/deviceeventcontroller.h:
5239         Removed keymask_list and added keygrabs_list to
5240         SpiDeviceEventController struct.
5241
5242         * test/simple-at.c:
5243         Added use of SPI_createAccessibleKeySet API when creating a
5244         listener for only one key.  Attach a listener to "shift spacebar
5245         SPI_KEY_RELEASE" as a demonstration.  Changed (incorrect) usage of
5246         X key event names to SPI key event names, so that listeners are
5247         registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
5248         
5249         * test/keysynth-demo.c:
5250         Changed (incorrect) use of X key event names (KeyPressed,
5251         KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
5252         
5253
5254 2001-12-12  Bill Haneman <bill.haneman@sun.com>
5255
5256         * libspi/accessible.c:
5257         Convert all AtkRole enumerations to Accessibility_Role enums when
5258         getting a role from an AtkObject.
5259         
5260         * cspi/spi_accessible.c:
5261         Complete the conversion of Accessibility_Role enums at runtime to
5262         AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
5263         role enums correctly match those given in spi-roletypes.h.  
5264         Re-synchronize the local names list for AccessibleRole_getName ().
5265         AccessibleRole_getName is now deprecated, since it duplicates the
5266         more reliable Accessible_getRoleName.
5267         Added some role types from Accessibility_Role.idl.
5268
5269         * idl/Accessibility_Role.idl:
5270         Added some role types used by AtkRole.
5271
5272 2001-12-12  Bill Haneman <bill.haneman@sun.com>
5273         
5274         * cspi/spi.h:
5275         * cspi/spi_registry.c:
5276         * cspi/spi_event.c:
5277         * cspi/cspi-bonobo-listener.c:
5278         Namespaced all methods that did not begin with an "SPI_" or
5279         "Accessible" prefix to "SPI_".  
5280
5281         * cspi/spi_main.c:
5282         Homogenized internal function namespace to "cspi_" for statics.
5283         
5284         * test/*.c:
5285         Patched tests to use the new CSPI API.
5286
5287         * docs/reference/cspi/at-spi-cspi-sections.txt:
5288         Updated docs to reflect namespace changes, and added a number of
5289         methods to the documentation.
5290         
5291         * registryd/registry.c:
5292         Changed use of strings and string hashes in listener event
5293         matching and parse_event_string to use GQuark, which is guaranteed
5294         unique.
5295         
5296         * registryd/registry.h:
5297         Squashed annoying warning.
5298
5299         * idl/Accessibility_Role.idl:
5300         Extended range of available Accessibility_Role values.
5301
5302         * cspi/spi_accessible.c:
5303         Re-ordered role names. 
5304
5305 2001-12-12  Bill Haneman <bill.haneman@sun.com>
5306
5307         * idl/Accessibility_Value.idl:
5308         Revert use of union back to CORBA_double, since the double type is
5309         more efficient and can contain the other types without loss of
5310         precision.
5311
5312         * idl/Accessibility_Accessible.idl:
5313         Added method Accessibility:Accessible:getRoleName, to complement
5314         Accessibility:Accessible:getRole.
5315
5316         * cspi/spi_accessible.c:
5317         * cspi/spi.h:
5318         Added C binding for above, Accessible_getRoleName (), and changed
5319         signature of Accessible_getRole () to return an AccessibleRole.
5320
5321         * cspi/spi-roletypes.h:
5322         Changed AccessibleRole_getName to return a char * instead of a
5323         const char *.  This method is now at least temporarily deprecated 
5324         in favor of asking Accessibles for their RoleNames directly.
5325
5326         * libspi/value.c:
5327         Revert to match Accessibility_Value.idl;
5328
5329         * cspi/spi_value.c:
5330         * cspi/spi.h:
5331         Change signature of AccessibleValue methods to use double rather
5332         than float.
5333
5334         * cspi/spi.h:
5335         * cspi/spi_accessible.c:
5336         Changed Accessible_getRole to return an AccessibleRole enum rather
5337         than a UTF-8 string.  The UTF-8 string can still be obtained via
5338         AccessibleRole_getName ().
5339         
5340         * test/test-simple.c:
5341         Add test_action.  Small fixup to match API change to Accessible_getRole.
5342
5343         * libspi/action.c:
5344         Bugfix for get_action_from_servant ().
5345
5346 2001-12-11  Michael Meeks  <michael@ximian.com>
5347
5348         * libspi/libspi.h: remove registry.h and
5349         desktop.h, deviceeventcontroller.h
5350
5351         * libspi/Makefile.am: remove registry.[ch],
5352         desktop.[ch], deviceeventcontroller.[ch]
5353
5354         * registryd/Makefile.am: add registry.[ch],
5355         desktop.[ch], rename registryd.c to registry-main.c.
5356         add deviceeventcontroller.[ch]
5357
5358 2001-12-11  Bill Haneman <bill.haneman@sun.com>
5359
5360         * test/simple-at.c:
5361         Replace setenv() call with putenv ().
5362
5363         * libspi/component.c:
5364         Bugfix in AccessibleComponent_getExtents (),
5365         (from Adi Dascal).
5366         
5367 2001-12-11  Michael Meeks  <michael@ximian.com>
5368
5369         * libspi/image.c (impl_getImageExtents): impl.
5370         (spi_image_class_init): upd.
5371
5372         * cspi/spi_image.c
5373         (AccessibleImage_getImageDescription): fix daft bug
5374         of mine (doh).
5375
5376         * test/test-simple.c (global_listener_cb): update
5377         to only quit if not --poke
5378         (main): catch --poke.
5379         (validate_accessible): upd. dumping, call test_image
5380         (test_image): impl.
5381
5382         * libspi/Makefile.am (IDL_DEPS): fixup the IDL
5383         dependencies.
5384
5385         * idl/Accessibility.idl: update all IDL includes.
5386
5387         * idl/*.idl - rename to namespace - this sucks, blame
5388         mjs' bad decision for oafd.
5389
5390         * test/test-simple.c (create_test_window): add more tests.
5391         (create_tree): split this out.
5392         (validate_accessible): bugfix.
5393
5394 2001-12-11  Michael Meeks  <michael@ximian.com>
5395
5396         * cspi/bonobo/cspi-bonobo-listener.c: 
5397         (cspi_kestroke_listener_unref),
5398         (cspi_event_listener_unref): impl. undoing previous
5399         homenous environment - for Bill.
5400
5401         * cspi/spi_table.c (long_seq_to_array): use
5402         malloc instead.
5403
5404         * cspi/spi_main.c: split out all bonoboish bits into
5405         bonobo/
5406
5407         * cspi/spi-impl.h: upd. typedefs.
5408
5409         * cspi/spi_registry.c: update to lowlevel API,
5410         return booleans to indicate success in some places.
5411
5412         * cspi/spi_event.c: update to lowlevel API.
5413
5414         * cspi/bonobo/Makefile.am: add.
5415
5416         * cspi/bonobo/cspi-lowlevel.h: add
5417
5418         * cspi/bonobo/cspi-bonobo.c: add
5419
5420         * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
5421
5422         * cspi/Makefile.am: remove spi-listener-impl.[ch],
5423         (SUBDIRS): add bonobo, link in the libs.
5424
5425         * cspi/spi-util.c: kill this file.
5426
5427         * TODO: merge in my bits.
5428
5429 2001-12-11  Michael Meeks  <michael@ximian.com>
5430
5431         * test/test-simple.c (test_value, test_table, main):
5432         remove unused variables causing warnings.
5433
5434         * configure.in: cleanup checks - require gail.
5435
5436 2001-12-11  Bill Haneman  <bill.haneman@sun.com>
5437
5438         * idl/Value.idl:
5439         Changed Value interface to use SValue (scalars) rather than
5440         assuming all values are floats.  This allows floats, doubles,
5441         longs, shorts, and unsigned values to be manipulated.
5442         Introduced Accessibility:SValue union.
5443
5444         * libspi/value.c:
5445         Updated to use new API above, and to work correctly with GValues
5446         of different types in AtkValue.
5447
5448         * cspi/spi_value.c:
5449         Updated to use new API above.  cspi's API is as yet unchanged.
5450
5451         * TODO: 
5452         Updated the Value revision action item.
5453         
5454 2001-12-10  Bill Haneman  <bill.haneman@sun.com>
5455
5456         * test/test-simple.c:
5457         Added test_table (GtkTreeView widget in test window to follow).
5458         Un-commented test_value, added GtkRange widget.
5459         Added GtkTreeView widget with GtkListStore.  It passes regression
5460         test but leaks one SPI object for some reason.
5461
5462         * libspi/value.c:
5463         Fixed bug in impl__set_currentValue.
5464
5465 2001-12-10  Michael Meeks  <michael@ximian.com>
5466
5467         * cspi/spi_text.c: audit for exception handling,
5468         tolerating NULL object references safely etc.
5469
5470         * cspi/spi_value.c: ditto.
5471
5472         * cspi/spi_table.c (AccessibleTable_getSummary),
5473         (AccessibleTable_getAccessibleAt),
5474         (AccessibleTable_getRowHeader),
5475         (AccessibleTable_getColumnHeader),
5476         (AccessibleTable_getCaption): fix bugs hidden by
5477         incorrect casts.
5478         (long_seq_to_array): impl.
5479         (AccessibleTable_getSelectedRows),
5480         (AccessibleTable_getSelectedColumns): use it.
5481
5482 2001-12-10  Bill Haneman  <bill.haneman@sun.com>
5483
5484         * TODO:
5485         Added a TODO list (rough and short for now).
5486
5487         * cspi/spi_hyperlink.c:
5488         * cspi/spi_hypertext.c:
5489         Fixed macro name typos, and remove use of obsolete macro in 
5490         AccessibleHyperlink_getLink.
5491
5492         * cspi/spi_action.c:
5493         * cspi/spi_accessible.c:
5494         * cspi/spi_application.c:
5495         * cspi/spi_component.c:
5496         * cspi/spi_selection.c:
5497         * cspi/spi_text.c:
5498         * cspi/spi_value.c:
5499         Documentation fixes (removed return values from ref/unref methods).
5500
5501 2001-12-10  Michael Meeks  <michael@ximian.com>
5502
5503         * cspi/spi_action.c: audit for exception handling,
5504         tolerating NULL object references safely etc.
5505
5506         * cspi/spi_accessible.c: ditto.
5507
5508         * cspi/spi_component.c: ditto.
5509
5510         * cspi/spi_editabletext.c: ditto.
5511
5512         * cspi/spi_hyperlink.c: ditto.
5513
5514         * cspi/spi_hypertext.c: ditto.
5515
5516         * cspi/spi_image.c: ditto.
5517
5518         * cspi/spi_selection.c: ditto.
5519
5520 2001-12-10  Michael Meeks  <michael@ximian.com>
5521
5522         * configure.in: use cspi/libspi.pc.in instead.
5523
5524         * Makefile.am (pkgconfig_DATA): upd. to match.
5525
5526         * test/simple-at.c (report_focus_event): kill hacks around
5527         bad return values, use putenv not setenv
5528
5529         * libspi/desktop.c (impl_desktop_get_child_at_index): don't
5530         fire ChildGone - I killed it.
5531
5532         * libspi/component.c
5533         (impl_accessibility_component_get_extents): remove
5534         bogus return.
5535
5536         * idl/Accessible.idl: kill ChildGone exception.
5537
5538         * cspi/*.[ch]: kill int return from ref / unref.
5539         
5540         * cspi/spi_main.c (cspi_object_add_check): fold into
5541         (cspi_object_add): here.
5542
5543         * cspi/spi_component.c (AccessibleComponent_getExtents):
5544         handle exceptions elegantly.
5545
5546         * cspi/spi-private.h (cspi_check_ev_return),
5547         (cspi_return_if_fail): impl.
5548
5549         * cspi/spi_accessible.c: use extensively.
5550         (AccessibleStateSet_equals): add direct compare check.
5551
5552         * cspi/spi_selection.c: tolerate NULL objs, and check
5553         exceptions before return.
5554
5555         * cspi/spi-util.c (cspi_warn_ev): rename to
5556         (cspi_check_ev): this & don't pass ev in; no point.
5557
5558 2001-12-10  Michael Meeks  <michael@ximian.com>
5559
5560         * test/test-simple.c: use putenv not setenv
5561         (get_environment_vars): more chatty if you're not using
5562         the fun bits.
5563
5564         * test/simple-at.c: do the setenv so more people see the
5565         nice demo easily.
5566
5567 2001-12-10  Bill Haneman <bill.haneman@sun.com>
5568
5569         * libspi/registry.c:
5570         Changed check of CORBA_environment on notification to be a warning
5571         instead of an error for the moment, since we can recover from this
5572         error when caused by a queued notification from a dead app.
5573         
5574         * libspi/value.c:
5575         Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
5576         used by all current implementors of AtkValue), and coerce to
5577         CORBA_float. (Proper general case fix may require change to Value.idl).
5578
5579 2001-12-09  Bill Haneman <bill.haneman@sun.com>
5580
5581         * cspi/spi.h:
5582         * cspi/spi_event.c:
5583         * cspi/spi_accessible.c:
5584         Documentation fixes: added user_data params to documentation for 
5585         listeners and callbacks.  
5586
5587         * cspi/spi_accessible.c: 
5588         Changed AccessibleStateSet_compare to return a
5589         StateSet rather than return the difference set into a third parameter.
5590         
5591         
5592 2001-12-09  Bill Haneman <bill.haneman@sun.com>
5593
5594         * configure.in:
5595         Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
5596         remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
5597         it). 
5598
5599         * Makefile.am:
5600         Remove subdirectory po from SUBDIRS for now.
5601
5602         * at-bridge/bridge.c:
5603         Beefed up a couple of debug printouts.
5604         One-line fix for signal notification name formatting.
5605
5606         * libspi/accessible.c:
5607         Added assertion to spi_accessible_new ().
5608
5609         * libspi/application.c:
5610         Put #ifdef qualifiers around a printf.
5611
5612         * libspi/value.c:
5613         Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
5614
5615         * registryd/Makefile.am:
5616         * util/Makefile.am:
5617         Replaces use of XML_I18N_MERGE_SERVER_RULE with
5618         INTLTOOL_SERVER_RULE macro.
5619
5620         * test/simple-at.c:
5621         Added an event listener for several ATK signals, for
5622         testing and debugging.  Removed a few g_warnings.
5623         Added test output if focussed item implements the Value interface.
5624
5625         * test/test-simple.c:
5626         Added test_value () function (known not to pass at the moment, so
5627         not actually called yet.
5628         
5629 2001-12-08  Michael Meeks  <michael@ximian.com>
5630
5631         * at-bridge/bridge.c (bridge_focus_tracker),
5632         (emit_eventv): fix the same ref. leak.
5633         (register_atk_event_listeners): don't leak.
5634
5635         * cspi/spi-listener-impl.c (cspi_event): more 
5636         protection from client code.
5637
5638         * test/test-simple.c (test_desktop): unref the app.
5639
5640         * test/Makefile.am: upd. TESTS.
5641
5642         * at-bridge/bridge.c (bridge_exit_func): release the registry.
5643
5644         * test/keysynth-demo.c (keysynth_exit): unref the listeners.
5645
5646         * cspi/spi_accessible.c (Accessible_queryInterface): constify.
5647
5648         * cspi/spi_registry.c: constify in strings.
5649         (deregisterGlobalEventListenerAll): don't release the ref.
5650
5651         * cspi/spi.h: start removing redundant / conflicting
5652         gtkdoc comments, making the API readable at a glance :-)
5653         
5654         * cspi/spi_event.c (AccessibleEventListener_unref): impl.
5655
5656         * test/keysynth-demo.c (keysynth_exit, main): upd.
5657
5658         * test/simple-at.c (main, simple_at_exit): upd.
5659
5660         * test/test-simple.c (unutterable_horror): kill.
5661         (utterable_normal_derefs): kill.
5662         (main): upd & do a setenv before gtk_init, so that we
5663         can use memprof - and to save the pain of remembering
5664         this, if we're running under memprof - don't exit.
5665
5666         * cspi/spi_main.c (SPI_exit): return exit status
5667         for cspi.
5668         (SPI_event_quit): impl.
5669         (SPI_event_main): simplify.
5670         (cspi_is_gnome_app): kill.
5671         (SPI_init): kill isGNOMEapp arg.
5672
5673         * at-bridge/bridge.c (register_atk_event_listeners):
5674         re-instate the unref.
5675         (bridge_exit_func): don't re-activate the registry,
5676         protect vs. theoretical re-entry, use the
5677         AT_BRIDGE_SHUTDOWN env. var to determine whether to
5678         assert a clean shutdown - for regression tests.
5679
5680 2001-12-08  Abel Cheung  <maddog@linux.org.hk>
5681
5682         * configure.in: Comment out dummy i18n support for now,
5683           otherwise it fails to build.
5684         * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
5685           EXTRA_DIST. They are missing in tarball.
5686
5687 2001-12-07  Michael Meeks  <michael@ximian.com>
5688
5689         * util/magnifier.c: kill bonobo activation reg. race.
5690
5691         * libspi/component.c
5692         (impl_accessibility_component_get_extents): make it match
5693         it's sig.
5694
5695         * libspi/registry.c (_registry_notify_listeners):
5696         re-remove X headers & reconcile conflicts.
5697         (spi_listener_struct_free): bad conflict resolve.
5698         (impl_accessibility_registry_register_application):
5699         more bad merging fixed.
5700         (impl_accessibility_registry_deregister_application): ditto.
5701         (spi_registry_new): ditto.
5702         (spi_registry_init): don't have an applications field.
5703
5704 [ merge fixups2 branch to here ]
5705 2001-12-07  Michael Meeks  <michael@ximian.com>
5706
5707         * test/simple-at.c (report_focus_event),
5708         (report_focussed_accessible): remove g_warning debug.
5709
5710 2001-12-07  Michael Meeks  <michael@ximian.com>
5711
5712         * test/test-simple.c (validate_tree): comment out some checks.
5713         (test_desktop): app now not registered idly - horay.
5714
5715 2001-12-07  Michael Meeks  <michael@ximian.com>
5716
5717         * cspi/spi_registry.c
5718         (registerAccessibleKeystrokeListener): clean, stop it leaking
5719         great swathes of memory, and device event controller references.
5720         ensure we always pass valid sequences.
5721         (deregisterAccessibleKeystrokeListener): ditto.
5722         (generateKeyEvent): upd.
5723
5724         * at-bridge/bridge.c (bridge_key_listener): handle
5725         registry dead exception gracefully.
5726         (bridge_focus_tracker, emit_eventv): free ev.
5727
5728         * test/simple-at.c (report_focus_event): fix polarity.
5729
5730         * libspi/application.c (notify_listeners): kill the ev
5731         argument, and make sure we init the ev we use.
5732         (spi_application_object_event_listener): split out a chunk
5733         (get_atk_object_ref): here & fixup.
5734         (reverse_lookup_name_for_toolkit_event): make const.
5735         (spi_application_toolkit_event_listener): fixup, kill leaks
5736         ref problems etc.
5737
5738         * at-bridge/bridge.c (register_atk_event_listeners):
5739         don't unref the noop object - causes grief.
5740
5741         * libspi/registry.c: remove the X headers.
5742         turn off the debug churn.
5743
5744         * libspi/accessible.c (spi_accessible_new_return): only
5745         release the ref if we are supposed to [doh]
5746
5747         * test/simple-at.c (report_button_press, report_focus_event):
5748         guard vs. unexpected exit.
5749
5750         * at-bridge/bridge.c (gtk_module_init): prune printf.
5751         (bridge_exit_func): fix app unref.
5752
5753         * libspi/Makefile.am: don't install registry or desktop.h
5754
5755         * libspi/*.h: update includes.
5756
5757         * libspi/application.h: don't include ourself, or
5758         other redundant headers.
5759
5760 2001-12-06  Michael Meeks  <michael@ximian.com>
5761
5762         * libspi/accessible.c
5763         (get_accessible_from_servant): impl.
5764         Upd. all CORBA impl.s to use it killing cut and paste.
5765
5766         * cspi/spi_main.c (cspi_cleanup): guard vs. double
5767         invokes.
5768         (SPI_init): register atexit cleanup handler here.
5769
5770 2001-12-06  Michael Meeks  <michael@ximian.com>
5771
5772         * at-bridge/bridge.c (gtk_module_init): g_error on
5773         activation exception
5774
5775 2001-12-06  Michael Meeks  <michael@ximian.com>
5776
5777         * at-bridge/bridge.c (gtk_module_init): some sort of
5778         confusing merge clash - reverted.
5779         (bridge_idle_init): ditto.
5780
5781         * test/test-simple.c (main, utterable_normal_derefs):
5782         merge from Bill - somehow not committed.
5783
5784 2001-12-06  Michael Meeks  <michael@ximian.com>
5785
5786         * libspi/value.c (spi_value_class_init): upd.
5787         (spi_value_finalize): kill.
5788
5789         * libspi/table.c (spi_table_finalize): kill.
5790         (spi_table_interface_new): upd.
5791         (spi_table_class_init): upd.
5792         (get_table_from_servant): impl.
5793         Upd. all CORBA impl.s to use it killing yet more cut and paste.
5794
5795         * libspi/selection.c (spi_selection_finalize): kill.
5796         (spi_selection_interface_new): upd.
5797         (spi_selection_class_init): upd.
5798         (get_selection_from_servant): impl.
5799         Upd. all CORBA impl.s to use it killing yet more cut and paste.
5800
5801         * libspi/relation.c (spi_relation_finalize): kill.
5802         (spi_relation_class_init, spi_relation_new): upd
5803
5804         * libspi/image.c (spi_image_finalize): kill.
5805         (spi_image_class_init): upd.
5806         (spi_image_interface_new): upd.
5807         (get_image_from_servant): impl.
5808         Upd. all CORBA impl.s to use it killing yet more cut and paste.
5809
5810         * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
5811         (spi_hyperlink_finalize): kill.
5812         (spi_hyperlink_new): upd.
5813         (get_hyperlink_from_servant): impl.
5814         Upd. all CORBA impl.s to use it killing yet more cut and paste.
5815
5816         * libspi/hypertext.c (spi_hypertext_interface_new): upd.
5817         (spi_hypertext_finalize): kill.
5818         (spi_hypertext_class_init): upd.
5819         (get_hypertext_from_servant): impl.
5820         Upd. all CORBA impl.s to use it killing yet more cut and paste.
5821
5822         * libspi/editabletext.c (spi_editable_text_finalize): kill.
5823         (spi_editable_text_interface_new): upd.
5824         (get_editable_text_from_servant): impl.
5825         Upd. all CORBA impl.s to use it killing yet more cut and paste.
5826         
5827         * libspi/text.c (get_text_from_servant): impl.
5828         All impls - update to use it killing more cut and paste,
5829         also fix bad string returns on duff args ( a somewhat
5830         impossible case to handle - but hey ).
5831         (spi_text_construct): impl.
5832         (spi_text_interface_new): upd.
5833         (spi_text_object_finalize): kill.
5834
5835         * libspi/component.c
5836         (accessibility_component_object_finalize): kill.
5837         (spi_component_class_init): upd.
5838         (get_component_from_servant): impl. helper to kill cut & paste.
5839         (impl_accessibility_component_contains): 
5840         (impl_accessibility_component_get_accessible_at_point): 
5841         (impl_accessibility_component_get_position): 
5842         (impl_accessibility_component_get_extents): 
5843         (impl_accessibility_component_get_mdi_z_order): 
5844         (impl_accessibility_component_get_layer): 
5845         (spi_component_interface_new): upd.
5846
5847         * libspi/action.c (spi_action_finalize): kill.
5848         (spi_action_class_init): upd. inherit from SpiObject.
5849         (spi_action_interface_new): upd.
5850         (get_action_from_servant): impl. helper to reduce cut & paste.
5851         (impl_getKeyBinding, impl_getName, impl_doAction),
5852         (impl_getDescription): Use it everywhere.
5853
5854         * cspi/spi_main.c (get_live_refs): a pointer hash.
5855         (spi_object_hash, spi_object_equal): comment out.
5856         There are issues with CORBA object hashing that need
5857         solving.
5858
5859         * libspi/application.c (spi_application_init),
5860         (spi_application_new): upd.
5861
5862         * libspi/accessible.c (spi_accessible_object_finalize): kill.
5863         (spi_accessible_class_init): upd.
5864         s/accessible/object/ in epv methods.
5865
5866 2001-12-05  Bill Haneman <bill.haneman@sun.com>
5867
5868         * at-bridge/bridge.c:
5869         Reorder the bridge initialization into the bridge gtk_module_init,
5870         an immediate call to bridge_register_app, and an idle_add for
5871         register_atk_event_listeners (the only code that *must* wait until
5872         GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
5873         the activation, creates the application's Accessible object, and
5874         queues the bridge_idle_init function.  Restored call to
5875         Accessibility_Registry_deregisterApplication().  
5876         Prior to making this call we obtain a new reference to the
5877         registry, which is a temporary hack that helps us handle apps that
5878         shut down the bonobo mainloop before we get there.
5879
5880         * libspi/registry.c:
5881         Fix string leakage in debug block, and don't segv if a an app
5882         dies before its event notifications have been propagated.
5883
5884         * cpi/spi_util.c:
5885         Modify cspi_check_ev() to call g_warning() rather than g_error(),
5886         as stopgap measure until we get proper exception handling when 
5887         objects die during or before interrogation.  
5888
5889         * cspi/spi_main.c:
5890         * cspi/spi.h:
5891         Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
5892         Also changed default value of is_gnome_app to TRUE.
5893
5894         * test/simple-at.c:
5895         * test/keysynth-demo.c:
5896         Changed use of SPI_init and SPI_event_main to reflect API change above.
5897
5898         * test/simple-at.c:
5899         Made report_focus_event check the warning value from getName
5900         before reporting on focussed accessible; simplifies handling of
5901         notifications from dead objects.
5902
5903         * test/test-simple.c: (Changes not in this patch since source is
5904         not in CVS ?)
5905         
5906 2001-12-05  Michael Meeks  <michael@ximian.com>
5907
5908         * registryd/registryd.c (main): protect against
5909         bonobo-activation startup race condition.
5910
5911         * cspi/spi_main.c (cspi_object_add_check): cope
5912         with the exception elegantly.
5913
5914         * idl/Accessible.idl: decl. ChildGone
5915
5916         * libspi/desktop.c (spi_desktop_dispose): impl.
5917         (spi_desktop_class_init): upd.
5918         (spi_desktop_add_application),
5919         (spi_desktop_remove_application),
5920         (abnormal_application_termination): impl.
5921         (impl_desktop_get_child_at_index): re-impl.
5922
5923         * libspi/registry.c
5924         (impl_accessibility_registry_deregister_application),
5925         (impl_accessibility_registry_register_application): 
5926         kill excessive debug clutter.
5927
5928         * test/test-simple.c (test_misc): test some NULL
5929         tolerance. (main): upd.
5930
5931         * cspi/spi_main.c (cspi_accessible_is_a): a NULL
5932         implements no interfaces - so let's not crash.
5933
5934         * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
5935
5936         * libspi/accessible.c (spi_accessible_new_return): impl.
5937         helper to calm the cut and paste, to cope with
5938         NULL AtkObjects effectively and efficiently, and to kill
5939         the referencing bugs.
5940
5941         * libspi/table.c (impl_getAccessibleAt),
5942         (impl_getRowHeader, impl_getColumnHeader): upd.
5943
5944         * libspi/hyperlink.c (impl_getObject): upd.
5945
5946         * libspi/accessible.c
5947         (impl_accessibility_accessible_get_child_at_index): upd.
5948
5949         * libspi/component.c
5950         (impl_accessibility_component_get_accessible_at_point): upd.
5951
5952         * test/test-simple.c (test_editable_text, test_text): impl.
5953         some simple tests.
5954
5955         * cspi/spi_editabletext.c
5956         (AccessibleEditableText_insertText): constify.
5957
5958         * test/test-simple.c (focus_me): make more robust.
5959
5960         * libspi/accessible.c: remove some printfs in methods that
5961         we test and work fine, so we can get a clean tree dump.
5962
5963         * test/test-simple.c (validate_accessible),
5964         (validate_tree): make tree dumping pretty too.
5965
5966         * at-bridge/bridge.c (bridge_signal_listener): upd. so
5967         it builds without debug on.
5968
5969         * test/test-simple.c (validate_accessible): fix the most
5970         ludicrous bug.
5971
5972         * cspi/spi_main.c (spi_object_release): leave the nicely
5973         blanked memory around if in debug mode.
5974
5975         * cspi/spi-listener-impl.c (cspi_event): use add_check.
5976
5977 [committed to fixups2]
5978 2001-12-05  Michael Meeks  <michael@ximian.com>
5979
5980         * libspi/editabletext.c
5981         (spi_editable_text_class_init): g_type_class_peek_parent,
5982         not interface peek - so we finalize cleanly.
5983
5984         * libspi/accessible.c (spi_accessible_new): kill debug.
5985
5986         * test/test-simple.c (validate_accessible): fix ref.
5987         leak, print strings before freeing them; sigh, comment a
5988         chunk out due to strangeness.
5989         (validate_tree): unref the child after use.
5990
5991         * cspi/spi_component.c (AccessibleComponent_getLayer):
5992         add missing break statement, switch on zlayer not the
5993         uninitialized retval.
5994
5995         * cspi/spi_main.c (cspi_object_add): add assert, local ref
5996         before (possibly re-entering) remote unref.
5997
5998         * test/simple-at.c (main): unref the desktop.
5999
6000         * cspi/spi_accessible.c (cspi_accessible_is_a): move 
6001         into:
6002         
6003         * cspi/spi_main.c (cspi_accessible_is_a): here to 
6004         isolate bonobo API usage more.
6005
6006         * libspi/registry.c (impl_accessibility_registry_register_application): 
6007         prune bogus comment.
6008
6009 2001-12-04  Michael Meeks  <michael@ximian.com>
6010
6011         * test/test-simple.c (validate_tree): upd.
6012         IndexInParent check to make it more lucid.
6013         (validate_accessible): dump the tree.
6014
6015         * libspi/accessible.c (de_register_public_ref),
6016         (get_public_refs): impl.
6017         (spi_accessible_new): make more efficient & intuitive.
6018         Now IndexInParent check works.
6019
6020 2001-12-04  Michael Meeks  <michael@ximian.com>
6021
6022         * cspi/spi-util.h: remove.
6023
6024         * cspi/spi.h: move SPI_freeString here
6025
6026         * libspi/component.c (impl_accessibility_component_get_layer): 
6027         warning fixage.
6028         (impl_accessibility_component_get_mdi_z_order): ditto,
6029         return -1 on error - is this ok ?
6030
6031         * test/test-simple.c (test_application): impl.
6032
6033         * cspi/spi_accessible.c (Accessible_getApplication),
6034         (Accessible_isApplication): impl.
6035
6036         * libspi/registry.c (spi_listener_struct_free): release
6037         the CORBA reference too.
6038
6039         * libspi/accessible.c
6040         (impl_accessibility_accessible_get_parent): fix ref leak.
6041
6042         * libspi/registry.c (spi_registry_new): make the registry
6043         immortal - we don't want it to go away ever.
6044
6045         * libspi/application.c
6046         (spi_accessible_application_finalize): impl. cleanup.
6047
6048         * cspi/spi_registry.c
6049         (deregisterGlobalEventListenerAll),
6050         (deregisterGlobalEventListener),
6051         (deregisterAccessibleKeystrokeListener): fix ref leak.
6052
6053         * cspi/spi_main.c (SPI_init): remove redundant ref.
6054
6055         * test/test-simple.c (unutterable_horror): impl. to force a
6056         clean shutdown.
6057         (main): use it.
6058
6059         * libspi/registry.c
6060         (impl_accessibility_registry_deregister_application): release
6061         the application when we de-register it.
6062
6063         * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
6064         until we have the infastructure to get it right.
6065
6066 2001-12-03  Michael Meeks  <michael@ximian.com>
6067
6068         * libspi/Makefile.am: only build eventlistener.[ch]
6069
6070         * libspi/accessible.c
6071         (impl_accessibility_accessible_get_child_at_index): don't leak.
6072
6073         * at-bridge/bridge.c (bridge_exit_func): cope with an exit
6074         before we hit the idle handler.
6075
6076         * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
6077         debugging than exit.
6078
6079         * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
6080
6081         * libspi/listener.c (impl_notify_event): check source
6082         not NIL before unref.
6083
6084         * libspi/registry.c (impl_registry_notify_event): ditto.
6085
6086         * libspi/eventlistener.c
6087         (impl_accessible_event_notify_event): unref the source.
6088
6089         * libspi/accessibleeventlistener.c
6090         (impl_accessible_event_notify_event): unref the source.
6091
6092         * idl/Event.idl: remove 'hash_id' attribute - of no
6093         concievable use.
6094
6095         * libspi/application.c (notify_listeners): upd list
6096         iteration & sig.
6097         (spi_application_object_event_listener), 
6098         (spi_application_toolkit_event_listener): upd to do correct
6099         CORBA ref counting.
6100
6101         * libspi/registry.c
6102         (_registry_notify_listeners): update.
6103         (parse_event_type): this method also leaks like a sieve.
6104         (impl_accessibility_registry_deregister_global_event_listener): 
6105         fix ETYPE_WINDOW case.
6106
6107         * libspi/application.c
6108         (impl_accessibility_application_register_object_event_listener): 
6109         kill leak.
6110
6111         * libspi/hyperlink.c (impl_getObject): fix ref mistake.
6112
6113         * libspi/hypertext.c (impl_getLink): ditto.
6114
6115         * cspi/spi_main.c (cspi_object_add): remove
6116         bogus CORBA_Object_duplicate.
6117
6118         * cspi/spi-listener-impl.c (cspi_event): dup/ref
6119         on the object_add.
6120
6121         * cspi/spi_accessible.c
6122         (Accessible_getRelationSet): fix leak / referencing issue.
6123
6124         * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
6125         (cspi_object_add, cspi_object_unref): upd.
6126         (spi_object_release, get_live_refs): impl.
6127         (cspi_cleanup): simplify.
6128
6129         * *.[ch]: s/boolean/SpiBoolean/
6130
6131         * cspi/spi_accessible.c (role_names): actualy order so it
6132         corresponds with the enum !
6133
6134         * test/test-simple.c (test_roles): check some role strings
6135         vs. enums to detect offset errors.
6136
6137 2001-12-01  Michael Meeks  <michael@ximian.com>
6138
6139         * cspi/spi_main.c (cspi_object_add_check): impl. helper.
6140
6141         * cspi/spi_accessible.c (Accessible_getChildAtIndex):
6142         check ev before 
6143         (Accessible_getChildAtIndex): use cspi_add_check so we
6144         check the ev before using a (possibly) invalid value.
6145
6146         * libspi/accessible.c
6147         (impl_accessibility_accessible_get_parent): don't segv
6148         on a NULL parent.
6149
6150         * at-bridge/bridge.c (gtk_module_init): upd.
6151         (bridge_property_event_listener): don't leak strings
6152         and events !
6153         (bridge_state_event_listener),
6154         (bridge_property_event_listener): don't use a static
6155         buffer in case of recursive event emission &
6156         re-enterancy - split out the swathe of cut and paste
6157         into:
6158         (emit_eventv): and fix 2 ref leaks here & comply to the
6159         coding style.
6160         (bridge_register_app): rename to 
6161         (bridge_idle_init): this and kill arg parsing, split
6162         various inits & bonobo-activation registration to module
6163         init time, kill referencing error.
6164         (bridge_exit_func): fix the same leak.
6165         (bridge_focus_tracker): don't leak event structures
6166         and strings.
6167         (bridge_signal_listener): more leakage and cut & paste
6168         fixage.
6169         (bridge_key_listener): return the result - FIXME is
6170         this polarity correct ?
6171         (accessibility_keystroke_from_atk_key_event): rename
6172         (accessibility_init_keystroke_from_atk_key_event): and stop
6173         leakage.
6174         (gtk_module_init): return a value - not that it is checked by
6175         Gtk - but hey.
6176         (bridge_key_listener): register my horror at casting between
6177         IDL defined structs.
6178         (bridge_get_registry): kill - not used.
6179
6180         * cspi/spi_accessible.c (Accessible_getRole): make return const.
6181
6182         * test/test-simple.c (test_roles): impl.
6183         (test_desktop, validate_accessible, validate_tree): impl.
6184
6185         * cspi/spi_accessible.c (role_names): fixup bogus
6186         MAX_ROLES setup, make constants const for efficient linkage
6187         (AccessibleRole_getName): conform to coding style, make
6188         return 'const'
6189
6190 2001-11-30  Michael Meeks  <michael@ximian.com>
6191
6192         * cspi/spi.h: add missing prototype.
6193
6194         * libspi/registry.c (spi_listener_struct_new): fix sig.
6195
6196         * test/Makefile.am: add test-simple
6197
6198         * test/test-simple.c: add
6199
6200         * test/test.sh: add.
6201
6202         * cspi/spi_main.c (SPI_init): make SPI_inited module global,
6203
6204         * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
6205         do it straight - since otherwise we often get an activation race.
6206
6207 [ work before Bill duplicated a chunk of it ... ]
6208 2001-11-30  Michael Meeks  <michael@ximian.com>
6209
6210         * libspi/keystrokelistener.c
6211         (spi_keystroke_listener_class_init): fixup arg
6212         count (doh).
6213
6214         * libspi/eventlistener.c
6215         (spi_event_listener_class_init): ditto.
6216
6217         * tests/test.sh: add.
6218
6219         * cspi/spi-listener-impl.h: update macros.
6220
6221         * cspi/spi-listener-impl.c
6222         (cspi_event_listener_remove_callback): add
6223         correct pre-conditions.
6224
6225         * cspi/spi_main.c (SPI_exit): guard vs. double
6226         exits, exit the mainloop nicely.
6227         (SPI_event_main): make more sense.
6228         (SPI_init): move the atexit evilness here so we
6229         always do it (yuck).
6230         (SPI_event_main): upd.
6231
6232         * test/simple-at.c: update for listener changes.
6233
6234         * registryd/registryd.c (main): prune kruft.
6235
6236         * libspi/libspi.h: upd.
6237
6238         * libspi/eventlistener.[ch]: rename broken macros.
6239
6240         * libspi/accessibleeventlistener.[ch]: remove.
6241
6242         * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
6243
6244         * test/test-simple.c: Add - automated tests.
6245
6246         * cspi/spi-listener-impl.c (cspi_event),
6247         (cspi_key_event): add user_data to invoke.
6248         (cspi_keystroke_listener_finalize): impl.
6249         (cspi_keystroke_listener_class_init): upd.
6250
6251         * cspi/spi_event.c
6252         (createAccessibleEventListener),
6253         (AccessibleEventListener_addCallback),
6254         (createAccessibleKeystrokeListener),
6255         (AccessibleKeystrokeListener_addCallback): upd.
6256
6257         * libspi/deviceeventcontroller.c
6258         (spi_device_event_controller_check_key_event): add public proto.
6259
6260         * libspi/registry.c
6261         (impl_accessibility_registry_deregister_global_event_listener): 
6262         always init listeners.
6263         (_registry_notify_listeners): yes it is.
6264
6265         * cspi/spi-listener-impl.c (cspi_key_event): 
6266         move debug to here.
6267         (cspi_event_listener_finalize): impl.
6268         (cspi_event_listener_class_init): hook up.
6269         (event_handler_new, event_handler_free),
6270         (event_list_remove_by_callback): impl.
6271         (cspi_event_listener_remove_callback),
6272         (cspi_keystroke_listener_remove_callback),
6273         (cspi_keystroke_listener_add_callback),
6274         (cspi_event_listener_add_callback): upd.
6275
6276         * libspi/keystrokelistener.c
6277         (keystroke_listener_object_finalize): kill
6278         (spi_keystroke_listener_class_init): upd.
6279         (spi_keystroke_listener_add_callback),
6280         (spi_keystroke_listener_remove_callback): kill,
6281         use signals.
6282         (impl_key_event): prune drasticaly.
6283
6284         * libspi/eventlistener.c
6285         (spi_event_listener_add_callback),
6286         (spi_event_listener_remove_callback): kill, use
6287         signals.
6288         (impl_accessible_event_notify_event): upd.
6289         (spi_event_listener_object_finalize): remove.
6290
6291         * libspi/Makefile.am: use eventlistener.[ch]
6292
6293 2001-12-04  Bill Haneman  <bill.haneman@sun.com>
6294
6295         * libspi/registry.c (_registry_notify_listeners):
6296         Changed listener loop iteration to use preferred convention.
6297         Got rid of string memory leaks caused be calling g_strconcat
6298         inside function calls.
6299
6300         * libspi/registry.c (parse_event_type):
6301         Stopped g_strconcat memory leaks, free the g_strsplit return,
6302         g_strdup the split pieces when used, etc.
6303
6304 2001-12-04  Bill Haneman  <bill.haneman@sun.com>
6305
6306         * idl/State.idl: 
6307         Change method 'compare' to return a 'difference set' rather than
6308         taking a StateSet as an out parameter (more Java-friendly).
6309
6310         * idl/Accessible.idl:
6311         Added CORBA struct 'BoundingBox', to faciliate API changes below:
6312         
6313         * idl/Component.idl:
6314         * idl/Image.idl:
6315         Changed methods 'getExtents' and 'getImageExtents' in these
6316         interfaces to return a BoundingBox structure.  
6317         (getPosition and getSize are redundant and possibly should be
6318         removed, rather than creating a corresponding Point struct.)
6319
6320         * cspi/spi_component.c:
6321         Modify implementation of getExtents to reflect the above IDL
6322         change.
6323         
6324         * cspi/spi_image.c:
6325         * cspi/spi.h:
6326         Add (missing) AccessibleImage_getExtents () API.
6327
6328         * docs/reference/cspi/at-spi-cspi-sections.txt:
6329         Added AccessibleImage_getImageExtents () to docs.
6330         
6331 2001-12-03  Bill Haneman  <bill.haneman@sun.com>
6332
6333         * idl/Component.idl:
6334         Added two methods, getLayer () and getMDIZOrder (), to reflect
6335         the new ATK methods atk_object_get_layer and
6336         atk_object_get_mdi_z_order. (Which arguably should be part of the
6337         AtkComponent API and AtkObject).  Also added an enum,
6338         ComponentLayer, for the first method's return value.
6339
6340         * libspi/component.c:
6341         Added implementations for these methods.
6342
6343         * cspi/spi_component.c:
6344         * cspi/spi.h:
6345         Added cspi binding methods for above, 
6346         AccessibleComponent_getLayer() and
6347         AccessibleComponent_getMDIZOrder().
6348         Added cspi enum 'AccessibleComponentLayer'.
6349
6350         * docs/reference/cspi/at-spi-cspi-sections.txt:
6351         Added above methods to docs.
6352
6353         * cspi/spi-impl.h:
6354         * cspi/spi*.[ch]:
6355         Changed typedef for 'boolean' type (and all references to it) to
6356         SPIBoolean, to avoid keyword clashes with C++.
6357
6358         * test/simple-at.c:
6359         Changed usages of 'boolean' to SPIBoolean.
6360
6361         * test/keysynth-demo.c:
6362         Changed usages of 'boolean' to 'gboolean' (since this is a gnome
6363         app), except where SPIBoolean is required by the callbacks API.
6364         
6365 2001-12-02  Bill Haneman  <bill.haneman@sun.com>
6366
6367         * cspi/spi_registry.c:
6368         Removed obsolete X event loop for passive keygrabs (which now
6369         lives in libspi).
6370
6371         * registryd/registryd.c:
6372         Removed unnecessary call to gdk_init() [cruft]. This also allows
6373         removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
6374         * configure.in.
6375
6376 2001-11-28  Bill Haneman  <bill.haneman@sun.com>
6377
6378         * docs/reference/cspi:
6379         Included docs for SPI_freeString in generated documentation.
6380
6381         * cspi/spi-util.c:c
6382         Renamed spi_freeString to SPI_freeString, for consistency.  Added
6383         documentation for this function.
6384
6385         * cspi/spi-util.h:
6386         Renamed spi_freeString to SPI_freeString, for consistency.  
6387         Removed obsolete method declaration string_from_corba_string.
6388
6389         * test/keysynth-demo.c:
6390         Small tweak to comments.
6391
6392         * test/simple-at.c:
6393         Stopped leaking the strings returned from CSPI. 
6394
6395 2001-11-28  Bill Haneman  <bill.haneman@sun.com>
6396
6397         Merged Michael's branch (see his ChangeLog entries below).
6398         
6399         * at-bridge/bridge.c: Explicitly hold a ref to the registry while
6400         bridge is alive, release on exit.
6401         
6402         * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
6403         Fix type check macro.
6404         
6405         * cspi/spi_event.c:
6406         Added AccessibleKeystrokeListener_unref() method to reduce leakage.
6407         
6408         * cspi/spi_main.c: 
6409         Added is_gnome_app static, and method cspi_is_gnome_app(), 
6410         so we can call the appropriate shutdown routine at exit in SPI_exit.
6411         
6412         * cspi/spi_main.c (cspi_object_ref):
6413         Duplicate the corba object passed in, since we're keeping it around.
6414         
6415         * cspi/SPI_exit.c, cspi_cleanup:
6416         Moved the releasing of the live refs to its own function, so we
6417         can put it in g_atexit ().  Call the appropriate shutdown API
6418         depending on whethe calling client is a gnome app or not
6419         (bonobo_main_quit or CORBA_ORB_shutdown).
6420         
6421         * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
6422         Unref the listener when this method is called, after
6423         deregistration.  Updated the API docs to note this behavior.
6424
6425         * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
6426         Bugfixes: Ref the bonobo object when returning a parent or child 
6427         reference, or an AccessibleRelation.  Generally made sure
6428         BonoboObject refcount is incremented whenever we return an
6429         Accessible.
6430
6431         * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
6432         Fixed typo/bug in signal declaration.
6433         
6434         * libspi/accessibleeventlistener.h:
6435         Fixed a type macro.
6436
6437         * libspi/application.c (spi_application_new):
6438         Fixed leak in initialization.
6439
6440         * libspi/desktop.c:
6441         Remembered to increment bonobo-object refcount when returning
6442         children (applications) from desktop object.
6443         Added (empty) finalize method.
6444
6445         * libspi/deviceeventcontroller.c:
6446         Hold a ref to listeners inside DEControllerKeyListeners.
6447         Added dec_key_listener_free() method.  Use prepend instead of
6448         append in key_listener list.  Fixed some refcount madness and
6449         leaks in the listener registration/deregistration - deregistration
6450         now calls dec_key_listener_free() on listeners, and on the
6451         temporarily constructed dec_key_listener() used to perform the search/match.
6452
6453         * libspi/hypertext.c (spi_hypertest_finalize):
6454         Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
6455         class.  Also fixed spi_hypertext_interface_new() and
6456         SpiHypertextClass.  Fixed a couple of paren-whitespace formatting bugs.
6457
6458         * libspi/hypertext.h: 
6459         Removed pointless and duplicate AtkObject pointer from
6460         SpiHypertextClass.
6461
6462         * libspi/keystrokelistener.c:
6463         Fixed incorrect type of keystroke_listener_parent_class,
6464         renamed keystroke_listener_object_finalize to
6465         spi_keystroke_listener_object_finalize.
6466         Fixed typo in signal declaration
6467         (spi_keystroke_listener_class_init).
6468
6469         * libspi/registry.c:
6470         Added funcsions spi_listener_struct_new() and
6471         spi_listener_struct_free() to help with memory management issues.
6472         We also now use these methods instead of gnew + poking stuff into
6473         the struct, and to decrement listener counts/free the listeners
6474         when deregistering them.
6475         Fix more refcount bugs in getDesktop() and
6476         getDeviceEventController().  
6477
6478         * test/simple-at.c:
6479         De-ref the desktop after enumerating the applications.  Explicitly
6480         decrement the refcounts on the created listeners on exit (using
6481         _unref for keystroke listeners, and via the
6482         deregisterGlobalEventListenerAll command for other event
6483         listeners).
6484         
6485 2001-11-27  Michael Meeks  <michael@ximian.com>
6486
6487         * cspi/spi-listener.h: fixup enum.
6488
6489 2001-11-27  Michael Meeks  <michael@ximian.com>
6490
6491         * cspi/spi-listener-impl.c (cspi_event_listener_new),
6492         (cspi_keystroke_listener_new): Use the cspi variants.
6493
6494 2001-11-26  Michael Meeks  <michael@ximian.com>
6495
6496         * test/keysynth-demo.c: fix 2 compile warnings, missing
6497         type in decl. etc.
6498
6499         * test/simple-at.c (report_focussed_accessible),
6500         (report_focus_event, report_button_press),
6501         (check_property_change, is_command_key),
6502         (report_ordinary_key_event, report_command_key_event): upd.
6503
6504         * util/mag_client.h: include pre-requisites.
6505
6506         * libspi/accessibleeventlistener.c
6507         (spi_event_listener_object_finalize): free any lingering
6508         callbacks.
6509         
6510         * libspi/keystrokelistener.c
6511         (keystroke_listener_object_finalize): ditto.
6512
6513         * cspi/spi-listener-impl.[ch]: Add to implement cspi style
6514         callbacks, with cspi types.
6515         
6516         * cspi/spi_event.c (createAccessibleEventListener): chain to
6517         (AccessibleEventListener_addCallback): here.
6518         (createAccessibleKeystrokeListener): chain to 
6519         (AccessibleKeystrokeListener_addCallback): here.
6520
6521         * libspi/keystrokelistener.c
6522         (spi_keystroke_listener_class_init): add signal.
6523         (impl_key_event): emit the event.
6524         (boolean_handled_accumulator): impl.
6525         (marshal_BOOLEAN__POINTER): add, gack.
6526
6527         * libspi/accessibleeventlistener.c
6528         (spi_event_listener_class_init): add signal.
6529         (impl_accessible_event_notify_event): emit the signal &
6530         make the loop efficient.
6531         (spi_event_listener_add_callback): prepend the callback.
6532
6533         * libspi/accessibleeventlistener.h: add an 'event' signal,
6534         decl type on callback.
6535
6536         * libspi/keystrokelistener.h: ditto.
6537
6538         * cspi/spi-listener.h: make methods typesafe and
6539         make them use the new event typedefs.
6540
6541         * test/simple-at.c (report_focussed_accessible):
6542         include mag_client.h
6543         Use *(void *)text_interface not the other thing.
6544         
6545         * configure.in: add gtk to registryd bits - since we use
6546         gdk there ( why ? )
6547
6548         * util/magnifier.c: include libbonobo.h
6549         
6550 2001-11-25  Bill Haneman  <bill.haneman@sun.com>
6551
6552         * test/keysynth-demo.c:
6553         Turned this into a simple scanning keyboard, to demonstrate the
6554         use of g_timeout_add () as a means of creating timers for
6555         scanning, and the use of GtkStyle for visually indicating when
6556         virtual keyboard elements are selected.
6557
6558         keysynth-demo now listens to any keyboard keys with zero-valued
6559         keycodes (i.e. 'unused' keys) and interprets them as
6560         single-switches.
6561
6562         Reworked the shiftlatch code so that shift-down state isn't held
6563         for long periods (it's only synthesized immediately prior to
6564         the keysynth event it's modifying).  Note that shiftlatch in this
6565         demo is a convenience, not intended to take the place of AccessX 
6566         which is the better choice for getting 'sticky' modifier keys.
6567
6568         * libspi/deviceeventcontroller.c:
6569         * at-bridge/bridge.c:
6570         * cspi/spi_registry.c:
6571         Removed some debug print stuff, and put other verbosity in #ifdef
6572         blocks.
6573
6574         * util/magnifier.c:
6575         * util/mag_image.h:
6576         Implemented some more of the magnifier IDL for the simple
6577         magnifier: namely, getZoomRegionParams. 
6578         Added mag_x and mag_y members to MagnifierData struct, aid of this
6579         implementation.
6580         Added GtkWindow::realize signal handler to magnifier, to keep it
6581         from receiving keyboard focus from the WM.
6582
6583 2001-11-23  Mark McLoughlin  <mark@skynet.ie>
6584
6585         * cspi/spi-private.h: my guess at what michael forgot
6586         before he ran off to NZ :-)
6587
6588 2001-11-23  Michael Meeks  <michael@ximian.com>
6589
6590         * cspi/spi_event.c (AccessibleEventListener_removeCallback):
6591         comment out non existant method invoke so we link.
6592
6593         * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
6594         use bonobo_exception_get_text for more friendly warnings.
6595
6596         * cspi/spi.c (Obj_Add): move into spi_main & rename
6597         spi_object_add; kill spi.c
6598
6599         * cspi/spi_registry.c
6600         (deregisterGlobalEventListener),
6601         (deregisterGlobalEventListenerAll),
6602         (registerGlobalEventListener): fix exception leaks.
6603
6604         * cspi/spi_main.c (spi_exception): impl. helper, so we
6605         don't leak exceptions.
6606
6607         * cspi/spi_selection.c
6608         (AccessibleSelection_deselectSelectedChild): return the
6609         success state.
6610
6611         * cspi/spi_main.c (spi_ev): impl; hack - gack.
6612         (spi_registry): ditto.
6613         (SPI_init): guard against double inits.
6614
6615         * cspi/*.c: use spi_ev (), and spi_registry () where
6616         appropriate - a temporary hack until we have something
6617         better. Use spi_object_add
6618
6619 2001-11-22  Michael Meeks  <michael@ximian.com>
6620
6621         * cspi/Makefile.am: re organise, install the headers.
6622
6623         * cspi/*.h: add G_BEGIN/END_DECLS
6624
6625 2001-11-22  Bill Haneman  <bill.haneman@sun.com>
6626
6627         * test/simple-at.c:
6628         Added non-preemptive keylistener for key events with no modifiers
6629         and shift-only modifier.
6630
6631         * libspi/keystrokelistener.c:
6632         Removed some verbose diagnostics printout.
6633
6634         * cspi/spi_registry.c:
6635         Fixed a bug that caused all key listeners to be registered as
6636         pre-emptive.
6637         
6638         * libspi/deviceeventcontroller.c:
6639         Fixed bug that caused XGrabKey (preemptive key grab) to be called
6640         for non-preemptive key masks.
6641
6642
6643 2001-11-22  Bill Haneman  <bill.haneman@sun.com>
6644
6645         * docs/reference/idl/at-spi-idl-docs.sgml:
6646         * docs/reference/idl/at-spi-idl-sections.txt:
6647         * docs/reference/idl/at-spi-idl-overrides.txt:
6648         Added missing files.
6649
6650         * docs/reference/Makefile.am:
6651         removed idl from SUBDIRS until we can figure a way to get gtk-doc
6652         to scan the IDL files :-(
6653
6654         * docs/reference:
6655         * docs/cspi:
6656         * docs/idl:
6657         Added .cvsignore files.
6658         
6659 2001-11-21  Bill Haneman  <bill.haneman@sun.com>
6660
6661         * libspi/deviceeventcontroller.c:
6662         * libspi/keystrokelistener.c:
6663         * cspi/spi_event.c:
6664         * cspi/spi_registry.c:
6665         Added filters for KeySets, KeyEventSeq, and event types to key
6666         event dispatching, so listeners should only receive those events
6667         that they requested :-)
6668
6669 2001-11-21  Bill Haneman  <bill.haneman@sun.com>
6670
6671         * configure.in:
6672         * docs/Makefile.am:
6673         * docs/reference:
6674         * docs/reference:Makefile.am:
6675         * docs/reference/cspi:
6676         * docs/reference/cspi:Makefile.am:
6677         * docs/reference/cspi:tmpl:
6678         * docs/reference/cspi:tmpl:*.sgml:
6679         * docs/reference/idl:
6680         * docs/reference/idl:Makefile.am:
6681         * docs/reference/idl:at-spi-idl-sections.txt:
6682         * docs/reference/idl:at-spi-idl-docs.sgml:
6683         * docs/reference/idl:tmpl:
6684         * docs/reference/idl:tmpl:*.sgml:
6685
6686         Restructured docs directory to allow separate 'reference' docs
6687         section, and forked idl and cspi docs.  Added the sgml template
6688         files to CVS.  Added the first sections/structural sgml for the
6689         IDL docs.
6690
6691 2001-11-21  Laszlo Peter  <laca@ireland.sun.com>
6692
6693         * configure.in, libspi/Makefile.am: find libXtst.
6694
6695 2001-11-21  Michael Meeks  <michael@ximian.com>
6696
6697         * test/accessx-gui.c: s/spi_value/value/ - doh.
6698
6699         * libspi/base.[ch]: add.
6700
6701 2001-11-18  Bill Haneman <bill.haneman@sun.com>
6702
6703         * idl/Accessible.idl:
6704         * idl/Application.idl:
6705         * idl/Registry.idl:
6706         * idl/Action.idl:
6707         Started gtk-doc cleanup on IDL.
6708
6709         * libspi/deviceeventcontroller.c:
6710         Added and connected non-preemptive key notification from the
6711         toolkits (in addition to the pre-emptive support from XServer
6712         which we had before, but which causes 'focus flashing').  Filters
6713         are presently limited to key modifiers and global/non-global,
6714         KeySets are presently ignored, as are KeyEvent masks.
6715
6716         Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
6717         structs into the persistant structure rather than just storing
6718         pointers to things that might not persist across servant
6719         invocations.
6720
6721         The XGrabKey call now does async keygrabs, because synchronous
6722         ones were deadlocking with GDK_event code in a very nasty way.
6723
6724         Added boolean to internal method notify_keylisteners, to indicate
6725         whether the event came from the 'toolkit source' or the 'global
6726         (XServer) source' - this is used in the notification process to
6727         determine which listeners to send the event to.
6728
6729         deviceeventcontroller.c is now warning-free.
6730         
6731         * libspi/registry.c:
6732         Fixed regression in application de-registration.
6733         Also fixed some really brain-dead weirdness having to do with
6734         event dispatching - event structs are now duplicated before being
6735         re-marshalled in the dispatch to listeners.  This also fixes a
6736         Solaris build problem.
6737         
6738         
6739 2001-11-20  Michael Meeks  <michael@ximian.com>
6740
6741         * libspi/registry.c
6742         (impl_accessibility_registry_deregister_global_event_listener): 
6743         segv. protection.
6744
6745         * libspi/deviceeventcontroller.c
6746         (spi_device_event_controller_check_key_event): return
6747         FALSE on no virtual method.
6748
6749         * libspi/*..h: make includes work on a correctly pathed install.
6750
6751         * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
6752
6753         * libspi/application.h: kill unused ( and whacked out )
6754         gboolean *spi_application_set_id (AtkObject *app, long id);
6755
6756 2001-11-20  Michael Meeks  <michael@ximian.com>
6757
6758         * libspi/*.[ch]: further convert to bonobo's type func
6759         macros, remove redundnant casts etc.
6760
6761         * libspi/text.c s/accessibility_text/spi_text/g,
6762         re-order to de-cruft.
6763
6764         * libspi/hypertext.c: re-order to kill a huge slew
6765         of redundant forward decls.
6766
6767         * libspi/relation.c: ditto.
6768
6769         * libspi/image.c: ditto.
6770
6771         * */.cvsignore: update
6772         
6773 2001-11-20  Michael Meeks  <michael@ximian.com>
6774
6775         * libspi/deviceeventcontroller.c
6776         (_controller_register_with_devices): use g_getenv,
6777         kill stdlib.h include.
6778
6779         * libspi/keystrokelistener.c
6780         (spi_keystroke_listener_get_type): kill
6781         (spi_keystroke_listener_class_init),
6782         (spi_keystroke_listener_init): rename to this.
6783
6784         * libspi/text.c (impl_getAttributes): fix warning / bug.
6785
6786         * libspi/*.[ch]: more headers, includes and over commenting.
6787         
6788 2001-11-20  Michael Meeks  <michael@ximian.com>
6789
6790         * libspi/*.[ch]: fixup headers, includes and over commenting.
6791
6792         * libspi/image.c (impl__get_imageDescription): const
6793         correctness warning fix. remove redundant casting.
6794
6795         * libspi/table.c (impl_getRowDescription): ditto.
6796         (impl_getColumnDescription): ditto.
6797
6798         * libspi/libspi.h: add.
6799
6800 2001-11-19  Michael Meeks  <michael@ximian.com>
6801
6802         * libspi/editabletext.c (impl_setAttributes): fix warnings.
6803
6804         * libspi/component.c (accessibility_component_get_type): 
6805         rename to (spi_component_get_type): and macroify.
6806         (accessibility_component_init): rename to
6807         (spi_component_init): this
6808         (accessibility_component_class_init): rename to
6809         (spi_component_class_init): this
6810
6811         * libspi/action.c (spi_action_get_type): kill, use the macro.
6812
6813         * libspi/deviceeventcontroller.c (_compare_listeners): re-order
6814         to avoid prototype.
6815
6816         * libspi/application.c (spi_application_object_event_listener),
6817         (impl_accessibility_application_register_object_event_listener):
6818         warning fixes / const understanding updates.
6819
6820         * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
6821         warning fixes.
6822
6823 2001-11-18  Bill Haneman <bill.haneman@sun.com>
6824
6825         * libspi/spi_accessible.c: Added docs and C bindings for
6826         AccessibleStateSet. (No implementations yet).  Documentation
6827         coverage for C bindings now 100%. Made docs for event listeners
6828         more explicit.
6829         
6830         * idl/Registry.idl:
6831         Added methods 
6832             boolean notifyListenersSync (in DeviceEventListener listener,
6833                                      in DeviceEvent event);
6834
6835             oneway void notifyListenersAsync (in DeviceEventListener listener,
6836                                           in DeviceEvent event);
6837
6838         Added DeviceEventListener and DeviceEvent structs (may deprecate
6839         KeyStroke and KeystrokeListener in favor of this generic
6840         event/listener framework for devices).
6841
6842         * libspi/deviceeventcontroller.c:
6843
6844         Changed some key listener code to take masks, etc., and paved the
6845         way for integration of toolkit/non-preemptive key events. Changed
6846         signatures of some internal methods.
6847
6848         * at-bridge/bridge.c:
6849         Fixed regression connecting to interface signals, apparently
6850         caused by GTK+ changes.
6851
6852         Added an internal bridge_state_listener to deal with
6853         property-change:accessible-state signals.
6854
6855         Changed the key_listeners GList to store structs (including masks,
6856         etc.) instead of just CORBA_Objects (required for full
6857         implementation of key listener API).
6858
6859         Connected the bridge to all currently supported Atk signals.
6860         Events now supported: 
6861             object:property-change
6862             object:property-change:accessible-name
6863             object:property-change:accessible-state
6864             object:property-change:accessible-description
6865             object:property-change:accessible-parent
6866             object:property-change:accessible-value
6867             object:property-change:accessible-role
6868             object:property-change:accessible-table-caption
6869             object:property-change:accessible-table-column-description
6870             object:property-change:accessible-table-column-header
6871             object:property-change:accessible-table-row-description
6872             object:property-change:accessible-table-row-header
6873             object:property-change:accessible-table-summary
6874             object:children-changed
6875             object:visible-data-changed
6876             object:selection-changed
6877             object:text-selection-changed
6878             object:text-changed
6879             object:text-caret-moved
6880             object:row-inserted
6881             object:row-reordered
6882             object:row-deleted
6883             object:column-inserted
6884             object:column-reordered
6885             object:column-deleted
6886             object:model-changed        
6887
6888 2001-11-16  Bill Haneman <bill.haneman@sun.com>
6889
6890         * libspi/hyperlink.c,h:
6891         Fixed some broken stuff in hyperlink.
6892         
6893         * libspi/relation.h:
6894         * libspi/relation.c:
6895         * cspi/spi_accessible.c:
6896         Initial implementations of AccessibleRelation methods, and docs.
6897
6898         * libspi/accessible.c:
6899         Fixed a bug that caused SEGV  if an accessible
6900         object's description is NULL, and a client
6901         requests it.  An empty string is now returned.
6902
6903         * cspi/spi_editabletext.c:
6904         * cspi/spi_hypertext.c:
6905         * cspi/spi_image.c:
6906         * cspi/spi_hyperlink.c:
6907         * cspi/spi_table.c:
6908         Added docs.  
6909
6910         Doc coverage now 95%.
6911
6912 2001-11-16  Bill Haneman <bill.haneman@sun.com>
6913
6914         One last namespacing revision:
6915         * libspi/accessibleeventlistener.[ch]:
6916         Renamed SpiAccessibleEventListener to SpiEventListener,
6917         (no need for two namespaces ;-)
6918
6919         And lots of documentation fixes:
6920
6921         * docs/at-spi-docs.sgml:
6922         Fixed 'underscore vs. hyphen' bug that was preventing
6923         the gtk-doc API docs from being automatically generated.
6924
6925         * cspi/spi-impl.h
6926         * cspi/spi-listener.h
6927         * cspi/spi.h
6928         * cspi/spi_accessible.c
6929         * cspi/spi_action.c
6930         * cspi/spi_application.c
6931         * cspi/spi_component.c
6932         * cspi/spi_editabletext.c
6933         * cspi/spi_event.c
6934         * cspi/spi_hypertext.c
6935         * cspi/spi_main.c
6936         * cspi/spi_registry.c
6937         * cspi/spi_selection.c
6938         * cspi/spi_text.c
6939         * cspi/spi_value.c
6940         * docs/Makefile.am
6941         * docs/at-spi-docs.sgml
6942         * docs/at-spi-sections.txt
6943         
6944         Added and fixed up gtk-doc documentation in cspi.
6945         
6946         Interfaces now (fully) documented (subject to revision and enhancement):
6947         SPI_main
6948         Event Listener Support
6949         Registry API
6950         AccessibleApplication
6951         Accessible
6952         AccessibleAction
6953         AccessibleComponent
6954         AccessibleEditableText
6955         AccessibleSelection
6956         AccessibleText
6957         AccessibleValue
6958
6959         still pending:
6960         AccessibleStateSet
6961         AccessibleRelationSet
6962         AccessibleImage
6963         AccessibleTable
6964         AccessibleHyperlink
6965         
6966 2001-11-14  Bill Haneman <bill.haneman@sun.com>
6967
6968         * at-bridge/bridge.c:
6969         Initial work for toolkit-level key snooper connection by bridge.
6970
6971         * cspi/spi-impl.h:
6972         * cspi/spi_*.h:
6973         * cspi/spi_*.c:
6974         New typedefs and fixes to support new namespacing, and cleaner
6975         separation of cspi bindings from libspi bonobo implementation.  
6976         Removed inconsistent and extraneous Spi* namespace prefix that
6977         had crept into cspi headers.
6978         Lots of comment fixes that sed had missed.
6979
6980         * cspi/spi-roletypes.h:
6981         * cspi/spi-statetypes.h:
6982         Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
6983         to AccessibleRoleType.
6984         
6985         * libspi/accessibleeventlistener.h:
6986         Fixed minor namespacing weirdness.
6987
6988         * libspi/deviceeventcontroller.c:
6989         Reordered some internal API for device listeners.
6990         Changed the key registry final boolean to 'is_system_global'
6991         rather than 'is_synchronous', which is more descriptive of its 
6992         actual meaning.
6993         Added spi_device_event_controller_new().
6994         Added  SpiRegistry backpointer to SpiDeviceEventControllerClass.
6995          
6996         * libspi/keystrokelistener.[ch]:
6997         Namespaced KeystrokeListener to SpiKeystrokeListener.
6998         Changed uses of keymasks to use SPI_ prefix, and did other
6999         knock-on fixups.
7000
7001         * libspi/keymasks.h:
7002         Namespaced keymask constants with SPI_ prefix.
7003
7004         * libspi/registry.c:
7005         Some warning fixes, and knock-on fixes from namespace changes.
7006
7007         * test/Makefile.am:
7008         Added rules for accessx-gui test program.
7009
7010         * test/accessx-gui.c:
7011         Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
7012         utility.  It doesn't actually use at-spi, but it's still cool and
7013         useful ;-)
7014
7015         * test/keysynth-demo.c:
7016         * test/simple-at.c:
7017         * test/at.c:
7018         * test/app.c:
7019         Fixes so that these test clients work properly with the namespaced
7020         libraries. (Incompletely tested for technical reasons, fixes may follow)
7021         
7022
7023 2001-11-13  Michael Meeks  <michael@ximian.com>
7024
7025         * libspi/application.c
7026         (impl_accessibility_application_get_version),
7027         (impl_accessibility_application_get_toolkit_name):
7028         warning fixes.
7029         (impl_accessibility_application_set_id),
7030         (impl_accessibility_application_get_id): remove
7031         redundant casting code.
7032
7033         * libspi/action.c (impl_getDescription): fix warnings.
7034
7035         * libspi/accessible.c
7036         (impl_accessibility_accessible_get_parent),
7037         (impl_accessibility_accessible_get_child_at_index),
7038         (impl_accessibility_accessible_get_state),
7039         (impl_accessibility_accessible_get_relation_set):
7040         warning fixes & include action.h
7041
7042 2001-11-13  Michael Meeks  <michael@ximian.com>
7043
7044         * *.[ch] fix bits I screwed up:
7045
7046                 s/([^ \tb(\*\&\?\",])spi_/\1/g;
7047                 s/([^ \tb(\*\&\?\",])Spi/\1/g;
7048         
7049 2001-11-13  Michael Meeks  <michael@ximian.com>
7050
7051         * *.[ch] Namespace libspi into spi_ and Spi.
7052
7053 2001-13-11  Michael Meeks  <michael@ximian.com>
7054
7055         * Makefile.am: dist & install at-spi-1.0.pc
7056
7057         * libspi/Makefile.am: install into at-spi-1.0
7058
7059         * idl/Makefile.am (idldir): install into at-spi-1.0
7060
7061         * at-spi-1.0.pc.in: add.
7062
7063         * configure.in: build it.
7064
7065 2001-11-12  Bill Haneman <bill.haneman@sun.com>
7066
7067         * test/keysynth-demo.c:
7068         Use a 'realize' signal-handler to set the WM properties for
7069         the virtual keyboard, rather than making it a "POPUP" type
7070         override-redirect window (thanks to anders carlsson for that
7071         tip!)
7072
7073 2001-11-11  Bill Haneman <bill.haneman@sun.com>
7074
7075         * test/Makefile.am:
7076         * test/keysynth-demo.c:
7077         Added new test of key synthesis, which creates a simple
7078         (mouse-operated) onscreen keyboard.  It inserts key events into
7079         the currently-focused window, thus it does not grab keyboard focus
7080         itself.
7081
7082         * cspi/spi_registry.c:
7083         Added C binding for AT-SPI generateKeyEvent.
7084
7085         * libspi/deviceeventcontroller.c:
7086         Added call to XFilterEvent so that key listener works with XIM (we
7087         hope).  Added event_synth_type to generateKeyEvent, so that we can
7088         produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
7089         synthesize a press/release pair for KeySyms.    
7090         
7091 2001-11-09  Bill Haneman <bill.haneman@sun.com>
7092
7093         * libspi/Makefile.am: 
7094         * registryd/Makefile.am:
7095         (temporary) hack to include libXtst in libspi and registryd.
7096         (Needed for keystroke synthesis, see below).
7097
7098         * idl/Registry.idl:
7099         Improved API for registerKeystrokeListener, in accordance with
7100         discussions with Gnopernicus team and X server research.
7101
7102         * libspi/registry.c:
7103         * libspi/deviceeventcontroller.c:
7104         * libspi/accessible.c:
7105         * libspi/keystrokelistener.c:
7106         Changes and fixes to support keylisteners for potentially
7107         consumed key events (that is, 'passive grabs').
7108         Added implementation for generateKeyEvent() [untested].
7109
7110         * cspi/spi.h:
7111         Changes to registerKeystrokeListener() API, as above.
7112         Added deregisterGlobalEventListenerAll(), and 
7113         deregisterKeystrokeListener(), which are needed for clean exit of
7114         clients.
7115         Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
7116         and a macro ALL_KEYS which may be used in place of a KeySet pointer.
7117         
7118         * cspi/spi_registry.c:
7119         Added implementations of function prototypes mentioned above.
7120         
7121         * registryd/registryd.c:
7122         Added the key listener event source as a g_timeout(), to allow
7123         receipt of key events that are not caught by GDK (since GDK
7124         doesn't support passive keygrabs, this was necessary).
7125
7126         * test/simple-at.c:
7127         Changed to attach a keylistener to 'Alt' keys, and
7128         respond to the following keycommands: Alt-M (toggle magnifier);
7129         Alt-F (toggle speech); Alt-Q (quit).
7130         Added an exit routine to deregister the listeners, and a key
7131         listener that prints some key info to the console when a key
7132         matches the listener mask (and is thus received by the listener).
7133         
7134         * util/idl/Magnifier.idl:
7135         Changes to magnifier API to support multiple zoom regions,
7136         non-uniform scaling in x and y, markDirty, and a host of other
7137         features that would be useful to magnification.
7138
7139         * util/mag_image.h:
7140         * util/mag_client.c:
7141         * util/mag_client.h:
7142         * util/mag_control.c:
7143         * util/magnifier.c:
7144         Source code changes to support the above IDL changes.
7145         
7146         * util/mag_image.c:
7147         As above, and also changes to use a (slower) generic conversion
7148         path for colormap conversions, since the fast RGB conversions have been
7149         reported to fail for 16-bit displays.
7150
7151 2001-10-26  Michael Meeks  <michael@ximian.com>
7152
7153         * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
7154
7155 2001-10-26  Laszlo Peter <laca@ireland.sun.com>
7156
7157         * at-bridge/Makefile.am: fix LDFLAGS.
7158
7159 2001-10-09  Bill Haneman <bill.haneman@sun.com>
7160
7161         * at-bridge/bridge.c:
7162         Re-worked listeners for toolkit events, now we have signal
7163         and property listeners. Added a private method
7164         register_atk_event_listeners(), which registers with the
7165         various atk and gtk signals we need to monitor in order to emit
7166         our at-spi events.
7167         Added emission hook for AtkObject:property-change events, to
7168         support the 'property listeners'.
7169         Fixed some alloc()s of Accessibility_Event structs to use CORBA
7170         allocation.
7171
7172         * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
7173         which emit warnings and exit, respectively, if CORBA errors occur
7174         during remote calls, and we now use these methods to check most of
7175         our CORBA calls in the C bindings.
7176
7177         * cspi/spi_accessible.c:
7178         Changed AccessibleSelection_refSelectedChild() to
7179         AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
7180         now increment refcounts.
7181
7182         * cspi/spi_component.c:
7183         Fixed some long pointer casts (dangerous!) to pass pointers to
7184         CORBA_longs of the proper type to the CORBA stubs, and copy the
7185         data into the longs that were passed into the C bindings code.
7186         
7187         * at-bridge/bridge.c:
7188         
7189         * libspi/accessible.c:
7190         Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
7191         hyperlinks, AtkHyperlink is an object type.     
7192
7193         * libspi/application.c:
7194         Added various conversions to and from "generic" event types and
7195         atk-specific types; this is really part of the 'bridge'
7196         implementation but is valid for all AtkObject-based accessibility 
7197         implementations.
7198
7199         * libspi/editabletext.c:
7200         Fixed nasty bug wherein editable text's finalize method was
7201         unref'ing tha AtkObject reference that the text parent class was
7202         about to unref _again_.  There was also a nasty inheritance bug
7203         that meant that the AccessibleEditableText class was corrupt.
7204
7205         * libspi/selection.c:
7206         Provided implementations for some selection API that was broken.
7207         
7208         * idl/Application.idl:
7209         Added registerObjectEventListener () method.
7210
7211         * THROUGHOUT:
7212         Fixed a number of return values that were Bonobo_Unknowns from
7213         bonobo_object_corba_objref(), which I
7214         forgot to dup before returning.  Changed instances of 
7215         bonobo_object_corba_objref (bonobo_object(o)) to
7216         BONOBO_OBJREF(o), for concision and clarity.
7217         
7218 2001-10-13  Louise Miller <louise.miller@sun.com>
7219
7220         * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
7221         idl/Event.idl, idl/Registry.idl
7222         Changed these files to include Bonobo_Unknown.idl instead
7223         of Bonobo.idl
7224
7225 2001-09-10  Marc Mulcahy <marc.mulcahy@sun.com
7226
7227         * libspi/component.c libspi/component.h:
7228                 Fixed typo.  Added assertions for object checks in 
7229         AccessibleComponent code.
7230
7231 2001-10-09  Bill Haneman <bill.haneman@sun.com>
7232
7233         * idl/Accessible.idl:
7234                 Added 'isEqual (Accessible *object)' 
7235         method for Accessible. (Not Yet Implemented).
7236         
7237         * idl/Registry.idl:
7238                 Changed signature of registerKeystrokeListener() to
7239         take a KeySet and KeyEventSeq so that specific keys and event
7240         types could be requested for monitoring, and added a flag
7241         is_synchronous so that either synchronous or asynchronous
7242         notification could be requested.  (However this is not all
7243         implemented yet). This also meant adding two new typedefs,
7244         KeyEventSeq and KeySet.
7245
7246         * idl/Relation.idl: 
7247                 Added two new relations, RELATION_TOOLTIP_FOR and
7248         RELATION_LEAFNODE_OF.
7249
7250         * idl/State.idl:
7251                 Added new state, STATE_HAS_TOOLTIP.
7252         
7253         * libspi/text.c, editabletext.c:
7254                 Added new assertions to all casts of bonobo-objects from
7255         CORBA servants, to prevent Text API calls on non-text objects.
7256                 Changed suspect casts of int-pointer types, so that we
7257         always send a valid CORBA_long pointer to the CORBA APIs that use
7258         in/out long parameters.  We then have to copy from the CORBA_long
7259         into the regular long or int for return to the C bindings, or
7260         vice-versa when returning parameters from ATK calls to the bonobo wrappers.
7261         
7262         * cspi/spi_text.c:
7263         * libspi/deviceeventcontroller.c:
7264                 Cleaned these sources up.
7265         * idl/Text.idl:
7266                 Changed return type for getCharacterAtOffset to
7267         CORBA_unsigned_long, to allow for 32-bit characters.
7268         
7269                 
7270 2001-10-08  Bill Haneman <bill.haneman@sun.com>
7271
7272         * util/Makefile.am:
7273         * idl/Makefile.am:
7274                 Fixed 'make dist' so that distro compiles...
7275         * libspi/keymasks.h:
7276                 new file.
7277         * cspi/spi-listener.c:
7278                 KeystrokeListenerCB now returns a boolean.
7279         * cspi/spi.h:
7280                 Added KeyEventType struct, and KeyStroke.
7281                 Also added createKeystrokeListener(),
7282         KeystrokeListener_addCallback(),
7283         KeystrokeListener_removeCallback(), and added a keymask to
7284         registerKeystrokeListener().
7285         * cspi/spi_accessible.c:
7286                 Changed numerous return types for interfaces from
7287         AccessibleComponent to Accessible<InterfaceName>; this was
7288         probably a cut-and-paste error.
7289         * cspi/spi_event.c:
7290                 Implementations of new KeystrokeListener api (from spi.h,
7291         above).
7292         * idl/Registry.idl:
7293                 Changes to key modifier mapping.
7294                 Created ControllerEventMask struct.
7295                 Made DeviceEventController derive from Bonobo::Unknown.
7296         * idl/Text.idl:
7297                 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
7298         * libspi/deviceeventcontroller.c:
7299                 Added a number of new internal (private) methods.
7300         * libspi/editabletext.c:
7301         * libspi/editabletext.h:
7302                 Fixed a number of bugs related to the fact that
7303         editabletext inherits from text.  Fixed the EditableText struct,
7304         the init() call, and use correct casts when calling Text methods
7305         from an EditableText object.  Removed (duplicate) atko from the
7306         EditableText structure, we use the one in the parent Text
7307         structure via the casts mentioned above.
7308         * libspi/keystrokelistener.[ch]:
7309         * libspi/registry.c:
7310                 Changes in support of keyboard handling (above).
7311         
7312         Keyboard handling, though partly functional, is still not
7313         recommended for at-spi client use as there is considerable 
7314         work yet to be done.
7315
7316         * libspi/text.c:
7317                 Changed some places where pointers to various int types
7318         are cast to be pointers to CORBA_long types and vice-versa:
7319         pointer casting is not safe so we pass pointers of the correct
7320         types and then cast the result before putting it into the target
7321         pointers.
7322
7323         * libspi/text.h: minor typos corrected.
7324         * test/simple-at.c: 
7325                 We now speak not only the name of a Text element, but the
7326         first sentence of its content, when it receives focus.
7327                 I also changed the text compression to 75% from 50%.
7328         * util/Accessibility_Util.server.in:
7329                 Changed the default magnifier type to be a 3x vertical
7330         splitscreen magnifier (was previously a 2x horizontal one).
7331
7332 2001-10-03  Bill Haneman <bill.haneman@sun.com>
7333
7334         * libspi/keystrokelistener.h:
7335         * libspi/keystrokelistener.c:
7336                 Initial functional implementations of KeystrokeListener.
7337         * idl/Registry.idl:
7338         
7339 2001-10-05  Marc Mulcahy <marc.mulcahy@sun.com>
7340
7341         Fixed string handling for NULL strings in libspi.
7342         Added spi_freeString to free strings returned by C bindings.
7343
7344 2001-09-30  Bill Haneman <bill.haneman@sun.com>
7345
7346         * libspi/keystrokelistener.h:
7347         * libspi/keystrokelistener.c:
7348                 Began (no-op) implementations of KeystrokeListener
7349                         (see below).
7350         * libspi/deviceeventcontroller.c:
7351         * libspi/deviceeventcontroller.h:
7352                 Began creating implementations of DeviceEventController,
7353                         to handle keystroke and mouse event listening and
7354                         synthesis.
7355         * libspi/accessible.c:
7356                 Stubbed-in the implementations for
7357                         Accessibility_Accessible_getState and
7358                         Accessibility_Accessible_getRelationSet.
7359         * libspi/registry.c:
7360                 Improved de-registration process and fixed some bugs, 
7361                         deregistration now works correctly.
7362         * libspi/desktop.c:
7363                 Added initialization of applications list (to NULL).
7364         * util/magnifier.c:
7365                 Reduced speech compression from 0.5 to 0.7, for demo.
7366                 Changed call to gdk_window_set_decorations()
7367                         to gtk_window_set_decorated().
7368         * at-bridge/bridge.c:
7369                 Bridge now deregisters when app exits, via
7370                         registration of a cleanup function
7371                         with the g_atexit() call.
7372                         Required making 'app' static, renamed 'this_app'.
7373                 Fixed broken use of bonobo_init, passing argv wrongly.
7374
7375 2001-09-27  Bill Haneman <bill.haneman@sun.com>
7376
7377         * util:
7378         * util/Makefile.am: 
7379                 Created a new directory for 
7380                         accessibility-related utilities, primarily for
7381                         testing and demo purposes, but with possible
7382                         end-user utility.
7383         
7384         * util/magnifier.c:
7385         * util/magnifier.h:
7386         * util/mag_image.c:
7387         * util/mag_image.h:
7388                 Onscreen magnifier utility that
7389                         is implemented as a bonobo service.
7390         
7391         * util/mag_client.c:
7392         * util/mag_client.h:
7393                 Client-side support (simple C bindings) 
7394                         for Magnification service
7395         
7396         * util/mag_control.c:
7397                 Client program example for 
7398                         Magnification service
7399         
7400         * util/Accessibility_Magnifier.server.in:
7401                 Bonobo-activation file for the 
7402                         Magnification service.
7403         
7404         * util/idl:
7405         * util/idl/Magnifier.idl:
7406                 IDL defining the bonobo Magnification
7407                         service interface.
7408
7409         * test/simple-at.c:
7410                 Modifications to use the bonobo-activated magnifier
7411                         above, in place of trying to connect to an existing
7412                         magnifier that uses socket-listening IPC.
7413
7414                 If env variable MAGNIFIER is set, a magnifier service
7415                         will be started if one does not exist.
7416         
7417 2001-09-25  Bill Haneman <bill.haneman@sun.com>
7418
7419         * at-bridge/bridge.c:
7420                 applied patch from Marc to build and run 
7421                 against new glib and gtk+ (seemed like a change 
7422                 to bonobo_init signature was made ?)
7423         * test/simple-at.c:
7424                 made festival-server support turned off by default.
7425                 Added support for a simple magnifier (off by default)
7426                 which will be added to a 'util' directory later.
7427         * at-bridge/Makefile.am:
7428                 Changed "application.h" header from a 'source'
7429                 to a 'dependency' of libat-bridge.
7430
7431 2001-09-12  Marc Mulcahy <marc.mulcahy@sun.com>
7432
7433         * cspi/Makefile.am:
7434                 Added spi-util.c.
7435
7436         * cspi/spi-util.c:
7437                 Fixed typo
7438
7439         * cspi/spi.c:
7440                 Added interface implementation c files to list of
7441                         includes so they are included in libcspi.
7442
7443         * cspi/spi.h:
7444                 Changed prototype of AccessibleAction_doAction to return a
7445                         boolean.
7446                 Changed prototype of AccessibleTable_getCaption to
7447                         return an Accessible.
7448                 Changed prototype of AccessibleTable_getSelectedRows
7449                         and AccessibleTable_getSelectedColumns to
7450                         return a long (returns the number of selected rows
7451                         or columns respectively).
7452                 Changed name of AccessibleText_refRunAttributes to
7453                         AccessibleText_getAttributes.
7454                 Changed prototype of AccessibleText_getCharacterExtents to
7455                         return a void rather than a boolean. 
7456                 Added support for a AccessibleCoordType parameter
7457                         specifying what type of coordinates are desired.
7458                 Added an AccessibleCordType parameter to
7459                         AccessibleText_getPointAtOffset.
7460
7461         * cspi/spi_accessible.c:
7462                 Added code to return the outstanding interfaces from
7463                         Accessible_queryInterface.
7464
7465         * cspi/spi_action.c:
7466                 Fixed typos.
7467                 Corrected call to getNActions to call the c binding
7468                         for an attribute.
7469
7470         * cspi/spi_editabletext.c:
7471                 Fixed typos.
7472                 Changed name from setRunAttributes to setAttributes.
7473
7474         * cspi/spi_hyperlink.c:
7475                 Fixed typos.
7476                 Changed call to getNAnchors to correctly call the c
7477                         binding for an attribute.
7478
7479         * cspi/spi_hypertext.c:
7480                 Fixed typos.
7481                 Changed getImageDescription to correctly call the
7482                         binding for an attribute.
7483
7484         * cspi/spi_selection.c:
7485                 Changed getNSelectedChildren to correctly call the c
7486                         binding for the attribute.
7487                 Changed refSelectedChild to getSelectedChild.
7488
7489         * cspi/spi_table.c:
7490                 Fixed typos.
7491                 Changed getCaption to return an Accessible.
7492                 Fixed calls which retrieve attributes.
7493                 Changed refAt to getAccessibleAt.
7494                 Changed getNSelectedRows and getNSelectedColumns to
7495                         return longs.
7496
7497         * cspi/spi_text.c:
7498                 Changed getCharacterExtents and getPointAtOffset to accept an
7499                         AccessibleCoordType.
7500                 Fixed typos.
7501                 Changed calls which retrieve attributes.
7502                 Changed refRunAttributes to getAttributes.
7503
7504         * cspi/spi_value.c:
7505                 Fixed typos.
7506
7507         * idl/Hyperlink.idl:
7508                 Changed n_anchors attribute to nAnchors to keep naming
7509                         convention consistent.
7510
7511         * idl/Table.idl:
7512                 Made Table inherit from Bonobo::Unknown.
7513                 Added nSelectedColumns and nSelectedRows attributes.
7514
7515         * idl/Value.idl:
7516                 Made Value inherit from Bonobo::Unknown.
7517
7518         * libspi/hyperlink.c:
7519                 Change for nAnchors attributte name change.
7520
7521 2001-09-12  Marc Mulcahy <marc.mulcahy@sun.com>
7522         * cspi/Makefile.am:
7523                 Added spi-util.c.
7524
7525         * cspi/spi-util.c:
7526                 Fixed typo
7527
7528         * cspi/spi.c:
7529                 Added interface implementation c files to list of
7530                         includes so they are included in libcspi.
7531
7532         * cspi/spi.h:
7533                 Changed prototype of AccessibleAction_doAction to return a
7534                         boolean.
7535                 Changed prototype of AccessibleTable_getCaption to
7536                         return an Accessible.
7537                 Changed prototype of AccessibleTable_getSelectedRows
7538                         and AccessibleTable_getSelectedColumns to
7539                         return a long (returns the number of selected rows
7540                         or columns respectively).
7541                 Changed name of AccessibleText_refRunAttributes to
7542                         AccessibleText_getAttributes.
7543                 Changed prototype of AccessibleText_getCharacterExtents to
7544                         return a void rather than a boolean. 
7545                 Added support for a AccessibleCoordType parameter
7546                         specifying what type of coordinates are desired.
7547                 Added an AccessibleCordType parameter to
7548                         AccessibleText_getPointAtOffset.
7549
7550         * cspi/spi_accessible.c:
7551                 Added code to return the outstanding interfaces from
7552                         Accessible_queryInterface.
7553
7554         * cspi/spi_action.c:
7555                 Fixed typos.
7556                 Corrected call to getNActions to call the c binding
7557                         for an attribute.
7558
7559         * cspi/spi_editabletext.c:
7560                 Fixed typos.
7561                 Changed name from setRunAttributes to setAttributes.
7562
7563         * cspi/spi_hyperlink.c:
7564                 Fixed typos.
7565                 Changed call to getNAnchors to correctly call the c
7566                         binding for an attribute.
7567
7568         * cspi/spi_hypertext.c:
7569                 Fixed typos.
7570                 Changed getImageDescription to correctly call the
7571                         binding for an attribute.
7572
7573         * cspi/spi_selection.c:
7574                 Changed getNSelectedChildren to correctly call the c
7575                         binding for the attribute.
7576                 Changed refSelectedChild to getSelectedChild.
7577
7578         * cspi/spi_table.c:
7579                 Fixed typos.
7580                 Changed getCaption to return an Accessible.
7581                 Fixed calls which retrieve attributes.
7582                 Changed refAt to getAccessibleAt.
7583                 Changed getNSelectedRows and getNSelectedColumns to
7584                         return longs.
7585
7586         * cspi/spi_text.c:
7587                 Changed getCharacterExtents and getPointAtOffset to accept an
7588                         AccessibleCoordType.
7589                 Fixed typos.
7590                 Changed calls which retrieve attributes.
7591                 Changed refRunAttributes to getAttributes.
7592
7593         * cspi/spi_value.c:
7594                 Fixed typos.
7595
7596         * idl/Hyperlink.idl:
7597                 Changed n_anchors attribute to nAnchors to keep naming
7598                         convention consistent.
7599
7600         * idl/Table.idl:
7601                 Made Table inherit from Bonobo::Unknown.
7602                 Added nSelectedColumns and nSelectedRows attributes.
7603
7604         * idl/Value.idl:
7605                 Made Value inherit from Bonobo::Unknown.
7606
7607         * libspi/hyperlink.c:
7608                 Change for nAnchors attributte name change.
7609
7610
7611 2001-09-05  Marc Mulcahy <marc.mulcahy@sun.com>
7612
7613         implementations-- made server implementations own AtkObject pointers
7614         rather than their respective AtkInterrface pointers to fix
7615         refcounting.  AtkHyperlink is still broken.
7616
7617 2001-09-04  Bill Haneman <bill.haneman@sun.com>
7618         * cspi/spi_accessible.c:
7619                 Added method Accessible_Role_getName(),
7620                         and requisite string array (role_names).
7621                 Added conversion string_from_corba_strin() call
7622                         to Accessible_getName and _getDescription.
7623         * libspi/accessible.c:
7624                 Added implementation for Accessible_getRole()
7625         * test/simple-at.c:
7626                 Added festival support, used if environment variable
7627                         FESTIVAL is set.
7628         
7629 2001-09-04  Bill Haneman <bill.haneman@sun.com>
7630
7631         * at-bridge/bridge.c:
7632             Now allocate Accessibility_Event using
7633             Accessibility_Event__alloc() instead of g_new0().
7634         * libspi/accessibleeventlistener.c:
7635             Initialize AccessibleEventListener->callbacks to NULL.
7636             Fixed accessible__event_listener_init() param, changed to
7637             "AccessibleEventListener *" type.
7638             Changed a bonobo_object_release_unref() call to
7639             Accessibility_Accessible_unref().
7640         * libspi/listener.c:
7641             Changed Bonobo_Unknown_unref to (equivalent) 
7642             Accessibility_Accessible_unref.
7643         * libspi/registry.c:
7644             Changed bonobo_object_release_unref to 
7645             Accessibility_Accessible_unref.
7646         
7647 2001-09-04  Marc Mulcahy <marc.mulcahy@sun.com>
7648         
7649         * Added files:
7650             spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
7651             spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
7652             spi-util.c spi-util.h
7653             Implementations for C bindings to remaining accessibility 
7654             interfaces.
7655
7656 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
7657         
7658         * idl/Action.idl:
7659             changed return value of Action from void to boolean to 
7660             bring in line with ATK.
7661
7662         * idl/Text.idl:
7663             Changed getText funcions to return "out" start and end offsets.
7664             Changed getAttributes to take and offset and return the start 
7665             and end offset of the attribute run.
7666             Changed getOffsetAtPoint and getCharacterExtents to take an 
7667              enum describing whether coordinates are window or screen.
7668
7669         * Added files:
7670             libspi/action.c libspi/action.h libspi/editabletext.c 
7671             libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
7672             libspi/hypertext.c libspi/hypertext.h libspi/image.c 
7673             libspi/image.h libspi/selection.c libspi/selection.h
7674             libspi/table.c libspi/table.h libspi/text.c libspi/text.h 
7675             libspi/value.c libspi/value.h
7676             Added server implementations for outstanding ATK interfaces 
7677             not yet implemented.
7678  
7679 2001-09-04  Bill Haneman <bill.haneman@sun.com>
7680
7681         * idl/Action.idl:
7682                 Added (missing) getName() method. 
7683                 Made nActions an attribute.
7684         * idl/EditableText.idl:
7685                 Changed order of params in setAttributes.
7686         * idl/Hyperlink.idl:
7687                 Removed getAnchor, added getURI.
7688         * idl/Image.idl:
7689                 Changed attributes to methods, for efficiency
7690                 (so that getting extents can be done in one call)
7691         * idl/Selection.idl:
7692                 Changed nSelectedChildren to attribute, and re-indented.
7693         * idl/Table.idl: changed nrows, ncolumns, caption, summary 
7694                 to attributes.
7695         * idl/Text.idl: reformatted to match our coding style.
7696                 (temporarily?) removed getRowColumnAtOffset().
7697                 Changed text selection API to support multi-select and
7698                 non-contiguous selections, as in ATK.
7699         * idl/Value.idl: changed some methods to attributes.
7700
7701 2001-08-24  Mark McLoughlin <mark@skynet.ie>
7702
7703         * libspi/listener.c(impl_notify_event):
7704         BonoboUnkown_unref the source instead
7705         of bonobo_object_release_unref - the ORB
7706         handles the releasing.
7707
7708         * configure.in: require ORBit-2.3.94 for
7709         this behaviour.
7710
7711 2001-08-21  Bill Haneman <bill.haneman@sun.com>
7712
7713         Tagged CVS repository 'EA_1_0'.
7714         * README.EARLY_ACCESS:
7715         Alphabetized acknowledgements list, and
7716         added someone.
7717         Listed some known dependencies of at-spi.
7718
7719 2001-08-20  Bill Haneman <bill.haneman@sun.com>
7720
7721         * docs/at-spi-docs.sgml:
7722         * docs/at-spi-sections.txt:
7723         * docs/at-spi-overrides.txt: (Added zero-length file)
7724         Documentation improvements - gtk-doc should build
7725         docs for all implemented C bindings now.
7726         * cspi/Makefile.am:
7727         * cspi/spi_main.c:
7728         * cspi/spi.c: (New file)
7729         * cspi/spi_event.c: (New file)
7730         * cspi/spi_registry.c: (New file)
7731         * cspi/spi_accessible.c: (New file)
7732         * cspi/spi_application.c: (New file)
7733         * cspi/spi_component.c: (New file)
7734         Split spi_main.c into six parts, and included them from
7735         "spi.c".  This is a bit of a hack, probably temporary,
7736         but required by gtk-doc, apparently.
7737         
7738 2001-08-20  Bill Haneman <bill.haneman@sun.com>
7739
7740         * docs/Makefile.am:
7741         * docs/at-spi-docs.sgml:
7742         * docs/at-spi-sections.txt:
7743         * configure.in:
7744         Initial checkins/modifications for gtk-doc generation.
7745         * cspi/spi.h:
7746         * cspi/spi.c:
7747         Added (missing) interface query methods to Accessible's C binding.
7748         * cspi/spi-impl.h:
7749         Added GenericInterface type definition.
7750         * test/simple-at.c:
7751         Added query for AccessibleComponent interface to focus event handler.
7752         Added printout of bounding box for focussed component.
7753         * libspi/component.c:
7754         Added partial implementation for AccessibleComponent to C binding.
7755         * idl/Application.idl:
7756         * libspi/registry.c:
7757         * libspi/listener.c:
7758         * libspi/application.c:
7759         * libspi/application.h:
7760         Changed "ID" attribute type from string to long.
7761
7762 2001-08-19  Bill Haneman <bill.haneman@sun.com>
7763
7764         * cspi/spi.h:
7765         * cspi/spi.c:
7766         Made method naming consistent: methods taking object args
7767         start with uppercase, other methods (except those using
7768         acronyms) start with lowercase.  Underscores delimit between
7769         object names and method names:
7770         SPI_init() - uppercase since it starts with an acronym.
7771         getDesktopCount () - lowercase start since no object param0.
7772         Accessible_getName() - uppercase object type name, studlyCaps method
7773                                name.
7774
7775         * cspi/spi.h:
7776         Added gtk-doc documentation for all currently implemented
7777         methods in the C bindings API.
7778
7779 2001-08-18  Bill Haneman <bill.haneman@sun.com>
7780
7781         * Makefile.am : changed build order to build test last.
7782         * cspi/spi.h :
7783         * cspi/spi_main.c :
7784         Changed "createEventListener" to "CreateEventListener".
7785         * libspi/accessibleeventlistener.c :
7786         Bugfix for addition of callbacks.
7787         * test/Makefile.am :
7788         * test/simple-at.c :
7789         Added new test that uses the C bindings API.
7790         * idl/Event.idl :
7791         * libspi/listener.c :
7792         * libspi/registry.c :
7793         * libspi/accessibleeventlistener.c :
7794         * at-bridge/bridge.c :
7795         Renamed member "target" of Accessibility_Event to "source",
7796         which is more descriptive.
7797         
7798
7799 2001-08-18  Bill Haneman <bill.haneman@sun.com>
7800
7801         * Makefile.am: 
7802         * configure.in :
7803         * cspi/Makefile.am :
7804         Added makefile support for at-spi/cspi directory.
7805         * cspi/spi.h : 
7806         * cspi/spi-impl.h :
7807         * cspi/spi-listener.h : (NEW FILE)
7808         Added support for/use of spi-listener.h.
7809         * cspi/spi_main.c :
7810         C bindings now build successfully, with no warnings.
7811         * libspi/accessibleeventlistener.h : (NEW FILE)
7812         * libspi/accessibleeventlistener.c : (NEW FILE)
7813         * libspi/Makefile.am :
7814         Added new object type "AccessibleEventListener"
7815         which inherits from Listener, and allows attachment
7816         of in-process callbacks (so that a client with a listening
7817         object instance can add functionality to the local 
7818         implementation, dynamically).
7819
7820 2001-08-18  Bill Haneman <bill.haneman@sun.com>
7821
7822         * libspi/accessible.c: 
7823         Add implementation for get_index_in_parent().
7824         * cspi/spi.h : 
7825         Added #include of "spi-roletypes.h", and
7826         added enumerated type AccessibleCoordType.
7827         Added definition for KeystrokeListener (function type).
7828
7829         ADDED FILES:
7830         * cspi/spi-statetypes.h :
7831         * cspi/spi-roletypes.h :
7832         * cspi/spi-impl.h :
7833         Added these headers, used by spi.h.
7834         * cspi/spi_main.c : 
7835         Added code (NOTE: not yet built by make).
7836
7837 2001-08-18  Mark McLoughlin <mark@skynet.ie>
7838
7839         * libspi/Makefile.am: generate imodule
7840         at the same time as other idl compiler 
7841         generated files. 
7842
7843 2001-08-17  Bill Haneman <bill.haneman@sun.com>
7844         * libspi/registry.c :
7845         * libspi/application.c :
7846         * idl/Application.idl :
7847         Made registration with toolkit an application method,
7848         which is required since each app has its own toolkit static
7849         environment.  Thus the bridge must register for 
7850         notification of toolkit events from each application in turn.
7851         Toolkit notifications are now successfully registered for, and
7852         sent to the listening at client.
7853         * test/at.c :
7854         Changed toolkit event string to use hyphens rather than underscores.
7855         * libspi/listener.c :
7856         listner now gives more info in debug mode - it reports the
7857         name of the event received, as well as the name of the source.
7858         
7859
7860 2001-08-16  Bill Haneman <bill.haneman@sun.com>
7861
7862         * libspi/registry.c :
7863         added more implementation for toolkit events.
7864         Fixed bug such that toolkit event registrations
7865         (via atk) use the whole event name string, not 
7866         just minor+detail.
7867         Removed a useless call to an ORBit_ method.
7868         * at-bridge/bridge.c :
7869         Removed unused local sbuf[] variable.
7870         * test/at.c :
7871         We now register for Gtk:GtkWidget:button_press_event 
7872         events as well as "focus:" events.
7873         * cspi/spi.h :
7874         Add some more API from Registry.idl that was missing,
7875         for keystroke listening, keystroke and mouse event
7876         synthesis, and enumeration of accessible desktops.
7877
7878 2001-08-16  Michael Meeks  <michael@ximian.com>
7879
7880         * configure.in: use AM_GLIB_GNU_GETTEXT.
7881
7882         * Makefile.am (SUBDIRS): kill intl.
7883
7884 2001-08-15  Michael Meeks  <michael@ximian.com>
7885
7886         * registryd/Makefile.am: s/oaf/server/ relocate info file.
7887
7888         * configure.in: upd.
7889
7890         * configure.in: depend on a recent bonobo-activation that
7891         will find our server files ...
7892
7893 2001-08-16  Bill Haneman <bill.haneman@sun.com>
7894
7895         * libspi/accessible.c : accessible_new() :
7896         Now we add the Component interface via bonobo_object_add_interface,
7897         if the contained AtkObject implements AtkComponent.
7898         * libspi/accessible.h : now include "component.h"
7899         * libspi/component.h :
7900         * libspi/component.c : added files - implementation of
7901         bonobo wrapper object for Accessibility/Component
7902         * libspi/listener.c :
7903         Added test code to check for Accessibility/Component:1.0
7904         interface and report whether it is implemented by the
7905         event source.
7906         * libspi/registry.c :
7907         Now we check for not only the hash of the whole event 
7908         string before relaying the event, we also check the
7909         "minor" event string (without the detail string).
7910         This allows event listeners to be registered against
7911         all events of a certain major+minor type, or just
7912         against a specific major+minor+detail type.
7913         * libspi/accessible.c :
7914         Added implementations for Accessible:get_parent(),
7915         Accessible:getChildCount(), and Accessible:getChildAtIndex().
7916         * libspi/registry.c :
7917         * libspi/listener.c :
7918         Replaced calls to Accessibility_Accessible_ref() and
7919         Accessibility_Accessible_unref() with 
7920         calls to bonobo_object_dup_ref() and 
7921         bonobo_object_release_unref(), so that the CORBA object
7922         is dup-ed and released when relayed, as well as the bonobo object.
7923
7924 2001-08-15  Mark McLoughlin <mark@skynet.ie>
7925
7926         * libspi/Makefile.am,
7927           registryd/Makefile.am,
7928           at-bridge/Makefile.am.
7929           test/Makefile.am, configure.in:
7930         reverse previous changes.
7931
7932         * /idl/Image.idl: fix typo.
7933
7934         * test/Makefile.am: put DEBUG_FLAGS
7935         in CFLAGS.
7936
7937 2001-08-15  Mark McLoughlin <mark@skynet.ie>
7938
7939         * test/app.c: use argv[0] instead of
7940         g_type_prgname.
7941
7942 2001-08-15  Mark McLoughlin <mark@skynet.ie>
7943
7944         * libspi/Makefile.am,
7945           registryd/Makefile.am,
7946           at-bridge/Makefile.am.
7947           test/Makefile.am, configure.in:
7948         cleanup, replace individual LIBS/CFLAGS with
7949         AT_COMMON_{LIBS|CFLAGS}.
7950
7951         * README: format.
7952
7953 2001-08-15  Mark McLoughlin <mark@skynet.ie>
7954         
7955         * configure.in, libspi/Makefile.am:
7956         Change IDL path checking for bonobo-activation
7957         as opposed to oaf.
7958
7959 2001-08-15  Bill Haneman <bill.haneman@sun.com>
7960
7961         * registryd/registry.c : separated event listeners to use
7962         3 separate lists (focus, window, toolkit).  Began testing
7963         event names against hashes before relaying events.
7964         * test/at.c : now register for events of type "focus:"
7965         * test/app.c : now generate events of type "focus:"
7966         * at-bridge/bridge.c : register with ATK for focus events,
7967         and we now relay those focus events to any "focus:" listeners.
7968         This now works with the bridge as a GTK_MODULE when running test/at.
7969         * libspi/registry.c :
7970         * libspi/listener.c : 
7971         now we ref event sources before propagating, and unref on receipt.
7972         * libspi/registry.c : 
7973         some changes to internal structs, to support event typestring hashes.
7974         * text/app.c : changed the way the appname is generated.
7975         * cspi : added directory that will hold the C bindings library for 
7976                 non-CORBA/bonobo-savvy clients.
7977         * cspi/spi.h : header file that contains the function prototypes for the C binding.
7978         * idl/Component.idl : added in parameter to indicate coord system for
7979                 geometry-related calls.
7980         * idl/Hyperlink.idl : added readonly n_links attribute
7981         * idl/Image.idl : changed methods to attributes.
7982         
7983 2001-08-15  Mark McLoughlin <mark@skynet.ie>
7984
7985         * at-bridge/Makefile.am: link against
7986         ../libspi/libspi.la instead of -lspi.
7987
7988         * at-spi/test/app.c: include 
7989         bonobo-activation.h. Use a default appname
7990         if one is not provided.
7991
7992 2001-08-14  Bill Haneman <bill.haneman@sun.com>
7993
7994         * idl/Registry.idl : temporarily changed register_Application
7995         to oneway, to work around issue with initial registration 
7996         re-entrancy.
7997         * idl/Application.idl : changed attribute "id" from readonly 
7998         to read-write, since it needs to be assigned by Registry.
7999         * registryd/registryd.c : added call to set application id 
8000         on registration.
8001         * registryd/registry.c : changed de-registration procedure to
8002         use CORBA_Object_hash() to find matching object ref in application
8003         lists and listener lists.
8004         * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
8005         began distinguishing between event types (work in progress).
8006
8007 2001-08-13  Bill Haneman <bill.haneman@sun.com>
8008
8009         CHANGES:
8010         * libspi/application.c:
8011         Added implementations for get/set id, get_toolkitName,
8012         get_version.
8013         * registryd/registryd.c :
8014         * test/at.c :
8015         * test/app.c :
8016         * Makefile.am :
8017         Converted from use of OAF to bonobo-activation.
8018         * libspi/desktop.h :
8019         * libspi/desktop.c :
8020         * test/app.c :
8021         Removed references to atksimpleobject, since base atkobject
8022         implementation now provides functionality we need.
8023         * libspi/atksimpleobject.c :
8024         * libspi/atksimpleobject.h :
8025         Removed.
8026         
8027         ADDITIONS:
8028         * at-bridge
8029         * at-bridge/Makefile.am
8030         * at-bridge/bridge.c
8031         * configure.in
8032         * Makefile.am
8033         Added directory "bridge" and contents, and added dependencies
8034         in Makefile.am/configure.in.  
8035         Initial checkin of "at-bridge".
8036         This code is a GTK_MODULE which automatically registers
8037         GTK+ apps with the accessibility registry, using an object
8038         reference to the root ATK object.
8039         
8040 2001-08-10  Mark McLoughlin <mark@skynet.ie>
8041
8042         * po/Makefile.in.in: Remove. Again. If this
8043         doesn't get autogenerated - you need to update
8044         gnome-common.
8045
8046 2001-08-07  Mark McLoughlin <mark@skynet.ie>
8047
8048         * po/Makefile.in.in: Add. Again.
8049
8050 2001-07-31  Bill Haneman <bill.haneman@sun.com>
8051
8052         * libspi/accessible.c : added support for 'description' property.
8053         * libspi/accessible.c
8054         * libspi/desktop.c
8055         * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
8056             (since the two are now equivalent in libbonobo)
8057         * idl/Action.idl
8058         * idl/Component.idl
8059         * idl/Hyperlink.idl
8060         * idl/Image.idl
8061         * idl/Selection.idl
8062         * idl/Table.idl
8063         * idl/Text.idl
8064         * idl/Value.idl : changed these 'secondary' interfaces to inherit from
8065              Bonobo::Unknown as does Accessibility::Accessible.
8066         * idl/StreamableContent.idl : as above, and replaced internal InputStream
8067              interface with Bonobo::Stream, since it was redundant with it.
8068              (The Stream returned by a StreamableContext object is expected to
8069              implement only a subset of Bonobo::Stream)
8070
8071 2001-07-28  Anders Carlsson  <andersca@gnome.org>
8072
8073         * libspi/accessible.c (accessible_object_finalize): Change
8074           g_free to g_object_unref since the AtkObject is a GObject.
8075
8076 2001-07-30  Bill Haneman <bill.haneman@sun.com>
8077
8078         * idl/Accessibility.idl: add new IDL files
8079         
8080         Added:
8081         * idl/Action.idl: Definitions of actionable UI object
8082         * idl/Component.idl: Definitions of UI component geometry, etc.
8083         * idl/Hyperlink.idl: Defs of hyperlink behavior
8084         * idl/Image.idl: Def of accessible image
8085         * idl/Selection.idl: Definition of UI object with selectable children
8086         * idl/StreamableContent.idl: Definition of UI object with streamable backing data
8087         * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
8088         * idl/Text.idl: Interface defs for UI elements with complex textual content
8089         * idl/Value.idl: Definition of UI element that is a value controller or display
8090         
8091 2001-07-27  Michael Meeks  <michael@ximian.com>
8092
8093         * po/Makefile.in.in: remove autogenerated file from CVS.
8094
8095         * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
8096         type library.
8097
8098         * idl/Registry.idl: include guard.
8099
8100         * idl/Accessibility.idl: Add, and include all the other IDL
8101         files.
8102
8103         * idl/*.idl: remove mass of pragmas etc.
8104
8105 2001-07-26  Michael Meeks  <michael@ximian.com>
8106
8107         * registryd/Makefile.am (registryd_SOURCES): remove
8108         redundant at_.
8109
8110 2001-07-27  Mark McLoughlin <mark@skynet.ie>
8111
8112         * libspi/.cvsignore, registryd/.cvsignore,
8113           test/.cvsignore: updated.
8114
8115         * po/Makefile.in.in: gettext update.
8116
8117 2001-07-25  Bill Haneman <bill.haneman@sun.com>
8118
8119         * initial CVS checkin
8120
8121 2001-06-29  Michael Meeks  <michael@ximian.com>
8122
8123         * configure.in: add AM_CONFIG_HEADER to gen config.h
8124
8125         * acconfig.h: add.
8126