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