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