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