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