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