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