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