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