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