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