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