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