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