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