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