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