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