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