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