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