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