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