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