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