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