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