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