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