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