1 2002-02-04 Bill Haneman <bill.haneman@sun.com>
7 Replaced use of deprecated g_main_iteration with
8 g_main_context_iteration.
10 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
13 Incremented revision for desktop alpha 2.
15 2002-01-28 Mark McLoughlin <mark@skynet.ie>
17 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
20 * test/simple-at.c: include netinet/in.h.
22 2002-01-24 Mark McLoughlin <mark@skynet.ie>
24 * cspi/spi_accessible.c: (Accessible_getRelationSet):
25 use NULL, not CORBA_OBJECT_NIL.
27 * libspi/accessible.c:
28 (impl_accessibility_accessible_get_relation_set):
29 allocate the sequence correctly.
31 * libspi/remoteobject.h: kill spi_remote_object_new.
33 * test/test-simple.c: (validate_accessible): add code
34 to test relation sets, now all we need is to figure
35 out how to excercise this code path :/
37 2002-01-18 Michael Meeks <michael@ximian.com>
40 (key_listener_cb): consume the key.
41 (test_keylisteners): update.
42 (main): wait for any pending unrefs on events.
44 * registryd/deviceeventcontroller.c
45 (spi_controller_update_key_grabs): only re-issue the
46 grab on a key release.
47 (spi_device_event_controller_forward_key_event):
48 refresh the keygrabs before we notify the listeners,
49 to reduce the X ungrab / re-grab race.
50 (spi_controller_register_with_devices): remove
51 XSelectInput - we do that with the gdk_window_ call.
52 (_spi_controller_device_error_handler): return a value.
53 s/GDK_DISPLAY/spi_get_display/
55 2002-01-17 Michael Meeks <michael@ximian.com>
57 * registryd/deviceeventcontroller.c
58 (_deregister_keygrab): don't blow out the later
61 * test/test-simple.c (test_keylisteners): do a
62 more intelligent validation.
64 2002-01-14 Michael Meeks <michael@ximian.com>
67 (gnome_accessibility_module_init),
68 (gnome_accessibility_module_shutdown): impl.
69 (gtk_module_init): protect vs. double inits.
70 (add_signal_listener): impl.
71 (spi_atk_bridge_state_event_listener): kill
72 (deregister_application): split out of
73 (spi_atk_bridge_exit_func): here.
75 2002-01-18 Bill Haneman <bill.haneman@sun.com>
78 Added caret tracking when using magnifier, and
79 now use text bounds for focus tracking of text elements, rather than
80 the component bounds - this is helpful for short text fields in long
81 table cells, at high magnification.
83 2002-01-16 Bill Haneman <bill.haneman@sun.com>
85 * registryd/deviceeventcontroller.c:
86 Regression fix for keylistener de-registration; global keygrabs
87 were not being released when deregisterKeystrokeListener was
89 Accessibility_DeviceEventController_deregisterKeystrokeListener
90 was called with a zero-length keyset. That is because the cspi
91 method, SPI_deregisterKeystrokeListener, does not take a keyset
92 parameter but instead should remove all the key grabs held be a
94 The code in impl_deregister_keystroke_listener was changed to copy
95 the keylist from the listener instance previously registered with
96 the DeviceEventController before releasing the grabs.
98 * registryd/registry.c:
99 * registryd/deviceeventcontroller.c:
100 * libspi/spi-private.h:
102 Changed spelling of "re-enterant" to "re-entrant" globally.
104 2002-01-16 Bill Haneman <bill.haneman@sun.com>
106 * test/test-simple.c:
107 Changed key listeners test - the test was slightly mis-using the
108 (admittedly poorly documented) SPI_generateKeyboardEvent API.
109 It now uses '=' as the key event listened to and generated,
110 relying on a keysym match rather than assuming that keycode 33
111 is always equal to keysym '!'.
113 2002-01-15 Bill Haneman <bill.haneman@sun.com>
116 Changed simple-at to use a specific keyset, rather than
117 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
118 manager, desktop, etc.
120 2002-01-11 Bill Haneman <bill.haneman@sun.com>
122 * registryd/deviceeventcontroller.c:
123 Replaced standard X error handler with a special handler that
124 is non-fatal for failed keygrabs. This works around
125 problems with keygrab clashes sometimes observed on
127 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
128 mouse handling code as yet).
130 2002-01-11 Bill Haneman <bill.haneman@sun.com>
133 Incremented revision for desktop alpha release.
136 Fixed a couple of the more glaring errors (still not
139 2002-01-11 Michael Meeks <michael@ximian.com>
141 * registryd/deviceeventcontroller.c
142 (spi_device_event_controller_forward_key_event): kill
143 XUngrabKey / XKeyGrab race.
144 (spi_controller_grab_keyboard): rename to
145 (spi_controller_update_key_grabs): this, and deal
146 with incremental adding / removing grabs more
148 (_register_keygrab): ensure we're not pending a remove.
149 (spi_grab_mask_free): impl.
150 (spi_controller_register_global_keygrabs): split out
152 (handle_keygrab): impl.
153 (_deregister_keygrab): impl.
154 (spi_controller_deregister_global_keygrabs): impl.
155 (spi_controller_update_key_grabs): re-issue the grab if
156 we just recieved a notification.
158 * test/test-simple.c (key_listener_cb): remove debug.
160 * registryd/deviceeventcontroller.c
161 (spi_controller_register_device_listener): after
162 registering a global keygrab, actualy register it !
163 don't wait for a timeout; doh !
165 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
166 to make it more readable / manipulable.
167 s/grabmask/grab_mask/ s/refcount/ref_count/
168 s/keyval/key_val/ s/modmask/mod_mask
170 2002-01-08 Michael Meeks <michael@ximian.com>
172 * registryd/deviceeventcontroller.c
173 (spi_controller_register_with_devices): use gdk calls to
175 (global_filter_fn): implement the filter.
176 (spi_device_event_controller_check_key_event): rename to
177 (spi_device_event_controller_forward_key_event): this & upd.
178 (spi_get_display): replace with GDK_DISPLAY.
180 * registryd/deviceeventcontroller.c
181 (spi_controller_deregister_device_listener): unroll into
182 (impl_deregister_keystroke_listener): here to simplify.
183 (spi_controller_register_global_keygrabs): split cut and
184 paste (!) out into (_register_keygrab): here, shorter & sweeter.
185 (spi_controller_deregister_device_listener): remove.
186 (impl_register_mouse_listener): remove, no mouse listener
187 support in at-spi-1.0
189 * registryd/registry.c
190 (_device_event_controller_hook): kill.
191 (spi_registry_init): upd.
193 * registryd/deviceeventcontroller.c
194 (spi_device_event_controller_class_init): upd.
195 (spi_check_key_event): merge into.
196 (spi_device_event_controller_check_key_event):
197 here and kill strange static ev init, don't leak
198 the x_event - nor dynamicaly allocate it.
200 * registryd/registry-main.c (main): re-direct
201 timeout to remove strange vtable mess.
203 * registryd/deviceeventcontroller.c
204 (remove_listener_cb): impl.
205 (spi_controller_deregister_device_listener):
206 fix re-enterancy hazard.
208 2002-01-07 Michael Meeks <michael@ximian.com>
210 * registryd/deviceeventcontroller.c
211 (spi_device_event_controller_new): upd.
212 (impl_notify_listeners_sync): upd. debug.
213 (spi_notify_keylisteners): fix re-enterancy hazards,
214 prettify, remove O(n*n) iteration.
215 (spi_controller_grab_keyboard): fix iteration.
216 (spi_check_key_event): re-format to suit coding style.
217 Clean all the warnings - we're warning free.
219 * registryd/deviceeventcontroller.h:
220 * registryd/registry.h: make mutualy referential with
221 typesafe forward references instead of (!) void pointer
224 2002-01-11 Michael Meeks <michael@ximian.com>
226 * cspi/spi_accessible.c (role_names): add a role name
227 to sync this array with the enum; and make the regression
230 2002-01-10 Michael Meeks <michael@ximian.com>
232 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
233 allow expansion of enumeration & kill warning.
235 * test/test-simple.c (key_listener_cb): impl.
236 (test_keylisteners): impl.
238 * cspi/spi-listener.h: make listener signatures const
239 on the provided (const) events.
241 * test/keysynth-demo.c: upd. to const events.
243 * test/simple-at.c: ditto.
245 2002-01-11 Bill Haneman <bill.haneman@sun.com>
248 Rev the version to 0.5 (the previous tarball was named 0.4,
249 even though the micro number was 3), so we need to rev upwards
250 again for beta2/"desktop-alpha"
253 Checked in a demo script, which requires editing before use!
254 Proceed with caution.
257 Fixed typo in header which was redefining SPI_ACTION_CLASS.
259 * cspi/spi_accessible.c:
260 Add a couple of missing enum initializations, and fix some enum
263 * cspi/spi_registry.c:
264 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
266 * docs/reference/cspi/at-spi-cspi-sections.txt:
267 Remove/fix a couple of broken document references.
270 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
271 as Alt-Control to listen for commands, since on some systems
272 Control-Alt may already be grabbed.
274 2002-01-10 Bill Haneman <bill.haneman@sun.com>
277 Update version number to 0.4 for Beta2.
279 * libspi/accessible.c, libspi/accessible.h:
280 Expose spi_accessible_construct, to enable libgail-gnome
281 construction from spi_accessible subtype.
284 Workaround for bug in some non-gnome-compliant window managers
285 which made magnifier resize improperly.
287 2002-01-09 Bill Haneman <bill.haneman@sun.com>
289 * libspi/accessible.c: (spi_accessible_new) :
290 Move the test for SPI_IS_REMOTE_OBJECT to
291 spi_accessible_new_return, fixing a bug and compile time warning.
293 2002-01-08 Michael Meeks <michael@ximian.com>
295 * registryd/registry.c (parse_event_type): remove strndup.
297 * libspi/Makefile.am (libspi_la_SOURCES): remove
298 sources already included in the headers section.
300 * libspi/util.c: add.
302 * libspi/spi-private.h: add.
304 * registryd/registry.c: update to moved list iterators.
306 2002-01-05 Michael Meeks <michael@ximian.com>
308 * test/simple-at.c (main): upd. auto-module set to atk-bridge
310 * test/test-simple.c (main): ditto.
312 2002-01-04 Michael Meeks <michael@ximian.com>
314 * libspi/accessible.c (spi_accessible_new): remove 2nd,
317 * registryd/registry.c
318 (get_listener_list): impl.
319 (impl_accessibility_registry_register_global_event_listener):
320 re-impl. to simplify using ~, remove dodgy const cast off.
321 (parse_event_type): constify.
322 (impl_accessibility_registry_deregister_global_event_listener_all):
323 re-write, more efficiency and simplicity, kill re-enterancy
325 (compare_listener_corbaref, compare_corba_objects),
326 (compare_listener_quarks): define out.
327 (impl_accessibility_registry_deregister_global_event_listener):
328 re-write for effiency, and nail re-enterancy hazard.
329 (impl_accessibility_registry_get_desktop_list): impl.
330 (re_enterant_list_delete_link): impl.
331 (re_enterant_list_foreach): impl.
332 (remove_listener_cb): impl.
333 (_registry_notify_listeners): kill.
334 (notify_listeners_cb): impl.
336 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
337 (SPI_getDesktopList): impl.
339 * test/test-simple.c (test_desktop): test the methods.
341 2002-01-03 Michael Meeks <michael@ximian.com>
343 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
344 keystrings since we free them
345 (SPI_freeAccessibleKeySet): in here.
347 * libspi/accessible.c (spi_accessible_new): kill warning,
348 wonder what is going on with the constructor here.
350 2002-03-01 Bill Haneman <bill.haneman@sun.com>
352 * libspi/accessible.c (spi_accessible_new ()) :
353 Added check to see if AtkObject is an SpiRemoteObject before
354 creating an SpiAccessible.
356 2002-05-01 Bill Haneman <bill.haneman@sun.com>
358 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
359 Enable keygrabs using the Control modifier, now that they are
360 working properly (they were previously disabled).
363 Change the command keygrab for this demo to "Control+Alt", so as
364 to conflict with fewer other key commands on the system; this
365 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
367 Removed a pointlessly-chatty keylistener for unshifted keys
368 (shifted keys are still reported).
370 2002-02-01 Bill Haneman <bill.haneman@sun.com>
372 * libspi/remoteobject.h:
373 * libspi/remoteobject.c:
374 Added definitions for special AtkObject subtype, required for
375 support of remote components (specifically, used by BonoboControl
376 accessibility implementation).
378 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
380 * cspi/spi.h: synched relation types with ATK
382 * cspi/spi_accessible.c: Added implementations of
383 AcccessibleRelation_* methods
385 * idl/Accessibility_Relation.idl: added getRelationTypeName
386 method. Synched known relation types with ATK. Allowed for
387 relation type extension with the RELATION_EXTENDED type.
389 * libspi/relation.c: Provided implementations for
390 AccessibleRelation methods.
392 2002-01-01 Bill Haneman <bill.haneman@sun.com>
394 API tweaks for today's API 'freeze'.
397 Added placeholder functions to allow future compatible expansion
398 of the IDL interfaces.
400 * idl/Accessibility_Registry.idl:
401 Changed generateKeyEvent to generateKeyboardEvent. Changed
402 signature of this method to accept an optional keystring in
403 parameter (for complex text input synthesis) and changed use of
404 simple 'boolean' parameter in registerKeystrokeListener to a
405 struct, EventListenerMode.
407 * cspi/spi_accessible.c:
409 * cspi/spi_streamablecontent.c:
410 Added references to AccessibleStreamableContent interface, and
411 definition and implementation of AccessibleStreamableContent
414 * cspi/spi_registry.c:
416 Changed generateKeyEvent API to generateKeyboardEvent,
417 taking a new (optional) keystring parameter to support complex
422 Renamed directory (to better reflect its actual purpose, bridging
423 from at-spi to ATK). The .so module is also now named
426 * idl/Accessibility_Hypertext.idl:
427 * libspi/accessible.c:
428 * libspi/hypertext.h:
429 * libspi/hypertext.c:
430 Changed Accessibility_Hypertext to *not* derive from
433 * cspi/spi_registry.c:
434 Added list of legal event type names for 'window' events, which
435 completes the registry event API.
437 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
439 * at-bridge/bridge.c: Added registration for separate
440 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
441 signals. If either of the first two parameters to the generic
442 bridge signal handler are ints, they are passed on as event
443 details. This allows an AT to determine what text was inserted.
445 2001-12-21 Bill Haneman <bill.haneman@sun.com>
447 * registryd/deviceeventcontroller.c:
448 Fixed regressions in generateKeyEvent caused by the removal of
449 gdk_init from registryd; we now use pure X calls to connect to the
450 display, which makes sense because deviceeventcontroller already
451 uses a fair bit of X API (should eventually be migrated to a
452 'portability layer').
454 * registryd/desktop.c:
455 Fixed minor regression in spi_desktop_init, changed the way the
456 desktop name is being set to work with new spi_base API
457 (gobject-based, rather than AtkObject-based).
459 * registryd/Makefile.am:
460 Minor revision of makefile to use XTST_LIBS variable rather than
461 hard-wiring the Xtst LD_ADD element.
463 * test/keysynth-demo.c:
464 Tweaked an output message; added initialization of the
465 'keystrings' member of the "switch listener" key_set.
468 Squashed compile-time warning.
470 * libspi/accessible.c:
471 Cosmetic and formatting fixes, renamed a static method.
473 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
475 * libspi/accessible.c
477 * libspi/application.c
481 * libspi/editabletext.c
489 * registryd/desktop.c:
490 Changed SpiBase to contain a GObject pointer rather than an AtkObject
492 2001-12-17 Bill Haneman <bill.haneman@sun.com>
494 * idl/Accessibility_Registry.idl:
495 Added boolean member 'is_text' to DeviceEvent. This is for the
496 use of key events, and helps prevent ambiguity between composed
497 key strings and keysym names, since both may potentially be
498 returned in the 'event_string' member.
500 * at-bridge/bridge.c:
501 * registryd/deviceeventcontroller.c:
502 Use the 'is_text' member when notifying device event listeners.
503 Knon issue: composed characters are not dealt with correctly by
504 the global key listener implementation yet.
506 2001-12-17 Bill Haneman <bill.haneman@sun.com>
508 * at-bridge/bridge.c:
509 Namespaced local static methods to spi_atk_bridge_* where
510 previously named bridge_*, and spi_* elsewhere.
512 * at-bridge/bridge.c:
513 * cspi/bonobo/cspi-bonobo-listener.c:
514 Added demarshalling/conversion for string member of
515 Accessibility_DeviceEvent to AccessibleKeystroke.
517 * registryd/deviceeventcontroller.c:
518 Added code to fill the Accessibility_DeviceEvent key string value
519 member for global key events (i.e. from XGrabKey), to match
520 behavior of Accessibility_DeviceEvent from the toolkit key events
521 from the bridge. Fixed timestamp in global key event notifications.
524 Added printout of key event's string value to
525 report_ordinary_key_event, for demo/debugging purposes.
527 2001-12-15 Bill Haneman <bill.haneman@sun.com>
529 * idl/Accessibility_Registry.idl:
530 Removed Accessibility_KeyStroke structure in favor of generic
531 Accessibility_DeviceEvent structure.
532 Changed Accessibility_ControllerEventMask from a struct to an
535 * at-bridge/bridge.c:
536 Changed APIs to use DeviceEvent structure as above, and removed
537 bogus casting between these event structures.
539 * cspi/spi-listener.h:
540 Added keystring member of AccessibleKeystroke structure, to enable
541 matching on event "names" rather than only hardware codes and
545 Added keystrings member of AccessibleKeySet struct, to allow
546 matching on event names (as above).
547 Added declarations for SPI_createAccessibleKeySet and
548 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
549 event modmasks directly as unsigned ints rather than structs with
550 refcounts, in the DeviceEventController methods.
552 * cspi/spi_registry.c:
553 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
555 * cspi/spi-roletypes.h:
556 Added documentation of newly added SPI Roles.
558 * cspi/bonobo/cspi-bonobo-listener.c:
559 Changes in support of API changes above.
561 * libspi/accessible.c:
562 Converted APIs to use DeviceEvent structure (see IDL changes
565 * registryd/deviceeventcontroller.c:
566 Added DEControllerGrabMask structure to track keygrabs not only by
567 modmask but by keyset as well; this allows us to do "global"
568 (i.e. X) keygrabs on a per-key or keyset basis rather than always
569 grabbing on AnyKey and then filtering after-the-fact.
570 Bugfixes for event filtration mean that we don't get false matches
571 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
573 * registryd/deviceeventcontroller.c:
574 Namespaced a number of static methods to use spi_ prefix. Major
575 revision to internals of global (i.e. X) key grabs.
577 * registryd/deviceeventcontroller.h:
578 Removed keymask_list and added keygrabs_list to
579 SpiDeviceEventController struct.
582 Added use of SPI_createAccessibleKeySet API when creating a
583 listener for only one key. Attach a listener to "shift spacebar
584 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
585 X key event names to SPI key event names, so that listeners are
586 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
588 * test/keysynth-demo.c:
589 Changed (incorrect) use of X key event names (KeyPressed,
590 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
593 2001-12-12 Bill Haneman <bill.haneman@sun.com>
595 * libspi/accessible.c:
596 Convert all AtkRole enumerations to Accessibility_Role enums when
597 getting a role from an AtkObject.
599 * cspi/spi_accessible.c:
600 Complete the conversion of Accessibility_Role enums at runtime to
601 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
602 role enums correctly match those given in spi-roletypes.h.
603 Re-synchronize the local names list for AccessibleRole_getName ().
604 AccessibleRole_getName is now deprecated, since it duplicates the
605 more reliable Accessible_getRoleName.
606 Added some role types from Accessibility_Role.idl.
608 * idl/Accessibility_Role.idl:
609 Added some role types used by AtkRole.
611 2001-12-12 Bill Haneman <bill.haneman@sun.com>
614 * cspi/spi_registry.c:
616 * cspi/cspi-bonobo-listener.c:
617 Namespaced all methods that did not begin with an "SPI_" or
618 "Accessible" prefix to "SPI_".
621 Homogenized internal function namespace to "cspi_" for statics.
624 Patched tests to use the new CSPI API.
626 * docs/reference/cspi/at-spi-cspi-sections.txt:
627 Updated docs to reflect namespace changes, and added a number of
628 methods to the documentation.
630 * registryd/registry.c:
631 Changed use of strings and string hashes in listener event
632 matching and parse_event_string to use GQuark, which is guaranteed
635 * registryd/registry.h:
636 Squashed annoying warning.
638 * idl/Accessibility_Role.idl:
639 Extended range of available Accessibility_Role values.
641 * cspi/spi_accessible.c:
642 Re-ordered role names.
644 2001-12-12 Bill Haneman <bill.haneman@sun.com>
646 * idl/Accessibility_Value.idl:
647 Revert use of union back to CORBA_double, since the double type is
648 more efficient and can contain the other types without loss of
651 * idl/Accessibility_Accessible.idl:
652 Added method Accessibility:Accessible:getRoleName, to complement
653 Accessibility:Accessible:getRole.
655 * cspi/spi_accessible.c:
657 Added C binding for above, Accessible_getRoleName (), and changed
658 signature of Accessible_getRole () to return an AccessibleRole.
660 * cspi/spi-roletypes.h:
661 Changed AccessibleRole_getName to return a char * instead of a
662 const char *. This method is now at least temporarily deprecated
663 in favor of asking Accessibles for their RoleNames directly.
666 Revert to match Accessibility_Value.idl;
670 Change signature of AccessibleValue methods to use double rather
674 * cspi/spi_accessible.c:
675 Changed Accessible_getRole to return an AccessibleRole enum rather
676 than a UTF-8 string. The UTF-8 string can still be obtained via
677 AccessibleRole_getName ().
679 * test/test-simple.c:
680 Add test_action. Small fixup to match API change to Accessible_getRole.
683 Bugfix for get_action_from_servant ().
685 2001-12-11 Michael Meeks <michael@ximian.com>
687 * libspi/libspi.h: remove registry.h and
688 desktop.h, deviceeventcontroller.h
690 * libspi/Makefile.am: remove registry.[ch],
691 desktop.[ch], deviceeventcontroller.[ch]
693 * registryd/Makefile.am: add registry.[ch],
694 desktop.[ch], rename registryd.c to registry-main.c.
695 add deviceeventcontroller.[ch]
697 2001-12-11 Bill Haneman <bill.haneman@sun.com>
700 Replace setenv() call with putenv ().
702 * libspi/component.c:
703 Bugfix in AccessibleComponent_getExtents (),
706 2001-12-11 Michael Meeks <michael@ximian.com>
708 * libspi/image.c (impl_getImageExtents): impl.
709 (spi_image_class_init): upd.
712 (AccessibleImage_getImageDescription): fix daft bug
715 * test/test-simple.c (global_listener_cb): update
716 to only quit if not --poke
717 (main): catch --poke.
718 (validate_accessible): upd. dumping, call test_image
721 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
724 * idl/Accessibility.idl: update all IDL includes.
726 * idl/*.idl - rename to namespace - this sucks, blame
727 mjs' bad decision for oafd.
729 * test/test-simple.c (create_test_window): add more tests.
730 (create_tree): split this out.
731 (validate_accessible): bugfix.
733 2001-12-11 Michael Meeks <michael@ximian.com>
735 * cspi/bonobo/cspi-bonobo-listener.c:
736 (cspi_kestroke_listener_unref),
737 (cspi_event_listener_unref): impl. undoing previous
738 homenous environment - for Bill.
740 * cspi/spi_table.c (long_seq_to_array): use
743 * cspi/spi_main.c: split out all bonoboish bits into
746 * cspi/spi-impl.h: upd. typedefs.
748 * cspi/spi_registry.c: update to lowlevel API,
749 return booleans to indicate success in some places.
751 * cspi/spi_event.c: update to lowlevel API.
753 * cspi/bonobo/Makefile.am: add.
755 * cspi/bonobo/cspi-lowlevel.h: add
757 * cspi/bonobo/cspi-bonobo.c: add
759 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
761 * cspi/Makefile.am: remove spi-listener-impl.[ch],
762 (SUBDIRS): add bonobo, link in the libs.
764 * cspi/spi-util.c: kill this file.
766 * TODO: merge in my bits.
768 2001-12-11 Michael Meeks <michael@ximian.com>
770 * test/test-simple.c (test_value, test_table, main):
771 remove unused variables causing warnings.
773 * configure.in: cleanup checks - require gail.
775 2001-12-11 Bill Haneman <bill.haneman@sun.com>
778 Changed Value interface to use SValue (scalars) rather than
779 assuming all values are floats. This allows floats, doubles,
780 longs, shorts, and unsigned values to be manipulated.
781 Introduced Accessibility:SValue union.
784 Updated to use new API above, and to work correctly with GValues
785 of different types in AtkValue.
788 Updated to use new API above. cspi's API is as yet unchanged.
791 Updated the Value revision action item.
793 2001-12-10 Bill Haneman <bill.haneman@sun.com>
795 * test/test-simple.c:
796 Added test_table (GtkTreeView widget in test window to follow).
797 Un-commented test_value, added GtkRange widget.
798 Added GtkTreeView widget with GtkListStore. It passes regression
799 test but leaks one SPI object for some reason.
802 Fixed bug in impl__set_currentValue.
804 2001-12-10 Michael Meeks <michael@ximian.com>
806 * cspi/spi_text.c: audit for exception handling,
807 tolerating NULL object references safely etc.
809 * cspi/spi_value.c: ditto.
811 * cspi/spi_table.c (AccessibleTable_getSummary),
812 (AccessibleTable_getAccessibleAt),
813 (AccessibleTable_getRowHeader),
814 (AccessibleTable_getColumnHeader),
815 (AccessibleTable_getCaption): fix bugs hidden by
817 (long_seq_to_array): impl.
818 (AccessibleTable_getSelectedRows),
819 (AccessibleTable_getSelectedColumns): use it.
821 2001-12-10 Bill Haneman <bill.haneman@sun.com>
824 Added a TODO list (rough and short for now).
826 * cspi/spi_hyperlink.c:
827 * cspi/spi_hypertext.c:
828 Fixed macro name typos, and remove use of obsolete macro in
829 AccessibleHyperlink_getLink.
832 * cspi/spi_accessible.c:
833 * cspi/spi_application.c:
834 * cspi/spi_component.c:
835 * cspi/spi_selection.c:
838 Documentation fixes (removed return values from ref/unref methods).
840 2001-12-10 Michael Meeks <michael@ximian.com>
842 * cspi/spi_action.c: audit for exception handling,
843 tolerating NULL object references safely etc.
845 * cspi/spi_accessible.c: ditto.
847 * cspi/spi_component.c: ditto.
849 * cspi/spi_editabletext.c: ditto.
851 * cspi/spi_hyperlink.c: ditto.
853 * cspi/spi_hypertext.c: ditto.
855 * cspi/spi_image.c: ditto.
857 * cspi/spi_selection.c: ditto.
859 2001-12-10 Michael Meeks <michael@ximian.com>
861 * configure.in: use cspi/libspi.pc.in instead.
863 * Makefile.am (pkgconfig_DATA): upd. to match.
865 * test/simple-at.c (report_focus_event): kill hacks around
866 bad return values, use putenv not setenv
868 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
869 fire ChildGone - I killed it.
872 (impl_accessibility_component_get_extents): remove
875 * idl/Accessible.idl: kill ChildGone exception.
877 * cspi/*.[ch]: kill int return from ref / unref.
879 * cspi/spi_main.c (cspi_object_add_check): fold into
880 (cspi_object_add): here.
882 * cspi/spi_component.c (AccessibleComponent_getExtents):
883 handle exceptions elegantly.
885 * cspi/spi-private.h (cspi_check_ev_return),
886 (cspi_return_if_fail): impl.
888 * cspi/spi_accessible.c: use extensively.
889 (AccessibleStateSet_equals): add direct compare check.
891 * cspi/spi_selection.c: tolerate NULL objs, and check
892 exceptions before return.
894 * cspi/spi-util.c (cspi_warn_ev): rename to
895 (cspi_check_ev): this & don't pass ev in; no point.
897 2001-12-10 Michael Meeks <michael@ximian.com>
899 * test/test-simple.c: use putenv not setenv
900 (get_environment_vars): more chatty if you're not using
903 * test/simple-at.c: do the setenv so more people see the
906 2001-12-10 Bill Haneman <bill.haneman@sun.com>
909 Changed check of CORBA_environment on notification to be a warning
910 instead of an error for the moment, since we can recover from this
911 error when caused by a queued notification from a dead app.
914 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
915 used by all current implementors of AtkValue), and coerce to
916 CORBA_float. (Proper general case fix may require change to Value.idl).
918 2001-12-09 Bill Haneman <bill.haneman@sun.com>
922 * cspi/spi_accessible.c:
923 Documentation fixes: added user_data params to documentation for
924 listeners and callbacks.
926 * cspi/spi_accessible.c:
927 Changed AccessibleStateSet_compare to return a
928 StateSet rather than return the difference set into a third parameter.
931 2001-12-09 Bill Haneman <bill.haneman@sun.com>
934 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
935 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
939 Remove subdirectory po from SUBDIRS for now.
941 * at-bridge/bridge.c:
942 Beefed up a couple of debug printouts.
943 One-line fix for signal notification name formatting.
945 * libspi/accessible.c:
946 Added assertion to spi_accessible_new ().
948 * libspi/application.c:
949 Put #ifdef qualifiers around a printf.
952 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
954 * registryd/Makefile.am:
956 Replaces use of XML_I18N_MERGE_SERVER_RULE with
957 INTLTOOL_SERVER_RULE macro.
960 Added an event listener for several ATK signals, for
961 testing and debugging. Removed a few g_warnings.
962 Added test output if focussed item implements the Value interface.
964 * test/test-simple.c:
965 Added test_value () function (known not to pass at the moment, so
966 not actually called yet.
968 2001-12-08 Michael Meeks <michael@ximian.com>
970 * at-bridge/bridge.c (bridge_focus_tracker),
971 (emit_eventv): fix the same ref. leak.
972 (register_atk_event_listeners): don't leak.
974 * cspi/spi-listener-impl.c (cspi_event): more
975 protection from client code.
977 * test/test-simple.c (test_desktop): unref the app.
979 * test/Makefile.am: upd. TESTS.
981 * at-bridge/bridge.c (bridge_exit_func): release the registry.
983 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
985 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
987 * cspi/spi_registry.c: constify in strings.
988 (deregisterGlobalEventListenerAll): don't release the ref.
990 * cspi/spi.h: start removing redundant / conflicting
991 gtkdoc comments, making the API readable at a glance :-)
993 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
995 * test/keysynth-demo.c (keysynth_exit, main): upd.
997 * test/simple-at.c (main, simple_at_exit): upd.
999 * test/test-simple.c (unutterable_horror): kill.
1000 (utterable_normal_derefs): kill.
1001 (main): upd & do a setenv before gtk_init, so that we
1002 can use memprof - and to save the pain of remembering
1003 this, if we're running under memprof - don't exit.
1005 * cspi/spi_main.c (SPI_exit): return exit status
1007 (SPI_event_quit): impl.
1008 (SPI_event_main): simplify.
1009 (cspi_is_gnome_app): kill.
1010 (SPI_init): kill isGNOMEapp arg.
1012 * at-bridge/bridge.c (register_atk_event_listeners):
1013 re-instate the unref.
1014 (bridge_exit_func): don't re-activate the registry,
1015 protect vs. theoretical re-entry, use the
1016 AT_BRIDGE_SHUTDOWN env. var to determine whether to
1017 assert a clean shutdown - for regression tests.
1019 2001-12-08 Abel Cheung <maddog@linux.org.hk>
1021 * configure.in: Comment out dummy i18n support for now,
1022 otherwise it fails to build.
1023 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
1024 EXTRA_DIST. They are missing in tarball.
1026 2001-12-07 Michael Meeks <michael@ximian.com>
1028 * util/magnifier.c: kill bonobo activation reg. race.
1030 * libspi/component.c
1031 (impl_accessibility_component_get_extents): make it match
1034 * libspi/registry.c (_registry_notify_listeners):
1035 re-remove X headers & reconcile conflicts.
1036 (spi_listener_struct_free): bad conflict resolve.
1037 (impl_accessibility_registry_register_application):
1038 more bad merging fixed.
1039 (impl_accessibility_registry_deregister_application): ditto.
1040 (spi_registry_new): ditto.
1041 (spi_registry_init): don't have an applications field.
1043 [ merge fixups2 branch to here ]
1044 2001-12-07 Michael Meeks <michael@ximian.com>
1046 * test/simple-at.c (report_focus_event),
1047 (report_focussed_accessible): remove g_warning debug.
1049 2001-12-07 Michael Meeks <michael@ximian.com>
1051 * test/test-simple.c (validate_tree): comment out some checks.
1052 (test_desktop): app now not registered idly - horay.
1054 2001-12-07 Michael Meeks <michael@ximian.com>
1056 * cspi/spi_registry.c
1057 (registerAccessibleKeystrokeListener): clean, stop it leaking
1058 great swathes of memory, and device event controller references.
1059 ensure we always pass valid sequences.
1060 (deregisterAccessibleKeystrokeListener): ditto.
1061 (generateKeyEvent): upd.
1063 * at-bridge/bridge.c (bridge_key_listener): handle
1064 registry dead exception gracefully.
1065 (bridge_focus_tracker, emit_eventv): free ev.
1067 * test/simple-at.c (report_focus_event): fix polarity.
1069 * libspi/application.c (notify_listeners): kill the ev
1070 argument, and make sure we init the ev we use.
1071 (spi_application_object_event_listener): split out a chunk
1072 (get_atk_object_ref): here & fixup.
1073 (reverse_lookup_name_for_toolkit_event): make const.
1074 (spi_application_toolkit_event_listener): fixup, kill leaks
1077 * at-bridge/bridge.c (register_atk_event_listeners):
1078 don't unref the noop object - causes grief.
1080 * libspi/registry.c: remove the X headers.
1081 turn off the debug churn.
1083 * libspi/accessible.c (spi_accessible_new_return): only
1084 release the ref if we are supposed to [doh]
1086 * test/simple-at.c (report_button_press, report_focus_event):
1087 guard vs. unexpected exit.
1089 * at-bridge/bridge.c (gtk_module_init): prune printf.
1090 (bridge_exit_func): fix app unref.
1092 * libspi/Makefile.am: don't install registry or desktop.h
1094 * libspi/*.h: update includes.
1096 * libspi/application.h: don't include ourself, or
1097 other redundant headers.
1099 2001-12-06 Michael Meeks <michael@ximian.com>
1101 * libspi/accessible.c
1102 (get_accessible_from_servant): impl.
1103 Upd. all CORBA impl.s to use it killing cut and paste.
1105 * cspi/spi_main.c (cspi_cleanup): guard vs. double
1107 (SPI_init): register atexit cleanup handler here.
1109 2001-12-06 Michael Meeks <michael@ximian.com>
1111 * at-bridge/bridge.c (gtk_module_init): g_error on
1112 activation exception
1114 2001-12-06 Michael Meeks <michael@ximian.com>
1116 * at-bridge/bridge.c (gtk_module_init): some sort of
1117 confusing merge clash - reverted.
1118 (bridge_idle_init): ditto.
1120 * test/test-simple.c (main, utterable_normal_derefs):
1121 merge from Bill - somehow not committed.
1123 2001-12-06 Michael Meeks <michael@ximian.com>
1125 * libspi/value.c (spi_value_class_init): upd.
1126 (spi_value_finalize): kill.
1128 * libspi/table.c (spi_table_finalize): kill.
1129 (spi_table_interface_new): upd.
1130 (spi_table_class_init): upd.
1131 (get_table_from_servant): impl.
1132 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1134 * libspi/selection.c (spi_selection_finalize): kill.
1135 (spi_selection_interface_new): upd.
1136 (spi_selection_class_init): upd.
1137 (get_selection_from_servant): impl.
1138 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1140 * libspi/relation.c (spi_relation_finalize): kill.
1141 (spi_relation_class_init, spi_relation_new): upd
1143 * libspi/image.c (spi_image_finalize): kill.
1144 (spi_image_class_init): upd.
1145 (spi_image_interface_new): upd.
1146 (get_image_from_servant): impl.
1147 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1149 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
1150 (spi_hyperlink_finalize): kill.
1151 (spi_hyperlink_new): upd.
1152 (get_hyperlink_from_servant): impl.
1153 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1155 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
1156 (spi_hypertext_finalize): kill.
1157 (spi_hypertext_class_init): upd.
1158 (get_hypertext_from_servant): impl.
1159 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1161 * libspi/editabletext.c (spi_editable_text_finalize): kill.
1162 (spi_editable_text_interface_new): upd.
1163 (get_editable_text_from_servant): impl.
1164 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1166 * libspi/text.c (get_text_from_servant): impl.
1167 All impls - update to use it killing more cut and paste,
1168 also fix bad string returns on duff args ( a somewhat
1169 impossible case to handle - but hey ).
1170 (spi_text_construct): impl.
1171 (spi_text_interface_new): upd.
1172 (spi_text_object_finalize): kill.
1174 * libspi/component.c
1175 (accessibility_component_object_finalize): kill.
1176 (spi_component_class_init): upd.
1177 (get_component_from_servant): impl. helper to kill cut & paste.
1178 (impl_accessibility_component_contains):
1179 (impl_accessibility_component_get_accessible_at_point):
1180 (impl_accessibility_component_get_position):
1181 (impl_accessibility_component_get_extents):
1182 (impl_accessibility_component_get_mdi_z_order):
1183 (impl_accessibility_component_get_layer):
1184 (spi_component_interface_new): upd.
1186 * libspi/action.c (spi_action_finalize): kill.
1187 (spi_action_class_init): upd. inherit from SpiObject.
1188 (spi_action_interface_new): upd.
1189 (get_action_from_servant): impl. helper to reduce cut & paste.
1190 (impl_getKeyBinding, impl_getName, impl_doAction),
1191 (impl_getDescription): Use it everywhere.
1193 * cspi/spi_main.c (get_live_refs): a pointer hash.
1194 (spi_object_hash, spi_object_equal): comment out.
1195 There are issues with CORBA object hashing that need
1198 * libspi/application.c (spi_application_init),
1199 (spi_application_new): upd.
1201 * libspi/accessible.c (spi_accessible_object_finalize): kill.
1202 (spi_accessible_class_init): upd.
1203 s/accessible/object/ in epv methods.
1205 2001-12-05 Bill Haneman <bill.haneman@sun.com>
1207 * at-bridge/bridge.c:
1208 Reorder the bridge initialization into the bridge gtk_module_init,
1209 an immediate call to bridge_register_app, and an idle_add for
1210 register_atk_event_listeners (the only code that *must* wait until
1211 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
1212 the activation, creates the application's Accessible object, and
1213 queues the bridge_idle_init function. Restored call to
1214 Accessibility_Registry_deregisterApplication().
1215 Prior to making this call we obtain a new reference to the
1216 registry, which is a temporary hack that helps us handle apps that
1217 shut down the bonobo mainloop before we get there.
1219 * libspi/registry.c:
1220 Fix string leakage in debug block, and don't segv if a an app
1221 dies before its event notifications have been propagated.
1224 Modify cspi_check_ev() to call g_warning() rather than g_error(),
1225 as stopgap measure until we get proper exception handling when
1226 objects die during or before interrogation.
1230 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
1231 Also changed default value of is_gnome_app to TRUE.
1234 * test/keysynth-demo.c:
1235 Changed use of SPI_init and SPI_event_main to reflect API change above.
1238 Made report_focus_event check the warning value from getName
1239 before reporting on focussed accessible; simplifies handling of
1240 notifications from dead objects.
1242 * test/test-simple.c: (Changes not in this patch since source is
1245 2001-12-05 Michael Meeks <michael@ximian.com>
1247 * registryd/registryd.c (main): protect against
1248 bonobo-activation startup race condition.
1250 * cspi/spi_main.c (cspi_object_add_check): cope
1251 with the exception elegantly.
1253 * idl/Accessible.idl: decl. ChildGone
1255 * libspi/desktop.c (spi_desktop_dispose): impl.
1256 (spi_desktop_class_init): upd.
1257 (spi_desktop_add_application),
1258 (spi_desktop_remove_application),
1259 (abnormal_application_termination): impl.
1260 (impl_desktop_get_child_at_index): re-impl.
1263 (impl_accessibility_registry_deregister_application),
1264 (impl_accessibility_registry_register_application):
1265 kill excessive debug clutter.
1267 * test/test-simple.c (test_misc): test some NULL
1268 tolerance. (main): upd.
1270 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
1271 implements no interfaces - so let's not crash.
1273 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
1275 * libspi/accessible.c (spi_accessible_new_return): impl.
1276 helper to calm the cut and paste, to cope with
1277 NULL AtkObjects effectively and efficiently, and to kill
1278 the referencing bugs.
1280 * libspi/table.c (impl_getAccessibleAt),
1281 (impl_getRowHeader, impl_getColumnHeader): upd.
1283 * libspi/hyperlink.c (impl_getObject): upd.
1285 * libspi/accessible.c
1286 (impl_accessibility_accessible_get_child_at_index): upd.
1288 * libspi/component.c
1289 (impl_accessibility_component_get_accessible_at_point): upd.
1291 * test/test-simple.c (test_editable_text, test_text): impl.
1294 * cspi/spi_editabletext.c
1295 (AccessibleEditableText_insertText): constify.
1297 * test/test-simple.c (focus_me): make more robust.
1299 * libspi/accessible.c: remove some printfs in methods that
1300 we test and work fine, so we can get a clean tree dump.
1302 * test/test-simple.c (validate_accessible),
1303 (validate_tree): make tree dumping pretty too.
1305 * at-bridge/bridge.c (bridge_signal_listener): upd. so
1306 it builds without debug on.
1308 * test/test-simple.c (validate_accessible): fix the most
1311 * cspi/spi_main.c (spi_object_release): leave the nicely
1312 blanked memory around if in debug mode.
1314 * cspi/spi-listener-impl.c (cspi_event): use add_check.
1316 [committed to fixups2]
1317 2001-12-05 Michael Meeks <michael@ximian.com>
1319 * libspi/editabletext.c
1320 (spi_editable_text_class_init): g_type_class_peek_parent,
1321 not interface peek - so we finalize cleanly.
1323 * libspi/accessible.c (spi_accessible_new): kill debug.
1325 * test/test-simple.c (validate_accessible): fix ref.
1326 leak, print strings before freeing them; sigh, comment a
1327 chunk out due to strangeness.
1328 (validate_tree): unref the child after use.
1330 * cspi/spi_component.c (AccessibleComponent_getLayer):
1331 add missing break statement, switch on zlayer not the
1332 uninitialized retval.
1334 * cspi/spi_main.c (cspi_object_add): add assert, local ref
1335 before (possibly re-entering) remote unref.
1337 * test/simple-at.c (main): unref the desktop.
1339 * cspi/spi_accessible.c (cspi_accessible_is_a): move
1342 * cspi/spi_main.c (cspi_accessible_is_a): here to
1343 isolate bonobo API usage more.
1345 * libspi/registry.c (impl_accessibility_registry_register_application):
1346 prune bogus comment.
1348 2001-12-04 Michael Meeks <michael@ximian.com>
1350 * test/test-simple.c (validate_tree): upd.
1351 IndexInParent check to make it more lucid.
1352 (validate_accessible): dump the tree.
1354 * libspi/accessible.c (de_register_public_ref),
1355 (get_public_refs): impl.
1356 (spi_accessible_new): make more efficient & intuitive.
1357 Now IndexInParent check works.
1359 2001-12-04 Michael Meeks <michael@ximian.com>
1361 * cspi/spi-util.h: remove.
1363 * cspi/spi.h: move SPI_freeString here
1365 * libspi/component.c (impl_accessibility_component_get_layer):
1367 (impl_accessibility_component_get_mdi_z_order): ditto,
1368 return -1 on error - is this ok ?
1370 * test/test-simple.c (test_application): impl.
1372 * cspi/spi_accessible.c (Accessible_getApplication),
1373 (Accessible_isApplication): impl.
1375 * libspi/registry.c (spi_listener_struct_free): release
1376 the CORBA reference too.
1378 * libspi/accessible.c
1379 (impl_accessibility_accessible_get_parent): fix ref leak.
1381 * libspi/registry.c (spi_registry_new): make the registry
1382 immortal - we don't want it to go away ever.
1384 * libspi/application.c
1385 (spi_accessible_application_finalize): impl. cleanup.
1387 * cspi/spi_registry.c
1388 (deregisterGlobalEventListenerAll),
1389 (deregisterGlobalEventListener),
1390 (deregisterAccessibleKeystrokeListener): fix ref leak.
1392 * cspi/spi_main.c (SPI_init): remove redundant ref.
1394 * test/test-simple.c (unutterable_horror): impl. to force a
1399 (impl_accessibility_registry_deregister_application): release
1400 the application when we de-register it.
1402 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
1403 until we have the infastructure to get it right.
1405 2001-12-03 Michael Meeks <michael@ximian.com>
1407 * libspi/Makefile.am: only build eventlistener.[ch]
1409 * libspi/accessible.c
1410 (impl_accessibility_accessible_get_child_at_index): don't leak.
1412 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
1413 before we hit the idle handler.
1415 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
1416 debugging than exit.
1418 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
1420 * libspi/listener.c (impl_notify_event): check source
1421 not NIL before unref.
1423 * libspi/registry.c (impl_registry_notify_event): ditto.
1425 * libspi/eventlistener.c
1426 (impl_accessible_event_notify_event): unref the source.
1428 * libspi/accessibleeventlistener.c
1429 (impl_accessible_event_notify_event): unref the source.
1431 * idl/Event.idl: remove 'hash_id' attribute - of no
1434 * libspi/application.c (notify_listeners): upd list
1436 (spi_application_object_event_listener),
1437 (spi_application_toolkit_event_listener): upd to do correct
1441 (_registry_notify_listeners): update.
1442 (parse_event_type): this method also leaks like a sieve.
1443 (impl_accessibility_registry_deregister_global_event_listener):
1444 fix ETYPE_WINDOW case.
1446 * libspi/application.c
1447 (impl_accessibility_application_register_object_event_listener):
1450 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
1452 * libspi/hypertext.c (impl_getLink): ditto.
1454 * cspi/spi_main.c (cspi_object_add): remove
1455 bogus CORBA_Object_duplicate.
1457 * cspi/spi-listener-impl.c (cspi_event): dup/ref
1460 * cspi/spi_accessible.c
1461 (Accessible_getRelationSet): fix leak / referencing issue.
1463 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
1464 (cspi_object_add, cspi_object_unref): upd.
1465 (spi_object_release, get_live_refs): impl.
1466 (cspi_cleanup): simplify.
1468 * *.[ch]: s/boolean/SpiBoolean/
1470 * cspi/spi_accessible.c (role_names): actualy order so it
1471 corresponds with the enum !
1473 * test/test-simple.c (test_roles): check some role strings
1474 vs. enums to detect offset errors.
1476 2001-12-01 Michael Meeks <michael@ximian.com>
1478 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
1480 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
1482 (Accessible_getChildAtIndex): use cspi_add_check so we
1483 check the ev before using a (possibly) invalid value.
1485 * libspi/accessible.c
1486 (impl_accessibility_accessible_get_parent): don't segv
1489 * at-bridge/bridge.c (gtk_module_init): upd.
1490 (bridge_property_event_listener): don't leak strings
1492 (bridge_state_event_listener),
1493 (bridge_property_event_listener): don't use a static
1494 buffer in case of recursive event emission &
1495 re-enterancy - split out the swathe of cut and paste
1497 (emit_eventv): and fix 2 ref leaks here & comply to the
1499 (bridge_register_app): rename to
1500 (bridge_idle_init): this and kill arg parsing, split
1501 various inits & bonobo-activation registration to module
1502 init time, kill referencing error.
1503 (bridge_exit_func): fix the same leak.
1504 (bridge_focus_tracker): don't leak event structures
1506 (bridge_signal_listener): more leakage and cut & paste
1508 (bridge_key_listener): return the result - FIXME is
1509 this polarity correct ?
1510 (accessibility_keystroke_from_atk_key_event): rename
1511 (accessibility_init_keystroke_from_atk_key_event): and stop
1513 (gtk_module_init): return a value - not that it is checked by
1515 (bridge_key_listener): register my horror at casting between
1516 IDL defined structs.
1517 (bridge_get_registry): kill - not used.
1519 * cspi/spi_accessible.c (Accessible_getRole): make return const.
1521 * test/test-simple.c (test_roles): impl.
1522 (test_desktop, validate_accessible, validate_tree): impl.
1524 * cspi/spi_accessible.c (role_names): fixup bogus
1525 MAX_ROLES setup, make constants const for efficient linkage
1526 (AccessibleRole_getName): conform to coding style, make
1529 2001-11-30 Michael Meeks <michael@ximian.com>
1531 * cspi/spi.h: add missing prototype.
1533 * libspi/registry.c (spi_listener_struct_new): fix sig.
1535 * test/Makefile.am: add test-simple
1537 * test/test-simple.c: add
1539 * test/test.sh: add.
1541 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
1543 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
1544 do it straight - since otherwise we often get an activation race.
1546 [ work before Bill duplicated a chunk of it ... ]
1547 2001-11-30 Michael Meeks <michael@ximian.com>
1549 * libspi/keystrokelistener.c
1550 (spi_keystroke_listener_class_init): fixup arg
1553 * libspi/eventlistener.c
1554 (spi_event_listener_class_init): ditto.
1556 * tests/test.sh: add.
1558 * cspi/spi-listener-impl.h: update macros.
1560 * cspi/spi-listener-impl.c
1561 (cspi_event_listener_remove_callback): add
1562 correct pre-conditions.
1564 * cspi/spi_main.c (SPI_exit): guard vs. double
1565 exits, exit the mainloop nicely.
1566 (SPI_event_main): make more sense.
1567 (SPI_init): move the atexit evilness here so we
1568 always do it (yuck).
1569 (SPI_event_main): upd.
1571 * test/simple-at.c: update for listener changes.
1573 * registryd/registryd.c (main): prune kruft.
1575 * libspi/libspi.h: upd.
1577 * libspi/eventlistener.[ch]: rename broken macros.
1579 * libspi/accessibleeventlistener.[ch]: remove.
1581 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
1583 * test/test-simple.c: Add - automated tests.
1585 * cspi/spi-listener-impl.c (cspi_event),
1586 (cspi_key_event): add user_data to invoke.
1587 (cspi_keystroke_listener_finalize): impl.
1588 (cspi_keystroke_listener_class_init): upd.
1591 (createAccessibleEventListener),
1592 (AccessibleEventListener_addCallback),
1593 (createAccessibleKeystrokeListener),
1594 (AccessibleKeystrokeListener_addCallback): upd.
1596 * libspi/deviceeventcontroller.c
1597 (spi_device_event_controller_check_key_event): add public proto.
1600 (impl_accessibility_registry_deregister_global_event_listener):
1601 always init listeners.
1602 (_registry_notify_listeners): yes it is.
1604 * cspi/spi-listener-impl.c (cspi_key_event):
1606 (cspi_event_listener_finalize): impl.
1607 (cspi_event_listener_class_init): hook up.
1608 (event_handler_new, event_handler_free),
1609 (event_list_remove_by_callback): impl.
1610 (cspi_event_listener_remove_callback),
1611 (cspi_keystroke_listener_remove_callback),
1612 (cspi_keystroke_listener_add_callback),
1613 (cspi_event_listener_add_callback): upd.
1615 * libspi/keystrokelistener.c
1616 (keystroke_listener_object_finalize): kill
1617 (spi_keystroke_listener_class_init): upd.
1618 (spi_keystroke_listener_add_callback),
1619 (spi_keystroke_listener_remove_callback): kill,
1621 (impl_key_event): prune drasticaly.
1623 * libspi/eventlistener.c
1624 (spi_event_listener_add_callback),
1625 (spi_event_listener_remove_callback): kill, use
1627 (impl_accessible_event_notify_event): upd.
1628 (spi_event_listener_object_finalize): remove.
1630 * libspi/Makefile.am: use eventlistener.[ch]
1632 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1634 * libspi/registry.c (_registry_notify_listeners):
1635 Changed listener loop iteration to use preferred convention.
1636 Got rid of string memory leaks caused be calling g_strconcat
1637 inside function calls.
1639 * libspi/registry.c (parse_event_type):
1640 Stopped g_strconcat memory leaks, free the g_strsplit return,
1641 g_strdup the split pieces when used, etc.
1643 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1646 Change method 'compare' to return a 'difference set' rather than
1647 taking a StateSet as an out parameter (more Java-friendly).
1649 * idl/Accessible.idl:
1650 Added CORBA struct 'BoundingBox', to faciliate API changes below:
1652 * idl/Component.idl:
1654 Changed methods 'getExtents' and 'getImageExtents' in these
1655 interfaces to return a BoundingBox structure.
1656 (getPosition and getSize are redundant and possibly should be
1657 removed, rather than creating a corresponding Point struct.)
1659 * cspi/spi_component.c:
1660 Modify implementation of getExtents to reflect the above IDL
1665 Add (missing) AccessibleImage_getExtents () API.
1667 * docs/reference/cspi/at-spi-cspi-sections.txt:
1668 Added AccessibleImage_getImageExtents () to docs.
1670 2001-12-03 Bill Haneman <bill.haneman@sun.com>
1672 * idl/Component.idl:
1673 Added two methods, getLayer () and getMDIZOrder (), to reflect
1674 the new ATK methods atk_object_get_layer and
1675 atk_object_get_mdi_z_order. (Which arguably should be part of the
1676 AtkComponent API and AtkObject). Also added an enum,
1677 ComponentLayer, for the first method's return value.
1679 * libspi/component.c:
1680 Added implementations for these methods.
1682 * cspi/spi_component.c:
1684 Added cspi binding methods for above,
1685 AccessibleComponent_getLayer() and
1686 AccessibleComponent_getMDIZOrder().
1687 Added cspi enum 'AccessibleComponentLayer'.
1689 * docs/reference/cspi/at-spi-cspi-sections.txt:
1690 Added above methods to docs.
1694 Changed typedef for 'boolean' type (and all references to it) to
1695 SPIBoolean, to avoid keyword clashes with C++.
1698 Changed usages of 'boolean' to SPIBoolean.
1700 * test/keysynth-demo.c:
1701 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
1702 app), except where SPIBoolean is required by the callbacks API.
1704 2001-12-02 Bill Haneman <bill.haneman@sun.com>
1706 * cspi/spi_registry.c:
1707 Removed obsolete X event loop for passive keygrabs (which now
1710 * registryd/registryd.c:
1711 Removed unnecessary call to gdk_init() [cruft]. This also allows
1712 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
1715 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1717 * docs/reference/cspi:
1718 Included docs for SPI_freeString in generated documentation.
1721 Renamed spi_freeString to SPI_freeString, for consistency. Added
1722 documentation for this function.
1725 Renamed spi_freeString to SPI_freeString, for consistency.
1726 Removed obsolete method declaration string_from_corba_string.
1728 * test/keysynth-demo.c:
1729 Small tweak to comments.
1732 Stopped leaking the strings returned from CSPI.
1734 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1736 Merged Michael's branch (see his ChangeLog entries below).
1738 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
1739 bridge is alive, release on exit.
1741 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
1742 Fix type check macro.
1745 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
1748 Added is_gnome_app static, and method cspi_is_gnome_app(),
1749 so we can call the appropriate shutdown routine at exit in SPI_exit.
1751 * cspi/spi_main.c (cspi_object_ref):
1752 Duplicate the corba object passed in, since we're keeping it around.
1754 * cspi/SPI_exit.c, cspi_cleanup:
1755 Moved the releasing of the live refs to its own function, so we
1756 can put it in g_atexit (). Call the appropriate shutdown API
1757 depending on whethe calling client is a gnome app or not
1758 (bonobo_main_quit or CORBA_ORB_shutdown).
1760 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
1761 Unref the listener when this method is called, after
1762 deregistration. Updated the API docs to note this behavior.
1764 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
1765 Bugfixes: Ref the bonobo object when returning a parent or child
1766 reference, or an AccessibleRelation. Generally made sure
1767 BonoboObject refcount is incremented whenever we return an
1770 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
1771 Fixed typo/bug in signal declaration.
1773 * libspi/accessibleeventlistener.h:
1776 * libspi/application.c (spi_application_new):
1777 Fixed leak in initialization.
1780 Remembered to increment bonobo-object refcount when returning
1781 children (applications) from desktop object.
1782 Added (empty) finalize method.
1784 * libspi/deviceeventcontroller.c:
1785 Hold a ref to listeners inside DEControllerKeyListeners.
1786 Added dec_key_listener_free() method. Use prepend instead of
1787 append in key_listener list. Fixed some refcount madness and
1788 leaks in the listener registration/deregistration - deregistration
1789 now calls dec_key_listener_free() on listeners, and on the
1790 temporarily constructed dec_key_listener() used to perform the search/match.
1792 * libspi/hypertext.c (spi_hypertest_finalize):
1793 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
1794 class. Also fixed spi_hypertext_interface_new() and
1795 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
1797 * libspi/hypertext.h:
1798 Removed pointless and duplicate AtkObject pointer from
1801 * libspi/keystrokelistener.c:
1802 Fixed incorrect type of keystroke_listener_parent_class,
1803 renamed keystroke_listener_object_finalize to
1804 spi_keystroke_listener_object_finalize.
1805 Fixed typo in signal declaration
1806 (spi_keystroke_listener_class_init).
1808 * libspi/registry.c:
1809 Added funcsions spi_listener_struct_new() and
1810 spi_listener_struct_free() to help with memory management issues.
1811 We also now use these methods instead of gnew + poking stuff into
1812 the struct, and to decrement listener counts/free the listeners
1813 when deregistering them.
1814 Fix more refcount bugs in getDesktop() and
1815 getDeviceEventController().
1818 De-ref the desktop after enumerating the applications. Explicitly
1819 decrement the refcounts on the created listeners on exit (using
1820 _unref for keystroke listeners, and via the
1821 deregisterGlobalEventListenerAll command for other event
1824 2001-11-27 Michael Meeks <michael@ximian.com>
1826 * cspi/spi-listener.h: fixup enum.
1828 2001-11-27 Michael Meeks <michael@ximian.com>
1830 * cspi/spi-listener-impl.c (cspi_event_listener_new),
1831 (cspi_keystroke_listener_new): Use the cspi variants.
1833 2001-11-26 Michael Meeks <michael@ximian.com>
1835 * test/keysynth-demo.c: fix 2 compile warnings, missing
1838 * test/simple-at.c (report_focussed_accessible),
1839 (report_focus_event, report_button_press),
1840 (check_property_change, is_command_key),
1841 (report_ordinary_key_event, report_command_key_event): upd.
1843 * util/mag_client.h: include pre-requisites.
1845 * libspi/accessibleeventlistener.c
1846 (spi_event_listener_object_finalize): free any lingering
1849 * libspi/keystrokelistener.c
1850 (keystroke_listener_object_finalize): ditto.
1852 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
1853 callbacks, with cspi types.
1855 * cspi/spi_event.c (createAccessibleEventListener): chain to
1856 (AccessibleEventListener_addCallback): here.
1857 (createAccessibleKeystrokeListener): chain to
1858 (AccessibleKeystrokeListener_addCallback): here.
1860 * libspi/keystrokelistener.c
1861 (spi_keystroke_listener_class_init): add signal.
1862 (impl_key_event): emit the event.
1863 (boolean_handled_accumulator): impl.
1864 (marshal_BOOLEAN__POINTER): add, gack.
1866 * libspi/accessibleeventlistener.c
1867 (spi_event_listener_class_init): add signal.
1868 (impl_accessible_event_notify_event): emit the signal &
1869 make the loop efficient.
1870 (spi_event_listener_add_callback): prepend the callback.
1872 * libspi/accessibleeventlistener.h: add an 'event' signal,
1873 decl type on callback.
1875 * libspi/keystrokelistener.h: ditto.
1877 * cspi/spi-listener.h: make methods typesafe and
1878 make them use the new event typedefs.
1880 * test/simple-at.c (report_focussed_accessible):
1881 include mag_client.h
1882 Use *(void *)text_interface not the other thing.
1884 * configure.in: add gtk to registryd bits - since we use
1887 * util/magnifier.c: include libbonobo.h
1889 2001-11-25 Bill Haneman <bill.haneman@sun.com>
1891 * test/keysynth-demo.c:
1892 Turned this into a simple scanning keyboard, to demonstrate the
1893 use of g_timeout_add () as a means of creating timers for
1894 scanning, and the use of GtkStyle for visually indicating when
1895 virtual keyboard elements are selected.
1897 keysynth-demo now listens to any keyboard keys with zero-valued
1898 keycodes (i.e. 'unused' keys) and interprets them as
1901 Reworked the shiftlatch code so that shift-down state isn't held
1902 for long periods (it's only synthesized immediately prior to
1903 the keysynth event it's modifying). Note that shiftlatch in this
1904 demo is a convenience, not intended to take the place of AccessX
1905 which is the better choice for getting 'sticky' modifier keys.
1907 * libspi/deviceeventcontroller.c:
1908 * at-bridge/bridge.c:
1909 * cspi/spi_registry.c:
1910 Removed some debug print stuff, and put other verbosity in #ifdef
1915 Implemented some more of the magnifier IDL for the simple
1916 magnifier: namely, getZoomRegionParams.
1917 Added mag_x and mag_y members to MagnifierData struct, aid of this
1919 Added GtkWindow::realize signal handler to magnifier, to keep it
1920 from receiving keyboard focus from the WM.
1922 2001-11-23 Mark McLoughlin <mark@skynet.ie>
1924 * cspi/spi-private.h: my guess at what michael forgot
1925 before he ran off to NZ :-)
1927 2001-11-23 Michael Meeks <michael@ximian.com>
1929 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
1930 comment out non existant method invoke so we link.
1932 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
1933 use bonobo_exception_get_text for more friendly warnings.
1935 * cspi/spi.c (Obj_Add): move into spi_main & rename
1936 spi_object_add; kill spi.c
1938 * cspi/spi_registry.c
1939 (deregisterGlobalEventListener),
1940 (deregisterGlobalEventListenerAll),
1941 (registerGlobalEventListener): fix exception leaks.
1943 * cspi/spi_main.c (spi_exception): impl. helper, so we
1944 don't leak exceptions.
1946 * cspi/spi_selection.c
1947 (AccessibleSelection_deselectSelectedChild): return the
1950 * cspi/spi_main.c (spi_ev): impl; hack - gack.
1951 (spi_registry): ditto.
1952 (SPI_init): guard against double inits.
1954 * cspi/*.c: use spi_ev (), and spi_registry () where
1955 appropriate - a temporary hack until we have something
1956 better. Use spi_object_add
1958 2001-11-22 Michael Meeks <michael@ximian.com>
1960 * cspi/Makefile.am: re organise, install the headers.
1962 * cspi/*.h: add G_BEGIN/END_DECLS
1964 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1967 Added non-preemptive keylistener for key events with no modifiers
1968 and shift-only modifier.
1970 * libspi/keystrokelistener.c:
1971 Removed some verbose diagnostics printout.
1973 * cspi/spi_registry.c:
1974 Fixed a bug that caused all key listeners to be registered as
1977 * libspi/deviceeventcontroller.c:
1978 Fixed bug that caused XGrabKey (preemptive key grab) to be called
1979 for non-preemptive key masks.
1982 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1984 * docs/reference/idl/at-spi-idl-docs.sgml:
1985 * docs/reference/idl/at-spi-idl-sections.txt:
1986 * docs/reference/idl/at-spi-idl-overrides.txt:
1987 Added missing files.
1989 * docs/reference/Makefile.am:
1990 removed idl from SUBDIRS until we can figure a way to get gtk-doc
1991 to scan the IDL files :-(
1996 Added .cvsignore files.
1998 2001-21-11 Bill Haneman <bill.haneman@sun.com>
2000 * libspi/deviceeventcontroller.c:
2001 * libspi/keystrokelistener.c:
2003 * cspi/spi_registry.c:
2004 Added filters for KeySets, KeyEventSeq, and event types to key
2005 event dispatching, so listeners should only receive those events
2006 that they requested :-)
2008 2001-21-11 Bill Haneman <bill.haneman@sun.com>
2013 * docs/reference:Makefile.am:
2014 * docs/reference/cspi:
2015 * docs/reference/cspi:Makefile.am:
2016 * docs/reference/cspi:tmpl:
2017 * docs/reference/cspi:tmpl:*.sgml:
2018 * docs/reference/idl:
2019 * docs/reference/idl:Makefile.am:
2020 * docs/reference/idl:at-spi-idl-sections.txt:
2021 * docs/reference/idl:at-spi-idl-docs.sgml:
2022 * docs/reference/idl:tmpl:
2023 * docs/reference/idl:tmpl:*.sgml:
2025 Restructured docs directory to allow separate 'reference' docs
2026 section, and forked idl and cspi docs. Added the sgml template
2027 files to CVS. Added the first sections/structural sgml for the
2030 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
2032 * configure.in, libspi/Makefile.am: find libXtst.
2034 2001-11-21 Michael Meeks <michael@ximian.com>
2036 * test/accessx-gui.c: s/spi_value/value/ - doh.
2038 * libspi/base.[ch]: add.
2040 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2042 * idl/Accessible.idl:
2043 * idl/Application.idl:
2046 Started gtk-doc cleanup on IDL.
2048 * libspi/deviceeventcontroller.c:
2049 Added and connected non-preemptive key notification from the
2050 toolkits (in addition to the pre-emptive support from XServer
2051 which we had before, but which causes 'focus flashing'). Filters
2052 are presently limited to key modifiers and global/non-global,
2053 KeySets are presently ignored, as are KeyEvent masks.
2055 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
2056 structs into the persistant structure rather than just storing
2057 pointers to things that might not persist across servant
2060 The XGrabKey call now does async keygrabs, because synchronous
2061 ones were deadlocking with GDK_event code in a very nasty way.
2063 Added boolean to internal method notify_keylisteners, to indicate
2064 whether the event came from the 'toolkit source' or the 'global
2065 (XServer) source' - this is used in the notification process to
2066 determine which listeners to send the event to.
2068 deviceeventcontroller.c is now warning-free.
2070 * libspi/registry.c:
2071 Fixed regression in application de-registration.
2072 Also fixed some really brain-dead weirdness having to do with
2073 event dispatching - event structs are now duplicated before being
2074 re-marshalled in the dispatch to listeners. This also fixes a
2075 Solaris build problem.
2078 2001-20-11 Michael Meeks <michael@ximian.com>
2081 (impl_accessibility_registry_deregister_global_event_listener):
2084 * libspi/deviceeventcontroller.c
2085 (spi_device_event_controller_check_key_event): return
2086 FALSE on no virtual method.
2088 * libspi/*..h: make includes work on a correctly pathed install.
2090 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
2092 * libspi/application.h: kill unused ( and whacked out )
2093 gboolean *spi_application_set_id (AtkObject *app, long id);
2095 2001-20-11 Michael Meeks <michael@ximian.com>
2097 * libspi/*.[ch]: further convert to bonobo's type func
2098 macros, remove redundnant casts etc.
2100 * libspi/text.c s/accessibility_text/spi_text/g,
2101 re-order to de-cruft.
2103 * libspi/hypertext.c: re-order to kill a huge slew
2104 of redundant forward decls.
2106 * libspi/relation.c: ditto.
2108 * libspi/image.c: ditto.
2110 * */.cvsignore: update
2112 2001-20-11 Michael Meeks <michael@ximian.com>
2114 * libspi/deviceeventcontroller.c
2115 (_controller_register_with_devices): use g_getenv,
2116 kill stdlib.h include.
2118 * libspi/keystrokelistener.c
2119 (spi_keystroke_listener_get_type): kill
2120 (spi_keystroke_listener_class_init),
2121 (spi_keystroke_listener_init): rename to this.
2123 * libspi/text.c (impl_getAttributes): fix warning / bug.
2125 * libspi/*.[ch]: more headers, includes and over commenting.
2127 2001-20-11 Michael Meeks <michael@ximian.com>
2129 * libspi/*.[ch]: fixup headers, includes and over commenting.
2131 * libspi/image.c (impl__get_imageDescription): const
2132 correctness warning fix. remove redundant casting.
2134 * libspi/table.c (impl_getRowDescription): ditto.
2135 (impl_getColumnDescription): ditto.
2137 * libspi/libspi.h: add.
2139 2001-19-11 Michael Meeks <michael@ximian.com>
2141 * libspi/editabletext.c (impl_setAttributes): fix warnings.
2143 * libspi/component.c (accessibility_component_get_type):
2144 rename to (spi_component_get_type): and macroify.
2145 (accessibility_component_init): rename to
2146 (spi_component_init): this
2147 (accessibility_component_class_init): rename to
2148 (spi_component_class_init): this
2150 * libspi/action.c (spi_action_get_type): kill, use the macro.
2152 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
2155 * libspi/application.c (spi_application_object_event_listener),
2156 (impl_accessibility_application_register_object_event_listener):
2157 warning fixes / const understanding updates.
2159 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
2162 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2164 * libspi/spi_accessible.c: Added docs and C bindings for
2165 AccessibleStateSet. (No implementations yet). Documentation
2166 coverage for C bindings now 100%. Made docs for event listeners
2171 boolean notifyListenersSync (in DeviceEventListener listener,
2172 in DeviceEvent event);
2174 oneway void notifyListenersAsync (in DeviceEventListener listener,
2175 in DeviceEvent event);
2177 Added DeviceEventListener and DeviceEvent structs (may deprecate
2178 KeyStroke and KeystrokeListener in favor of this generic
2179 event/listener framework for devices).
2181 * libspi/deviceeventcontroller.c:
2183 Changed some key listener code to take masks, etc., and paved the
2184 way for integration of toolkit/non-preemptive key events. Changed
2185 signatures of some internal methods.
2187 * at-bridge/bridge.c:
2188 Fixed regression connecting to interface signals, apparently
2189 caused by GTK+ changes.
2191 Added an internal bridge_state_listener to deal with
2192 property-change:accessible-state signals.
2194 Changed the key_listeners GList to store structs (including masks,
2195 etc.) instead of just CORBA_Objects (required for full
2196 implementation of key listener API).
2198 Connected the bridge to all currently supported Atk signals.
2199 Events now supported:
2200 object:property-change
2201 object:property-change:accessible-name
2202 object:property-change:accessible-state
2203 object:property-change:accessible-description
2204 object:property-change:accessible-parent
2205 object:property-change:accessible-value
2206 object:property-change:accessible-role
2207 object:property-change:accessible-table-caption
2208 object:property-change:accessible-table-column-description
2209 object:property-change:accessible-table-column-header
2210 object:property-change:accessible-table-row-description
2211 object:property-change:accessible-table-row-header
2212 object:property-change:accessible-table-summary
2213 object:children-changed
2214 object:visible-data-changed
2215 object:selection-changed
2216 object:text-selection-changed
2218 object:text-caret-moved
2220 object:row-reordered
2222 object:column-inserted
2223 object:column-reordered
2224 object:column-deleted
2225 object:model-changed
2227 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2229 * libspi/hyperlink.c,h:
2230 Fixed some broken stuff in hyperlink.
2232 * libspi/relation.h:
2233 * libspi/relation.c:
2234 * cspi/spi_accessible.c:
2235 Initial implementations of AccessibleRelation methods, and docs.
2237 * libspi/accessible.c:
2238 Fixed a bug that caused SEGV if an accessible
2239 object's description is NULL, and a client
2240 requests it. An empty string is now returned.
2242 * cspi/spi_editabletext.c:
2243 * cspi/spi_hypertext.c:
2245 * cspi/spi_hyperlink.c:
2249 Doc coverage now 95%.
2251 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2253 One last namespacing revision:
2254 * libspi/accessibleeventlistener.[ch]:
2255 Renamed SpiAccessibleEventListener to SpiEventListener,
2256 (no need for two namespaces ;-)
2258 And lots of documentation fixes:
2260 * docs/at-spi-docs.sgml:
2261 Fixed 'underscore vs. hyphen' bug that was preventing
2262 the gtk-doc API docs from being automatically generated.
2265 * cspi/spi-listener.h
2267 * cspi/spi_accessible.c
2269 * cspi/spi_application.c
2270 * cspi/spi_component.c
2271 * cspi/spi_editabletext.c
2273 * cspi/spi_hypertext.c
2275 * cspi/spi_registry.c
2276 * cspi/spi_selection.c
2280 * docs/at-spi-docs.sgml
2281 * docs/at-spi-sections.txt
2283 Added and fixed up gtk-doc documentation in cspi.
2285 Interfaces now (fully) documented (subject to revision and enhancement):
2287 Event Listener Support
2289 AccessibleApplication
2293 AccessibleEditableText
2300 AccessibleRelationSet
2305 2001-14-11 Bill Haneman <bill.haneman@sun.com>
2307 * at-bridge/bridge.c:
2308 Initial work for toolkit-level key snooper connection by bridge.
2313 New typedefs and fixes to support new namespacing, and cleaner
2314 separation of cspi bindings from libspi bonobo implementation.
2315 Removed inconsistent and extraneous Spi* namespace prefix that
2316 had crept into cspi headers.
2317 Lots of comment fixes that sed had missed.
2319 * cspi/spi-roletypes.h:
2320 * cspi/spi-statetypes.h:
2321 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
2322 to AccessibleRoleType.
2324 * libspi/accessibleeventlistener.h:
2325 Fixed minor namespacing weirdness.
2327 * libspi/deviceeventcontroller.c:
2328 Reordered some internal API for device listeners.
2329 Changed the key registry final boolean to 'is_system_global'
2330 rather than 'is_synchronous', which is more descriptive of its
2332 Added spi_device_event_controller_new().
2333 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
2335 * libspi/keystrokelistener.[ch]:
2336 Namespaced KeystrokeListener to SpiKeystrokeListener.
2337 Changed uses of keymasks to use SPI_ prefix, and did other
2340 * libspi/keymasks.h:
2341 Namespaced keymask constants with SPI_ prefix.
2343 * libspi/registry.c:
2344 Some warning fixes, and knock-on fixes from namespace changes.
2347 Added rules for accessx-gui test program.
2349 * test/accessx-gui.c:
2350 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
2351 utility. It doesn't actually use at-spi, but it's still cool and
2354 * test/keysynth-demo.c:
2358 Fixes so that these test clients work properly with the namespaced
2359 libraries. (Incompletely tested for technical reasons, fixes may follow)
2362 2001-13-11 Michael Meeks <michael@ximian.com>
2364 * libspi/application.c
2365 (impl_accessibility_application_get_version),
2366 (impl_accessibility_application_get_toolkit_name):
2368 (impl_accessibility_application_set_id),
2369 (impl_accessibility_application_get_id): remove
2370 redundant casting code.
2372 * libspi/action.c (impl_getDescription): fix warnings.
2374 * libspi/accessible.c
2375 (impl_accessibility_accessible_get_parent),
2376 (impl_accessibility_accessible_get_child_at_index),
2377 (impl_accessibility_accessible_get_state),
2378 (impl_accessibility_accessible_get_relation_set):
2379 warning fixes & include action.h
2381 2001-13-11 Michael Meeks <michael@ximian.com>
2383 * *.[ch] fix bits I screwed up:
2385 s/([^ \tb(\*\&\?\",])spi_/\1/g;
2386 s/([^ \tb(\*\&\?\",])Spi/\1/g;
2388 2001-13-11 Michael Meeks <michael@ximian.com>
2390 * *.[ch] Namespace libspi into spi_ and Spi.
2392 2001-13-11 Michael Meeks <michael@ximian.com>
2394 * Makefile.am: dist & install at-spi-1.0.pc
2396 * libspi/Makefile.am: install into at-spi-1.0
2398 * idl/Makefile.am (idldir): install into at-spi-1.0
2400 * at-spi-1.0.pc.in: add.
2402 * configure.in: build it.
2404 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2406 * test/keysynth-demo.c:
2407 Use a 'realize' signal-handler to set the WM properties for
2408 the virtual keyboard, rather than making it a "POPUP" type
2409 override-redirect window (thanks to anders carlsson for that
2412 2001-11-11 Bill Haneman <bill.haneman@sun.com>
2415 * test/keysynth-demo.c:
2416 Added new test of key synthesis, which creates a simple
2417 (mouse-operated) onscreen keyboard. It inserts key events into
2418 the currently-focused window, thus it does not grab keyboard focus
2421 * cspi/spi_registry.c:
2422 Added C binding for AT-SPI generateKeyEvent.
2424 * libspi/deviceeventcontroller.c:
2425 Added call to XFilterEvent so that key listener works with XIM (we
2426 hope). Added event_synth_type to generateKeyEvent, so that we can
2427 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
2428 synthesize a press/release pair for KeySyms.
2430 2001-11-09 Bill Haneman <bill.haneman@sun.com>
2432 * libspi/Makefile.am:
2433 * registryd/Makefile.am:
2434 (temporary) hack to include libXtst in libspi and registryd.
2435 (Needed for keystroke synthesis, see below).
2438 Improved API for registerKeystrokeListener, in accordance with
2439 discussions with Gnopernicus team and X server research.
2441 * libspi/registry.c:
2442 * libspi/deviceeventcontroller.c:
2443 * libspi/accessible.c:
2444 * libspi/keystrokelistener.c:
2445 Changes and fixes to support keylisteners for potentially
2446 consumed key events (that is, 'passive grabs').
2447 Added implementation for generateKeyEvent() [untested].
2450 Changes to registerKeystrokeListener() API, as above.
2451 Added deregisterGlobalEventListenerAll(), and
2452 deregisterKeystrokeListener(), which are needed for clean exit of
2454 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
2455 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
2457 * cspi/spi_registry.c:
2458 Added implementations of function prototypes mentioned above.
2460 * registryd/registryd.c:
2461 Added the key listener event source as a g_timeout(), to allow
2462 receipt of key events that are not caught by GDK (since GDK
2463 doesn't support passive keygrabs, this was necessary).
2466 Changed to attach a keylistener to 'Alt' keys, and
2467 respond to the following keycommands: Alt-M (toggle magnifier);
2468 Alt-F (toggle speech); Alt-Q (quit).
2469 Added an exit routine to deregister the listeners, and a key
2470 listener that prints some key info to the console when a key
2471 matches the listener mask (and is thus received by the listener).
2473 * util/idl/Magnifier.idl:
2474 Changes to magnifier API to support multiple zoom regions,
2475 non-uniform scaling in x and y, markDirty, and a host of other
2476 features that would be useful to magnification.
2479 * util/mag_client.c:
2480 * util/mag_client.h:
2481 * util/mag_control.c:
2483 Source code changes to support the above IDL changes.
2486 As above, and also changes to use a (slower) generic conversion
2487 path for colormap conversions, since the fast RGB conversions have been
2488 reported to fail for 16-bit displays.
2490 2001-10-26 Michael Meeks <michael@ximian.com>
2492 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
2494 <2001-10-26 Laszlo Peter <laca@ireland.sun.com>
2496 * at-bridge/Makefile.am: fix LDFLAGS.
2498 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2500 * at-bridge/bridge.c:
2501 Re-worked listeners for toolkit events, now we have signal
2502 and property listeners. Added a private method
2503 register_atk_event_listeners(), which registers with the
2504 various atk and gtk signals we need to monitor in order to emit
2506 Added emission hook for AtkObject:property-change events, to
2507 support the 'property listeners'.
2508 Fixed some alloc()s of Accessibility_Event structs to use CORBA
2511 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
2512 which emit warnings and exit, respectively, if CORBA errors occur
2513 during remote calls, and we now use these methods to check most of
2514 our CORBA calls in the C bindings.
2516 * cspi/spi_accessible.c:
2517 Changed AccessibleSelection_refSelectedChild() to
2518 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
2519 now increment refcounts.
2521 * cspi/spi_component.c:
2522 Fixed some long pointer casts (dangerous!) to pass pointers to
2523 CORBA_longs of the proper type to the CORBA stubs, and copy the
2524 data into the longs that were passed into the C bindings code.
2526 * at-bridge/bridge.c:
2528 * libspi/accessible.c:
2529 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
2530 hyperlinks, AtkHyperlink is an object type.
2532 * libspi/application.c:
2533 Added various conversions to and from "generic" event types and
2534 atk-specific types; this is really part of the 'bridge'
2535 implementation but is valid for all AtkObject-based accessibility
2538 * libspi/editabletext.c:
2539 Fixed nasty bug wherein editable text's finalize method was
2540 unref'ing tha AtkObject reference that the text parent class was
2541 about to unref _again_. There was also a nasty inheritance bug
2542 that meant that the AccessibleEditableText class was corrupt.
2544 * libspi/selection.c:
2545 Provided implementations for some selection API that was broken.
2547 * idl/Application.idl:
2548 Added registerObjectEventListener () method.
2551 Fixed a number of return values that were Bonobo_Unknowns from
2552 bonobo_object_corba_objref(), which I
2553 forgot to dup before returning. Changed instances of
2554 bonobo_object_corba_objref (bonobo_object(o)) to
2555 BONOBO_OBJREF(o), for concision and clarity.
2557 <2001-10-13 Louise Miller <louise.miller@sun.com>
2559 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
2560 idl/Event.idl, idl/Registry.idl
2561 Changed these files to include Bonobo_Unknown.idl instead
2564 <2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
2566 * libspi/component.c libspi/component.h:
2567 Fixed typo. Added assertions for object checks in
2568 AccessibleComponent code.
2570 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2572 * idl/Accessible.idl:
2573 Added 'isEqual (Accessible *object)'
2574 method for Accessible. (Not Yet Implemented).
2577 Changed signature of registerKeystrokeListener() to
2578 take a KeySet and KeyEventSeq so that specific keys and event
2579 types could be requested for monitoring, and added a flag
2580 is_synchronous so that either synchronous or asynchronous
2581 notification could be requested. (However this is not all
2582 implemented yet). This also meant adding two new typedefs,
2583 KeyEventSeq and KeySet.
2586 Added two new relations, RELATION_TOOLTIP_FOR and
2587 RELATION_LEAFNODE_OF.
2590 Added new state, STATE_HAS_TOOLTIP.
2592 * libspi/text.c, editabletext.c:
2593 Added new assertions to all casts of bonobo-objects from
2594 CORBA servants, to prevent Text API calls on non-text objects.
2595 Changed suspect casts of int-pointer types, so that we
2596 always send a valid CORBA_long pointer to the CORBA APIs that use
2597 in/out long parameters. We then have to copy from the CORBA_long
2598 into the regular long or int for return to the C bindings, or
2599 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
2602 * libspi/deviceeventcontroller.c:
2603 Cleaned these sources up.
2605 Changed return type for getCharacterAtOffset to
2606 CORBA_unsigned_long, to allow for 32-bit characters.
2609 <2001-10-08 Bill Haneman <bill.haneman@sun.com>
2613 Fixed 'make dist' so that distro compiles...
2614 * libspi/keymasks.h:
2616 * cspi/spi-listener.c:
2617 KeystrokeListenerCB now returns a boolean.
2619 Added KeyEventType struct, and KeyStroke.
2620 Also added createKeystrokeListener(),
2621 KeystrokeListener_addCallback(),
2622 KeystrokeListener_removeCallback(), and added a keymask to
2623 registerKeystrokeListener().
2624 * cspi/spi_accessible.c:
2625 Changed numerous return types for interfaces from
2626 AccessibleComponent to Accessible<InterfaceName>; this was
2627 probably a cut-and-paste error.
2629 Implementations of new KeystrokeListener api (from spi.h,
2632 Changes to key modifier mapping.
2633 Created ControllerEventMask struct.
2634 Made DeviceEventController derive from Bonobo::Unknown.
2636 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
2637 * libspi/deviceeventcontroller.c:
2638 Added a number of new internal (private) methods.
2639 * libspi/editabletext.c:
2640 * libspi/editabletext.h:
2641 Fixed a number of bugs related to the fact that
2642 editabletext inherits from text. Fixed the EditableText struct,
2643 the init() call, and use correct casts when calling Text methods
2644 from an EditableText object. Removed (duplicate) atko from the
2645 EditableText structure, we use the one in the parent Text
2646 structure via the casts mentioned above.
2647 * libspi/keystrokelistener.[ch]:
2648 * libspi/registry.c:
2649 Changes in support of keyboard handling (above).
2651 Keyboard handling, though partly functional, is still not
2652 recommended for at-spi client use as there is considerable
2653 work yet to be done.
2656 Changed some places where pointers to various int types
2657 are cast to be pointers to CORBA_long types and vice-versa:
2658 pointer casting is not safe so we pass pointers of the correct
2659 types and then cast the result before putting it into the target
2662 * libspi/text.h: minor typos corrected.
2664 We now speak not only the name of a Text element, but the
2665 first sentence of its content, when it receives focus.
2666 I also changed the text compression to 75% from 50%.
2667 * util/Accessibility_Util.server.in:
2668 Changed the default magnifier type to be a 3x vertical
2669 splitscreen magnifier (was previously a 2x horizontal one).
2671 <2001-10-03 Bill Haneman <bill.haneman@sun.com>
2673 * libspi/keystrokelistener.h:
2674 * libspi/keystrokelistener.c:
2675 Initial functional implementations of KeystrokeListener.
2678 <2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
2680 Fixed string handling for NULL strings in libspi.
2681 Added spi_freeString to free strings returned by C bindings.
2683 <2001-09-30 Bill Haneman <bill.haneman@sun.com>
2685 * libspi/keystrokelistener.h:
2686 * libspi/keystrokelistener.c:
2687 Began (no-op) implementations of KeystrokeListener
2689 * libspi/deviceeventcontroller.c:
2690 * libspi/deviceeventcontroller.h:
2691 Began creating implementations of DeviceEventController,
2692 to handle keystroke and mouse event listening and
2694 * libspi/accessible.c:
2695 Stubbed-in the implementations for
2696 Accessibility_Accessible_getState and
2697 Accessibility_Accessible_getRelationSet.
2698 * libspi/registry.c:
2699 Improved de-registration process and fixed some bugs,
2700 deregistration now works correctly.
2702 Added initialization of applications list (to NULL).
2704 Reduced speech compression from 0.5 to 0.7, for demo.
2705 Changed call to gdk_window_set_decorations()
2706 to gtk_window_set_decorated().
2707 * at-bridge/bridge.c:
2708 Bridge now deregisters when app exits, via
2709 registration of a cleanup function
2710 with the g_atexit() call.
2711 Required making 'app' static, renamed 'this_app'.
2712 Fixed broken use of bonobo_init, passing argv wrongly.
2714 <2001-09-27 Bill Haneman <bill.haneman@sun.com>
2718 Created a new directory for
2719 accessibility-related utilities, primarily for
2720 testing and demo purposes, but with possible
2727 Onscreen magnifier utility that
2728 is implemented as a bonobo service.
2730 * util/mag_client.c:
2731 * util/mag_client.h:
2732 Client-side support (simple C bindings)
2733 for Magnification service
2735 * util/mag_control.c:
2736 Client program example for
2737 Magnification service
2739 * util/Accessibility_Magnifier.server.in:
2740 Bonobo-activation file for the
2741 Magnification service.
2744 * util/idl/Magnifier.idl:
2745 IDL defining the bonobo Magnification
2749 Modifications to use the bonobo-activated magnifier
2750 above, in place of trying to connect to an existing
2751 magnifier that uses socket-listening IPC.
2753 If env variable MAGNIFIER is set, a magnifier service
2754 will be started if one does not exist.
2756 <2001-09-25 Bill Haneman <bill.haneman@sun.com>
2757 * at-bridge/bridge.c:
2758 applied patch from Marc to build and run
2759 against new glib and gtk+ (seemed like a change
2760 to bonobo_init signature was made ?)
2762 made festival-server support turned off by default.
2763 Added support for a simple magnifier (off by default)
2764 which will be added to a 'util' directory later.
2765 * at-bridge/Makefile.am:
2766 Changed "application.h" header from a 'source'
2767 to a 'dependency' of libat-bridge.
2769 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2777 Added interface implementation c files to list of
2778 includes so they are included in libcspi.
2781 Changed prototype of AccessibleAction_doAction to return a
2783 Changed prototype of AccessibleTable_getCaption to
2784 return an Accessible.
2785 Changed prototype of AccessibleTable_getSelectedRows
2786 and AccessibleTable_getSelectedColumns to
2787 return a long (returns the number of selected rows
2788 or columns respectively).
2789 Changed name of AccessibleText_refRunAttributes to
2790 AccessibleText_getAttributes.
2791 Changed prototype of AccessibleText_getCharacterExtents to
2792 return a void rather than a boolean.
2793 Added support for a AccessibleCoordType parameter
2794 specifying what type of coordinates are desired.
2795 Added an AccessibleCordType parameter to
2796 AccessibleText_getPointAtOffset.
2798 * cspi/spi_accessible.c:
2799 Added code to return the outstanding interfaces from
2800 Accessible_queryInterface.
2802 * cspi/spi_action.c:
2804 Corrected call to getNActions to call the c binding
2807 * cspi/spi_editabletext.c:
2809 Changed name from setRunAttributes to setAttributes.
2811 * cspi/spi_hyperlink.c:
2813 Changed call to getNAnchors to correctly call the c
2814 binding for an attribute.
2816 * cspi/spi_hypertext.c:
2818 Changed getImageDescription to correctly call the
2819 binding for an attribute.
2821 * cspi/spi_selection.c:
2822 Changed getNSelectedChildren to correctly call the c
2823 binding for the attribute.
2824 Changed refSelectedChild to getSelectedChild.
2828 Changed getCaption to return an Accessible.
2829 Fixed calls which retrieve attributes.
2830 Changed refAt to getAccessibleAt.
2831 Changed getNSelectedRows and getNSelectedColumns to
2835 Changed getCharacterExtents and getPointAtOffset to accept an
2836 AccessibleCoordType.
2838 Changed calls which retrieve attributes.
2839 Changed refRunAttributes to getAttributes.
2844 * idl/Hyperlink.idl:
2845 Changed n_anchors attribute to nAnchors to keep naming
2846 convention consistent.
2849 Made Table inherit from Bonobo::Unknown.
2850 Added nSelectedColumns and nSelectedRows attributes.
2853 Made Value inherit from Bonobo::Unknown.
2855 * libspi/hyperlink.c:
2856 Change for nAnchors attributte name change.
2858 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2866 Added interface implementation c files to list of
2867 includes so they are included in libcspi.
2870 Changed prototype of AccessibleAction_doAction to return a
2872 Changed prototype of AccessibleTable_getCaption to
2873 return an Accessible.
2874 Changed prototype of AccessibleTable_getSelectedRows
2875 and AccessibleTable_getSelectedColumns to
2876 return a long (returns the number of selected rows
2877 or columns respectively).
2878 Changed name of AccessibleText_refRunAttributes to
2879 AccessibleText_getAttributes.
2880 Changed prototype of AccessibleText_getCharacterExtents to
2881 return a void rather than a boolean.
2882 Added support for a AccessibleCoordType parameter
2883 specifying what type of coordinates are desired.
2884 Added an AccessibleCordType parameter to
2885 AccessibleText_getPointAtOffset.
2887 * cspi/spi_accessible.c:
2888 Added code to return the outstanding interfaces from
2889 Accessible_queryInterface.
2891 * cspi/spi_action.c:
2893 Corrected call to getNActions to call the c binding
2896 * cspi/spi_editabletext.c:
2898 Changed name from setRunAttributes to setAttributes.
2900 * cspi/spi_hyperlink.c:
2902 Changed call to getNAnchors to correctly call the c
2903 binding for an attribute.
2905 * cspi/spi_hypertext.c:
2907 Changed getImageDescription to correctly call the
2908 binding for an attribute.
2910 * cspi/spi_selection.c:
2911 Changed getNSelectedChildren to correctly call the c
2912 binding for the attribute.
2913 Changed refSelectedChild to getSelectedChild.
2917 Changed getCaption to return an Accessible.
2918 Fixed calls which retrieve attributes.
2919 Changed refAt to getAccessibleAt.
2920 Changed getNSelectedRows and getNSelectedColumns to
2924 Changed getCharacterExtents and getPointAtOffset to accept an
2925 AccessibleCoordType.
2927 Changed calls which retrieve attributes.
2928 Changed refRunAttributes to getAttributes.
2933 * idl/Hyperlink.idl:
2934 Changed n_anchors attribute to nAnchors to keep naming
2935 convention consistent.
2938 Made Table inherit from Bonobo::Unknown.
2939 Added nSelectedColumns and nSelectedRows attributes.
2942 Made Value inherit from Bonobo::Unknown.
2944 * libspi/hyperlink.c:
2945 Change for nAnchors attributte name change.
2948 <2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
2950 implementations-- made server implementations own AtkObject pointers
2951 rather than their respective AtkInterrface pointers to fix
2952 refcounting. AtkHyperlink is still broken.
2954 <2001-09-04 Bill Haneman <bill.haneman@sun.com>
2955 * cspi/spi_accessible.c:
2956 Added method Accessible_Role_getName(),
2957 and requisite string array (role_names).
2958 Added conversion string_from_corba_strin() call
2959 to Accessible_getName and _getDescription.
2960 * libspi/accessible.c:
2961 Added implementation for Accessible_getRole()
2963 Added festival support, used if environment variable
2966 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2968 * at-bridge/bridge.c:
2969 Now allocate Accessibility_Event using
2970 Accessibility_Event__alloc() instead of g_new0().
2971 * libspi/accessibleeventlistener.c:
2972 Initialize AccessibleEventListener->callbacks to NULL.
2973 Fixed accessible__event_listener_init() param, changed to
2974 "AccessibleEventListener *" type.
2975 Changed a bonobo_object_release_unref() call to
2976 Accessibility_Accessible_unref().
2977 * libspi/listener.c:
2978 Changed Bonobo_Unknown_unref to (equivalent)
2979 Accessibility_Accessible_unref.
2980 * libspi/registry.c:
2981 Changed bonobo_object_release_unref to
2982 Accessibility_Accessible_unref.
2984 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2987 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
2988 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
2989 spi-util.c spi-util.h
2990 Implementations for C bindings to remaining accessibility
2993 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2996 changed return value of Action from void to boolean to
2997 bring in line with ATK.
3000 Changed getText funcions to return "out" start and end offsets.
3001 Changed getAttributes to take and offset and return the start
3002 and end offset of the attribute run.
3003 Changed getOffsetAtPoint and getCharacterExtents to take an
3004 enum describing whether coordinates are window or screen.
3007 libspi/action.c libspi/action.h libspi/editabletext.c
3008 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
3009 libspi/hypertext.c libspi/hypertext.h libspi/image.c
3010 libspi/image.h libspi/selection.c libspi/selection.h
3011 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
3012 libspi/value.c libspi/value.h
3013 Added server implementations for outstanding ATK interfaces
3014 not yet implemented.
3016 2001-09-04 Bill Haneman <bill.haneman@sun.com>
3019 Added (missing) getName() method.
3020 Made nActions an attribute.
3021 * idl/EditableText.idl:
3022 Changed order of params in setAttributes.
3023 * idl/Hyperlink.idl:
3024 Removed getAnchor, added getURI.
3026 Changed attributes to methods, for efficiency
3027 (so that getting extents can be done in one call)
3028 * idl/Selection.idl:
3029 Changed nSelectedChildren to attribute, and re-indented.
3030 * idl/Table.idl: changed nrows, ncolumns, caption, summary
3032 * idl/Text.idl: reformatted to match our coding style.
3033 (temporarily?) removed getRowColumnAtOffset().
3034 Changed text selection API to support multi-select and
3035 non-contiguous selections, as in ATK.
3036 * idl/Value.idl: changed some methods to attributes.
3038 2001-08-24 Mark McLoughlin <mark@skynet.ie>
3040 * libspi/listener.c(impl_notify_event):
3041 BonoboUnkown_unref the source instead
3042 of bonobo_object_release_unref - the ORB
3043 handles the releasing.
3045 * configure.in: require ORBit-2.3.94 for
3048 2001-08-21 Bill Haneman <bill.haneman@sun.com>
3050 Tagged CVS repository 'EA_1_0'.
3051 * README.EARLY_ACCESS:
3052 Alphabetized acknowledgements list, and
3054 Listed some known dependencies of at-spi.
3056 2001-08-20 Bill Haneman <bill.haneman@sun.com>
3058 * docs/at-spi-docs.sgml:
3059 * docs/at-spi-sections.txt:
3060 * docs/at-spi-overrides.txt: (Added zero-length file)
3061 Documentation improvements - gtk-doc should build
3062 docs for all implemented C bindings now.
3065 * cspi/spi.c: (New file)
3066 * cspi/spi_event.c: (New file)
3067 * cspi/spi_registry.c: (New file)
3068 * cspi/spi_accessible.c: (New file)
3069 * cspi/spi_application.c: (New file)
3070 * cspi/spi_component.c: (New file)
3071 Split spi_main.c into six parts, and included them from
3072 "spi.c". This is a bit of a hack, probably temporary,
3073 but required by gtk-doc, apparently.
3075 2001-08-20 Bill Haneman <bill.haneman@sun.com>
3078 * docs/at-spi-docs.sgml:
3079 * docs/at-spi-sections.txt:
3081 Initial checkins/modifications for gtk-doc generation.
3084 Added (missing) interface query methods to Accessible's C binding.
3086 Added GenericInterface type definition.
3088 Added query for AccessibleComponent interface to focus event handler.
3089 Added printout of bounding box for focussed component.
3090 * libspi/component.c:
3091 Added partial implementation for AccessibleComponent to C binding.
3092 * idl/Application.idl:
3093 * libspi/registry.c:
3094 * libspi/listener.c:
3095 * libspi/application.c:
3096 * libspi/application.h:
3097 Changed "ID" attribute type from string to long.
3099 2001-08-19 Bill Haneman <bill.haneman@sun.com>
3103 Made method naming consistent: methods taking object args
3104 start with uppercase, other methods (except those using
3105 acronyms) start with lowercase. Underscores delimit between
3106 object names and method names:
3107 SPI_init() - uppercase since it starts with an acronym.
3108 getDesktopCount () - lowercase start since no object param0.
3109 Accessible_getName() - uppercase object type name, studlyCaps method
3113 Added gtk-doc documentation for all currently implemented
3114 methods in the C bindings API.
3116 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3118 * Makefile.am : changed build order to build test last.
3121 Changed "createEventListener" to "CreateEventListener".
3122 * libspi/accessibleeventlistener.c :
3123 Bugfix for addition of callbacks.
3124 * test/Makefile.am :
3125 * test/simple-at.c :
3126 Added new test that uses the C bindings API.
3128 * libspi/listener.c :
3129 * libspi/registry.c :
3130 * libspi/accessibleeventlistener.c :
3131 * at-bridge/bridge.c :
3132 Renamed member "target" of Accessibility_Event to "source",
3133 which is more descriptive.
3136 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3140 * cspi/Makefile.am :
3141 Added makefile support for at-spi/cspi directory.
3144 * cspi/spi-listener.h : (NEW FILE)
3145 Added support for/use of spi-listener.h.
3147 C bindings now build successfully, with no warnings.
3148 * libspi/accessibleeventlistener.h : (NEW FILE)
3149 * libspi/accessibleeventlistener.c : (NEW FILE)
3150 * libspi/Makefile.am :
3151 Added new object type "AccessibleEventListener"
3152 which inherits from Listener, and allows attachment
3153 of in-process callbacks (so that a client with a listening
3154 object instance can add functionality to the local
3155 implementation, dynamically).
3157 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3159 * libspi/accessible.c:
3160 Add implementation for get_index_in_parent().
3162 Added #include of "spi-roletypes.h", and
3163 added enumerated type AccessibleCoordType.
3164 Added definition for KeystrokeListener (function type).
3167 * cspi/spi-statetypes.h :
3168 * cspi/spi-roletypes.h :
3170 Added these headers, used by spi.h.
3172 Added code (NOTE: not yet built by make).
3174 2001-08-18 Mark McLoughlin <mark@skynet.ie>
3176 * libspi/Makefile.am: generate imodule
3177 at the same time as other idl compiler
3180 2001-08-17 Bill Haneman <bill.haneman@sun.com>
3181 * libspi/registry.c :
3182 * libspi/application.c :
3183 * idl/Application.idl :
3184 Made registration with toolkit an application method,
3185 which is required since each app has its own toolkit static
3186 environment. Thus the bridge must register for
3187 notification of toolkit events from each application in turn.
3188 Toolkit notifications are now successfully registered for, and
3189 sent to the listening at client.
3191 Changed toolkit event string to use hyphens rather than underscores.
3192 * libspi/listener.c :
3193 listner now gives more info in debug mode - it reports the
3194 name of the event received, as well as the name of the source.
3197 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3199 * libspi/registry.c :
3200 added more implementation for toolkit events.
3201 Fixed bug such that toolkit event registrations
3202 (via atk) use the whole event name string, not
3204 Removed a useless call to an ORBit_ method.
3205 * at-bridge/bridge.c :
3206 Removed unused local sbuf[] variable.
3208 We now register for Gtk:GtkWidget:button_press_event
3209 events as well as "focus:" events.
3211 Add some more API from Registry.idl that was missing,
3212 for keystroke listening, keystroke and mouse event
3213 synthesis, and enumeration of accessible desktops.
3215 2001-08-16 Michael Meeks <michael@ximian.com>
3217 * configure.in: use AM_GLIB_GNU_GETTEXT.
3219 * Makefile.am (SUBDIRS): kill intl.
3221 2001-08-15 Michael Meeks <michael@ximian.com>
3223 * registryd/Makefile.am: s/oaf/server/ relocate info file.
3225 * configure.in: upd.
3227 * configure.in: depend on a recent bonobo-activation that
3228 will find our server files ...
3230 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3232 * libspi/accessible.c : accessible_new() :
3233 Now we add the Component interface via bonobo_object_add_interface,
3234 if the contained AtkObject implements AtkComponent.
3235 * libspi/accessible.h : now include "component.h"
3236 * libspi/component.h :
3237 * libspi/component.c : added files - implementation of
3238 bonobo wrapper object for Accessibility/Component
3239 * libspi/listener.c :
3240 Added test code to check for Accessibility/Component:1.0
3241 interface and report whether it is implemented by the
3243 * libspi/registry.c :
3244 Now we check for not only the hash of the whole event
3245 string before relaying the event, we also check the
3246 "minor" event string (without the detail string).
3247 This allows event listeners to be registered against
3248 all events of a certain major+minor type, or just
3249 against a specific major+minor+detail type.
3250 * libspi/accessible.c :
3251 Added implementations for Accessible:get_parent(),
3252 Accessible:getChildCount(), and Accessible:getChildAtIndex().
3253 * libspi/registry.c :
3254 * libspi/listener.c :
3255 Replaced calls to Accessibility_Accessible_ref() and
3256 Accessibility_Accessible_unref() with
3257 calls to bonobo_object_dup_ref() and
3258 bonobo_object_release_unref(), so that the CORBA object
3259 is dup-ed and released when relayed, as well as the bonobo object.
3261 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3263 * libspi/Makefile.am,
3264 registryd/Makefile.am,
3265 at-bridge/Makefile.am.
3266 test/Makefile.am, configure.in:
3267 reverse previous changes.
3269 * /idl/Image.idl: fix typo.
3271 * test/Makefile.am: put DEBUG_FLAGS
3274 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3276 * test/app.c: use argv[0] instead of
3279 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3281 * libspi/Makefile.am,
3282 registryd/Makefile.am,
3283 at-bridge/Makefile.am.
3284 test/Makefile.am, configure.in:
3285 cleanup, replace individual LIBS/CFLAGS with
3286 AT_COMMON_{LIBS|CFLAGS}.
3290 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3292 * configure.in, libspi/Makefile.am:
3293 Change IDL path checking for bonobo-activation
3296 2001-08-15 Bill Haneman <bill.haneman@sun.com>
3298 * registryd/registry.c : separated event listeners to use
3299 3 separate lists (focus, window, toolkit). Began testing
3300 event names against hashes before relaying events.
3301 * test/at.c : now register for events of type "focus:"
3302 * test/app.c : now generate events of type "focus:"
3303 * at-bridge/bridge.c : register with ATK for focus events,
3304 and we now relay those focus events to any "focus:" listeners.
3305 This now works with the bridge as a GTK_MODULE when running test/at.
3306 * libspi/registry.c :
3307 * libspi/listener.c :
3308 now we ref event sources before propagating, and unref on receipt.
3309 * libspi/registry.c :
3310 some changes to internal structs, to support event typestring hashes.
3311 * text/app.c : changed the way the appname is generated.
3312 * cspi : added directory that will hold the C bindings library for
3313 non-CORBA/bonobo-savvy clients.
3314 * cspi/spi.h : header file that contains the function prototypes for the C binding.
3315 * idl/Component.idl : added in parameter to indicate coord system for
3316 geometry-related calls.
3317 * idl/Hyperlink.idl : added readonly n_links attribute
3318 * idl/Image.idl : changed methods to attributes.
3320 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3322 * at-bridge/Makefile.am: link against
3323 ../libspi/libspi.la instead of -lspi.
3325 * at-spi/test/app.c: include
3326 bonobo-activation.h. Use a default appname
3327 if one is not provided.
3329 2001-08-14 Bill Haneman <bill.haneman@sun.com>
3331 * idl/Registry.idl : temporarily changed register_Application
3332 to oneway, to work around issue with initial registration
3334 * idl/Application.idl : changed attribute "id" from readonly
3335 to read-write, since it needs to be assigned by Registry.
3336 * registryd/registryd.c : added call to set application id
3338 * registryd/registry.c : changed de-registration procedure to
3339 use CORBA_Object_hash() to find matching object ref in application
3340 lists and listener lists.
3341 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
3342 began distinguishing between event types (work in progress).
3344 2001-08-13 Bill Haneman <bill.haneman@sun.com>
3347 * libspi/application.c:
3348 Added implementations for get/set id, get_toolkitName,
3350 * registryd/registryd.c :
3354 Converted from use of OAF to bonobo-activation.
3355 * libspi/desktop.h :
3356 * libspi/desktop.c :
3358 Removed references to atksimpleobject, since base atkobject
3359 implementation now provides functionality we need.
3360 * libspi/atksimpleobject.c :
3361 * libspi/atksimpleobject.h :
3366 * at-bridge/Makefile.am
3367 * at-bridge/bridge.c
3370 Added directory "bridge" and contents, and added dependencies
3371 in Makefile.am/configure.in.
3372 Initial checkin of "at-bridge".
3373 This code is a GTK_MODULE which automatically registers
3374 GTK+ apps with the accessibility registry, using an object
3375 reference to the root ATK object.
3377 2001-08-10 Mark McLoughlin <mark@skynet.ie>
3379 * po/Makefile.in.in: Remove. Again. If this
3380 doesn't get autogenerated - you need to update
3383 2001-08-07 Mark McLoughlin <mark@skynet.ie>
3385 * po/Makefile.in.in: Add. Again.
3387 2001-07-31 Bill Haneman <bill.haneman@sun.com>
3389 * libspi/accessible.c : added support for 'description' property.
3390 * libspi/accessible.c
3392 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
3393 (since the two are now equivalent in libbonobo)
3401 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
3402 Bonobo::Unknown as does Accessibility::Accessible.
3403 * idl/StreamableContent.idl : as above, and replaced internal InputStream
3404 interface with Bonobo::Stream, since it was redundant with it.
3405 (The Stream returned by a StreamableContext object is expected to
3406 implement only a subset of Bonobo::Stream)
3408 2001-07-28 Anders Carlsson <andersca@gnome.org>
3410 * libspi/accessible.c (accessible_object_finalize): Change
3411 g_free to g_object_unref since the AtkObject is a GObject.
3413 2001-07-30 Bill Haneman <bill.haneman@sun.com>
3415 * idl/Accessibility.idl: add new IDL files
3418 * idl/Action.idl: Definitions of actionable UI object
3419 * idl/Component.idl: Definitions of UI component geometry, etc.
3420 * idl/Hyperlink.idl: Defs of hyperlink behavior
3421 * idl/Image.idl: Def of accessible image
3422 * idl/Selection.idl: Definition of UI object with selectable children
3423 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
3424 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
3425 * idl/Text.idl: Interface defs for UI elements with complex textual content
3426 * idl/Value.idl: Definition of UI element that is a value controller or display
3428 2001-07-27 Michael Meeks <michael@ximian.com>
3430 * po/Makefile.in.in: remove autogenerated file from CVS.
3432 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
3435 * idl/Registry.idl: include guard.
3437 * idl/Accessibility.idl: Add, and include all the other IDL
3440 * idl/*.idl: remove mass of pragmas etc.
3442 2001-07-26 Michael Meeks <michael@ximian.com>
3444 * registryd/Makefile.am (registryd_SOURCES): remove
3447 2001-07-27 Mark McLoughlin <mark@skynet.ie>
3449 * libspi/.cvsignore, registryd/.cvsignore,
3450 test/.cvsignore: updated.
3452 * po/Makefile.in.in: gettext update.
3454 2001-07-25 Bill Haneman <bill.haneman@sun.com>
3456 * initial CVS checkin
3458 2001-06-29 Michael Meeks <michael@ximian.com>
3460 * configure.in: add AM_CONFIG_HEADER to gen config.h