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