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