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