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