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