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