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