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