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