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