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