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