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