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