1 2002-02-12 Bill Haneman <bill.haneman@sun.com>
3 Magnification Utility Enhancements:
6 Added implementation of createZoomRegion, clearAllZoomRegions,
7 resizeZoomRegion. Added new commandline argument
8 "--no-initial-region". Note that clearAllZoomRegions doesn't
9 unmap the old '0' region as it should (yet), and the other
10 methods only work when creating/resizing a single region,
12 (Code for multiple region support will be added later.)
15 Now we raise the magnifier window each time it's refreshed;
16 this will help keep it on top.
19 Added simple wrappers for above, used by mag_control.
20 For general use, it's recommended to use the bonobo magnifier
21 control API directly instead of using these wrappers.
24 Moved ZoomRegionData from magnifier.c to this file.
27 Added some code to exercise new IDL implementations.
29 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
31 * libspi/text.c: Provide implementation for getAttributes.
33 2002-02-04 Bill Haneman <bill.haneman@sun.com>
39 Replaced use of deprecated g_main_iteration with
40 g_main_context_iteration.
42 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
45 Incremented revision for desktop alpha 2.
47 2002-01-28 Mark McLoughlin <mark@skynet.ie>
49 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
52 * test/simple-at.c: include netinet/in.h.
54 2002-01-24 Mark McLoughlin <mark@skynet.ie>
56 * cspi/spi_accessible.c: (Accessible_getRelationSet):
57 use NULL, not CORBA_OBJECT_NIL.
59 * libspi/accessible.c:
60 (impl_accessibility_accessible_get_relation_set):
61 allocate the sequence correctly.
63 * libspi/remoteobject.h: kill spi_remote_object_new.
65 * test/test-simple.c: (validate_accessible): add code
66 to test relation sets, now all we need is to figure
67 out how to excercise this code path :/
69 2002-01-18 Michael Meeks <michael@ximian.com>
72 (key_listener_cb): consume the key.
73 (test_keylisteners): update.
74 (main): wait for any pending unrefs on events.
76 * registryd/deviceeventcontroller.c
77 (spi_controller_update_key_grabs): only re-issue the
78 grab on a key release.
79 (spi_device_event_controller_forward_key_event):
80 refresh the keygrabs before we notify the listeners,
81 to reduce the X ungrab / re-grab race.
82 (spi_controller_register_with_devices): remove
83 XSelectInput - we do that with the gdk_window_ call.
84 (_spi_controller_device_error_handler): return a value.
85 s/GDK_DISPLAY/spi_get_display/
87 2002-01-17 Michael Meeks <michael@ximian.com>
89 * registryd/deviceeventcontroller.c
90 (_deregister_keygrab): don't blow out the later
93 * test/test-simple.c (test_keylisteners): do a
94 more intelligent validation.
96 2002-01-14 Michael Meeks <michael@ximian.com>
99 (gnome_accessibility_module_init),
100 (gnome_accessibility_module_shutdown): impl.
101 (gtk_module_init): protect vs. double inits.
102 (add_signal_listener): impl.
103 (spi_atk_bridge_state_event_listener): kill
104 (deregister_application): split out of
105 (spi_atk_bridge_exit_func): here.
107 2002-01-18 Bill Haneman <bill.haneman@sun.com>
110 Added caret tracking when using magnifier, and
111 now use text bounds for focus tracking of text elements, rather than
112 the component bounds - this is helpful for short text fields in long
113 table cells, at high magnification.
115 2002-01-16 Bill Haneman <bill.haneman@sun.com>
117 * registryd/deviceeventcontroller.c:
118 Regression fix for keylistener de-registration; global keygrabs
119 were not being released when deregisterKeystrokeListener was
120 called in cspi, since
121 Accessibility_DeviceEventController_deregisterKeystrokeListener
122 was called with a zero-length keyset. That is because the cspi
123 method, SPI_deregisterKeystrokeListener, does not take a keyset
124 parameter but instead should remove all the key grabs held be a
126 The code in impl_deregister_keystroke_listener was changed to copy
127 the keylist from the listener instance previously registered with
128 the DeviceEventController before releasing the grabs.
130 * registryd/registry.c:
131 * registryd/deviceeventcontroller.c:
132 * libspi/spi-private.h:
134 Changed spelling of "re-enterant" to "re-entrant" globally.
136 2002-01-16 Bill Haneman <bill.haneman@sun.com>
138 * test/test-simple.c:
139 Changed key listeners test - the test was slightly mis-using the
140 (admittedly poorly documented) SPI_generateKeyboardEvent API.
141 It now uses '=' as the key event listened to and generated,
142 relying on a keysym match rather than assuming that keycode 33
143 is always equal to keysym '!'.
145 2002-01-15 Bill Haneman <bill.haneman@sun.com>
148 Changed simple-at to use a specific keyset, rather than
149 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
150 manager, desktop, etc.
152 2002-01-11 Bill Haneman <bill.haneman@sun.com>
154 * registryd/deviceeventcontroller.c:
155 Replaced standard X error handler with a special handler that
156 is non-fatal for failed keygrabs. This works around
157 problems with keygrab clashes sometimes observed on
159 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
160 mouse handling code as yet).
162 2002-01-11 Bill Haneman <bill.haneman@sun.com>
165 Incremented revision for desktop alpha release.
168 Fixed a couple of the more glaring errors (still not
171 2002-01-11 Michael Meeks <michael@ximian.com>
173 * registryd/deviceeventcontroller.c
174 (spi_device_event_controller_forward_key_event): kill
175 XUngrabKey / XKeyGrab race.
176 (spi_controller_grab_keyboard): rename to
177 (spi_controller_update_key_grabs): this, and deal
178 with incremental adding / removing grabs more
180 (_register_keygrab): ensure we're not pending a remove.
181 (spi_grab_mask_free): impl.
182 (spi_controller_register_global_keygrabs): split out
184 (handle_keygrab): impl.
185 (_deregister_keygrab): impl.
186 (spi_controller_deregister_global_keygrabs): impl.
187 (spi_controller_update_key_grabs): re-issue the grab if
188 we just recieved a notification.
190 * test/test-simple.c (key_listener_cb): remove debug.
192 * registryd/deviceeventcontroller.c
193 (spi_controller_register_device_listener): after
194 registering a global keygrab, actualy register it !
195 don't wait for a timeout; doh !
197 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
198 to make it more readable / manipulable.
199 s/grabmask/grab_mask/ s/refcount/ref_count/
200 s/keyval/key_val/ s/modmask/mod_mask
202 2002-01-08 Michael Meeks <michael@ximian.com>
204 * registryd/deviceeventcontroller.c
205 (spi_controller_register_with_devices): use gdk calls to
207 (global_filter_fn): implement the filter.
208 (spi_device_event_controller_check_key_event): rename to
209 (spi_device_event_controller_forward_key_event): this & upd.
210 (spi_get_display): replace with GDK_DISPLAY.
212 * registryd/deviceeventcontroller.c
213 (spi_controller_deregister_device_listener): unroll into
214 (impl_deregister_keystroke_listener): here to simplify.
215 (spi_controller_register_global_keygrabs): split cut and
216 paste (!) out into (_register_keygrab): here, shorter & sweeter.
217 (spi_controller_deregister_device_listener): remove.
218 (impl_register_mouse_listener): remove, no mouse listener
219 support in at-spi-1.0
221 * registryd/registry.c
222 (_device_event_controller_hook): kill.
223 (spi_registry_init): upd.
225 * registryd/deviceeventcontroller.c
226 (spi_device_event_controller_class_init): upd.
227 (spi_check_key_event): merge into.
228 (spi_device_event_controller_check_key_event):
229 here and kill strange static ev init, don't leak
230 the x_event - nor dynamicaly allocate it.
232 * registryd/registry-main.c (main): re-direct
233 timeout to remove strange vtable mess.
235 * registryd/deviceeventcontroller.c
236 (remove_listener_cb): impl.
237 (spi_controller_deregister_device_listener):
238 fix re-enterancy hazard.
240 2002-01-07 Michael Meeks <michael@ximian.com>
242 * registryd/deviceeventcontroller.c
243 (spi_device_event_controller_new): upd.
244 (impl_notify_listeners_sync): upd. debug.
245 (spi_notify_keylisteners): fix re-enterancy hazards,
246 prettify, remove O(n*n) iteration.
247 (spi_controller_grab_keyboard): fix iteration.
248 (spi_check_key_event): re-format to suit coding style.
249 Clean all the warnings - we're warning free.
251 * registryd/deviceeventcontroller.h:
252 * registryd/registry.h: make mutualy referential with
253 typesafe forward references instead of (!) void pointer
256 2002-01-11 Michael Meeks <michael@ximian.com>
258 * cspi/spi_accessible.c (role_names): add a role name
259 to sync this array with the enum; and make the regression
262 2002-01-10 Michael Meeks <michael@ximian.com>
264 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
265 allow expansion of enumeration & kill warning.
267 * test/test-simple.c (key_listener_cb): impl.
268 (test_keylisteners): impl.
270 * cspi/spi-listener.h: make listener signatures const
271 on the provided (const) events.
273 * test/keysynth-demo.c: upd. to const events.
275 * test/simple-at.c: ditto.
277 2002-01-11 Bill Haneman <bill.haneman@sun.com>
280 Rev the version to 0.5 (the previous tarball was named 0.4,
281 even though the micro number was 3), so we need to rev upwards
282 again for beta2/"desktop-alpha"
285 Checked in a demo script, which requires editing before use!
286 Proceed with caution.
289 Fixed typo in header which was redefining SPI_ACTION_CLASS.
291 * cspi/spi_accessible.c:
292 Add a couple of missing enum initializations, and fix some enum
295 * cspi/spi_registry.c:
296 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
298 * docs/reference/cspi/at-spi-cspi-sections.txt:
299 Remove/fix a couple of broken document references.
302 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
303 as Alt-Control to listen for commands, since on some systems
304 Control-Alt may already be grabbed.
306 2002-01-10 Bill Haneman <bill.haneman@sun.com>
309 Update version number to 0.4 for Beta2.
311 * libspi/accessible.c, libspi/accessible.h:
312 Expose spi_accessible_construct, to enable libgail-gnome
313 construction from spi_accessible subtype.
316 Workaround for bug in some non-gnome-compliant window managers
317 which made magnifier resize improperly.
319 2002-01-09 Bill Haneman <bill.haneman@sun.com>
321 * libspi/accessible.c: (spi_accessible_new) :
322 Move the test for SPI_IS_REMOTE_OBJECT to
323 spi_accessible_new_return, fixing a bug and compile time warning.
325 2002-01-08 Michael Meeks <michael@ximian.com>
327 * registryd/registry.c (parse_event_type): remove strndup.
329 * libspi/Makefile.am (libspi_la_SOURCES): remove
330 sources already included in the headers section.
332 * libspi/util.c: add.
334 * libspi/spi-private.h: add.
336 * registryd/registry.c: update to moved list iterators.
338 2002-01-05 Michael Meeks <michael@ximian.com>
340 * test/simple-at.c (main): upd. auto-module set to atk-bridge
342 * test/test-simple.c (main): ditto.
344 2002-01-04 Michael Meeks <michael@ximian.com>
346 * libspi/accessible.c (spi_accessible_new): remove 2nd,
349 * registryd/registry.c
350 (get_listener_list): impl.
351 (impl_accessibility_registry_register_global_event_listener):
352 re-impl. to simplify using ~, remove dodgy const cast off.
353 (parse_event_type): constify.
354 (impl_accessibility_registry_deregister_global_event_listener_all):
355 re-write, more efficiency and simplicity, kill re-enterancy
357 (compare_listener_corbaref, compare_corba_objects),
358 (compare_listener_quarks): define out.
359 (impl_accessibility_registry_deregister_global_event_listener):
360 re-write for effiency, and nail re-enterancy hazard.
361 (impl_accessibility_registry_get_desktop_list): impl.
362 (re_enterant_list_delete_link): impl.
363 (re_enterant_list_foreach): impl.
364 (remove_listener_cb): impl.
365 (_registry_notify_listeners): kill.
366 (notify_listeners_cb): impl.
368 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
369 (SPI_getDesktopList): impl.
371 * test/test-simple.c (test_desktop): test the methods.
373 2002-01-03 Michael Meeks <michael@ximian.com>
375 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
376 keystrings since we free them
377 (SPI_freeAccessibleKeySet): in here.
379 * libspi/accessible.c (spi_accessible_new): kill warning,
380 wonder what is going on with the constructor here.
382 2002-03-01 Bill Haneman <bill.haneman@sun.com>
384 * libspi/accessible.c (spi_accessible_new ()) :
385 Added check to see if AtkObject is an SpiRemoteObject before
386 creating an SpiAccessible.
388 2002-05-01 Bill Haneman <bill.haneman@sun.com>
390 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
391 Enable keygrabs using the Control modifier, now that they are
392 working properly (they were previously disabled).
395 Change the command keygrab for this demo to "Control+Alt", so as
396 to conflict with fewer other key commands on the system; this
397 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
399 Removed a pointlessly-chatty keylistener for unshifted keys
400 (shifted keys are still reported).
402 2002-02-01 Bill Haneman <bill.haneman@sun.com>
404 * libspi/remoteobject.h:
405 * libspi/remoteobject.c:
406 Added definitions for special AtkObject subtype, required for
407 support of remote components (specifically, used by BonoboControl
408 accessibility implementation).
410 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
412 * cspi/spi.h: synched relation types with ATK
414 * cspi/spi_accessible.c: Added implementations of
415 AcccessibleRelation_* methods
417 * idl/Accessibility_Relation.idl: added getRelationTypeName
418 method. Synched known relation types with ATK. Allowed for
419 relation type extension with the RELATION_EXTENDED type.
421 * libspi/relation.c: Provided implementations for
422 AccessibleRelation methods.
424 2002-01-01 Bill Haneman <bill.haneman@sun.com>
426 API tweaks for today's API 'freeze'.
429 Added placeholder functions to allow future compatible expansion
430 of the IDL interfaces.
432 * idl/Accessibility_Registry.idl:
433 Changed generateKeyEvent to generateKeyboardEvent. Changed
434 signature of this method to accept an optional keystring in
435 parameter (for complex text input synthesis) and changed use of
436 simple 'boolean' parameter in registerKeystrokeListener to a
437 struct, EventListenerMode.
439 * cspi/spi_accessible.c:
441 * cspi/spi_streamablecontent.c:
442 Added references to AccessibleStreamableContent interface, and
443 definition and implementation of AccessibleStreamableContent
446 * cspi/spi_registry.c:
448 Changed generateKeyEvent API to generateKeyboardEvent,
449 taking a new (optional) keystring parameter to support complex
454 Renamed directory (to better reflect its actual purpose, bridging
455 from at-spi to ATK). The .so module is also now named
458 * idl/Accessibility_Hypertext.idl:
459 * libspi/accessible.c:
460 * libspi/hypertext.h:
461 * libspi/hypertext.c:
462 Changed Accessibility_Hypertext to *not* derive from
465 * cspi/spi_registry.c:
466 Added list of legal event type names for 'window' events, which
467 completes the registry event API.
469 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
471 * at-bridge/bridge.c: Added registration for separate
472 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
473 signals. If either of the first two parameters to the generic
474 bridge signal handler are ints, they are passed on as event
475 details. This allows an AT to determine what text was inserted.
477 2001-12-21 Bill Haneman <bill.haneman@sun.com>
479 * registryd/deviceeventcontroller.c:
480 Fixed regressions in generateKeyEvent caused by the removal of
481 gdk_init from registryd; we now use pure X calls to connect to the
482 display, which makes sense because deviceeventcontroller already
483 uses a fair bit of X API (should eventually be migrated to a
484 'portability layer').
486 * registryd/desktop.c:
487 Fixed minor regression in spi_desktop_init, changed the way the
488 desktop name is being set to work with new spi_base API
489 (gobject-based, rather than AtkObject-based).
491 * registryd/Makefile.am:
492 Minor revision of makefile to use XTST_LIBS variable rather than
493 hard-wiring the Xtst LD_ADD element.
495 * test/keysynth-demo.c:
496 Tweaked an output message; added initialization of the
497 'keystrings' member of the "switch listener" key_set.
500 Squashed compile-time warning.
502 * libspi/accessible.c:
503 Cosmetic and formatting fixes, renamed a static method.
505 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
507 * libspi/accessible.c
509 * libspi/application.c
513 * libspi/editabletext.c
521 * registryd/desktop.c:
522 Changed SpiBase to contain a GObject pointer rather than an AtkObject
524 2001-12-17 Bill Haneman <bill.haneman@sun.com>
526 * idl/Accessibility_Registry.idl:
527 Added boolean member 'is_text' to DeviceEvent. This is for the
528 use of key events, and helps prevent ambiguity between composed
529 key strings and keysym names, since both may potentially be
530 returned in the 'event_string' member.
532 * at-bridge/bridge.c:
533 * registryd/deviceeventcontroller.c:
534 Use the 'is_text' member when notifying device event listeners.
535 Knon issue: composed characters are not dealt with correctly by
536 the global key listener implementation yet.
538 2001-12-17 Bill Haneman <bill.haneman@sun.com>
540 * at-bridge/bridge.c:
541 Namespaced local static methods to spi_atk_bridge_* where
542 previously named bridge_*, and spi_* elsewhere.
544 * at-bridge/bridge.c:
545 * cspi/bonobo/cspi-bonobo-listener.c:
546 Added demarshalling/conversion for string member of
547 Accessibility_DeviceEvent to AccessibleKeystroke.
549 * registryd/deviceeventcontroller.c:
550 Added code to fill the Accessibility_DeviceEvent key string value
551 member for global key events (i.e. from XGrabKey), to match
552 behavior of Accessibility_DeviceEvent from the toolkit key events
553 from the bridge. Fixed timestamp in global key event notifications.
556 Added printout of key event's string value to
557 report_ordinary_key_event, for demo/debugging purposes.
559 2001-12-15 Bill Haneman <bill.haneman@sun.com>
561 * idl/Accessibility_Registry.idl:
562 Removed Accessibility_KeyStroke structure in favor of generic
563 Accessibility_DeviceEvent structure.
564 Changed Accessibility_ControllerEventMask from a struct to an
567 * at-bridge/bridge.c:
568 Changed APIs to use DeviceEvent structure as above, and removed
569 bogus casting between these event structures.
571 * cspi/spi-listener.h:
572 Added keystring member of AccessibleKeystroke structure, to enable
573 matching on event "names" rather than only hardware codes and
577 Added keystrings member of AccessibleKeySet struct, to allow
578 matching on event names (as above).
579 Added declarations for SPI_createAccessibleKeySet and
580 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
581 event modmasks directly as unsigned ints rather than structs with
582 refcounts, in the DeviceEventController methods.
584 * cspi/spi_registry.c:
585 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
587 * cspi/spi-roletypes.h:
588 Added documentation of newly added SPI Roles.
590 * cspi/bonobo/cspi-bonobo-listener.c:
591 Changes in support of API changes above.
593 * libspi/accessible.c:
594 Converted APIs to use DeviceEvent structure (see IDL changes
597 * registryd/deviceeventcontroller.c:
598 Added DEControllerGrabMask structure to track keygrabs not only by
599 modmask but by keyset as well; this allows us to do "global"
600 (i.e. X) keygrabs on a per-key or keyset basis rather than always
601 grabbing on AnyKey and then filtering after-the-fact.
602 Bugfixes for event filtration mean that we don't get false matches
603 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
605 * registryd/deviceeventcontroller.c:
606 Namespaced a number of static methods to use spi_ prefix. Major
607 revision to internals of global (i.e. X) key grabs.
609 * registryd/deviceeventcontroller.h:
610 Removed keymask_list and added keygrabs_list to
611 SpiDeviceEventController struct.
614 Added use of SPI_createAccessibleKeySet API when creating a
615 listener for only one key. Attach a listener to "shift spacebar
616 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
617 X key event names to SPI key event names, so that listeners are
618 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
620 * test/keysynth-demo.c:
621 Changed (incorrect) use of X key event names (KeyPressed,
622 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
625 2001-12-12 Bill Haneman <bill.haneman@sun.com>
627 * libspi/accessible.c:
628 Convert all AtkRole enumerations to Accessibility_Role enums when
629 getting a role from an AtkObject.
631 * cspi/spi_accessible.c:
632 Complete the conversion of Accessibility_Role enums at runtime to
633 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
634 role enums correctly match those given in spi-roletypes.h.
635 Re-synchronize the local names list for AccessibleRole_getName ().
636 AccessibleRole_getName is now deprecated, since it duplicates the
637 more reliable Accessible_getRoleName.
638 Added some role types from Accessibility_Role.idl.
640 * idl/Accessibility_Role.idl:
641 Added some role types used by AtkRole.
643 2001-12-12 Bill Haneman <bill.haneman@sun.com>
646 * cspi/spi_registry.c:
648 * cspi/cspi-bonobo-listener.c:
649 Namespaced all methods that did not begin with an "SPI_" or
650 "Accessible" prefix to "SPI_".
653 Homogenized internal function namespace to "cspi_" for statics.
656 Patched tests to use the new CSPI API.
658 * docs/reference/cspi/at-spi-cspi-sections.txt:
659 Updated docs to reflect namespace changes, and added a number of
660 methods to the documentation.
662 * registryd/registry.c:
663 Changed use of strings and string hashes in listener event
664 matching and parse_event_string to use GQuark, which is guaranteed
667 * registryd/registry.h:
668 Squashed annoying warning.
670 * idl/Accessibility_Role.idl:
671 Extended range of available Accessibility_Role values.
673 * cspi/spi_accessible.c:
674 Re-ordered role names.
676 2001-12-12 Bill Haneman <bill.haneman@sun.com>
678 * idl/Accessibility_Value.idl:
679 Revert use of union back to CORBA_double, since the double type is
680 more efficient and can contain the other types without loss of
683 * idl/Accessibility_Accessible.idl:
684 Added method Accessibility:Accessible:getRoleName, to complement
685 Accessibility:Accessible:getRole.
687 * cspi/spi_accessible.c:
689 Added C binding for above, Accessible_getRoleName (), and changed
690 signature of Accessible_getRole () to return an AccessibleRole.
692 * cspi/spi-roletypes.h:
693 Changed AccessibleRole_getName to return a char * instead of a
694 const char *. This method is now at least temporarily deprecated
695 in favor of asking Accessibles for their RoleNames directly.
698 Revert to match Accessibility_Value.idl;
702 Change signature of AccessibleValue methods to use double rather
706 * cspi/spi_accessible.c:
707 Changed Accessible_getRole to return an AccessibleRole enum rather
708 than a UTF-8 string. The UTF-8 string can still be obtained via
709 AccessibleRole_getName ().
711 * test/test-simple.c:
712 Add test_action. Small fixup to match API change to Accessible_getRole.
715 Bugfix for get_action_from_servant ().
717 2001-12-11 Michael Meeks <michael@ximian.com>
719 * libspi/libspi.h: remove registry.h and
720 desktop.h, deviceeventcontroller.h
722 * libspi/Makefile.am: remove registry.[ch],
723 desktop.[ch], deviceeventcontroller.[ch]
725 * registryd/Makefile.am: add registry.[ch],
726 desktop.[ch], rename registryd.c to registry-main.c.
727 add deviceeventcontroller.[ch]
729 2001-12-11 Bill Haneman <bill.haneman@sun.com>
732 Replace setenv() call with putenv ().
734 * libspi/component.c:
735 Bugfix in AccessibleComponent_getExtents (),
738 2001-12-11 Michael Meeks <michael@ximian.com>
740 * libspi/image.c (impl_getImageExtents): impl.
741 (spi_image_class_init): upd.
744 (AccessibleImage_getImageDescription): fix daft bug
747 * test/test-simple.c (global_listener_cb): update
748 to only quit if not --poke
749 (main): catch --poke.
750 (validate_accessible): upd. dumping, call test_image
753 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
756 * idl/Accessibility.idl: update all IDL includes.
758 * idl/*.idl - rename to namespace - this sucks, blame
759 mjs' bad decision for oafd.
761 * test/test-simple.c (create_test_window): add more tests.
762 (create_tree): split this out.
763 (validate_accessible): bugfix.
765 2001-12-11 Michael Meeks <michael@ximian.com>
767 * cspi/bonobo/cspi-bonobo-listener.c:
768 (cspi_kestroke_listener_unref),
769 (cspi_event_listener_unref): impl. undoing previous
770 homenous environment - for Bill.
772 * cspi/spi_table.c (long_seq_to_array): use
775 * cspi/spi_main.c: split out all bonoboish bits into
778 * cspi/spi-impl.h: upd. typedefs.
780 * cspi/spi_registry.c: update to lowlevel API,
781 return booleans to indicate success in some places.
783 * cspi/spi_event.c: update to lowlevel API.
785 * cspi/bonobo/Makefile.am: add.
787 * cspi/bonobo/cspi-lowlevel.h: add
789 * cspi/bonobo/cspi-bonobo.c: add
791 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
793 * cspi/Makefile.am: remove spi-listener-impl.[ch],
794 (SUBDIRS): add bonobo, link in the libs.
796 * cspi/spi-util.c: kill this file.
798 * TODO: merge in my bits.
800 2001-12-11 Michael Meeks <michael@ximian.com>
802 * test/test-simple.c (test_value, test_table, main):
803 remove unused variables causing warnings.
805 * configure.in: cleanup checks - require gail.
807 2001-12-11 Bill Haneman <bill.haneman@sun.com>
810 Changed Value interface to use SValue (scalars) rather than
811 assuming all values are floats. This allows floats, doubles,
812 longs, shorts, and unsigned values to be manipulated.
813 Introduced Accessibility:SValue union.
816 Updated to use new API above, and to work correctly with GValues
817 of different types in AtkValue.
820 Updated to use new API above. cspi's API is as yet unchanged.
823 Updated the Value revision action item.
825 2001-12-10 Bill Haneman <bill.haneman@sun.com>
827 * test/test-simple.c:
828 Added test_table (GtkTreeView widget in test window to follow).
829 Un-commented test_value, added GtkRange widget.
830 Added GtkTreeView widget with GtkListStore. It passes regression
831 test but leaks one SPI object for some reason.
834 Fixed bug in impl__set_currentValue.
836 2001-12-10 Michael Meeks <michael@ximian.com>
838 * cspi/spi_text.c: audit for exception handling,
839 tolerating NULL object references safely etc.
841 * cspi/spi_value.c: ditto.
843 * cspi/spi_table.c (AccessibleTable_getSummary),
844 (AccessibleTable_getAccessibleAt),
845 (AccessibleTable_getRowHeader),
846 (AccessibleTable_getColumnHeader),
847 (AccessibleTable_getCaption): fix bugs hidden by
849 (long_seq_to_array): impl.
850 (AccessibleTable_getSelectedRows),
851 (AccessibleTable_getSelectedColumns): use it.
853 2001-12-10 Bill Haneman <bill.haneman@sun.com>
856 Added a TODO list (rough and short for now).
858 * cspi/spi_hyperlink.c:
859 * cspi/spi_hypertext.c:
860 Fixed macro name typos, and remove use of obsolete macro in
861 AccessibleHyperlink_getLink.
864 * cspi/spi_accessible.c:
865 * cspi/spi_application.c:
866 * cspi/spi_component.c:
867 * cspi/spi_selection.c:
870 Documentation fixes (removed return values from ref/unref methods).
872 2001-12-10 Michael Meeks <michael@ximian.com>
874 * cspi/spi_action.c: audit for exception handling,
875 tolerating NULL object references safely etc.
877 * cspi/spi_accessible.c: ditto.
879 * cspi/spi_component.c: ditto.
881 * cspi/spi_editabletext.c: ditto.
883 * cspi/spi_hyperlink.c: ditto.
885 * cspi/spi_hypertext.c: ditto.
887 * cspi/spi_image.c: ditto.
889 * cspi/spi_selection.c: ditto.
891 2001-12-10 Michael Meeks <michael@ximian.com>
893 * configure.in: use cspi/libspi.pc.in instead.
895 * Makefile.am (pkgconfig_DATA): upd. to match.
897 * test/simple-at.c (report_focus_event): kill hacks around
898 bad return values, use putenv not setenv
900 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
901 fire ChildGone - I killed it.
904 (impl_accessibility_component_get_extents): remove
907 * idl/Accessible.idl: kill ChildGone exception.
909 * cspi/*.[ch]: kill int return from ref / unref.
911 * cspi/spi_main.c (cspi_object_add_check): fold into
912 (cspi_object_add): here.
914 * cspi/spi_component.c (AccessibleComponent_getExtents):
915 handle exceptions elegantly.
917 * cspi/spi-private.h (cspi_check_ev_return),
918 (cspi_return_if_fail): impl.
920 * cspi/spi_accessible.c: use extensively.
921 (AccessibleStateSet_equals): add direct compare check.
923 * cspi/spi_selection.c: tolerate NULL objs, and check
924 exceptions before return.
926 * cspi/spi-util.c (cspi_warn_ev): rename to
927 (cspi_check_ev): this & don't pass ev in; no point.
929 2001-12-10 Michael Meeks <michael@ximian.com>
931 * test/test-simple.c: use putenv not setenv
932 (get_environment_vars): more chatty if you're not using
935 * test/simple-at.c: do the setenv so more people see the
938 2001-12-10 Bill Haneman <bill.haneman@sun.com>
941 Changed check of CORBA_environment on notification to be a warning
942 instead of an error for the moment, since we can recover from this
943 error when caused by a queued notification from a dead app.
946 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
947 used by all current implementors of AtkValue), and coerce to
948 CORBA_float. (Proper general case fix may require change to Value.idl).
950 2001-12-09 Bill Haneman <bill.haneman@sun.com>
954 * cspi/spi_accessible.c:
955 Documentation fixes: added user_data params to documentation for
956 listeners and callbacks.
958 * cspi/spi_accessible.c:
959 Changed AccessibleStateSet_compare to return a
960 StateSet rather than return the difference set into a third parameter.
963 2001-12-09 Bill Haneman <bill.haneman@sun.com>
966 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
967 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
971 Remove subdirectory po from SUBDIRS for now.
973 * at-bridge/bridge.c:
974 Beefed up a couple of debug printouts.
975 One-line fix for signal notification name formatting.
977 * libspi/accessible.c:
978 Added assertion to spi_accessible_new ().
980 * libspi/application.c:
981 Put #ifdef qualifiers around a printf.
984 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
986 * registryd/Makefile.am:
988 Replaces use of XML_I18N_MERGE_SERVER_RULE with
989 INTLTOOL_SERVER_RULE macro.
992 Added an event listener for several ATK signals, for
993 testing and debugging. Removed a few g_warnings.
994 Added test output if focussed item implements the Value interface.
996 * test/test-simple.c:
997 Added test_value () function (known not to pass at the moment, so
998 not actually called yet.
1000 2001-12-08 Michael Meeks <michael@ximian.com>
1002 * at-bridge/bridge.c (bridge_focus_tracker),
1003 (emit_eventv): fix the same ref. leak.
1004 (register_atk_event_listeners): don't leak.
1006 * cspi/spi-listener-impl.c (cspi_event): more
1007 protection from client code.
1009 * test/test-simple.c (test_desktop): unref the app.
1011 * test/Makefile.am: upd. TESTS.
1013 * at-bridge/bridge.c (bridge_exit_func): release the registry.
1015 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
1017 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
1019 * cspi/spi_registry.c: constify in strings.
1020 (deregisterGlobalEventListenerAll): don't release the ref.
1022 * cspi/spi.h: start removing redundant / conflicting
1023 gtkdoc comments, making the API readable at a glance :-)
1025 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
1027 * test/keysynth-demo.c (keysynth_exit, main): upd.
1029 * test/simple-at.c (main, simple_at_exit): upd.
1031 * test/test-simple.c (unutterable_horror): kill.
1032 (utterable_normal_derefs): kill.
1033 (main): upd & do a setenv before gtk_init, so that we
1034 can use memprof - and to save the pain of remembering
1035 this, if we're running under memprof - don't exit.
1037 * cspi/spi_main.c (SPI_exit): return exit status
1039 (SPI_event_quit): impl.
1040 (SPI_event_main): simplify.
1041 (cspi_is_gnome_app): kill.
1042 (SPI_init): kill isGNOMEapp arg.
1044 * at-bridge/bridge.c (register_atk_event_listeners):
1045 re-instate the unref.
1046 (bridge_exit_func): don't re-activate the registry,
1047 protect vs. theoretical re-entry, use the
1048 AT_BRIDGE_SHUTDOWN env. var to determine whether to
1049 assert a clean shutdown - for regression tests.
1051 2001-12-08 Abel Cheung <maddog@linux.org.hk>
1053 * configure.in: Comment out dummy i18n support for now,
1054 otherwise it fails to build.
1055 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
1056 EXTRA_DIST. They are missing in tarball.
1058 2001-12-07 Michael Meeks <michael@ximian.com>
1060 * util/magnifier.c: kill bonobo activation reg. race.
1062 * libspi/component.c
1063 (impl_accessibility_component_get_extents): make it match
1066 * libspi/registry.c (_registry_notify_listeners):
1067 re-remove X headers & reconcile conflicts.
1068 (spi_listener_struct_free): bad conflict resolve.
1069 (impl_accessibility_registry_register_application):
1070 more bad merging fixed.
1071 (impl_accessibility_registry_deregister_application): ditto.
1072 (spi_registry_new): ditto.
1073 (spi_registry_init): don't have an applications field.
1075 [ merge fixups2 branch to here ]
1076 2001-12-07 Michael Meeks <michael@ximian.com>
1078 * test/simple-at.c (report_focus_event),
1079 (report_focussed_accessible): remove g_warning debug.
1081 2001-12-07 Michael Meeks <michael@ximian.com>
1083 * test/test-simple.c (validate_tree): comment out some checks.
1084 (test_desktop): app now not registered idly - horay.
1086 2001-12-07 Michael Meeks <michael@ximian.com>
1088 * cspi/spi_registry.c
1089 (registerAccessibleKeystrokeListener): clean, stop it leaking
1090 great swathes of memory, and device event controller references.
1091 ensure we always pass valid sequences.
1092 (deregisterAccessibleKeystrokeListener): ditto.
1093 (generateKeyEvent): upd.
1095 * at-bridge/bridge.c (bridge_key_listener): handle
1096 registry dead exception gracefully.
1097 (bridge_focus_tracker, emit_eventv): free ev.
1099 * test/simple-at.c (report_focus_event): fix polarity.
1101 * libspi/application.c (notify_listeners): kill the ev
1102 argument, and make sure we init the ev we use.
1103 (spi_application_object_event_listener): split out a chunk
1104 (get_atk_object_ref): here & fixup.
1105 (reverse_lookup_name_for_toolkit_event): make const.
1106 (spi_application_toolkit_event_listener): fixup, kill leaks
1109 * at-bridge/bridge.c (register_atk_event_listeners):
1110 don't unref the noop object - causes grief.
1112 * libspi/registry.c: remove the X headers.
1113 turn off the debug churn.
1115 * libspi/accessible.c (spi_accessible_new_return): only
1116 release the ref if we are supposed to [doh]
1118 * test/simple-at.c (report_button_press, report_focus_event):
1119 guard vs. unexpected exit.
1121 * at-bridge/bridge.c (gtk_module_init): prune printf.
1122 (bridge_exit_func): fix app unref.
1124 * libspi/Makefile.am: don't install registry or desktop.h
1126 * libspi/*.h: update includes.
1128 * libspi/application.h: don't include ourself, or
1129 other redundant headers.
1131 2001-12-06 Michael Meeks <michael@ximian.com>
1133 * libspi/accessible.c
1134 (get_accessible_from_servant): impl.
1135 Upd. all CORBA impl.s to use it killing cut and paste.
1137 * cspi/spi_main.c (cspi_cleanup): guard vs. double
1139 (SPI_init): register atexit cleanup handler here.
1141 2001-12-06 Michael Meeks <michael@ximian.com>
1143 * at-bridge/bridge.c (gtk_module_init): g_error on
1144 activation exception
1146 2001-12-06 Michael Meeks <michael@ximian.com>
1148 * at-bridge/bridge.c (gtk_module_init): some sort of
1149 confusing merge clash - reverted.
1150 (bridge_idle_init): ditto.
1152 * test/test-simple.c (main, utterable_normal_derefs):
1153 merge from Bill - somehow not committed.
1155 2001-12-06 Michael Meeks <michael@ximian.com>
1157 * libspi/value.c (spi_value_class_init): upd.
1158 (spi_value_finalize): kill.
1160 * libspi/table.c (spi_table_finalize): kill.
1161 (spi_table_interface_new): upd.
1162 (spi_table_class_init): upd.
1163 (get_table_from_servant): impl.
1164 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1166 * libspi/selection.c (spi_selection_finalize): kill.
1167 (spi_selection_interface_new): upd.
1168 (spi_selection_class_init): upd.
1169 (get_selection_from_servant): impl.
1170 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1172 * libspi/relation.c (spi_relation_finalize): kill.
1173 (spi_relation_class_init, spi_relation_new): upd
1175 * libspi/image.c (spi_image_finalize): kill.
1176 (spi_image_class_init): upd.
1177 (spi_image_interface_new): upd.
1178 (get_image_from_servant): impl.
1179 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1181 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
1182 (spi_hyperlink_finalize): kill.
1183 (spi_hyperlink_new): upd.
1184 (get_hyperlink_from_servant): impl.
1185 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1187 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
1188 (spi_hypertext_finalize): kill.
1189 (spi_hypertext_class_init): upd.
1190 (get_hypertext_from_servant): impl.
1191 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1193 * libspi/editabletext.c (spi_editable_text_finalize): kill.
1194 (spi_editable_text_interface_new): upd.
1195 (get_editable_text_from_servant): impl.
1196 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1198 * libspi/text.c (get_text_from_servant): impl.
1199 All impls - update to use it killing more cut and paste,
1200 also fix bad string returns on duff args ( a somewhat
1201 impossible case to handle - but hey ).
1202 (spi_text_construct): impl.
1203 (spi_text_interface_new): upd.
1204 (spi_text_object_finalize): kill.
1206 * libspi/component.c
1207 (accessibility_component_object_finalize): kill.
1208 (spi_component_class_init): upd.
1209 (get_component_from_servant): impl. helper to kill cut & paste.
1210 (impl_accessibility_component_contains):
1211 (impl_accessibility_component_get_accessible_at_point):
1212 (impl_accessibility_component_get_position):
1213 (impl_accessibility_component_get_extents):
1214 (impl_accessibility_component_get_mdi_z_order):
1215 (impl_accessibility_component_get_layer):
1216 (spi_component_interface_new): upd.
1218 * libspi/action.c (spi_action_finalize): kill.
1219 (spi_action_class_init): upd. inherit from SpiObject.
1220 (spi_action_interface_new): upd.
1221 (get_action_from_servant): impl. helper to reduce cut & paste.
1222 (impl_getKeyBinding, impl_getName, impl_doAction),
1223 (impl_getDescription): Use it everywhere.
1225 * cspi/spi_main.c (get_live_refs): a pointer hash.
1226 (spi_object_hash, spi_object_equal): comment out.
1227 There are issues with CORBA object hashing that need
1230 * libspi/application.c (spi_application_init),
1231 (spi_application_new): upd.
1233 * libspi/accessible.c (spi_accessible_object_finalize): kill.
1234 (spi_accessible_class_init): upd.
1235 s/accessible/object/ in epv methods.
1237 2001-12-05 Bill Haneman <bill.haneman@sun.com>
1239 * at-bridge/bridge.c:
1240 Reorder the bridge initialization into the bridge gtk_module_init,
1241 an immediate call to bridge_register_app, and an idle_add for
1242 register_atk_event_listeners (the only code that *must* wait until
1243 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
1244 the activation, creates the application's Accessible object, and
1245 queues the bridge_idle_init function. Restored call to
1246 Accessibility_Registry_deregisterApplication().
1247 Prior to making this call we obtain a new reference to the
1248 registry, which is a temporary hack that helps us handle apps that
1249 shut down the bonobo mainloop before we get there.
1251 * libspi/registry.c:
1252 Fix string leakage in debug block, and don't segv if a an app
1253 dies before its event notifications have been propagated.
1256 Modify cspi_check_ev() to call g_warning() rather than g_error(),
1257 as stopgap measure until we get proper exception handling when
1258 objects die during or before interrogation.
1262 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
1263 Also changed default value of is_gnome_app to TRUE.
1266 * test/keysynth-demo.c:
1267 Changed use of SPI_init and SPI_event_main to reflect API change above.
1270 Made report_focus_event check the warning value from getName
1271 before reporting on focussed accessible; simplifies handling of
1272 notifications from dead objects.
1274 * test/test-simple.c: (Changes not in this patch since source is
1277 2001-12-05 Michael Meeks <michael@ximian.com>
1279 * registryd/registryd.c (main): protect against
1280 bonobo-activation startup race condition.
1282 * cspi/spi_main.c (cspi_object_add_check): cope
1283 with the exception elegantly.
1285 * idl/Accessible.idl: decl. ChildGone
1287 * libspi/desktop.c (spi_desktop_dispose): impl.
1288 (spi_desktop_class_init): upd.
1289 (spi_desktop_add_application),
1290 (spi_desktop_remove_application),
1291 (abnormal_application_termination): impl.
1292 (impl_desktop_get_child_at_index): re-impl.
1295 (impl_accessibility_registry_deregister_application),
1296 (impl_accessibility_registry_register_application):
1297 kill excessive debug clutter.
1299 * test/test-simple.c (test_misc): test some NULL
1300 tolerance. (main): upd.
1302 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
1303 implements no interfaces - so let's not crash.
1305 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
1307 * libspi/accessible.c (spi_accessible_new_return): impl.
1308 helper to calm the cut and paste, to cope with
1309 NULL AtkObjects effectively and efficiently, and to kill
1310 the referencing bugs.
1312 * libspi/table.c (impl_getAccessibleAt),
1313 (impl_getRowHeader, impl_getColumnHeader): upd.
1315 * libspi/hyperlink.c (impl_getObject): upd.
1317 * libspi/accessible.c
1318 (impl_accessibility_accessible_get_child_at_index): upd.
1320 * libspi/component.c
1321 (impl_accessibility_component_get_accessible_at_point): upd.
1323 * test/test-simple.c (test_editable_text, test_text): impl.
1326 * cspi/spi_editabletext.c
1327 (AccessibleEditableText_insertText): constify.
1329 * test/test-simple.c (focus_me): make more robust.
1331 * libspi/accessible.c: remove some printfs in methods that
1332 we test and work fine, so we can get a clean tree dump.
1334 * test/test-simple.c (validate_accessible),
1335 (validate_tree): make tree dumping pretty too.
1337 * at-bridge/bridge.c (bridge_signal_listener): upd. so
1338 it builds without debug on.
1340 * test/test-simple.c (validate_accessible): fix the most
1343 * cspi/spi_main.c (spi_object_release): leave the nicely
1344 blanked memory around if in debug mode.
1346 * cspi/spi-listener-impl.c (cspi_event): use add_check.
1348 [committed to fixups2]
1349 2001-12-05 Michael Meeks <michael@ximian.com>
1351 * libspi/editabletext.c
1352 (spi_editable_text_class_init): g_type_class_peek_parent,
1353 not interface peek - so we finalize cleanly.
1355 * libspi/accessible.c (spi_accessible_new): kill debug.
1357 * test/test-simple.c (validate_accessible): fix ref.
1358 leak, print strings before freeing them; sigh, comment a
1359 chunk out due to strangeness.
1360 (validate_tree): unref the child after use.
1362 * cspi/spi_component.c (AccessibleComponent_getLayer):
1363 add missing break statement, switch on zlayer not the
1364 uninitialized retval.
1366 * cspi/spi_main.c (cspi_object_add): add assert, local ref
1367 before (possibly re-entering) remote unref.
1369 * test/simple-at.c (main): unref the desktop.
1371 * cspi/spi_accessible.c (cspi_accessible_is_a): move
1374 * cspi/spi_main.c (cspi_accessible_is_a): here to
1375 isolate bonobo API usage more.
1377 * libspi/registry.c (impl_accessibility_registry_register_application):
1378 prune bogus comment.
1380 2001-12-04 Michael Meeks <michael@ximian.com>
1382 * test/test-simple.c (validate_tree): upd.
1383 IndexInParent check to make it more lucid.
1384 (validate_accessible): dump the tree.
1386 * libspi/accessible.c (de_register_public_ref),
1387 (get_public_refs): impl.
1388 (spi_accessible_new): make more efficient & intuitive.
1389 Now IndexInParent check works.
1391 2001-12-04 Michael Meeks <michael@ximian.com>
1393 * cspi/spi-util.h: remove.
1395 * cspi/spi.h: move SPI_freeString here
1397 * libspi/component.c (impl_accessibility_component_get_layer):
1399 (impl_accessibility_component_get_mdi_z_order): ditto,
1400 return -1 on error - is this ok ?
1402 * test/test-simple.c (test_application): impl.
1404 * cspi/spi_accessible.c (Accessible_getApplication),
1405 (Accessible_isApplication): impl.
1407 * libspi/registry.c (spi_listener_struct_free): release
1408 the CORBA reference too.
1410 * libspi/accessible.c
1411 (impl_accessibility_accessible_get_parent): fix ref leak.
1413 * libspi/registry.c (spi_registry_new): make the registry
1414 immortal - we don't want it to go away ever.
1416 * libspi/application.c
1417 (spi_accessible_application_finalize): impl. cleanup.
1419 * cspi/spi_registry.c
1420 (deregisterGlobalEventListenerAll),
1421 (deregisterGlobalEventListener),
1422 (deregisterAccessibleKeystrokeListener): fix ref leak.
1424 * cspi/spi_main.c (SPI_init): remove redundant ref.
1426 * test/test-simple.c (unutterable_horror): impl. to force a
1431 (impl_accessibility_registry_deregister_application): release
1432 the application when we de-register it.
1434 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
1435 until we have the infastructure to get it right.
1437 2001-12-03 Michael Meeks <michael@ximian.com>
1439 * libspi/Makefile.am: only build eventlistener.[ch]
1441 * libspi/accessible.c
1442 (impl_accessibility_accessible_get_child_at_index): don't leak.
1444 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
1445 before we hit the idle handler.
1447 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
1448 debugging than exit.
1450 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
1452 * libspi/listener.c (impl_notify_event): check source
1453 not NIL before unref.
1455 * libspi/registry.c (impl_registry_notify_event): ditto.
1457 * libspi/eventlistener.c
1458 (impl_accessible_event_notify_event): unref the source.
1460 * libspi/accessibleeventlistener.c
1461 (impl_accessible_event_notify_event): unref the source.
1463 * idl/Event.idl: remove 'hash_id' attribute - of no
1466 * libspi/application.c (notify_listeners): upd list
1468 (spi_application_object_event_listener),
1469 (spi_application_toolkit_event_listener): upd to do correct
1473 (_registry_notify_listeners): update.
1474 (parse_event_type): this method also leaks like a sieve.
1475 (impl_accessibility_registry_deregister_global_event_listener):
1476 fix ETYPE_WINDOW case.
1478 * libspi/application.c
1479 (impl_accessibility_application_register_object_event_listener):
1482 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
1484 * libspi/hypertext.c (impl_getLink): ditto.
1486 * cspi/spi_main.c (cspi_object_add): remove
1487 bogus CORBA_Object_duplicate.
1489 * cspi/spi-listener-impl.c (cspi_event): dup/ref
1492 * cspi/spi_accessible.c
1493 (Accessible_getRelationSet): fix leak / referencing issue.
1495 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
1496 (cspi_object_add, cspi_object_unref): upd.
1497 (spi_object_release, get_live_refs): impl.
1498 (cspi_cleanup): simplify.
1500 * *.[ch]: s/boolean/SpiBoolean/
1502 * cspi/spi_accessible.c (role_names): actualy order so it
1503 corresponds with the enum !
1505 * test/test-simple.c (test_roles): check some role strings
1506 vs. enums to detect offset errors.
1508 2001-12-01 Michael Meeks <michael@ximian.com>
1510 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
1512 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
1514 (Accessible_getChildAtIndex): use cspi_add_check so we
1515 check the ev before using a (possibly) invalid value.
1517 * libspi/accessible.c
1518 (impl_accessibility_accessible_get_parent): don't segv
1521 * at-bridge/bridge.c (gtk_module_init): upd.
1522 (bridge_property_event_listener): don't leak strings
1524 (bridge_state_event_listener),
1525 (bridge_property_event_listener): don't use a static
1526 buffer in case of recursive event emission &
1527 re-enterancy - split out the swathe of cut and paste
1529 (emit_eventv): and fix 2 ref leaks here & comply to the
1531 (bridge_register_app): rename to
1532 (bridge_idle_init): this and kill arg parsing, split
1533 various inits & bonobo-activation registration to module
1534 init time, kill referencing error.
1535 (bridge_exit_func): fix the same leak.
1536 (bridge_focus_tracker): don't leak event structures
1538 (bridge_signal_listener): more leakage and cut & paste
1540 (bridge_key_listener): return the result - FIXME is
1541 this polarity correct ?
1542 (accessibility_keystroke_from_atk_key_event): rename
1543 (accessibility_init_keystroke_from_atk_key_event): and stop
1545 (gtk_module_init): return a value - not that it is checked by
1547 (bridge_key_listener): register my horror at casting between
1548 IDL defined structs.
1549 (bridge_get_registry): kill - not used.
1551 * cspi/spi_accessible.c (Accessible_getRole): make return const.
1553 * test/test-simple.c (test_roles): impl.
1554 (test_desktop, validate_accessible, validate_tree): impl.
1556 * cspi/spi_accessible.c (role_names): fixup bogus
1557 MAX_ROLES setup, make constants const for efficient linkage
1558 (AccessibleRole_getName): conform to coding style, make
1561 2001-11-30 Michael Meeks <michael@ximian.com>
1563 * cspi/spi.h: add missing prototype.
1565 * libspi/registry.c (spi_listener_struct_new): fix sig.
1567 * test/Makefile.am: add test-simple
1569 * test/test-simple.c: add
1571 * test/test.sh: add.
1573 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
1575 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
1576 do it straight - since otherwise we often get an activation race.
1578 [ work before Bill duplicated a chunk of it ... ]
1579 2001-11-30 Michael Meeks <michael@ximian.com>
1581 * libspi/keystrokelistener.c
1582 (spi_keystroke_listener_class_init): fixup arg
1585 * libspi/eventlistener.c
1586 (spi_event_listener_class_init): ditto.
1588 * tests/test.sh: add.
1590 * cspi/spi-listener-impl.h: update macros.
1592 * cspi/spi-listener-impl.c
1593 (cspi_event_listener_remove_callback): add
1594 correct pre-conditions.
1596 * cspi/spi_main.c (SPI_exit): guard vs. double
1597 exits, exit the mainloop nicely.
1598 (SPI_event_main): make more sense.
1599 (SPI_init): move the atexit evilness here so we
1600 always do it (yuck).
1601 (SPI_event_main): upd.
1603 * test/simple-at.c: update for listener changes.
1605 * registryd/registryd.c (main): prune kruft.
1607 * libspi/libspi.h: upd.
1609 * libspi/eventlistener.[ch]: rename broken macros.
1611 * libspi/accessibleeventlistener.[ch]: remove.
1613 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
1615 * test/test-simple.c: Add - automated tests.
1617 * cspi/spi-listener-impl.c (cspi_event),
1618 (cspi_key_event): add user_data to invoke.
1619 (cspi_keystroke_listener_finalize): impl.
1620 (cspi_keystroke_listener_class_init): upd.
1623 (createAccessibleEventListener),
1624 (AccessibleEventListener_addCallback),
1625 (createAccessibleKeystrokeListener),
1626 (AccessibleKeystrokeListener_addCallback): upd.
1628 * libspi/deviceeventcontroller.c
1629 (spi_device_event_controller_check_key_event): add public proto.
1632 (impl_accessibility_registry_deregister_global_event_listener):
1633 always init listeners.
1634 (_registry_notify_listeners): yes it is.
1636 * cspi/spi-listener-impl.c (cspi_key_event):
1638 (cspi_event_listener_finalize): impl.
1639 (cspi_event_listener_class_init): hook up.
1640 (event_handler_new, event_handler_free),
1641 (event_list_remove_by_callback): impl.
1642 (cspi_event_listener_remove_callback),
1643 (cspi_keystroke_listener_remove_callback),
1644 (cspi_keystroke_listener_add_callback),
1645 (cspi_event_listener_add_callback): upd.
1647 * libspi/keystrokelistener.c
1648 (keystroke_listener_object_finalize): kill
1649 (spi_keystroke_listener_class_init): upd.
1650 (spi_keystroke_listener_add_callback),
1651 (spi_keystroke_listener_remove_callback): kill,
1653 (impl_key_event): prune drasticaly.
1655 * libspi/eventlistener.c
1656 (spi_event_listener_add_callback),
1657 (spi_event_listener_remove_callback): kill, use
1659 (impl_accessible_event_notify_event): upd.
1660 (spi_event_listener_object_finalize): remove.
1662 * libspi/Makefile.am: use eventlistener.[ch]
1664 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1666 * libspi/registry.c (_registry_notify_listeners):
1667 Changed listener loop iteration to use preferred convention.
1668 Got rid of string memory leaks caused be calling g_strconcat
1669 inside function calls.
1671 * libspi/registry.c (parse_event_type):
1672 Stopped g_strconcat memory leaks, free the g_strsplit return,
1673 g_strdup the split pieces when used, etc.
1675 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1678 Change method 'compare' to return a 'difference set' rather than
1679 taking a StateSet as an out parameter (more Java-friendly).
1681 * idl/Accessible.idl:
1682 Added CORBA struct 'BoundingBox', to faciliate API changes below:
1684 * idl/Component.idl:
1686 Changed methods 'getExtents' and 'getImageExtents' in these
1687 interfaces to return a BoundingBox structure.
1688 (getPosition and getSize are redundant and possibly should be
1689 removed, rather than creating a corresponding Point struct.)
1691 * cspi/spi_component.c:
1692 Modify implementation of getExtents to reflect the above IDL
1697 Add (missing) AccessibleImage_getExtents () API.
1699 * docs/reference/cspi/at-spi-cspi-sections.txt:
1700 Added AccessibleImage_getImageExtents () to docs.
1702 2001-12-03 Bill Haneman <bill.haneman@sun.com>
1704 * idl/Component.idl:
1705 Added two methods, getLayer () and getMDIZOrder (), to reflect
1706 the new ATK methods atk_object_get_layer and
1707 atk_object_get_mdi_z_order. (Which arguably should be part of the
1708 AtkComponent API and AtkObject). Also added an enum,
1709 ComponentLayer, for the first method's return value.
1711 * libspi/component.c:
1712 Added implementations for these methods.
1714 * cspi/spi_component.c:
1716 Added cspi binding methods for above,
1717 AccessibleComponent_getLayer() and
1718 AccessibleComponent_getMDIZOrder().
1719 Added cspi enum 'AccessibleComponentLayer'.
1721 * docs/reference/cspi/at-spi-cspi-sections.txt:
1722 Added above methods to docs.
1726 Changed typedef for 'boolean' type (and all references to it) to
1727 SPIBoolean, to avoid keyword clashes with C++.
1730 Changed usages of 'boolean' to SPIBoolean.
1732 * test/keysynth-demo.c:
1733 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
1734 app), except where SPIBoolean is required by the callbacks API.
1736 2001-12-02 Bill Haneman <bill.haneman@sun.com>
1738 * cspi/spi_registry.c:
1739 Removed obsolete X event loop for passive keygrabs (which now
1742 * registryd/registryd.c:
1743 Removed unnecessary call to gdk_init() [cruft]. This also allows
1744 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
1747 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1749 * docs/reference/cspi:
1750 Included docs for SPI_freeString in generated documentation.
1753 Renamed spi_freeString to SPI_freeString, for consistency. Added
1754 documentation for this function.
1757 Renamed spi_freeString to SPI_freeString, for consistency.
1758 Removed obsolete method declaration string_from_corba_string.
1760 * test/keysynth-demo.c:
1761 Small tweak to comments.
1764 Stopped leaking the strings returned from CSPI.
1766 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1768 Merged Michael's branch (see his ChangeLog entries below).
1770 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
1771 bridge is alive, release on exit.
1773 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
1774 Fix type check macro.
1777 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
1780 Added is_gnome_app static, and method cspi_is_gnome_app(),
1781 so we can call the appropriate shutdown routine at exit in SPI_exit.
1783 * cspi/spi_main.c (cspi_object_ref):
1784 Duplicate the corba object passed in, since we're keeping it around.
1786 * cspi/SPI_exit.c, cspi_cleanup:
1787 Moved the releasing of the live refs to its own function, so we
1788 can put it in g_atexit (). Call the appropriate shutdown API
1789 depending on whethe calling client is a gnome app or not
1790 (bonobo_main_quit or CORBA_ORB_shutdown).
1792 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
1793 Unref the listener when this method is called, after
1794 deregistration. Updated the API docs to note this behavior.
1796 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
1797 Bugfixes: Ref the bonobo object when returning a parent or child
1798 reference, or an AccessibleRelation. Generally made sure
1799 BonoboObject refcount is incremented whenever we return an
1802 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
1803 Fixed typo/bug in signal declaration.
1805 * libspi/accessibleeventlistener.h:
1808 * libspi/application.c (spi_application_new):
1809 Fixed leak in initialization.
1812 Remembered to increment bonobo-object refcount when returning
1813 children (applications) from desktop object.
1814 Added (empty) finalize method.
1816 * libspi/deviceeventcontroller.c:
1817 Hold a ref to listeners inside DEControllerKeyListeners.
1818 Added dec_key_listener_free() method. Use prepend instead of
1819 append in key_listener list. Fixed some refcount madness and
1820 leaks in the listener registration/deregistration - deregistration
1821 now calls dec_key_listener_free() on listeners, and on the
1822 temporarily constructed dec_key_listener() used to perform the search/match.
1824 * libspi/hypertext.c (spi_hypertest_finalize):
1825 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
1826 class. Also fixed spi_hypertext_interface_new() and
1827 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
1829 * libspi/hypertext.h:
1830 Removed pointless and duplicate AtkObject pointer from
1833 * libspi/keystrokelistener.c:
1834 Fixed incorrect type of keystroke_listener_parent_class,
1835 renamed keystroke_listener_object_finalize to
1836 spi_keystroke_listener_object_finalize.
1837 Fixed typo in signal declaration
1838 (spi_keystroke_listener_class_init).
1840 * libspi/registry.c:
1841 Added funcsions spi_listener_struct_new() and
1842 spi_listener_struct_free() to help with memory management issues.
1843 We also now use these methods instead of gnew + poking stuff into
1844 the struct, and to decrement listener counts/free the listeners
1845 when deregistering them.
1846 Fix more refcount bugs in getDesktop() and
1847 getDeviceEventController().
1850 De-ref the desktop after enumerating the applications. Explicitly
1851 decrement the refcounts on the created listeners on exit (using
1852 _unref for keystroke listeners, and via the
1853 deregisterGlobalEventListenerAll command for other event
1856 2001-11-27 Michael Meeks <michael@ximian.com>
1858 * cspi/spi-listener.h: fixup enum.
1860 2001-11-27 Michael Meeks <michael@ximian.com>
1862 * cspi/spi-listener-impl.c (cspi_event_listener_new),
1863 (cspi_keystroke_listener_new): Use the cspi variants.
1865 2001-11-26 Michael Meeks <michael@ximian.com>
1867 * test/keysynth-demo.c: fix 2 compile warnings, missing
1870 * test/simple-at.c (report_focussed_accessible),
1871 (report_focus_event, report_button_press),
1872 (check_property_change, is_command_key),
1873 (report_ordinary_key_event, report_command_key_event): upd.
1875 * util/mag_client.h: include pre-requisites.
1877 * libspi/accessibleeventlistener.c
1878 (spi_event_listener_object_finalize): free any lingering
1881 * libspi/keystrokelistener.c
1882 (keystroke_listener_object_finalize): ditto.
1884 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
1885 callbacks, with cspi types.
1887 * cspi/spi_event.c (createAccessibleEventListener): chain to
1888 (AccessibleEventListener_addCallback): here.
1889 (createAccessibleKeystrokeListener): chain to
1890 (AccessibleKeystrokeListener_addCallback): here.
1892 * libspi/keystrokelistener.c
1893 (spi_keystroke_listener_class_init): add signal.
1894 (impl_key_event): emit the event.
1895 (boolean_handled_accumulator): impl.
1896 (marshal_BOOLEAN__POINTER): add, gack.
1898 * libspi/accessibleeventlistener.c
1899 (spi_event_listener_class_init): add signal.
1900 (impl_accessible_event_notify_event): emit the signal &
1901 make the loop efficient.
1902 (spi_event_listener_add_callback): prepend the callback.
1904 * libspi/accessibleeventlistener.h: add an 'event' signal,
1905 decl type on callback.
1907 * libspi/keystrokelistener.h: ditto.
1909 * cspi/spi-listener.h: make methods typesafe and
1910 make them use the new event typedefs.
1912 * test/simple-at.c (report_focussed_accessible):
1913 include mag_client.h
1914 Use *(void *)text_interface not the other thing.
1916 * configure.in: add gtk to registryd bits - since we use
1919 * util/magnifier.c: include libbonobo.h
1921 2001-11-25 Bill Haneman <bill.haneman@sun.com>
1923 * test/keysynth-demo.c:
1924 Turned this into a simple scanning keyboard, to demonstrate the
1925 use of g_timeout_add () as a means of creating timers for
1926 scanning, and the use of GtkStyle for visually indicating when
1927 virtual keyboard elements are selected.
1929 keysynth-demo now listens to any keyboard keys with zero-valued
1930 keycodes (i.e. 'unused' keys) and interprets them as
1933 Reworked the shiftlatch code so that shift-down state isn't held
1934 for long periods (it's only synthesized immediately prior to
1935 the keysynth event it's modifying). Note that shiftlatch in this
1936 demo is a convenience, not intended to take the place of AccessX
1937 which is the better choice for getting 'sticky' modifier keys.
1939 * libspi/deviceeventcontroller.c:
1940 * at-bridge/bridge.c:
1941 * cspi/spi_registry.c:
1942 Removed some debug print stuff, and put other verbosity in #ifdef
1947 Implemented some more of the magnifier IDL for the simple
1948 magnifier: namely, getZoomRegionParams.
1949 Added mag_x and mag_y members to MagnifierData struct, aid of this
1951 Added GtkWindow::realize signal handler to magnifier, to keep it
1952 from receiving keyboard focus from the WM.
1954 2001-11-23 Mark McLoughlin <mark@skynet.ie>
1956 * cspi/spi-private.h: my guess at what michael forgot
1957 before he ran off to NZ :-)
1959 2001-11-23 Michael Meeks <michael@ximian.com>
1961 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
1962 comment out non existant method invoke so we link.
1964 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
1965 use bonobo_exception_get_text for more friendly warnings.
1967 * cspi/spi.c (Obj_Add): move into spi_main & rename
1968 spi_object_add; kill spi.c
1970 * cspi/spi_registry.c
1971 (deregisterGlobalEventListener),
1972 (deregisterGlobalEventListenerAll),
1973 (registerGlobalEventListener): fix exception leaks.
1975 * cspi/spi_main.c (spi_exception): impl. helper, so we
1976 don't leak exceptions.
1978 * cspi/spi_selection.c
1979 (AccessibleSelection_deselectSelectedChild): return the
1982 * cspi/spi_main.c (spi_ev): impl; hack - gack.
1983 (spi_registry): ditto.
1984 (SPI_init): guard against double inits.
1986 * cspi/*.c: use spi_ev (), and spi_registry () where
1987 appropriate - a temporary hack until we have something
1988 better. Use spi_object_add
1990 2001-11-22 Michael Meeks <michael@ximian.com>
1992 * cspi/Makefile.am: re organise, install the headers.
1994 * cspi/*.h: add G_BEGIN/END_DECLS
1996 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1999 Added non-preemptive keylistener for key events with no modifiers
2000 and shift-only modifier.
2002 * libspi/keystrokelistener.c:
2003 Removed some verbose diagnostics printout.
2005 * cspi/spi_registry.c:
2006 Fixed a bug that caused all key listeners to be registered as
2009 * libspi/deviceeventcontroller.c:
2010 Fixed bug that caused XGrabKey (preemptive key grab) to be called
2011 for non-preemptive key masks.
2014 2001-22-11 Bill Haneman <bill.haneman@sun.com>
2016 * docs/reference/idl/at-spi-idl-docs.sgml:
2017 * docs/reference/idl/at-spi-idl-sections.txt:
2018 * docs/reference/idl/at-spi-idl-overrides.txt:
2019 Added missing files.
2021 * docs/reference/Makefile.am:
2022 removed idl from SUBDIRS until we can figure a way to get gtk-doc
2023 to scan the IDL files :-(
2028 Added .cvsignore files.
2030 2001-21-11 Bill Haneman <bill.haneman@sun.com>
2032 * libspi/deviceeventcontroller.c:
2033 * libspi/keystrokelistener.c:
2035 * cspi/spi_registry.c:
2036 Added filters for KeySets, KeyEventSeq, and event types to key
2037 event dispatching, so listeners should only receive those events
2038 that they requested :-)
2040 2001-21-11 Bill Haneman <bill.haneman@sun.com>
2045 * docs/reference:Makefile.am:
2046 * docs/reference/cspi:
2047 * docs/reference/cspi:Makefile.am:
2048 * docs/reference/cspi:tmpl:
2049 * docs/reference/cspi:tmpl:*.sgml:
2050 * docs/reference/idl:
2051 * docs/reference/idl:Makefile.am:
2052 * docs/reference/idl:at-spi-idl-sections.txt:
2053 * docs/reference/idl:at-spi-idl-docs.sgml:
2054 * docs/reference/idl:tmpl:
2055 * docs/reference/idl:tmpl:*.sgml:
2057 Restructured docs directory to allow separate 'reference' docs
2058 section, and forked idl and cspi docs. Added the sgml template
2059 files to CVS. Added the first sections/structural sgml for the
2062 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
2064 * configure.in, libspi/Makefile.am: find libXtst.
2066 2001-11-21 Michael Meeks <michael@ximian.com>
2068 * test/accessx-gui.c: s/spi_value/value/ - doh.
2070 * libspi/base.[ch]: add.
2072 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2074 * idl/Accessible.idl:
2075 * idl/Application.idl:
2078 Started gtk-doc cleanup on IDL.
2080 * libspi/deviceeventcontroller.c:
2081 Added and connected non-preemptive key notification from the
2082 toolkits (in addition to the pre-emptive support from XServer
2083 which we had before, but which causes 'focus flashing'). Filters
2084 are presently limited to key modifiers and global/non-global,
2085 KeySets are presently ignored, as are KeyEvent masks.
2087 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
2088 structs into the persistant structure rather than just storing
2089 pointers to things that might not persist across servant
2092 The XGrabKey call now does async keygrabs, because synchronous
2093 ones were deadlocking with GDK_event code in a very nasty way.
2095 Added boolean to internal method notify_keylisteners, to indicate
2096 whether the event came from the 'toolkit source' or the 'global
2097 (XServer) source' - this is used in the notification process to
2098 determine which listeners to send the event to.
2100 deviceeventcontroller.c is now warning-free.
2102 * libspi/registry.c:
2103 Fixed regression in application de-registration.
2104 Also fixed some really brain-dead weirdness having to do with
2105 event dispatching - event structs are now duplicated before being
2106 re-marshalled in the dispatch to listeners. This also fixes a
2107 Solaris build problem.
2110 2001-20-11 Michael Meeks <michael@ximian.com>
2113 (impl_accessibility_registry_deregister_global_event_listener):
2116 * libspi/deviceeventcontroller.c
2117 (spi_device_event_controller_check_key_event): return
2118 FALSE on no virtual method.
2120 * libspi/*..h: make includes work on a correctly pathed install.
2122 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
2124 * libspi/application.h: kill unused ( and whacked out )
2125 gboolean *spi_application_set_id (AtkObject *app, long id);
2127 2001-20-11 Michael Meeks <michael@ximian.com>
2129 * libspi/*.[ch]: further convert to bonobo's type func
2130 macros, remove redundnant casts etc.
2132 * libspi/text.c s/accessibility_text/spi_text/g,
2133 re-order to de-cruft.
2135 * libspi/hypertext.c: re-order to kill a huge slew
2136 of redundant forward decls.
2138 * libspi/relation.c: ditto.
2140 * libspi/image.c: ditto.
2142 * */.cvsignore: update
2144 2001-20-11 Michael Meeks <michael@ximian.com>
2146 * libspi/deviceeventcontroller.c
2147 (_controller_register_with_devices): use g_getenv,
2148 kill stdlib.h include.
2150 * libspi/keystrokelistener.c
2151 (spi_keystroke_listener_get_type): kill
2152 (spi_keystroke_listener_class_init),
2153 (spi_keystroke_listener_init): rename to this.
2155 * libspi/text.c (impl_getAttributes): fix warning / bug.
2157 * libspi/*.[ch]: more headers, includes and over commenting.
2159 2001-20-11 Michael Meeks <michael@ximian.com>
2161 * libspi/*.[ch]: fixup headers, includes and over commenting.
2163 * libspi/image.c (impl__get_imageDescription): const
2164 correctness warning fix. remove redundant casting.
2166 * libspi/table.c (impl_getRowDescription): ditto.
2167 (impl_getColumnDescription): ditto.
2169 * libspi/libspi.h: add.
2171 2001-19-11 Michael Meeks <michael@ximian.com>
2173 * libspi/editabletext.c (impl_setAttributes): fix warnings.
2175 * libspi/component.c (accessibility_component_get_type):
2176 rename to (spi_component_get_type): and macroify.
2177 (accessibility_component_init): rename to
2178 (spi_component_init): this
2179 (accessibility_component_class_init): rename to
2180 (spi_component_class_init): this
2182 * libspi/action.c (spi_action_get_type): kill, use the macro.
2184 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
2187 * libspi/application.c (spi_application_object_event_listener),
2188 (impl_accessibility_application_register_object_event_listener):
2189 warning fixes / const understanding updates.
2191 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
2194 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2196 * libspi/spi_accessible.c: Added docs and C bindings for
2197 AccessibleStateSet. (No implementations yet). Documentation
2198 coverage for C bindings now 100%. Made docs for event listeners
2203 boolean notifyListenersSync (in DeviceEventListener listener,
2204 in DeviceEvent event);
2206 oneway void notifyListenersAsync (in DeviceEventListener listener,
2207 in DeviceEvent event);
2209 Added DeviceEventListener and DeviceEvent structs (may deprecate
2210 KeyStroke and KeystrokeListener in favor of this generic
2211 event/listener framework for devices).
2213 * libspi/deviceeventcontroller.c:
2215 Changed some key listener code to take masks, etc., and paved the
2216 way for integration of toolkit/non-preemptive key events. Changed
2217 signatures of some internal methods.
2219 * at-bridge/bridge.c:
2220 Fixed regression connecting to interface signals, apparently
2221 caused by GTK+ changes.
2223 Added an internal bridge_state_listener to deal with
2224 property-change:accessible-state signals.
2226 Changed the key_listeners GList to store structs (including masks,
2227 etc.) instead of just CORBA_Objects (required for full
2228 implementation of key listener API).
2230 Connected the bridge to all currently supported Atk signals.
2231 Events now supported:
2232 object:property-change
2233 object:property-change:accessible-name
2234 object:property-change:accessible-state
2235 object:property-change:accessible-description
2236 object:property-change:accessible-parent
2237 object:property-change:accessible-value
2238 object:property-change:accessible-role
2239 object:property-change:accessible-table-caption
2240 object:property-change:accessible-table-column-description
2241 object:property-change:accessible-table-column-header
2242 object:property-change:accessible-table-row-description
2243 object:property-change:accessible-table-row-header
2244 object:property-change:accessible-table-summary
2245 object:children-changed
2246 object:visible-data-changed
2247 object:selection-changed
2248 object:text-selection-changed
2250 object:text-caret-moved
2252 object:row-reordered
2254 object:column-inserted
2255 object:column-reordered
2256 object:column-deleted
2257 object:model-changed
2259 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2261 * libspi/hyperlink.c,h:
2262 Fixed some broken stuff in hyperlink.
2264 * libspi/relation.h:
2265 * libspi/relation.c:
2266 * cspi/spi_accessible.c:
2267 Initial implementations of AccessibleRelation methods, and docs.
2269 * libspi/accessible.c:
2270 Fixed a bug that caused SEGV if an accessible
2271 object's description is NULL, and a client
2272 requests it. An empty string is now returned.
2274 * cspi/spi_editabletext.c:
2275 * cspi/spi_hypertext.c:
2277 * cspi/spi_hyperlink.c:
2281 Doc coverage now 95%.
2283 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2285 One last namespacing revision:
2286 * libspi/accessibleeventlistener.[ch]:
2287 Renamed SpiAccessibleEventListener to SpiEventListener,
2288 (no need for two namespaces ;-)
2290 And lots of documentation fixes:
2292 * docs/at-spi-docs.sgml:
2293 Fixed 'underscore vs. hyphen' bug that was preventing
2294 the gtk-doc API docs from being automatically generated.
2297 * cspi/spi-listener.h
2299 * cspi/spi_accessible.c
2301 * cspi/spi_application.c
2302 * cspi/spi_component.c
2303 * cspi/spi_editabletext.c
2305 * cspi/spi_hypertext.c
2307 * cspi/spi_registry.c
2308 * cspi/spi_selection.c
2312 * docs/at-spi-docs.sgml
2313 * docs/at-spi-sections.txt
2315 Added and fixed up gtk-doc documentation in cspi.
2317 Interfaces now (fully) documented (subject to revision and enhancement):
2319 Event Listener Support
2321 AccessibleApplication
2325 AccessibleEditableText
2332 AccessibleRelationSet
2337 2001-14-11 Bill Haneman <bill.haneman@sun.com>
2339 * at-bridge/bridge.c:
2340 Initial work for toolkit-level key snooper connection by bridge.
2345 New typedefs and fixes to support new namespacing, and cleaner
2346 separation of cspi bindings from libspi bonobo implementation.
2347 Removed inconsistent and extraneous Spi* namespace prefix that
2348 had crept into cspi headers.
2349 Lots of comment fixes that sed had missed.
2351 * cspi/spi-roletypes.h:
2352 * cspi/spi-statetypes.h:
2353 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
2354 to AccessibleRoleType.
2356 * libspi/accessibleeventlistener.h:
2357 Fixed minor namespacing weirdness.
2359 * libspi/deviceeventcontroller.c:
2360 Reordered some internal API for device listeners.
2361 Changed the key registry final boolean to 'is_system_global'
2362 rather than 'is_synchronous', which is more descriptive of its
2364 Added spi_device_event_controller_new().
2365 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
2367 * libspi/keystrokelistener.[ch]:
2368 Namespaced KeystrokeListener to SpiKeystrokeListener.
2369 Changed uses of keymasks to use SPI_ prefix, and did other
2372 * libspi/keymasks.h:
2373 Namespaced keymask constants with SPI_ prefix.
2375 * libspi/registry.c:
2376 Some warning fixes, and knock-on fixes from namespace changes.
2379 Added rules for accessx-gui test program.
2381 * test/accessx-gui.c:
2382 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
2383 utility. It doesn't actually use at-spi, but it's still cool and
2386 * test/keysynth-demo.c:
2390 Fixes so that these test clients work properly with the namespaced
2391 libraries. (Incompletely tested for technical reasons, fixes may follow)
2394 2001-13-11 Michael Meeks <michael@ximian.com>
2396 * libspi/application.c
2397 (impl_accessibility_application_get_version),
2398 (impl_accessibility_application_get_toolkit_name):
2400 (impl_accessibility_application_set_id),
2401 (impl_accessibility_application_get_id): remove
2402 redundant casting code.
2404 * libspi/action.c (impl_getDescription): fix warnings.
2406 * libspi/accessible.c
2407 (impl_accessibility_accessible_get_parent),
2408 (impl_accessibility_accessible_get_child_at_index),
2409 (impl_accessibility_accessible_get_state),
2410 (impl_accessibility_accessible_get_relation_set):
2411 warning fixes & include action.h
2413 2001-13-11 Michael Meeks <michael@ximian.com>
2415 * *.[ch] fix bits I screwed up:
2417 s/([^ \tb(\*\&\?\",])spi_/\1/g;
2418 s/([^ \tb(\*\&\?\",])Spi/\1/g;
2420 2001-13-11 Michael Meeks <michael@ximian.com>
2422 * *.[ch] Namespace libspi into spi_ and Spi.
2424 2001-13-11 Michael Meeks <michael@ximian.com>
2426 * Makefile.am: dist & install at-spi-1.0.pc
2428 * libspi/Makefile.am: install into at-spi-1.0
2430 * idl/Makefile.am (idldir): install into at-spi-1.0
2432 * at-spi-1.0.pc.in: add.
2434 * configure.in: build it.
2436 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2438 * test/keysynth-demo.c:
2439 Use a 'realize' signal-handler to set the WM properties for
2440 the virtual keyboard, rather than making it a "POPUP" type
2441 override-redirect window (thanks to anders carlsson for that
2444 2001-11-11 Bill Haneman <bill.haneman@sun.com>
2447 * test/keysynth-demo.c:
2448 Added new test of key synthesis, which creates a simple
2449 (mouse-operated) onscreen keyboard. It inserts key events into
2450 the currently-focused window, thus it does not grab keyboard focus
2453 * cspi/spi_registry.c:
2454 Added C binding for AT-SPI generateKeyEvent.
2456 * libspi/deviceeventcontroller.c:
2457 Added call to XFilterEvent so that key listener works with XIM (we
2458 hope). Added event_synth_type to generateKeyEvent, so that we can
2459 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
2460 synthesize a press/release pair for KeySyms.
2462 2001-11-09 Bill Haneman <bill.haneman@sun.com>
2464 * libspi/Makefile.am:
2465 * registryd/Makefile.am:
2466 (temporary) hack to include libXtst in libspi and registryd.
2467 (Needed for keystroke synthesis, see below).
2470 Improved API for registerKeystrokeListener, in accordance with
2471 discussions with Gnopernicus team and X server research.
2473 * libspi/registry.c:
2474 * libspi/deviceeventcontroller.c:
2475 * libspi/accessible.c:
2476 * libspi/keystrokelistener.c:
2477 Changes and fixes to support keylisteners for potentially
2478 consumed key events (that is, 'passive grabs').
2479 Added implementation for generateKeyEvent() [untested].
2482 Changes to registerKeystrokeListener() API, as above.
2483 Added deregisterGlobalEventListenerAll(), and
2484 deregisterKeystrokeListener(), which are needed for clean exit of
2486 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
2487 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
2489 * cspi/spi_registry.c:
2490 Added implementations of function prototypes mentioned above.
2492 * registryd/registryd.c:
2493 Added the key listener event source as a g_timeout(), to allow
2494 receipt of key events that are not caught by GDK (since GDK
2495 doesn't support passive keygrabs, this was necessary).
2498 Changed to attach a keylistener to 'Alt' keys, and
2499 respond to the following keycommands: Alt-M (toggle magnifier);
2500 Alt-F (toggle speech); Alt-Q (quit).
2501 Added an exit routine to deregister the listeners, and a key
2502 listener that prints some key info to the console when a key
2503 matches the listener mask (and is thus received by the listener).
2505 * util/idl/Magnifier.idl:
2506 Changes to magnifier API to support multiple zoom regions,
2507 non-uniform scaling in x and y, markDirty, and a host of other
2508 features that would be useful to magnification.
2511 * util/mag_client.c:
2512 * util/mag_client.h:
2513 * util/mag_control.c:
2515 Source code changes to support the above IDL changes.
2518 As above, and also changes to use a (slower) generic conversion
2519 path for colormap conversions, since the fast RGB conversions have been
2520 reported to fail for 16-bit displays.
2522 2001-10-26 Michael Meeks <michael@ximian.com>
2524 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
2526 <2001-10-26 Laszlo Peter <laca@ireland.sun.com>
2528 * at-bridge/Makefile.am: fix LDFLAGS.
2530 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2532 * at-bridge/bridge.c:
2533 Re-worked listeners for toolkit events, now we have signal
2534 and property listeners. Added a private method
2535 register_atk_event_listeners(), which registers with the
2536 various atk and gtk signals we need to monitor in order to emit
2538 Added emission hook for AtkObject:property-change events, to
2539 support the 'property listeners'.
2540 Fixed some alloc()s of Accessibility_Event structs to use CORBA
2543 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
2544 which emit warnings and exit, respectively, if CORBA errors occur
2545 during remote calls, and we now use these methods to check most of
2546 our CORBA calls in the C bindings.
2548 * cspi/spi_accessible.c:
2549 Changed AccessibleSelection_refSelectedChild() to
2550 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
2551 now increment refcounts.
2553 * cspi/spi_component.c:
2554 Fixed some long pointer casts (dangerous!) to pass pointers to
2555 CORBA_longs of the proper type to the CORBA stubs, and copy the
2556 data into the longs that were passed into the C bindings code.
2558 * at-bridge/bridge.c:
2560 * libspi/accessible.c:
2561 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
2562 hyperlinks, AtkHyperlink is an object type.
2564 * libspi/application.c:
2565 Added various conversions to and from "generic" event types and
2566 atk-specific types; this is really part of the 'bridge'
2567 implementation but is valid for all AtkObject-based accessibility
2570 * libspi/editabletext.c:
2571 Fixed nasty bug wherein editable text's finalize method was
2572 unref'ing tha AtkObject reference that the text parent class was
2573 about to unref _again_. There was also a nasty inheritance bug
2574 that meant that the AccessibleEditableText class was corrupt.
2576 * libspi/selection.c:
2577 Provided implementations for some selection API that was broken.
2579 * idl/Application.idl:
2580 Added registerObjectEventListener () method.
2583 Fixed a number of return values that were Bonobo_Unknowns from
2584 bonobo_object_corba_objref(), which I
2585 forgot to dup before returning. Changed instances of
2586 bonobo_object_corba_objref (bonobo_object(o)) to
2587 BONOBO_OBJREF(o), for concision and clarity.
2589 <2001-10-13 Louise Miller <louise.miller@sun.com>
2591 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
2592 idl/Event.idl, idl/Registry.idl
2593 Changed these files to include Bonobo_Unknown.idl instead
2596 <2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
2598 * libspi/component.c libspi/component.h:
2599 Fixed typo. Added assertions for object checks in
2600 AccessibleComponent code.
2602 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2604 * idl/Accessible.idl:
2605 Added 'isEqual (Accessible *object)'
2606 method for Accessible. (Not Yet Implemented).
2609 Changed signature of registerKeystrokeListener() to
2610 take a KeySet and KeyEventSeq so that specific keys and event
2611 types could be requested for monitoring, and added a flag
2612 is_synchronous so that either synchronous or asynchronous
2613 notification could be requested. (However this is not all
2614 implemented yet). This also meant adding two new typedefs,
2615 KeyEventSeq and KeySet.
2618 Added two new relations, RELATION_TOOLTIP_FOR and
2619 RELATION_LEAFNODE_OF.
2622 Added new state, STATE_HAS_TOOLTIP.
2624 * libspi/text.c, editabletext.c:
2625 Added new assertions to all casts of bonobo-objects from
2626 CORBA servants, to prevent Text API calls on non-text objects.
2627 Changed suspect casts of int-pointer types, so that we
2628 always send a valid CORBA_long pointer to the CORBA APIs that use
2629 in/out long parameters. We then have to copy from the CORBA_long
2630 into the regular long or int for return to the C bindings, or
2631 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
2634 * libspi/deviceeventcontroller.c:
2635 Cleaned these sources up.
2637 Changed return type for getCharacterAtOffset to
2638 CORBA_unsigned_long, to allow for 32-bit characters.
2641 <2001-10-08 Bill Haneman <bill.haneman@sun.com>
2645 Fixed 'make dist' so that distro compiles...
2646 * libspi/keymasks.h:
2648 * cspi/spi-listener.c:
2649 KeystrokeListenerCB now returns a boolean.
2651 Added KeyEventType struct, and KeyStroke.
2652 Also added createKeystrokeListener(),
2653 KeystrokeListener_addCallback(),
2654 KeystrokeListener_removeCallback(), and added a keymask to
2655 registerKeystrokeListener().
2656 * cspi/spi_accessible.c:
2657 Changed numerous return types for interfaces from
2658 AccessibleComponent to Accessible<InterfaceName>; this was
2659 probably a cut-and-paste error.
2661 Implementations of new KeystrokeListener api (from spi.h,
2664 Changes to key modifier mapping.
2665 Created ControllerEventMask struct.
2666 Made DeviceEventController derive from Bonobo::Unknown.
2668 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
2669 * libspi/deviceeventcontroller.c:
2670 Added a number of new internal (private) methods.
2671 * libspi/editabletext.c:
2672 * libspi/editabletext.h:
2673 Fixed a number of bugs related to the fact that
2674 editabletext inherits from text. Fixed the EditableText struct,
2675 the init() call, and use correct casts when calling Text methods
2676 from an EditableText object. Removed (duplicate) atko from the
2677 EditableText structure, we use the one in the parent Text
2678 structure via the casts mentioned above.
2679 * libspi/keystrokelistener.[ch]:
2680 * libspi/registry.c:
2681 Changes in support of keyboard handling (above).
2683 Keyboard handling, though partly functional, is still not
2684 recommended for at-spi client use as there is considerable
2685 work yet to be done.
2688 Changed some places where pointers to various int types
2689 are cast to be pointers to CORBA_long types and vice-versa:
2690 pointer casting is not safe so we pass pointers of the correct
2691 types and then cast the result before putting it into the target
2694 * libspi/text.h: minor typos corrected.
2696 We now speak not only the name of a Text element, but the
2697 first sentence of its content, when it receives focus.
2698 I also changed the text compression to 75% from 50%.
2699 * util/Accessibility_Util.server.in:
2700 Changed the default magnifier type to be a 3x vertical
2701 splitscreen magnifier (was previously a 2x horizontal one).
2703 <2001-10-03 Bill Haneman <bill.haneman@sun.com>
2705 * libspi/keystrokelistener.h:
2706 * libspi/keystrokelistener.c:
2707 Initial functional implementations of KeystrokeListener.
2710 <2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
2712 Fixed string handling for NULL strings in libspi.
2713 Added spi_freeString to free strings returned by C bindings.
2715 <2001-09-30 Bill Haneman <bill.haneman@sun.com>
2717 * libspi/keystrokelistener.h:
2718 * libspi/keystrokelistener.c:
2719 Began (no-op) implementations of KeystrokeListener
2721 * libspi/deviceeventcontroller.c:
2722 * libspi/deviceeventcontroller.h:
2723 Began creating implementations of DeviceEventController,
2724 to handle keystroke and mouse event listening and
2726 * libspi/accessible.c:
2727 Stubbed-in the implementations for
2728 Accessibility_Accessible_getState and
2729 Accessibility_Accessible_getRelationSet.
2730 * libspi/registry.c:
2731 Improved de-registration process and fixed some bugs,
2732 deregistration now works correctly.
2734 Added initialization of applications list (to NULL).
2736 Reduced speech compression from 0.5 to 0.7, for demo.
2737 Changed call to gdk_window_set_decorations()
2738 to gtk_window_set_decorated().
2739 * at-bridge/bridge.c:
2740 Bridge now deregisters when app exits, via
2741 registration of a cleanup function
2742 with the g_atexit() call.
2743 Required making 'app' static, renamed 'this_app'.
2744 Fixed broken use of bonobo_init, passing argv wrongly.
2746 <2001-09-27 Bill Haneman <bill.haneman@sun.com>
2750 Created a new directory for
2751 accessibility-related utilities, primarily for
2752 testing and demo purposes, but with possible
2759 Onscreen magnifier utility that
2760 is implemented as a bonobo service.
2762 * util/mag_client.c:
2763 * util/mag_client.h:
2764 Client-side support (simple C bindings)
2765 for Magnification service
2767 * util/mag_control.c:
2768 Client program example for
2769 Magnification service
2771 * util/Accessibility_Magnifier.server.in:
2772 Bonobo-activation file for the
2773 Magnification service.
2776 * util/idl/Magnifier.idl:
2777 IDL defining the bonobo Magnification
2781 Modifications to use the bonobo-activated magnifier
2782 above, in place of trying to connect to an existing
2783 magnifier that uses socket-listening IPC.
2785 If env variable MAGNIFIER is set, a magnifier service
2786 will be started if one does not exist.
2788 <2001-09-25 Bill Haneman <bill.haneman@sun.com>
2789 * at-bridge/bridge.c:
2790 applied patch from Marc to build and run
2791 against new glib and gtk+ (seemed like a change
2792 to bonobo_init signature was made ?)
2794 made festival-server support turned off by default.
2795 Added support for a simple magnifier (off by default)
2796 which will be added to a 'util' directory later.
2797 * at-bridge/Makefile.am:
2798 Changed "application.h" header from a 'source'
2799 to a 'dependency' of libat-bridge.
2801 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2809 Added interface implementation c files to list of
2810 includes so they are included in libcspi.
2813 Changed prototype of AccessibleAction_doAction to return a
2815 Changed prototype of AccessibleTable_getCaption to
2816 return an Accessible.
2817 Changed prototype of AccessibleTable_getSelectedRows
2818 and AccessibleTable_getSelectedColumns to
2819 return a long (returns the number of selected rows
2820 or columns respectively).
2821 Changed name of AccessibleText_refRunAttributes to
2822 AccessibleText_getAttributes.
2823 Changed prototype of AccessibleText_getCharacterExtents to
2824 return a void rather than a boolean.
2825 Added support for a AccessibleCoordType parameter
2826 specifying what type of coordinates are desired.
2827 Added an AccessibleCordType parameter to
2828 AccessibleText_getPointAtOffset.
2830 * cspi/spi_accessible.c:
2831 Added code to return the outstanding interfaces from
2832 Accessible_queryInterface.
2834 * cspi/spi_action.c:
2836 Corrected call to getNActions to call the c binding
2839 * cspi/spi_editabletext.c:
2841 Changed name from setRunAttributes to setAttributes.
2843 * cspi/spi_hyperlink.c:
2845 Changed call to getNAnchors to correctly call the c
2846 binding for an attribute.
2848 * cspi/spi_hypertext.c:
2850 Changed getImageDescription to correctly call the
2851 binding for an attribute.
2853 * cspi/spi_selection.c:
2854 Changed getNSelectedChildren to correctly call the c
2855 binding for the attribute.
2856 Changed refSelectedChild to getSelectedChild.
2860 Changed getCaption to return an Accessible.
2861 Fixed calls which retrieve attributes.
2862 Changed refAt to getAccessibleAt.
2863 Changed getNSelectedRows and getNSelectedColumns to
2867 Changed getCharacterExtents and getPointAtOffset to accept an
2868 AccessibleCoordType.
2870 Changed calls which retrieve attributes.
2871 Changed refRunAttributes to getAttributes.
2876 * idl/Hyperlink.idl:
2877 Changed n_anchors attribute to nAnchors to keep naming
2878 convention consistent.
2881 Made Table inherit from Bonobo::Unknown.
2882 Added nSelectedColumns and nSelectedRows attributes.
2885 Made Value inherit from Bonobo::Unknown.
2887 * libspi/hyperlink.c:
2888 Change for nAnchors attributte name change.
2890 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2898 Added interface implementation c files to list of
2899 includes so they are included in libcspi.
2902 Changed prototype of AccessibleAction_doAction to return a
2904 Changed prototype of AccessibleTable_getCaption to
2905 return an Accessible.
2906 Changed prototype of AccessibleTable_getSelectedRows
2907 and AccessibleTable_getSelectedColumns to
2908 return a long (returns the number of selected rows
2909 or columns respectively).
2910 Changed name of AccessibleText_refRunAttributes to
2911 AccessibleText_getAttributes.
2912 Changed prototype of AccessibleText_getCharacterExtents to
2913 return a void rather than a boolean.
2914 Added support for a AccessibleCoordType parameter
2915 specifying what type of coordinates are desired.
2916 Added an AccessibleCordType parameter to
2917 AccessibleText_getPointAtOffset.
2919 * cspi/spi_accessible.c:
2920 Added code to return the outstanding interfaces from
2921 Accessible_queryInterface.
2923 * cspi/spi_action.c:
2925 Corrected call to getNActions to call the c binding
2928 * cspi/spi_editabletext.c:
2930 Changed name from setRunAttributes to setAttributes.
2932 * cspi/spi_hyperlink.c:
2934 Changed call to getNAnchors to correctly call the c
2935 binding for an attribute.
2937 * cspi/spi_hypertext.c:
2939 Changed getImageDescription to correctly call the
2940 binding for an attribute.
2942 * cspi/spi_selection.c:
2943 Changed getNSelectedChildren to correctly call the c
2944 binding for the attribute.
2945 Changed refSelectedChild to getSelectedChild.
2949 Changed getCaption to return an Accessible.
2950 Fixed calls which retrieve attributes.
2951 Changed refAt to getAccessibleAt.
2952 Changed getNSelectedRows and getNSelectedColumns to
2956 Changed getCharacterExtents and getPointAtOffset to accept an
2957 AccessibleCoordType.
2959 Changed calls which retrieve attributes.
2960 Changed refRunAttributes to getAttributes.
2965 * idl/Hyperlink.idl:
2966 Changed n_anchors attribute to nAnchors to keep naming
2967 convention consistent.
2970 Made Table inherit from Bonobo::Unknown.
2971 Added nSelectedColumns and nSelectedRows attributes.
2974 Made Value inherit from Bonobo::Unknown.
2976 * libspi/hyperlink.c:
2977 Change for nAnchors attributte name change.
2980 <2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
2982 implementations-- made server implementations own AtkObject pointers
2983 rather than their respective AtkInterrface pointers to fix
2984 refcounting. AtkHyperlink is still broken.
2986 <2001-09-04 Bill Haneman <bill.haneman@sun.com>
2987 * cspi/spi_accessible.c:
2988 Added method Accessible_Role_getName(),
2989 and requisite string array (role_names).
2990 Added conversion string_from_corba_strin() call
2991 to Accessible_getName and _getDescription.
2992 * libspi/accessible.c:
2993 Added implementation for Accessible_getRole()
2995 Added festival support, used if environment variable
2998 2001-09-04 Bill Haneman <bill.haneman@sun.com>
3000 * at-bridge/bridge.c:
3001 Now allocate Accessibility_Event using
3002 Accessibility_Event__alloc() instead of g_new0().
3003 * libspi/accessibleeventlistener.c:
3004 Initialize AccessibleEventListener->callbacks to NULL.
3005 Fixed accessible__event_listener_init() param, changed to
3006 "AccessibleEventListener *" type.
3007 Changed a bonobo_object_release_unref() call to
3008 Accessibility_Accessible_unref().
3009 * libspi/listener.c:
3010 Changed Bonobo_Unknown_unref to (equivalent)
3011 Accessibility_Accessible_unref.
3012 * libspi/registry.c:
3013 Changed bonobo_object_release_unref to
3014 Accessibility_Accessible_unref.
3016 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
3019 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
3020 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
3021 spi-util.c spi-util.h
3022 Implementations for C bindings to remaining accessibility
3025 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
3028 changed return value of Action from void to boolean to
3029 bring in line with ATK.
3032 Changed getText funcions to return "out" start and end offsets.
3033 Changed getAttributes to take and offset and return the start
3034 and end offset of the attribute run.
3035 Changed getOffsetAtPoint and getCharacterExtents to take an
3036 enum describing whether coordinates are window or screen.
3039 libspi/action.c libspi/action.h libspi/editabletext.c
3040 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
3041 libspi/hypertext.c libspi/hypertext.h libspi/image.c
3042 libspi/image.h libspi/selection.c libspi/selection.h
3043 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
3044 libspi/value.c libspi/value.h
3045 Added server implementations for outstanding ATK interfaces
3046 not yet implemented.
3048 2001-09-04 Bill Haneman <bill.haneman@sun.com>
3051 Added (missing) getName() method.
3052 Made nActions an attribute.
3053 * idl/EditableText.idl:
3054 Changed order of params in setAttributes.
3055 * idl/Hyperlink.idl:
3056 Removed getAnchor, added getURI.
3058 Changed attributes to methods, for efficiency
3059 (so that getting extents can be done in one call)
3060 * idl/Selection.idl:
3061 Changed nSelectedChildren to attribute, and re-indented.
3062 * idl/Table.idl: changed nrows, ncolumns, caption, summary
3064 * idl/Text.idl: reformatted to match our coding style.
3065 (temporarily?) removed getRowColumnAtOffset().
3066 Changed text selection API to support multi-select and
3067 non-contiguous selections, as in ATK.
3068 * idl/Value.idl: changed some methods to attributes.
3070 2001-08-24 Mark McLoughlin <mark@skynet.ie>
3072 * libspi/listener.c(impl_notify_event):
3073 BonoboUnkown_unref the source instead
3074 of bonobo_object_release_unref - the ORB
3075 handles the releasing.
3077 * configure.in: require ORBit-2.3.94 for
3080 2001-08-21 Bill Haneman <bill.haneman@sun.com>
3082 Tagged CVS repository 'EA_1_0'.
3083 * README.EARLY_ACCESS:
3084 Alphabetized acknowledgements list, and
3086 Listed some known dependencies of at-spi.
3088 2001-08-20 Bill Haneman <bill.haneman@sun.com>
3090 * docs/at-spi-docs.sgml:
3091 * docs/at-spi-sections.txt:
3092 * docs/at-spi-overrides.txt: (Added zero-length file)
3093 Documentation improvements - gtk-doc should build
3094 docs for all implemented C bindings now.
3097 * cspi/spi.c: (New file)
3098 * cspi/spi_event.c: (New file)
3099 * cspi/spi_registry.c: (New file)
3100 * cspi/spi_accessible.c: (New file)
3101 * cspi/spi_application.c: (New file)
3102 * cspi/spi_component.c: (New file)
3103 Split spi_main.c into six parts, and included them from
3104 "spi.c". This is a bit of a hack, probably temporary,
3105 but required by gtk-doc, apparently.
3107 2001-08-20 Bill Haneman <bill.haneman@sun.com>
3110 * docs/at-spi-docs.sgml:
3111 * docs/at-spi-sections.txt:
3113 Initial checkins/modifications for gtk-doc generation.
3116 Added (missing) interface query methods to Accessible's C binding.
3118 Added GenericInterface type definition.
3120 Added query for AccessibleComponent interface to focus event handler.
3121 Added printout of bounding box for focussed component.
3122 * libspi/component.c:
3123 Added partial implementation for AccessibleComponent to C binding.
3124 * idl/Application.idl:
3125 * libspi/registry.c:
3126 * libspi/listener.c:
3127 * libspi/application.c:
3128 * libspi/application.h:
3129 Changed "ID" attribute type from string to long.
3131 2001-08-19 Bill Haneman <bill.haneman@sun.com>
3135 Made method naming consistent: methods taking object args
3136 start with uppercase, other methods (except those using
3137 acronyms) start with lowercase. Underscores delimit between
3138 object names and method names:
3139 SPI_init() - uppercase since it starts with an acronym.
3140 getDesktopCount () - lowercase start since no object param0.
3141 Accessible_getName() - uppercase object type name, studlyCaps method
3145 Added gtk-doc documentation for all currently implemented
3146 methods in the C bindings API.
3148 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3150 * Makefile.am : changed build order to build test last.
3153 Changed "createEventListener" to "CreateEventListener".
3154 * libspi/accessibleeventlistener.c :
3155 Bugfix for addition of callbacks.
3156 * test/Makefile.am :
3157 * test/simple-at.c :
3158 Added new test that uses the C bindings API.
3160 * libspi/listener.c :
3161 * libspi/registry.c :
3162 * libspi/accessibleeventlistener.c :
3163 * at-bridge/bridge.c :
3164 Renamed member "target" of Accessibility_Event to "source",
3165 which is more descriptive.
3168 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3172 * cspi/Makefile.am :
3173 Added makefile support for at-spi/cspi directory.
3176 * cspi/spi-listener.h : (NEW FILE)
3177 Added support for/use of spi-listener.h.
3179 C bindings now build successfully, with no warnings.
3180 * libspi/accessibleeventlistener.h : (NEW FILE)
3181 * libspi/accessibleeventlistener.c : (NEW FILE)
3182 * libspi/Makefile.am :
3183 Added new object type "AccessibleEventListener"
3184 which inherits from Listener, and allows attachment
3185 of in-process callbacks (so that a client with a listening
3186 object instance can add functionality to the local
3187 implementation, dynamically).
3189 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3191 * libspi/accessible.c:
3192 Add implementation for get_index_in_parent().
3194 Added #include of "spi-roletypes.h", and
3195 added enumerated type AccessibleCoordType.
3196 Added definition for KeystrokeListener (function type).
3199 * cspi/spi-statetypes.h :
3200 * cspi/spi-roletypes.h :
3202 Added these headers, used by spi.h.
3204 Added code (NOTE: not yet built by make).
3206 2001-08-18 Mark McLoughlin <mark@skynet.ie>
3208 * libspi/Makefile.am: generate imodule
3209 at the same time as other idl compiler
3212 2001-08-17 Bill Haneman <bill.haneman@sun.com>
3213 * libspi/registry.c :
3214 * libspi/application.c :
3215 * idl/Application.idl :
3216 Made registration with toolkit an application method,
3217 which is required since each app has its own toolkit static
3218 environment. Thus the bridge must register for
3219 notification of toolkit events from each application in turn.
3220 Toolkit notifications are now successfully registered for, and
3221 sent to the listening at client.
3223 Changed toolkit event string to use hyphens rather than underscores.
3224 * libspi/listener.c :
3225 listner now gives more info in debug mode - it reports the
3226 name of the event received, as well as the name of the source.
3229 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3231 * libspi/registry.c :
3232 added more implementation for toolkit events.
3233 Fixed bug such that toolkit event registrations
3234 (via atk) use the whole event name string, not
3236 Removed a useless call to an ORBit_ method.
3237 * at-bridge/bridge.c :
3238 Removed unused local sbuf[] variable.
3240 We now register for Gtk:GtkWidget:button_press_event
3241 events as well as "focus:" events.
3243 Add some more API from Registry.idl that was missing,
3244 for keystroke listening, keystroke and mouse event
3245 synthesis, and enumeration of accessible desktops.
3247 2001-08-16 Michael Meeks <michael@ximian.com>
3249 * configure.in: use AM_GLIB_GNU_GETTEXT.
3251 * Makefile.am (SUBDIRS): kill intl.
3253 2001-08-15 Michael Meeks <michael@ximian.com>
3255 * registryd/Makefile.am: s/oaf/server/ relocate info file.
3257 * configure.in: upd.
3259 * configure.in: depend on a recent bonobo-activation that
3260 will find our server files ...
3262 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3264 * libspi/accessible.c : accessible_new() :
3265 Now we add the Component interface via bonobo_object_add_interface,
3266 if the contained AtkObject implements AtkComponent.
3267 * libspi/accessible.h : now include "component.h"
3268 * libspi/component.h :
3269 * libspi/component.c : added files - implementation of
3270 bonobo wrapper object for Accessibility/Component
3271 * libspi/listener.c :
3272 Added test code to check for Accessibility/Component:1.0
3273 interface and report whether it is implemented by the
3275 * libspi/registry.c :
3276 Now we check for not only the hash of the whole event
3277 string before relaying the event, we also check the
3278 "minor" event string (without the detail string).
3279 This allows event listeners to be registered against
3280 all events of a certain major+minor type, or just
3281 against a specific major+minor+detail type.
3282 * libspi/accessible.c :
3283 Added implementations for Accessible:get_parent(),
3284 Accessible:getChildCount(), and Accessible:getChildAtIndex().
3285 * libspi/registry.c :
3286 * libspi/listener.c :
3287 Replaced calls to Accessibility_Accessible_ref() and
3288 Accessibility_Accessible_unref() with
3289 calls to bonobo_object_dup_ref() and
3290 bonobo_object_release_unref(), so that the CORBA object
3291 is dup-ed and released when relayed, as well as the bonobo object.
3293 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3295 * libspi/Makefile.am,
3296 registryd/Makefile.am,
3297 at-bridge/Makefile.am.
3298 test/Makefile.am, configure.in:
3299 reverse previous changes.
3301 * /idl/Image.idl: fix typo.
3303 * test/Makefile.am: put DEBUG_FLAGS
3306 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3308 * test/app.c: use argv[0] instead of
3311 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3313 * libspi/Makefile.am,
3314 registryd/Makefile.am,
3315 at-bridge/Makefile.am.
3316 test/Makefile.am, configure.in:
3317 cleanup, replace individual LIBS/CFLAGS with
3318 AT_COMMON_{LIBS|CFLAGS}.
3322 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3324 * configure.in, libspi/Makefile.am:
3325 Change IDL path checking for bonobo-activation
3328 2001-08-15 Bill Haneman <bill.haneman@sun.com>
3330 * registryd/registry.c : separated event listeners to use
3331 3 separate lists (focus, window, toolkit). Began testing
3332 event names against hashes before relaying events.
3333 * test/at.c : now register for events of type "focus:"
3334 * test/app.c : now generate events of type "focus:"
3335 * at-bridge/bridge.c : register with ATK for focus events,
3336 and we now relay those focus events to any "focus:" listeners.
3337 This now works with the bridge as a GTK_MODULE when running test/at.
3338 * libspi/registry.c :
3339 * libspi/listener.c :
3340 now we ref event sources before propagating, and unref on receipt.
3341 * libspi/registry.c :
3342 some changes to internal structs, to support event typestring hashes.
3343 * text/app.c : changed the way the appname is generated.
3344 * cspi : added directory that will hold the C bindings library for
3345 non-CORBA/bonobo-savvy clients.
3346 * cspi/spi.h : header file that contains the function prototypes for the C binding.
3347 * idl/Component.idl : added in parameter to indicate coord system for
3348 geometry-related calls.
3349 * idl/Hyperlink.idl : added readonly n_links attribute
3350 * idl/Image.idl : changed methods to attributes.
3352 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3354 * at-bridge/Makefile.am: link against
3355 ../libspi/libspi.la instead of -lspi.
3357 * at-spi/test/app.c: include
3358 bonobo-activation.h. Use a default appname
3359 if one is not provided.
3361 2001-08-14 Bill Haneman <bill.haneman@sun.com>
3363 * idl/Registry.idl : temporarily changed register_Application
3364 to oneway, to work around issue with initial registration
3366 * idl/Application.idl : changed attribute "id" from readonly
3367 to read-write, since it needs to be assigned by Registry.
3368 * registryd/registryd.c : added call to set application id
3370 * registryd/registry.c : changed de-registration procedure to
3371 use CORBA_Object_hash() to find matching object ref in application
3372 lists and listener lists.
3373 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
3374 began distinguishing between event types (work in progress).
3376 2001-08-13 Bill Haneman <bill.haneman@sun.com>
3379 * libspi/application.c:
3380 Added implementations for get/set id, get_toolkitName,
3382 * registryd/registryd.c :
3386 Converted from use of OAF to bonobo-activation.
3387 * libspi/desktop.h :
3388 * libspi/desktop.c :
3390 Removed references to atksimpleobject, since base atkobject
3391 implementation now provides functionality we need.
3392 * libspi/atksimpleobject.c :
3393 * libspi/atksimpleobject.h :
3398 * at-bridge/Makefile.am
3399 * at-bridge/bridge.c
3402 Added directory "bridge" and contents, and added dependencies
3403 in Makefile.am/configure.in.
3404 Initial checkin of "at-bridge".
3405 This code is a GTK_MODULE which automatically registers
3406 GTK+ apps with the accessibility registry, using an object
3407 reference to the root ATK object.
3409 2001-08-10 Mark McLoughlin <mark@skynet.ie>
3411 * po/Makefile.in.in: Remove. Again. If this
3412 doesn't get autogenerated - you need to update
3415 2001-08-07 Mark McLoughlin <mark@skynet.ie>
3417 * po/Makefile.in.in: Add. Again.
3419 2001-07-31 Bill Haneman <bill.haneman@sun.com>
3421 * libspi/accessible.c : added support for 'description' property.
3422 * libspi/accessible.c
3424 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
3425 (since the two are now equivalent in libbonobo)
3433 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
3434 Bonobo::Unknown as does Accessibility::Accessible.
3435 * idl/StreamableContent.idl : as above, and replaced internal InputStream
3436 interface with Bonobo::Stream, since it was redundant with it.
3437 (The Stream returned by a StreamableContext object is expected to
3438 implement only a subset of Bonobo::Stream)
3440 2001-07-28 Anders Carlsson <andersca@gnome.org>
3442 * libspi/accessible.c (accessible_object_finalize): Change
3443 g_free to g_object_unref since the AtkObject is a GObject.
3445 2001-07-30 Bill Haneman <bill.haneman@sun.com>
3447 * idl/Accessibility.idl: add new IDL files
3450 * idl/Action.idl: Definitions of actionable UI object
3451 * idl/Component.idl: Definitions of UI component geometry, etc.
3452 * idl/Hyperlink.idl: Defs of hyperlink behavior
3453 * idl/Image.idl: Def of accessible image
3454 * idl/Selection.idl: Definition of UI object with selectable children
3455 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
3456 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
3457 * idl/Text.idl: Interface defs for UI elements with complex textual content
3458 * idl/Value.idl: Definition of UI element that is a value controller or display
3460 2001-07-27 Michael Meeks <michael@ximian.com>
3462 * po/Makefile.in.in: remove autogenerated file from CVS.
3464 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
3467 * idl/Registry.idl: include guard.
3469 * idl/Accessibility.idl: Add, and include all the other IDL
3472 * idl/*.idl: remove mass of pragmas etc.
3474 2001-07-26 Michael Meeks <michael@ximian.com>
3476 * registryd/Makefile.am (registryd_SOURCES): remove
3479 2001-07-27 Mark McLoughlin <mark@skynet.ie>
3481 * libspi/.cvsignore, registryd/.cvsignore,
3482 test/.cvsignore: updated.
3484 * po/Makefile.in.in: gettext update.
3486 2001-07-25 Bill Haneman <bill.haneman@sun.com>
3488 * initial CVS checkin
3490 2001-06-29 Michael Meeks <michael@ximian.com>
3492 * configure.in: add AM_CONFIG_HEADER to gen config.h