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