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