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