1 2002-01-24 Mark McLoughlin <mark@skynet.ie>
3 * cspi/spi_accessible.c: (Accessible_getRelationSet):
4 use NULL, not CORBA_OBJECT_NIL.
7 (impl_accessibility_accessible_get_relation_set):
8 allocate the sequence correctly.
10 * libspi/remoteobject.h: kill spi_remote_object_new.
12 * test/test-simple.c: (validate_accessible): add code
13 to test relation sets, now all we need is to figure
14 out how to excercise this code path :/
16 2002-01-18 Michael Meeks <michael@ximian.com>
19 (key_listener_cb): consume the key.
20 (test_keylisteners): update.
21 (main): wait for any pending unrefs on events.
23 * registryd/deviceeventcontroller.c
24 (spi_controller_update_key_grabs): only re-issue the
25 grab on a key release.
26 (spi_device_event_controller_forward_key_event):
27 refresh the keygrabs before we notify the listeners,
28 to reduce the X ungrab / re-grab race.
29 (spi_controller_register_with_devices): remove
30 XSelectInput - we do that with the gdk_window_ call.
31 (_spi_controller_device_error_handler): return a value.
32 s/GDK_DISPLAY/spi_get_display/
34 2002-01-17 Michael Meeks <michael@ximian.com>
36 * registryd/deviceeventcontroller.c
37 (_deregister_keygrab): don't blow out the later
40 * test/test-simple.c (test_keylisteners): do a
41 more intelligent validation.
43 2002-01-14 Michael Meeks <michael@ximian.com>
46 (gnome_accessibility_module_init),
47 (gnome_accessibility_module_shutdown): impl.
48 (gtk_module_init): protect vs. double inits.
49 (add_signal_listener): impl.
50 (spi_atk_bridge_state_event_listener): kill
51 (deregister_application): split out of
52 (spi_atk_bridge_exit_func): here.
54 2002-01-18 Bill Haneman <bill.haneman@sun.com>
57 Added caret tracking when using magnifier, and
58 now use text bounds for focus tracking of text elements, rather than
59 the component bounds - this is helpful for short text fields in long
60 table cells, at high magnification.
62 2002-01-16 Bill Haneman <bill.haneman@sun.com>
64 * registryd/deviceeventcontroller.c:
65 Regression fix for keylistener de-registration; global keygrabs
66 were not being released when deregisterKeystrokeListener was
68 Accessibility_DeviceEventController_deregisterKeystrokeListener
69 was called with a zero-length keyset. That is because the cspi
70 method, SPI_deregisterKeystrokeListener, does not take a keyset
71 parameter but instead should remove all the key grabs held be a
73 The code in impl_deregister_keystroke_listener was changed to copy
74 the keylist from the listener instance previously registered with
75 the DeviceEventController before releasing the grabs.
77 * registryd/registry.c:
78 * registryd/deviceeventcontroller.c:
79 * libspi/spi-private.h:
81 Changed spelling of "re-enterant" to "re-entrant" globally.
83 2002-01-16 Bill Haneman <bill.haneman@sun.com>
86 Changed key listeners test - the test was slightly mis-using the
87 (admittedly poorly documented) SPI_generateKeyboardEvent API.
88 It now uses '=' as the key event listened to and generated,
89 relying on a keysym match rather than assuming that keycode 33
90 is always equal to keysym '!'.
92 2002-01-15 Bill Haneman <bill.haneman@sun.com>
95 Changed simple-at to use a specific keyset, rather than
96 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
97 manager, desktop, etc.
99 2002-01-11 Bill Haneman <bill.haneman@sun.com>
101 * registryd/deviceeventcontroller.c:
102 Replaced standard X error handler with a special handler that
103 is non-fatal for failed keygrabs. This works around
104 problems with keygrab clashes sometimes observed on
106 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
107 mouse handling code as yet).
109 2002-01-11 Bill Haneman <bill.haneman@sun.com>
112 Incremented revision for desktop alpha release.
115 Fixed a couple of the more glaring errors (still not
118 2002-01-11 Michael Meeks <michael@ximian.com>
120 * registryd/deviceeventcontroller.c
121 (spi_device_event_controller_forward_key_event): kill
122 XUngrabKey / XKeyGrab race.
123 (spi_controller_grab_keyboard): rename to
124 (spi_controller_update_key_grabs): this, and deal
125 with incremental adding / removing grabs more
127 (_register_keygrab): ensure we're not pending a remove.
128 (spi_grab_mask_free): impl.
129 (spi_controller_register_global_keygrabs): split out
131 (handle_keygrab): impl.
132 (_deregister_keygrab): impl.
133 (spi_controller_deregister_global_keygrabs): impl.
134 (spi_controller_update_key_grabs): re-issue the grab if
135 we just recieved a notification.
137 * test/test-simple.c (key_listener_cb): remove debug.
139 * registryd/deviceeventcontroller.c
140 (spi_controller_register_device_listener): after
141 registering a global keygrab, actualy register it !
142 don't wait for a timeout; doh !
144 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
145 to make it more readable / manipulable.
146 s/grabmask/grab_mask/ s/refcount/ref_count/
147 s/keyval/key_val/ s/modmask/mod_mask
149 2002-01-08 Michael Meeks <michael@ximian.com>
151 * registryd/deviceeventcontroller.c
152 (spi_controller_register_with_devices): use gdk calls to
154 (global_filter_fn): implement the filter.
155 (spi_device_event_controller_check_key_event): rename to
156 (spi_device_event_controller_forward_key_event): this & upd.
157 (spi_get_display): replace with GDK_DISPLAY.
159 * registryd/deviceeventcontroller.c
160 (spi_controller_deregister_device_listener): unroll into
161 (impl_deregister_keystroke_listener): here to simplify.
162 (spi_controller_register_global_keygrabs): split cut and
163 paste (!) out into (_register_keygrab): here, shorter & sweeter.
164 (spi_controller_deregister_device_listener): remove.
165 (impl_register_mouse_listener): remove, no mouse listener
166 support in at-spi-1.0
168 * registryd/registry.c
169 (_device_event_controller_hook): kill.
170 (spi_registry_init): upd.
172 * registryd/deviceeventcontroller.c
173 (spi_device_event_controller_class_init): upd.
174 (spi_check_key_event): merge into.
175 (spi_device_event_controller_check_key_event):
176 here and kill strange static ev init, don't leak
177 the x_event - nor dynamicaly allocate it.
179 * registryd/registry-main.c (main): re-direct
180 timeout to remove strange vtable mess.
182 * registryd/deviceeventcontroller.c
183 (remove_listener_cb): impl.
184 (spi_controller_deregister_device_listener):
185 fix re-enterancy hazard.
187 2002-01-07 Michael Meeks <michael@ximian.com>
189 * registryd/deviceeventcontroller.c
190 (spi_device_event_controller_new): upd.
191 (impl_notify_listeners_sync): upd. debug.
192 (spi_notify_keylisteners): fix re-enterancy hazards,
193 prettify, remove O(n*n) iteration.
194 (spi_controller_grab_keyboard): fix iteration.
195 (spi_check_key_event): re-format to suit coding style.
196 Clean all the warnings - we're warning free.
198 * registryd/deviceeventcontroller.h:
199 * registryd/registry.h: make mutualy referential with
200 typesafe forward references instead of (!) void pointer
203 2002-01-11 Michael Meeks <michael@ximian.com>
205 * cspi/spi_accessible.c (role_names): add a role name
206 to sync this array with the enum; and make the regression
209 2002-01-10 Michael Meeks <michael@ximian.com>
211 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
212 allow expansion of enumeration & kill warning.
214 * test/test-simple.c (key_listener_cb): impl.
215 (test_keylisteners): impl.
217 * cspi/spi-listener.h: make listener signatures const
218 on the provided (const) events.
220 * test/keysynth-demo.c: upd. to const events.
222 * test/simple-at.c: ditto.
224 2002-01-11 Bill Haneman <bill.haneman@sun.com>
227 Rev the version to 0.5 (the previous tarball was named 0.4,
228 even though the micro number was 3), so we need to rev upwards
229 again for beta2/"desktop-alpha"
232 Checked in a demo script, which requires editing before use!
233 Proceed with caution.
236 Fixed typo in header which was redefining SPI_ACTION_CLASS.
238 * cspi/spi_accessible.c:
239 Add a couple of missing enum initializations, and fix some enum
242 * cspi/spi_registry.c:
243 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
245 * docs/reference/cspi/at-spi-cspi-sections.txt:
246 Remove/fix a couple of broken document references.
249 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
250 as Alt-Control to listen for commands, since on some systems
251 Control-Alt may already be grabbed.
253 2002-01-10 Bill Haneman <bill.haneman@sun.com>
256 Update version number to 0.4 for Beta2.
258 * libspi/accessible.c, libspi/accessible.h:
259 Expose spi_accessible_construct, to enable libgail-gnome
260 construction from spi_accessible subtype.
263 Workaround for bug in some non-gnome-compliant window managers
264 which made magnifier resize improperly.
266 2002-01-09 Bill Haneman <bill.haneman@sun.com>
268 * libspi/accessible.c: (spi_accessible_new) :
269 Move the test for SPI_IS_REMOTE_OBJECT to
270 spi_accessible_new_return, fixing a bug and compile time warning.
272 2002-01-08 Michael Meeks <michael@ximian.com>
274 * registryd/registry.c (parse_event_type): remove strndup.
276 * libspi/Makefile.am (libspi_la_SOURCES): remove
277 sources already included in the headers section.
279 * libspi/util.c: add.
281 * libspi/spi-private.h: add.
283 * registryd/registry.c: update to moved list iterators.
285 2002-01-05 Michael Meeks <michael@ximian.com>
287 * test/simple-at.c (main): upd. auto-module set to atk-bridge
289 * test/test-simple.c (main): ditto.
291 2002-01-04 Michael Meeks <michael@ximian.com>
293 * libspi/accessible.c (spi_accessible_new): remove 2nd,
296 * registryd/registry.c
297 (get_listener_list): impl.
298 (impl_accessibility_registry_register_global_event_listener):
299 re-impl. to simplify using ~, remove dodgy const cast off.
300 (parse_event_type): constify.
301 (impl_accessibility_registry_deregister_global_event_listener_all):
302 re-write, more efficiency and simplicity, kill re-enterancy
304 (compare_listener_corbaref, compare_corba_objects),
305 (compare_listener_quarks): define out.
306 (impl_accessibility_registry_deregister_global_event_listener):
307 re-write for effiency, and nail re-enterancy hazard.
308 (impl_accessibility_registry_get_desktop_list): impl.
309 (re_enterant_list_delete_link): impl.
310 (re_enterant_list_foreach): impl.
311 (remove_listener_cb): impl.
312 (_registry_notify_listeners): kill.
313 (notify_listeners_cb): impl.
315 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
316 (SPI_getDesktopList): impl.
318 * test/test-simple.c (test_desktop): test the methods.
320 2002-01-03 Michael Meeks <michael@ximian.com>
322 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
323 keystrings since we free them
324 (SPI_freeAccessibleKeySet): in here.
326 * libspi/accessible.c (spi_accessible_new): kill warning,
327 wonder what is going on with the constructor here.
329 2002-03-01 Bill Haneman <bill.haneman@sun.com>
331 * libspi/accessible.c (spi_accessible_new ()) :
332 Added check to see if AtkObject is an SpiRemoteObject before
333 creating an SpiAccessible.
335 2002-05-01 Bill Haneman <bill.haneman@sun.com>
337 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
338 Enable keygrabs using the Control modifier, now that they are
339 working properly (they were previously disabled).
342 Change the command keygrab for this demo to "Control+Alt", so as
343 to conflict with fewer other key commands on the system; this
344 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
346 Removed a pointlessly-chatty keylistener for unshifted keys
347 (shifted keys are still reported).
349 2002-02-01 Bill Haneman <bill.haneman@sun.com>
351 * libspi/remoteobject.h:
352 * libspi/remoteobject.c:
353 Added definitions for special AtkObject subtype, required for
354 support of remote components (specifically, used by BonoboControl
355 accessibility implementation).
357 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
359 * cspi/spi.h: synched relation types with ATK
361 * cspi/spi_accessible.c: Added implementations of
362 AcccessibleRelation_* methods
364 * idl/Accessibility_Relation.idl: added getRelationTypeName
365 method. Synched known relation types with ATK. Allowed for
366 relation type extension with the RELATION_EXTENDED type.
368 * libspi/relation.c: Provided implementations for
369 AccessibleRelation methods.
371 2002-01-01 Bill Haneman <bill.haneman@sun.com>
373 API tweaks for today's API 'freeze'.
376 Added placeholder functions to allow future compatible expansion
377 of the IDL interfaces.
379 * idl/Accessibility_Registry.idl:
380 Changed generateKeyEvent to generateKeyboardEvent. Changed
381 signature of this method to accept an optional keystring in
382 parameter (for complex text input synthesis) and changed use of
383 simple 'boolean' parameter in registerKeystrokeListener to a
384 struct, EventListenerMode.
386 * cspi/spi_accessible.c:
388 * cspi/spi_streamablecontent.c:
389 Added references to AccessibleStreamableContent interface, and
390 definition and implementation of AccessibleStreamableContent
393 * cspi/spi_registry.c:
395 Changed generateKeyEvent API to generateKeyboardEvent,
396 taking a new (optional) keystring parameter to support complex
401 Renamed directory (to better reflect its actual purpose, bridging
402 from at-spi to ATK). The .so module is also now named
405 * idl/Accessibility_Hypertext.idl:
406 * libspi/accessible.c:
407 * libspi/hypertext.h:
408 * libspi/hypertext.c:
409 Changed Accessibility_Hypertext to *not* derive from
412 * cspi/spi_registry.c:
413 Added list of legal event type names for 'window' events, which
414 completes the registry event API.
416 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
418 * at-bridge/bridge.c: Added registration for separate
419 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
420 signals. If either of the first two parameters to the generic
421 bridge signal handler are ints, they are passed on as event
422 details. This allows an AT to determine what text was inserted.
424 2001-12-21 Bill Haneman <bill.haneman@sun.com>
426 * registryd/deviceeventcontroller.c:
427 Fixed regressions in generateKeyEvent caused by the removal of
428 gdk_init from registryd; we now use pure X calls to connect to the
429 display, which makes sense because deviceeventcontroller already
430 uses a fair bit of X API (should eventually be migrated to a
431 'portability layer').
433 * registryd/desktop.c:
434 Fixed minor regression in spi_desktop_init, changed the way the
435 desktop name is being set to work with new spi_base API
436 (gobject-based, rather than AtkObject-based).
438 * registryd/Makefile.am:
439 Minor revision of makefile to use XTST_LIBS variable rather than
440 hard-wiring the Xtst LD_ADD element.
442 * test/keysynth-demo.c:
443 Tweaked an output message; added initialization of the
444 'keystrings' member of the "switch listener" key_set.
447 Squashed compile-time warning.
449 * libspi/accessible.c:
450 Cosmetic and formatting fixes, renamed a static method.
452 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
454 * libspi/accessible.c
456 * libspi/application.c
460 * libspi/editabletext.c
468 * registryd/desktop.c:
469 Changed SpiBase to contain a GObject pointer rather than an AtkObject
471 2001-12-17 Bill Haneman <bill.haneman@sun.com>
473 * idl/Accessibility_Registry.idl:
474 Added boolean member 'is_text' to DeviceEvent. This is for the
475 use of key events, and helps prevent ambiguity between composed
476 key strings and keysym names, since both may potentially be
477 returned in the 'event_string' member.
479 * at-bridge/bridge.c:
480 * registryd/deviceeventcontroller.c:
481 Use the 'is_text' member when notifying device event listeners.
482 Knon issue: composed characters are not dealt with correctly by
483 the global key listener implementation yet.
485 2001-12-17 Bill Haneman <bill.haneman@sun.com>
487 * at-bridge/bridge.c:
488 Namespaced local static methods to spi_atk_bridge_* where
489 previously named bridge_*, and spi_* elsewhere.
491 * at-bridge/bridge.c:
492 * cspi/bonobo/cspi-bonobo-listener.c:
493 Added demarshalling/conversion for string member of
494 Accessibility_DeviceEvent to AccessibleKeystroke.
496 * registryd/deviceeventcontroller.c:
497 Added code to fill the Accessibility_DeviceEvent key string value
498 member for global key events (i.e. from XGrabKey), to match
499 behavior of Accessibility_DeviceEvent from the toolkit key events
500 from the bridge. Fixed timestamp in global key event notifications.
503 Added printout of key event's string value to
504 report_ordinary_key_event, for demo/debugging purposes.
506 2001-12-15 Bill Haneman <bill.haneman@sun.com>
508 * idl/Accessibility_Registry.idl:
509 Removed Accessibility_KeyStroke structure in favor of generic
510 Accessibility_DeviceEvent structure.
511 Changed Accessibility_ControllerEventMask from a struct to an
514 * at-bridge/bridge.c:
515 Changed APIs to use DeviceEvent structure as above, and removed
516 bogus casting between these event structures.
518 * cspi/spi-listener.h:
519 Added keystring member of AccessibleKeystroke structure, to enable
520 matching on event "names" rather than only hardware codes and
524 Added keystrings member of AccessibleKeySet struct, to allow
525 matching on event names (as above).
526 Added declarations for SPI_createAccessibleKeySet and
527 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
528 event modmasks directly as unsigned ints rather than structs with
529 refcounts, in the DeviceEventController methods.
531 * cspi/spi_registry.c:
532 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
534 * cspi/spi-roletypes.h:
535 Added documentation of newly added SPI Roles.
537 * cspi/bonobo/cspi-bonobo-listener.c:
538 Changes in support of API changes above.
540 * libspi/accessible.c:
541 Converted APIs to use DeviceEvent structure (see IDL changes
544 * registryd/deviceeventcontroller.c:
545 Added DEControllerGrabMask structure to track keygrabs not only by
546 modmask but by keyset as well; this allows us to do "global"
547 (i.e. X) keygrabs on a per-key or keyset basis rather than always
548 grabbing on AnyKey and then filtering after-the-fact.
549 Bugfixes for event filtration mean that we don't get false matches
550 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
552 * registryd/deviceeventcontroller.c:
553 Namespaced a number of static methods to use spi_ prefix. Major
554 revision to internals of global (i.e. X) key grabs.
556 * registryd/deviceeventcontroller.h:
557 Removed keymask_list and added keygrabs_list to
558 SpiDeviceEventController struct.
561 Added use of SPI_createAccessibleKeySet API when creating a
562 listener for only one key. Attach a listener to "shift spacebar
563 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
564 X key event names to SPI key event names, so that listeners are
565 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
567 * test/keysynth-demo.c:
568 Changed (incorrect) use of X key event names (KeyPressed,
569 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
572 2001-12-12 Bill Haneman <bill.haneman@sun.com>
574 * libspi/accessible.c:
575 Convert all AtkRole enumerations to Accessibility_Role enums when
576 getting a role from an AtkObject.
578 * cspi/spi_accessible.c:
579 Complete the conversion of Accessibility_Role enums at runtime to
580 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
581 role enums correctly match those given in spi-roletypes.h.
582 Re-synchronize the local names list for AccessibleRole_getName ().
583 AccessibleRole_getName is now deprecated, since it duplicates the
584 more reliable Accessible_getRoleName.
585 Added some role types from Accessibility_Role.idl.
587 * idl/Accessibility_Role.idl:
588 Added some role types used by AtkRole.
590 2001-12-12 Bill Haneman <bill.haneman@sun.com>
593 * cspi/spi_registry.c:
595 * cspi/cspi-bonobo-listener.c:
596 Namespaced all methods that did not begin with an "SPI_" or
597 "Accessible" prefix to "SPI_".
600 Homogenized internal function namespace to "cspi_" for statics.
603 Patched tests to use the new CSPI API.
605 * docs/reference/cspi/at-spi-cspi-sections.txt:
606 Updated docs to reflect namespace changes, and added a number of
607 methods to the documentation.
609 * registryd/registry.c:
610 Changed use of strings and string hashes in listener event
611 matching and parse_event_string to use GQuark, which is guaranteed
614 * registryd/registry.h:
615 Squashed annoying warning.
617 * idl/Accessibility_Role.idl:
618 Extended range of available Accessibility_Role values.
620 * cspi/spi_accessible.c:
621 Re-ordered role names.
623 2001-12-12 Bill Haneman <bill.haneman@sun.com>
625 * idl/Accessibility_Value.idl:
626 Revert use of union back to CORBA_double, since the double type is
627 more efficient and can contain the other types without loss of
630 * idl/Accessibility_Accessible.idl:
631 Added method Accessibility:Accessible:getRoleName, to complement
632 Accessibility:Accessible:getRole.
634 * cspi/spi_accessible.c:
636 Added C binding for above, Accessible_getRoleName (), and changed
637 signature of Accessible_getRole () to return an AccessibleRole.
639 * cspi/spi-roletypes.h:
640 Changed AccessibleRole_getName to return a char * instead of a
641 const char *. This method is now at least temporarily deprecated
642 in favor of asking Accessibles for their RoleNames directly.
645 Revert to match Accessibility_Value.idl;
649 Change signature of AccessibleValue methods to use double rather
653 * cspi/spi_accessible.c:
654 Changed Accessible_getRole to return an AccessibleRole enum rather
655 than a UTF-8 string. The UTF-8 string can still be obtained via
656 AccessibleRole_getName ().
658 * test/test-simple.c:
659 Add test_action. Small fixup to match API change to Accessible_getRole.
662 Bugfix for get_action_from_servant ().
664 2001-12-11 Michael Meeks <michael@ximian.com>
666 * libspi/libspi.h: remove registry.h and
667 desktop.h, deviceeventcontroller.h
669 * libspi/Makefile.am: remove registry.[ch],
670 desktop.[ch], deviceeventcontroller.[ch]
672 * registryd/Makefile.am: add registry.[ch],
673 desktop.[ch], rename registryd.c to registry-main.c.
674 add deviceeventcontroller.[ch]
676 2001-12-11 Bill Haneman <bill.haneman@sun.com>
679 Replace setenv() call with putenv ().
681 * libspi/component.c:
682 Bugfix in AccessibleComponent_getExtents (),
685 2001-12-11 Michael Meeks <michael@ximian.com>
687 * libspi/image.c (impl_getImageExtents): impl.
688 (spi_image_class_init): upd.
691 (AccessibleImage_getImageDescription): fix daft bug
694 * test/test-simple.c (global_listener_cb): update
695 to only quit if not --poke
696 (main): catch --poke.
697 (validate_accessible): upd. dumping, call test_image
700 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
703 * idl/Accessibility.idl: update all IDL includes.
705 * idl/*.idl - rename to namespace - this sucks, blame
706 mjs' bad decision for oafd.
708 * test/test-simple.c (create_test_window): add more tests.
709 (create_tree): split this out.
710 (validate_accessible): bugfix.
712 2001-12-11 Michael Meeks <michael@ximian.com>
714 * cspi/bonobo/cspi-bonobo-listener.c:
715 (cspi_kestroke_listener_unref),
716 (cspi_event_listener_unref): impl. undoing previous
717 homenous environment - for Bill.
719 * cspi/spi_table.c (long_seq_to_array): use
722 * cspi/spi_main.c: split out all bonoboish bits into
725 * cspi/spi-impl.h: upd. typedefs.
727 * cspi/spi_registry.c: update to lowlevel API,
728 return booleans to indicate success in some places.
730 * cspi/spi_event.c: update to lowlevel API.
732 * cspi/bonobo/Makefile.am: add.
734 * cspi/bonobo/cspi-lowlevel.h: add
736 * cspi/bonobo/cspi-bonobo.c: add
738 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
740 * cspi/Makefile.am: remove spi-listener-impl.[ch],
741 (SUBDIRS): add bonobo, link in the libs.
743 * cspi/spi-util.c: kill this file.
745 * TODO: merge in my bits.
747 2001-12-11 Michael Meeks <michael@ximian.com>
749 * test/test-simple.c (test_value, test_table, main):
750 remove unused variables causing warnings.
752 * configure.in: cleanup checks - require gail.
754 2001-12-11 Bill Haneman <bill.haneman@sun.com>
757 Changed Value interface to use SValue (scalars) rather than
758 assuming all values are floats. This allows floats, doubles,
759 longs, shorts, and unsigned values to be manipulated.
760 Introduced Accessibility:SValue union.
763 Updated to use new API above, and to work correctly with GValues
764 of different types in AtkValue.
767 Updated to use new API above. cspi's API is as yet unchanged.
770 Updated the Value revision action item.
772 2001-12-10 Bill Haneman <bill.haneman@sun.com>
774 * test/test-simple.c:
775 Added test_table (GtkTreeView widget in test window to follow).
776 Un-commented test_value, added GtkRange widget.
777 Added GtkTreeView widget with GtkListStore. It passes regression
778 test but leaks one SPI object for some reason.
781 Fixed bug in impl__set_currentValue.
783 2001-12-10 Michael Meeks <michael@ximian.com>
785 * cspi/spi_text.c: audit for exception handling,
786 tolerating NULL object references safely etc.
788 * cspi/spi_value.c: ditto.
790 * cspi/spi_table.c (AccessibleTable_getSummary),
791 (AccessibleTable_getAccessibleAt),
792 (AccessibleTable_getRowHeader),
793 (AccessibleTable_getColumnHeader),
794 (AccessibleTable_getCaption): fix bugs hidden by
796 (long_seq_to_array): impl.
797 (AccessibleTable_getSelectedRows),
798 (AccessibleTable_getSelectedColumns): use it.
800 2001-12-10 Bill Haneman <bill.haneman@sun.com>
803 Added a TODO list (rough and short for now).
805 * cspi/spi_hyperlink.c:
806 * cspi/spi_hypertext.c:
807 Fixed macro name typos, and remove use of obsolete macro in
808 AccessibleHyperlink_getLink.
811 * cspi/spi_accessible.c:
812 * cspi/spi_application.c:
813 * cspi/spi_component.c:
814 * cspi/spi_selection.c:
817 Documentation fixes (removed return values from ref/unref methods).
819 2001-12-10 Michael Meeks <michael@ximian.com>
821 * cspi/spi_action.c: audit for exception handling,
822 tolerating NULL object references safely etc.
824 * cspi/spi_accessible.c: ditto.
826 * cspi/spi_component.c: ditto.
828 * cspi/spi_editabletext.c: ditto.
830 * cspi/spi_hyperlink.c: ditto.
832 * cspi/spi_hypertext.c: ditto.
834 * cspi/spi_image.c: ditto.
836 * cspi/spi_selection.c: ditto.
838 2001-12-10 Michael Meeks <michael@ximian.com>
840 * configure.in: use cspi/libspi.pc.in instead.
842 * Makefile.am (pkgconfig_DATA): upd. to match.
844 * test/simple-at.c (report_focus_event): kill hacks around
845 bad return values, use putenv not setenv
847 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
848 fire ChildGone - I killed it.
851 (impl_accessibility_component_get_extents): remove
854 * idl/Accessible.idl: kill ChildGone exception.
856 * cspi/*.[ch]: kill int return from ref / unref.
858 * cspi/spi_main.c (cspi_object_add_check): fold into
859 (cspi_object_add): here.
861 * cspi/spi_component.c (AccessibleComponent_getExtents):
862 handle exceptions elegantly.
864 * cspi/spi-private.h (cspi_check_ev_return),
865 (cspi_return_if_fail): impl.
867 * cspi/spi_accessible.c: use extensively.
868 (AccessibleStateSet_equals): add direct compare check.
870 * cspi/spi_selection.c: tolerate NULL objs, and check
871 exceptions before return.
873 * cspi/spi-util.c (cspi_warn_ev): rename to
874 (cspi_check_ev): this & don't pass ev in; no point.
876 2001-12-10 Michael Meeks <michael@ximian.com>
878 * test/test-simple.c: use putenv not setenv
879 (get_environment_vars): more chatty if you're not using
882 * test/simple-at.c: do the setenv so more people see the
885 2001-12-10 Bill Haneman <bill.haneman@sun.com>
888 Changed check of CORBA_environment on notification to be a warning
889 instead of an error for the moment, since we can recover from this
890 error when caused by a queued notification from a dead app.
893 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
894 used by all current implementors of AtkValue), and coerce to
895 CORBA_float. (Proper general case fix may require change to Value.idl).
897 2001-12-09 Bill Haneman <bill.haneman@sun.com>
901 * cspi/spi_accessible.c:
902 Documentation fixes: added user_data params to documentation for
903 listeners and callbacks.
905 * cspi/spi_accessible.c:
906 Changed AccessibleStateSet_compare to return a
907 StateSet rather than return the difference set into a third parameter.
910 2001-12-09 Bill Haneman <bill.haneman@sun.com>
913 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
914 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
918 Remove subdirectory po from SUBDIRS for now.
920 * at-bridge/bridge.c:
921 Beefed up a couple of debug printouts.
922 One-line fix for signal notification name formatting.
924 * libspi/accessible.c:
925 Added assertion to spi_accessible_new ().
927 * libspi/application.c:
928 Put #ifdef qualifiers around a printf.
931 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
933 * registryd/Makefile.am:
935 Replaces use of XML_I18N_MERGE_SERVER_RULE with
936 INTLTOOL_SERVER_RULE macro.
939 Added an event listener for several ATK signals, for
940 testing and debugging. Removed a few g_warnings.
941 Added test output if focussed item implements the Value interface.
943 * test/test-simple.c:
944 Added test_value () function (known not to pass at the moment, so
945 not actually called yet.
947 2001-12-08 Michael Meeks <michael@ximian.com>
949 * at-bridge/bridge.c (bridge_focus_tracker),
950 (emit_eventv): fix the same ref. leak.
951 (register_atk_event_listeners): don't leak.
953 * cspi/spi-listener-impl.c (cspi_event): more
954 protection from client code.
956 * test/test-simple.c (test_desktop): unref the app.
958 * test/Makefile.am: upd. TESTS.
960 * at-bridge/bridge.c (bridge_exit_func): release the registry.
962 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
964 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
966 * cspi/spi_registry.c: constify in strings.
967 (deregisterGlobalEventListenerAll): don't release the ref.
969 * cspi/spi.h: start removing redundant / conflicting
970 gtkdoc comments, making the API readable at a glance :-)
972 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
974 * test/keysynth-demo.c (keysynth_exit, main): upd.
976 * test/simple-at.c (main, simple_at_exit): upd.
978 * test/test-simple.c (unutterable_horror): kill.
979 (utterable_normal_derefs): kill.
980 (main): upd & do a setenv before gtk_init, so that we
981 can use memprof - and to save the pain of remembering
982 this, if we're running under memprof - don't exit.
984 * cspi/spi_main.c (SPI_exit): return exit status
986 (SPI_event_quit): impl.
987 (SPI_event_main): simplify.
988 (cspi_is_gnome_app): kill.
989 (SPI_init): kill isGNOMEapp arg.
991 * at-bridge/bridge.c (register_atk_event_listeners):
992 re-instate the unref.
993 (bridge_exit_func): don't re-activate the registry,
994 protect vs. theoretical re-entry, use the
995 AT_BRIDGE_SHUTDOWN env. var to determine whether to
996 assert a clean shutdown - for regression tests.
998 2001-12-08 Abel Cheung <maddog@linux.org.hk>
1000 * configure.in: Comment out dummy i18n support for now,
1001 otherwise it fails to build.
1002 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
1003 EXTRA_DIST. They are missing in tarball.
1005 2001-12-07 Michael Meeks <michael@ximian.com>
1007 * util/magnifier.c: kill bonobo activation reg. race.
1009 * libspi/component.c
1010 (impl_accessibility_component_get_extents): make it match
1013 * libspi/registry.c (_registry_notify_listeners):
1014 re-remove X headers & reconcile conflicts.
1015 (spi_listener_struct_free): bad conflict resolve.
1016 (impl_accessibility_registry_register_application):
1017 more bad merging fixed.
1018 (impl_accessibility_registry_deregister_application): ditto.
1019 (spi_registry_new): ditto.
1020 (spi_registry_init): don't have an applications field.
1022 [ merge fixups2 branch to here ]
1023 2001-12-07 Michael Meeks <michael@ximian.com>
1025 * test/simple-at.c (report_focus_event),
1026 (report_focussed_accessible): remove g_warning debug.
1028 2001-12-07 Michael Meeks <michael@ximian.com>
1030 * test/test-simple.c (validate_tree): comment out some checks.
1031 (test_desktop): app now not registered idly - horay.
1033 2001-12-07 Michael Meeks <michael@ximian.com>
1035 * cspi/spi_registry.c
1036 (registerAccessibleKeystrokeListener): clean, stop it leaking
1037 great swathes of memory, and device event controller references.
1038 ensure we always pass valid sequences.
1039 (deregisterAccessibleKeystrokeListener): ditto.
1040 (generateKeyEvent): upd.
1042 * at-bridge/bridge.c (bridge_key_listener): handle
1043 registry dead exception gracefully.
1044 (bridge_focus_tracker, emit_eventv): free ev.
1046 * test/simple-at.c (report_focus_event): fix polarity.
1048 * libspi/application.c (notify_listeners): kill the ev
1049 argument, and make sure we init the ev we use.
1050 (spi_application_object_event_listener): split out a chunk
1051 (get_atk_object_ref): here & fixup.
1052 (reverse_lookup_name_for_toolkit_event): make const.
1053 (spi_application_toolkit_event_listener): fixup, kill leaks
1056 * at-bridge/bridge.c (register_atk_event_listeners):
1057 don't unref the noop object - causes grief.
1059 * libspi/registry.c: remove the X headers.
1060 turn off the debug churn.
1062 * libspi/accessible.c (spi_accessible_new_return): only
1063 release the ref if we are supposed to [doh]
1065 * test/simple-at.c (report_button_press, report_focus_event):
1066 guard vs. unexpected exit.
1068 * at-bridge/bridge.c (gtk_module_init): prune printf.
1069 (bridge_exit_func): fix app unref.
1071 * libspi/Makefile.am: don't install registry or desktop.h
1073 * libspi/*.h: update includes.
1075 * libspi/application.h: don't include ourself, or
1076 other redundant headers.
1078 2001-12-06 Michael Meeks <michael@ximian.com>
1080 * libspi/accessible.c
1081 (get_accessible_from_servant): impl.
1082 Upd. all CORBA impl.s to use it killing cut and paste.
1084 * cspi/spi_main.c (cspi_cleanup): guard vs. double
1086 (SPI_init): register atexit cleanup handler here.
1088 2001-12-06 Michael Meeks <michael@ximian.com>
1090 * at-bridge/bridge.c (gtk_module_init): g_error on
1091 activation exception
1093 2001-12-06 Michael Meeks <michael@ximian.com>
1095 * at-bridge/bridge.c (gtk_module_init): some sort of
1096 confusing merge clash - reverted.
1097 (bridge_idle_init): ditto.
1099 * test/test-simple.c (main, utterable_normal_derefs):
1100 merge from Bill - somehow not committed.
1102 2001-12-06 Michael Meeks <michael@ximian.com>
1104 * libspi/value.c (spi_value_class_init): upd.
1105 (spi_value_finalize): kill.
1107 * libspi/table.c (spi_table_finalize): kill.
1108 (spi_table_interface_new): upd.
1109 (spi_table_class_init): upd.
1110 (get_table_from_servant): impl.
1111 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1113 * libspi/selection.c (spi_selection_finalize): kill.
1114 (spi_selection_interface_new): upd.
1115 (spi_selection_class_init): upd.
1116 (get_selection_from_servant): impl.
1117 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1119 * libspi/relation.c (spi_relation_finalize): kill.
1120 (spi_relation_class_init, spi_relation_new): upd
1122 * libspi/image.c (spi_image_finalize): kill.
1123 (spi_image_class_init): upd.
1124 (spi_image_interface_new): upd.
1125 (get_image_from_servant): impl.
1126 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1128 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
1129 (spi_hyperlink_finalize): kill.
1130 (spi_hyperlink_new): upd.
1131 (get_hyperlink_from_servant): impl.
1132 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1134 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
1135 (spi_hypertext_finalize): kill.
1136 (spi_hypertext_class_init): upd.
1137 (get_hypertext_from_servant): impl.
1138 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1140 * libspi/editabletext.c (spi_editable_text_finalize): kill.
1141 (spi_editable_text_interface_new): upd.
1142 (get_editable_text_from_servant): impl.
1143 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1145 * libspi/text.c (get_text_from_servant): impl.
1146 All impls - update to use it killing more cut and paste,
1147 also fix bad string returns on duff args ( a somewhat
1148 impossible case to handle - but hey ).
1149 (spi_text_construct): impl.
1150 (spi_text_interface_new): upd.
1151 (spi_text_object_finalize): kill.
1153 * libspi/component.c
1154 (accessibility_component_object_finalize): kill.
1155 (spi_component_class_init): upd.
1156 (get_component_from_servant): impl. helper to kill cut & paste.
1157 (impl_accessibility_component_contains):
1158 (impl_accessibility_component_get_accessible_at_point):
1159 (impl_accessibility_component_get_position):
1160 (impl_accessibility_component_get_extents):
1161 (impl_accessibility_component_get_mdi_z_order):
1162 (impl_accessibility_component_get_layer):
1163 (spi_component_interface_new): upd.
1165 * libspi/action.c (spi_action_finalize): kill.
1166 (spi_action_class_init): upd. inherit from SpiObject.
1167 (spi_action_interface_new): upd.
1168 (get_action_from_servant): impl. helper to reduce cut & paste.
1169 (impl_getKeyBinding, impl_getName, impl_doAction),
1170 (impl_getDescription): Use it everywhere.
1172 * cspi/spi_main.c (get_live_refs): a pointer hash.
1173 (spi_object_hash, spi_object_equal): comment out.
1174 There are issues with CORBA object hashing that need
1177 * libspi/application.c (spi_application_init),
1178 (spi_application_new): upd.
1180 * libspi/accessible.c (spi_accessible_object_finalize): kill.
1181 (spi_accessible_class_init): upd.
1182 s/accessible/object/ in epv methods.
1184 2001-12-05 Bill Haneman <bill.haneman@sun.com>
1186 * at-bridge/bridge.c:
1187 Reorder the bridge initialization into the bridge gtk_module_init,
1188 an immediate call to bridge_register_app, and an idle_add for
1189 register_atk_event_listeners (the only code that *must* wait until
1190 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
1191 the activation, creates the application's Accessible object, and
1192 queues the bridge_idle_init function. Restored call to
1193 Accessibility_Registry_deregisterApplication().
1194 Prior to making this call we obtain a new reference to the
1195 registry, which is a temporary hack that helps us handle apps that
1196 shut down the bonobo mainloop before we get there.
1198 * libspi/registry.c:
1199 Fix string leakage in debug block, and don't segv if a an app
1200 dies before its event notifications have been propagated.
1203 Modify cspi_check_ev() to call g_warning() rather than g_error(),
1204 as stopgap measure until we get proper exception handling when
1205 objects die during or before interrogation.
1209 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
1210 Also changed default value of is_gnome_app to TRUE.
1213 * test/keysynth-demo.c:
1214 Changed use of SPI_init and SPI_event_main to reflect API change above.
1217 Made report_focus_event check the warning value from getName
1218 before reporting on focussed accessible; simplifies handling of
1219 notifications from dead objects.
1221 * test/test-simple.c: (Changes not in this patch since source is
1224 2001-12-05 Michael Meeks <michael@ximian.com>
1226 * registryd/registryd.c (main): protect against
1227 bonobo-activation startup race condition.
1229 * cspi/spi_main.c (cspi_object_add_check): cope
1230 with the exception elegantly.
1232 * idl/Accessible.idl: decl. ChildGone
1234 * libspi/desktop.c (spi_desktop_dispose): impl.
1235 (spi_desktop_class_init): upd.
1236 (spi_desktop_add_application),
1237 (spi_desktop_remove_application),
1238 (abnormal_application_termination): impl.
1239 (impl_desktop_get_child_at_index): re-impl.
1242 (impl_accessibility_registry_deregister_application),
1243 (impl_accessibility_registry_register_application):
1244 kill excessive debug clutter.
1246 * test/test-simple.c (test_misc): test some NULL
1247 tolerance. (main): upd.
1249 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
1250 implements no interfaces - so let's not crash.
1252 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
1254 * libspi/accessible.c (spi_accessible_new_return): impl.
1255 helper to calm the cut and paste, to cope with
1256 NULL AtkObjects effectively and efficiently, and to kill
1257 the referencing bugs.
1259 * libspi/table.c (impl_getAccessibleAt),
1260 (impl_getRowHeader, impl_getColumnHeader): upd.
1262 * libspi/hyperlink.c (impl_getObject): upd.
1264 * libspi/accessible.c
1265 (impl_accessibility_accessible_get_child_at_index): upd.
1267 * libspi/component.c
1268 (impl_accessibility_component_get_accessible_at_point): upd.
1270 * test/test-simple.c (test_editable_text, test_text): impl.
1273 * cspi/spi_editabletext.c
1274 (AccessibleEditableText_insertText): constify.
1276 * test/test-simple.c (focus_me): make more robust.
1278 * libspi/accessible.c: remove some printfs in methods that
1279 we test and work fine, so we can get a clean tree dump.
1281 * test/test-simple.c (validate_accessible),
1282 (validate_tree): make tree dumping pretty too.
1284 * at-bridge/bridge.c (bridge_signal_listener): upd. so
1285 it builds without debug on.
1287 * test/test-simple.c (validate_accessible): fix the most
1290 * cspi/spi_main.c (spi_object_release): leave the nicely
1291 blanked memory around if in debug mode.
1293 * cspi/spi-listener-impl.c (cspi_event): use add_check.
1295 [committed to fixups2]
1296 2001-12-05 Michael Meeks <michael@ximian.com>
1298 * libspi/editabletext.c
1299 (spi_editable_text_class_init): g_type_class_peek_parent,
1300 not interface peek - so we finalize cleanly.
1302 * libspi/accessible.c (spi_accessible_new): kill debug.
1304 * test/test-simple.c (validate_accessible): fix ref.
1305 leak, print strings before freeing them; sigh, comment a
1306 chunk out due to strangeness.
1307 (validate_tree): unref the child after use.
1309 * cspi/spi_component.c (AccessibleComponent_getLayer):
1310 add missing break statement, switch on zlayer not the
1311 uninitialized retval.
1313 * cspi/spi_main.c (cspi_object_add): add assert, local ref
1314 before (possibly re-entering) remote unref.
1316 * test/simple-at.c (main): unref the desktop.
1318 * cspi/spi_accessible.c (cspi_accessible_is_a): move
1321 * cspi/spi_main.c (cspi_accessible_is_a): here to
1322 isolate bonobo API usage more.
1324 * libspi/registry.c (impl_accessibility_registry_register_application):
1325 prune bogus comment.
1327 2001-12-04 Michael Meeks <michael@ximian.com>
1329 * test/test-simple.c (validate_tree): upd.
1330 IndexInParent check to make it more lucid.
1331 (validate_accessible): dump the tree.
1333 * libspi/accessible.c (de_register_public_ref),
1334 (get_public_refs): impl.
1335 (spi_accessible_new): make more efficient & intuitive.
1336 Now IndexInParent check works.
1338 2001-12-04 Michael Meeks <michael@ximian.com>
1340 * cspi/spi-util.h: remove.
1342 * cspi/spi.h: move SPI_freeString here
1344 * libspi/component.c (impl_accessibility_component_get_layer):
1346 (impl_accessibility_component_get_mdi_z_order): ditto,
1347 return -1 on error - is this ok ?
1349 * test/test-simple.c (test_application): impl.
1351 * cspi/spi_accessible.c (Accessible_getApplication),
1352 (Accessible_isApplication): impl.
1354 * libspi/registry.c (spi_listener_struct_free): release
1355 the CORBA reference too.
1357 * libspi/accessible.c
1358 (impl_accessibility_accessible_get_parent): fix ref leak.
1360 * libspi/registry.c (spi_registry_new): make the registry
1361 immortal - we don't want it to go away ever.
1363 * libspi/application.c
1364 (spi_accessible_application_finalize): impl. cleanup.
1366 * cspi/spi_registry.c
1367 (deregisterGlobalEventListenerAll),
1368 (deregisterGlobalEventListener),
1369 (deregisterAccessibleKeystrokeListener): fix ref leak.
1371 * cspi/spi_main.c (SPI_init): remove redundant ref.
1373 * test/test-simple.c (unutterable_horror): impl. to force a
1378 (impl_accessibility_registry_deregister_application): release
1379 the application when we de-register it.
1381 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
1382 until we have the infastructure to get it right.
1384 2001-12-03 Michael Meeks <michael@ximian.com>
1386 * libspi/Makefile.am: only build eventlistener.[ch]
1388 * libspi/accessible.c
1389 (impl_accessibility_accessible_get_child_at_index): don't leak.
1391 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
1392 before we hit the idle handler.
1394 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
1395 debugging than exit.
1397 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
1399 * libspi/listener.c (impl_notify_event): check source
1400 not NIL before unref.
1402 * libspi/registry.c (impl_registry_notify_event): ditto.
1404 * libspi/eventlistener.c
1405 (impl_accessible_event_notify_event): unref the source.
1407 * libspi/accessibleeventlistener.c
1408 (impl_accessible_event_notify_event): unref the source.
1410 * idl/Event.idl: remove 'hash_id' attribute - of no
1413 * libspi/application.c (notify_listeners): upd list
1415 (spi_application_object_event_listener),
1416 (spi_application_toolkit_event_listener): upd to do correct
1420 (_registry_notify_listeners): update.
1421 (parse_event_type): this method also leaks like a sieve.
1422 (impl_accessibility_registry_deregister_global_event_listener):
1423 fix ETYPE_WINDOW case.
1425 * libspi/application.c
1426 (impl_accessibility_application_register_object_event_listener):
1429 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
1431 * libspi/hypertext.c (impl_getLink): ditto.
1433 * cspi/spi_main.c (cspi_object_add): remove
1434 bogus CORBA_Object_duplicate.
1436 * cspi/spi-listener-impl.c (cspi_event): dup/ref
1439 * cspi/spi_accessible.c
1440 (Accessible_getRelationSet): fix leak / referencing issue.
1442 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
1443 (cspi_object_add, cspi_object_unref): upd.
1444 (spi_object_release, get_live_refs): impl.
1445 (cspi_cleanup): simplify.
1447 * *.[ch]: s/boolean/SpiBoolean/
1449 * cspi/spi_accessible.c (role_names): actualy order so it
1450 corresponds with the enum !
1452 * test/test-simple.c (test_roles): check some role strings
1453 vs. enums to detect offset errors.
1455 2001-12-01 Michael Meeks <michael@ximian.com>
1457 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
1459 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
1461 (Accessible_getChildAtIndex): use cspi_add_check so we
1462 check the ev before using a (possibly) invalid value.
1464 * libspi/accessible.c
1465 (impl_accessibility_accessible_get_parent): don't segv
1468 * at-bridge/bridge.c (gtk_module_init): upd.
1469 (bridge_property_event_listener): don't leak strings
1471 (bridge_state_event_listener),
1472 (bridge_property_event_listener): don't use a static
1473 buffer in case of recursive event emission &
1474 re-enterancy - split out the swathe of cut and paste
1476 (emit_eventv): and fix 2 ref leaks here & comply to the
1478 (bridge_register_app): rename to
1479 (bridge_idle_init): this and kill arg parsing, split
1480 various inits & bonobo-activation registration to module
1481 init time, kill referencing error.
1482 (bridge_exit_func): fix the same leak.
1483 (bridge_focus_tracker): don't leak event structures
1485 (bridge_signal_listener): more leakage and cut & paste
1487 (bridge_key_listener): return the result - FIXME is
1488 this polarity correct ?
1489 (accessibility_keystroke_from_atk_key_event): rename
1490 (accessibility_init_keystroke_from_atk_key_event): and stop
1492 (gtk_module_init): return a value - not that it is checked by
1494 (bridge_key_listener): register my horror at casting between
1495 IDL defined structs.
1496 (bridge_get_registry): kill - not used.
1498 * cspi/spi_accessible.c (Accessible_getRole): make return const.
1500 * test/test-simple.c (test_roles): impl.
1501 (test_desktop, validate_accessible, validate_tree): impl.
1503 * cspi/spi_accessible.c (role_names): fixup bogus
1504 MAX_ROLES setup, make constants const for efficient linkage
1505 (AccessibleRole_getName): conform to coding style, make
1508 2001-11-30 Michael Meeks <michael@ximian.com>
1510 * cspi/spi.h: add missing prototype.
1512 * libspi/registry.c (spi_listener_struct_new): fix sig.
1514 * test/Makefile.am: add test-simple
1516 * test/test-simple.c: add
1518 * test/test.sh: add.
1520 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
1522 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
1523 do it straight - since otherwise we often get an activation race.
1525 [ work before Bill duplicated a chunk of it ... ]
1526 2001-11-30 Michael Meeks <michael@ximian.com>
1528 * libspi/keystrokelistener.c
1529 (spi_keystroke_listener_class_init): fixup arg
1532 * libspi/eventlistener.c
1533 (spi_event_listener_class_init): ditto.
1535 * tests/test.sh: add.
1537 * cspi/spi-listener-impl.h: update macros.
1539 * cspi/spi-listener-impl.c
1540 (cspi_event_listener_remove_callback): add
1541 correct pre-conditions.
1543 * cspi/spi_main.c (SPI_exit): guard vs. double
1544 exits, exit the mainloop nicely.
1545 (SPI_event_main): make more sense.
1546 (SPI_init): move the atexit evilness here so we
1547 always do it (yuck).
1548 (SPI_event_main): upd.
1550 * test/simple-at.c: update for listener changes.
1552 * registryd/registryd.c (main): prune kruft.
1554 * libspi/libspi.h: upd.
1556 * libspi/eventlistener.[ch]: rename broken macros.
1558 * libspi/accessibleeventlistener.[ch]: remove.
1560 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
1562 * test/test-simple.c: Add - automated tests.
1564 * cspi/spi-listener-impl.c (cspi_event),
1565 (cspi_key_event): add user_data to invoke.
1566 (cspi_keystroke_listener_finalize): impl.
1567 (cspi_keystroke_listener_class_init): upd.
1570 (createAccessibleEventListener),
1571 (AccessibleEventListener_addCallback),
1572 (createAccessibleKeystrokeListener),
1573 (AccessibleKeystrokeListener_addCallback): upd.
1575 * libspi/deviceeventcontroller.c
1576 (spi_device_event_controller_check_key_event): add public proto.
1579 (impl_accessibility_registry_deregister_global_event_listener):
1580 always init listeners.
1581 (_registry_notify_listeners): yes it is.
1583 * cspi/spi-listener-impl.c (cspi_key_event):
1585 (cspi_event_listener_finalize): impl.
1586 (cspi_event_listener_class_init): hook up.
1587 (event_handler_new, event_handler_free),
1588 (event_list_remove_by_callback): impl.
1589 (cspi_event_listener_remove_callback),
1590 (cspi_keystroke_listener_remove_callback),
1591 (cspi_keystroke_listener_add_callback),
1592 (cspi_event_listener_add_callback): upd.
1594 * libspi/keystrokelistener.c
1595 (keystroke_listener_object_finalize): kill
1596 (spi_keystroke_listener_class_init): upd.
1597 (spi_keystroke_listener_add_callback),
1598 (spi_keystroke_listener_remove_callback): kill,
1600 (impl_key_event): prune drasticaly.
1602 * libspi/eventlistener.c
1603 (spi_event_listener_add_callback),
1604 (spi_event_listener_remove_callback): kill, use
1606 (impl_accessible_event_notify_event): upd.
1607 (spi_event_listener_object_finalize): remove.
1609 * libspi/Makefile.am: use eventlistener.[ch]
1611 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1613 * libspi/registry.c (_registry_notify_listeners):
1614 Changed listener loop iteration to use preferred convention.
1615 Got rid of string memory leaks caused be calling g_strconcat
1616 inside function calls.
1618 * libspi/registry.c (parse_event_type):
1619 Stopped g_strconcat memory leaks, free the g_strsplit return,
1620 g_strdup the split pieces when used, etc.
1622 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1625 Change method 'compare' to return a 'difference set' rather than
1626 taking a StateSet as an out parameter (more Java-friendly).
1628 * idl/Accessible.idl:
1629 Added CORBA struct 'BoundingBox', to faciliate API changes below:
1631 * idl/Component.idl:
1633 Changed methods 'getExtents' and 'getImageExtents' in these
1634 interfaces to return a BoundingBox structure.
1635 (getPosition and getSize are redundant and possibly should be
1636 removed, rather than creating a corresponding Point struct.)
1638 * cspi/spi_component.c:
1639 Modify implementation of getExtents to reflect the above IDL
1644 Add (missing) AccessibleImage_getExtents () API.
1646 * docs/reference/cspi/at-spi-cspi-sections.txt:
1647 Added AccessibleImage_getImageExtents () to docs.
1649 2001-12-03 Bill Haneman <bill.haneman@sun.com>
1651 * idl/Component.idl:
1652 Added two methods, getLayer () and getMDIZOrder (), to reflect
1653 the new ATK methods atk_object_get_layer and
1654 atk_object_get_mdi_z_order. (Which arguably should be part of the
1655 AtkComponent API and AtkObject). Also added an enum,
1656 ComponentLayer, for the first method's return value.
1658 * libspi/component.c:
1659 Added implementations for these methods.
1661 * cspi/spi_component.c:
1663 Added cspi binding methods for above,
1664 AccessibleComponent_getLayer() and
1665 AccessibleComponent_getMDIZOrder().
1666 Added cspi enum 'AccessibleComponentLayer'.
1668 * docs/reference/cspi/at-spi-cspi-sections.txt:
1669 Added above methods to docs.
1673 Changed typedef for 'boolean' type (and all references to it) to
1674 SPIBoolean, to avoid keyword clashes with C++.
1677 Changed usages of 'boolean' to SPIBoolean.
1679 * test/keysynth-demo.c:
1680 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
1681 app), except where SPIBoolean is required by the callbacks API.
1683 2001-12-02 Bill Haneman <bill.haneman@sun.com>
1685 * cspi/spi_registry.c:
1686 Removed obsolete X event loop for passive keygrabs (which now
1689 * registryd/registryd.c:
1690 Removed unnecessary call to gdk_init() [cruft]. This also allows
1691 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
1694 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1696 * docs/reference/cspi:
1697 Included docs for SPI_freeString in generated documentation.
1700 Renamed spi_freeString to SPI_freeString, for consistency. Added
1701 documentation for this function.
1704 Renamed spi_freeString to SPI_freeString, for consistency.
1705 Removed obsolete method declaration string_from_corba_string.
1707 * test/keysynth-demo.c:
1708 Small tweak to comments.
1711 Stopped leaking the strings returned from CSPI.
1713 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1715 Merged Michael's branch (see his ChangeLog entries below).
1717 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
1718 bridge is alive, release on exit.
1720 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
1721 Fix type check macro.
1724 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
1727 Added is_gnome_app static, and method cspi_is_gnome_app(),
1728 so we can call the appropriate shutdown routine at exit in SPI_exit.
1730 * cspi/spi_main.c (cspi_object_ref):
1731 Duplicate the corba object passed in, since we're keeping it around.
1733 * cspi/SPI_exit.c, cspi_cleanup:
1734 Moved the releasing of the live refs to its own function, so we
1735 can put it in g_atexit (). Call the appropriate shutdown API
1736 depending on whethe calling client is a gnome app or not
1737 (bonobo_main_quit or CORBA_ORB_shutdown).
1739 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
1740 Unref the listener when this method is called, after
1741 deregistration. Updated the API docs to note this behavior.
1743 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
1744 Bugfixes: Ref the bonobo object when returning a parent or child
1745 reference, or an AccessibleRelation. Generally made sure
1746 BonoboObject refcount is incremented whenever we return an
1749 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
1750 Fixed typo/bug in signal declaration.
1752 * libspi/accessibleeventlistener.h:
1755 * libspi/application.c (spi_application_new):
1756 Fixed leak in initialization.
1759 Remembered to increment bonobo-object refcount when returning
1760 children (applications) from desktop object.
1761 Added (empty) finalize method.
1763 * libspi/deviceeventcontroller.c:
1764 Hold a ref to listeners inside DEControllerKeyListeners.
1765 Added dec_key_listener_free() method. Use prepend instead of
1766 append in key_listener list. Fixed some refcount madness and
1767 leaks in the listener registration/deregistration - deregistration
1768 now calls dec_key_listener_free() on listeners, and on the
1769 temporarily constructed dec_key_listener() used to perform the search/match.
1771 * libspi/hypertext.c (spi_hypertest_finalize):
1772 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
1773 class. Also fixed spi_hypertext_interface_new() and
1774 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
1776 * libspi/hypertext.h:
1777 Removed pointless and duplicate AtkObject pointer from
1780 * libspi/keystrokelistener.c:
1781 Fixed incorrect type of keystroke_listener_parent_class,
1782 renamed keystroke_listener_object_finalize to
1783 spi_keystroke_listener_object_finalize.
1784 Fixed typo in signal declaration
1785 (spi_keystroke_listener_class_init).
1787 * libspi/registry.c:
1788 Added funcsions spi_listener_struct_new() and
1789 spi_listener_struct_free() to help with memory management issues.
1790 We also now use these methods instead of gnew + poking stuff into
1791 the struct, and to decrement listener counts/free the listeners
1792 when deregistering them.
1793 Fix more refcount bugs in getDesktop() and
1794 getDeviceEventController().
1797 De-ref the desktop after enumerating the applications. Explicitly
1798 decrement the refcounts on the created listeners on exit (using
1799 _unref for keystroke listeners, and via the
1800 deregisterGlobalEventListenerAll command for other event
1803 2001-11-27 Michael Meeks <michael@ximian.com>
1805 * cspi/spi-listener.h: fixup enum.
1807 2001-11-27 Michael Meeks <michael@ximian.com>
1809 * cspi/spi-listener-impl.c (cspi_event_listener_new),
1810 (cspi_keystroke_listener_new): Use the cspi variants.
1812 2001-11-26 Michael Meeks <michael@ximian.com>
1814 * test/keysynth-demo.c: fix 2 compile warnings, missing
1817 * test/simple-at.c (report_focussed_accessible),
1818 (report_focus_event, report_button_press),
1819 (check_property_change, is_command_key),
1820 (report_ordinary_key_event, report_command_key_event): upd.
1822 * util/mag_client.h: include pre-requisites.
1824 * libspi/accessibleeventlistener.c
1825 (spi_event_listener_object_finalize): free any lingering
1828 * libspi/keystrokelistener.c
1829 (keystroke_listener_object_finalize): ditto.
1831 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
1832 callbacks, with cspi types.
1834 * cspi/spi_event.c (createAccessibleEventListener): chain to
1835 (AccessibleEventListener_addCallback): here.
1836 (createAccessibleKeystrokeListener): chain to
1837 (AccessibleKeystrokeListener_addCallback): here.
1839 * libspi/keystrokelistener.c
1840 (spi_keystroke_listener_class_init): add signal.
1841 (impl_key_event): emit the event.
1842 (boolean_handled_accumulator): impl.
1843 (marshal_BOOLEAN__POINTER): add, gack.
1845 * libspi/accessibleeventlistener.c
1846 (spi_event_listener_class_init): add signal.
1847 (impl_accessible_event_notify_event): emit the signal &
1848 make the loop efficient.
1849 (spi_event_listener_add_callback): prepend the callback.
1851 * libspi/accessibleeventlistener.h: add an 'event' signal,
1852 decl type on callback.
1854 * libspi/keystrokelistener.h: ditto.
1856 * cspi/spi-listener.h: make methods typesafe and
1857 make them use the new event typedefs.
1859 * test/simple-at.c (report_focussed_accessible):
1860 include mag_client.h
1861 Use *(void *)text_interface not the other thing.
1863 * configure.in: add gtk to registryd bits - since we use
1866 * util/magnifier.c: include libbonobo.h
1868 2001-11-25 Bill Haneman <bill.haneman@sun.com>
1870 * test/keysynth-demo.c:
1871 Turned this into a simple scanning keyboard, to demonstrate the
1872 use of g_timeout_add () as a means of creating timers for
1873 scanning, and the use of GtkStyle for visually indicating when
1874 virtual keyboard elements are selected.
1876 keysynth-demo now listens to any keyboard keys with zero-valued
1877 keycodes (i.e. 'unused' keys) and interprets them as
1880 Reworked the shiftlatch code so that shift-down state isn't held
1881 for long periods (it's only synthesized immediately prior to
1882 the keysynth event it's modifying). Note that shiftlatch in this
1883 demo is a convenience, not intended to take the place of AccessX
1884 which is the better choice for getting 'sticky' modifier keys.
1886 * libspi/deviceeventcontroller.c:
1887 * at-bridge/bridge.c:
1888 * cspi/spi_registry.c:
1889 Removed some debug print stuff, and put other verbosity in #ifdef
1894 Implemented some more of the magnifier IDL for the simple
1895 magnifier: namely, getZoomRegionParams.
1896 Added mag_x and mag_y members to MagnifierData struct, aid of this
1898 Added GtkWindow::realize signal handler to magnifier, to keep it
1899 from receiving keyboard focus from the WM.
1901 2001-11-23 Mark McLoughlin <mark@skynet.ie>
1903 * cspi/spi-private.h: my guess at what michael forgot
1904 before he ran off to NZ :-)
1906 2001-11-23 Michael Meeks <michael@ximian.com>
1908 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
1909 comment out non existant method invoke so we link.
1911 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
1912 use bonobo_exception_get_text for more friendly warnings.
1914 * cspi/spi.c (Obj_Add): move into spi_main & rename
1915 spi_object_add; kill spi.c
1917 * cspi/spi_registry.c
1918 (deregisterGlobalEventListener),
1919 (deregisterGlobalEventListenerAll),
1920 (registerGlobalEventListener): fix exception leaks.
1922 * cspi/spi_main.c (spi_exception): impl. helper, so we
1923 don't leak exceptions.
1925 * cspi/spi_selection.c
1926 (AccessibleSelection_deselectSelectedChild): return the
1929 * cspi/spi_main.c (spi_ev): impl; hack - gack.
1930 (spi_registry): ditto.
1931 (SPI_init): guard against double inits.
1933 * cspi/*.c: use spi_ev (), and spi_registry () where
1934 appropriate - a temporary hack until we have something
1935 better. Use spi_object_add
1937 2001-11-22 Michael Meeks <michael@ximian.com>
1939 * cspi/Makefile.am: re organise, install the headers.
1941 * cspi/*.h: add G_BEGIN/END_DECLS
1943 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1946 Added non-preemptive keylistener for key events with no modifiers
1947 and shift-only modifier.
1949 * libspi/keystrokelistener.c:
1950 Removed some verbose diagnostics printout.
1952 * cspi/spi_registry.c:
1953 Fixed a bug that caused all key listeners to be registered as
1956 * libspi/deviceeventcontroller.c:
1957 Fixed bug that caused XGrabKey (preemptive key grab) to be called
1958 for non-preemptive key masks.
1961 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1963 * docs/reference/idl/at-spi-idl-docs.sgml:
1964 * docs/reference/idl/at-spi-idl-sections.txt:
1965 * docs/reference/idl/at-spi-idl-overrides.txt:
1966 Added missing files.
1968 * docs/reference/Makefile.am:
1969 removed idl from SUBDIRS until we can figure a way to get gtk-doc
1970 to scan the IDL files :-(
1975 Added .cvsignore files.
1977 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1979 * libspi/deviceeventcontroller.c:
1980 * libspi/keystrokelistener.c:
1982 * cspi/spi_registry.c:
1983 Added filters for KeySets, KeyEventSeq, and event types to key
1984 event dispatching, so listeners should only receive those events
1985 that they requested :-)
1987 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1992 * docs/reference:Makefile.am:
1993 * docs/reference/cspi:
1994 * docs/reference/cspi:Makefile.am:
1995 * docs/reference/cspi:tmpl:
1996 * docs/reference/cspi:tmpl:*.sgml:
1997 * docs/reference/idl:
1998 * docs/reference/idl:Makefile.am:
1999 * docs/reference/idl:at-spi-idl-sections.txt:
2000 * docs/reference/idl:at-spi-idl-docs.sgml:
2001 * docs/reference/idl:tmpl:
2002 * docs/reference/idl:tmpl:*.sgml:
2004 Restructured docs directory to allow separate 'reference' docs
2005 section, and forked idl and cspi docs. Added the sgml template
2006 files to CVS. Added the first sections/structural sgml for the
2009 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
2011 * configure.in, libspi/Makefile.am: find libXtst.
2013 2001-11-21 Michael Meeks <michael@ximian.com>
2015 * test/accessx-gui.c: s/spi_value/value/ - doh.
2017 * libspi/base.[ch]: add.
2019 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2021 * idl/Accessible.idl:
2022 * idl/Application.idl:
2025 Started gtk-doc cleanup on IDL.
2027 * libspi/deviceeventcontroller.c:
2028 Added and connected non-preemptive key notification from the
2029 toolkits (in addition to the pre-emptive support from XServer
2030 which we had before, but which causes 'focus flashing'). Filters
2031 are presently limited to key modifiers and global/non-global,
2032 KeySets are presently ignored, as are KeyEvent masks.
2034 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
2035 structs into the persistant structure rather than just storing
2036 pointers to things that might not persist across servant
2039 The XGrabKey call now does async keygrabs, because synchronous
2040 ones were deadlocking with GDK_event code in a very nasty way.
2042 Added boolean to internal method notify_keylisteners, to indicate
2043 whether the event came from the 'toolkit source' or the 'global
2044 (XServer) source' - this is used in the notification process to
2045 determine which listeners to send the event to.
2047 deviceeventcontroller.c is now warning-free.
2049 * libspi/registry.c:
2050 Fixed regression in application de-registration.
2051 Also fixed some really brain-dead weirdness having to do with
2052 event dispatching - event structs are now duplicated before being
2053 re-marshalled in the dispatch to listeners. This also fixes a
2054 Solaris build problem.
2057 2001-20-11 Michael Meeks <michael@ximian.com>
2060 (impl_accessibility_registry_deregister_global_event_listener):
2063 * libspi/deviceeventcontroller.c
2064 (spi_device_event_controller_check_key_event): return
2065 FALSE on no virtual method.
2067 * libspi/*..h: make includes work on a correctly pathed install.
2069 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
2071 * libspi/application.h: kill unused ( and whacked out )
2072 gboolean *spi_application_set_id (AtkObject *app, long id);
2074 2001-20-11 Michael Meeks <michael@ximian.com>
2076 * libspi/*.[ch]: further convert to bonobo's type func
2077 macros, remove redundnant casts etc.
2079 * libspi/text.c s/accessibility_text/spi_text/g,
2080 re-order to de-cruft.
2082 * libspi/hypertext.c: re-order to kill a huge slew
2083 of redundant forward decls.
2085 * libspi/relation.c: ditto.
2087 * libspi/image.c: ditto.
2089 * */.cvsignore: update
2091 2001-20-11 Michael Meeks <michael@ximian.com>
2093 * libspi/deviceeventcontroller.c
2094 (_controller_register_with_devices): use g_getenv,
2095 kill stdlib.h include.
2097 * libspi/keystrokelistener.c
2098 (spi_keystroke_listener_get_type): kill
2099 (spi_keystroke_listener_class_init),
2100 (spi_keystroke_listener_init): rename to this.
2102 * libspi/text.c (impl_getAttributes): fix warning / bug.
2104 * libspi/*.[ch]: more headers, includes and over commenting.
2106 2001-20-11 Michael Meeks <michael@ximian.com>
2108 * libspi/*.[ch]: fixup headers, includes and over commenting.
2110 * libspi/image.c (impl__get_imageDescription): const
2111 correctness warning fix. remove redundant casting.
2113 * libspi/table.c (impl_getRowDescription): ditto.
2114 (impl_getColumnDescription): ditto.
2116 * libspi/libspi.h: add.
2118 2001-19-11 Michael Meeks <michael@ximian.com>
2120 * libspi/editabletext.c (impl_setAttributes): fix warnings.
2122 * libspi/component.c (accessibility_component_get_type):
2123 rename to (spi_component_get_type): and macroify.
2124 (accessibility_component_init): rename to
2125 (spi_component_init): this
2126 (accessibility_component_class_init): rename to
2127 (spi_component_class_init): this
2129 * libspi/action.c (spi_action_get_type): kill, use the macro.
2131 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
2134 * libspi/application.c (spi_application_object_event_listener),
2135 (impl_accessibility_application_register_object_event_listener):
2136 warning fixes / const understanding updates.
2138 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
2141 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2143 * libspi/spi_accessible.c: Added docs and C bindings for
2144 AccessibleStateSet. (No implementations yet). Documentation
2145 coverage for C bindings now 100%. Made docs for event listeners
2150 boolean notifyListenersSync (in DeviceEventListener listener,
2151 in DeviceEvent event);
2153 oneway void notifyListenersAsync (in DeviceEventListener listener,
2154 in DeviceEvent event);
2156 Added DeviceEventListener and DeviceEvent structs (may deprecate
2157 KeyStroke and KeystrokeListener in favor of this generic
2158 event/listener framework for devices).
2160 * libspi/deviceeventcontroller.c:
2162 Changed some key listener code to take masks, etc., and paved the
2163 way for integration of toolkit/non-preemptive key events. Changed
2164 signatures of some internal methods.
2166 * at-bridge/bridge.c:
2167 Fixed regression connecting to interface signals, apparently
2168 caused by GTK+ changes.
2170 Added an internal bridge_state_listener to deal with
2171 property-change:accessible-state signals.
2173 Changed the key_listeners GList to store structs (including masks,
2174 etc.) instead of just CORBA_Objects (required for full
2175 implementation of key listener API).
2177 Connected the bridge to all currently supported Atk signals.
2178 Events now supported:
2179 object:property-change
2180 object:property-change:accessible-name
2181 object:property-change:accessible-state
2182 object:property-change:accessible-description
2183 object:property-change:accessible-parent
2184 object:property-change:accessible-value
2185 object:property-change:accessible-role
2186 object:property-change:accessible-table-caption
2187 object:property-change:accessible-table-column-description
2188 object:property-change:accessible-table-column-header
2189 object:property-change:accessible-table-row-description
2190 object:property-change:accessible-table-row-header
2191 object:property-change:accessible-table-summary
2192 object:children-changed
2193 object:visible-data-changed
2194 object:selection-changed
2195 object:text-selection-changed
2197 object:text-caret-moved
2199 object:row-reordered
2201 object:column-inserted
2202 object:column-reordered
2203 object:column-deleted
2204 object:model-changed
2206 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2208 * libspi/hyperlink.c,h:
2209 Fixed some broken stuff in hyperlink.
2211 * libspi/relation.h:
2212 * libspi/relation.c:
2213 * cspi/spi_accessible.c:
2214 Initial implementations of AccessibleRelation methods, and docs.
2216 * libspi/accessible.c:
2217 Fixed a bug that caused SEGV if an accessible
2218 object's description is NULL, and a client
2219 requests it. An empty string is now returned.
2221 * cspi/spi_editabletext.c:
2222 * cspi/spi_hypertext.c:
2224 * cspi/spi_hyperlink.c:
2228 Doc coverage now 95%.
2230 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2232 One last namespacing revision:
2233 * libspi/accessibleeventlistener.[ch]:
2234 Renamed SpiAccessibleEventListener to SpiEventListener,
2235 (no need for two namespaces ;-)
2237 And lots of documentation fixes:
2239 * docs/at-spi-docs.sgml:
2240 Fixed 'underscore vs. hyphen' bug that was preventing
2241 the gtk-doc API docs from being automatically generated.
2244 * cspi/spi-listener.h
2246 * cspi/spi_accessible.c
2248 * cspi/spi_application.c
2249 * cspi/spi_component.c
2250 * cspi/spi_editabletext.c
2252 * cspi/spi_hypertext.c
2254 * cspi/spi_registry.c
2255 * cspi/spi_selection.c
2259 * docs/at-spi-docs.sgml
2260 * docs/at-spi-sections.txt
2262 Added and fixed up gtk-doc documentation in cspi.
2264 Interfaces now (fully) documented (subject to revision and enhancement):
2266 Event Listener Support
2268 AccessibleApplication
2272 AccessibleEditableText
2279 AccessibleRelationSet
2284 2001-14-11 Bill Haneman <bill.haneman@sun.com>
2286 * at-bridge/bridge.c:
2287 Initial work for toolkit-level key snooper connection by bridge.
2292 New typedefs and fixes to support new namespacing, and cleaner
2293 separation of cspi bindings from libspi bonobo implementation.
2294 Removed inconsistent and extraneous Spi* namespace prefix that
2295 had crept into cspi headers.
2296 Lots of comment fixes that sed had missed.
2298 * cspi/spi-roletypes.h:
2299 * cspi/spi-statetypes.h:
2300 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
2301 to AccessibleRoleType.
2303 * libspi/accessibleeventlistener.h:
2304 Fixed minor namespacing weirdness.
2306 * libspi/deviceeventcontroller.c:
2307 Reordered some internal API for device listeners.
2308 Changed the key registry final boolean to 'is_system_global'
2309 rather than 'is_synchronous', which is more descriptive of its
2311 Added spi_device_event_controller_new().
2312 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
2314 * libspi/keystrokelistener.[ch]:
2315 Namespaced KeystrokeListener to SpiKeystrokeListener.
2316 Changed uses of keymasks to use SPI_ prefix, and did other
2319 * libspi/keymasks.h:
2320 Namespaced keymask constants with SPI_ prefix.
2322 * libspi/registry.c:
2323 Some warning fixes, and knock-on fixes from namespace changes.
2326 Added rules for accessx-gui test program.
2328 * test/accessx-gui.c:
2329 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
2330 utility. It doesn't actually use at-spi, but it's still cool and
2333 * test/keysynth-demo.c:
2337 Fixes so that these test clients work properly with the namespaced
2338 libraries. (Incompletely tested for technical reasons, fixes may follow)
2341 2001-13-11 Michael Meeks <michael@ximian.com>
2343 * libspi/application.c
2344 (impl_accessibility_application_get_version),
2345 (impl_accessibility_application_get_toolkit_name):
2347 (impl_accessibility_application_set_id),
2348 (impl_accessibility_application_get_id): remove
2349 redundant casting code.
2351 * libspi/action.c (impl_getDescription): fix warnings.
2353 * libspi/accessible.c
2354 (impl_accessibility_accessible_get_parent),
2355 (impl_accessibility_accessible_get_child_at_index),
2356 (impl_accessibility_accessible_get_state),
2357 (impl_accessibility_accessible_get_relation_set):
2358 warning fixes & include action.h
2360 2001-13-11 Michael Meeks <michael@ximian.com>
2362 * *.[ch] fix bits I screwed up:
2364 s/([^ \tb(\*\&\?\",])spi_/\1/g;
2365 s/([^ \tb(\*\&\?\",])Spi/\1/g;
2367 2001-13-11 Michael Meeks <michael@ximian.com>
2369 * *.[ch] Namespace libspi into spi_ and Spi.
2371 2001-13-11 Michael Meeks <michael@ximian.com>
2373 * Makefile.am: dist & install at-spi-1.0.pc
2375 * libspi/Makefile.am: install into at-spi-1.0
2377 * idl/Makefile.am (idldir): install into at-spi-1.0
2379 * at-spi-1.0.pc.in: add.
2381 * configure.in: build it.
2383 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2385 * test/keysynth-demo.c:
2386 Use a 'realize' signal-handler to set the WM properties for
2387 the virtual keyboard, rather than making it a "POPUP" type
2388 override-redirect window (thanks to anders carlsson for that
2391 2001-11-11 Bill Haneman <bill.haneman@sun.com>
2394 * test/keysynth-demo.c:
2395 Added new test of key synthesis, which creates a simple
2396 (mouse-operated) onscreen keyboard. It inserts key events into
2397 the currently-focused window, thus it does not grab keyboard focus
2400 * cspi/spi_registry.c:
2401 Added C binding for AT-SPI generateKeyEvent.
2403 * libspi/deviceeventcontroller.c:
2404 Added call to XFilterEvent so that key listener works with XIM (we
2405 hope). Added event_synth_type to generateKeyEvent, so that we can
2406 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
2407 synthesize a press/release pair for KeySyms.
2409 2001-11-09 Bill Haneman <bill.haneman@sun.com>
2411 * libspi/Makefile.am:
2412 * registryd/Makefile.am:
2413 (temporary) hack to include libXtst in libspi and registryd.
2414 (Needed for keystroke synthesis, see below).
2417 Improved API for registerKeystrokeListener, in accordance with
2418 discussions with Gnopernicus team and X server research.
2420 * libspi/registry.c:
2421 * libspi/deviceeventcontroller.c:
2422 * libspi/accessible.c:
2423 * libspi/keystrokelistener.c:
2424 Changes and fixes to support keylisteners for potentially
2425 consumed key events (that is, 'passive grabs').
2426 Added implementation for generateKeyEvent() [untested].
2429 Changes to registerKeystrokeListener() API, as above.
2430 Added deregisterGlobalEventListenerAll(), and
2431 deregisterKeystrokeListener(), which are needed for clean exit of
2433 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
2434 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
2436 * cspi/spi_registry.c:
2437 Added implementations of function prototypes mentioned above.
2439 * registryd/registryd.c:
2440 Added the key listener event source as a g_timeout(), to allow
2441 receipt of key events that are not caught by GDK (since GDK
2442 doesn't support passive keygrabs, this was necessary).
2445 Changed to attach a keylistener to 'Alt' keys, and
2446 respond to the following keycommands: Alt-M (toggle magnifier);
2447 Alt-F (toggle speech); Alt-Q (quit).
2448 Added an exit routine to deregister the listeners, and a key
2449 listener that prints some key info to the console when a key
2450 matches the listener mask (and is thus received by the listener).
2452 * util/idl/Magnifier.idl:
2453 Changes to magnifier API to support multiple zoom regions,
2454 non-uniform scaling in x and y, markDirty, and a host of other
2455 features that would be useful to magnification.
2458 * util/mag_client.c:
2459 * util/mag_client.h:
2460 * util/mag_control.c:
2462 Source code changes to support the above IDL changes.
2465 As above, and also changes to use a (slower) generic conversion
2466 path for colormap conversions, since the fast RGB conversions have been
2467 reported to fail for 16-bit displays.
2469 2001-10-26 Michael Meeks <michael@ximian.com>
2471 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
2473 <2001-10-26 Laszlo Peter <laca@ireland.sun.com>
2475 * at-bridge/Makefile.am: fix LDFLAGS.
2477 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2479 * at-bridge/bridge.c:
2480 Re-worked listeners for toolkit events, now we have signal
2481 and property listeners. Added a private method
2482 register_atk_event_listeners(), which registers with the
2483 various atk and gtk signals we need to monitor in order to emit
2485 Added emission hook for AtkObject:property-change events, to
2486 support the 'property listeners'.
2487 Fixed some alloc()s of Accessibility_Event structs to use CORBA
2490 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
2491 which emit warnings and exit, respectively, if CORBA errors occur
2492 during remote calls, and we now use these methods to check most of
2493 our CORBA calls in the C bindings.
2495 * cspi/spi_accessible.c:
2496 Changed AccessibleSelection_refSelectedChild() to
2497 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
2498 now increment refcounts.
2500 * cspi/spi_component.c:
2501 Fixed some long pointer casts (dangerous!) to pass pointers to
2502 CORBA_longs of the proper type to the CORBA stubs, and copy the
2503 data into the longs that were passed into the C bindings code.
2505 * at-bridge/bridge.c:
2507 * libspi/accessible.c:
2508 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
2509 hyperlinks, AtkHyperlink is an object type.
2511 * libspi/application.c:
2512 Added various conversions to and from "generic" event types and
2513 atk-specific types; this is really part of the 'bridge'
2514 implementation but is valid for all AtkObject-based accessibility
2517 * libspi/editabletext.c:
2518 Fixed nasty bug wherein editable text's finalize method was
2519 unref'ing tha AtkObject reference that the text parent class was
2520 about to unref _again_. There was also a nasty inheritance bug
2521 that meant that the AccessibleEditableText class was corrupt.
2523 * libspi/selection.c:
2524 Provided implementations for some selection API that was broken.
2526 * idl/Application.idl:
2527 Added registerObjectEventListener () method.
2530 Fixed a number of return values that were Bonobo_Unknowns from
2531 bonobo_object_corba_objref(), which I
2532 forgot to dup before returning. Changed instances of
2533 bonobo_object_corba_objref (bonobo_object(o)) to
2534 BONOBO_OBJREF(o), for concision and clarity.
2536 <2001-10-13 Louise Miller <louise.miller@sun.com>
2538 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
2539 idl/Event.idl, idl/Registry.idl
2540 Changed these files to include Bonobo_Unknown.idl instead
2543 <2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
2545 * libspi/component.c libspi/component.h:
2546 Fixed typo. Added assertions for object checks in
2547 AccessibleComponent code.
2549 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2551 * idl/Accessible.idl:
2552 Added 'isEqual (Accessible *object)'
2553 method for Accessible. (Not Yet Implemented).
2556 Changed signature of registerKeystrokeListener() to
2557 take a KeySet and KeyEventSeq so that specific keys and event
2558 types could be requested for monitoring, and added a flag
2559 is_synchronous so that either synchronous or asynchronous
2560 notification could be requested. (However this is not all
2561 implemented yet). This also meant adding two new typedefs,
2562 KeyEventSeq and KeySet.
2565 Added two new relations, RELATION_TOOLTIP_FOR and
2566 RELATION_LEAFNODE_OF.
2569 Added new state, STATE_HAS_TOOLTIP.
2571 * libspi/text.c, editabletext.c:
2572 Added new assertions to all casts of bonobo-objects from
2573 CORBA servants, to prevent Text API calls on non-text objects.
2574 Changed suspect casts of int-pointer types, so that we
2575 always send a valid CORBA_long pointer to the CORBA APIs that use
2576 in/out long parameters. We then have to copy from the CORBA_long
2577 into the regular long or int for return to the C bindings, or
2578 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
2581 * libspi/deviceeventcontroller.c:
2582 Cleaned these sources up.
2584 Changed return type for getCharacterAtOffset to
2585 CORBA_unsigned_long, to allow for 32-bit characters.
2588 <2001-10-08 Bill Haneman <bill.haneman@sun.com>
2592 Fixed 'make dist' so that distro compiles...
2593 * libspi/keymasks.h:
2595 * cspi/spi-listener.c:
2596 KeystrokeListenerCB now returns a boolean.
2598 Added KeyEventType struct, and KeyStroke.
2599 Also added createKeystrokeListener(),
2600 KeystrokeListener_addCallback(),
2601 KeystrokeListener_removeCallback(), and added a keymask to
2602 registerKeystrokeListener().
2603 * cspi/spi_accessible.c:
2604 Changed numerous return types for interfaces from
2605 AccessibleComponent to Accessible<InterfaceName>; this was
2606 probably a cut-and-paste error.
2608 Implementations of new KeystrokeListener api (from spi.h,
2611 Changes to key modifier mapping.
2612 Created ControllerEventMask struct.
2613 Made DeviceEventController derive from Bonobo::Unknown.
2615 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
2616 * libspi/deviceeventcontroller.c:
2617 Added a number of new internal (private) methods.
2618 * libspi/editabletext.c:
2619 * libspi/editabletext.h:
2620 Fixed a number of bugs related to the fact that
2621 editabletext inherits from text. Fixed the EditableText struct,
2622 the init() call, and use correct casts when calling Text methods
2623 from an EditableText object. Removed (duplicate) atko from the
2624 EditableText structure, we use the one in the parent Text
2625 structure via the casts mentioned above.
2626 * libspi/keystrokelistener.[ch]:
2627 * libspi/registry.c:
2628 Changes in support of keyboard handling (above).
2630 Keyboard handling, though partly functional, is still not
2631 recommended for at-spi client use as there is considerable
2632 work yet to be done.
2635 Changed some places where pointers to various int types
2636 are cast to be pointers to CORBA_long types and vice-versa:
2637 pointer casting is not safe so we pass pointers of the correct
2638 types and then cast the result before putting it into the target
2641 * libspi/text.h: minor typos corrected.
2643 We now speak not only the name of a Text element, but the
2644 first sentence of its content, when it receives focus.
2645 I also changed the text compression to 75% from 50%.
2646 * util/Accessibility_Util.server.in:
2647 Changed the default magnifier type to be a 3x vertical
2648 splitscreen magnifier (was previously a 2x horizontal one).
2650 <2001-10-03 Bill Haneman <bill.haneman@sun.com>
2652 * libspi/keystrokelistener.h:
2653 * libspi/keystrokelistener.c:
2654 Initial functional implementations of KeystrokeListener.
2657 <2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
2659 Fixed string handling for NULL strings in libspi.
2660 Added spi_freeString to free strings returned by C bindings.
2662 <2001-09-30 Bill Haneman <bill.haneman@sun.com>
2664 * libspi/keystrokelistener.h:
2665 * libspi/keystrokelistener.c:
2666 Began (no-op) implementations of KeystrokeListener
2668 * libspi/deviceeventcontroller.c:
2669 * libspi/deviceeventcontroller.h:
2670 Began creating implementations of DeviceEventController,
2671 to handle keystroke and mouse event listening and
2673 * libspi/accessible.c:
2674 Stubbed-in the implementations for
2675 Accessibility_Accessible_getState and
2676 Accessibility_Accessible_getRelationSet.
2677 * libspi/registry.c:
2678 Improved de-registration process and fixed some bugs,
2679 deregistration now works correctly.
2681 Added initialization of applications list (to NULL).
2683 Reduced speech compression from 0.5 to 0.7, for demo.
2684 Changed call to gdk_window_set_decorations()
2685 to gtk_window_set_decorated().
2686 * at-bridge/bridge.c:
2687 Bridge now deregisters when app exits, via
2688 registration of a cleanup function
2689 with the g_atexit() call.
2690 Required making 'app' static, renamed 'this_app'.
2691 Fixed broken use of bonobo_init, passing argv wrongly.
2693 <2001-09-27 Bill Haneman <bill.haneman@sun.com>
2697 Created a new directory for
2698 accessibility-related utilities, primarily for
2699 testing and demo purposes, but with possible
2706 Onscreen magnifier utility that
2707 is implemented as a bonobo service.
2709 * util/mag_client.c:
2710 * util/mag_client.h:
2711 Client-side support (simple C bindings)
2712 for Magnification service
2714 * util/mag_control.c:
2715 Client program example for
2716 Magnification service
2718 * util/Accessibility_Magnifier.server.in:
2719 Bonobo-activation file for the
2720 Magnification service.
2723 * util/idl/Magnifier.idl:
2724 IDL defining the bonobo Magnification
2728 Modifications to use the bonobo-activated magnifier
2729 above, in place of trying to connect to an existing
2730 magnifier that uses socket-listening IPC.
2732 If env variable MAGNIFIER is set, a magnifier service
2733 will be started if one does not exist.
2735 <2001-09-25 Bill Haneman <bill.haneman@sun.com>
2736 * at-bridge/bridge.c:
2737 applied patch from Marc to build and run
2738 against new glib and gtk+ (seemed like a change
2739 to bonobo_init signature was made ?)
2741 made festival-server support turned off by default.
2742 Added support for a simple magnifier (off by default)
2743 which will be added to a 'util' directory later.
2744 * at-bridge/Makefile.am:
2745 Changed "application.h" header from a 'source'
2746 to a 'dependency' of libat-bridge.
2748 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2756 Added interface implementation c files to list of
2757 includes so they are included in libcspi.
2760 Changed prototype of AccessibleAction_doAction to return a
2762 Changed prototype of AccessibleTable_getCaption to
2763 return an Accessible.
2764 Changed prototype of AccessibleTable_getSelectedRows
2765 and AccessibleTable_getSelectedColumns to
2766 return a long (returns the number of selected rows
2767 or columns respectively).
2768 Changed name of AccessibleText_refRunAttributes to
2769 AccessibleText_getAttributes.
2770 Changed prototype of AccessibleText_getCharacterExtents to
2771 return a void rather than a boolean.
2772 Added support for a AccessibleCoordType parameter
2773 specifying what type of coordinates are desired.
2774 Added an AccessibleCordType parameter to
2775 AccessibleText_getPointAtOffset.
2777 * cspi/spi_accessible.c:
2778 Added code to return the outstanding interfaces from
2779 Accessible_queryInterface.
2781 * cspi/spi_action.c:
2783 Corrected call to getNActions to call the c binding
2786 * cspi/spi_editabletext.c:
2788 Changed name from setRunAttributes to setAttributes.
2790 * cspi/spi_hyperlink.c:
2792 Changed call to getNAnchors to correctly call the c
2793 binding for an attribute.
2795 * cspi/spi_hypertext.c:
2797 Changed getImageDescription to correctly call the
2798 binding for an attribute.
2800 * cspi/spi_selection.c:
2801 Changed getNSelectedChildren to correctly call the c
2802 binding for the attribute.
2803 Changed refSelectedChild to getSelectedChild.
2807 Changed getCaption to return an Accessible.
2808 Fixed calls which retrieve attributes.
2809 Changed refAt to getAccessibleAt.
2810 Changed getNSelectedRows and getNSelectedColumns to
2814 Changed getCharacterExtents and getPointAtOffset to accept an
2815 AccessibleCoordType.
2817 Changed calls which retrieve attributes.
2818 Changed refRunAttributes to getAttributes.
2823 * idl/Hyperlink.idl:
2824 Changed n_anchors attribute to nAnchors to keep naming
2825 convention consistent.
2828 Made Table inherit from Bonobo::Unknown.
2829 Added nSelectedColumns and nSelectedRows attributes.
2832 Made Value inherit from Bonobo::Unknown.
2834 * libspi/hyperlink.c:
2835 Change for nAnchors attributte name change.
2837 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2845 Added interface implementation c files to list of
2846 includes so they are included in libcspi.
2849 Changed prototype of AccessibleAction_doAction to return a
2851 Changed prototype of AccessibleTable_getCaption to
2852 return an Accessible.
2853 Changed prototype of AccessibleTable_getSelectedRows
2854 and AccessibleTable_getSelectedColumns to
2855 return a long (returns the number of selected rows
2856 or columns respectively).
2857 Changed name of AccessibleText_refRunAttributes to
2858 AccessibleText_getAttributes.
2859 Changed prototype of AccessibleText_getCharacterExtents to
2860 return a void rather than a boolean.
2861 Added support for a AccessibleCoordType parameter
2862 specifying what type of coordinates are desired.
2863 Added an AccessibleCordType parameter to
2864 AccessibleText_getPointAtOffset.
2866 * cspi/spi_accessible.c:
2867 Added code to return the outstanding interfaces from
2868 Accessible_queryInterface.
2870 * cspi/spi_action.c:
2872 Corrected call to getNActions to call the c binding
2875 * cspi/spi_editabletext.c:
2877 Changed name from setRunAttributes to setAttributes.
2879 * cspi/spi_hyperlink.c:
2881 Changed call to getNAnchors to correctly call the c
2882 binding for an attribute.
2884 * cspi/spi_hypertext.c:
2886 Changed getImageDescription to correctly call the
2887 binding for an attribute.
2889 * cspi/spi_selection.c:
2890 Changed getNSelectedChildren to correctly call the c
2891 binding for the attribute.
2892 Changed refSelectedChild to getSelectedChild.
2896 Changed getCaption to return an Accessible.
2897 Fixed calls which retrieve attributes.
2898 Changed refAt to getAccessibleAt.
2899 Changed getNSelectedRows and getNSelectedColumns to
2903 Changed getCharacterExtents and getPointAtOffset to accept an
2904 AccessibleCoordType.
2906 Changed calls which retrieve attributes.
2907 Changed refRunAttributes to getAttributes.
2912 * idl/Hyperlink.idl:
2913 Changed n_anchors attribute to nAnchors to keep naming
2914 convention consistent.
2917 Made Table inherit from Bonobo::Unknown.
2918 Added nSelectedColumns and nSelectedRows attributes.
2921 Made Value inherit from Bonobo::Unknown.
2923 * libspi/hyperlink.c:
2924 Change for nAnchors attributte name change.
2927 <2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
2929 implementations-- made server implementations own AtkObject pointers
2930 rather than their respective AtkInterrface pointers to fix
2931 refcounting. AtkHyperlink is still broken.
2933 <2001-09-04 Bill Haneman <bill.haneman@sun.com>
2934 * cspi/spi_accessible.c:
2935 Added method Accessible_Role_getName(),
2936 and requisite string array (role_names).
2937 Added conversion string_from_corba_strin() call
2938 to Accessible_getName and _getDescription.
2939 * libspi/accessible.c:
2940 Added implementation for Accessible_getRole()
2942 Added festival support, used if environment variable
2945 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2947 * at-bridge/bridge.c:
2948 Now allocate Accessibility_Event using
2949 Accessibility_Event__alloc() instead of g_new0().
2950 * libspi/accessibleeventlistener.c:
2951 Initialize AccessibleEventListener->callbacks to NULL.
2952 Fixed accessible__event_listener_init() param, changed to
2953 "AccessibleEventListener *" type.
2954 Changed a bonobo_object_release_unref() call to
2955 Accessibility_Accessible_unref().
2956 * libspi/listener.c:
2957 Changed Bonobo_Unknown_unref to (equivalent)
2958 Accessibility_Accessible_unref.
2959 * libspi/registry.c:
2960 Changed bonobo_object_release_unref to
2961 Accessibility_Accessible_unref.
2963 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2966 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
2967 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
2968 spi-util.c spi-util.h
2969 Implementations for C bindings to remaining accessibility
2972 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2975 changed return value of Action from void to boolean to
2976 bring in line with ATK.
2979 Changed getText funcions to return "out" start and end offsets.
2980 Changed getAttributes to take and offset and return the start
2981 and end offset of the attribute run.
2982 Changed getOffsetAtPoint and getCharacterExtents to take an
2983 enum describing whether coordinates are window or screen.
2986 libspi/action.c libspi/action.h libspi/editabletext.c
2987 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
2988 libspi/hypertext.c libspi/hypertext.h libspi/image.c
2989 libspi/image.h libspi/selection.c libspi/selection.h
2990 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
2991 libspi/value.c libspi/value.h
2992 Added server implementations for outstanding ATK interfaces
2993 not yet implemented.
2995 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2998 Added (missing) getName() method.
2999 Made nActions an attribute.
3000 * idl/EditableText.idl:
3001 Changed order of params in setAttributes.
3002 * idl/Hyperlink.idl:
3003 Removed getAnchor, added getURI.
3005 Changed attributes to methods, for efficiency
3006 (so that getting extents can be done in one call)
3007 * idl/Selection.idl:
3008 Changed nSelectedChildren to attribute, and re-indented.
3009 * idl/Table.idl: changed nrows, ncolumns, caption, summary
3011 * idl/Text.idl: reformatted to match our coding style.
3012 (temporarily?) removed getRowColumnAtOffset().
3013 Changed text selection API to support multi-select and
3014 non-contiguous selections, as in ATK.
3015 * idl/Value.idl: changed some methods to attributes.
3017 2001-08-24 Mark McLoughlin <mark@skynet.ie>
3019 * libspi/listener.c(impl_notify_event):
3020 BonoboUnkown_unref the source instead
3021 of bonobo_object_release_unref - the ORB
3022 handles the releasing.
3024 * configure.in: require ORBit-2.3.94 for
3027 2001-08-21 Bill Haneman <bill.haneman@sun.com>
3029 Tagged CVS repository 'EA_1_0'.
3030 * README.EARLY_ACCESS:
3031 Alphabetized acknowledgements list, and
3033 Listed some known dependencies of at-spi.
3035 2001-08-20 Bill Haneman <bill.haneman@sun.com>
3037 * docs/at-spi-docs.sgml:
3038 * docs/at-spi-sections.txt:
3039 * docs/at-spi-overrides.txt: (Added zero-length file)
3040 Documentation improvements - gtk-doc should build
3041 docs for all implemented C bindings now.
3044 * cspi/spi.c: (New file)
3045 * cspi/spi_event.c: (New file)
3046 * cspi/spi_registry.c: (New file)
3047 * cspi/spi_accessible.c: (New file)
3048 * cspi/spi_application.c: (New file)
3049 * cspi/spi_component.c: (New file)
3050 Split spi_main.c into six parts, and included them from
3051 "spi.c". This is a bit of a hack, probably temporary,
3052 but required by gtk-doc, apparently.
3054 2001-08-20 Bill Haneman <bill.haneman@sun.com>
3057 * docs/at-spi-docs.sgml:
3058 * docs/at-spi-sections.txt:
3060 Initial checkins/modifications for gtk-doc generation.
3063 Added (missing) interface query methods to Accessible's C binding.
3065 Added GenericInterface type definition.
3067 Added query for AccessibleComponent interface to focus event handler.
3068 Added printout of bounding box for focussed component.
3069 * libspi/component.c:
3070 Added partial implementation for AccessibleComponent to C binding.
3071 * idl/Application.idl:
3072 * libspi/registry.c:
3073 * libspi/listener.c:
3074 * libspi/application.c:
3075 * libspi/application.h:
3076 Changed "ID" attribute type from string to long.
3078 2001-08-19 Bill Haneman <bill.haneman@sun.com>
3082 Made method naming consistent: methods taking object args
3083 start with uppercase, other methods (except those using
3084 acronyms) start with lowercase. Underscores delimit between
3085 object names and method names:
3086 SPI_init() - uppercase since it starts with an acronym.
3087 getDesktopCount () - lowercase start since no object param0.
3088 Accessible_getName() - uppercase object type name, studlyCaps method
3092 Added gtk-doc documentation for all currently implemented
3093 methods in the C bindings API.
3095 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3097 * Makefile.am : changed build order to build test last.
3100 Changed "createEventListener" to "CreateEventListener".
3101 * libspi/accessibleeventlistener.c :
3102 Bugfix for addition of callbacks.
3103 * test/Makefile.am :
3104 * test/simple-at.c :
3105 Added new test that uses the C bindings API.
3107 * libspi/listener.c :
3108 * libspi/registry.c :
3109 * libspi/accessibleeventlistener.c :
3110 * at-bridge/bridge.c :
3111 Renamed member "target" of Accessibility_Event to "source",
3112 which is more descriptive.
3115 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3119 * cspi/Makefile.am :
3120 Added makefile support for at-spi/cspi directory.
3123 * cspi/spi-listener.h : (NEW FILE)
3124 Added support for/use of spi-listener.h.
3126 C bindings now build successfully, with no warnings.
3127 * libspi/accessibleeventlistener.h : (NEW FILE)
3128 * libspi/accessibleeventlistener.c : (NEW FILE)
3129 * libspi/Makefile.am :
3130 Added new object type "AccessibleEventListener"
3131 which inherits from Listener, and allows attachment
3132 of in-process callbacks (so that a client with a listening
3133 object instance can add functionality to the local
3134 implementation, dynamically).
3136 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3138 * libspi/accessible.c:
3139 Add implementation for get_index_in_parent().
3141 Added #include of "spi-roletypes.h", and
3142 added enumerated type AccessibleCoordType.
3143 Added definition for KeystrokeListener (function type).
3146 * cspi/spi-statetypes.h :
3147 * cspi/spi-roletypes.h :
3149 Added these headers, used by spi.h.
3151 Added code (NOTE: not yet built by make).
3153 2001-08-18 Mark McLoughlin <mark@skynet.ie>
3155 * libspi/Makefile.am: generate imodule
3156 at the same time as other idl compiler
3159 2001-08-17 Bill Haneman <bill.haneman@sun.com>
3160 * libspi/registry.c :
3161 * libspi/application.c :
3162 * idl/Application.idl :
3163 Made registration with toolkit an application method,
3164 which is required since each app has its own toolkit static
3165 environment. Thus the bridge must register for
3166 notification of toolkit events from each application in turn.
3167 Toolkit notifications are now successfully registered for, and
3168 sent to the listening at client.
3170 Changed toolkit event string to use hyphens rather than underscores.
3171 * libspi/listener.c :
3172 listner now gives more info in debug mode - it reports the
3173 name of the event received, as well as the name of the source.
3176 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3178 * libspi/registry.c :
3179 added more implementation for toolkit events.
3180 Fixed bug such that toolkit event registrations
3181 (via atk) use the whole event name string, not
3183 Removed a useless call to an ORBit_ method.
3184 * at-bridge/bridge.c :
3185 Removed unused local sbuf[] variable.
3187 We now register for Gtk:GtkWidget:button_press_event
3188 events as well as "focus:" events.
3190 Add some more API from Registry.idl that was missing,
3191 for keystroke listening, keystroke and mouse event
3192 synthesis, and enumeration of accessible desktops.
3194 2001-08-16 Michael Meeks <michael@ximian.com>
3196 * configure.in: use AM_GLIB_GNU_GETTEXT.
3198 * Makefile.am (SUBDIRS): kill intl.
3200 2001-08-15 Michael Meeks <michael@ximian.com>
3202 * registryd/Makefile.am: s/oaf/server/ relocate info file.
3204 * configure.in: upd.
3206 * configure.in: depend on a recent bonobo-activation that
3207 will find our server files ...
3209 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3211 * libspi/accessible.c : accessible_new() :
3212 Now we add the Component interface via bonobo_object_add_interface,
3213 if the contained AtkObject implements AtkComponent.
3214 * libspi/accessible.h : now include "component.h"
3215 * libspi/component.h :
3216 * libspi/component.c : added files - implementation of
3217 bonobo wrapper object for Accessibility/Component
3218 * libspi/listener.c :
3219 Added test code to check for Accessibility/Component:1.0
3220 interface and report whether it is implemented by the
3222 * libspi/registry.c :
3223 Now we check for not only the hash of the whole event
3224 string before relaying the event, we also check the
3225 "minor" event string (without the detail string).
3226 This allows event listeners to be registered against
3227 all events of a certain major+minor type, or just
3228 against a specific major+minor+detail type.
3229 * libspi/accessible.c :
3230 Added implementations for Accessible:get_parent(),
3231 Accessible:getChildCount(), and Accessible:getChildAtIndex().
3232 * libspi/registry.c :
3233 * libspi/listener.c :
3234 Replaced calls to Accessibility_Accessible_ref() and
3235 Accessibility_Accessible_unref() with
3236 calls to bonobo_object_dup_ref() and
3237 bonobo_object_release_unref(), so that the CORBA object
3238 is dup-ed and released when relayed, as well as the bonobo object.
3240 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3242 * libspi/Makefile.am,
3243 registryd/Makefile.am,
3244 at-bridge/Makefile.am.
3245 test/Makefile.am, configure.in:
3246 reverse previous changes.
3248 * /idl/Image.idl: fix typo.
3250 * test/Makefile.am: put DEBUG_FLAGS
3253 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3255 * test/app.c: use argv[0] instead of
3258 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3260 * libspi/Makefile.am,
3261 registryd/Makefile.am,
3262 at-bridge/Makefile.am.
3263 test/Makefile.am, configure.in:
3264 cleanup, replace individual LIBS/CFLAGS with
3265 AT_COMMON_{LIBS|CFLAGS}.
3269 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3271 * configure.in, libspi/Makefile.am:
3272 Change IDL path checking for bonobo-activation
3275 2001-08-15 Bill Haneman <bill.haneman@sun.com>
3277 * registryd/registry.c : separated event listeners to use
3278 3 separate lists (focus, window, toolkit). Began testing
3279 event names against hashes before relaying events.
3280 * test/at.c : now register for events of type "focus:"
3281 * test/app.c : now generate events of type "focus:"
3282 * at-bridge/bridge.c : register with ATK for focus events,
3283 and we now relay those focus events to any "focus:" listeners.
3284 This now works with the bridge as a GTK_MODULE when running test/at.
3285 * libspi/registry.c :
3286 * libspi/listener.c :
3287 now we ref event sources before propagating, and unref on receipt.
3288 * libspi/registry.c :
3289 some changes to internal structs, to support event typestring hashes.
3290 * text/app.c : changed the way the appname is generated.
3291 * cspi : added directory that will hold the C bindings library for
3292 non-CORBA/bonobo-savvy clients.
3293 * cspi/spi.h : header file that contains the function prototypes for the C binding.
3294 * idl/Component.idl : added in parameter to indicate coord system for
3295 geometry-related calls.
3296 * idl/Hyperlink.idl : added readonly n_links attribute
3297 * idl/Image.idl : changed methods to attributes.
3299 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3301 * at-bridge/Makefile.am: link against
3302 ../libspi/libspi.la instead of -lspi.
3304 * at-spi/test/app.c: include
3305 bonobo-activation.h. Use a default appname
3306 if one is not provided.
3308 2001-08-14 Bill Haneman <bill.haneman@sun.com>
3310 * idl/Registry.idl : temporarily changed register_Application
3311 to oneway, to work around issue with initial registration
3313 * idl/Application.idl : changed attribute "id" from readonly
3314 to read-write, since it needs to be assigned by Registry.
3315 * registryd/registryd.c : added call to set application id
3317 * registryd/registry.c : changed de-registration procedure to
3318 use CORBA_Object_hash() to find matching object ref in application
3319 lists and listener lists.
3320 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
3321 began distinguishing between event types (work in progress).
3323 2001-08-13 Bill Haneman <bill.haneman@sun.com>
3326 * libspi/application.c:
3327 Added implementations for get/set id, get_toolkitName,
3329 * registryd/registryd.c :
3333 Converted from use of OAF to bonobo-activation.
3334 * libspi/desktop.h :
3335 * libspi/desktop.c :
3337 Removed references to atksimpleobject, since base atkobject
3338 implementation now provides functionality we need.
3339 * libspi/atksimpleobject.c :
3340 * libspi/atksimpleobject.h :
3345 * at-bridge/Makefile.am
3346 * at-bridge/bridge.c
3349 Added directory "bridge" and contents, and added dependencies
3350 in Makefile.am/configure.in.
3351 Initial checkin of "at-bridge".
3352 This code is a GTK_MODULE which automatically registers
3353 GTK+ apps with the accessibility registry, using an object
3354 reference to the root ATK object.
3356 2001-08-10 Mark McLoughlin <mark@skynet.ie>
3358 * po/Makefile.in.in: Remove. Again. If this
3359 doesn't get autogenerated - you need to update
3362 2001-08-07 Mark McLoughlin <mark@skynet.ie>
3364 * po/Makefile.in.in: Add. Again.
3366 2001-07-31 Bill Haneman <bill.haneman@sun.com>
3368 * libspi/accessible.c : added support for 'description' property.
3369 * libspi/accessible.c
3371 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
3372 (since the two are now equivalent in libbonobo)
3380 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
3381 Bonobo::Unknown as does Accessibility::Accessible.
3382 * idl/StreamableContent.idl : as above, and replaced internal InputStream
3383 interface with Bonobo::Stream, since it was redundant with it.
3384 (The Stream returned by a StreamableContext object is expected to
3385 implement only a subset of Bonobo::Stream)
3387 2001-07-28 Anders Carlsson <andersca@gnome.org>
3389 * libspi/accessible.c (accessible_object_finalize): Change
3390 g_free to g_object_unref since the AtkObject is a GObject.
3392 2001-07-30 Bill Haneman <bill.haneman@sun.com>
3394 * idl/Accessibility.idl: add new IDL files
3397 * idl/Action.idl: Definitions of actionable UI object
3398 * idl/Component.idl: Definitions of UI component geometry, etc.
3399 * idl/Hyperlink.idl: Defs of hyperlink behavior
3400 * idl/Image.idl: Def of accessible image
3401 * idl/Selection.idl: Definition of UI object with selectable children
3402 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
3403 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
3404 * idl/Text.idl: Interface defs for UI elements with complex textual content
3405 * idl/Value.idl: Definition of UI element that is a value controller or display
3407 2001-07-27 Michael Meeks <michael@ximian.com>
3409 * po/Makefile.in.in: remove autogenerated file from CVS.
3411 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
3414 * idl/Registry.idl: include guard.
3416 * idl/Accessibility.idl: Add, and include all the other IDL
3419 * idl/*.idl: remove mass of pragmas etc.
3421 2001-07-26 Michael Meeks <michael@ximian.com>
3423 * registryd/Makefile.am (registryd_SOURCES): remove
3426 2001-07-27 Mark McLoughlin <mark@skynet.ie>
3428 * libspi/.cvsignore, registryd/.cvsignore,
3429 test/.cvsignore: updated.
3431 * po/Makefile.in.in: gettext update.
3433 2001-07-25 Bill Haneman <bill.haneman@sun.com>
3435 * initial CVS checkin
3437 2001-06-29 Michael Meeks <michael@ximian.com>
3439 * configure.in: add AM_CONFIG_HEADER to gen config.h