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