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