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