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