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