1 2004-03-24 Bill Haneman <billh@gnome.org>
4 Bracketed some debug output in
5 conditionals, to avoid printing it in normal use.
9 Don't cast 'object' to ATK_OBJECT when constructing
10 an AtkAction interface for a hyperlink.
11 See discussion in bug #120659.
13 * test/key-listener-test.c:
14 (report_all_key_event): Send output to stderr,
15 not stdout, for consistency with the rest of the test callbacks.
17 2004-03-22 Bill Haneman <billh@gnome.org>
19 * configure.in: Revved to 1.4.0, libtool 9.14.9
21 2004-03-17 Laszlo Peter <laca@sun.com>
23 * libspi-1.0-uninstalled.pc.in: add idldir
25 * cspi-1.0-uninstalled.pc.in: add idldir
27 2004-03-16 Gareth Owen <gowen72@yahoo.com>
29 * configure.in: Added "en_GB" to ALL_LINGUAS
31 2004-03-15 Bill Haneman <billh@gnome.org>
33 * configure.in: Revved to 1.3.16,
36 2004-03-15 Laszlo Peter <laca@sun.com>
38 * libspi-1.0-uninstalled.pc.in: new file
40 * cspi-1.0-uninstalled.pc.in: new file
42 * configure.in: add the new pc files to AC_OUTPUT
44 * Makefile.am: add the new pc files to EXTRA_DIST
46 2004-03-12 Bill Haneman <billh@gnome.org>
48 * atk-bridge/bridge.c:
49 (spi_atk_bridge_key_listener):
50 Make sure to return consumed=FALSE if snoop
51 event is not dispatched to listener.
54 2004-03-01 Bill Haneman <billh@gnome.org>
56 * configure.in: Revved to 1.3.15,
59 2004-03-07 Danilo Segan <dsegan@gmx.net>
61 * configure.in: Added "sr@ije" to ALL_LINGUAS.
63 2004-03-03 Guntupalli Karunakar <karunakar@freedomink.org>
65 * configure.in: Added "pa" for Punjabi in ALL_LINGUAS.
67 2004-03-01 Bill Haneman <billh@gnome.org>
69 * configure.in: Revved to 1.3.14.
72 (SPI_exit): Removed "bye-bye" exit message.
73 Moved "leak" report to happen before the
74 iteration over the leaked refs list.
75 Don't PRINT_LEAKS unless DEBUG_OBJECTS is also #defined.
77 2004-02-24 Bill Haneman <billh@gnome.org>
79 * configure.in: Revved to 1.3.13.
81 * docs/reference/cspi/Makefile.am:
82 Correct typo that was breaking the docs build.
84 2004-02-11 Padraig O'Briain <padraig.obriain@sun.com>
86 * autogen.sh: Require version 1.7 of automake.
88 * configure.in: call GTK_DOC_CHECK([1.0])
90 * atk-bridge/Makefile.am: Remove use of LDFLAGS and CFLAGS
92 * docs/reference/cspi/Makefile.am: Update to use new gtk-doc.
94 * libspi/Makefile.am: Remove use of LDFLAGS and CFLAGS.
96 * test/Makefile.am: Remove use of CFLAGS.
98 This fixes bug #132987.
100 2004-02-11 Bill Haneman <billh@gnome.org>
102 * reverted most of Tomasz' patch below, since it was breaking
103 builds (see bug #134058).
105 2004-02-10 Tomasz K³oczko <kloczek@pld.org.pl>
107 * docs/reference/cspi/at-spi-cspi.types: added empty file for
108 correct pass "make dist" (empty .. because seems no sach types in
109 header files with gtk-doc markups).
110 * docs/reference/cspi/Makefile.am, configure.in:
111 Added better gtk-doc support using GTK_DOC_CHECK aclocal macro
112 from gtk-doc >= 1.0 (modyfications based on scheme from atk).
113 * Makefile.am: added:
114 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
115 for force correct pass generate documentation on "make distcheck".
116 * libspi/Makefile.am: fixes for automake >= 1.6.
117 * configure.in: Trivial cleanup: remove AC_SUBST(CFLAGS),
118 AC_SUBST(CPPFLAGS) and AC_SUBST(LDFLAGS). This variables are
121 Sun Feb 8 11:20:50 2004 Matthias Clasen <maclas@gmx.de>
123 * docs/reference/cspi/Makefile.am (install-data-local): Install
124 index.sgml since the doc autobuilder on widget.gnome.org looks for
127 2004-02-02 Padraig O'Briain <padraig.obriain@sun.com>
129 * atk-bridge/bridge.c (spi_atk_tidy_windows): Correct g_free call to
132 2004-02-01 Robert Sedak <robert.sedak@sk.htnet.hr>
134 * configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
136 2004-01-27 Brian Cameron <brian.cameron@sun.com>
138 * test/simple-at.c: Fixed null string problems that cause core
139 dumping problems on Solaris.
141 2004-01-12 Bill Haneman <billh@gnome.org>
143 * configure.in: Incremented version to 1.3.11.
145 2004-01-05 Padraig O'Briain <padraig.obriain@sun.com>
147 * docs/reference/cspi/at-spi-cspi-docs.sgml: Added XML in
148 DOCTYPE statement. Fixes bug #129728. Patch supplied by Sebastien
151 2004-01-01 Roozbeh Pournader <roozbeh@sharif.edu>
153 * configure.in: Added "fa" to ALL_LINGUAS.
155 2003-12-20 Arafat Medini <lumina@silverpen.de>
157 * configure.in: Added "ar" to ALL_LINGUAS
159 2003-12-16 Bill Haneman <billh@gnome.org>
161 * registryd/registry-main.c:
163 Set the reg_env DISPLAY variable before registering the
164 activated registry service. Fixes bug #129479.
166 2003-12-16 Mohammad DAMT <mdamt@bisnisweb.com>
168 * configure.in: Added "id" in ALL_LINGUAS
169 * po/id.po: Indonesian translation by Ahmad Riza H Nst <ari@160c.afraid.org>
171 2003-12-15 Padraig O'Briain <padraig.obriain@sun.com>
173 * registryd/deviceeventcontroller.c (global_filter_fn):
174 When an event is consumed discard any XEvents were added to
175 the queue while dealing with the the event. This can happen if
176 processing of the event takes a long time. Call XUngrabKeyboard
177 if an event was discarded. This fixes bug $124837.
178 Only call wait_for_release_event for a KeyPress.
179 Use local variable display instead of spi_get_display().
180 (spi_controller_update_key_grabs): Move call to keycode_for_keysym
183 2003-12-11 Padraig O'Briain <padraig.obriain@sun.com>
185 * registryd/deviceeventcontroller.c (spi_dec_translate_mask):
186 Allow for mask to contain values other than NumLock mask.
189 2003-12-10 Padraig O'Briain <padraig.obriain@sun.com>
191 * registryd/devieceventcontroller.c:
192 (wait_for_release_event): Change first parameter from GdkEvent to
194 (global_filter_fn); Correct call to wait_for_release_event.
198 2003-12-08 Bill Haneman <billh@gnome.org>
202 * registryd/ucs2keysym.c: New file.
204 * registryd/deviceeventcontroller.c:
205 (dec_keysym_for_unichar): Remove old partial implementation and
206 replace with call to ucs2keysym(), which is much more complete.
207 Thanks to Marcus G. Kuhn who put the original keysym2ucs.c into
212 2003-12-05 Bill Haneman <billh@gnome.org>
214 * configure.in: Version 1.3.9.
216 * docs/reference/cspi/tmpl/spi_registry.sgml:
217 Added reference to libspi/keymasks.h to the
218 description of Registry queries: AccessibleKeyMaskType.
221 2003-12-04 Bill Haneman <billh@gnome.org>
225 * idl/Accessibility_Application.idl:
226 (Accessibility::LOCALE_TYPE): New enum, corresponds to
227 setlocale's LC_TYPEs.
228 (Accessibility::Application::getLocale): New method.
229 Allows clients to query the locale, by type, of an app.
232 * cspi/spi_application.c:
233 (AccessibleApplication_getLocale): New method, wraps IDL above.
235 * libspi/application.c:
236 (spi_application_class_init): Init epv entry for getLocale.
237 (impl_accessibility_application_get_locale): Impl for above.
239 * test/test-simple.c:
240 (test_application): Added assertion for getLocale, i.e.
241 that the string from AccessibleApplication_getLocale (app, type)
242 is the same as that from setlocale (type, NULL);
244 2003-12-03 Padraig O'Briain <padraig.obriain@sun.com>
246 *registryd/deviceeventcontroller.c: Add an idle handler which polls
247 the keyboard on a timeout intil the key state goes from pressed to
248 released. Fixes bug #111429.
250 2003-12-03 Padraig O'Briain <padraig.obriain@sun.com>
252 * atk-bridge/bridge.c: (atk_bridge_init): Create accessible application
253 root object so that it is present when a context menu in an
254 out-of-process applet is popped up.
255 (spi_atk_bridge_do_registration): Create acceessible application root
256 object only if it does not exist.
258 This fixes bug #125834.
260 2003-12-01 Bill Haneman <billh@gnome.org>
262 Fix for bug #114926. Thanks to Michael Meeks for some of this patch.
265 Added enum for AccessibleStreamableContentSeekType.
266 (AccessibleStreamableContent_freeContentTypeList): New.
268 * cspi/spi_streamablecontent.c:
269 (accessible_bonobo_stream_client_seek): New private method.
270 (AccessibleStreamableContent_seek): Implemented this method,
271 using Bonobo_Stream_seek.
272 (AccessibleStreamableContent_freeContentTypeList): New method
273 for freeing the return value from
274 AccessibleStreamableContent_getContentTypes.
275 (stream_cache_item_free): Replaces stream_release; stop leaks.
276 (stream_release): removed.
277 (AccessibleStreamableContent_read): Use properly init'd CORBA_evs,
278 free the memory properly.
280 2003-12-02 Padraig O'Briain <padraig.obriain@sun.com>
284 * cspi/spi-roletypes.h: Add SPI_ROLE_EDITBAR.
286 * cspi/spi_accessible.c (cspi_init_role_table): Add SPI_ROLE_EDITBAR.
288 * docs/reference/cspi/tmpl/spi-accessible.sgml: Add SPI_ROLE_EDITBAR
290 * idl/Accessibility_Role.idl: Add ROLE_EDITBAR.
292 2003-12-01 Bill Haneman <billh@gnome.org>
294 Fix for bug/rfe #127463.
296 * idl/Accessibility_Accessible.idl:
297 (getLocalizedRoleName): New.
298 (unimplemented4): Removed (replaced by above).
300 * libspi/accessible.c:
301 (impl_accessibility_accessible_get_local_role_name): New.
302 (spi_accessible_class_init): Add getLocalizedRoleName entry to
306 (Accessible_getLocalizedRoleName): New.
308 * cspi/spi_accessible.c:
309 (Accessible_getLocalizedRoleName): New.
311 2003-12-01 Bill Haneman <billh@gnome.org>
314 * idl/Accessibility_Text.idl:
315 (getDefaultAttributes): New.
316 (unimplemented4): Removed (replaced by above method).
319 (impl_getDefaultAttributes): New method.
320 (spi_text_class_init):
321 initialize the get_default_attributes slot in the epv.
324 (AccessibleText_getDefaultAttributes): New prototype.
327 (AccessibleText_getDefaultAttributes): New method.
329 2003-11-06 Padraig O'Briain <padraig.obriain@sun.com>
331 * cspi/spi_accessible.c (cspi_init_relation_type_table): Do not
332 write beyond the end of the table. Fixes bug #120473.
334 2003-09-30 Christian Rose <menthos@menthos.com>
336 * configure.in: Added "eu" to ALL_LINGUAS.
338 2003-09-28 Kjartan Maraas <kmaraas@gnome.org>
340 * configure.in: ALL_LINGUAS: Added no.
342 2003-09-28 Gediminas Paulauskas <menesis@delfi.lt>
344 * configure.in: Added lt to ALL_LINGUAS.
346 2003-09-25 Padraig O'Briain <padraig.obriain@sun.com>
348 * atk-bridge/bridge.c:
349 (atk_bridge_init): Register event listeners always even for
350 out-of-process applet.
351 (spi_atk_bridge_toplevel_added): Remove call to
352 spi_atk_bridge_event_type_consts as it is now called in atk_bridge_init
353 (spi_atk_bridge_toplevelk_removed): Remove call to
354 spi_atk_deregister_event_listenersa as the listeners are now always
356 (spi_atk_bridge_register_application): Remove call to
357 spi_atk_register_event_listeners as it is not done in atk_bridge_init
359 This fixes bug #120991.
361 * libspi/table.c (impl_getColumnDescription): Correct typo,
362 pointed out by Bolian.Yin@sun.com.
364 2003-09-21 Ã
\85smund Skjæveland <aasmunds@fys.uio.no>
366 * configure.in: Added nn to ALL_LINGUAS (which is commented out).
368 2003-09-08 Bill Haneman <billh@gnome.org>
370 * configure.in: Revved to 1.3.7.
372 This is the GNOME 2.4.0 release of at-spi.
374 * docs/reference/cspi/Makefile.am:
375 Removed spurious inclusion of 'index.sgml' in the
376 html directory; this was breaking make distcheck and
377 also some other build environments.
379 2003-09-05 Padraig O'Briain <padraig.obriain@sun.com>
381 * registryd/registry.[ch}:
382 Add queue_handler_id and focus_object to SpiRegistry data structure.
383 (registry_flush_event_queue): If event being discarded is
384 "state-change:focused" store object as focus_object.
385 (registry_start_queue): Remove queue handler and focus object
387 (registry_discard_event): New function which discards a focus event
388 if we had stored focus object in the registry.
389 (registry_queue_event): Add new check that is_queueing is set as this
390 function is reentrant.
391 (registry_filer_event): Add call to registry_discard_event.
393 This resolves issues raised in bug #108664.
395 2003-09-05 Taneem Ahmed <taneem@bengalinux.org>
397 * configure.in: Added "bn" to ALL_LINGUAS.
399 2003-09-04 Bill Haneman <billh@gnome.org>
401 * cspi/spi_event.c: Documentation improvements for
402 (SPI_registerAccessibleKeylistener).
404 * docs/reference/tmpl/spi_registry.sgml:
405 Documentation improvements for SpiAccessibleKeylistenerCB.
407 2003-09-02 Mugurel Tudor <mugurelu@go.ro>
409 * configure.in: Added "ro" to ALL_LINGUAS.
412 2003-09-01 Padraig O'Briain <padraig.obriain@sun.com>
414 * cspi/spi_main.c (cspi_object_return): Ensure that reference count is
415 not decremented to zero. Fixes bug #120725.
417 2003-08-30 KAMAGASAKO Masatoshi <emerald@gnome.gr.jp>
419 * configure.in: Added "ja" to ALL_LINGUAS.
421 2003-08-22 Samúel Jón Gunnarsson <sammi@techattack.nu>
423 * configure.in: Added "is" to ALL_LINGUAS.
425 2003-08-22 Christian Rose <menthos@menthos.com>
427 * configure.in: Added "nl" to ALL_LINGUAS.
429 2003-08-19 Padraig O'Briain <padraig.obriain@sun.com>
431 * cspi/spi-private.h: Add declaration for _cspi_exceptoin_throw
432 * cspi/spi_accessible.c (cspi_init_relation_type_table): Add call
434 * cspi/spi_event.c: (AccessibleEvent_unref); Add casts to gfree
436 * cspi/spi_main.c (SPI_Exception_getSourceType); Return the correct
437 type for unspecified exception.
438 * cspi_streamablecontect): Add include of string.h for memcpy.
439 (stream_release): Correct call to bonobo_object_release_unref
440 (stream_cache_item_free): Correct call to bonobo_object_release_unref
441 * cspi/bonobo/spi-bonobo.c: (cspi_check_event): Add cast to second
442 argument of _cspi_expection_throw.
443 * libspi/hyperlink.c: Add include of libspi/action.h:
444 (spi_hyperlink_new): Cast argument to spi_action_interface_new.
445 * libspi/streamablecontent.c: add include of libspi/component.h.
446 * regisrtyd/deviceeventcontroller.c:
447 (spi_dec_translate_mask): Removed unused variable priv.
448 (dec_synth_keysym): Initialize lock_mods to avoid compilker warning/
449 * registryd/registry.c:
450 (registry_filter_event): Remove unused variable queue_is-empty.
451 (impl_registry_notify_event): Use correct modifier in fprintf call.
453 This fixes compiler warnings reported in bug #120220.
455 2003-08-18 Padraig O'Briain <padraig.obriain@sun.com>
457 * registryd/registryd.c: Remove this file.
459 2003-08-17 Sanlig Badral <badral@openmn.org>
461 * configure.in: Added mn to ALL_LINGUAS.
463 2003-08-16 Tõivo Leedjärv <toivo@linux.ee>
465 * configure.in: Added et to ALL_LINGUAS.
467 2003-08-13 Padraig O'Briain <padraig.obriain@sun.com>
469 * test/event-listener-test.c: Change active-descendant to
470 active-descendant-changed.
472 2003-08-10 Sami Pesonen <sampeson@iki.fi>
474 * configure.in: Added "fi" in ALL_LINGUAS.
476 2003-08-08 Guntupalli Karunakar <karunakar@freedomink.org>
478 * configure.in: Added "hi" in ALL_LINGUAS.
480 2003-08-08 Padraig O'Briain <padraig.obriain@sun.com>
482 * configure.in: Revved to 1.3.6.
486 2003-08-07 Padraig O'Briain <padraig.obriain@sun.com>
488 * registryd/deviceeventcontroller.c
489 (spi_device_event_controller_object_finalize): Fix typo in previous
492 2003-08-07 Marc Mulcahy <marc.mulcahy@sun.com>
494 * registryd/deviceeventcontroller.c
495 (spi_device_event_controller_object_finalize): Fix build on
496 systems without XEvIE.
498 2003-08-06 Brian Cameron <Brian.Cameron@sun.com>
500 * acconfig.h, configure.in, registryd/Makefile.am,
501 registryd/devicecontoller.[ch]: Add XEViE support.
503 2003-08-06 Wang Jian <lark@linux.net.cn>
505 * configure.in: Added "zh_CN" to ALL_LINGUAS.
507 2003-08-06 Metin Amiroff<metin@karegen.com>
509 * configure.in: Added "az" (Azerbaijani) to ALL_LINGUAS
511 2003-08-06 Padraig O'Briain <padraig.obriain@sun.com>
513 * idl/Accessibility_Registry.idl: Put MODIFIER_SHIFTLOCk and
514 MODIFIER_ALT in correct place.
516 This fixes part of bug #118114.
518 2003-07-30 Alessio Frusciante <algol@firenze.linux.it>
520 * configure.in: Added "it" (Italian) to ALL_LINGUAS.
522 2003-07-28 Changwoo Ryu <cwryu@debian.org>
524 * configure.in: Added "ko" to ALL_LINGUAS.
526 2003-07-28 Ole Laursen <olau@hardworking.dk>
528 * configure.in: Added "da" to the commented out ALL_LINGUAS.
530 2003-07-27 Laurent Dhima <laurenti@alblinux.net>
532 * configure.in: Added "sq" to ALL_LINGUAS.
534 2003-07-27 Hasbullah Bin Pit <sebol@ikhlas.com>
536 * configure.in: Added 'ms' (Malay) in ALL_LINGUAS.
538 2003-07-24 Pablo Saratxaga <pablo@mandrakesoft.com>
540 * configure.in: updated ALL_LINGUAS list
542 2003-07-24 Dmitry G. Mastrukov <dmitry@taurussoft.org>
544 * configure.in: Added Belarusian to ALL_LINGUAS.
546 2003-07-23 Padraig O'Briain <padraig.obriain@sun.com>
548 * cspi/spi_event.c (AccessibleEvent_unref): Call CORBA_free for
550 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event): Call
551 CORBA_any__alloc to allocate CORBA_Any in InternalEvent.
553 This fixes bug #116949.
555 2003-07-22 Padraig O'Briain <padraig.obriain@sun.com>
557 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
558 Correct CSPI to SPI in function documentation.
560 This fixes bug #118054.
562 2003-07-16 Dmitry G. Mastrukov <dmitry@taurussoft.org>
564 * configure.in: Added Russian to ALL_LINGUAS.
566 2003-07-16 Duarte Loreto <happyguy_pt@hotmail.com>
568 * configure.in: Added Portuguese (pt) to ALL_LINGUAS.
570 2003-07-14 Danilo Å Segan <dsegan@gmx.net>
572 * configure.in: Added "sr" and "sr@Latn" (Serbian) to ALL_LINGUAS.
574 2003-07-10 Joel Brich <joel.brich@laposte.net>
576 * configure.in: Added "eo" (Esperanto) to ALL_LINGUAS.
578 2003-07-07 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
580 * configure.in (ALL_LINGUAS): Added "es" (Spanish).
582 2003-07-07 Padraig O'Briain <padraig.obriain@sun.com>
584 * cspi/spi_event.c (AccessibleEvent_unref): Update code to free
585 resources allocated for AccessibleEvent. See cspi_event().
587 * cspi/spi_streamablecontent.c (cspi_streams_close_all): Set
588 static variable streams to NULL.
590 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
591 Update so that AcessibleEvent_ref will work.
593 This fixes bug #116624.
595 2003-07-06 Jordi Mallach <jordi@sindominio.net>
597 * configure.in (ALL_LINGUAS): Added "ca" (Catalan).
599 2003-07-06 Christophe Merlet <redfox@redfoxcenter.org>
601 * configure.in: Added "fr" (French) to ALL_LINGUAS.
603 2003-07-02 Christian Neumair <chris@gnome-de.org>
605 * configure.in: Added "de" (German) to ALL_LINGUAS.
607 2003-07-01 Dafydd Harries <daf@parnassus.ath.cx>
609 * configure.in: Added "cy" (Welsh) to ALL_LINGUAS.
611 2003-07-01 Miloslav Trmac <mitr@volny.cz>
613 * configure.in: Addded "cs" to ALL_LINGUAS. Why is it commented out?
615 2003-07-01 Artur Flinta <aflinta@cvs.gnome.org>
617 * configure.in: Added "pl" to ALL_LINGUAS.
619 2003-07-01 Gil "Dolfin" Osher <dolfin@rpg.org.il>
621 * configure.in: Added "he" (Hebrew) to ALL_LINGUAS.
623 2003-06-30 Bill Haneman <bill.haneman@sun.com>
626 (get_action_from_servant):
627 Removed assertion that action is implemented on an AtkObject.
629 * libspi/hyperlink.c:
631 Aggregate AccessibleAction interface on the hyperlink object if
632 the object implements AtkAction. (This convention is used in
635 2003-06-30 Bill Haneman <bill.haneman@sun.com>
637 * configure.in: Revved to 1.3.5.
639 * registryd/Accessibility_Registry.server.in.in:
640 Marked up appropriate strings for translation.
642 * atk-bridge/bridge.c: Marked a couple of
643 user-visible warnings for translation. Questionable
644 whether they are really useful, but possibly so.
647 2003-06-28 Christian Rose <menthos@menthos.com>
649 * configure.in: Added "sv" to ALL_LINGUAS.
651 2003-06-26 Bill Haneman <bill.haneman@sun.com>
653 * registryd/registry.c:
654 (spi_registry_object_finalize): Unref the deviceeventcontroller.
655 (registry_defer_on_event): Defer focus: events, this is an
656 improvement to the patch for bug #108664.
658 * TODO: Update with 2.4/"Dev Complete" items.
660 2003-06-26 Padraig O'Briain <padraig.obriain@sun.com>
662 * atk-bridge/bridge.c:
663 (spi_atk_bridge_init_event_type_consts): Ensure that this function only
664 looks up signals once.
665 (atk_bridge_init): Call spi_atk_bridge_init_event_type_consts only
666 if doing registration.
667 (spi_atk_bridge_toplevel_added): Call spi_bridge_init_event_type_consts
668 when doing registration.
670 This fixes bug #115014.
672 2003-06-25 Padraig O'Briain <padraig.obriain@sun.com>
674 * atk-bridge/bridge.c:
675 (atk_bridge_init): Add signal handler for children-changed:remove on
676 root when in a BonoboComponent.
677 (spi_atk_bridge_toplevel_added): Call spi_atk_bridge_do_registration
678 for first toplevel only other incrememt variable toplevels.
679 (spi_atk_bridge_toplevel_removed): For last toplevel deregister
680 application and remove listeners.
681 (spi_atk_bridge_get-registry): Change NULL to CORBA_OBJECT_NIL for
683 (spi_atk_deregister_event_listeners): New function which removes
685 (reinit_register_vars): New fuction which reinitializes variables.
687 This fixes bug #111578.
689 2003-06-13 Bill Haneman <bill.haneman@sun.com>
691 * configure.in: version 1.3.4.
693 * cspi/spi_accessible.c:
694 Changed test of obj==NULL to obj==CORBA_OBJECT_NIL.
697 2003-06-13 Michael Meeks <michael@ximian.com>
699 * cspi/bonobo/cspi-bonobo.c (cspi_check_ev): use it.
701 * cspi/spi_main.c (cspi_peek_ev): impl.
703 2003-06-11 Padraig O'Briain <padraig.obriain@sun.com>
705 * cspi/spi-roletypes.h: Add role SPI_ROLE_AUTOCOMPLETE
707 * cspi/spi_accessible.c (cspi_init_role_table): Add ROLE_AUTOCOMPLETE.
709 * docs/reference/cspi/tmpl/spi_accessible.sgml: Add role
710 SPI_ROLE_AUTOCOMPLETE
712 * idl/Accessibility_Role.idl: Add role ROLE_AUTOCOMPLETE
714 * libspi_accessible.c(spi_init_role_lookup_table): Add lookup
715 for ROLE_APPLICATION and ROLE_AUTOCOMPLETE
717 2003-06-11 Bill Haneman <bill.haneman@sun.com>
719 * libspi/streamablecontent.h:
720 * libspi/streamablecontent.c:
721 New files, provide implementation/wrappers for
722 Accessibility_StreamableContent.
724 * cspi/spi_streamablecontent.c:
725 Connected the C wrappers to the libspi C bindings.
726 (AccessibleStreamableContent_close): New method.
729 (AccessibleStreamableContent_close): New method, needed
730 since we have an "open, [seek], read, close" model in cspi.
732 2003-06-11 Bill Haneman <bill.haneman@sun.com>
734 Fix for #108664; Padraig's revision of my original patch.
736 * registryd/registry.h:
737 Added event queue list, is_queuing, and exit_notify_timeout
738 to the registry struct.
740 * registryd/registry.c:
741 (registry_init): Initialize new struct from registry.h.
742 (impl_registry_notify_event):
743 Filter events before notifying, in case some need to be
745 (registry_filter_event): New,
746 we defer certain incoming events (for instance
747 window:deactivate) because we may wish to hide
748 or reject them based on pending events. This is
749 mostly a workaround for bug #108664.
750 (registry_queue_event, registry_start_queue): New.
751 (registry_defer_on_event): Test event to see if it
753 (registry_reset_on_event): Returns TRUE if the
754 event should cause a queue reset.
755 (registry_discard_on_event): Returns TRUE if the event
756 should cause the previous queue contents to be discarded.
757 (registry_timeout_flush_queue): Flushes the pending event
758 queue if no reset/discard-triggering events have come in
759 within the timeout period.
760 (registry_emit_event): New.
761 (registry_clone_notify_context): New, used when queueing the
762 event notify contexts.
764 2003-06-10 Bill Haneman <bill.haneman@sun.com>
766 * configure.in: Version revved to 1.3.2, lt 0.9.2
767 Incremented ATK required version to 1.3.4.
769 * cspi/spi_registry.c:
770 (SPI_generateKeyEvent):
771 We now pass the keystring along if it's non-null.
773 * registryd/deviceeventcontroller.c:
774 (keysym_mod_mask): New method, returns modifier mask
775 required to generate a keysym from a given keycode.
776 (dec_synth_keysym): New method.
777 (dec_synth_keystring): New method.
778 (dec_get_modifier_state): New method.
779 (dec_lock_modifiers): New
780 (dec_unlock_modifiers): New.
781 (dec_keysym_for_unichar): New, rather brute-force
782 conversion from UCS-4 to X KeySyms. Only works for
783 Latin at the moment, with partial implementations for
784 Greek, Hebrew, and (incomplete) Katakana.
785 (impl_generate_keyboard_event): Now implement
786 "KEYSTRING" synthesis and implement "KEYSYM"
788 (keycode_from_keysym): Improved, passes a returned
789 modmask value now if the corresponding param is non-NULL.
791 Fixes bugs #92143 and #109776.
794 * test/keysynth-test.c:
795 New test program for key synthesis, to confirm fixes for
799 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
801 * cspi/spi.h: Add relation SPI_RELATION_POPUP_FOR
803 * cspi/spi_accessible.c (cspi_init_relation_type_table):
804 Add line for RELATION_POPUP_FOR
806 * docs/reference/cspi/tmpl/spi_relation.sgml:
807 Add relation SPI_RELATION_POPUP_FOR
809 * docs/reference/cspi/tmpl/spi_stateset.sgml:
810 Change state SPI_STATE_INCONSISTENT to SPI_STATE_INDETERMINATE
812 * idl/Accessibility_Reloation.idl: Add RELATION_POPUP_FOR.
814 * libspi/relation.c (spi_init_relation_type_table):
815 Add line for RELATION_POPUP_FOR
817 2003-06-10 Padraig O'Briain <padraig.obriain@sun.com>
819 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
820 there are still windows which have not been deleted and emit
821 window:deactivate, if necessary and window:destroy events.
822 This fixes bug #114370. The change on June 5th was not correct.
824 2003-06-09 Bill Haneman <bill.haneman@sun.com>
826 * configure.in: Revved to 1.3.3. (lt-version 9:2:9, .so.0.9.2)
829 (SPI_dupString): Allow dup-ing of a string such that it's safe to
831 New methods for client exception handling and interception.
832 (SPI_exceptionHandlerPush): New - push a handler onto the stack.
833 (SPI_exceptionHandlerPop): You guessed it...
834 (SPI_getSourceType): Return the type of object which offended.
835 (SPI_getExceptionCode): Return an enum code telling, possibly,
836 what sort of thing went wrong, i.e. DISCONNECT (object died), etc.
837 (SPIAccessibleException_getSource): get the source object for
838 exceptions that come from Accessibles, if SPIExceptionSourceType is
839 SPI_EXCEPTION_SOURCE_ACCESSIBLE.
840 (SPIException_getDescription): New, returns a string description of
841 the problem. [Not yet a stable ABI, strings are not frozen]
843 * cspi/spi-private.h:
844 Added implementation details of opaque SPIException
848 Implementations of above. Also
849 (_cspi_exception_throw): new private method that
850 dispatches exceptions to handlers, called from cspi-bonobo.c
852 * cspi/bonobo/cspi-bonobo.c:
853 (cspi_check_ev): call _cspi_exception_throw.
854 Don't print a warning message if the exception has been
855 handled by _cspi_exception_throw.
857 2003-06-05 Padraig O'Briain <padraig.obriain@sun.com>
859 * cspi/atk-bridge/bridge.c (spi_atk_bridge_exit_func): Check if
860 there are still windows which have not been deleted and emit
861 window:deactivate, if necessary and window:destroy events.
862 This fixes bug #114370.
864 2003-06-03 Bill Haneman <bill.haneman@sun.com>
867 (cspi_accessible_is_a): Make non-fatal
868 if the object reference is dead.
870 Mon Jun 2 15:35:29 2003 Jonathan Blandford <jrb@redhat.com>
872 * cspi/spi_main.c: #include <stdio.h>
873 * test/simple-at.c: ditto
874 * test/event-listener-test.c: ditto
875 * test/screen-review-test.c: ditto
877 2003-05-30 Michael Meeks <michael@ximian.com>
879 * test/test-simple.c (main): use CORBA_ORB_perform_work
880 instead of an unnecessary linc_ call.
882 2003-05-20 Padraig O'Briain <padraig.obriain@sun.com>
884 * cspi/spi-statetypes.h, cspi/docs/tmpl/spi_stateset.sgml:
885 Add SPI_STATE_INDETERMINATE.
887 * cspi/spi_accessible.c (spi_state_to_corba): Add support for
890 * idl/Accessibility_State.idl: Add support for STATE_INDETERMINATE.
892 * libspi/stateset.c (init_state_type_tables): Add support for
895 2003-05-19 Padraig O'Briain <padraig.obriain@sun.com>
897 * configure: Update versions of atk and gail required.
898 This fixes bug #113268.
900 2003-05-02 Bill Haneman <bill.haneman@sun.com>
902 * configure.in: Revved micro version to 1.3.1 (because of build fix).
904 2003-05-02 Frederic Crozat <fcrozat@mandrakesoft.com>
906 * libspi/Makefile.am:
907 Ensure headers are generated before being used by c sources.
909 2003-05-01 Bill Haneman <bill.haneman@sun.com>
912 Simplified lt versioning rules.
913 Incremented version to 1.3.0, to indicate that we're on the
916 2003-04-29 Padraig O'Briain <padraig.obriain@sun.com>
918 * docs/reference/cspi/Makefile.am, docs/reference/idl/Makefile.am:
919 Add MKDB_OPTIONS=--outtput-format=xml
921 * docs/reference/cspi/at-spi-cspi-docs.sgml
922 docs/reference/idl/at-spi-idl-docs.sgml:
923 Convert to Docbook XML.
925 This fixes bug #111793.
927 2003-04-25 Padraig O'Briain <padraig.obriain@sun.com>
929 * cspi/spi-listener.h: Add documentation for AccessibleDeviceEventType,
930 AcccessibleKeyEventType, AccessibleKeyMaskType.
932 * cspi/spi-roletypes.h: Update documentation for AccessibleRole.
934 * cspi/state-types.h: Add documentation for AccessibleState.
936 * cspi/spi.h: Add documentation for AccessibleTextBoundaryType,
937 AccessibleTextClipType, AccessibleRelationType, AccessibleCoordType,
938 AccessibleKeySynthType, AccessibleKeyListenerSyncType,
939 AccessibleComponentLayer.
941 * cspi/spi_event.c, cspi/spi_registry.c, cspi/spi_text.c: Fix bugs
944 * docs/reference/cspi/at-spi-cspi-sections.txt: Add undefined symbols.
946 * docs/reference/cspi/tmpl/spi_registry.sgml: Add description of
947 Accessible. Add description of AccessibleEvent,
948 AccessibleEventListenerCB.
950 * docs/reference/cspi/tmpl/spi_event.sgml: Update with extra
953 * docs/reference/cspi/tmpl/spi_registry.sgml: Update with extra
954 documentation. Add description of AccessibleKeystrokeListenerCB,
955 AccessibleKeyEventMask, AccessibleModifierMaskType,
956 AccessibleKeyMaskType, AccessibleKeystroke, AccessibleDeviceEvent,
957 AccessibleDeviceEventMask, AccessibleDeviceListenerCB.
959 * docs/reference/cspi/tmpl/spi_stateset.sgml: Add description of
962 * docs/reference/cspi/tmpl/spi_text.sgml: Update with extra
965 This fixes bug #104730.
967 2003-04-24 Padraig O'Briain <padraig.obriain@sun.com>
969 * atk-bridge/bridge.c (spi_init_keystroke_from_atk_key_event):
970 Set is_text field of Accessibility_DeviceEvent data structure.
972 * cspi/bonobo/cspi-bonobo-listener.c (cspi_device_event): Set
973 is-text field of AccessibleDeviceEvent data structure.
975 This addresses part of bug #108666.
977 * registryd/devcieeventcontroller.c: Unset debug option.
979 2003-04-14 Padraig O'Briain <padraig.obriain@sun.com>
982 (cpi_initial_relation_type_table): New function which initializes
983 mapping between Accessibility_RelationType and AccessibleRelationType.
984 (cspi_relation_type_from_spi_relation_type): New function which
985 translates an Accessibility_RelationType into an AccessibleRelationType.
986 (AccessibleRelation_getRelationType): Use
987 cpi_relation_type_get_spi_relation_type to return correct value.
988 (spi_state_to_corba): Return correct type for default case.
990 * cspi/spi_registry.c (SPI_registerAccessibleKeyStrokeListener):
991 Use Accessibility_EventType instead of Accessibility_KeyEventType.
993 * cspi/cspi-bonobo-listener.c:
994 Remove semicolon after BONOBO_TYPE_FUNC. Add casts to avoid compiler
997 * libspi/accessible.c, libspi/action.c, libspi/application.c,
998 libspi/base.c, libspi/component.c, libspi.devicelistener.c,
999 libspi/editabletable.c, libspi/hyperlink.c, libspi/hypertext.c,
1000 libspi/image.c, libspi/listener.c, libspi/selection.c,
1001 libspi/stateset.c, libspi/table, libspi/text.c, libspi/value.c,
1002 registryd/desktop.c, registryd/registry.c:
1003 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
1005 * libspi/eventlistener.c
1006 Remove semicolon after BONOBO_TYPE_FUNC.
1008 * libspi/relation.c:
1009 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
1010 (spi_init_relation_type_table): Initialize using correct type.
1012 * registryd/desktop.c:
1013 Remove semicolon after BONOBO_TYPE_FUNC_FULL.
1014 (spi_keystroke_from_x_key_event): Use Accessibility_EventType instead
1015 of Accessibility_KeyEventType.
1017 * test/key-listener-test.c (report_tab_key_event): Use fprintf
1020 * tests/simple-at.c, tests/screen-review-test.c:
1021 Add include for <strings.h>.
1023 * tests.stress-test.c:
1024 Add includes for <unistd.h> and <bonobo/bonobo-main.h>
1026 These changes fix compiler warnings when using FORTE compiler on
1027 Solaris; fixes bug #107479.
1030 2003-04-10 Bill Haneman <bill.haneman@sun.com>
1033 * configure.in: revved to 1.1.10
1035 * libspi/keymasks.h:
1036 (SPI_KEYMASK_NUMLOCK): Added.
1038 * registryd/deviceeventcontroller.c:
1039 (spi_key_event_matches_listener): AND with a smaller
1040 bitmask (as we should).
1041 (spi_dec_translate_mask):
1042 New method, sets the virtual NumLock modifier bit
1043 if numlock is on. Eventually it can handle other virtual
1044 modifier bits if needed, or other marshalling from
1045 at-spi modifier masks to platform (X) masks.
1046 (spi_dec_key_listener_new):
1047 Call spi_dec_translate_mask to set up virtual mod bits
1048 in the 'mask' field when creating a new listener struct.
1049 (spi_dec_emit_modifier_event):
1050 Set the virtual (i.e. NumLock) bits before emitting event.
1051 (spi_controller_register_with_devices):
1052 Query for the NumLock modifier 'physical' bit if Xkb is
1053 present, for use in above methods.
1057 2003-04-10 Bill Haneman <bill.haneman@sun.com>
1059 * registryd/deviceeventcontroller.c:
1060 (spi_keystroke_from_x_key_event):
1061 Instead of checking to see if the keysym is
1062 printable, check the string from XLookupString
1063 if available, get the first unicode character from it,
1064 and call g_unichar_isprint to determine whether the
1065 is_text flag should be TRUE or FALSE.
1069 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
1071 * atk-bridge/bridge.c: Add support for extended events
1072 * cspi/spi_event.c: Add documentation and implementation for
1074 * tests/event-listener-test.c: Add tests for extended events.
1076 This fixes bugs #100424 and #100426.
1078 2003-04-02 Padraig O'Briain <padraig.obriain@sun.com>
1080 * configure.in: Add 100 to AT_SPI_BINARY_AGE and update calculation
1081 of LT_CURRENT. This fixes bug #89350.
1083 2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
1085 * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
1086 number of signal parameter values before accessing them. This fixes
1089 2003-04-01 Bill Haneman <bill.haneman@sun.com>
1091 * configure.in: Fixed duplicate inclusion of -lspi.
1092 * branched for gnome-2-2/HEAD.
1093 [created tag "gnome-2-2"]
1095 2003-03-07 Bill Haneman <bill.haneman@sun.com>
1097 * configure.in: 1.1.9 release.
1100 2003-03-07 Bill Haneman <bill.haneman@sun.com>
1102 [needed by GOK, to fix bugs 107985 and 107988]
1103 * registryd/deviceeventcontroller.c:
1104 (spi_dec_clear_unlatch_pending):
1105 New method, unsets the 'unlatch' mask for XkbStateNotifyEvents.
1106 (spi_dec_set_unlatch_pending):Revised DEBUG comment.
1107 (spi_dec_init_mouse_listener):Emit warning if mouse button
1109 (spi_device_event_controller_forward_mouse_event):
1110 Removed unnecessary parens from a conditional.
1111 (global_filter_fn):Added TODO comment.
1112 (impl_generate_keyboard_event):
1113 Cancel a pending relatch if a 'delatching' key was
1116 2003-03-07 Padraig O'Briain <padraig.obriain@sun.com>
1118 * atk-bridge/bridge.c:
1119 Change atk_signal_child_changed to atk_signal_children_changed.
1120 Reorganize code in spi_atk_bridge_signal_listener().
1122 * test/event-listener-test.c:
1123 Add children_changed_listener and report_children_changed_event()
1124 to test AccessibleChildEvent_getChildAccessible.
1126 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com>
1128 * cspi/spi_event.c (cspi_internal_event_get_text): Change
1129 g_strdup to CORBA_String_dup (bug #105291)
1131 * test/event-listener-test.c (report_text_event): Add call to
1134 2003-02-28 Bill Haneman <bill.haneman@sun.com>
1136 * registryd/deviceeventcontroller.c:
1137 (spi_keystroke_from_x_key_event):
1138 Fix string and keysym return codes to match modifier state.
1141 2003-02-28 Bill Haneman <bill.haneman@sun.com>
1143 * registryd/deviceeventcontroller.c:
1144 (spi_keystroke_from_x_key_event):
1145 Fix segv due to improper use of isprint(c). [bug #107254]
1147 2003-02-24 Bill Haneman <bill.haneman@sun.com>
1150 (get_accessible_text_boundary_type):
1151 Move default return value to (new) default case in switch.
1152 (get_accessible_text_clip_type):
1153 Move default return value to (new) default case in switch.
1155 * libspi/application.c:
1156 (lookup_toolkit_event_for_name, reverse_lookup_name_for_toolkit_event):
1157 Remove unused methods.
1158 (impl_accessibility_application_register_object_event_listener):
1159 Remove unused methods.
1162 Added #include of <math.h>.
1164 * registryd/deviceeventcontroller.c:
1165 (spi_dec_ungrab_mouse): Bracketed with #ifdefs, since
1166 we don't currently use this method.
1167 (spi_dec_init_mouse_listener): Don't call XkbGetMap unless
1169 (impl_generate_key_event):
1170 Remove unused variables.
1171 (impl_generate_mouse_event):
1172 Initialize button to zero, just in case we get an invalid
1173 input. Added support for mouse buttons 4 and 5.
1174 (spi_device_event_controller_new):
1175 Removed unused variable declaration for 'private'.
1177 Added #include of <gdk/gdk.h>
1179 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
1181 * configure.in: Update to work when X is not installed in expected
1182 location. Fixes bug #105836.
1184 * atk-bridge/bridge.c
1185 (spi_atk_bridge_init_event_type_consts): Look up "link-selected" for
1187 (spi_atk_register_event_listener): Add signal listener for
1189 (spi_atk_bridge_signal_listener): Event event when link-selected
1190 signal is emitted. (bug #104622)
1192 * cspi/spi_event.c (cspi_internal_event_get_text): Call g_strdup()
1193 on returned string. (bug #105291)
1195 * test/event-listener-test.c: Add test for link-selected.
1197 2003-02-14 Padraig O'Briain <padraig.obriain@sun.com>
1199 * atk-bridge/Makefile.am: Correct typo in previous commit.
1201 2003-02-13 Padraig O'Briain <padraig.obriain@sun.com>
1203 * atk-bridge/Makefile.am: Allow for build directory to be different
1204 from source directory
1206 * registryd/Makefile.am: Allow for build directory to be different
1207 from source directory
1211 2003-01-29 Bill Haneman <bill.haneman@sun.com>
1214 Fixed dependencies for libcspi so that libspi gets pulled in
1215 properly. Fixes 104741.
1219 Clean up inline docs a little.
1221 2003-01-27 Padraig O'Briain <padraig.obriain@sun.com>
1223 * registryd/desktop.c: Implement AccessibleComponent for SpiDesktop.
1224 This is done by implementing AtkComponent for SpiAtkDesktop, which is
1225 the AtkObject within an SpiDesktop.
1226 This addresses bug #101524.
1228 * registryd/deviceeventcontroller.c (spi_device_event_controller_init):
1229 Remove call to gdk_init().
1231 * registryd/registry.c (spi_registry_init): Add call to gdk_init()
1232 so that Display is set when SpiDesktop is created.
1234 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com>
1236 * registryd/deviceeventcontroller.c: Add include of <sys/time.h>
1237 This fixes bug #102830.
1239 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
1241 * test/test-simple.c: Update to take account of fact that GailButton
1242 now implements AtkText.
1243 (create_text_window): Set name on AtkObject for GtkEntry.
1244 (validate_accessible): Check accessible name before calling test_text().
1246 * libspi/Makefile.am: Fix problem with building outside of source
1247 directory. Bug #98120.
1249 * cpsi/spi_table.c (AccessibleTable_getNSelectedColumns): Fix
1250 typo in documentation comments. Bug #94275.
1252 2003-01-15 Padraig O'Briain <padraig.obriain@sun.com>
1254 * libspi/text.c (impl_getBoundedRanges): Bug fix.
1256 2003-01-10 Padraig O'Briain <padraig.obriain@sun.com>
1259 Add includes to avoid compiler warnings on Solaris.
1260 (impl_getRangeExtents): Bug fix.
1262 2002-12-17 Bill Haneman <bill.haneman@sun.com>
1264 Fix for 100944, [API addition approved by Gman and murrayc].
1271 * idl/Accessibility_Text.idl:
1272 (Text::Range, Text::RangeList, TEXT_CLIP_TYPE): New typedefs
1273 (Text::getRangeExtents): New method for efficient
1274 bounds query of a text range.
1275 (Text::getBoundedRanges): New method for efficient
1276 clipping of text to bounding boxes.
1277 (unImplemented7, unImplemented8):
1278 Removed these padding methods to preserve bincompat.
1281 (impl_getRangeExtents): implementation of new IDL.
1282 (impl_getBoundedRanges): implementation of new IDL.
1283 (SpiTextRect): Internal use struct.
1284 (_spi_text_rect_union): internal method, calculates union of two
1285 SpiTextRect bounding rects.
1286 (_spi_text_range_seq_from_gslist): internal method, allows us
1287 to build our sequence efficiently as a gslist then convert it
1289 (_spi_bounds_contain): internal method, determines whether
1290 a text character is "in" or "out" of a clip rect according to
1291 values of TEXT_CLIP_TYPE.
1292 (spi_text_class_init): Initialize the new methods in the epv.
1295 (AccessibleTextClipType): New enum used by screen review api.
1296 (AccessibleTextRange): New struct used by screen review api.
1297 (AccessibleText_getRangeExtents):
1298 cspi binding for Accessibility_Text_getRangeExtents.
1299 (AccessibleText_getBoundedRanges):
1300 cspi binding for Accessibility_Text_getBoundedRanges.
1301 (AccessibleTextRange_freeRanges): convenience method.
1304 (AccessibleText_getRangeExtents):
1305 cspi binding for Accessibility_Text_getRangeExtents.
1306 (AccessibleText_getBoundedRanges):
1307 cspi binding for Accessibility_Text_getBoundedRanges.
1308 (AccessibleTextRange_freeRanges): convenience method.
1309 (get_accessible_text_clip_type): internal conversion method.
1310 (get_accessible_text_ranges_from_range_seq): internal conversion method.
1312 * registryd/deviceeventcontroller.c:
1313 (spi_dec_mouse_check):
1314 Improved behavior for mouse:abs events
1315 [same granularity as mouse:rel events, and no
1316 events when mouse is idle].
1318 2002-12-16 Michael Meeks <michael@ximian.com>
1320 * cspi/spi_accessible.c (spi_state_to_corba): rename.
1322 * libspi/stateset.c (state_spi_to_atk): split out
1323 ( fix several remote array bounds nasties )
1324 (spi_atk_state_set_from_sequence, impl_contains, impl_add),
1325 (impl_remove): make safe from array bounds issues.
1326 (spi_atk_state_from_spi_state): impl.
1328 * libspi/stateset.h (spi_state_set_cache_is_empty):
1329 add a set of wrapper defines to get layering right.
1331 * cspi/spi_accessible.c: update state set stuff to
1334 2002-12-14 Michael Meeks <michael@ximian.com>
1336 * atk-bridge/bridge.c (spi_atk_bridget_get_dec): impl.
1337 to avoid 2 roundtrips to the registry per key event
1338 (spi_atk_bridge_key_listener): upd.
1339 (deregister_application): release the dec.
1341 * registryd/registry.c (notify_listeners_cb):
1342 bin lots of re-enterant complexity - we no longer
1343 do a round-trip bonobo ref here, ensure that a single
1344 listener's exception failure won't poison all other
1346 (impl_registry_notify_event): bin obvious memory leak.
1348 2002-12-13 Michael Meeks <michael@ximian.com>
1350 * atk-bridge/bridge.c (spi_atk_bridge_focus_tracker):
1351 init the ev so the error is meaningful.
1352 (spi_atk_bridge_key_listener): ditto.
1354 * cspi/spi_main.c (cspi_ev): init the ev so we start
1355 with a clean slate, otherwise the first exception
1356 kills us completely.
1358 * cspi/spi_text.c (get_accessible_text_boundary_type):
1359 add a fallthrough for no warnings.
1361 * cspi/spi_registry.c: prune unused warnings.
1363 * cspi/spi_main.c (cspi_object_take): fix
1364 mind-blowing brokenness ( by watching the compile
1367 * cspi/spi_accessible.c (Accessible_getStateSet):
1368 re-impl. to use an AtkStateSet.
1369 (spi_state_type_from_accessible_state),
1370 (init_state_table): bin these.
1372 * libspi/stateset.c (spi_atk_state_set_from_sequence):
1374 (atk_state_set_from_accessibility_state_set): here.
1376 * cspi/spi_accessible.c (spi_state_to_atk): impl.
1377 (AccessibleStateSet_contains, AccessibleStateSet_ref),
1378 (AccessibleStateSet_unref, AccessibleStateSet_contains),
1379 (AccessibleStateSet_add, AccessibleStateSet_remove),
1380 (AccessibleStateSet_equals, AccessibleStateSet_compare),
1381 (AccessibleStateSet_isEmpty): re-write to use a local
1384 2002-12-13 Bill Haneman <bill.haneman@sun.com>
1386 * configure.in: Revved to 1.1.7 (new keymask vals).
1388 2002-12-10 Bill Haneman <bill.haneman@sun.com>
1390 * libspi/keymasks.h:
1391 Added SPI_KEYMASK_MOD4 and SPI_KEYMASK_MOD5.
1393 2002-12-10 Padraig O'Briain <padraig.obriain@sun.com>
1396 (cspi_internal_event_get_object): Use CORBA_TypeCode_Equivalent()
1397 to compare two CORBA_TypeCodes.
1398 (cspi_internal_event_add): Silence warning from FORTE compiler.
1400 * cspi/bonobo/cspi_bonobo-listener.h: Add function declarations to
1401 avoid implicit declaration of functions.
1403 2002-12-09 Padraig O'Briain <padraig.obriain@sun.com>
1405 * atk-bridge/bridge.c:
1406 (spi_atk_bridge_init_event_type_consts): Store signal id for
1407 active-descendant-changed signal.
1408 (spi_atk_register_event_listeners): Add signal listener for
1409 active-descendant-changed signal,
1410 (spi_atk_bridge_signal_listener): Move code in function
1411 spi_atk-signal_emit_event() into this function.
1412 Add support for active-descendant-changed
1413 Update support for child-changed signal.
1414 (spi_bridge_window_event_listener): Silence warning.
1416 * libspi/spi_private.[ch]:
1417 (spi_init_any_object): Change second parameter from CORBA_Object to
1419 Omit call to CORBA_Object_duplicate().
1420 Set CORBA_any's _value to CORBA_Object*.
1422 2002-12-06 Bill Haneman <bill.haneman@sun.com>
1428 (AccessibleEvent_ref, AccessibleEvent_unref):
1429 New methods, for persisting an event outside the emission context.
1430 Must be used if the new accessor methods are to be called
1431 outside of the event listener's callback.
1433 * cspi/bonobo/cspi-bonobo.c:
1434 (cspi_dup_ref): Pass 'ev' to bonobo_object_dup_ref
1435 as second parameter instead of NULL, so we can call
1436 cspi_check_ev afterwards.
1439 (cspi_object_take): New internal method,
1440 converts a CORBA_Object reference to a hard ref on
1441 an Accessible if possible, returning NULL if the object
1442 reference is invalid or an Accessible * otherwise.
1445 (AccessibleEvent_ref):
1446 Increment the event's internal private refcount, and
1447 add the event's internal struct to an internal cache
1448 if it's not already there.
1449 (AccessibleEvent_unref):
1450 Decrement the event's refcount and remove it from
1451 the cspi event cache if refcount==0.
1452 (cspi_event_compare): New private method.
1453 Compares two event structs via their ids. Used
1455 (cspi_internal_event_lookup): New private method.
1456 (cspi_internal_event_check): New private method,
1457 a 0-order sanity check for events to make sure their
1458 private data is intact.
1459 (cspi_internal_event_add, cspi_internal_event_remove):
1460 New private methods for managiing the event cache.
1462 * cspi/bonobo/cspi-bonobo-listener.c:
1464 Initialize the new private data elements (id, magic, ref_count).
1466 * atk-bridge/bridge.c:
1467 (spi_atk_bridge_signal_listener):
1468 Fixed bug #100530, passing wrong params to emission func.
1470 * registryd/deviceeventcontroller.c:
1471 (spi_dec_button_update_and_emit):
1472 Fixed type in mask bit operations; fix for #99799.
1474 2002-12-02 Bill Haneman <bill.haneman@sun.com>
1476 Removed some of the more dangerous workarounds from
1477 previous commit; they are only needed by GOK, which
1478 in reality should be using another method to accomplish
1479 the goals. So on reconsideration some of the workarounds
1480 need to be reverted:
1482 * registryd/deviceeventcontroller.c:
1483 (spi_keycodes_contain, spi_dec_init_keycode_list):
1484 Removed these methods, used only by a nasty hack to try
1485 and detect whether a key synthesis should be allowed
1486 to reset the XKB latch state or not. This code was only
1487 required to work around an interaction between GOK,
1488 button events, and XKB.
1489 (impl_generate_key_event):
1490 Removed hack at end of key generation that tried to
1491 "do the right thing" if XKB latch keys were generated
1492 in the midst of button press/release pairs.
1495 Added a check for HAVE_XINPUT. Not normally used yet.
1497 2002-11-25 Bill Haneman <bill.haneman@sun.com>
1499 Workarounds and fixes for mouse event/XKB interaction.
1501 * registryd/deviceeventcontroller.c:
1502 (spi_keycodes_contain, spi_dec_init_keycode_list):
1503 New internal methods.
1504 (spi_dec_set_unlatch_pending):
1505 Split the method that tells XKB to expect an
1506 unlatch (and revert it) out of the rest of the
1507 event handling code. This method is called by the
1508 two mouse event handlers (the poll and the filter).
1509 (spi_dec_update_and_emit, spi_dec_mouse_check):
1510 New methods split from spi_dec_poll_mouse_moved.
1511 The second one is now called from inside the filterFn
1512 when an XKB delatch event is received, to determine
1513 whether to revert the delatch or not.
1514 (spi_poll_mouse_moved): Refactor; also we can now
1515 properly handle the case where multiple button states
1516 have changed between polling cycles and we didn't get
1517 notified due to another client's grab.
1519 Synchronize the server while handling an XKB notification.
1520 Ugly, but apparently necessary to avoid nasty races.
1521 Check the mouse state on receipt of an XKB latch change,
1522 to decide whether to revert the latch or not. (Latches are
1523 reverted if there is an immediately preceding mouse button
1524 event that a client has consumed, in which case we don't want
1525 the user to see the side-effect of the event).
1526 (spi_device_event_controller_forward_mouse_event):
1527 Check for modifier events and fire before resetting mouse_mask_state,
1528 prevents losing modifier events.
1530 (impl_generate_keyboard_event):
1531 If we've just generated a keyboard event for a non-shift key,
1532 we don't want to revert the pending XKB latch.
1533 Otherwise, check the modifier state (via a call to
1534 spi_dev_mouse_check) and set the relatch mask to
1535 that state before returning.
1537 2002-11-24 Bill Haneman <bill.haneman@sun.com>
1540 Updated NEWS (accidentally didn't make it into 1.1.5 tarball,
1543 * atk-bridge/bridge.c:
1544 (spi_atk_register_event_listeners):
1545 Don't re-register for ATK events if the registry has died
1546 and the app needs to re-register; the ATK listeners are in
1547 process and doing so will cause duplicate emission.
1549 * registryd/deviceeventcontroller.c:
1550 (spi_poll_mouse_moved):
1551 Reformat the source, detect and emit multiple button-change
1552 events (i.e. if multiple buttons have changed between poll
1554 Add code to detect mouse-down events even when the pointer
1555 is grabbed; workaround for GOK bug 98420.
1556 (spi_controller_register_with_devices):
1557 Call XTestGrabControl with 'impervious' flag set to True,
1558 allows us to synthesize events and query the pointer even during
1559 an active grab by another client.
1560 (spi_device_event_controller_forward_mouse_event):
1561 Set the mouse_mask_state to the mouse_button_state from
1562 the intercepted event, to synchronize the grab listener with
1565 2002-11-20 Bill Haneman <bill.haneman@sun.com>
1567 * cspi/spi_accessible.c:
1568 (AccessibleRole_getName):
1569 Added necessary strings for making this (deprecated)
1570 method work with the new role types.
1571 (init_role_table, role_table):
1572 Added definition of SPI_ROLE_APPLICATION.
1574 * libspi/spi-roletypes.h:
1575 Added SPI_ROLE_APPLICATION.
1577 * idl/Accessibility_Role.idl:
1578 Added ROLE_APPLICATION.
1580 * docs/reference/cspi/at-spi-cspi-decl.txt:
1581 Added SPI_ROLE_APPLICATION to docs.
1583 2002-11-20 Padraig O'Briain <padraig.obriain@sun.com>
1585 * cspi/spi_accessible.c
1586 (cspi_init_role_table): Do not write beyond end of role_table.
1587 (Accessible_getRole): Use correct type for value returned by
1588 Accessibility_Accessible_getRole().
1590 * libspi/accessible.c (spi_init_role_lookup_table): Do not write
1591 beyond end of role_table. (This fixes bug #98269)
1593 * libspi/application.c: Add include file spi-private.h for
1594 definition of spi_init_any_nil.
1596 2002-11-19 Bill Haneman <bill.haneman@sun.com>
1600 * libspi/spi-private.h:
1601 Added DGB() macro, and extern int _dbg declaration.
1603 * registryd/registry.c:
1604 (definitions) storage for _dbg.
1605 (spi_registry_init):
1606 Get environment variable "AT_SPI_DEBUG".
1607 (spi_registry_set_debug):
1608 New method, to initialize _dbg value.
1609 (spi_listener_struct_new, spi_registry_object_finalize):
1610 (notify_listeners_cb):
1611 Changed fprintfs to use DBG and g_warning().
1613 * registryd/deviceeventcontroller.c:
1614 (_deregister_keygrab, spi_controller_register_device_listener):
1615 Changed debug/warning messages to use DBG macro.
1617 * libspi/listener.c:
1618 (impl_notify_event):
1619 Changed warning messages to use DBG macro and g_warning().
1621 * atk-bridge/bridge.c:
1622 (atk_bridge_init, spi_atk_bridge_get_registry):
1623 (spi_atk_bridge_exit_func):
1624 (spi_atk_bridge_property_event_listener):
1625 Changed status, warning, and error messages to use
1626 g_warning, g_message, and DBG macros.
1629 Read the state of the AT_SPI_DEBUG environment variable
1630 and set a local '_dbg' accordingly.
1632 2002-11-19 Bill Haneman <bill.haneman@sun.com>
1634 FIXES for 98836, 98842, other bugs.
1637 Revved to 1.1.4, interface-age=4, binary-age=4.
1639 * registryd/deviceeventcontroller.c:
1641 Fixed crasher bug in last_mouse_pos initialization.
1643 * registryd/registry.c:
1644 (desktop_add_application, desktop_remove_application):
1645 Added (and then commented out) some support for
1646 object context marshalling. [TODO]
1648 * atk-bridge/bridge.c:
1649 (spi_atk_bridge_event_context_create):
1650 Commented out object context creation until it can
1651 be properly tested and debugged.
1653 * registryd/registry.c:
1654 (impl_registry_notify_event):
1655 Fixed crasher bug, we were calling
1656 spi_re_entrant_list_foreach () with an empty list.
1658 2002-11-18 Bill Haneman <bill.haneman@sun.com>
1660 * idl/Accessibility_Action.idl:
1661 * idl/Accessibility_Component.idl:
1662 * idl/Accessibility_Desktop.idl:
1663 * idl/Accessibility_Event.idl:
1664 * idl/Accessibility_Hyperlink.idl:
1665 * idl/Accessibility_Image.idl:
1666 * idl/Accessibility_Relation.idl:
1667 * idl/Accessibility_Selection.idl:
1668 * idl/Accessibility_State.idl:
1669 * idl/Accessibility_Value.idl:
1670 Updated unimplemented slot count to minimum of
1671 four for all interfaces, for ABI freeze.
1673 * idl/Accessibility_EditableText.idl:
1674 * idl/Accessibility_Text.idl:
1675 Updated unimplemented slot count to six
1678 * idl/Accessibility_Registry.idl:
1679 Updated unimplemented slot count to six
1680 (also for DeviceEventController),
1683 * idl/Accessibility_Table.idl:
1684 Updated unimplemented slot count to eight,
1687 * idl/Accessibility_Event.idl:
1688 Added CORBA_any "any_data" member to Event struct.
1690 * idl/Accessibility_Event.idl:
1691 Added CORBA_any "any_data" member to Event struct.
1693 * atk-bridge/bridge.c:
1695 atk_signal_text_changed, atk_signal_child_changed,
1696 signal ids queried from gtype system.
1697 (AtkBridgeEventContextType): New enum.
1698 (AtkBridgeEventContextData): New struct.
1699 (AtkBridgeEventContext): New struct.
1700 (atk_bridge_init_event_type_consts):
1701 New method, initializes type contants for comparison
1702 prior to emit_eventv.
1703 (atk_bridge_event_context_init): New method,
1704 initializes a CORBA_any from an AtkBridgeEventContext.
1705 (atk_bridge_focus_tracker): Call spi_init_any_nil to
1706 initialize the event.any_data struct.
1707 (spi_atk_bridge_event_context_create): New method,
1708 creates an AtkBridgeEventContext from signal/event info.
1709 (spi_atk_bridge_event_context_free): New method.
1710 (spi_atk_emit_eventv): Changed to take an
1711 AtkBridgeEventContext parameter. We now initialize
1712 the event.any_data member prior to notifying the
1713 Registry, via the AtkBridgeEventContext.
1714 (spi_atk_bridge_property_event_listener):
1715 (spi_atk_bridge_state_event_listener):
1716 Match emit_eventv signature.
1717 (spi_atk_bridge_object_event_listener):
1718 Match emit_eventv signature, and create an
1719 event context from the event details.
1720 Free the event context afterwards.
1721 (spi_atk_bridge_window_event_listener):
1722 Create an event context, pass it to the
1726 (AccessibleEvent_getContextString):
1727 (AccessibleEvent_getContextObject):
1728 New methods, allow query of AccessibleEvent objects
1729 for more context details (via the "any_data" member
1730 of the Event struct, above).
1733 Definitions for AccessibleEvent_getContextString
1734 and AccessibleEvent_getContextObject.
1736 * cspi/spi_listener.h:
1737 (InternalEvent): New struct.
1740 (AccessibleEvent_getContextString):
1741 (AccessibleEvent_getContextObject):
1742 Implementations of new methods, for obtaining
1743 additional context information from some event types.
1745 * cspi/spi_registry.c:
1746 (SPI_registerGlobalEventListener):
1747 Added mention of active-descendant-changed event in docs.
1749 * cspi/cspi-bonobo-listener.c:
1751 Marshal the any into the AccessibleEvent via
1754 * libspi/spi-private.h:
1755 #include <orbit/orbit.h>
1757 (spi_init_any_string):
1758 (spi_init_any_object):
1759 New convenience function declarations.
1763 (spi_init_any_string):
1764 (spi_init_any_object):
1765 New convenience function implementations.
1767 * registryd/deviceeventcontroller.c:
1768 (spi_poll_dec_mouse_moved):
1769 (spi_device_event_controller_forward_mous_event):
1770 Initialize any_data member of event.
1771 (spi_deregister_controller_device_listener):
1772 Fix incorrect param pass which was preventing deregistration.
1774 * registryd/registry.c:
1775 (desktop_add_application):
1776 (desktop_remove_application):
1777 Add object data to event's any_data before dispatch.
1779 Fix for error messages from GAIL.
1781 * test/event-listener-test.c:
1782 Test new ContextString and "any_data" API:
1783 (report_text_event): New method query and output context string.
1784 (main): register a new text listener with report_text_event
1787 2002-11-19 Darren Kenny <darren.kenny@sun.com>
1789 Fixes for bugs 98127 and 97914.
1790 * cspi/spi-roletypes.h:
1791 Added SPI_ROLE_HEADER, SPI_ROLE_FOOTER, SPI_ROLE_PARAGRAPH,
1793 * cspi/spi-statetypes.h:
1794 Added SPI_STATE_MANAGES_DESCENDANTS
1796 Added SPI_RELATION_FLOWS_TO, SPI_RELATIONS_FLOWS_FROM,
1797 SPI_RELATION_SUBWINDOW_OF, SPI_RELATION_EMBEDS, SPI_RELATION_EMBEDDED_BY
1798 * cspi/spi_accessible.c:
1799 Added mapping in role_table from new Accessibility_ROLE_* to SPI_ROLE_*
1800 Added mapping from SPI_STATE_MANAGES_DESCENDANTS to
1801 Accessibility_STATE_MANAGES_DESCENDANTS
1802 * libspi/accessible.c:
1803 Added Mapping from ATK_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER} to
1804 Accessibility_ROLE_{FOOTER,HEADER,PARAGRAPH,RULER}
1805 As requested by Bill, I also cleaned up the alignment.
1806 * libspi/relation.c:
1807 Added mapping of the ATK_RELATION_{FLOWS_TO,FLOWS_FROM,SUBWINDOW_OF,
1808 EMBEDS,EMBEDDED_BY} to equivalend Accessibility_RELATION_*
1809 * libspi/stateset.c:
1810 Added mappings between ATK_STATE_MANAGES_DESCENDANTS and
1811 Accessibility_STATE_MANAGES_DESCENDANTS
1812 * docs/reference/cspi/tmpl/spi_accessible.sgml:
1813 Document changes reflecting modifications to roles.
1814 * docs/reference/cspi/tmpl/spi_relation.sgml:
1815 Document changes reflecting modifications to relations.
1816 * docs/reference/cspi/tmpl/spi_stateset.sgml:
1817 Document changes reflecting modifications to states.
1819 2002-11-17 Bill Haneman <bill.haneman@sun.com>
1822 Revved to 1.1.3, interface-age=3, binary-age=3.
1823 Added REBUILD macro.
1826 Removed accessx-gui from the tests, since we have a nice
1827 keyboard accessibility capplet now :-)
1829 * test/keysynth-demo.c:
1830 (increment_scan): removed do-nothing default: case,
1833 * test/visual-bell.c:
1834 (main) : removed do-nothing default: case,
1837 * cspi/spi_action.c:
1838 (AccessibleAction_getKeyBinding_):
1839 Documented keybinding string format.
1843 (AccessibleText_getAttributes):
1844 Documented the text attribute string format.
1845 It's changed to use semicolon delimiters also,
1846 to prevent clashes with CSS attributes, but the old
1847 trick of looking for ", " strings will still work
1848 (as unreliably as ever). Fix for bug related to 97916.
1851 Include <cspi/bonobo/cspi-bonobo-listener.h>
1852 Fixes build warning.
1853 (SPI_freeAccessibleKeySet):
1854 (AccessibleKeystrokeListener_addCallback):
1855 (AccessibleKeystrokeListener_removeCallback):
1856 Modify to use AccessibleDeviceListener API internally,
1857 instead of AccessibleKeystrokeListener.
1859 * idl/Accessibility_Event.idl:
1860 Added two more empty slots to EventListener (for a total of four).
1862 * idl/Accessibility_Accessible.idl:
1863 Added four empty slots to Accessible interface.
1865 2002-11-15 Bill Haneman <bill.haneman@sun.com>
1867 * idl/Accessibility_Registry.idl:
1868 (KeyEventType, EventType):
1869 Marked KeyEventType as deprecated; it duplicates
1870 functionality of EventType, which has been extended to
1871 include Mouse-button events.
1872 (KeyEventTypeSeq): defined in terms of EventType.
1873 (registerDeviceEventListener, deregisterDeviceEventListener):
1874 New methods, for managing listeners to device events,
1875 which potentially may consume them.
1878 Added definition for AccessibleDeviceListener.
1880 * cspi/spi-listener.h:
1881 (enum AccessibleDeviceEventType):
1882 Added SPI_BUTTON_PRESSED and SPI_BUTTON_RELEASED.
1883 Typedef'd AccessibleKeyEventType to AccessibleDeviceEventType
1884 for backwards compat.
1885 (AccessibleKeystroke): Renamed AccessibleKeystroke to AccessibleDeviceEvent,
1886 and typedef'd AccessibleKeystroke to it for back-compat.
1887 (AccessibleDeviceListenerCB):
1888 New function prototype typedef.
1891 (AccessibleDeviceEventMask): New typedef.
1892 (AccessibleModifierMaskType): New typedef (renamed from AccessibleKeyMaskType).
1893 (AccessibleKeyMaskType):
1894 Set equivalent to AccessibleModifierMaskType for back-compat.
1895 (SPI_createAccessibleKeystrokeListener):
1896 (AccessibleKeystrokeListener_unref):
1897 Deprecated in favor of equivalent (better-named) new API below..
1898 keystroke listeners are like all device listeners.
1899 (SPI_createAccessibleDeviceListener, AccessibleDeviceListener_unref)
1900 New API names for old features :-).
1901 (AccessibleDeviceListener_addCallback):
1902 (AccessibleDeviceListener_removeCallback):
1903 (SPI_registerDeviceEventListener):
1904 (SPI_deregisterDeviceEventListener):
1908 (SPI_createAccessibleKeystrokeListener):
1909 Use new preferred API, cspi_device_listener_new() and
1910 cspi_device_listener_add_cb().
1911 (AccessibleKeystrokeListener_removeCallback):
1912 Use new preferred API, cspi_device_listener_remove_cb().
1913 (AccessibleKeystrokeListener_unref):
1914 Use new preferred API, cspi_device_listener_unref().
1915 (SPI_createAccessibleDeviceListener):
1916 (AccessibleDeviceListener_addCallback):
1917 (AccessibleDeviceListener_removeCallback):
1918 Implementation of new API.
1920 * cspi/spi_registry.c:
1921 (SPI_registerDeviceEventListener):
1922 (SPI_deregisterDeviceEventListener):
1923 Implementation of new API. Fixed memory leak and removed need to
1924 allocate EventTypeSeq (thanks Michael for catching this).
1925 Squashed a wayward CORBA_exception_free that shouldn't get called.
1927 * cspi/bonobo/cspi-bonobo-listener.c:
1929 Changed union (bin-and-api-compatibly) to refer to AccessibleDeviceListenerCB.
1930 (cspi_key_event): renamed to cspi_device_event().
1931 Internal use of CSpiKeystrokeListener changed to CSpiDeviceListener.
1932 Extended to handle mouse button events as well as key events.
1933 (CSpiKeystrokeListener):
1934 Class superceded by CSpiDeviceListener.
1935 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1936 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1938 * cspi/bonobo/cspi-bonobo-listener.h:
1939 (CSpiKeystrokeListener):
1940 Class superceded by CSpiDeviceListener.
1941 (cspi_keystroke_listener_add_callback, cspi_keystroke_listener_get_corba):
1942 These internal APIs changed to "*device_listener" from "*keystroke_listener".
1944 * libspi/Makefile.am:
1945 Replaced keystrokelistener.h and keystrokelistener.c
1946 with devicelistener.h and devicelistener.c; keystrokelisener.h
1947 stub retained for back-compat.
1949 * libspi/keystrokelistener.c:
1953 Replaced inclusion of keystrokelistener.h with devicelistener.h.
1955 * registryd/deviceeventcontroller.c:
1956 (DEControllerListener): Added Accessibility_EventTypeSeq member.
1957 (DEControllerKeyListener): Removed Accessibility_KeyEventTypeSeq member.
1958 (DEControllerPrivateData): Added xkb settings data.
1959 (spi_dec_poll_mouse_moved): Changed to dispatch device events for
1960 button release events (which can't be captured via XGrabButton).
1961 Don't dispatch via the 'normal' event mechanism if the device event was
1963 (spi_dec_key_listener_new, spi_key_listener_clone, spi_key_listener_data_free):
1964 Handle the typeseq data in its new location (see above).
1965 (spi_dec_listener_new, spi_listener_clone, spi_listener_clone_free):
1966 New methods, for "generic" device listeners.
1967 (spi_controller_register_device_listener):
1968 Now handle mouse event listeners as well as key listeners.
1969 (spi_controller_notify_mouselisteners):
1970 New internal method.
1971 (spi_device_event_controller_forward_mouse_event):
1972 Now we notify mouse device listeners as well as generating the
1973 non-consumable "mouse:" events.
1975 We must check and restore the XKB
1976 modifier map if we consume the event, since the act of triggering
1977 a mouse event will normally reset the XKB latch. This is required for
1979 (spi_controller_register_with_devices):
1980 Load the XKB settings when registering, and register for XKB
1981 state notify events.
1982 (spi_key_eventtype_seq_contains_event):
1983 Renamed spi_eventtype_seq_contains_event, since it's used
1984 internally for all device event types now.
1985 (spi_key_event_matches_listener):
1986 Uses spi_eventtype_seq_contains_event now.
1987 (spi_device_event_controller_object_finalize):
1988 Free the private data and the XkbKeyboard struct.
1989 (impl_register_device_listener, impl_deregister_device_listener):
1990 Implementation of new IDL.
1991 (spi_deregister_controller_device_listener):
1992 New internal method.
1993 (dec_xkb_get_slowkeys_delay dec_xkb_get_bouncekeys_delay):
1994 More efficient implementation, we don't have to create a new
1995 XkbControls structure every time we query.
1996 (spi_device_event_controller_class_init):
1997 Initialize the epv entries for the new IDL. Assign the
1998 "spi-dec-private" quark.
1999 (spi_device_event_controller_init):
2000 Initialize the private data.
2001 (spi_device_event_controller_forward_key_event):
2002 Removed a bogus CORBA_exception_free() call.
2004 * registryd/deviceeventcontroller.h:
2005 Replaced inclusion of keystrokelistener.h with
2008 * test/event-listener-test.c:
2009 (report_mouse_event):
2012 Added mouse-event device listener.
2014 * test/test-simple.c:
2015 (create_test_window):
2016 Fixed regression (we were instantiating a GtkRange,
2017 which is now an abstract class). Also fixed to match
2018 existing AtkRole names, this seems to have changed in ATK
2019 awhile ago; too late now I think, and the new
2020 mechanism is at least elegant and consistent with the
2021 glib enum "nick" APIs.
2023 2002-11-15 Darren Kenny <darren.kenny@sun.com>
2025 * idl/Accessibility_Relation.idl:
2026 add RELATION_FLOWS_TO,RELATION_FLOWS_FROM,RELATION_SUBWINDOW_OF,
2027 RELATION_EMBEDS,RELATION_EMBEDDED_BY
2028 * idl/Accessibility_Role.idl:
2029 add ROLE_HEADER, ROLE_FOOTER, ROLE_PARAGRAPH, ROLE_RULER
2030 * idl/Accessibility_State.idl:
2031 add STATE_MANAGES_DESCENDANTS
2032 * test/event-listener-test.c:
2033 Added a listener for active-descendant events.
2035 2002-11-15 Padraig O'Briain <padraig.obriain@sun.com>
2037 * atk-bridge/bridge.c
2038 (atk_bridge_init): If application is Bonobo component wait until top
2039 level is added before registering
2040 (spi_atk_bridge_do_registration): New function which contains code,
2041 formerly in atk_bridge_init, to do application registration.
2042 (spi_atk_bridge_toplevel_added): Signal called when top level
2043 added to Bonobo component
2045 This fixes bug #83134.
2047 2002-10-23 Vitaly Tishkov <tvv@sparc.spb.su>
2049 * registryd/deviceeventcontroller.c
2050 Fixed compilation error caused by calling gettimeofday()
2053 2002-10-18 Bill Haneman <bill.haneman@sun.com>
2058 Added template for HAVE_XKB.
2061 Changes to check for XKB, and to set the HAVE_XKB #define if it
2064 * libspi/listener.c:
2065 ()impl_notify_event): Make failure to get event source name
2068 * registryd/deviceeventcontroller.c:
2069 (#include): include X11/XKBlib.h.
2070 (DEControllerPrivateData) : New struct.
2071 (dec_xkb_get_slowkeys_delay) (dec_xkb_get_boucekeys_delay) :
2073 (dec_synth_keycode_press) (dec_synth_keycode_release):
2074 New methods; split the key synthesis code into these methods.
2075 They check XKB settings before determining the "time" values to
2076 pass to Xtest; this fixes bug #95828.
2077 (impl_generate_keyboard_event): Changed to use methods above,
2078 instead of callng Xtest directly.
2079 (spi_device_event_controller_init): Initialize new privae struct s
2081 (spi_device_event_controllr_object_finalize):
2082 Free the (new) private data.
2084 * registryd/deviceeventcontroller.h:
2085 Add new gpointer to end of struct data.
2087 2002-10-16 Bill Haneman <bill.haneman@sun.com>
2090 Incremented revision to 1.1.2, SONAME is still '.so', library
2091 extensions are ".so.0.0.2".
2093 * registryd/deviceeventcontroller.c:
2094 FIXES FOR #93592 and #95940.
2095 (statics): renamed mouse_button_state to mouse_mask_state,
2096 added key_modifier_mask.
2097 (spi_dec_poll_mouse_moved):
2098 Added key modifier checks, and emit "keyboard:modifiers"
2099 events when the key modifiers currently in use change.
2100 Also generate "mouse:abs" events periodically, even if the mouse
2101 is stationary (should we?).
2102 Alternatively we could generate "mouse:abs" events for either all
2103 mouse movements, or every 'nth' mouse movement, or at the
2104 beginning and end of every "active" mouse period.
2106 * test/event-listener-test.c:
2107 (main): Added listener for "keyboard:modifiers" events.
2109 2002-10-15 Bill Haneman <bill.haneman@sun.com>
2111 * libspi/keymasks.h:
2112 Added key mask #defines for mouse buttons; e.g.
2113 SPI_KEYMASK_BUTTON1, etc.
2116 Incremented dependency on ATK to version 1.1.0. (This dependency
2117 is probably premature but will soon be real enough).
2119 2002-10-11 Padraig O'Briain <padraig.obriain@sun.com>
2121 * libspi/hyperlink.[ch]
2122 (spi_hyperlink_new): Change parameter from AtkObject to AtkHyperlink.
2123 (get_hyperlink_from_servant): Check object is AtkHyperlink not
2126 * libspi/hypertext.c (impl_getLink): Remove cast of AtkHyperlink to
2131 2002-10-10 Padraig O'Briain <padraig.obriain@sun.com>
2133 * registryd/deviceeventcontroller.c
2134 (global_filter_fn): Correct typo which caused KeyPress and KeyRelease
2135 events to be ignored.
2136 (spi_controller_update_key_grabs): Use GrabModeSync for pointer_mode
2137 keyboard_mode so that XAllowEvents() can be called.
2141 2002-10-08 Padraig O'Briain <padraig.obriain@sun.com>
2143 * cspi/spi-accessible.c: Correct names of roles returned by
2144 AccessibleRole_getName(). Fixes bug #95055.
2146 2002-10-03 Padraig O'Briain <padraig.obriain@sun.com>
2148 * cspi/spi_main.c (report_leaked_ref): Report address of leaked
2151 * registryd/registry.c
2152 (desktop_remove_application: Write diagnostic message to stderr for
2155 (impl_accessibility_registry_deregister_global_event_listener):
2156 Correct size of lists array. This addresses bug #94555).
2158 2002-09-24 Padraig O'Briain <padraig.obriain@sun.com>
2160 * libspi/accessible.c (spi_init_role_lookup_table): Correct typos
2163 2002-09-19 Padraig O'Briain <padraig.obriain@sun.com>
2165 * registryd/Makefile: Add CLEANFILES so that .server file is removed
2168 * registryd/registry.c (impl_registry_notify_event): Remove
2169 unnecessary call to parser_event_type().
2171 * docs/reference/cspi/tmpl/spi_component.sgml:
2172 Add reference to SPI_LAYER_WINDOW.
2174 2002-09-17 Padraig O'Briain <padraig.obriain@sun.com>
2176 * registryd/registry.c
2177 (desktop_add_application): Remove leak.
2178 (desktop_remove_application): Remove leak.
2179 (parser_event_type): Remove leak.
2181 2002-09-16 Padraig O'Briain <padraig.obriain@sun.com>
2183 * registryd/deviceeventcontroller.c (spi_dec_mouse_moved): Removed
2184 bogus call to CORBA_string_dup(). Also removed unnecessary
2185 g_string_dup/g_free calls.
2187 2002-09-13 Bill Haneman <bill.haneman@sun.com>
2189 * registryd/deviceeventcontroller.c:
2190 spi_dec_mouse_moved: Fixed memory leaks and reordered 2 code blocks.
2192 * test/event-listener-test.c:
2193 main: commented out three redundant listeners, to reduce output
2194 noise. (They still are potentially useful for testing).
2197 2002-09-13 Michael Meeks <michael@ximian.com>
2199 * Update all the copyrights to include Ximian.
2201 2002-09-06 Mark McLoughlin <mark@skynet.ie>
2203 * cspi/spi.h: add SPI_LAYER_WINDOW.
2205 * cspi/spi_component.c: (AccessibleComponent_getLayer):
2206 add Accessibility_LAYER_WINDOW case.
2208 * idl/Accessibility_Component.idl: add LAYER_WINDOW.
2210 * libspi/component.c: (impl_accessibility_component_get_layer):
2211 add ATK_LAYER_WINDOW case.
2213 2002-08-28 Bill Haneman <bill.haneman@sun.com>
2215 * configure.in: incremented micro version.
2217 * branched for gnome-2-0 (a gnome-2-0-0 branch already exists).
2219 2002-08-20 Bill Haneman <bill.haneman@sun.com>
2222 Clarified and reworded our commit policy.
2225 Started an API "todo" addition list for 2.2.
2228 (impl_getSelection):
2229 Free char pointer from atk_text_get_selection, which was being leaked.
2231 2002-08-19 Bill Haneman <bill.haneman@sun.com>
2234 Small revision to author acknowledgement.
2236 2002-08-19 Padraig O'Briain <padraig.obriain@sun.com>
2238 * atk-bridge/bridge.c (spi_atk_bridge_signal_listener):
2239 If signal has detail add it to the type of the event.
2242 2002-08-12 Michael Meeks <michael@ximian.com>
2244 * test/test-simple.c (global_listener_cb): bin bogosity.
2245 (test_keylisteners): disable, still doesn't work reliably,
2246 certainly not on my system anyway.
2248 * atk-bridge/bridge.c (spi_atk_bridge_key_listener):
2249 don't leak a reference on the DEC. This round-trip
2250 fetching of the DEC per keystroke sucks, it should be
2253 * cspi/spi-private.h,
2254 * cspi/cspi-lowlevel.h,
2255 * cspi/bonobo/cspi-bonobo-listener.[ch],
2256 * cspi/bonobo/cspi-bonobo.c: get the copyright
2257 notices better - there is still a large amount of
2258 work in at-spi falsely attributed solely to Sun.
2260 * cspi/spi_main.c (cspi_object_ref): kill bogus
2261 hash lookup, just increment the ref.
2262 (SPI_freeString): make explicit the fact that we
2263 handle NULL strings just fine.
2264 (report_leaked_ref): obey coding standards.
2265 (cspi_object_hash, cspi_object_equal): kill retval.
2266 (cspi_object_release): only release if not on loan.
2267 (cspi_object_get_ref): add 'loan' concept, bin 'do_ref'.
2268 (cspi_object_borrow, cspi_object_return): impl.
2270 * cspi/bonobo/cspi-bonobo-listener.c (cspi_event):
2271 use cspi_object_borrow / return.
2273 2002-08-12 Darren Kenny <darren.kenny@sun.com>
2275 * cspi/bonobo/cspi-bonobo-listener.c:
2277 Don't call cspi_oject_new() because this is creating a new Accessible
2278 every single time that an event is fired. This causes ATs like at-poke
2279 to nolonger recognise the source of the event and thus ignore it.
2280 Re-use the object from the cache, ref it and then unref it after the
2281 listeners have been called.
2283 2002-08-06 Darren Kenny <darren.kenny@sun.com>
2285 * test/event-listener-test.c:
2286 Added command-line options to disable mouse events (m) and
2289 2002-07-31 Padraig O'Briain <padraig.obriain@sun.com>
2291 * configure.in: Update required versions of ATK, GTK+ and GAIL
2293 * cspi-1.0.pc.in: Add dependency for X include files
2296 * cspi/bonobo/Makefile.am:
2297 Add $(X_CFLAGS) so that X include files
2298 are picked up even if not in standard place (bug #71686)
2300 2002-06-25 Bill Haneman <bill.haneman@sun.com>
2302 * registryd/deviceeventcontroller.c: fix for 84261
2303 (spi_dec_mouse_moved):
2304 Added test of mouse button mask, so that we can detect mouse
2305 button release. Unfortunately we can't otherwise detect mouse
2306 button release events without consuming the mouse press event,
2307 because of the way XGrabButton works. This means that our mouse
2308 release events have a latency dependent on the polling period
2309 while the mouse button is down. At least in this case we only
2310 have to poll while the button is down, and not at other times.
2311 If the button masks don't match with what the last press event
2312 reported, we report the appropriate button release event.
2313 (spi_dec_ungrab_mouse):
2314 New method (not yet called).
2315 (spi_device_event_controller_forward_mouse_event):
2316 New method, sends mouse press event from GdkFilter.
2317 (spi_dec_init_mouse_listener):
2318 Added code to call XGrabButton, redirecting mouse button events to
2319 the root window and our Gdk event loop.
2321 Added code to filter mouse button events, and reordered.
2323 * test/event-listener-test.c:
2325 Added registration for mouse events of type "mouse:button".
2327 2002-06-25 Bill Haneman <bill.haneman@sun.com>
2329 * registryd/deviceeventcontroller.c: partial fix for 84261
2330 (spi_dec_poll_mouse_idle):
2331 New method, a timeout which checks to see if the mouse
2333 (spi_dec_poll_mouse_moving):
2334 A timeout to be called when mouse motion is underway.
2335 (spi_dec_poll_mouse_moved):
2336 A method which fires an event if the mouse has moved, and reports
2337 whether or not it did so.
2338 (spi_dec_init_mouse_listener):
2339 A method which sets up the timeouts above.
2340 (spi_device_event_controller_new):
2341 Now calls spi_dec_init_mouse_listener.
2343 * registryd/registry.c:
2344 (spi_registry_init):
2345 Now we initialize the device event controller when the registry is
2346 initialized, instead of waiting until a client has requested a key
2347 event notification; this is because we need the event controller
2348 for mouse events, but the mouse event registration API is a
2349 "registry" call and doesn't explicitly call the
2350 deviceeventcontroller.
2351 We now report mouse motion events with a 100 ms idle latency and
2352 a 20 ms granularity when motion is in progress.
2354 * test/event-listener-test.c:
2356 We now register the "detail listener" for events of type
2357 "mouse:rel" and "mouse:abs" (Note, mouse-abs events generally are
2358 delivered only for the first mouse event received, and thereafter
2359 "mouse:abs" events are delivered.)
2361 * cspi/spi_registry.c:
2362 DOCS: Documented the above mouse event typestrings.
2364 2002-06-21 Bill Haneman <bill.haneman@sun.com>
2366 Happy Summer Solstice...
2368 * registryd/deviceeventcontroller.c: [fix for bug 84100]
2369 (spi_controller_notify_keylisteners):
2370 Changes to remove a listener from the listener list, freeing its
2371 open keygrabs, if a notification to that listener fails. This
2372 means that although a dead listener can continue to hold a passive
2373 keygrab, a maximum of one dispatch to such a listener can fail
2374 before the listener is removed from the list, thus the keygrab
2375 will be released on the next occurrence.
2376 As part of this fix:
2377 (spi_notify_keylisteners):
2378 Renamed to spi_controller_notify_keylisteners, as the controller
2379 instance must now be passed as an argument.
2380 The copied 'notify' GList is now a list of DEControllerKeyListener
2381 objects, since we need more than just the CORBA reference if a
2382 notify fails and we need to deregister the listener.
2383 (impl_notify_listeners_sync):
2384 (impl_notify_listeners_async):
2385 (spi_device_event_controller_forward_key_event):
2386 Modify use of notify_keylisteners in accordance with above
2388 (spi_deregister_controller_key_listener):
2389 New method introduced by refactoring, from
2390 impl_deregister_keystroke_listener.
2391 (impl_deregister_keystroke_listener):
2392 Call spi_deregister_controller_key_listener.
2393 (spi_key_listener_clone):
2394 New method to copy a key listner without doing a 'ref' on the
2395 remote object instance; used to create a notifier list.
2396 (spi_key_listener_data_free):
2397 New method, frees data without unreffing the source.
2399 (spi_key_listener_clone_free): new method.
2400 (spi_key_listener_free):
2401 refactored to call spi_key_listener_data_free.
2403 2002-06-20 Bill Haneman <bill.haneman@sun.com>
2405 * registryd/registry.c: [fix for bug 86048]
2406 (notify_listeners_cb):
2407 Clear CORBA system exceptions which occur when notifying
2408 listeners, before returning to the source of the original event,
2409 since the event source doesn't care if the relayed notify failed.
2410 In other words, don't complain to the atk-bridge if the registry
2411 could not notify all its listeners, that's no fault of the
2412 application and thus should not appear to be an error from the
2413 application's perspective.
2415 * cspi/spi_main.c: [fix for bug 85980]
2417 Replaced use of bonobo_object_dup_ref with call to the wrapper
2418 method, csou_dup_ref (); this silences a compiler warning and
2419 provided more portability.
2421 Ping the registry before return, and restart if necessary.
2423 * cspi/bonobo/cspi-bonobo.c:
2425 New internal method.
2427 Fixed this method to return an object reference, as it should have
2430 * cspi/cspi-lowlevel.h:
2431 Added internal definition for cspi_ping() and fixed
2432 return type of cspi_dup_ref().
2435 2002-06-19 Bill Haneman <bill.haneman@sun.com>
2437 * atk-bridge/bridge.c: [fix for bug 85305]
2438 (spi_atk_bridge_register_application):
2439 New method where the initial application registry calls have been
2440 moved; it allows an application to re-register in response to
2441 certain error conditions (such as a registry restart, see below).
2443 Moved some initialization code to the method
2444 spi_atk_bridge_get_registry, below.
2445 (spi_atk_bridge_get_registry):
2446 New, private accessor function for the Accessibility_Registry
2447 instance. If the registry has not been started before, or has
2448 died (as detected by failure of a CORBA exception), it is
2449 restarted before return, and spi_atk_bridge_register_application
2450 is called again to register with the new bridge instance.
2451 (spi_atk_emit_eventv):
2452 Set registry_died on error; use spi_atk_bridge_get_registry () to
2453 access the registry.
2455 * registryd/registry.c:
2456 (impl_accessibility_registry_register_global_event_listener):
2457 Set listener's event_type_quark to etype.minor instead of
2458 etype.major (fix for bug 84856).
2460 * test/event-listener-test.c:
2461 (report_detail_event):
2462 Change the output string so that user/tester can tell that the
2463 'detail listener' was called instead of the 'generic listener'.
2465 2002-06-18 Bill Haneman <bill.haneman@sun.com>
2467 Fixes for bugs 84900, 84908, 84897, 84898.
2472 Revved version to 1.1.0
2473 (reserving the 1.0.X branch for gnome-2-0-0 branch, this
2474 version is going to HEAD which will be used for gnome-2-0-1 and later.)
2476 * idl/Accessibility_Registry.idl:
2477 (EventListener::notifyEvent):
2478 Removed 'oneway' directive after extensive consulation with
2479 ORBit2 team and others. This means also that unref() of the event
2480 source can and should be done synchronously after emission, rather
2481 than remotely in the client, after servicing the notify call on
2484 NOTE: This change speeds up listener performance considerably, but
2485 introduces new latency on the application side. We may want to
2486 add an event queue to the atk-bridge.
2488 * atk-bridge/bridge.c:
2489 (spi_atk_bridge_focus_tracker):
2490 Do a local unref() on the event source after emission.
2492 * registryd/registry.c:
2493 (desktop_remove_application):
2494 Do an unref() on the event source after emission.
2495 (desktop_add_application):
2496 Do an unref() on the event source after emission.
2497 (notify_listeners_cb):
2498 When relaying an event, don't automatically add the event source
2499 to the local object cache, just CORBA_dup it instead. Likewise,
2500 if this method reenters, release the ref rather than calling
2502 (impl_registry_notify_event):
2503 No longer call remote unref() on the event source after dispatch.
2505 * libspi/eventlistener.c:
2506 (impl_accessible_event_notify_event):
2507 Removed remote unref ()
2509 * cspi/bonobo/cspi-bonobo-listener.c:
2511 We now call cspi_object_new() instead of cspi_object_add() on
2512 receipt of an event; thus we only have an implicit object ref
2513 while the cspi_event method is being executed. If we need to keep
2514 a reference to the object, the listener must call ref() on the
2515 object. Thus also we don't need to call cspi_object_unref() after
2516 invoking the listener callbacks in this method.
2520 New internal API for creating a new cspi object, without adding it
2521 to the object cache.
2523 Now uses cspi_object_new() to create the cspi object instance.
2525 Now checks to see if the object is in the internal object cache,
2526 and adds it if necessary before incrementing its refcount (note
2527 that new objects are added with a refcount of 1).
2528 (report_leaked_ref):
2529 New method which gives some information on leaked object instances
2530 if leak detection is turned on.
2532 * test/event-listener-test.c:
2533 (timing_test_event):
2534 New method, used for testing event delivery timing for special
2535 events of type "object:test". It reports elapsed time and
2536 events/sec every 500 events.
2538 Added a new listener, 'test listener', to check timing of event
2539 receipt as noted above.
2541 Added some timing output here also, reports elapsed time every 100
2544 * test/stress-test.c:
2545 Emit events of type "object:test", for use with "event-listener-test".
2547 * test/test-simple.c:
2548 (global_listener_cb):
2549 Call Accessible_ref() on the event source before calling
2550 validate_accessible, since the validation process does pointer
2551 comparisons on the event source, meaning that the event source
2552 needs to be added to the local object cache first. Any use of
2553 such pointer comparisons between Accessible objects requires that
2554 the caller hold an explicit reference to those objects.
2555 We also must therefore call Accessible_unref() when leaving this method.
2557 2002-06-13 Bill Haneman <bill.haneman@sun.com>
2559 * registryd/deviceeventcontroller.c:
2560 (spi_controller_update_key_grabs):
2561 Fix for #84735, subsequent keygrab listeners not informed of
2562 registration failure.
2565 (spi_base_construct):
2566 Add an assertion on construct, to make sure the GObject passed in
2567 is really a GObject.
2569 Explicitly initialize object->gobj pointer to NULL;
2571 * cspi/bonobo/cspi-bonobo-listener.c:
2572 (cspi_object_add_ref):
2573 New method, can specify whether to dup-ref a bonobo object passed
2574 in if it's newly added to the object cache.
2576 Now calls cspi_object_add_ref with second param of "FALSE". This
2577 prevents us from doing a pointless dup-ref followed by
2578 release-unref for all those cases where the object is already in
2579 our object cache (fix for #85205).
2581 * atk-bridge/bridge.c:
2582 (spi_atk_bridge_idle_init):
2583 Removed this method, we don't need to initialize in an idle
2586 Changed to call spi_atk_register_event_listeners directly, not via an
2587 idle handler. (fix for #81139)
2588 (gnome_accessibility_module_shutdown):
2589 Removed conditional around deregistration of listeners, since we
2590 don't use the idle handler and thus have always registered when
2592 (spi_init_keystroke_from_atk_key_event):
2593 Changed references to Accessibility_KEY_PRESSED to
2594 Accessibility_KEY_PRESSED_EVENT, etc. (fix for #79865).
2596 2002-06-12 Bill Haneman <bill.haneman@sun.com>
2598 (TAGGED AND BRANCHED for gnome-2-0-0 after this commit)
2603 * test/stress-test.c:
2606 (may have been an incomplete commit yesterday?)
2608 2002-06-12 Bill Haneman <bill.haneman@sun.com>
2611 Added target for new stress-test.
2613 * test/stress-test.c:
2614 New test, sends 1000 focus notifies in quick succession.
2616 * test/key-listener-test.c:
2617 Now we report whether a keylistener registration
2618 request succeeded or failed.
2620 * test/event-listener-test.c:
2621 Uncommented some listeners which are now implemented.
2624 2002-06-06 Bill Haneman <bill.haneman@sun.com>
2626 * registryd/deviceeventcontroller.c:
2627 (spi_controller_update_key_grabs):
2628 Fix for #82509, lack of failure notification when
2629 ALL_WINDOWS keygrabs fail due to XGrabKey
2630 failure: we synchronize the server when
2631 registering a passive grab, to make sure we get the
2632 error message before the call returns.
2634 2002-06-03 Bill Haneman <bill.haneman@sun.com>
2636 * test/test-simple.c:
2638 Removed #ifdef KEY_IMPL_WORKS guards.
2639 (test_keylisteners):
2640 Removed #ifdef KEY_IMPL_WORKS guards.
2641 Fixed bug which was causing a hang waiting for a
2642 "press" event (which was already overwritten by a "release"
2643 event) from SPI_generateKeyboardEvent with synth-type of SPI_KEY_SYM.
2645 Added code to set globals 'key_press_received' and
2646 'key_release_received'.
2649 Added section "1.1 API Proposed Additions" which
2650 lists API additions desired for at-spi-1.1 (only one so far).
2651 Updated TODO list a little.
2653 2002-06-02 Bill Haneman <bill.haneman@sun.com>
2655 AT-SPI 1.0 API FINAL: at-spi 1.0 is now
2658 * configure.in: Revved to 1.0.0.
2660 * idl/Accessibility_Registry.idl:
2661 (registerKeystrokeListener):
2662 Added boolean return value.
2664 * registryd/registry.c:
2665 (notify_listeners_cb): Minor fix to debug output.
2667 * registryd/Accessibility_Registry.server.in.in:
2668 Revved version number in OAFIID to 1.0.
2670 * registryd/registryd.c:
2672 Use new OAFIID version.
2674 * cspi/bonobo/cspi-bonobo.c:
2676 Use new OAFIID version.
2682 * atk-bridge/bridge.c:
2684 Use new OAFIID version.
2686 * registryd/deviceeventcontroller.c:
2687 (impl_register_keystroke_listener):
2688 Added CORBA_boolean return value.
2689 (spi_controller_register_device_listener):
2690 Added gboolean return value.
2691 (spi_controller_register_global_keygrabs):
2692 Added gboolean return value.
2693 (spi_key_set_contains_key):
2694 Added implementation for many more control keys,
2695 for instance F1-F12, arrow keys, End, Home, Page_Up,
2697 [TODO: some still not implemented].
2699 * text/screen-review-test.c:
2700 (text_chunk_pad_string):
2701 New function: it provides mapping between coordinate
2702 positions of text chunks and character positions in the
2703 screen-review-line output string.
2704 (text_chunk_to_string):
2705 New function, calls text_chunk_pad_string with various
2706 pad/delimiter characters. Pushbuttons are delimited with
2707 square brackets, Frames with vertical 'pipe' lines, and
2708 other text with double quotes.
2709 (text_chunk_list_to_string):
2710 Calls new function text_chunk_to_string.
2711 (toplevel_composite):
2712 New function to composite layers CANVAS through
2713 POPUP in each toplevel (other layers are composited
2714 across toplevels, i.e. BACKGROUND and OVERLAY).
2715 (review_buffer_composite):
2716 Revise to use new methods.
2722 2002-05-31 Laszlo Peter <laca@sun.com>
2724 * configure.in: add the Xtst libdir to the runpath on Solaris,
2725 since it's not in the default library search path.
2727 2002-05-29 jacob berkman <jacob@ximian.com>
2729 * registryd/Makefile.am (EXTRA_DIST): dist the .in.in
2731 2002-05-29 Bill Haneman <bill.haneman@sun.com>
2733 * test/screen-review-test.c:
2734 (text_chunk_pad_string):
2735 Added method, which pads the string according to the
2736 text bounds of the chunk. It also takes a 3-character
2737 string as a param which indicates the characters to be
2738 used for start, padding, and end delimitation of the chunk.
2739 (text_chunk_to_string):
2740 Changed to use text_chunk_pad_string.
2742 * configure.in: Fixed bug in AC_OUTPUT that was
2743 causing path substitution in Accessibility_Registry.server
2746 2002-05-23 Bill Haneman <bill.haneman@sun.com>
2748 * text/screen-review-test.c:
2749 (guess_string_clip):
2750 New method which attempts a best-guess at clipping
2751 text from components (like Java labels) which don't
2752 actually implement AccessibleText. This inaccurate
2753 clip is based on the assumption that the label is
2754 justified left-and-right, and monospaced.
2755 (text_chunk_get_clipped_string):
2756 We now call guess_string_clip() for text-containing
2757 components that don't implement AccessibleText.
2759 * test/screen-review-test.c:
2760 (review_buffer_get_text_chunk):
2761 We now pull "name" from labels if they do not implement
2762 AccessibleText (i.e. for Java labels).
2763 (get_screen_review_line_at):
2764 Added #ifdef guards CHUNK_LIST_DEBUG for diagnostics.
2767 Replaceded AC_OUTPUT target
2768 registryd/Accessibility_Registry.server with
2769 registryd/Accessibility_Registry.server.in.
2771 * registryd/Accessibility_Registry.server.in:
2772 Removed (this is now a Makefile target).
2774 * registryd/Accessibility_Registry.server.in.in:
2775 Added (source for target above). We now use $(libexecdir) as
2776 prefix for the executable at-spi-registryd.
2778 * registry/Makefile.am:
2779 Now install at-spi-registryd into $(libexecdir), and build .server
2780 file with path (see above).
2782 2002-05-22 Bill Haneman <bill.haneman@sun.com>
2784 * test/screen-review-test.c:
2785 (text_chunk_get_clipped_string):
2786 We now check to see if words fall within clip bounds
2787 before resorting to character-by-character clip bounds testing.
2789 * TODO: Added a section for "2.2 Proposed API Additions".
2791 2002-05-21 Bill Haneman <bill.haneman@sun.com>
2793 * test/screen-review-test.c:
2795 Added a screen review benchmarking and test program to test
2798 * cspi/spi_accessible.c:
2800 Made some of the debug strings passed to cspi_check_ev a
2801 little more specific.
2803 2002-05-21 Padraig O'Briain <padraig.obriain@sun.com>
2805 * test/screen-review-test.c: Fix crashes in debug statements
2807 2002-05-20 Bill Haneman <bill.haneman@sun.com>
2809 * test/screen-review-test.c: Added this file.
2811 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2813 * atk-bridge/bridge.c: changed "object:state-change" to
2814 "object:state-changed" to match docs.
2816 2002-05-13 Marc Mulcahy <marc.mulcahy@sun.com>
2818 * atk-bridge/bridge.c: Hooked up state-change event details.
2820 2002-05-11 Bill Haneman <bill.haneman@sun.com>
2822 * registryd/registry.c:
2823 Fixed quarking bug in event string parsing; now events with
2824 detail parameters get matched correctly to listeners.
2827 * util/idl/Magnifier.idl: remove.
2829 * util/*.[ch]: Remove.
2830 Magnification utilities and IDL are now in module gnome-mag.
2832 2002-05-10 Bill Haneman <bill.haneman@sun.com>
2834 * registryd/deviceeventcontroller.c:
2835 Fixed bug in grab key conversion which was causing keycode grabs
2836 to be converted to AnyKey grabs.
2839 updated NEWS file to reflect recent spin-off of gnome-mag.
2841 2002-05-09 Marc Mulcahy <marc.mulcahy@sun.com>
2843 * cspi/spi_accessible.c: Added exception checks. Fixed completely
2844 busted AccessibleStateSet_compare. Removed redundant casts.
2846 * cspi/spi-action.c: Removed redundant casts.
2848 * cspi/spi_application.c: Fixed typo in AccessibleApplication_getVersion.
2850 * cspi/spi_component.c: Fixed typos and casting error.
2852 * cspi/spi_editabletext.c: Removed redundant casts.
2854 * cspi/spi_hyperlink.c: Fixed casting and exception checking.
2856 * cspi/spi_hypertext.c: Eliminated redundant casts.
2858 * cspi/spi_image.c: Eliminated redundant casts.
2860 * cspi/spi_registry.c: Eliminated redundant casts.
2861 SPI_deregisterGlobalEventListenerAll () removed retval variable.
2862 * cspi/spi_selection.c: Removed redundant casts.
2863 * cspi/spi_text.c: Eliminated redundant casts. Fixed exception
2864 handling. Screen geometry and text offsets were being returned as 0
2865 on error which is technically valid-- changed these to return -1.
2866 Added marshaller for text boundary types to fix bug with boundary
2867 types being passed incorrectly to atk.
2869 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2872 * cspi/spi_registry.c:
2873 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
2874 which was uncovered by the recent key changes.
2876 2002-05-09 Bill Haneman <bill.haneman@sun.com>
2878 * test/event-listener-test.c:
2880 Added new test, "event-listener-test";
2881 this code does two things; it benchmarks traversal time
2882 for the accessible hierarchy for the first running accessible
2883 app, and it connects listeners for all supported event types.
2884 It is thus useful as an example event listener and for
2885 diagnostics/debugging of event generation.
2887 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2890 Removed unnecessary dependency on libutil.
2893 Revved micro version: 0.13.1
2895 2002-05-08 Bill Haneman <bill.haneman@sun.com>
2898 Removed util/Makefile from targets.
2901 Removed util subdir from SUBDIRS (temporarily,
2902 pending removal of magnifier-only code
2906 #ifdef-ed out magnifier dependencies, since
2907 magnifier IDL, headers, and binary now live in
2908 module gnome-mag and we don't want at-spi to depend
2909 on gnome-mag. A magnifier demo which can run alongside
2910 simple-at is forthcoming in the gnome-mag module.
2912 NOTE: Split magnifier binary, IDL, and magnification
2913 activation code from at-spi into module gnome-mag.
2915 2002-05-03 Marc Mulcahy <marc.mulcahy@sun.com>
2917 * cspi/bonobo/cspi-bonobo.c cspi/bonobo/cspi-bonobo-listener.c
2918 cspi/bonobo/cspi-bonobo-listener.h: Added copyright notice.
2920 2002-05-03 Bill Haneman <bill.haneman@sun.com>
2923 Revved to version 0.13.0
2925 * idl/Accessibility_Registry.idl:
2926 Changed definition of KeySet from sequence of longs to sequence of
2927 KeyDefinitions, and added KeyDefinition struct.
2928 Required for fix to bug 80616.
2930 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
2931 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
2932 to use new definition (see above).
2934 * registryd/deviceeventcontroller.c: handle_keygrab(),
2935 spi_keyset_contains_key():
2936 Changed to make use of new struct; this allows matching based on
2937 string key-name, for instance "Tab". This also allows matching of
2938 composed characters, non-alphanumeric characters in a way that
2939 doesn't involve dependencies on X keysym codes directly, etc.
2941 * test/key-listener-test.c:
2942 Added test for Alt-Tab key using "string" specification of keyset,
2943 and modified one of the tests to use a keycode-based keyset.
2944 Thus this test both tests and demonstrates the creation and use of
2945 keysets of three forms: specified via keycode array,
2946 keysym array, and string array. (The string case only contains a
2947 single string, i.e. a string array of length 1).
2950 Turned on PRINT_TREE option by default. Also fixed a
2951 string-freeing bug in the PRINT_TREE code.
2952 Added a listener to window:minimize events.
2954 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
2956 * atk-bridge/bridge.c:
2957 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
2958 for window:activate and window:deactiveate
2959 (atk_bridge_property_event_listener atk_bridge_signal_listener
2960 atk_bridge_window_event_listener) Tidy debug code
2962 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
2964 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
2965 Fixed handling for NULL return value from ATK.
2967 * libspi/action.c libspi/component.c libspi/editabletext.
2968 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
2969 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
2970 Removed redundant casts.
2972 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
2973 Fixed off by one bug.
2975 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
2976 function not present in idl)
2978 2002-05-02 jacob berkman <jacob@ximian.com>
2980 * atk-bridge/Makefile.am: make atk-bridge a real module
2982 2002-04-26 Radek Doulik <rodo@ximian.com>
2984 * libspi/stateset.c (spi_init_state_type_tables): fix size of
2985 atk_state_types table
2987 2002-04-22 jacob berkman <jacob@ximian.com>
2990 * libspi/Makefile.am: add deps on the built files to help
2991 automake, and don't version the ORBit typelib
2993 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
2995 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
2996 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
2997 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
2998 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
2999 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
3000 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
3001 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
3002 libspi/accessible.h libspi/accessible.h libspi/base.h
3003 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
3004 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
3005 libspi/relation.h libspi/remoteobject.h libspi/selection.h
3006 libspi/spi-private.h libspi/statetset.h libspi/table.h
3007 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
3008 util/mag_client.h util/mag_control.c util/mag_image.c
3009 util/mag_image.h util/magnifier.c util/magnifier.h:
3010 Add missing file headers; standardize existing ones
3012 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
3014 * atk-bridge/bridge.c: Added window event support.
3016 2002-04-18 Michael Meeks <michael@ximian.com>
3018 * libspi/relation.c (impl_getNTargets): impl.
3019 (impl_getTarget): impl.
3021 * libspi/Makefile.am: fix stateset install.
3023 2002-04-17 Bill Haneman <bill.haneman@sun.com>
3026 Started putting useful info in this file.
3028 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
3030 * atk-bridge/bridge.c:
3031 Propagate state-changed notifications to ATs
3033 * cspi/spi_registry.c: update docs to reflect actual behavior of
3034 state-change events.
3036 2002-04-17 Bill Haneman <bill.haneman@sun.com>
3039 Incremented version to 0.12.1
3041 * util/mag_client.h:
3042 Add missing declaration for magnifier_exit,
3043 used by mag_control.c - Forte compiler didn't like
3044 the implicit redeclaration of the function :-(
3047 2002-04-16 Bill Haneman <bill.haneman@sun.com>
3050 Revved version to 0.12 due to API change (see below).
3052 * cspi/spi-roletypes.h:
3053 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
3054 definition from the inline docs, and added docs
3055 for SPI_ROLE_LAST_DEFINED.
3058 * cspi/spi_streamablecontent.c:
3059 Added missing seek_type parameter to
3060 (so far unused) method,
3061 AccessibleStreamableContent_seek().
3062 [ RT approval JodyG. ]
3065 Fixed docs for SPI_createAccessibleKeystrokeListener.
3067 * cspi/spi_registry.c:
3068 Fixed docs for SPI_KEYSET_ALL_KEYS.
3070 * docs/reference/cspi/at-spi-cspi-sections.txt:
3071 Added a number of missing APIs to SECTIONS.
3073 2002-04-16 Bill Haneman <bill.haneman@sun.com>
3075 * registryd/Makefile.am:
3077 * cspi/bonobo/Makefile.am:
3078 Add $(X_LIBS) to makefiles.
3080 2002-04-15 Bill Haneman <bill.haneman@sun.com>
3083 Revved version to 0.11.
3085 * libspi/component.c:
3086 Added implementation for grabFocus.
3088 * idl/Accessibility_Component.idl
3089 (Accessibility_Component_grabFocus):
3090 Made this method return boolean to indicate success or failure, to
3091 be consistent with cspi and the corresponding ATK method.
3093 * idl/Accessibility_Selection.idl
3094 (Accessibility_Selection_selectAll) :
3095 Made these methods return boolean to indicate success or
3096 failure, to be consistent with cspi and the corresponding ATK methods.
3098 * idl/Accessibility_EditableText.idl
3099 (Accessibility_EditableText_setTextContents,
3100 Accessibility_EditableText_insertText,
3101 Accessibility_EditableText_cutText,
3102 Accessibility_EditableText_deleteText,
3103 Accessibility_EditableText_pasteText):
3104 Made these methods return boolean to indicate
3107 * cspi/spi_editabletext.c:
3108 Made these methods return booleans.
3110 * libspi/selection.c:
3111 * libspi/component.c:
3112 * libspi/editabletext.c:
3113 Connected the boolean returns from ATK
3114 to the server-side code referenced above.
3116 2002-04-14 Bill Haneman <bill.haneman@sun.com>
3118 * idl/Accessibility_Table.idl: Added missing methods,
3119 Accessibility_Table_addRowSelection,
3120 Accessibility_Table_addColumnSelection,
3121 Accessibility_Table_removeRowSelection,
3122 Accessibility_Table_removeColumnSelection.
3125 Added C wrappers for above IDL:
3126 AccessibleTable_addRowSelection,
3127 AccessibleTable_addColumnSelection,
3128 AccessibleTable_removeRowSelection,
3129 AccessibleTable_removeColumnSelection.
3132 Added server-side implementation code for IDL above, connecting
3133 to pre-existing ATK api.
3135 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
3137 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
3139 * libspi/accessible.c: Added implementation fo
3140 Accessibility_Accessible_get_state.
3142 * libspi/libspi.h: Added stateset.h to the list of includes.
3144 * libspi/stateset.c: Fixed broken implementation.
3146 2002-04-13 Bill Haneman <bill.haneman@sun.com>
3149 Added implementation code for Accessibility_Magnifier_exit ().
3151 * util/mag_control.c:
3152 Added test code for above method; you can
3153 now kill an existing magnifier via
3154 ./mag_control q, from the util directory.
3156 * test/key-listener-test.c:
3158 Added a new test, for our key listener API.
3160 2002-04-11 Bill Haneman <bill.haneman@sun.com>
3162 * test/app.c, test/keysynth-demo.c:
3164 Replace use of snprintf with g_snprintf.
3165 (fix for bugzilla 78249)
3167 2002-03-27 Michael Meeks <michael@ximian.com>
3171 * util/Makefile.am (INCLUDES): fix.
3172 (DONT_DIST_SOURCE): don't distribute the
3175 * libspi/Makefile.am (dist-hook): ditto.
3177 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
3179 * libspi/hypertext.c:
3180 Fix warnings when yelp is used with atk-bridge
3182 2002-03-21 Michael Meeks <michael@ximian.com>
3184 * libspi/application.c (spi_application_new):
3185 use spi_accessible_construct so we use the AtkObject
3188 2002-03-19 Michael Meeks <michael@ximian.com>
3190 * registryd/registry.c (desktop_remove_application),
3191 (desktop_add_application): clean coding style.
3193 * registryd/desktop.c (spi_desktop_remove_application),
3194 (spi_desktop_add_application): kill re-enterency hazards.
3195 (spi_desktop_dispose): remove bogus redundant cast
3196 obscuring bug; fix bug too.
3197 (spi_desktop_init): make the desktop object immortal.
3199 2002-03-16 Bill Haneman <bill.haneman@sun.com>
3202 Added a #define-guarded tree-traversal step
3203 when enumerating the apps (diagnostic tool).
3205 2002-03-15 Bill Haneman <bill.haneman@sun.com>
3207 * idl/Accessibility_Role.idl:
3208 Added ROLE_DRAWING_AREA which seemed to be missing from the
3211 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
3213 * cspi/spi-roletypes.h cspi/spi_accessible.c
3214 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
3217 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
3218 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
3219 AT when applications are added and removed from the desktop. This
3220 reverts the previous broken implementation using the backing
3221 AtkObject for the SpiDesktop.
3223 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
3225 * registryd/desktop.c: emit the "children-changed::add" and
3226 "children-changed::remove" signals on the backing ATK object for
3227 the desktop so AT can tell when applications are started and shut
3230 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
3232 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
3234 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
3236 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
3238 * cspi/spi_accessible.c: Implemented c bindings for stateset support
3240 * cspi/state-types.h: synched with IDL and ATK
3242 2002-03-13 Bill Haneman <bill.haneman@sun.com>
3244 * libspi/accessible.c
3245 (impl_accessibility_accessible_get_child_at_index):
3246 Change return value for g_return_if_fail ()
3247 to CORBA_OBJECT_NIL instead of "0" (!)
3249 * registryd/Makefile.am:
3250 * registryd/Accessibility_Register.server.in:
3251 Changed name of executable, "registryd",
3252 to something more informative:
3255 2002-03-13 Michael Meeks <michael@ximian.com>
3257 * atk-bridge/bridge.c (atk_bridge_init): don't register
3258 if we're in a bonobo-component, rather than a bonobo app.
3260 2002-03-13 Michael Meeks <michael@ximian.com>
3262 * atk-bridge/bridge.c (gtk_module_init): split
3263 out body to (atk_bridge_init): here, since otherwise
3264 we get symbol conflicts and oddness when invoked
3265 from (gnome_accessibility_module_init): here (upd.)
3267 2002-03-11 Bill Haneman <bill.haneman@sun.com>
3270 New file. Explicitly allow "build sheriff" putbacks provided
3271 they are tested on Solaris.
3273 * docs/reference/cspi/Makefile.am:
3274 Added '-' to the "cp" command for index.sgml.
3275 ("patch by thomasvs, soon coming to a GUADEC near you")
3278 Incremented version number (0.9.0) for new release.
3279 Changed macro that checks for popt, to better detect
3280 obsolete versions of popt.
3283 Added X_LIBS to AC_SUBST, for applications
3284 that call Xlib API directly.
3287 2002-03-07 Bill Haneman <bill.haneman@sun.com>
3290 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
3293 Fix regression caused by hard-coding major
3294 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
3297 * test/test-simple.c (test_editable_text),
3298 (test_test): revert previous change (error was
3299 a regression in gail which is now fixed).
3301 2002-03-04 Michael Meeks <michael@ximian.com>
3303 * test/test-simple.c (test_editable_text),
3304 (test_text): pass G_MAXINT instead of '-1' for
3305 whole string - is this a good thing !?
3307 * cspi/spi_accessible.c
3308 (Accessible_getRelationSet): fix crasher bug
3309 overwriting the end of the array.
3311 * test/test-simple.c (validate_accessible): free,
3312 not g_free returned relation set.
3314 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
3316 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
3317 implemented stateset support
3319 * idl/Accessibility_State.idl: Made necessary changes to
3320 the IDL to support state sets.
3322 2002-02-12 Bill Haneman <bill.haneman@sun.com>
3324 * registryd/deviceeventcontroller.c:
3325 Added implementation for generateMouseEvent.
3327 * cspi/spi_registry.c:
3328 Connected new implementation for generateMouseEvent
3331 2002-02-12 Bill Haneman <bill.haneman@sun.com>
3334 Incremented revision (but no change in public API
3335 outside of 'utils', which are not installed public yet.)
3337 * libspi/component.c:
3338 Changed to use atk_component API for layers and
3339 mdi_zorder, instead of deprecated atk_object API.
3341 Magnification Utility Enhancements:
3344 Added implementation of createZoomRegion, clearAllZoomRegions,
3345 resizeZoomRegion. Added new commandline argument
3346 "--no-initial-region". Note that clearAllZoomRegions doesn't
3347 unmap the old '0' region as it should (yet), and the other
3348 methods only work when creating/resizing a single region,
3349 which is "region 0".
3350 (Code for multiple region support will be added later.)
3353 Now we raise the magnifier window each time it's refreshed;
3354 this will help keep it on top.
3356 * util/mag_client.h:
3357 Added simple wrappers for above, used by mag_control.
3358 For general use, it's recommended to use the bonobo magnifier
3359 control API directly instead of using these wrappers.
3362 Moved ZoomRegionData from magnifier.c to this file.
3364 * util/mag_control.c:
3365 Added some code to exercise new IDL implementations.
3367 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
3369 * libspi/text.c: Provide implementation for getAttributes.
3371 2002-02-04 Bill Haneman <bill.haneman@sun.com>
3374 Incremented revision.
3376 * test/test-simple.c:
3377 Replaced use of deprecated g_main_iteration with
3378 g_main_context_iteration.
3380 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
3383 Incremented revision for desktop alpha 2.
3385 2002-01-28 Mark McLoughlin <mark@skynet.ie>
3387 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
3390 * test/simple-at.c: include netinet/in.h.
3392 2002-01-24 Mark McLoughlin <mark@skynet.ie>
3394 * cspi/spi_accessible.c: (Accessible_getRelationSet):
3395 use NULL, not CORBA_OBJECT_NIL.
3397 * libspi/accessible.c:
3398 (impl_accessibility_accessible_get_relation_set):
3399 allocate the sequence correctly.
3401 * libspi/remoteobject.h: kill spi_remote_object_new.
3403 * test/test-simple.c: (validate_accessible): add code
3404 to test relation sets, now all we need is to figure
3405 out how to excercise this code path :/
3407 2002-01-18 Michael Meeks <michael@ximian.com>
3409 * test/test-simple.c
3410 (key_listener_cb): consume the key.
3411 (test_keylisteners): update.
3412 (main): wait for any pending unrefs on events.
3414 * registryd/deviceeventcontroller.c
3415 (spi_controller_update_key_grabs): only re-issue the
3416 grab on a key release.
3417 (spi_device_event_controller_forward_key_event):
3418 refresh the keygrabs before we notify the listeners,
3419 to reduce the X ungrab / re-grab race.
3420 (spi_controller_register_with_devices): remove
3421 XSelectInput - we do that with the gdk_window_ call.
3422 (_spi_controller_device_error_handler): return a value.
3423 s/GDK_DISPLAY/spi_get_display/
3425 2002-01-17 Michael Meeks <michael@ximian.com>
3427 * registryd/deviceeventcontroller.c
3428 (_deregister_keygrab): don't blow out the later
3431 * test/test-simple.c (test_keylisteners): do a
3432 more intelligent validation.
3434 2002-01-14 Michael Meeks <michael@ximian.com>
3436 * atk-bridge/bridge.c
3437 (gnome_accessibility_module_init),
3438 (gnome_accessibility_module_shutdown): impl.
3439 (gtk_module_init): protect vs. double inits.
3440 (add_signal_listener): impl.
3441 (spi_atk_bridge_state_event_listener): kill
3442 (deregister_application): split out of
3443 (spi_atk_bridge_exit_func): here.
3445 2002-01-18 Bill Haneman <bill.haneman@sun.com>
3448 Added caret tracking when using magnifier, and
3449 now use text bounds for focus tracking of text elements, rather than
3450 the component bounds - this is helpful for short text fields in long
3451 table cells, at high magnification.
3453 2002-01-16 Bill Haneman <bill.haneman@sun.com>
3455 * registryd/deviceeventcontroller.c:
3456 Regression fix for keylistener de-registration; global keygrabs
3457 were not being released when deregisterKeystrokeListener was
3458 called in cspi, since
3459 Accessibility_DeviceEventController_deregisterKeystrokeListener
3460 was called with a zero-length keyset. That is because the cspi
3461 method, SPI_deregisterKeystrokeListener, does not take a keyset
3462 parameter but instead should remove all the key grabs held be a
3464 The code in impl_deregister_keystroke_listener was changed to copy
3465 the keylist from the listener instance previously registered with
3466 the DeviceEventController before releasing the grabs.
3468 * registryd/registry.c:
3469 * registryd/deviceeventcontroller.c:
3470 * libspi/spi-private.h:
3472 Changed spelling of "re-enterant" to "re-entrant" globally.
3474 2002-01-16 Bill Haneman <bill.haneman@sun.com>
3476 * test/test-simple.c:
3477 Changed key listeners test - the test was slightly mis-using the
3478 (admittedly poorly documented) SPI_generateKeyboardEvent API.
3479 It now uses '=' as the key event listened to and generated,
3480 relying on a keysym match rather than assuming that keycode 33
3481 is always equal to keysym '!'.
3483 2002-01-15 Bill Haneman <bill.haneman@sun.com>
3486 Changed simple-at to use a specific keyset, rather than
3487 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
3488 manager, desktop, etc.
3490 2002-01-11 Bill Haneman <bill.haneman@sun.com>
3492 * registryd/deviceeventcontroller.c:
3493 Replaced standard X error handler with a special handler that
3494 is non-fatal for failed keygrabs. This works around
3495 problems with keygrab clashes sometimes observed on
3497 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
3498 mouse handling code as yet).
3500 2002-01-11 Bill Haneman <bill.haneman@sun.com>
3503 Incremented revision for desktop alpha release.
3506 Fixed a couple of the more glaring errors (still not
3509 2002-01-11 Michael Meeks <michael@ximian.com>
3511 * registryd/deviceeventcontroller.c
3512 (spi_device_event_controller_forward_key_event): kill
3513 XUngrabKey / XKeyGrab race.
3514 (spi_controller_grab_keyboard): rename to
3515 (spi_controller_update_key_grabs): this, and deal
3516 with incremental adding / removing grabs more
3518 (_register_keygrab): ensure we're not pending a remove.
3519 (spi_grab_mask_free): impl.
3520 (spi_controller_register_global_keygrabs): split out
3522 (handle_keygrab): impl.
3523 (_deregister_keygrab): impl.
3524 (spi_controller_deregister_global_keygrabs): impl.
3525 (spi_controller_update_key_grabs): re-issue the grab if
3526 we just recieved a notification.
3528 * test/test-simple.c (key_listener_cb): remove debug.
3530 * registryd/deviceeventcontroller.c
3531 (spi_controller_register_device_listener): after
3532 registering a global keygrab, actualy register it !
3533 don't wait for a timeout; doh !
3535 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
3536 to make it more readable / manipulable.
3537 s/grabmask/grab_mask/ s/refcount/ref_count/
3538 s/keyval/key_val/ s/modmask/mod_mask
3540 2002-01-08 Michael Meeks <michael@ximian.com>
3542 * registryd/deviceeventcontroller.c
3543 (spi_controller_register_with_devices): use gdk calls to
3545 (global_filter_fn): implement the filter.
3546 (spi_device_event_controller_check_key_event): rename to
3547 (spi_device_event_controller_forward_key_event): this & upd.
3548 (spi_get_display): replace with GDK_DISPLAY.
3550 * registryd/deviceeventcontroller.c
3551 (spi_controller_deregister_device_listener): unroll into
3552 (impl_deregister_keystroke_listener): here to simplify.
3553 (spi_controller_register_global_keygrabs): split cut and
3554 paste (!) out into (_register_keygrab): here, shorter & sweeter.
3555 (spi_controller_deregister_device_listener): remove.
3556 (impl_register_mouse_listener): remove, no mouse listener
3557 support in at-spi-1.0
3559 * registryd/registry.c
3560 (_device_event_controller_hook): kill.
3561 (spi_registry_init): upd.
3563 * registryd/deviceeventcontroller.c
3564 (spi_device_event_controller_class_init): upd.
3565 (spi_check_key_event): merge into.
3566 (spi_device_event_controller_check_key_event):
3567 here and kill strange static ev init, don't leak
3568 the x_event - nor dynamicaly allocate it.
3570 * registryd/registry-main.c (main): re-direct
3571 timeout to remove strange vtable mess.
3573 * registryd/deviceeventcontroller.c
3574 (remove_listener_cb): impl.
3575 (spi_controller_deregister_device_listener):
3576 fix re-enterancy hazard.
3578 2002-01-07 Michael Meeks <michael@ximian.com>
3580 * registryd/deviceeventcontroller.c
3581 (spi_device_event_controller_new): upd.
3582 (impl_notify_listeners_sync): upd. debug.
3583 (spi_notify_keylisteners): fix re-enterancy hazards,
3584 prettify, remove O(n*n) iteration.
3585 (spi_controller_grab_keyboard): fix iteration.
3586 (spi_check_key_event): re-format to suit coding style.
3587 Clean all the warnings - we're warning free.
3589 * registryd/deviceeventcontroller.h:
3590 * registryd/registry.h: make mutualy referential with
3591 typesafe forward references instead of (!) void pointer
3594 2002-01-11 Michael Meeks <michael@ximian.com>
3596 * cspi/spi_accessible.c (role_names): add a role name
3597 to sync this array with the enum; and make the regression
3600 2002-01-10 Michael Meeks <michael@ximian.com>
3602 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
3603 allow expansion of enumeration & kill warning.
3605 * test/test-simple.c (key_listener_cb): impl.
3606 (test_keylisteners): impl.
3608 * cspi/spi-listener.h: make listener signatures const
3609 on the provided (const) events.
3611 * test/keysynth-demo.c: upd. to const events.
3613 * test/simple-at.c: ditto.
3615 2002-01-11 Bill Haneman <bill.haneman@sun.com>
3618 Rev the version to 0.5 (the previous tarball was named 0.4,
3619 even though the micro number was 3), so we need to rev upwards
3620 again for beta2/"desktop-alpha"
3623 Checked in a demo script, which requires editing before use!
3624 Proceed with caution.
3627 Fixed typo in header which was redefining SPI_ACTION_CLASS.
3629 * cspi/spi_accessible.c:
3630 Add a couple of missing enum initializations, and fix some enum
3633 * cspi/spi_registry.c:
3634 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
3636 * docs/reference/cspi/at-spi-cspi-sections.txt:
3637 Remove/fix a couple of broken document references.
3640 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
3641 as Alt-Control to listen for commands, since on some systems
3642 Control-Alt may already be grabbed.
3644 2002-01-10 Bill Haneman <bill.haneman@sun.com>
3647 Update version number to 0.4 for Beta2.
3649 * libspi/accessible.c, libspi/accessible.h:
3650 Expose spi_accessible_construct, to enable libgail-gnome
3651 construction from spi_accessible subtype.
3653 * utils/magnifier.c:
3654 Workaround for bug in some non-gnome-compliant window managers
3655 which made magnifier resize improperly.
3657 2002-01-09 Bill Haneman <bill.haneman@sun.com>
3659 * libspi/accessible.c: (spi_accessible_new) :
3660 Move the test for SPI_IS_REMOTE_OBJECT to
3661 spi_accessible_new_return, fixing a bug and compile time warning.
3663 2002-01-08 Michael Meeks <michael@ximian.com>
3665 * registryd/registry.c (parse_event_type): remove strndup.
3667 * libspi/Makefile.am (libspi_la_SOURCES): remove
3668 sources already included in the headers section.
3670 * libspi/util.c: add.
3672 * libspi/spi-private.h: add.
3674 * registryd/registry.c: update to moved list iterators.
3676 2002-01-05 Michael Meeks <michael@ximian.com>
3678 * test/simple-at.c (main): upd. auto-module set to atk-bridge
3680 * test/test-simple.c (main): ditto.
3682 2002-01-04 Michael Meeks <michael@ximian.com>
3684 * libspi/accessible.c (spi_accessible_new): remove 2nd,
3685 redundant construct.
3687 * registryd/registry.c
3688 (get_listener_list): impl.
3689 (impl_accessibility_registry_register_global_event_listener):
3690 re-impl. to simplify using ~, remove dodgy const cast off.
3691 (parse_event_type): constify.
3692 (impl_accessibility_registry_deregister_global_event_listener_all):
3693 re-write, more efficiency and simplicity, kill re-enterancy
3695 (compare_listener_corbaref, compare_corba_objects),
3696 (compare_listener_quarks): define out.
3697 (impl_accessibility_registry_deregister_global_event_listener):
3698 re-write for effiency, and nail re-enterancy hazard.
3699 (impl_accessibility_registry_get_desktop_list): impl.
3700 (re_enterant_list_delete_link): impl.
3701 (re_enterant_list_foreach): impl.
3702 (remove_listener_cb): impl.
3703 (_registry_notify_listeners): kill.
3704 (notify_listeners_cb): impl.
3706 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
3707 (SPI_getDesktopList): impl.
3709 * test/test-simple.c (test_desktop): test the methods.
3711 2002-01-03 Michael Meeks <michael@ximian.com>
3713 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
3714 keystrings since we free them
3715 (SPI_freeAccessibleKeySet): in here.
3717 * libspi/accessible.c (spi_accessible_new): kill warning,
3718 wonder what is going on with the constructor here.
3720 2002-03-01 Bill Haneman <bill.haneman@sun.com>
3722 * libspi/accessible.c (spi_accessible_new ()) :
3723 Added check to see if AtkObject is an SpiRemoteObject before
3724 creating an SpiAccessible.
3726 2002-05-01 Bill Haneman <bill.haneman@sun.com>
3728 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
3729 Enable keygrabs using the Control modifier, now that they are
3730 working properly (they were previously disabled).
3733 Change the command keygrab for this demo to "Control+Alt", so as
3734 to conflict with fewer other key commands on the system; this
3735 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
3737 Removed a pointlessly-chatty keylistener for unshifted keys
3738 (shifted keys are still reported).
3740 2002-02-01 Bill Haneman <bill.haneman@sun.com>
3742 * libspi/remoteobject.h:
3743 * libspi/remoteobject.c:
3744 Added definitions for special AtkObject subtype, required for
3745 support of remote components (specifically, used by BonoboControl
3746 accessibility implementation).
3748 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
3750 * cspi/spi.h: synched relation types with ATK
3752 * cspi/spi_accessible.c: Added implementations of
3753 AcccessibleRelation_* methods
3755 * idl/Accessibility_Relation.idl: added getRelationTypeName
3756 method. Synched known relation types with ATK. Allowed for
3757 relation type extension with the RELATION_EXTENDED type.
3759 * libspi/relation.c: Provided implementations for
3760 AccessibleRelation methods.
3762 2002-01-01 Bill Haneman <bill.haneman@sun.com>
3764 API tweaks for today's API 'freeze'.
3767 Added placeholder functions to allow future compatible expansion
3768 of the IDL interfaces.
3770 * idl/Accessibility_Registry.idl:
3771 Changed generateKeyEvent to generateKeyboardEvent. Changed
3772 signature of this method to accept an optional keystring in
3773 parameter (for complex text input synthesis) and changed use of
3774 simple 'boolean' parameter in registerKeystrokeListener to a
3775 struct, EventListenerMode.
3777 * cspi/spi_accessible.c:
3779 * cspi/spi_streamablecontent.c:
3780 Added references to AccessibleStreamableContent interface, and
3781 definition and implementation of AccessibleStreamableContent
3784 * cspi/spi_registry.c:
3786 Changed generateKeyEvent API to generateKeyboardEvent,
3787 taking a new (optional) keystring parameter to support complex
3792 Renamed directory (to better reflect its actual purpose, bridging
3793 from at-spi to ATK). The .so module is also now named
3796 * idl/Accessibility_Hypertext.idl:
3797 * libspi/accessible.c:
3798 * libspi/hypertext.h:
3799 * libspi/hypertext.c:
3800 Changed Accessibility_Hypertext to *not* derive from
3803 * cspi/spi_registry.c:
3804 Added list of legal event type names for 'window' events, which
3805 completes the registry event API.
3807 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
3809 * at-bridge/bridge.c: Added registration for separate
3810 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
3811 signals. If either of the first two parameters to the generic
3812 bridge signal handler are ints, they are passed on as event
3813 details. This allows an AT to determine what text was inserted.
3815 2001-12-21 Bill Haneman <bill.haneman@sun.com>
3817 * registryd/deviceeventcontroller.c:
3818 Fixed regressions in generateKeyEvent caused by the removal of
3819 gdk_init from registryd; we now use pure X calls to connect to the
3820 display, which makes sense because deviceeventcontroller already
3821 uses a fair bit of X API (should eventually be migrated to a
3822 'portability layer').
3824 * registryd/desktop.c:
3825 Fixed minor regression in spi_desktop_init, changed the way the
3826 desktop name is being set to work with new spi_base API
3827 (gobject-based, rather than AtkObject-based).
3829 * registryd/Makefile.am:
3830 Minor revision of makefile to use XTST_LIBS variable rather than
3831 hard-wiring the Xtst LD_ADD element.
3833 * test/keysynth-demo.c:
3834 Tweaked an output message; added initialization of the
3835 'keystrings' member of the "switch listener" key_set.
3837 * libspi/relation.c:
3838 Squashed compile-time warning.
3840 * libspi/accessible.c:
3841 Cosmetic and formatting fixes, renamed a static method.
3843 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
3845 * libspi/accessible.c
3847 * libspi/application.c
3850 * libspi/component.c
3851 * libspi/editabletext.c
3852 * libspi/hyperlink.c
3853 * libspi/hypertext.c
3855 * libspi/selection.c
3859 * registryd/desktop.c:
3860 Changed SpiBase to contain a GObject pointer rather than an AtkObject
3862 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3864 * idl/Accessibility_Registry.idl:
3865 Added boolean member 'is_text' to DeviceEvent. This is for the
3866 use of key events, and helps prevent ambiguity between composed
3867 key strings and keysym names, since both may potentially be
3868 returned in the 'event_string' member.
3870 * at-bridge/bridge.c:
3871 * registryd/deviceeventcontroller.c:
3872 Use the 'is_text' member when notifying device event listeners.
3873 Knon issue: composed characters are not dealt with correctly by
3874 the global key listener implementation yet.
3876 2001-12-17 Bill Haneman <bill.haneman@sun.com>
3878 * at-bridge/bridge.c:
3879 Namespaced local static methods to spi_atk_bridge_* where
3880 previously named bridge_*, and spi_* elsewhere.
3882 * at-bridge/bridge.c:
3883 * cspi/bonobo/cspi-bonobo-listener.c:
3884 Added demarshalling/conversion for string member of
3885 Accessibility_DeviceEvent to AccessibleKeystroke.
3887 * registryd/deviceeventcontroller.c:
3888 Added code to fill the Accessibility_DeviceEvent key string value
3889 member for global key events (i.e. from XGrabKey), to match
3890 behavior of Accessibility_DeviceEvent from the toolkit key events
3891 from the bridge. Fixed timestamp in global key event notifications.
3894 Added printout of key event's string value to
3895 report_ordinary_key_event, for demo/debugging purposes.
3897 2001-12-15 Bill Haneman <bill.haneman@sun.com>
3899 * idl/Accessibility_Registry.idl:
3900 Removed Accessibility_KeyStroke structure in favor of generic
3901 Accessibility_DeviceEvent structure.
3902 Changed Accessibility_ControllerEventMask from a struct to an
3905 * at-bridge/bridge.c:
3906 Changed APIs to use DeviceEvent structure as above, and removed
3907 bogus casting between these event structures.
3909 * cspi/spi-listener.h:
3910 Added keystring member of AccessibleKeystroke structure, to enable
3911 matching on event "names" rather than only hardware codes and
3915 Added keystrings member of AccessibleKeySet struct, to allow
3916 matching on event names (as above).
3917 Added declarations for SPI_createAccessibleKeySet and
3918 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
3919 event modmasks directly as unsigned ints rather than structs with
3920 refcounts, in the DeviceEventController methods.
3922 * cspi/spi_registry.c:
3923 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
3925 * cspi/spi-roletypes.h:
3926 Added documentation of newly added SPI Roles.
3928 * cspi/bonobo/cspi-bonobo-listener.c:
3929 Changes in support of API changes above.
3931 * libspi/accessible.c:
3932 Converted APIs to use DeviceEvent structure (see IDL changes
3935 * registryd/deviceeventcontroller.c:
3936 Added DEControllerGrabMask structure to track keygrabs not only by
3937 modmask but by keyset as well; this allows us to do "global"
3938 (i.e. X) keygrabs on a per-key or keyset basis rather than always
3939 grabbing on AnyKey and then filtering after-the-fact.
3940 Bugfixes for event filtration mean that we don't get false matches
3941 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
3943 * registryd/deviceeventcontroller.c:
3944 Namespaced a number of static methods to use spi_ prefix. Major
3945 revision to internals of global (i.e. X) key grabs.
3947 * registryd/deviceeventcontroller.h:
3948 Removed keymask_list and added keygrabs_list to
3949 SpiDeviceEventController struct.
3952 Added use of SPI_createAccessibleKeySet API when creating a
3953 listener for only one key. Attach a listener to "shift spacebar
3954 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
3955 X key event names to SPI key event names, so that listeners are
3956 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
3958 * test/keysynth-demo.c:
3959 Changed (incorrect) use of X key event names (KeyPressed,
3960 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
3963 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3965 * libspi/accessible.c:
3966 Convert all AtkRole enumerations to Accessibility_Role enums when
3967 getting a role from an AtkObject.
3969 * cspi/spi_accessible.c:
3970 Complete the conversion of Accessibility_Role enums at runtime to
3971 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
3972 role enums correctly match those given in spi-roletypes.h.
3973 Re-synchronize the local names list for AccessibleRole_getName ().
3974 AccessibleRole_getName is now deprecated, since it duplicates the
3975 more reliable Accessible_getRoleName.
3976 Added some role types from Accessibility_Role.idl.
3978 * idl/Accessibility_Role.idl:
3979 Added some role types used by AtkRole.
3981 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3984 * cspi/spi_registry.c:
3986 * cspi/cspi-bonobo-listener.c:
3987 Namespaced all methods that did not begin with an "SPI_" or
3988 "Accessible" prefix to "SPI_".
3991 Homogenized internal function namespace to "cspi_" for statics.
3994 Patched tests to use the new CSPI API.
3996 * docs/reference/cspi/at-spi-cspi-sections.txt:
3997 Updated docs to reflect namespace changes, and added a number of
3998 methods to the documentation.
4000 * registryd/registry.c:
4001 Changed use of strings and string hashes in listener event
4002 matching and parse_event_string to use GQuark, which is guaranteed
4005 * registryd/registry.h:
4006 Squashed annoying warning.
4008 * idl/Accessibility_Role.idl:
4009 Extended range of available Accessibility_Role values.
4011 * cspi/spi_accessible.c:
4012 Re-ordered role names.
4014 2001-12-12 Bill Haneman <bill.haneman@sun.com>
4016 * idl/Accessibility_Value.idl:
4017 Revert use of union back to CORBA_double, since the double type is
4018 more efficient and can contain the other types without loss of
4021 * idl/Accessibility_Accessible.idl:
4022 Added method Accessibility:Accessible:getRoleName, to complement
4023 Accessibility:Accessible:getRole.
4025 * cspi/spi_accessible.c:
4027 Added C binding for above, Accessible_getRoleName (), and changed
4028 signature of Accessible_getRole () to return an AccessibleRole.
4030 * cspi/spi-roletypes.h:
4031 Changed AccessibleRole_getName to return a char * instead of a
4032 const char *. This method is now at least temporarily deprecated
4033 in favor of asking Accessibles for their RoleNames directly.
4036 Revert to match Accessibility_Value.idl;
4040 Change signature of AccessibleValue methods to use double rather
4044 * cspi/spi_accessible.c:
4045 Changed Accessible_getRole to return an AccessibleRole enum rather
4046 than a UTF-8 string. The UTF-8 string can still be obtained via
4047 AccessibleRole_getName ().
4049 * test/test-simple.c:
4050 Add test_action. Small fixup to match API change to Accessible_getRole.
4053 Bugfix for get_action_from_servant ().
4055 2001-12-11 Michael Meeks <michael@ximian.com>
4057 * libspi/libspi.h: remove registry.h and
4058 desktop.h, deviceeventcontroller.h
4060 * libspi/Makefile.am: remove registry.[ch],
4061 desktop.[ch], deviceeventcontroller.[ch]
4063 * registryd/Makefile.am: add registry.[ch],
4064 desktop.[ch], rename registryd.c to registry-main.c.
4065 add deviceeventcontroller.[ch]
4067 2001-12-11 Bill Haneman <bill.haneman@sun.com>
4070 Replace setenv() call with putenv ().
4072 * libspi/component.c:
4073 Bugfix in AccessibleComponent_getExtents (),
4076 2001-12-11 Michael Meeks <michael@ximian.com>
4078 * libspi/image.c (impl_getImageExtents): impl.
4079 (spi_image_class_init): upd.
4082 (AccessibleImage_getImageDescription): fix daft bug
4085 * test/test-simple.c (global_listener_cb): update
4086 to only quit if not --poke
4087 (main): catch --poke.
4088 (validate_accessible): upd. dumping, call test_image
4091 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
4094 * idl/Accessibility.idl: update all IDL includes.
4096 * idl/*.idl - rename to namespace - this sucks, blame
4097 mjs' bad decision for oafd.
4099 * test/test-simple.c (create_test_window): add more tests.
4100 (create_tree): split this out.
4101 (validate_accessible): bugfix.
4103 2001-12-11 Michael Meeks <michael@ximian.com>
4105 * cspi/bonobo/cspi-bonobo-listener.c:
4106 (cspi_kestroke_listener_unref),
4107 (cspi_event_listener_unref): impl. undoing previous
4108 homenous environment - for Bill.
4110 * cspi/spi_table.c (long_seq_to_array): use
4113 * cspi/spi_main.c: split out all bonoboish bits into
4116 * cspi/spi-impl.h: upd. typedefs.
4118 * cspi/spi_registry.c: update to lowlevel API,
4119 return booleans to indicate success in some places.
4121 * cspi/spi_event.c: update to lowlevel API.
4123 * cspi/bonobo/Makefile.am: add.
4125 * cspi/bonobo/cspi-lowlevel.h: add
4127 * cspi/bonobo/cspi-bonobo.c: add
4129 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
4131 * cspi/Makefile.am: remove spi-listener-impl.[ch],
4132 (SUBDIRS): add bonobo, link in the libs.
4134 * cspi/spi-util.c: kill this file.
4136 * TODO: merge in my bits.
4138 2001-12-11 Michael Meeks <michael@ximian.com>
4140 * test/test-simple.c (test_value, test_table, main):
4141 remove unused variables causing warnings.
4143 * configure.in: cleanup checks - require gail.
4145 2001-12-11 Bill Haneman <bill.haneman@sun.com>
4148 Changed Value interface to use SValue (scalars) rather than
4149 assuming all values are floats. This allows floats, doubles,
4150 longs, shorts, and unsigned values to be manipulated.
4151 Introduced Accessibility:SValue union.
4154 Updated to use new API above, and to work correctly with GValues
4155 of different types in AtkValue.
4158 Updated to use new API above. cspi's API is as yet unchanged.
4161 Updated the Value revision action item.
4163 2001-12-10 Bill Haneman <bill.haneman@sun.com>
4165 * test/test-simple.c:
4166 Added test_table (GtkTreeView widget in test window to follow).
4167 Un-commented test_value, added GtkRange widget.
4168 Added GtkTreeView widget with GtkListStore. It passes regression
4169 test but leaks one SPI object for some reason.
4172 Fixed bug in impl__set_currentValue.
4174 2001-12-10 Michael Meeks <michael@ximian.com>
4176 * cspi/spi_text.c: audit for exception handling,
4177 tolerating NULL object references safely etc.
4179 * cspi/spi_value.c: ditto.
4181 * cspi/spi_table.c (AccessibleTable_getSummary),
4182 (AccessibleTable_getAccessibleAt),
4183 (AccessibleTable_getRowHeader),
4184 (AccessibleTable_getColumnHeader),
4185 (AccessibleTable_getCaption): fix bugs hidden by
4187 (long_seq_to_array): impl.
4188 (AccessibleTable_getSelectedRows),
4189 (AccessibleTable_getSelectedColumns): use it.
4191 2001-12-10 Bill Haneman <bill.haneman@sun.com>
4194 Added a TODO list (rough and short for now).
4196 * cspi/spi_hyperlink.c:
4197 * cspi/spi_hypertext.c:
4198 Fixed macro name typos, and remove use of obsolete macro in
4199 AccessibleHyperlink_getLink.
4201 * cspi/spi_action.c:
4202 * cspi/spi_accessible.c:
4203 * cspi/spi_application.c:
4204 * cspi/spi_component.c:
4205 * cspi/spi_selection.c:
4208 Documentation fixes (removed return values from ref/unref methods).
4210 2001-12-10 Michael Meeks <michael@ximian.com>
4212 * cspi/spi_action.c: audit for exception handling,
4213 tolerating NULL object references safely etc.
4215 * cspi/spi_accessible.c: ditto.
4217 * cspi/spi_component.c: ditto.
4219 * cspi/spi_editabletext.c: ditto.
4221 * cspi/spi_hyperlink.c: ditto.
4223 * cspi/spi_hypertext.c: ditto.
4225 * cspi/spi_image.c: ditto.
4227 * cspi/spi_selection.c: ditto.
4229 2001-12-10 Michael Meeks <michael@ximian.com>
4231 * configure.in: use cspi/libspi.pc.in instead.
4233 * Makefile.am (pkgconfig_DATA): upd. to match.
4235 * test/simple-at.c (report_focus_event): kill hacks around
4236 bad return values, use putenv not setenv
4238 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
4239 fire ChildGone - I killed it.
4241 * libspi/component.c
4242 (impl_accessibility_component_get_extents): remove
4245 * idl/Accessible.idl: kill ChildGone exception.
4247 * cspi/*.[ch]: kill int return from ref / unref.
4249 * cspi/spi_main.c (cspi_object_add_check): fold into
4250 (cspi_object_add): here.
4252 * cspi/spi_component.c (AccessibleComponent_getExtents):
4253 handle exceptions elegantly.
4255 * cspi/spi-private.h (cspi_check_ev_return),
4256 (cspi_return_if_fail): impl.
4258 * cspi/spi_accessible.c: use extensively.
4259 (AccessibleStateSet_equals): add direct compare check.
4261 * cspi/spi_selection.c: tolerate NULL objs, and check
4262 exceptions before return.
4264 * cspi/spi-util.c (cspi_warn_ev): rename to
4265 (cspi_check_ev): this & don't pass ev in; no point.
4267 2001-12-10 Michael Meeks <michael@ximian.com>
4269 * test/test-simple.c: use putenv not setenv
4270 (get_environment_vars): more chatty if you're not using
4273 * test/simple-at.c: do the setenv so more people see the
4276 2001-12-10 Bill Haneman <bill.haneman@sun.com>
4278 * libspi/registry.c:
4279 Changed check of CORBA_environment on notification to be a warning
4280 instead of an error for the moment, since we can recover from this
4281 error when caused by a queued notification from a dead app.
4284 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
4285 used by all current implementors of AtkValue), and coerce to
4286 CORBA_float. (Proper general case fix may require change to Value.idl).
4288 2001-12-09 Bill Haneman <bill.haneman@sun.com>
4292 * cspi/spi_accessible.c:
4293 Documentation fixes: added user_data params to documentation for
4294 listeners and callbacks.
4296 * cspi/spi_accessible.c:
4297 Changed AccessibleStateSet_compare to return a
4298 StateSet rather than return the difference set into a third parameter.
4301 2001-12-09 Bill Haneman <bill.haneman@sun.com>
4304 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
4305 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
4309 Remove subdirectory po from SUBDIRS for now.
4311 * at-bridge/bridge.c:
4312 Beefed up a couple of debug printouts.
4313 One-line fix for signal notification name formatting.
4315 * libspi/accessible.c:
4316 Added assertion to spi_accessible_new ().
4318 * libspi/application.c:
4319 Put #ifdef qualifiers around a printf.
4322 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
4324 * registryd/Makefile.am:
4326 Replaces use of XML_I18N_MERGE_SERVER_RULE with
4327 INTLTOOL_SERVER_RULE macro.
4330 Added an event listener for several ATK signals, for
4331 testing and debugging. Removed a few g_warnings.
4332 Added test output if focussed item implements the Value interface.
4334 * test/test-simple.c:
4335 Added test_value () function (known not to pass at the moment, so
4336 not actually called yet.
4338 2001-12-08 Michael Meeks <michael@ximian.com>
4340 * at-bridge/bridge.c (bridge_focus_tracker),
4341 (emit_eventv): fix the same ref. leak.
4342 (register_atk_event_listeners): don't leak.
4344 * cspi/spi-listener-impl.c (cspi_event): more
4345 protection from client code.
4347 * test/test-simple.c (test_desktop): unref the app.
4349 * test/Makefile.am: upd. TESTS.
4351 * at-bridge/bridge.c (bridge_exit_func): release the registry.
4353 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
4355 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
4357 * cspi/spi_registry.c: constify in strings.
4358 (deregisterGlobalEventListenerAll): don't release the ref.
4360 * cspi/spi.h: start removing redundant / conflicting
4361 gtkdoc comments, making the API readable at a glance :-)
4363 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
4365 * test/keysynth-demo.c (keysynth_exit, main): upd.
4367 * test/simple-at.c (main, simple_at_exit): upd.
4369 * test/test-simple.c (unutterable_horror): kill.
4370 (utterable_normal_derefs): kill.
4371 (main): upd & do a setenv before gtk_init, so that we
4372 can use memprof - and to save the pain of remembering
4373 this, if we're running under memprof - don't exit.
4375 * cspi/spi_main.c (SPI_exit): return exit status
4377 (SPI_event_quit): impl.
4378 (SPI_event_main): simplify.
4379 (cspi_is_gnome_app): kill.
4380 (SPI_init): kill isGNOMEapp arg.
4382 * at-bridge/bridge.c (register_atk_event_listeners):
4383 re-instate the unref.
4384 (bridge_exit_func): don't re-activate the registry,
4385 protect vs. theoretical re-entry, use the
4386 AT_BRIDGE_SHUTDOWN env. var to determine whether to
4387 assert a clean shutdown - for regression tests.
4389 2001-12-08 Abel Cheung <maddog@linux.org.hk>
4391 * configure.in: Comment out dummy i18n support for now,
4392 otherwise it fails to build.
4393 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
4394 EXTRA_DIST. They are missing in tarball.
4396 2001-12-07 Michael Meeks <michael@ximian.com>
4398 * util/magnifier.c: kill bonobo activation reg. race.
4400 * libspi/component.c
4401 (impl_accessibility_component_get_extents): make it match
4404 * libspi/registry.c (_registry_notify_listeners):
4405 re-remove X headers & reconcile conflicts.
4406 (spi_listener_struct_free): bad conflict resolve.
4407 (impl_accessibility_registry_register_application):
4408 more bad merging fixed.
4409 (impl_accessibility_registry_deregister_application): ditto.
4410 (spi_registry_new): ditto.
4411 (spi_registry_init): don't have an applications field.
4413 [ merge fixups2 branch to here ]
4414 2001-12-07 Michael Meeks <michael@ximian.com>
4416 * test/simple-at.c (report_focus_event),
4417 (report_focussed_accessible): remove g_warning debug.
4419 2001-12-07 Michael Meeks <michael@ximian.com>
4421 * test/test-simple.c (validate_tree): comment out some checks.
4422 (test_desktop): app now not registered idly - horay.
4424 2001-12-07 Michael Meeks <michael@ximian.com>
4426 * cspi/spi_registry.c
4427 (registerAccessibleKeystrokeListener): clean, stop it leaking
4428 great swathes of memory, and device event controller references.
4429 ensure we always pass valid sequences.
4430 (deregisterAccessibleKeystrokeListener): ditto.
4431 (generateKeyEvent): upd.
4433 * at-bridge/bridge.c (bridge_key_listener): handle
4434 registry dead exception gracefully.
4435 (bridge_focus_tracker, emit_eventv): free ev.
4437 * test/simple-at.c (report_focus_event): fix polarity.
4439 * libspi/application.c (notify_listeners): kill the ev
4440 argument, and make sure we init the ev we use.
4441 (spi_application_object_event_listener): split out a chunk
4442 (get_atk_object_ref): here & fixup.
4443 (reverse_lookup_name_for_toolkit_event): make const.
4444 (spi_application_toolkit_event_listener): fixup, kill leaks
4447 * at-bridge/bridge.c (register_atk_event_listeners):
4448 don't unref the noop object - causes grief.
4450 * libspi/registry.c: remove the X headers.
4451 turn off the debug churn.
4453 * libspi/accessible.c (spi_accessible_new_return): only
4454 release the ref if we are supposed to [doh]
4456 * test/simple-at.c (report_button_press, report_focus_event):
4457 guard vs. unexpected exit.
4459 * at-bridge/bridge.c (gtk_module_init): prune printf.
4460 (bridge_exit_func): fix app unref.
4462 * libspi/Makefile.am: don't install registry or desktop.h
4464 * libspi/*.h: update includes.
4466 * libspi/application.h: don't include ourself, or
4467 other redundant headers.
4469 2001-12-06 Michael Meeks <michael@ximian.com>
4471 * libspi/accessible.c
4472 (get_accessible_from_servant): impl.
4473 Upd. all CORBA impl.s to use it killing cut and paste.
4475 * cspi/spi_main.c (cspi_cleanup): guard vs. double
4477 (SPI_init): register atexit cleanup handler here.
4479 2001-12-06 Michael Meeks <michael@ximian.com>
4481 * at-bridge/bridge.c (gtk_module_init): g_error on
4482 activation exception
4484 2001-12-06 Michael Meeks <michael@ximian.com>
4486 * at-bridge/bridge.c (gtk_module_init): some sort of
4487 confusing merge clash - reverted.
4488 (bridge_idle_init): ditto.
4490 * test/test-simple.c (main, utterable_normal_derefs):
4491 merge from Bill - somehow not committed.
4493 2001-12-06 Michael Meeks <michael@ximian.com>
4495 * libspi/value.c (spi_value_class_init): upd.
4496 (spi_value_finalize): kill.
4498 * libspi/table.c (spi_table_finalize): kill.
4499 (spi_table_interface_new): upd.
4500 (spi_table_class_init): upd.
4501 (get_table_from_servant): impl.
4502 Upd. all CORBA impl.s to use it killing yet more cut and paste.
4504 * libspi/selection.c (spi_selection_finalize): kill.
4505 (spi_selection_interface_new): upd.
4506 (spi_selection_class_init): upd.
4507 (get_selection_from_servant): impl.
4508 Upd. all CORBA impl.s to use it killing yet more cut and paste.
4510 * libspi/relation.c (spi_relation_finalize): kill.
4511 (spi_relation_class_init, spi_relation_new): upd
4513 * libspi/image.c (spi_image_finalize): kill.
4514 (spi_image_class_init): upd.
4515 (spi_image_interface_new): upd.
4516 (get_image_from_servant): impl.
4517 Upd. all CORBA impl.s to use it killing yet more cut and paste.
4519 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
4520 (spi_hyperlink_finalize): kill.
4521 (spi_hyperlink_new): upd.
4522 (get_hyperlink_from_servant): impl.
4523 Upd. all CORBA impl.s to use it killing yet more cut and paste.
4525 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
4526 (spi_hypertext_finalize): kill.
4527 (spi_hypertext_class_init): upd.
4528 (get_hypertext_from_servant): impl.
4529 Upd. all CORBA impl.s to use it killing yet more cut and paste.
4531 * libspi/editabletext.c (spi_editable_text_finalize): kill.
4532 (spi_editable_text_interface_new): upd.
4533 (get_editable_text_from_servant): impl.
4534 Upd. all CORBA impl.s to use it killing yet more cut and paste.
4536 * libspi/text.c (get_text_from_servant): impl.
4537 All impls - update to use it killing more cut and paste,
4538 also fix bad string returns on duff args ( a somewhat
4539 impossible case to handle - but hey ).
4540 (spi_text_construct): impl.
4541 (spi_text_interface_new): upd.
4542 (spi_text_object_finalize): kill.
4544 * libspi/component.c
4545 (accessibility_component_object_finalize): kill.
4546 (spi_component_class_init): upd.
4547 (get_component_from_servant): impl. helper to kill cut & paste.
4548 (impl_accessibility_component_contains):
4549 (impl_accessibility_component_get_accessible_at_point):
4550 (impl_accessibility_component_get_position):
4551 (impl_accessibility_component_get_extents):
4552 (impl_accessibility_component_get_mdi_z_order):
4553 (impl_accessibility_component_get_layer):
4554 (spi_component_interface_new): upd.
4556 * libspi/action.c (spi_action_finalize): kill.
4557 (spi_action_class_init): upd. inherit from SpiObject.
4558 (spi_action_interface_new): upd.
4559 (get_action_from_servant): impl. helper to reduce cut & paste.
4560 (impl_getKeyBinding, impl_getName, impl_doAction),
4561 (impl_getDescription): Use it everywhere.
4563 * cspi/spi_main.c (get_live_refs): a pointer hash.
4564 (spi_object_hash, spi_object_equal): comment out.
4565 There are issues with CORBA object hashing that need
4568 * libspi/application.c (spi_application_init),
4569 (spi_application_new): upd.
4571 * libspi/accessible.c (spi_accessible_object_finalize): kill.
4572 (spi_accessible_class_init): upd.
4573 s/accessible/object/ in epv methods.
4575 2001-12-05 Bill Haneman <bill.haneman@sun.com>
4577 * at-bridge/bridge.c:
4578 Reorder the bridge initialization into the bridge gtk_module_init,
4579 an immediate call to bridge_register_app, and an idle_add for
4580 register_atk_event_listeners (the only code that *must* wait until
4581 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
4582 the activation, creates the application's Accessible object, and
4583 queues the bridge_idle_init function. Restored call to
4584 Accessibility_Registry_deregisterApplication().
4585 Prior to making this call we obtain a new reference to the
4586 registry, which is a temporary hack that helps us handle apps that
4587 shut down the bonobo mainloop before we get there.
4589 * libspi/registry.c:
4590 Fix string leakage in debug block, and don't segv if a an app
4591 dies before its event notifications have been propagated.
4594 Modify cspi_check_ev() to call g_warning() rather than g_error(),
4595 as stopgap measure until we get proper exception handling when
4596 objects die during or before interrogation.
4600 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
4601 Also changed default value of is_gnome_app to TRUE.
4604 * test/keysynth-demo.c:
4605 Changed use of SPI_init and SPI_event_main to reflect API change above.
4608 Made report_focus_event check the warning value from getName
4609 before reporting on focussed accessible; simplifies handling of
4610 notifications from dead objects.
4612 * test/test-simple.c: (Changes not in this patch since source is
4615 2001-12-05 Michael Meeks <michael@ximian.com>
4617 * registryd/registryd.c (main): protect against
4618 bonobo-activation startup race condition.
4620 * cspi/spi_main.c (cspi_object_add_check): cope
4621 with the exception elegantly.
4623 * idl/Accessible.idl: decl. ChildGone
4625 * libspi/desktop.c (spi_desktop_dispose): impl.
4626 (spi_desktop_class_init): upd.
4627 (spi_desktop_add_application),
4628 (spi_desktop_remove_application),
4629 (abnormal_application_termination): impl.
4630 (impl_desktop_get_child_at_index): re-impl.
4633 (impl_accessibility_registry_deregister_application),
4634 (impl_accessibility_registry_register_application):
4635 kill excessive debug clutter.
4637 * test/test-simple.c (test_misc): test some NULL
4638 tolerance. (main): upd.
4640 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
4641 implements no interfaces - so let's not crash.
4643 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
4645 * libspi/accessible.c (spi_accessible_new_return): impl.
4646 helper to calm the cut and paste, to cope with
4647 NULL AtkObjects effectively and efficiently, and to kill
4648 the referencing bugs.
4650 * libspi/table.c (impl_getAccessibleAt),
4651 (impl_getRowHeader, impl_getColumnHeader): upd.
4653 * libspi/hyperlink.c (impl_getObject): upd.
4655 * libspi/accessible.c
4656 (impl_accessibility_accessible_get_child_at_index): upd.
4658 * libspi/component.c
4659 (impl_accessibility_component_get_accessible_at_point): upd.
4661 * test/test-simple.c (test_editable_text, test_text): impl.
4664 * cspi/spi_editabletext.c
4665 (AccessibleEditableText_insertText): constify.
4667 * test/test-simple.c (focus_me): make more robust.
4669 * libspi/accessible.c: remove some printfs in methods that
4670 we test and work fine, so we can get a clean tree dump.
4672 * test/test-simple.c (validate_accessible),
4673 (validate_tree): make tree dumping pretty too.
4675 * at-bridge/bridge.c (bridge_signal_listener): upd. so
4676 it builds without debug on.
4678 * test/test-simple.c (validate_accessible): fix the most
4681 * cspi/spi_main.c (spi_object_release): leave the nicely
4682 blanked memory around if in debug mode.
4684 * cspi/spi-listener-impl.c (cspi_event): use add_check.
4686 [committed to fixups2]
4687 2001-12-05 Michael Meeks <michael@ximian.com>
4689 * libspi/editabletext.c
4690 (spi_editable_text_class_init): g_type_class_peek_parent,
4691 not interface peek - so we finalize cleanly.
4693 * libspi/accessible.c (spi_accessible_new): kill debug.
4695 * test/test-simple.c (validate_accessible): fix ref.
4696 leak, print strings before freeing them; sigh, comment a
4697 chunk out due to strangeness.
4698 (validate_tree): unref the child after use.
4700 * cspi/spi_component.c (AccessibleComponent_getLayer):
4701 add missing break statement, switch on zlayer not the
4702 uninitialized retval.
4704 * cspi/spi_main.c (cspi_object_add): add assert, local ref
4705 before (possibly re-entering) remote unref.
4707 * test/simple-at.c (main): unref the desktop.
4709 * cspi/spi_accessible.c (cspi_accessible_is_a): move
4712 * cspi/spi_main.c (cspi_accessible_is_a): here to
4713 isolate bonobo API usage more.
4715 * libspi/registry.c (impl_accessibility_registry_register_application):
4716 prune bogus comment.
4718 2001-12-04 Michael Meeks <michael@ximian.com>
4720 * test/test-simple.c (validate_tree): upd.
4721 IndexInParent check to make it more lucid.
4722 (validate_accessible): dump the tree.
4724 * libspi/accessible.c (de_register_public_ref),
4725 (get_public_refs): impl.
4726 (spi_accessible_new): make more efficient & intuitive.
4727 Now IndexInParent check works.
4729 2001-12-04 Michael Meeks <michael@ximian.com>
4731 * cspi/spi-util.h: remove.
4733 * cspi/spi.h: move SPI_freeString here
4735 * libspi/component.c (impl_accessibility_component_get_layer):
4737 (impl_accessibility_component_get_mdi_z_order): ditto,
4738 return -1 on error - is this ok ?
4740 * test/test-simple.c (test_application): impl.
4742 * cspi/spi_accessible.c (Accessible_getApplication),
4743 (Accessible_isApplication): impl.
4745 * libspi/registry.c (spi_listener_struct_free): release
4746 the CORBA reference too.
4748 * libspi/accessible.c
4749 (impl_accessibility_accessible_get_parent): fix ref leak.
4751 * libspi/registry.c (spi_registry_new): make the registry
4752 immortal - we don't want it to go away ever.
4754 * libspi/application.c
4755 (spi_accessible_application_finalize): impl. cleanup.
4757 * cspi/spi_registry.c
4758 (deregisterGlobalEventListenerAll),
4759 (deregisterGlobalEventListener),
4760 (deregisterAccessibleKeystrokeListener): fix ref leak.
4762 * cspi/spi_main.c (SPI_init): remove redundant ref.
4764 * test/test-simple.c (unutterable_horror): impl. to force a
4769 (impl_accessibility_registry_deregister_application): release
4770 the application when we de-register it.
4772 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
4773 until we have the infastructure to get it right.
4775 2001-12-03 Michael Meeks <michael@ximian.com>
4777 * libspi/Makefile.am: only build eventlistener.[ch]
4779 * libspi/accessible.c
4780 (impl_accessibility_accessible_get_child_at_index): don't leak.
4782 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
4783 before we hit the idle handler.
4785 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
4786 debugging than exit.
4788 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
4790 * libspi/listener.c (impl_notify_event): check source
4791 not NIL before unref.
4793 * libspi/registry.c (impl_registry_notify_event): ditto.
4795 * libspi/eventlistener.c
4796 (impl_accessible_event_notify_event): unref the source.
4798 * libspi/accessibleeventlistener.c
4799 (impl_accessible_event_notify_event): unref the source.
4801 * idl/Event.idl: remove 'hash_id' attribute - of no
4804 * libspi/application.c (notify_listeners): upd list
4806 (spi_application_object_event_listener),
4807 (spi_application_toolkit_event_listener): upd to do correct
4811 (_registry_notify_listeners): update.
4812 (parse_event_type): this method also leaks like a sieve.
4813 (impl_accessibility_registry_deregister_global_event_listener):
4814 fix ETYPE_WINDOW case.
4816 * libspi/application.c
4817 (impl_accessibility_application_register_object_event_listener):
4820 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
4822 * libspi/hypertext.c (impl_getLink): ditto.
4824 * cspi/spi_main.c (cspi_object_add): remove
4825 bogus CORBA_Object_duplicate.
4827 * cspi/spi-listener-impl.c (cspi_event): dup/ref
4830 * cspi/spi_accessible.c
4831 (Accessible_getRelationSet): fix leak / referencing issue.
4833 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
4834 (cspi_object_add, cspi_object_unref): upd.
4835 (spi_object_release, get_live_refs): impl.
4836 (cspi_cleanup): simplify.
4838 * *.[ch]: s/boolean/SpiBoolean/
4840 * cspi/spi_accessible.c (role_names): actualy order so it
4841 corresponds with the enum !
4843 * test/test-simple.c (test_roles): check some role strings
4844 vs. enums to detect offset errors.
4846 2001-12-01 Michael Meeks <michael@ximian.com>
4848 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
4850 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
4852 (Accessible_getChildAtIndex): use cspi_add_check so we
4853 check the ev before using a (possibly) invalid value.
4855 * libspi/accessible.c
4856 (impl_accessibility_accessible_get_parent): don't segv
4859 * at-bridge/bridge.c (gtk_module_init): upd.
4860 (bridge_property_event_listener): don't leak strings
4862 (bridge_state_event_listener),
4863 (bridge_property_event_listener): don't use a static
4864 buffer in case of recursive event emission &
4865 re-enterancy - split out the swathe of cut and paste
4867 (emit_eventv): and fix 2 ref leaks here & comply to the
4869 (bridge_register_app): rename to
4870 (bridge_idle_init): this and kill arg parsing, split
4871 various inits & bonobo-activation registration to module
4872 init time, kill referencing error.
4873 (bridge_exit_func): fix the same leak.
4874 (bridge_focus_tracker): don't leak event structures
4876 (bridge_signal_listener): more leakage and cut & paste
4878 (bridge_key_listener): return the result - FIXME is
4879 this polarity correct ?
4880 (accessibility_keystroke_from_atk_key_event): rename
4881 (accessibility_init_keystroke_from_atk_key_event): and stop
4883 (gtk_module_init): return a value - not that it is checked by
4885 (bridge_key_listener): register my horror at casting between
4886 IDL defined structs.
4887 (bridge_get_registry): kill - not used.
4889 * cspi/spi_accessible.c (Accessible_getRole): make return const.
4891 * test/test-simple.c (test_roles): impl.
4892 (test_desktop, validate_accessible, validate_tree): impl.
4894 * cspi/spi_accessible.c (role_names): fixup bogus
4895 MAX_ROLES setup, make constants const for efficient linkage
4896 (AccessibleRole_getName): conform to coding style, make
4899 2001-11-30 Michael Meeks <michael@ximian.com>
4901 * cspi/spi.h: add missing prototype.
4903 * libspi/registry.c (spi_listener_struct_new): fix sig.
4905 * test/Makefile.am: add test-simple
4907 * test/test-simple.c: add
4909 * test/test.sh: add.
4911 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
4913 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
4914 do it straight - since otherwise we often get an activation race.
4916 [ work before Bill duplicated a chunk of it ... ]
4917 2001-11-30 Michael Meeks <michael@ximian.com>
4919 * libspi/keystrokelistener.c
4920 (spi_keystroke_listener_class_init): fixup arg
4923 * libspi/eventlistener.c
4924 (spi_event_listener_class_init): ditto.
4926 * tests/test.sh: add.
4928 * cspi/spi-listener-impl.h: update macros.
4930 * cspi/spi-listener-impl.c
4931 (cspi_event_listener_remove_callback): add
4932 correct pre-conditions.
4934 * cspi/spi_main.c (SPI_exit): guard vs. double
4935 exits, exit the mainloop nicely.
4936 (SPI_event_main): make more sense.
4937 (SPI_init): move the atexit evilness here so we
4938 always do it (yuck).
4939 (SPI_event_main): upd.
4941 * test/simple-at.c: update for listener changes.
4943 * registryd/registryd.c (main): prune kruft.
4945 * libspi/libspi.h: upd.
4947 * libspi/eventlistener.[ch]: rename broken macros.
4949 * libspi/accessibleeventlistener.[ch]: remove.
4951 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
4953 * test/test-simple.c: Add - automated tests.
4955 * cspi/spi-listener-impl.c (cspi_event),
4956 (cspi_key_event): add user_data to invoke.
4957 (cspi_keystroke_listener_finalize): impl.
4958 (cspi_keystroke_listener_class_init): upd.
4961 (createAccessibleEventListener),
4962 (AccessibleEventListener_addCallback),
4963 (createAccessibleKeystrokeListener),
4964 (AccessibleKeystrokeListener_addCallback): upd.
4966 * libspi/deviceeventcontroller.c
4967 (spi_device_event_controller_check_key_event): add public proto.
4970 (impl_accessibility_registry_deregister_global_event_listener):
4971 always init listeners.
4972 (_registry_notify_listeners): yes it is.
4974 * cspi/spi-listener-impl.c (cspi_key_event):
4976 (cspi_event_listener_finalize): impl.
4977 (cspi_event_listener_class_init): hook up.
4978 (event_handler_new, event_handler_free),
4979 (event_list_remove_by_callback): impl.
4980 (cspi_event_listener_remove_callback),
4981 (cspi_keystroke_listener_remove_callback),
4982 (cspi_keystroke_listener_add_callback),
4983 (cspi_event_listener_add_callback): upd.
4985 * libspi/keystrokelistener.c
4986 (keystroke_listener_object_finalize): kill
4987 (spi_keystroke_listener_class_init): upd.
4988 (spi_keystroke_listener_add_callback),
4989 (spi_keystroke_listener_remove_callback): kill,
4991 (impl_key_event): prune drasticaly.
4993 * libspi/eventlistener.c
4994 (spi_event_listener_add_callback),
4995 (spi_event_listener_remove_callback): kill, use
4997 (impl_accessible_event_notify_event): upd.
4998 (spi_event_listener_object_finalize): remove.
5000 * libspi/Makefile.am: use eventlistener.[ch]
5002 2001-12-04 Bill Haneman <bill.haneman@sun.com>
5004 * libspi/registry.c (_registry_notify_listeners):
5005 Changed listener loop iteration to use preferred convention.
5006 Got rid of string memory leaks caused be calling g_strconcat
5007 inside function calls.
5009 * libspi/registry.c (parse_event_type):
5010 Stopped g_strconcat memory leaks, free the g_strsplit return,
5011 g_strdup the split pieces when used, etc.
5013 2001-12-04 Bill Haneman <bill.haneman@sun.com>
5016 Change method 'compare' to return a 'difference set' rather than
5017 taking a StateSet as an out parameter (more Java-friendly).
5019 * idl/Accessible.idl:
5020 Added CORBA struct 'BoundingBox', to faciliate API changes below:
5022 * idl/Component.idl:
5024 Changed methods 'getExtents' and 'getImageExtents' in these
5025 interfaces to return a BoundingBox structure.
5026 (getPosition and getSize are redundant and possibly should be
5027 removed, rather than creating a corresponding Point struct.)
5029 * cspi/spi_component.c:
5030 Modify implementation of getExtents to reflect the above IDL
5035 Add (missing) AccessibleImage_getExtents () API.
5037 * docs/reference/cspi/at-spi-cspi-sections.txt:
5038 Added AccessibleImage_getImageExtents () to docs.
5040 2001-12-03 Bill Haneman <bill.haneman@sun.com>
5042 * idl/Component.idl:
5043 Added two methods, getLayer () and getMDIZOrder (), to reflect
5044 the new ATK methods atk_object_get_layer and
5045 atk_object_get_mdi_z_order. (Which arguably should be part of the
5046 AtkComponent API and AtkObject). Also added an enum,
5047 ComponentLayer, for the first method's return value.
5049 * libspi/component.c:
5050 Added implementations for these methods.
5052 * cspi/spi_component.c:
5054 Added cspi binding methods for above,
5055 AccessibleComponent_getLayer() and
5056 AccessibleComponent_getMDIZOrder().
5057 Added cspi enum 'AccessibleComponentLayer'.
5059 * docs/reference/cspi/at-spi-cspi-sections.txt:
5060 Added above methods to docs.
5064 Changed typedef for 'boolean' type (and all references to it) to
5065 SPIBoolean, to avoid keyword clashes with C++.
5068 Changed usages of 'boolean' to SPIBoolean.
5070 * test/keysynth-demo.c:
5071 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
5072 app), except where SPIBoolean is required by the callbacks API.
5074 2001-12-02 Bill Haneman <bill.haneman@sun.com>
5076 * cspi/spi_registry.c:
5077 Removed obsolete X event loop for passive keygrabs (which now
5080 * registryd/registryd.c:
5081 Removed unnecessary call to gdk_init() [cruft]. This also allows
5082 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
5085 2001-11-28 Bill Haneman <bill.haneman@sun.com>
5087 * docs/reference/cspi:
5088 Included docs for SPI_freeString in generated documentation.
5091 Renamed spi_freeString to SPI_freeString, for consistency. Added
5092 documentation for this function.
5095 Renamed spi_freeString to SPI_freeString, for consistency.
5096 Removed obsolete method declaration string_from_corba_string.
5098 * test/keysynth-demo.c:
5099 Small tweak to comments.
5102 Stopped leaking the strings returned from CSPI.
5104 2001-11-28 Bill Haneman <bill.haneman@sun.com>
5106 Merged Michael's branch (see his ChangeLog entries below).
5108 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
5109 bridge is alive, release on exit.
5111 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
5112 Fix type check macro.
5115 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
5118 Added is_gnome_app static, and method cspi_is_gnome_app(),
5119 so we can call the appropriate shutdown routine at exit in SPI_exit.
5121 * cspi/spi_main.c (cspi_object_ref):
5122 Duplicate the corba object passed in, since we're keeping it around.
5124 * cspi/SPI_exit.c, cspi_cleanup:
5125 Moved the releasing of the live refs to its own function, so we
5126 can put it in g_atexit (). Call the appropriate shutdown API
5127 depending on whethe calling client is a gnome app or not
5128 (bonobo_main_quit or CORBA_ORB_shutdown).
5130 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
5131 Unref the listener when this method is called, after
5132 deregistration. Updated the API docs to note this behavior.
5134 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
5135 Bugfixes: Ref the bonobo object when returning a parent or child
5136 reference, or an AccessibleRelation. Generally made sure
5137 BonoboObject refcount is incremented whenever we return an
5140 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
5141 Fixed typo/bug in signal declaration.
5143 * libspi/accessibleeventlistener.h:
5146 * libspi/application.c (spi_application_new):
5147 Fixed leak in initialization.
5150 Remembered to increment bonobo-object refcount when returning
5151 children (applications) from desktop object.
5152 Added (empty) finalize method.
5154 * libspi/deviceeventcontroller.c:
5155 Hold a ref to listeners inside DEControllerKeyListeners.
5156 Added dec_key_listener_free() method. Use prepend instead of
5157 append in key_listener list. Fixed some refcount madness and
5158 leaks in the listener registration/deregistration - deregistration
5159 now calls dec_key_listener_free() on listeners, and on the
5160 temporarily constructed dec_key_listener() used to perform the search/match.
5162 * libspi/hypertext.c (spi_hypertest_finalize):
5163 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
5164 class. Also fixed spi_hypertext_interface_new() and
5165 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
5167 * libspi/hypertext.h:
5168 Removed pointless and duplicate AtkObject pointer from
5171 * libspi/keystrokelistener.c:
5172 Fixed incorrect type of keystroke_listener_parent_class,
5173 renamed keystroke_listener_object_finalize to
5174 spi_keystroke_listener_object_finalize.
5175 Fixed typo in signal declaration
5176 (spi_keystroke_listener_class_init).
5178 * libspi/registry.c:
5179 Added funcsions spi_listener_struct_new() and
5180 spi_listener_struct_free() to help with memory management issues.
5181 We also now use these methods instead of gnew + poking stuff into
5182 the struct, and to decrement listener counts/free the listeners
5183 when deregistering them.
5184 Fix more refcount bugs in getDesktop() and
5185 getDeviceEventController().
5188 De-ref the desktop after enumerating the applications. Explicitly
5189 decrement the refcounts on the created listeners on exit (using
5190 _unref for keystroke listeners, and via the
5191 deregisterGlobalEventListenerAll command for other event
5194 2001-11-27 Michael Meeks <michael@ximian.com>
5196 * cspi/spi-listener.h: fixup enum.
5198 2001-11-27 Michael Meeks <michael@ximian.com>
5200 * cspi/spi-listener-impl.c (cspi_event_listener_new),
5201 (cspi_keystroke_listener_new): Use the cspi variants.
5203 2001-11-26 Michael Meeks <michael@ximian.com>
5205 * test/keysynth-demo.c: fix 2 compile warnings, missing
5208 * test/simple-at.c (report_focussed_accessible),
5209 (report_focus_event, report_button_press),
5210 (check_property_change, is_command_key),
5211 (report_ordinary_key_event, report_command_key_event): upd.
5213 * util/mag_client.h: include pre-requisites.
5215 * libspi/accessibleeventlistener.c
5216 (spi_event_listener_object_finalize): free any lingering
5219 * libspi/keystrokelistener.c
5220 (keystroke_listener_object_finalize): ditto.
5222 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
5223 callbacks, with cspi types.
5225 * cspi/spi_event.c (createAccessibleEventListener): chain to
5226 (AccessibleEventListener_addCallback): here.
5227 (createAccessibleKeystrokeListener): chain to
5228 (AccessibleKeystrokeListener_addCallback): here.
5230 * libspi/keystrokelistener.c
5231 (spi_keystroke_listener_class_init): add signal.
5232 (impl_key_event): emit the event.
5233 (boolean_handled_accumulator): impl.
5234 (marshal_BOOLEAN__POINTER): add, gack.
5236 * libspi/accessibleeventlistener.c
5237 (spi_event_listener_class_init): add signal.
5238 (impl_accessible_event_notify_event): emit the signal &
5239 make the loop efficient.
5240 (spi_event_listener_add_callback): prepend the callback.
5242 * libspi/accessibleeventlistener.h: add an 'event' signal,
5243 decl type on callback.
5245 * libspi/keystrokelistener.h: ditto.
5247 * cspi/spi-listener.h: make methods typesafe and
5248 make them use the new event typedefs.
5250 * test/simple-at.c (report_focussed_accessible):
5251 include mag_client.h
5252 Use *(void *)text_interface not the other thing.
5254 * configure.in: add gtk to registryd bits - since we use
5257 * util/magnifier.c: include libbonobo.h
5259 2001-11-25 Bill Haneman <bill.haneman@sun.com>
5261 * test/keysynth-demo.c:
5262 Turned this into a simple scanning keyboard, to demonstrate the
5263 use of g_timeout_add () as a means of creating timers for
5264 scanning, and the use of GtkStyle for visually indicating when
5265 virtual keyboard elements are selected.
5267 keysynth-demo now listens to any keyboard keys with zero-valued
5268 keycodes (i.e. 'unused' keys) and interprets them as
5271 Reworked the shiftlatch code so that shift-down state isn't held
5272 for long periods (it's only synthesized immediately prior to
5273 the keysynth event it's modifying). Note that shiftlatch in this
5274 demo is a convenience, not intended to take the place of AccessX
5275 which is the better choice for getting 'sticky' modifier keys.
5277 * libspi/deviceeventcontroller.c:
5278 * at-bridge/bridge.c:
5279 * cspi/spi_registry.c:
5280 Removed some debug print stuff, and put other verbosity in #ifdef
5285 Implemented some more of the magnifier IDL for the simple
5286 magnifier: namely, getZoomRegionParams.
5287 Added mag_x and mag_y members to MagnifierData struct, aid of this
5289 Added GtkWindow::realize signal handler to magnifier, to keep it
5290 from receiving keyboard focus from the WM.
5292 2001-11-23 Mark McLoughlin <mark@skynet.ie>
5294 * cspi/spi-private.h: my guess at what michael forgot
5295 before he ran off to NZ :-)
5297 2001-11-23 Michael Meeks <michael@ximian.com>
5299 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
5300 comment out non existant method invoke so we link.
5302 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
5303 use bonobo_exception_get_text for more friendly warnings.
5305 * cspi/spi.c (Obj_Add): move into spi_main & rename
5306 spi_object_add; kill spi.c
5308 * cspi/spi_registry.c
5309 (deregisterGlobalEventListener),
5310 (deregisterGlobalEventListenerAll),
5311 (registerGlobalEventListener): fix exception leaks.
5313 * cspi/spi_main.c (spi_exception): impl. helper, so we
5314 don't leak exceptions.
5316 * cspi/spi_selection.c
5317 (AccessibleSelection_deselectSelectedChild): return the
5320 * cspi/spi_main.c (spi_ev): impl; hack - gack.
5321 (spi_registry): ditto.
5322 (SPI_init): guard against double inits.
5324 * cspi/*.c: use spi_ev (), and spi_registry () where
5325 appropriate - a temporary hack until we have something
5326 better. Use spi_object_add
5328 2001-11-22 Michael Meeks <michael@ximian.com>
5330 * cspi/Makefile.am: re organise, install the headers.
5332 * cspi/*.h: add G_BEGIN/END_DECLS
5334 2001-11-22 Bill Haneman <bill.haneman@sun.com>
5337 Added non-preemptive keylistener for key events with no modifiers
5338 and shift-only modifier.
5340 * libspi/keystrokelistener.c:
5341 Removed some verbose diagnostics printout.
5343 * cspi/spi_registry.c:
5344 Fixed a bug that caused all key listeners to be registered as
5347 * libspi/deviceeventcontroller.c:
5348 Fixed bug that caused XGrabKey (preemptive key grab) to be called
5349 for non-preemptive key masks.
5352 2001-11-22 Bill Haneman <bill.haneman@sun.com>
5354 * docs/reference/idl/at-spi-idl-docs.sgml:
5355 * docs/reference/idl/at-spi-idl-sections.txt:
5356 * docs/reference/idl/at-spi-idl-overrides.txt:
5357 Added missing files.
5359 * docs/reference/Makefile.am:
5360 removed idl from SUBDIRS until we can figure a way to get gtk-doc
5361 to scan the IDL files :-(
5366 Added .cvsignore files.
5368 2001-11-21 Bill Haneman <bill.haneman@sun.com>
5370 * libspi/deviceeventcontroller.c:
5371 * libspi/keystrokelistener.c:
5373 * cspi/spi_registry.c:
5374 Added filters for KeySets, KeyEventSeq, and event types to key
5375 event dispatching, so listeners should only receive those events
5376 that they requested :-)
5378 2001-11-21 Bill Haneman <bill.haneman@sun.com>
5383 * docs/reference:Makefile.am:
5384 * docs/reference/cspi:
5385 * docs/reference/cspi:Makefile.am:
5386 * docs/reference/cspi:tmpl:
5387 * docs/reference/cspi:tmpl:*.sgml:
5388 * docs/reference/idl:
5389 * docs/reference/idl:Makefile.am:
5390 * docs/reference/idl:at-spi-idl-sections.txt:
5391 * docs/reference/idl:at-spi-idl-docs.sgml:
5392 * docs/reference/idl:tmpl:
5393 * docs/reference/idl:tmpl:*.sgml:
5395 Restructured docs directory to allow separate 'reference' docs
5396 section, and forked idl and cspi docs. Added the sgml template
5397 files to CVS. Added the first sections/structural sgml for the
5400 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
5402 * configure.in, libspi/Makefile.am: find libXtst.
5404 2001-11-21 Michael Meeks <michael@ximian.com>
5406 * test/accessx-gui.c: s/spi_value/value/ - doh.
5408 * libspi/base.[ch]: add.
5410 2001-11-18 Bill Haneman <bill.haneman@sun.com>
5412 * idl/Accessible.idl:
5413 * idl/Application.idl:
5416 Started gtk-doc cleanup on IDL.
5418 * libspi/deviceeventcontroller.c:
5419 Added and connected non-preemptive key notification from the
5420 toolkits (in addition to the pre-emptive support from XServer
5421 which we had before, but which causes 'focus flashing'). Filters
5422 are presently limited to key modifiers and global/non-global,
5423 KeySets are presently ignored, as are KeyEvent masks.
5425 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
5426 structs into the persistant structure rather than just storing
5427 pointers to things that might not persist across servant
5430 The XGrabKey call now does async keygrabs, because synchronous
5431 ones were deadlocking with GDK_event code in a very nasty way.
5433 Added boolean to internal method notify_keylisteners, to indicate
5434 whether the event came from the 'toolkit source' or the 'global
5435 (XServer) source' - this is used in the notification process to
5436 determine which listeners to send the event to.
5438 deviceeventcontroller.c is now warning-free.
5440 * libspi/registry.c:
5441 Fixed regression in application de-registration.
5442 Also fixed some really brain-dead weirdness having to do with
5443 event dispatching - event structs are now duplicated before being
5444 re-marshalled in the dispatch to listeners. This also fixes a
5445 Solaris build problem.
5448 2001-11-20 Michael Meeks <michael@ximian.com>
5451 (impl_accessibility_registry_deregister_global_event_listener):
5454 * libspi/deviceeventcontroller.c
5455 (spi_device_event_controller_check_key_event): return
5456 FALSE on no virtual method.
5458 * libspi/*..h: make includes work on a correctly pathed install.
5460 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
5462 * libspi/application.h: kill unused ( and whacked out )
5463 gboolean *spi_application_set_id (AtkObject *app, long id);
5465 2001-11-20 Michael Meeks <michael@ximian.com>
5467 * libspi/*.[ch]: further convert to bonobo's type func
5468 macros, remove redundnant casts etc.
5470 * libspi/text.c s/accessibility_text/spi_text/g,
5471 re-order to de-cruft.
5473 * libspi/hypertext.c: re-order to kill a huge slew
5474 of redundant forward decls.
5476 * libspi/relation.c: ditto.
5478 * libspi/image.c: ditto.
5480 * */.cvsignore: update
5482 2001-11-20 Michael Meeks <michael@ximian.com>
5484 * libspi/deviceeventcontroller.c
5485 (_controller_register_with_devices): use g_getenv,
5486 kill stdlib.h include.
5488 * libspi/keystrokelistener.c
5489 (spi_keystroke_listener_get_type): kill
5490 (spi_keystroke_listener_class_init),
5491 (spi_keystroke_listener_init): rename to this.
5493 * libspi/text.c (impl_getAttributes): fix warning / bug.
5495 * libspi/*.[ch]: more headers, includes and over commenting.
5497 2001-11-20 Michael Meeks <michael@ximian.com>
5499 * libspi/*.[ch]: fixup headers, includes and over commenting.
5501 * libspi/image.c (impl__get_imageDescription): const
5502 correctness warning fix. remove redundant casting.
5504 * libspi/table.c (impl_getRowDescription): ditto.
5505 (impl_getColumnDescription): ditto.
5507 * libspi/libspi.h: add.
5509 2001-11-19 Michael Meeks <michael@ximian.com>
5511 * libspi/editabletext.c (impl_setAttributes): fix warnings.
5513 * libspi/component.c (accessibility_component_get_type):
5514 rename to (spi_component_get_type): and macroify.
5515 (accessibility_component_init): rename to
5516 (spi_component_init): this
5517 (accessibility_component_class_init): rename to
5518 (spi_component_class_init): this
5520 * libspi/action.c (spi_action_get_type): kill, use the macro.
5522 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
5525 * libspi/application.c (spi_application_object_event_listener),
5526 (impl_accessibility_application_register_object_event_listener):
5527 warning fixes / const understanding updates.
5529 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
5532 2001-11-18 Bill Haneman <bill.haneman@sun.com>
5534 * libspi/spi_accessible.c: Added docs and C bindings for
5535 AccessibleStateSet. (No implementations yet). Documentation
5536 coverage for C bindings now 100%. Made docs for event listeners
5541 boolean notifyListenersSync (in DeviceEventListener listener,
5542 in DeviceEvent event);
5544 oneway void notifyListenersAsync (in DeviceEventListener listener,
5545 in DeviceEvent event);
5547 Added DeviceEventListener and DeviceEvent structs (may deprecate
5548 KeyStroke and KeystrokeListener in favor of this generic
5549 event/listener framework for devices).
5551 * libspi/deviceeventcontroller.c:
5553 Changed some key listener code to take masks, etc., and paved the
5554 way for integration of toolkit/non-preemptive key events. Changed
5555 signatures of some internal methods.
5557 * at-bridge/bridge.c:
5558 Fixed regression connecting to interface signals, apparently
5559 caused by GTK+ changes.
5561 Added an internal bridge_state_listener to deal with
5562 property-change:accessible-state signals.
5564 Changed the key_listeners GList to store structs (including masks,
5565 etc.) instead of just CORBA_Objects (required for full
5566 implementation of key listener API).
5568 Connected the bridge to all currently supported Atk signals.
5569 Events now supported:
5570 object:property-change
5571 object:property-change:accessible-name
5572 object:property-change:accessible-state
5573 object:property-change:accessible-description
5574 object:property-change:accessible-parent
5575 object:property-change:accessible-value
5576 object:property-change:accessible-role
5577 object:property-change:accessible-table-caption
5578 object:property-change:accessible-table-column-description
5579 object:property-change:accessible-table-column-header
5580 object:property-change:accessible-table-row-description
5581 object:property-change:accessible-table-row-header
5582 object:property-change:accessible-table-summary
5583 object:children-changed
5584 object:visible-data-changed
5585 object:selection-changed
5586 object:text-selection-changed
5588 object:text-caret-moved
5590 object:row-reordered
5592 object:column-inserted
5593 object:column-reordered
5594 object:column-deleted
5595 object:model-changed
5597 2001-11-16 Bill Haneman <bill.haneman@sun.com>
5599 * libspi/hyperlink.c,h:
5600 Fixed some broken stuff in hyperlink.
5602 * libspi/relation.h:
5603 * libspi/relation.c:
5604 * cspi/spi_accessible.c:
5605 Initial implementations of AccessibleRelation methods, and docs.
5607 * libspi/accessible.c:
5608 Fixed a bug that caused SEGV if an accessible
5609 object's description is NULL, and a client
5610 requests it. An empty string is now returned.
5612 * cspi/spi_editabletext.c:
5613 * cspi/spi_hypertext.c:
5615 * cspi/spi_hyperlink.c:
5619 Doc coverage now 95%.
5621 2001-11-16 Bill Haneman <bill.haneman@sun.com>
5623 One last namespacing revision:
5624 * libspi/accessibleeventlistener.[ch]:
5625 Renamed SpiAccessibleEventListener to SpiEventListener,
5626 (no need for two namespaces ;-)
5628 And lots of documentation fixes:
5630 * docs/at-spi-docs.sgml:
5631 Fixed 'underscore vs. hyphen' bug that was preventing
5632 the gtk-doc API docs from being automatically generated.
5635 * cspi/spi-listener.h
5637 * cspi/spi_accessible.c
5639 * cspi/spi_application.c
5640 * cspi/spi_component.c
5641 * cspi/spi_editabletext.c
5643 * cspi/spi_hypertext.c
5645 * cspi/spi_registry.c
5646 * cspi/spi_selection.c
5650 * docs/at-spi-docs.sgml
5651 * docs/at-spi-sections.txt
5653 Added and fixed up gtk-doc documentation in cspi.
5655 Interfaces now (fully) documented (subject to revision and enhancement):
5657 Event Listener Support
5659 AccessibleApplication
5663 AccessibleEditableText
5670 AccessibleRelationSet
5675 2001-11-14 Bill Haneman <bill.haneman@sun.com>
5677 * at-bridge/bridge.c:
5678 Initial work for toolkit-level key snooper connection by bridge.
5683 New typedefs and fixes to support new namespacing, and cleaner
5684 separation of cspi bindings from libspi bonobo implementation.
5685 Removed inconsistent and extraneous Spi* namespace prefix that
5686 had crept into cspi headers.
5687 Lots of comment fixes that sed had missed.
5689 * cspi/spi-roletypes.h:
5690 * cspi/spi-statetypes.h:
5691 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
5692 to AccessibleRoleType.
5694 * libspi/accessibleeventlistener.h:
5695 Fixed minor namespacing weirdness.
5697 * libspi/deviceeventcontroller.c:
5698 Reordered some internal API for device listeners.
5699 Changed the key registry final boolean to 'is_system_global'
5700 rather than 'is_synchronous', which is more descriptive of its
5702 Added spi_device_event_controller_new().
5703 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
5705 * libspi/keystrokelistener.[ch]:
5706 Namespaced KeystrokeListener to SpiKeystrokeListener.
5707 Changed uses of keymasks to use SPI_ prefix, and did other
5710 * libspi/keymasks.h:
5711 Namespaced keymask constants with SPI_ prefix.
5713 * libspi/registry.c:
5714 Some warning fixes, and knock-on fixes from namespace changes.
5717 Added rules for accessx-gui test program.
5719 * test/accessx-gui.c:
5720 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
5721 utility. It doesn't actually use at-spi, but it's still cool and
5724 * test/keysynth-demo.c:
5728 Fixes so that these test clients work properly with the namespaced
5729 libraries. (Incompletely tested for technical reasons, fixes may follow)
5732 2001-11-13 Michael Meeks <michael@ximian.com>
5734 * libspi/application.c
5735 (impl_accessibility_application_get_version),
5736 (impl_accessibility_application_get_toolkit_name):
5738 (impl_accessibility_application_set_id),
5739 (impl_accessibility_application_get_id): remove
5740 redundant casting code.
5742 * libspi/action.c (impl_getDescription): fix warnings.
5744 * libspi/accessible.c
5745 (impl_accessibility_accessible_get_parent),
5746 (impl_accessibility_accessible_get_child_at_index),
5747 (impl_accessibility_accessible_get_state),
5748 (impl_accessibility_accessible_get_relation_set):
5749 warning fixes & include action.h
5751 2001-11-13 Michael Meeks <michael@ximian.com>
5753 * *.[ch] fix bits I screwed up:
5755 s/([^ \tb(\*\&\?\",])spi_/\1/g;
5756 s/([^ \tb(\*\&\?\",])Spi/\1/g;
5758 2001-11-13 Michael Meeks <michael@ximian.com>
5760 * *.[ch] Namespace libspi into spi_ and Spi.
5762 2001-13-11 Michael Meeks <michael@ximian.com>
5764 * Makefile.am: dist & install at-spi-1.0.pc
5766 * libspi/Makefile.am: install into at-spi-1.0
5768 * idl/Makefile.am (idldir): install into at-spi-1.0
5770 * at-spi-1.0.pc.in: add.
5772 * configure.in: build it.
5774 2001-11-12 Bill Haneman <bill.haneman@sun.com>
5776 * test/keysynth-demo.c:
5777 Use a 'realize' signal-handler to set the WM properties for
5778 the virtual keyboard, rather than making it a "POPUP" type
5779 override-redirect window (thanks to anders carlsson for that
5782 2001-11-11 Bill Haneman <bill.haneman@sun.com>
5785 * test/keysynth-demo.c:
5786 Added new test of key synthesis, which creates a simple
5787 (mouse-operated) onscreen keyboard. It inserts key events into
5788 the currently-focused window, thus it does not grab keyboard focus
5791 * cspi/spi_registry.c:
5792 Added C binding for AT-SPI generateKeyEvent.
5794 * libspi/deviceeventcontroller.c:
5795 Added call to XFilterEvent so that key listener works with XIM (we
5796 hope). Added event_synth_type to generateKeyEvent, so that we can
5797 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
5798 synthesize a press/release pair for KeySyms.
5800 2001-11-09 Bill Haneman <bill.haneman@sun.com>
5802 * libspi/Makefile.am:
5803 * registryd/Makefile.am:
5804 (temporary) hack to include libXtst in libspi and registryd.
5805 (Needed for keystroke synthesis, see below).
5808 Improved API for registerKeystrokeListener, in accordance with
5809 discussions with Gnopernicus team and X server research.
5811 * libspi/registry.c:
5812 * libspi/deviceeventcontroller.c:
5813 * libspi/accessible.c:
5814 * libspi/keystrokelistener.c:
5815 Changes and fixes to support keylisteners for potentially
5816 consumed key events (that is, 'passive grabs').
5817 Added implementation for generateKeyEvent() [untested].
5820 Changes to registerKeystrokeListener() API, as above.
5821 Added deregisterGlobalEventListenerAll(), and
5822 deregisterKeystrokeListener(), which are needed for clean exit of
5824 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
5825 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
5827 * cspi/spi_registry.c:
5828 Added implementations of function prototypes mentioned above.
5830 * registryd/registryd.c:
5831 Added the key listener event source as a g_timeout(), to allow
5832 receipt of key events that are not caught by GDK (since GDK
5833 doesn't support passive keygrabs, this was necessary).
5836 Changed to attach a keylistener to 'Alt' keys, and
5837 respond to the following keycommands: Alt-M (toggle magnifier);
5838 Alt-F (toggle speech); Alt-Q (quit).
5839 Added an exit routine to deregister the listeners, and a key
5840 listener that prints some key info to the console when a key
5841 matches the listener mask (and is thus received by the listener).
5843 * util/idl/Magnifier.idl:
5844 Changes to magnifier API to support multiple zoom regions,
5845 non-uniform scaling in x and y, markDirty, and a host of other
5846 features that would be useful to magnification.
5849 * util/mag_client.c:
5850 * util/mag_client.h:
5851 * util/mag_control.c:
5853 Source code changes to support the above IDL changes.
5856 As above, and also changes to use a (slower) generic conversion
5857 path for colormap conversions, since the fast RGB conversions have been
5858 reported to fail for 16-bit displays.
5860 2001-10-26 Michael Meeks <michael@ximian.com>
5862 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
5864 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
5866 * at-bridge/Makefile.am: fix LDFLAGS.
5868 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5870 * at-bridge/bridge.c:
5871 Re-worked listeners for toolkit events, now we have signal
5872 and property listeners. Added a private method
5873 register_atk_event_listeners(), which registers with the
5874 various atk and gtk signals we need to monitor in order to emit
5876 Added emission hook for AtkObject:property-change events, to
5877 support the 'property listeners'.
5878 Fixed some alloc()s of Accessibility_Event structs to use CORBA
5881 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
5882 which emit warnings and exit, respectively, if CORBA errors occur
5883 during remote calls, and we now use these methods to check most of
5884 our CORBA calls in the C bindings.
5886 * cspi/spi_accessible.c:
5887 Changed AccessibleSelection_refSelectedChild() to
5888 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
5889 now increment refcounts.
5891 * cspi/spi_component.c:
5892 Fixed some long pointer casts (dangerous!) to pass pointers to
5893 CORBA_longs of the proper type to the CORBA stubs, and copy the
5894 data into the longs that were passed into the C bindings code.
5896 * at-bridge/bridge.c:
5898 * libspi/accessible.c:
5899 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
5900 hyperlinks, AtkHyperlink is an object type.
5902 * libspi/application.c:
5903 Added various conversions to and from "generic" event types and
5904 atk-specific types; this is really part of the 'bridge'
5905 implementation but is valid for all AtkObject-based accessibility
5908 * libspi/editabletext.c:
5909 Fixed nasty bug wherein editable text's finalize method was
5910 unref'ing tha AtkObject reference that the text parent class was
5911 about to unref _again_. There was also a nasty inheritance bug
5912 that meant that the AccessibleEditableText class was corrupt.
5914 * libspi/selection.c:
5915 Provided implementations for some selection API that was broken.
5917 * idl/Application.idl:
5918 Added registerObjectEventListener () method.
5921 Fixed a number of return values that were Bonobo_Unknowns from
5922 bonobo_object_corba_objref(), which I
5923 forgot to dup before returning. Changed instances of
5924 bonobo_object_corba_objref (bonobo_object(o)) to
5925 BONOBO_OBJREF(o), for concision and clarity.
5927 2001-10-13 Louise Miller <louise.miller@sun.com>
5929 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
5930 idl/Event.idl, idl/Registry.idl
5931 Changed these files to include Bonobo_Unknown.idl instead
5934 2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
5936 * libspi/component.c libspi/component.h:
5937 Fixed typo. Added assertions for object checks in
5938 AccessibleComponent code.
5940 2001-10-09 Bill Haneman <bill.haneman@sun.com>
5942 * idl/Accessible.idl:
5943 Added 'isEqual (Accessible *object)'
5944 method for Accessible. (Not Yet Implemented).
5947 Changed signature of registerKeystrokeListener() to
5948 take a KeySet and KeyEventSeq so that specific keys and event
5949 types could be requested for monitoring, and added a flag
5950 is_synchronous so that either synchronous or asynchronous
5951 notification could be requested. (However this is not all
5952 implemented yet). This also meant adding two new typedefs,
5953 KeyEventSeq and KeySet.
5956 Added two new relations, RELATION_TOOLTIP_FOR and
5957 RELATION_LEAFNODE_OF.
5960 Added new state, STATE_HAS_TOOLTIP.
5962 * libspi/text.c, editabletext.c:
5963 Added new assertions to all casts of bonobo-objects from
5964 CORBA servants, to prevent Text API calls on non-text objects.
5965 Changed suspect casts of int-pointer types, so that we
5966 always send a valid CORBA_long pointer to the CORBA APIs that use
5967 in/out long parameters. We then have to copy from the CORBA_long
5968 into the regular long or int for return to the C bindings, or
5969 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
5972 * libspi/deviceeventcontroller.c:
5973 Cleaned these sources up.
5975 Changed return type for getCharacterAtOffset to
5976 CORBA_unsigned_long, to allow for 32-bit characters.
5979 2001-10-08 Bill Haneman <bill.haneman@sun.com>
5983 Fixed 'make dist' so that distro compiles...
5984 * libspi/keymasks.h:
5986 * cspi/spi-listener.c:
5987 KeystrokeListenerCB now returns a boolean.
5989 Added KeyEventType struct, and KeyStroke.
5990 Also added createKeystrokeListener(),
5991 KeystrokeListener_addCallback(),
5992 KeystrokeListener_removeCallback(), and added a keymask to
5993 registerKeystrokeListener().
5994 * cspi/spi_accessible.c:
5995 Changed numerous return types for interfaces from
5996 AccessibleComponent to Accessible<InterfaceName>; this was
5997 probably a cut-and-paste error.
5999 Implementations of new KeystrokeListener api (from spi.h,
6002 Changes to key modifier mapping.
6003 Created ControllerEventMask struct.
6004 Made DeviceEventController derive from Bonobo::Unknown.
6006 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
6007 * libspi/deviceeventcontroller.c:
6008 Added a number of new internal (private) methods.
6009 * libspi/editabletext.c:
6010 * libspi/editabletext.h:
6011 Fixed a number of bugs related to the fact that
6012 editabletext inherits from text. Fixed the EditableText struct,
6013 the init() call, and use correct casts when calling Text methods
6014 from an EditableText object. Removed (duplicate) atko from the
6015 EditableText structure, we use the one in the parent Text
6016 structure via the casts mentioned above.
6017 * libspi/keystrokelistener.[ch]:
6018 * libspi/registry.c:
6019 Changes in support of keyboard handling (above).
6021 Keyboard handling, though partly functional, is still not
6022 recommended for at-spi client use as there is considerable
6023 work yet to be done.
6026 Changed some places where pointers to various int types
6027 are cast to be pointers to CORBA_long types and vice-versa:
6028 pointer casting is not safe so we pass pointers of the correct
6029 types and then cast the result before putting it into the target
6032 * libspi/text.h: minor typos corrected.
6034 We now speak not only the name of a Text element, but the
6035 first sentence of its content, when it receives focus.
6036 I also changed the text compression to 75% from 50%.
6037 * util/Accessibility_Util.server.in:
6038 Changed the default magnifier type to be a 3x vertical
6039 splitscreen magnifier (was previously a 2x horizontal one).
6041 2001-10-03 Bill Haneman <bill.haneman@sun.com>
6043 * libspi/keystrokelistener.h:
6044 * libspi/keystrokelistener.c:
6045 Initial functional implementations of KeystrokeListener.
6048 2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
6050 Fixed string handling for NULL strings in libspi.
6051 Added spi_freeString to free strings returned by C bindings.
6053 2001-09-30 Bill Haneman <bill.haneman@sun.com>
6055 * libspi/keystrokelistener.h:
6056 * libspi/keystrokelistener.c:
6057 Began (no-op) implementations of KeystrokeListener
6059 * libspi/deviceeventcontroller.c:
6060 * libspi/deviceeventcontroller.h:
6061 Began creating implementations of DeviceEventController,
6062 to handle keystroke and mouse event listening and
6064 * libspi/accessible.c:
6065 Stubbed-in the implementations for
6066 Accessibility_Accessible_getState and
6067 Accessibility_Accessible_getRelationSet.
6068 * libspi/registry.c:
6069 Improved de-registration process and fixed some bugs,
6070 deregistration now works correctly.
6072 Added initialization of applications list (to NULL).
6074 Reduced speech compression from 0.5 to 0.7, for demo.
6075 Changed call to gdk_window_set_decorations()
6076 to gtk_window_set_decorated().
6077 * at-bridge/bridge.c:
6078 Bridge now deregisters when app exits, via
6079 registration of a cleanup function
6080 with the g_atexit() call.
6081 Required making 'app' static, renamed 'this_app'.
6082 Fixed broken use of bonobo_init, passing argv wrongly.
6084 2001-09-27 Bill Haneman <bill.haneman@sun.com>
6088 Created a new directory for
6089 accessibility-related utilities, primarily for
6090 testing and demo purposes, but with possible
6097 Onscreen magnifier utility that
6098 is implemented as a bonobo service.
6100 * util/mag_client.c:
6101 * util/mag_client.h:
6102 Client-side support (simple C bindings)
6103 for Magnification service
6105 * util/mag_control.c:
6106 Client program example for
6107 Magnification service
6109 * util/Accessibility_Magnifier.server.in:
6110 Bonobo-activation file for the
6111 Magnification service.
6114 * util/idl/Magnifier.idl:
6115 IDL defining the bonobo Magnification
6119 Modifications to use the bonobo-activated magnifier
6120 above, in place of trying to connect to an existing
6121 magnifier that uses socket-listening IPC.
6123 If env variable MAGNIFIER is set, a magnifier service
6124 will be started if one does not exist.
6126 2001-09-25 Bill Haneman <bill.haneman@sun.com>
6128 * at-bridge/bridge.c:
6129 applied patch from Marc to build and run
6130 against new glib and gtk+ (seemed like a change
6131 to bonobo_init signature was made ?)
6133 made festival-server support turned off by default.
6134 Added support for a simple magnifier (off by default)
6135 which will be added to a 'util' directory later.
6136 * at-bridge/Makefile.am:
6137 Changed "application.h" header from a 'source'
6138 to a 'dependency' of libat-bridge.
6140 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
6149 Added interface implementation c files to list of
6150 includes so they are included in libcspi.
6153 Changed prototype of AccessibleAction_doAction to return a
6155 Changed prototype of AccessibleTable_getCaption to
6156 return an Accessible.
6157 Changed prototype of AccessibleTable_getSelectedRows
6158 and AccessibleTable_getSelectedColumns to
6159 return a long (returns the number of selected rows
6160 or columns respectively).
6161 Changed name of AccessibleText_refRunAttributes to
6162 AccessibleText_getAttributes.
6163 Changed prototype of AccessibleText_getCharacterExtents to
6164 return a void rather than a boolean.
6165 Added support for a AccessibleCoordType parameter
6166 specifying what type of coordinates are desired.
6167 Added an AccessibleCordType parameter to
6168 AccessibleText_getPointAtOffset.
6170 * cspi/spi_accessible.c:
6171 Added code to return the outstanding interfaces from
6172 Accessible_queryInterface.
6174 * cspi/spi_action.c:
6176 Corrected call to getNActions to call the c binding
6179 * cspi/spi_editabletext.c:
6181 Changed name from setRunAttributes to setAttributes.
6183 * cspi/spi_hyperlink.c:
6185 Changed call to getNAnchors to correctly call the c
6186 binding for an attribute.
6188 * cspi/spi_hypertext.c:
6190 Changed getImageDescription to correctly call the
6191 binding for an attribute.
6193 * cspi/spi_selection.c:
6194 Changed getNSelectedChildren to correctly call the c
6195 binding for the attribute.
6196 Changed refSelectedChild to getSelectedChild.
6200 Changed getCaption to return an Accessible.
6201 Fixed calls which retrieve attributes.
6202 Changed refAt to getAccessibleAt.
6203 Changed getNSelectedRows and getNSelectedColumns to
6207 Changed getCharacterExtents and getPointAtOffset to accept an
6208 AccessibleCoordType.
6210 Changed calls which retrieve attributes.
6211 Changed refRunAttributes to getAttributes.
6216 * idl/Hyperlink.idl:
6217 Changed n_anchors attribute to nAnchors to keep naming
6218 convention consistent.
6221 Made Table inherit from Bonobo::Unknown.
6222 Added nSelectedColumns and nSelectedRows attributes.
6225 Made Value inherit from Bonobo::Unknown.
6227 * libspi/hyperlink.c:
6228 Change for nAnchors attributte name change.
6230 2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
6238 Added interface implementation c files to list of
6239 includes so they are included in libcspi.
6242 Changed prototype of AccessibleAction_doAction to return a
6244 Changed prototype of AccessibleTable_getCaption to
6245 return an Accessible.
6246 Changed prototype of AccessibleTable_getSelectedRows
6247 and AccessibleTable_getSelectedColumns to
6248 return a long (returns the number of selected rows
6249 or columns respectively).
6250 Changed name of AccessibleText_refRunAttributes to
6251 AccessibleText_getAttributes.
6252 Changed prototype of AccessibleText_getCharacterExtents to
6253 return a void rather than a boolean.
6254 Added support for a AccessibleCoordType parameter
6255 specifying what type of coordinates are desired.
6256 Added an AccessibleCordType parameter to
6257 AccessibleText_getPointAtOffset.
6259 * cspi/spi_accessible.c:
6260 Added code to return the outstanding interfaces from
6261 Accessible_queryInterface.
6263 * cspi/spi_action.c:
6265 Corrected call to getNActions to call the c binding
6268 * cspi/spi_editabletext.c:
6270 Changed name from setRunAttributes to setAttributes.
6272 * cspi/spi_hyperlink.c:
6274 Changed call to getNAnchors to correctly call the c
6275 binding for an attribute.
6277 * cspi/spi_hypertext.c:
6279 Changed getImageDescription to correctly call the
6280 binding for an attribute.
6282 * cspi/spi_selection.c:
6283 Changed getNSelectedChildren to correctly call the c
6284 binding for the attribute.
6285 Changed refSelectedChild to getSelectedChild.
6289 Changed getCaption to return an Accessible.
6290 Fixed calls which retrieve attributes.
6291 Changed refAt to getAccessibleAt.
6292 Changed getNSelectedRows and getNSelectedColumns to
6296 Changed getCharacterExtents and getPointAtOffset to accept an
6297 AccessibleCoordType.
6299 Changed calls which retrieve attributes.
6300 Changed refRunAttributes to getAttributes.
6305 * idl/Hyperlink.idl:
6306 Changed n_anchors attribute to nAnchors to keep naming
6307 convention consistent.
6310 Made Table inherit from Bonobo::Unknown.
6311 Added nSelectedColumns and nSelectedRows attributes.
6314 Made Value inherit from Bonobo::Unknown.
6316 * libspi/hyperlink.c:
6317 Change for nAnchors attributte name change.
6320 2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
6322 implementations-- made server implementations own AtkObject pointers
6323 rather than their respective AtkInterrface pointers to fix
6324 refcounting. AtkHyperlink is still broken.
6326 2001-09-04 Bill Haneman <bill.haneman@sun.com>
6327 * cspi/spi_accessible.c:
6328 Added method Accessible_Role_getName(),
6329 and requisite string array (role_names).
6330 Added conversion string_from_corba_strin() call
6331 to Accessible_getName and _getDescription.
6332 * libspi/accessible.c:
6333 Added implementation for Accessible_getRole()
6335 Added festival support, used if environment variable
6338 2001-09-04 Bill Haneman <bill.haneman@sun.com>
6340 * at-bridge/bridge.c:
6341 Now allocate Accessibility_Event using
6342 Accessibility_Event__alloc() instead of g_new0().
6343 * libspi/accessibleeventlistener.c:
6344 Initialize AccessibleEventListener->callbacks to NULL.
6345 Fixed accessible__event_listener_init() param, changed to
6346 "AccessibleEventListener *" type.
6347 Changed a bonobo_object_release_unref() call to
6348 Accessibility_Accessible_unref().
6349 * libspi/listener.c:
6350 Changed Bonobo_Unknown_unref to (equivalent)
6351 Accessibility_Accessible_unref.
6352 * libspi/registry.c:
6353 Changed bonobo_object_release_unref to
6354 Accessibility_Accessible_unref.
6356 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
6359 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
6360 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
6361 spi-util.c spi-util.h
6362 Implementations for C bindings to remaining accessibility
6365 2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
6368 changed return value of Action from void to boolean to
6369 bring in line with ATK.
6372 Changed getText funcions to return "out" start and end offsets.
6373 Changed getAttributes to take and offset and return the start
6374 and end offset of the attribute run.
6375 Changed getOffsetAtPoint and getCharacterExtents to take an
6376 enum describing whether coordinates are window or screen.
6379 libspi/action.c libspi/action.h libspi/editabletext.c
6380 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
6381 libspi/hypertext.c libspi/hypertext.h libspi/image.c
6382 libspi/image.h libspi/selection.c libspi/selection.h
6383 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
6384 libspi/value.c libspi/value.h
6385 Added server implementations for outstanding ATK interfaces
6386 not yet implemented.
6388 2001-09-04 Bill Haneman <bill.haneman@sun.com>
6391 Added (missing) getName() method.
6392 Made nActions an attribute.
6393 * idl/EditableText.idl:
6394 Changed order of params in setAttributes.
6395 * idl/Hyperlink.idl:
6396 Removed getAnchor, added getURI.
6398 Changed attributes to methods, for efficiency
6399 (so that getting extents can be done in one call)
6400 * idl/Selection.idl:
6401 Changed nSelectedChildren to attribute, and re-indented.
6402 * idl/Table.idl: changed nrows, ncolumns, caption, summary
6404 * idl/Text.idl: reformatted to match our coding style.
6405 (temporarily?) removed getRowColumnAtOffset().
6406 Changed text selection API to support multi-select and
6407 non-contiguous selections, as in ATK.
6408 * idl/Value.idl: changed some methods to attributes.
6410 2001-08-24 Mark McLoughlin <mark@skynet.ie>
6412 * libspi/listener.c(impl_notify_event):
6413 BonoboUnkown_unref the source instead
6414 of bonobo_object_release_unref - the ORB
6415 handles the releasing.
6417 * configure.in: require ORBit-2.3.94 for
6420 2001-08-21 Bill Haneman <bill.haneman@sun.com>
6422 Tagged CVS repository 'EA_1_0'.
6423 * README.EARLY_ACCESS:
6424 Alphabetized acknowledgements list, and
6426 Listed some known dependencies of at-spi.
6428 2001-08-20 Bill Haneman <bill.haneman@sun.com>
6430 * docs/at-spi-docs.sgml:
6431 * docs/at-spi-sections.txt:
6432 * docs/at-spi-overrides.txt: (Added zero-length file)
6433 Documentation improvements - gtk-doc should build
6434 docs for all implemented C bindings now.
6437 * cspi/spi.c: (New file)
6438 * cspi/spi_event.c: (New file)
6439 * cspi/spi_registry.c: (New file)
6440 * cspi/spi_accessible.c: (New file)
6441 * cspi/spi_application.c: (New file)
6442 * cspi/spi_component.c: (New file)
6443 Split spi_main.c into six parts, and included them from
6444 "spi.c". This is a bit of a hack, probably temporary,
6445 but required by gtk-doc, apparently.
6447 2001-08-20 Bill Haneman <bill.haneman@sun.com>
6450 * docs/at-spi-docs.sgml:
6451 * docs/at-spi-sections.txt:
6453 Initial checkins/modifications for gtk-doc generation.
6456 Added (missing) interface query methods to Accessible's C binding.
6458 Added GenericInterface type definition.
6460 Added query for AccessibleComponent interface to focus event handler.
6461 Added printout of bounding box for focussed component.
6462 * libspi/component.c:
6463 Added partial implementation for AccessibleComponent to C binding.
6464 * idl/Application.idl:
6465 * libspi/registry.c:
6466 * libspi/listener.c:
6467 * libspi/application.c:
6468 * libspi/application.h:
6469 Changed "ID" attribute type from string to long.
6471 2001-08-19 Bill Haneman <bill.haneman@sun.com>
6475 Made method naming consistent: methods taking object args
6476 start with uppercase, other methods (except those using
6477 acronyms) start with lowercase. Underscores delimit between
6478 object names and method names:
6479 SPI_init() - uppercase since it starts with an acronym.
6480 getDesktopCount () - lowercase start since no object param0.
6481 Accessible_getName() - uppercase object type name, studlyCaps method
6485 Added gtk-doc documentation for all currently implemented
6486 methods in the C bindings API.
6488 2001-08-18 Bill Haneman <bill.haneman@sun.com>
6490 * Makefile.am : changed build order to build test last.
6493 Changed "createEventListener" to "CreateEventListener".
6494 * libspi/accessibleeventlistener.c :
6495 Bugfix for addition of callbacks.
6496 * test/Makefile.am :
6497 * test/simple-at.c :
6498 Added new test that uses the C bindings API.
6500 * libspi/listener.c :
6501 * libspi/registry.c :
6502 * libspi/accessibleeventlistener.c :
6503 * at-bridge/bridge.c :
6504 Renamed member "target" of Accessibility_Event to "source",
6505 which is more descriptive.
6508 2001-08-18 Bill Haneman <bill.haneman@sun.com>
6512 * cspi/Makefile.am :
6513 Added makefile support for at-spi/cspi directory.
6516 * cspi/spi-listener.h : (NEW FILE)
6517 Added support for/use of spi-listener.h.
6519 C bindings now build successfully, with no warnings.
6520 * libspi/accessibleeventlistener.h : (NEW FILE)
6521 * libspi/accessibleeventlistener.c : (NEW FILE)
6522 * libspi/Makefile.am :
6523 Added new object type "AccessibleEventListener"
6524 which inherits from Listener, and allows attachment
6525 of in-process callbacks (so that a client with a listening
6526 object instance can add functionality to the local
6527 implementation, dynamically).
6529 2001-08-18 Bill Haneman <bill.haneman@sun.com>
6531 * libspi/accessible.c:
6532 Add implementation for get_index_in_parent().
6534 Added #include of "spi-roletypes.h", and
6535 added enumerated type AccessibleCoordType.
6536 Added definition for KeystrokeListener (function type).
6539 * cspi/spi-statetypes.h :
6540 * cspi/spi-roletypes.h :
6542 Added these headers, used by spi.h.
6544 Added code (NOTE: not yet built by make).
6546 2001-08-18 Mark McLoughlin <mark@skynet.ie>
6548 * libspi/Makefile.am: generate imodule
6549 at the same time as other idl compiler
6552 2001-08-17 Bill Haneman <bill.haneman@sun.com>
6553 * libspi/registry.c :
6554 * libspi/application.c :
6555 * idl/Application.idl :
6556 Made registration with toolkit an application method,
6557 which is required since each app has its own toolkit static
6558 environment. Thus the bridge must register for
6559 notification of toolkit events from each application in turn.
6560 Toolkit notifications are now successfully registered for, and
6561 sent to the listening at client.
6563 Changed toolkit event string to use hyphens rather than underscores.
6564 * libspi/listener.c :
6565 listner now gives more info in debug mode - it reports the
6566 name of the event received, as well as the name of the source.
6569 2001-08-16 Bill Haneman <bill.haneman@sun.com>
6571 * libspi/registry.c :
6572 added more implementation for toolkit events.
6573 Fixed bug such that toolkit event registrations
6574 (via atk) use the whole event name string, not
6576 Removed a useless call to an ORBit_ method.
6577 * at-bridge/bridge.c :
6578 Removed unused local sbuf[] variable.
6580 We now register for Gtk:GtkWidget:button_press_event
6581 events as well as "focus:" events.
6583 Add some more API from Registry.idl that was missing,
6584 for keystroke listening, keystroke and mouse event
6585 synthesis, and enumeration of accessible desktops.
6587 2001-08-16 Michael Meeks <michael@ximian.com>
6589 * configure.in: use AM_GLIB_GNU_GETTEXT.
6591 * Makefile.am (SUBDIRS): kill intl.
6593 2001-08-15 Michael Meeks <michael@ximian.com>
6595 * registryd/Makefile.am: s/oaf/server/ relocate info file.
6597 * configure.in: upd.
6599 * configure.in: depend on a recent bonobo-activation that
6600 will find our server files ...
6602 2001-08-16 Bill Haneman <bill.haneman@sun.com>
6604 * libspi/accessible.c : accessible_new() :
6605 Now we add the Component interface via bonobo_object_add_interface,
6606 if the contained AtkObject implements AtkComponent.
6607 * libspi/accessible.h : now include "component.h"
6608 * libspi/component.h :
6609 * libspi/component.c : added files - implementation of
6610 bonobo wrapper object for Accessibility/Component
6611 * libspi/listener.c :
6612 Added test code to check for Accessibility/Component:1.0
6613 interface and report whether it is implemented by the
6615 * libspi/registry.c :
6616 Now we check for not only the hash of the whole event
6617 string before relaying the event, we also check the
6618 "minor" event string (without the detail string).
6619 This allows event listeners to be registered against
6620 all events of a certain major+minor type, or just
6621 against a specific major+minor+detail type.
6622 * libspi/accessible.c :
6623 Added implementations for Accessible:get_parent(),
6624 Accessible:getChildCount(), and Accessible:getChildAtIndex().
6625 * libspi/registry.c :
6626 * libspi/listener.c :
6627 Replaced calls to Accessibility_Accessible_ref() and
6628 Accessibility_Accessible_unref() with
6629 calls to bonobo_object_dup_ref() and
6630 bonobo_object_release_unref(), so that the CORBA object
6631 is dup-ed and released when relayed, as well as the bonobo object.
6633 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6635 * libspi/Makefile.am,
6636 registryd/Makefile.am,
6637 at-bridge/Makefile.am.
6638 test/Makefile.am, configure.in:
6639 reverse previous changes.
6641 * /idl/Image.idl: fix typo.
6643 * test/Makefile.am: put DEBUG_FLAGS
6646 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6648 * test/app.c: use argv[0] instead of
6651 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6653 * libspi/Makefile.am,
6654 registryd/Makefile.am,
6655 at-bridge/Makefile.am.
6656 test/Makefile.am, configure.in:
6657 cleanup, replace individual LIBS/CFLAGS with
6658 AT_COMMON_{LIBS|CFLAGS}.
6662 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6664 * configure.in, libspi/Makefile.am:
6665 Change IDL path checking for bonobo-activation
6668 2001-08-15 Bill Haneman <bill.haneman@sun.com>
6670 * registryd/registry.c : separated event listeners to use
6671 3 separate lists (focus, window, toolkit). Began testing
6672 event names against hashes before relaying events.
6673 * test/at.c : now register for events of type "focus:"
6674 * test/app.c : now generate events of type "focus:"
6675 * at-bridge/bridge.c : register with ATK for focus events,
6676 and we now relay those focus events to any "focus:" listeners.
6677 This now works with the bridge as a GTK_MODULE when running test/at.
6678 * libspi/registry.c :
6679 * libspi/listener.c :
6680 now we ref event sources before propagating, and unref on receipt.
6681 * libspi/registry.c :
6682 some changes to internal structs, to support event typestring hashes.
6683 * text/app.c : changed the way the appname is generated.
6684 * cspi : added directory that will hold the C bindings library for
6685 non-CORBA/bonobo-savvy clients.
6686 * cspi/spi.h : header file that contains the function prototypes for the C binding.
6687 * idl/Component.idl : added in parameter to indicate coord system for
6688 geometry-related calls.
6689 * idl/Hyperlink.idl : added readonly n_links attribute
6690 * idl/Image.idl : changed methods to attributes.
6692 2001-08-15 Mark McLoughlin <mark@skynet.ie>
6694 * at-bridge/Makefile.am: link against
6695 ../libspi/libspi.la instead of -lspi.
6697 * at-spi/test/app.c: include
6698 bonobo-activation.h. Use a default appname
6699 if one is not provided.
6701 2001-08-14 Bill Haneman <bill.haneman@sun.com>
6703 * idl/Registry.idl : temporarily changed register_Application
6704 to oneway, to work around issue with initial registration
6706 * idl/Application.idl : changed attribute "id" from readonly
6707 to read-write, since it needs to be assigned by Registry.
6708 * registryd/registryd.c : added call to set application id
6710 * registryd/registry.c : changed de-registration procedure to
6711 use CORBA_Object_hash() to find matching object ref in application
6712 lists and listener lists.
6713 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
6714 began distinguishing between event types (work in progress).
6716 2001-08-13 Bill Haneman <bill.haneman@sun.com>
6719 * libspi/application.c:
6720 Added implementations for get/set id, get_toolkitName,
6722 * registryd/registryd.c :
6726 Converted from use of OAF to bonobo-activation.
6727 * libspi/desktop.h :
6728 * libspi/desktop.c :
6730 Removed references to atksimpleobject, since base atkobject
6731 implementation now provides functionality we need.
6732 * libspi/atksimpleobject.c :
6733 * libspi/atksimpleobject.h :
6738 * at-bridge/Makefile.am
6739 * at-bridge/bridge.c
6742 Added directory "bridge" and contents, and added dependencies
6743 in Makefile.am/configure.in.
6744 Initial checkin of "at-bridge".
6745 This code is a GTK_MODULE which automatically registers
6746 GTK+ apps with the accessibility registry, using an object
6747 reference to the root ATK object.
6749 2001-08-10 Mark McLoughlin <mark@skynet.ie>
6751 * po/Makefile.in.in: Remove. Again. If this
6752 doesn't get autogenerated - you need to update
6755 2001-08-07 Mark McLoughlin <mark@skynet.ie>
6757 * po/Makefile.in.in: Add. Again.
6759 2001-07-31 Bill Haneman <bill.haneman@sun.com>
6761 * libspi/accessible.c : added support for 'description' property.
6762 * libspi/accessible.c
6764 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
6765 (since the two are now equivalent in libbonobo)
6773 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
6774 Bonobo::Unknown as does Accessibility::Accessible.
6775 * idl/StreamableContent.idl : as above, and replaced internal InputStream
6776 interface with Bonobo::Stream, since it was redundant with it.
6777 (The Stream returned by a StreamableContext object is expected to
6778 implement only a subset of Bonobo::Stream)
6780 2001-07-28 Anders Carlsson <andersca@gnome.org>
6782 * libspi/accessible.c (accessible_object_finalize): Change
6783 g_free to g_object_unref since the AtkObject is a GObject.
6785 2001-07-30 Bill Haneman <bill.haneman@sun.com>
6787 * idl/Accessibility.idl: add new IDL files
6790 * idl/Action.idl: Definitions of actionable UI object
6791 * idl/Component.idl: Definitions of UI component geometry, etc.
6792 * idl/Hyperlink.idl: Defs of hyperlink behavior
6793 * idl/Image.idl: Def of accessible image
6794 * idl/Selection.idl: Definition of UI object with selectable children
6795 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
6796 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
6797 * idl/Text.idl: Interface defs for UI elements with complex textual content
6798 * idl/Value.idl: Definition of UI element that is a value controller or display
6800 2001-07-27 Michael Meeks <michael@ximian.com>
6802 * po/Makefile.in.in: remove autogenerated file from CVS.
6804 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
6807 * idl/Registry.idl: include guard.
6809 * idl/Accessibility.idl: Add, and include all the other IDL
6812 * idl/*.idl: remove mass of pragmas etc.
6814 2001-07-26 Michael Meeks <michael@ximian.com>
6816 * registryd/Makefile.am (registryd_SOURCES): remove
6819 2001-07-27 Mark McLoughlin <mark@skynet.ie>
6821 * libspi/.cvsignore, registryd/.cvsignore,
6822 test/.cvsignore: updated.
6824 * po/Makefile.in.in: gettext update.
6826 2001-07-25 Bill Haneman <bill.haneman@sun.com>
6828 * initial CVS checkin
6830 2001-06-29 Michael Meeks <michael@ximian.com>
6832 * configure.in: add AM_CONFIG_HEADER to gen config.h