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