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