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