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