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