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