1 2002-01-16 Bill Haneman <bill.haneman@sun.com>
3 * registryd/deviceeventcontroller.c:
4 Regression fix for keylistener de-registration; global keygrabs
5 were not being released when deregisterKeystrokeListener was
7 Accessibility_DeviceEventController_deregisterKeystrokeListener
8 was called with a zero-length keyset. That is because the cspi
9 method, SPI_deregisterKeystrokeListener, does not take a keyset
10 parameter but instead should remove all the key grabs held be a
12 The code in impl_deregister_keystroke_listener was changed to copy
13 the keylist from the listener instance previously registered with
14 the DeviceEventController before releasing the grabs.
16 * registryd/registry.c:
17 * registryd/deviceeventcontroller.c:
18 * libspi/spi-private.h:
20 Changed spelling of "re-enterant" to "re-entrant" globally.
22 2002-01-16 Bill Haneman <bill.haneman@sun.com>
25 Changed key listeners test - the test was slightly mis-using the
26 (admittedly poorly documented) SPI_generateKeyboardEvent API.
27 It now uses '=' as the key event listened to and generated,
28 relying on a keysym match rather than assuming that keycode 33
29 is always equal to keysym '!'.
31 2002-01-15 Bill Haneman <bill.haneman@sun.com>
34 Changed simple-at to use a specific keyset, rather than
35 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
36 manager, desktop, etc.
38 2002-01-11 Bill Haneman <bill.haneman@sun.com>
40 * registryd/deviceeventcontroller.c:
41 Replaced standard X error handler with a special handler that
42 is non-fatal for failed keygrabs. This works around
43 problems with keygrab clashes sometimes observed on
45 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
46 mouse handling code as yet).
48 2002-01-11 Bill Haneman <bill.haneman@sun.com>
51 Incremented revision for desktop alpha release.
54 Fixed a couple of the more glaring errors (still not
57 2002-01-11 Michael Meeks <michael@ximian.com>
59 * registryd/deviceeventcontroller.c
60 (spi_device_event_controller_forward_key_event): kill
61 XUngrabKey / XKeyGrab race.
62 (spi_controller_grab_keyboard): rename to
63 (spi_controller_update_key_grabs): this, and deal
64 with incremental adding / removing grabs more
66 (_register_keygrab): ensure we're not pending a remove.
67 (spi_grab_mask_free): impl.
68 (spi_controller_register_global_keygrabs): split out
70 (handle_keygrab): impl.
71 (_deregister_keygrab): impl.
72 (spi_controller_deregister_global_keygrabs): impl.
73 (spi_controller_update_key_grabs): re-issue the grab if
74 we just recieved a notification.
76 * test/test-simple.c (key_listener_cb): remove debug.
78 * registryd/deviceeventcontroller.c
79 (spi_controller_register_device_listener): after
80 registering a global keygrab, actualy register it !
81 don't wait for a timeout; doh !
83 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
84 to make it more readable / manipulable.
85 s/grabmask/grab_mask/ s/refcount/ref_count/
86 s/keyval/key_val/ s/modmask/mod_mask
88 2002-01-08 Michael Meeks <michael@ximian.com>
90 * registryd/deviceeventcontroller.c
91 (spi_controller_register_with_devices): use gdk calls to
93 (global_filter_fn): implement the filter.
94 (spi_device_event_controller_check_key_event): rename to
95 (spi_device_event_controller_forward_key_event): this & upd.
96 (spi_get_display): replace with GDK_DISPLAY.
98 * registryd/deviceeventcontroller.c
99 (spi_controller_deregister_device_listener): unroll into
100 (impl_deregister_keystroke_listener): here to simplify.
101 (spi_controller_register_global_keygrabs): split cut and
102 paste (!) out into (_register_keygrab): here, shorter & sweeter.
103 (spi_controller_deregister_device_listener): remove.
104 (impl_register_mouse_listener): remove, no mouse listener
105 support in at-spi-1.0
107 * registryd/registry.c
108 (_device_event_controller_hook): kill.
109 (spi_registry_init): upd.
111 * registryd/deviceeventcontroller.c
112 (spi_device_event_controller_class_init): upd.
113 (spi_check_key_event): merge into.
114 (spi_device_event_controller_check_key_event):
115 here and kill strange static ev init, don't leak
116 the x_event - nor dynamicaly allocate it.
118 * registryd/registry-main.c (main): re-direct
119 timeout to remove strange vtable mess.
121 * registryd/deviceeventcontroller.c
122 (remove_listener_cb): impl.
123 (spi_controller_deregister_device_listener):
124 fix re-enterancy hazard.
126 2002-01-07 Michael Meeks <michael@ximian.com>
128 * registryd/deviceeventcontroller.c
129 (spi_device_event_controller_new): upd.
130 (impl_notify_listeners_sync): upd. debug.
131 (spi_notify_keylisteners): fix re-enterancy hazards,
132 prettify, remove O(n*n) iteration.
133 (spi_controller_grab_keyboard): fix iteration.
134 (spi_check_key_event): re-format to suit coding style.
135 Clean all the warnings - we're warning free.
137 * registryd/deviceeventcontroller.h:
138 * registryd/registry.h: make mutualy referential with
139 typesafe forward references instead of (!) void pointer
142 2002-01-11 Michael Meeks <michael@ximian.com>
144 * cspi/spi_accessible.c (role_names): add a role name
145 to sync this array with the enum; and make the regression
148 2002-01-10 Michael Meeks <michael@ximian.com>
150 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
151 allow expansion of enumeration & kill warning.
153 * test/test-simple.c (key_listener_cb): impl.
154 (test_keylisteners): impl.
156 * cspi/spi-listener.h: make listener signatures const
157 on the provided (const) events.
159 * test/keysynth-demo.c: upd. to const events.
161 * test/simple-at.c: ditto.
163 2002-01-11 Bill Haneman <bill.haneman@sun.com>
166 Rev the version to 0.5 (the previous tarball was named 0.4,
167 even though the micro number was 3), so we need to rev upwards
168 again for beta2/"desktop-alpha"
171 Checked in a demo script, which requires editing before use!
172 Proceed with caution.
175 Fixed typo in header which was redefining SPI_ACTION_CLASS.
177 * cspi/spi_accessible.c:
178 Add a couple of missing enum initializations, and fix some enum
181 * cspi/spi_registry.c:
182 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
184 * docs/reference/cspi/at-spi-cspi-sections.txt:
185 Remove/fix a couple of broken document references.
188 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
189 as Alt-Control to listen for commands, since on some systems
190 Control-Alt may already be grabbed.
192 2002-01-10 Bill Haneman <bill.haneman@sun.com>
195 Update version number to 0.4 for Beta2.
197 * libspi/accessible.c, libspi/accessible.h:
198 Expose spi_accessible_construct, to enable libgail-gnome
199 construction from spi_accessible subtype.
202 Workaround for bug in some non-gnome-compliant window managers
203 which made magnifier resize improperly.
205 2002-01-09 Bill Haneman <bill.haneman@sun.com>
207 * libspi/accessible.c: (spi_accessible_new) :
208 Move the test for SPI_IS_REMOTE_OBJECT to
209 spi_accessible_new_return, fixing a bug and compile time warning.
211 2002-01-08 Michael Meeks <michael@ximian.com>
213 * registryd/registry.c (parse_event_type): remove strndup.
215 * libspi/Makefile.am (libspi_la_SOURCES): remove
216 sources already included in the headers section.
218 * libspi/util.c: add.
220 * libspi/spi-private.h: add.
222 * registryd/registry.c: update to moved list iterators.
224 2002-01-05 Michael Meeks <michael@ximian.com>
226 * test/simple-at.c (main): upd. auto-module set to atk-bridge
228 * test/test-simple.c (main): ditto.
230 2002-01-04 Michael Meeks <michael@ximian.com>
232 * libspi/accessible.c (spi_accessible_new): remove 2nd,
235 * registryd/registry.c
236 (get_listener_list): impl.
237 (impl_accessibility_registry_register_global_event_listener):
238 re-impl. to simplify using ~, remove dodgy const cast off.
239 (parse_event_type): constify.
240 (impl_accessibility_registry_deregister_global_event_listener_all):
241 re-write, more efficiency and simplicity, kill re-enterancy
243 (compare_listener_corbaref, compare_corba_objects),
244 (compare_listener_quarks): define out.
245 (impl_accessibility_registry_deregister_global_event_listener):
246 re-write for effiency, and nail re-enterancy hazard.
247 (impl_accessibility_registry_get_desktop_list): impl.
248 (re_enterant_list_delete_link): impl.
249 (re_enterant_list_foreach): impl.
250 (remove_listener_cb): impl.
251 (_registry_notify_listeners): kill.
252 (notify_listeners_cb): impl.
254 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
255 (SPI_getDesktopList): impl.
257 * test/test-simple.c (test_desktop): test the methods.
259 2002-01-03 Michael Meeks <michael@ximian.com>
261 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
262 keystrings since we free them
263 (SPI_freeAccessibleKeySet): in here.
265 * libspi/accessible.c (spi_accessible_new): kill warning,
266 wonder what is going on with the constructor here.
268 2002-03-01 Bill Haneman <bill.haneman@sun.com>
270 * libspi/accessible.c (spi_accessible_new ()) :
271 Added check to see if AtkObject is an SpiRemoteObject before
272 creating an SpiAccessible.
274 2002-05-01 Bill Haneman <bill.haneman@sun.com>
276 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
277 Enable keygrabs using the Control modifier, now that they are
278 working properly (they were previously disabled).
281 Change the command keygrab for this demo to "Control+Alt", so as
282 to conflict with fewer other key commands on the system; this
283 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
285 Removed a pointlessly-chatty keylistener for unshifted keys
286 (shifted keys are still reported).
288 2002-02-01 Bill Haneman <bill.haneman@sun.com>
290 * libspi/remoteobject.h:
291 * libspi/remoteobject.c:
292 Added definitions for special AtkObject subtype, required for
293 support of remote components (specifically, used by BonoboControl
294 accessibility implementation).
296 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
298 * cspi/spi.h: synched relation types with ATK
300 * cspi/spi_accessible.c: Added implementations of
301 AcccessibleRelation_* methods
303 * idl/Accessibility_Relation.idl: added getRelationTypeName
304 method. Synched known relation types with ATK. Allowed for
305 relation type extension with the RELATION_EXTENDED type.
307 * libspi/relation.c: Provided implementations for
308 AccessibleRelation methods.
310 2002-01-01 Bill Haneman <bill.haneman@sun.com>
312 API tweaks for today's API 'freeze'.
315 Added placeholder functions to allow future compatible expansion
316 of the IDL interfaces.
318 * idl/Accessibility_Registry.idl:
319 Changed generateKeyEvent to generateKeyboardEvent. Changed
320 signature of this method to accept an optional keystring in
321 parameter (for complex text input synthesis) and changed use of
322 simple 'boolean' parameter in registerKeystrokeListener to a
323 struct, EventListenerMode.
325 * cspi/spi_accessible.c:
327 * cspi/spi_streamablecontent.c:
328 Added references to AccessibleStreamableContent interface, and
329 definition and implementation of AccessibleStreamableContent
332 * cspi/spi_registry.c:
334 Changed generateKeyEvent API to generateKeyboardEvent,
335 taking a new (optional) keystring parameter to support complex
340 Renamed directory (to better reflect its actual purpose, bridging
341 from at-spi to ATK). The .so module is also now named
344 * idl/Accessibility_Hypertext.idl:
345 * libspi/accessible.c:
346 * libspi/hypertext.h:
347 * libspi/hypertext.c:
348 Changed Accessibility_Hypertext to *not* derive from
351 * cspi/spi_registry.c:
352 Added list of legal event type names for 'window' events, which
353 completes the registry event API.
355 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
357 * at-bridge/bridge.c: Added registration for separate
358 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
359 signals. If either of the first two parameters to the generic
360 bridge signal handler are ints, they are passed on as event
361 details. This allows an AT to determine what text was inserted.
363 2001-12-21 Bill Haneman <bill.haneman@sun.com>
365 * registryd/deviceeventcontroller.c:
366 Fixed regressions in generateKeyEvent caused by the removal of
367 gdk_init from registryd; we now use pure X calls to connect to the
368 display, which makes sense because deviceeventcontroller already
369 uses a fair bit of X API (should eventually be migrated to a
370 'portability layer').
372 * registryd/desktop.c:
373 Fixed minor regression in spi_desktop_init, changed the way the
374 desktop name is being set to work with new spi_base API
375 (gobject-based, rather than AtkObject-based).
377 * registryd/Makefile.am:
378 Minor revision of makefile to use XTST_LIBS variable rather than
379 hard-wiring the Xtst LD_ADD element.
381 * test/keysynth-demo.c:
382 Tweaked an output message; added initialization of the
383 'keystrings' member of the "switch listener" key_set.
386 Squashed compile-time warning.
388 * libspi/accessible.c:
389 Cosmetic and formatting fixes, renamed a static method.
391 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
393 * libspi/accessible.c
395 * libspi/application.c
399 * libspi/editabletext.c
407 * registryd/desktop.c:
408 Changed SpiBase to contain a GObject pointer rather than an AtkObject
410 2001-12-17 Bill Haneman <bill.haneman@sun.com>
412 * idl/Accessibility_Registry.idl:
413 Added boolean member 'is_text' to DeviceEvent. This is for the
414 use of key events, and helps prevent ambiguity between composed
415 key strings and keysym names, since both may potentially be
416 returned in the 'event_string' member.
418 * at-bridge/bridge.c:
419 * registryd/deviceeventcontroller.c:
420 Use the 'is_text' member when notifying device event listeners.
421 Knon issue: composed characters are not dealt with correctly by
422 the global key listener implementation yet.
424 2001-12-17 Bill Haneman <bill.haneman@sun.com>
426 * at-bridge/bridge.c:
427 Namespaced local static methods to spi_atk_bridge_* where
428 previously named bridge_*, and spi_* elsewhere.
430 * at-bridge/bridge.c:
431 * cspi/bonobo/cspi-bonobo-listener.c:
432 Added demarshalling/conversion for string member of
433 Accessibility_DeviceEvent to AccessibleKeystroke.
435 * registryd/deviceeventcontroller.c:
436 Added code to fill the Accessibility_DeviceEvent key string value
437 member for global key events (i.e. from XGrabKey), to match
438 behavior of Accessibility_DeviceEvent from the toolkit key events
439 from the bridge. Fixed timestamp in global key event notifications.
442 Added printout of key event's string value to
443 report_ordinary_key_event, for demo/debugging purposes.
445 2001-12-15 Bill Haneman <bill.haneman@sun.com>
447 * idl/Accessibility_Registry.idl:
448 Removed Accessibility_KeyStroke structure in favor of generic
449 Accessibility_DeviceEvent structure.
450 Changed Accessibility_ControllerEventMask from a struct to an
453 * at-bridge/bridge.c:
454 Changed APIs to use DeviceEvent structure as above, and removed
455 bogus casting between these event structures.
457 * cspi/spi-listener.h:
458 Added keystring member of AccessibleKeystroke structure, to enable
459 matching on event "names" rather than only hardware codes and
463 Added keystrings member of AccessibleKeySet struct, to allow
464 matching on event names (as above).
465 Added declarations for SPI_createAccessibleKeySet and
466 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
467 event modmasks directly as unsigned ints rather than structs with
468 refcounts, in the DeviceEventController methods.
470 * cspi/spi_registry.c:
471 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
473 * cspi/spi-roletypes.h:
474 Added documentation of newly added SPI Roles.
476 * cspi/bonobo/cspi-bonobo-listener.c:
477 Changes in support of API changes above.
479 * libspi/accessible.c:
480 Converted APIs to use DeviceEvent structure (see IDL changes
483 * registryd/deviceeventcontroller.c:
484 Added DEControllerGrabMask structure to track keygrabs not only by
485 modmask but by keyset as well; this allows us to do "global"
486 (i.e. X) keygrabs on a per-key or keyset basis rather than always
487 grabbing on AnyKey and then filtering after-the-fact.
488 Bugfixes for event filtration mean that we don't get false matches
489 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
491 * registryd/deviceeventcontroller.c:
492 Namespaced a number of static methods to use spi_ prefix. Major
493 revision to internals of global (i.e. X) key grabs.
495 * registryd/deviceeventcontroller.h:
496 Removed keymask_list and added keygrabs_list to
497 SpiDeviceEventController struct.
500 Added use of SPI_createAccessibleKeySet API when creating a
501 listener for only one key. Attach a listener to "shift spacebar
502 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
503 X key event names to SPI key event names, so that listeners are
504 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
506 * test/keysynth-demo.c:
507 Changed (incorrect) use of X key event names (KeyPressed,
508 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
511 2001-12-12 Bill Haneman <bill.haneman@sun.com>
513 * libspi/accessible.c:
514 Convert all AtkRole enumerations to Accessibility_Role enums when
515 getting a role from an AtkObject.
517 * cspi/spi_accessible.c:
518 Complete the conversion of Accessibility_Role enums at runtime to
519 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
520 role enums correctly match those given in spi-roletypes.h.
521 Re-synchronize the local names list for AccessibleRole_getName ().
522 AccessibleRole_getName is now deprecated, since it duplicates the
523 more reliable Accessible_getRoleName.
524 Added some role types from Accessibility_Role.idl.
526 * idl/Accessibility_Role.idl:
527 Added some role types used by AtkRole.
529 2001-12-12 Bill Haneman <bill.haneman@sun.com>
532 * cspi/spi_registry.c:
534 * cspi/cspi-bonobo-listener.c:
535 Namespaced all methods that did not begin with an "SPI_" or
536 "Accessible" prefix to "SPI_".
539 Homogenized internal function namespace to "cspi_" for statics.
542 Patched tests to use the new CSPI API.
544 * docs/reference/cspi/at-spi-cspi-sections.txt:
545 Updated docs to reflect namespace changes, and added a number of
546 methods to the documentation.
548 * registryd/registry.c:
549 Changed use of strings and string hashes in listener event
550 matching and parse_event_string to use GQuark, which is guaranteed
553 * registryd/registry.h:
554 Squashed annoying warning.
556 * idl/Accessibility_Role.idl:
557 Extended range of available Accessibility_Role values.
559 * cspi/spi_accessible.c:
560 Re-ordered role names.
562 2001-12-12 Bill Haneman <bill.haneman@sun.com>
564 * idl/Accessibility_Value.idl:
565 Revert use of union back to CORBA_double, since the double type is
566 more efficient and can contain the other types without loss of
569 * idl/Accessibility_Accessible.idl:
570 Added method Accessibility:Accessible:getRoleName, to complement
571 Accessibility:Accessible:getRole.
573 * cspi/spi_accessible.c:
575 Added C binding for above, Accessible_getRoleName (), and changed
576 signature of Accessible_getRole () to return an AccessibleRole.
578 * cspi/spi-roletypes.h:
579 Changed AccessibleRole_getName to return a char * instead of a
580 const char *. This method is now at least temporarily deprecated
581 in favor of asking Accessibles for their RoleNames directly.
584 Revert to match Accessibility_Value.idl;
588 Change signature of AccessibleValue methods to use double rather
592 * cspi/spi_accessible.c:
593 Changed Accessible_getRole to return an AccessibleRole enum rather
594 than a UTF-8 string. The UTF-8 string can still be obtained via
595 AccessibleRole_getName ().
597 * test/test-simple.c:
598 Add test_action. Small fixup to match API change to Accessible_getRole.
601 Bugfix for get_action_from_servant ().
603 2001-12-11 Michael Meeks <michael@ximian.com>
605 * libspi/libspi.h: remove registry.h and
606 desktop.h, deviceeventcontroller.h
608 * libspi/Makefile.am: remove registry.[ch],
609 desktop.[ch], deviceeventcontroller.[ch]
611 * registryd/Makefile.am: add registry.[ch],
612 desktop.[ch], rename registryd.c to registry-main.c.
613 add deviceeventcontroller.[ch]
615 2001-12-11 Bill Haneman <bill.haneman@sun.com>
618 Replace setenv() call with putenv ().
620 * libspi/component.c:
621 Bugfix in AccessibleComponent_getExtents (),
624 2001-12-11 Michael Meeks <michael@ximian.com>
626 * libspi/image.c (impl_getImageExtents): impl.
627 (spi_image_class_init): upd.
630 (AccessibleImage_getImageDescription): fix daft bug
633 * test/test-simple.c (global_listener_cb): update
634 to only quit if not --poke
635 (main): catch --poke.
636 (validate_accessible): upd. dumping, call test_image
639 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
642 * idl/Accessibility.idl: update all IDL includes.
644 * idl/*.idl - rename to namespace - this sucks, blame
645 mjs' bad decision for oafd.
647 * test/test-simple.c (create_test_window): add more tests.
648 (create_tree): split this out.
649 (validate_accessible): bugfix.
651 2001-12-11 Michael Meeks <michael@ximian.com>
653 * cspi/bonobo/cspi-bonobo-listener.c:
654 (cspi_kestroke_listener_unref),
655 (cspi_event_listener_unref): impl. undoing previous
656 homenous environment - for Bill.
658 * cspi/spi_table.c (long_seq_to_array): use
661 * cspi/spi_main.c: split out all bonoboish bits into
664 * cspi/spi-impl.h: upd. typedefs.
666 * cspi/spi_registry.c: update to lowlevel API,
667 return booleans to indicate success in some places.
669 * cspi/spi_event.c: update to lowlevel API.
671 * cspi/bonobo/Makefile.am: add.
673 * cspi/bonobo/cspi-lowlevel.h: add
675 * cspi/bonobo/cspi-bonobo.c: add
677 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
679 * cspi/Makefile.am: remove spi-listener-impl.[ch],
680 (SUBDIRS): add bonobo, link in the libs.
682 * cspi/spi-util.c: kill this file.
684 * TODO: merge in my bits.
686 2001-12-11 Michael Meeks <michael@ximian.com>
688 * test/test-simple.c (test_value, test_table, main):
689 remove unused variables causing warnings.
691 * configure.in: cleanup checks - require gail.
693 2001-12-11 Bill Haneman <bill.haneman@sun.com>
696 Changed Value interface to use SValue (scalars) rather than
697 assuming all values are floats. This allows floats, doubles,
698 longs, shorts, and unsigned values to be manipulated.
699 Introduced Accessibility:SValue union.
702 Updated to use new API above, and to work correctly with GValues
703 of different types in AtkValue.
706 Updated to use new API above. cspi's API is as yet unchanged.
709 Updated the Value revision action item.
711 2001-12-10 Bill Haneman <bill.haneman@sun.com>
713 * test/test-simple.c:
714 Added test_table (GtkTreeView widget in test window to follow).
715 Un-commented test_value, added GtkRange widget.
716 Added GtkTreeView widget with GtkListStore. It passes regression
717 test but leaks one SPI object for some reason.
720 Fixed bug in impl__set_currentValue.
722 2001-12-10 Michael Meeks <michael@ximian.com>
724 * cspi/spi_text.c: audit for exception handling,
725 tolerating NULL object references safely etc.
727 * cspi/spi_value.c: ditto.
729 * cspi/spi_table.c (AccessibleTable_getSummary),
730 (AccessibleTable_getAccessibleAt),
731 (AccessibleTable_getRowHeader),
732 (AccessibleTable_getColumnHeader),
733 (AccessibleTable_getCaption): fix bugs hidden by
735 (long_seq_to_array): impl.
736 (AccessibleTable_getSelectedRows),
737 (AccessibleTable_getSelectedColumns): use it.
739 2001-12-10 Bill Haneman <bill.haneman@sun.com>
742 Added a TODO list (rough and short for now).
744 * cspi/spi_hyperlink.c:
745 * cspi/spi_hypertext.c:
746 Fixed macro name typos, and remove use of obsolete macro in
747 AccessibleHyperlink_getLink.
750 * cspi/spi_accessible.c:
751 * cspi/spi_application.c:
752 * cspi/spi_component.c:
753 * cspi/spi_selection.c:
756 Documentation fixes (removed return values from ref/unref methods).
758 2001-12-10 Michael Meeks <michael@ximian.com>
760 * cspi/spi_action.c: audit for exception handling,
761 tolerating NULL object references safely etc.
763 * cspi/spi_accessible.c: ditto.
765 * cspi/spi_component.c: ditto.
767 * cspi/spi_editabletext.c: ditto.
769 * cspi/spi_hyperlink.c: ditto.
771 * cspi/spi_hypertext.c: ditto.
773 * cspi/spi_image.c: ditto.
775 * cspi/spi_selection.c: ditto.
777 2001-12-10 Michael Meeks <michael@ximian.com>
779 * configure.in: use cspi/libspi.pc.in instead.
781 * Makefile.am (pkgconfig_DATA): upd. to match.
783 * test/simple-at.c (report_focus_event): kill hacks around
784 bad return values, use putenv not setenv
786 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
787 fire ChildGone - I killed it.
790 (impl_accessibility_component_get_extents): remove
793 * idl/Accessible.idl: kill ChildGone exception.
795 * cspi/*.[ch]: kill int return from ref / unref.
797 * cspi/spi_main.c (cspi_object_add_check): fold into
798 (cspi_object_add): here.
800 * cspi/spi_component.c (AccessibleComponent_getExtents):
801 handle exceptions elegantly.
803 * cspi/spi-private.h (cspi_check_ev_return),
804 (cspi_return_if_fail): impl.
806 * cspi/spi_accessible.c: use extensively.
807 (AccessibleStateSet_equals): add direct compare check.
809 * cspi/spi_selection.c: tolerate NULL objs, and check
810 exceptions before return.
812 * cspi/spi-util.c (cspi_warn_ev): rename to
813 (cspi_check_ev): this & don't pass ev in; no point.
815 2001-12-10 Michael Meeks <michael@ximian.com>
817 * test/test-simple.c: use putenv not setenv
818 (get_environment_vars): more chatty if you're not using
821 * test/simple-at.c: do the setenv so more people see the
824 2001-12-10 Bill Haneman <bill.haneman@sun.com>
827 Changed check of CORBA_environment on notification to be a warning
828 instead of an error for the moment, since we can recover from this
829 error when caused by a queued notification from a dead app.
832 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
833 used by all current implementors of AtkValue), and coerce to
834 CORBA_float. (Proper general case fix may require change to Value.idl).
836 2001-12-09 Bill Haneman <bill.haneman@sun.com>
840 * cspi/spi_accessible.c:
841 Documentation fixes: added user_data params to documentation for
842 listeners and callbacks.
844 * cspi/spi_accessible.c:
845 Changed AccessibleStateSet_compare to return a
846 StateSet rather than return the difference set into a third parameter.
849 2001-12-09 Bill Haneman <bill.haneman@sun.com>
852 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
853 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
857 Remove subdirectory po from SUBDIRS for now.
859 * at-bridge/bridge.c:
860 Beefed up a couple of debug printouts.
861 One-line fix for signal notification name formatting.
863 * libspi/accessible.c:
864 Added assertion to spi_accessible_new ().
866 * libspi/application.c:
867 Put #ifdef qualifiers around a printf.
870 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
872 * registryd/Makefile.am:
874 Replaces use of XML_I18N_MERGE_SERVER_RULE with
875 INTLTOOL_SERVER_RULE macro.
878 Added an event listener for several ATK signals, for
879 testing and debugging. Removed a few g_warnings.
880 Added test output if focussed item implements the Value interface.
882 * test/test-simple.c:
883 Added test_value () function (known not to pass at the moment, so
884 not actually called yet.
886 2001-12-08 Michael Meeks <michael@ximian.com>
888 * at-bridge/bridge.c (bridge_focus_tracker),
889 (emit_eventv): fix the same ref. leak.
890 (register_atk_event_listeners): don't leak.
892 * cspi/spi-listener-impl.c (cspi_event): more
893 protection from client code.
895 * test/test-simple.c (test_desktop): unref the app.
897 * test/Makefile.am: upd. TESTS.
899 * at-bridge/bridge.c (bridge_exit_func): release the registry.
901 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
903 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
905 * cspi/spi_registry.c: constify in strings.
906 (deregisterGlobalEventListenerAll): don't release the ref.
908 * cspi/spi.h: start removing redundant / conflicting
909 gtkdoc comments, making the API readable at a glance :-)
911 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
913 * test/keysynth-demo.c (keysynth_exit, main): upd.
915 * test/simple-at.c (main, simple_at_exit): upd.
917 * test/test-simple.c (unutterable_horror): kill.
918 (utterable_normal_derefs): kill.
919 (main): upd & do a setenv before gtk_init, so that we
920 can use memprof - and to save the pain of remembering
921 this, if we're running under memprof - don't exit.
923 * cspi/spi_main.c (SPI_exit): return exit status
925 (SPI_event_quit): impl.
926 (SPI_event_main): simplify.
927 (cspi_is_gnome_app): kill.
928 (SPI_init): kill isGNOMEapp arg.
930 * at-bridge/bridge.c (register_atk_event_listeners):
931 re-instate the unref.
932 (bridge_exit_func): don't re-activate the registry,
933 protect vs. theoretical re-entry, use the
934 AT_BRIDGE_SHUTDOWN env. var to determine whether to
935 assert a clean shutdown - for regression tests.
937 2001-12-08 Abel Cheung <maddog@linux.org.hk>
939 * configure.in: Comment out dummy i18n support for now,
940 otherwise it fails to build.
941 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
942 EXTRA_DIST. They are missing in tarball.
944 2001-12-07 Michael Meeks <michael@ximian.com>
946 * util/magnifier.c: kill bonobo activation reg. race.
949 (impl_accessibility_component_get_extents): make it match
952 * libspi/registry.c (_registry_notify_listeners):
953 re-remove X headers & reconcile conflicts.
954 (spi_listener_struct_free): bad conflict resolve.
955 (impl_accessibility_registry_register_application):
956 more bad merging fixed.
957 (impl_accessibility_registry_deregister_application): ditto.
958 (spi_registry_new): ditto.
959 (spi_registry_init): don't have an applications field.
961 [ merge fixups2 branch to here ]
962 2001-12-07 Michael Meeks <michael@ximian.com>
964 * test/simple-at.c (report_focus_event),
965 (report_focussed_accessible): remove g_warning debug.
967 2001-12-07 Michael Meeks <michael@ximian.com>
969 * test/test-simple.c (validate_tree): comment out some checks.
970 (test_desktop): app now not registered idly - horay.
972 2001-12-07 Michael Meeks <michael@ximian.com>
974 * cspi/spi_registry.c
975 (registerAccessibleKeystrokeListener): clean, stop it leaking
976 great swathes of memory, and device event controller references.
977 ensure we always pass valid sequences.
978 (deregisterAccessibleKeystrokeListener): ditto.
979 (generateKeyEvent): upd.
981 * at-bridge/bridge.c (bridge_key_listener): handle
982 registry dead exception gracefully.
983 (bridge_focus_tracker, emit_eventv): free ev.
985 * test/simple-at.c (report_focus_event): fix polarity.
987 * libspi/application.c (notify_listeners): kill the ev
988 argument, and make sure we init the ev we use.
989 (spi_application_object_event_listener): split out a chunk
990 (get_atk_object_ref): here & fixup.
991 (reverse_lookup_name_for_toolkit_event): make const.
992 (spi_application_toolkit_event_listener): fixup, kill leaks
995 * at-bridge/bridge.c (register_atk_event_listeners):
996 don't unref the noop object - causes grief.
998 * libspi/registry.c: remove the X headers.
999 turn off the debug churn.
1001 * libspi/accessible.c (spi_accessible_new_return): only
1002 release the ref if we are supposed to [doh]
1004 * test/simple-at.c (report_button_press, report_focus_event):
1005 guard vs. unexpected exit.
1007 * at-bridge/bridge.c (gtk_module_init): prune printf.
1008 (bridge_exit_func): fix app unref.
1010 * libspi/Makefile.am: don't install registry or desktop.h
1012 * libspi/*.h: update includes.
1014 * libspi/application.h: don't include ourself, or
1015 other redundant headers.
1017 2001-12-06 Michael Meeks <michael@ximian.com>
1019 * libspi/accessible.c
1020 (get_accessible_from_servant): impl.
1021 Upd. all CORBA impl.s to use it killing cut and paste.
1023 * cspi/spi_main.c (cspi_cleanup): guard vs. double
1025 (SPI_init): register atexit cleanup handler here.
1027 2001-12-06 Michael Meeks <michael@ximian.com>
1029 * at-bridge/bridge.c (gtk_module_init): g_error on
1030 activation exception
1032 2001-12-06 Michael Meeks <michael@ximian.com>
1034 * at-bridge/bridge.c (gtk_module_init): some sort of
1035 confusing merge clash - reverted.
1036 (bridge_idle_init): ditto.
1038 * test/test-simple.c (main, utterable_normal_derefs):
1039 merge from Bill - somehow not committed.
1041 2001-12-06 Michael Meeks <michael@ximian.com>
1043 * libspi/value.c (spi_value_class_init): upd.
1044 (spi_value_finalize): kill.
1046 * libspi/table.c (spi_table_finalize): kill.
1047 (spi_table_interface_new): upd.
1048 (spi_table_class_init): upd.
1049 (get_table_from_servant): impl.
1050 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1052 * libspi/selection.c (spi_selection_finalize): kill.
1053 (spi_selection_interface_new): upd.
1054 (spi_selection_class_init): upd.
1055 (get_selection_from_servant): impl.
1056 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1058 * libspi/relation.c (spi_relation_finalize): kill.
1059 (spi_relation_class_init, spi_relation_new): upd
1061 * libspi/image.c (spi_image_finalize): kill.
1062 (spi_image_class_init): upd.
1063 (spi_image_interface_new): upd.
1064 (get_image_from_servant): impl.
1065 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1067 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
1068 (spi_hyperlink_finalize): kill.
1069 (spi_hyperlink_new): upd.
1070 (get_hyperlink_from_servant): impl.
1071 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1073 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
1074 (spi_hypertext_finalize): kill.
1075 (spi_hypertext_class_init): upd.
1076 (get_hypertext_from_servant): impl.
1077 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1079 * libspi/editabletext.c (spi_editable_text_finalize): kill.
1080 (spi_editable_text_interface_new): upd.
1081 (get_editable_text_from_servant): impl.
1082 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1084 * libspi/text.c (get_text_from_servant): impl.
1085 All impls - update to use it killing more cut and paste,
1086 also fix bad string returns on duff args ( a somewhat
1087 impossible case to handle - but hey ).
1088 (spi_text_construct): impl.
1089 (spi_text_interface_new): upd.
1090 (spi_text_object_finalize): kill.
1092 * libspi/component.c
1093 (accessibility_component_object_finalize): kill.
1094 (spi_component_class_init): upd.
1095 (get_component_from_servant): impl. helper to kill cut & paste.
1096 (impl_accessibility_component_contains):
1097 (impl_accessibility_component_get_accessible_at_point):
1098 (impl_accessibility_component_get_position):
1099 (impl_accessibility_component_get_extents):
1100 (impl_accessibility_component_get_mdi_z_order):
1101 (impl_accessibility_component_get_layer):
1102 (spi_component_interface_new): upd.
1104 * libspi/action.c (spi_action_finalize): kill.
1105 (spi_action_class_init): upd. inherit from SpiObject.
1106 (spi_action_interface_new): upd.
1107 (get_action_from_servant): impl. helper to reduce cut & paste.
1108 (impl_getKeyBinding, impl_getName, impl_doAction),
1109 (impl_getDescription): Use it everywhere.
1111 * cspi/spi_main.c (get_live_refs): a pointer hash.
1112 (spi_object_hash, spi_object_equal): comment out.
1113 There are issues with CORBA object hashing that need
1116 * libspi/application.c (spi_application_init),
1117 (spi_application_new): upd.
1119 * libspi/accessible.c (spi_accessible_object_finalize): kill.
1120 (spi_accessible_class_init): upd.
1121 s/accessible/object/ in epv methods.
1123 2001-12-05 Bill Haneman <bill.haneman@sun.com>
1125 * at-bridge/bridge.c:
1126 Reorder the bridge initialization into the bridge gtk_module_init,
1127 an immediate call to bridge_register_app, and an idle_add for
1128 register_atk_event_listeners (the only code that *must* wait until
1129 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
1130 the activation, creates the application's Accessible object, and
1131 queues the bridge_idle_init function. Restored call to
1132 Accessibility_Registry_deregisterApplication().
1133 Prior to making this call we obtain a new reference to the
1134 registry, which is a temporary hack that helps us handle apps that
1135 shut down the bonobo mainloop before we get there.
1137 * libspi/registry.c:
1138 Fix string leakage in debug block, and don't segv if a an app
1139 dies before its event notifications have been propagated.
1142 Modify cspi_check_ev() to call g_warning() rather than g_error(),
1143 as stopgap measure until we get proper exception handling when
1144 objects die during or before interrogation.
1148 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
1149 Also changed default value of is_gnome_app to TRUE.
1152 * test/keysynth-demo.c:
1153 Changed use of SPI_init and SPI_event_main to reflect API change above.
1156 Made report_focus_event check the warning value from getName
1157 before reporting on focussed accessible; simplifies handling of
1158 notifications from dead objects.
1160 * test/test-simple.c: (Changes not in this patch since source is
1163 2001-12-05 Michael Meeks <michael@ximian.com>
1165 * registryd/registryd.c (main): protect against
1166 bonobo-activation startup race condition.
1168 * cspi/spi_main.c (cspi_object_add_check): cope
1169 with the exception elegantly.
1171 * idl/Accessible.idl: decl. ChildGone
1173 * libspi/desktop.c (spi_desktop_dispose): impl.
1174 (spi_desktop_class_init): upd.
1175 (spi_desktop_add_application),
1176 (spi_desktop_remove_application),
1177 (abnormal_application_termination): impl.
1178 (impl_desktop_get_child_at_index): re-impl.
1181 (impl_accessibility_registry_deregister_application),
1182 (impl_accessibility_registry_register_application):
1183 kill excessive debug clutter.
1185 * test/test-simple.c (test_misc): test some NULL
1186 tolerance. (main): upd.
1188 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
1189 implements no interfaces - so let's not crash.
1191 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
1193 * libspi/accessible.c (spi_accessible_new_return): impl.
1194 helper to calm the cut and paste, to cope with
1195 NULL AtkObjects effectively and efficiently, and to kill
1196 the referencing bugs.
1198 * libspi/table.c (impl_getAccessibleAt),
1199 (impl_getRowHeader, impl_getColumnHeader): upd.
1201 * libspi/hyperlink.c (impl_getObject): upd.
1203 * libspi/accessible.c
1204 (impl_accessibility_accessible_get_child_at_index): upd.
1206 * libspi/component.c
1207 (impl_accessibility_component_get_accessible_at_point): upd.
1209 * test/test-simple.c (test_editable_text, test_text): impl.
1212 * cspi/spi_editabletext.c
1213 (AccessibleEditableText_insertText): constify.
1215 * test/test-simple.c (focus_me): make more robust.
1217 * libspi/accessible.c: remove some printfs in methods that
1218 we test and work fine, so we can get a clean tree dump.
1220 * test/test-simple.c (validate_accessible),
1221 (validate_tree): make tree dumping pretty too.
1223 * at-bridge/bridge.c (bridge_signal_listener): upd. so
1224 it builds without debug on.
1226 * test/test-simple.c (validate_accessible): fix the most
1229 * cspi/spi_main.c (spi_object_release): leave the nicely
1230 blanked memory around if in debug mode.
1232 * cspi/spi-listener-impl.c (cspi_event): use add_check.
1234 [committed to fixups2]
1235 2001-12-05 Michael Meeks <michael@ximian.com>
1237 * libspi/editabletext.c
1238 (spi_editable_text_class_init): g_type_class_peek_parent,
1239 not interface peek - so we finalize cleanly.
1241 * libspi/accessible.c (spi_accessible_new): kill debug.
1243 * test/test-simple.c (validate_accessible): fix ref.
1244 leak, print strings before freeing them; sigh, comment a
1245 chunk out due to strangeness.
1246 (validate_tree): unref the child after use.
1248 * cspi/spi_component.c (AccessibleComponent_getLayer):
1249 add missing break statement, switch on zlayer not the
1250 uninitialized retval.
1252 * cspi/spi_main.c (cspi_object_add): add assert, local ref
1253 before (possibly re-entering) remote unref.
1255 * test/simple-at.c (main): unref the desktop.
1257 * cspi/spi_accessible.c (cspi_accessible_is_a): move
1260 * cspi/spi_main.c (cspi_accessible_is_a): here to
1261 isolate bonobo API usage more.
1263 * libspi/registry.c (impl_accessibility_registry_register_application):
1264 prune bogus comment.
1266 2001-12-04 Michael Meeks <michael@ximian.com>
1268 * test/test-simple.c (validate_tree): upd.
1269 IndexInParent check to make it more lucid.
1270 (validate_accessible): dump the tree.
1272 * libspi/accessible.c (de_register_public_ref),
1273 (get_public_refs): impl.
1274 (spi_accessible_new): make more efficient & intuitive.
1275 Now IndexInParent check works.
1277 2001-12-04 Michael Meeks <michael@ximian.com>
1279 * cspi/spi-util.h: remove.
1281 * cspi/spi.h: move SPI_freeString here
1283 * libspi/component.c (impl_accessibility_component_get_layer):
1285 (impl_accessibility_component_get_mdi_z_order): ditto,
1286 return -1 on error - is this ok ?
1288 * test/test-simple.c (test_application): impl.
1290 * cspi/spi_accessible.c (Accessible_getApplication),
1291 (Accessible_isApplication): impl.
1293 * libspi/registry.c (spi_listener_struct_free): release
1294 the CORBA reference too.
1296 * libspi/accessible.c
1297 (impl_accessibility_accessible_get_parent): fix ref leak.
1299 * libspi/registry.c (spi_registry_new): make the registry
1300 immortal - we don't want it to go away ever.
1302 * libspi/application.c
1303 (spi_accessible_application_finalize): impl. cleanup.
1305 * cspi/spi_registry.c
1306 (deregisterGlobalEventListenerAll),
1307 (deregisterGlobalEventListener),
1308 (deregisterAccessibleKeystrokeListener): fix ref leak.
1310 * cspi/spi_main.c (SPI_init): remove redundant ref.
1312 * test/test-simple.c (unutterable_horror): impl. to force a
1317 (impl_accessibility_registry_deregister_application): release
1318 the application when we de-register it.
1320 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
1321 until we have the infastructure to get it right.
1323 2001-12-03 Michael Meeks <michael@ximian.com>
1325 * libspi/Makefile.am: only build eventlistener.[ch]
1327 * libspi/accessible.c
1328 (impl_accessibility_accessible_get_child_at_index): don't leak.
1330 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
1331 before we hit the idle handler.
1333 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
1334 debugging than exit.
1336 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
1338 * libspi/listener.c (impl_notify_event): check source
1339 not NIL before unref.
1341 * libspi/registry.c (impl_registry_notify_event): ditto.
1343 * libspi/eventlistener.c
1344 (impl_accessible_event_notify_event): unref the source.
1346 * libspi/accessibleeventlistener.c
1347 (impl_accessible_event_notify_event): unref the source.
1349 * idl/Event.idl: remove 'hash_id' attribute - of no
1352 * libspi/application.c (notify_listeners): upd list
1354 (spi_application_object_event_listener),
1355 (spi_application_toolkit_event_listener): upd to do correct
1359 (_registry_notify_listeners): update.
1360 (parse_event_type): this method also leaks like a sieve.
1361 (impl_accessibility_registry_deregister_global_event_listener):
1362 fix ETYPE_WINDOW case.
1364 * libspi/application.c
1365 (impl_accessibility_application_register_object_event_listener):
1368 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
1370 * libspi/hypertext.c (impl_getLink): ditto.
1372 * cspi/spi_main.c (cspi_object_add): remove
1373 bogus CORBA_Object_duplicate.
1375 * cspi/spi-listener-impl.c (cspi_event): dup/ref
1378 * cspi/spi_accessible.c
1379 (Accessible_getRelationSet): fix leak / referencing issue.
1381 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
1382 (cspi_object_add, cspi_object_unref): upd.
1383 (spi_object_release, get_live_refs): impl.
1384 (cspi_cleanup): simplify.
1386 * *.[ch]: s/boolean/SpiBoolean/
1388 * cspi/spi_accessible.c (role_names): actualy order so it
1389 corresponds with the enum !
1391 * test/test-simple.c (test_roles): check some role strings
1392 vs. enums to detect offset errors.
1394 2001-12-01 Michael Meeks <michael@ximian.com>
1396 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
1398 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
1400 (Accessible_getChildAtIndex): use cspi_add_check so we
1401 check the ev before using a (possibly) invalid value.
1403 * libspi/accessible.c
1404 (impl_accessibility_accessible_get_parent): don't segv
1407 * at-bridge/bridge.c (gtk_module_init): upd.
1408 (bridge_property_event_listener): don't leak strings
1410 (bridge_state_event_listener),
1411 (bridge_property_event_listener): don't use a static
1412 buffer in case of recursive event emission &
1413 re-enterancy - split out the swathe of cut and paste
1415 (emit_eventv): and fix 2 ref leaks here & comply to the
1417 (bridge_register_app): rename to
1418 (bridge_idle_init): this and kill arg parsing, split
1419 various inits & bonobo-activation registration to module
1420 init time, kill referencing error.
1421 (bridge_exit_func): fix the same leak.
1422 (bridge_focus_tracker): don't leak event structures
1424 (bridge_signal_listener): more leakage and cut & paste
1426 (bridge_key_listener): return the result - FIXME is
1427 this polarity correct ?
1428 (accessibility_keystroke_from_atk_key_event): rename
1429 (accessibility_init_keystroke_from_atk_key_event): and stop
1431 (gtk_module_init): return a value - not that it is checked by
1433 (bridge_key_listener): register my horror at casting between
1434 IDL defined structs.
1435 (bridge_get_registry): kill - not used.
1437 * cspi/spi_accessible.c (Accessible_getRole): make return const.
1439 * test/test-simple.c (test_roles): impl.
1440 (test_desktop, validate_accessible, validate_tree): impl.
1442 * cspi/spi_accessible.c (role_names): fixup bogus
1443 MAX_ROLES setup, make constants const for efficient linkage
1444 (AccessibleRole_getName): conform to coding style, make
1447 2001-11-30 Michael Meeks <michael@ximian.com>
1449 * cspi/spi.h: add missing prototype.
1451 * libspi/registry.c (spi_listener_struct_new): fix sig.
1453 * test/Makefile.am: add test-simple
1455 * test/test-simple.c: add
1457 * test/test.sh: add.
1459 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
1461 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
1462 do it straight - since otherwise we often get an activation race.
1464 [ work before Bill duplicated a chunk of it ... ]
1465 2001-11-30 Michael Meeks <michael@ximian.com>
1467 * libspi/keystrokelistener.c
1468 (spi_keystroke_listener_class_init): fixup arg
1471 * libspi/eventlistener.c
1472 (spi_event_listener_class_init): ditto.
1474 * tests/test.sh: add.
1476 * cspi/spi-listener-impl.h: update macros.
1478 * cspi/spi-listener-impl.c
1479 (cspi_event_listener_remove_callback): add
1480 correct pre-conditions.
1482 * cspi/spi_main.c (SPI_exit): guard vs. double
1483 exits, exit the mainloop nicely.
1484 (SPI_event_main): make more sense.
1485 (SPI_init): move the atexit evilness here so we
1486 always do it (yuck).
1487 (SPI_event_main): upd.
1489 * test/simple-at.c: update for listener changes.
1491 * registryd/registryd.c (main): prune kruft.
1493 * libspi/libspi.h: upd.
1495 * libspi/eventlistener.[ch]: rename broken macros.
1497 * libspi/accessibleeventlistener.[ch]: remove.
1499 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
1501 * test/test-simple.c: Add - automated tests.
1503 * cspi/spi-listener-impl.c (cspi_event),
1504 (cspi_key_event): add user_data to invoke.
1505 (cspi_keystroke_listener_finalize): impl.
1506 (cspi_keystroke_listener_class_init): upd.
1509 (createAccessibleEventListener),
1510 (AccessibleEventListener_addCallback),
1511 (createAccessibleKeystrokeListener),
1512 (AccessibleKeystrokeListener_addCallback): upd.
1514 * libspi/deviceeventcontroller.c
1515 (spi_device_event_controller_check_key_event): add public proto.
1518 (impl_accessibility_registry_deregister_global_event_listener):
1519 always init listeners.
1520 (_registry_notify_listeners): yes it is.
1522 * cspi/spi-listener-impl.c (cspi_key_event):
1524 (cspi_event_listener_finalize): impl.
1525 (cspi_event_listener_class_init): hook up.
1526 (event_handler_new, event_handler_free),
1527 (event_list_remove_by_callback): impl.
1528 (cspi_event_listener_remove_callback),
1529 (cspi_keystroke_listener_remove_callback),
1530 (cspi_keystroke_listener_add_callback),
1531 (cspi_event_listener_add_callback): upd.
1533 * libspi/keystrokelistener.c
1534 (keystroke_listener_object_finalize): kill
1535 (spi_keystroke_listener_class_init): upd.
1536 (spi_keystroke_listener_add_callback),
1537 (spi_keystroke_listener_remove_callback): kill,
1539 (impl_key_event): prune drasticaly.
1541 * libspi/eventlistener.c
1542 (spi_event_listener_add_callback),
1543 (spi_event_listener_remove_callback): kill, use
1545 (impl_accessible_event_notify_event): upd.
1546 (spi_event_listener_object_finalize): remove.
1548 * libspi/Makefile.am: use eventlistener.[ch]
1550 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1552 * libspi/registry.c (_registry_notify_listeners):
1553 Changed listener loop iteration to use preferred convention.
1554 Got rid of string memory leaks caused be calling g_strconcat
1555 inside function calls.
1557 * libspi/registry.c (parse_event_type):
1558 Stopped g_strconcat memory leaks, free the g_strsplit return,
1559 g_strdup the split pieces when used, etc.
1561 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1564 Change method 'compare' to return a 'difference set' rather than
1565 taking a StateSet as an out parameter (more Java-friendly).
1567 * idl/Accessible.idl:
1568 Added CORBA struct 'BoundingBox', to faciliate API changes below:
1570 * idl/Component.idl:
1572 Changed methods 'getExtents' and 'getImageExtents' in these
1573 interfaces to return a BoundingBox structure.
1574 (getPosition and getSize are redundant and possibly should be
1575 removed, rather than creating a corresponding Point struct.)
1577 * cspi/spi_component.c:
1578 Modify implementation of getExtents to reflect the above IDL
1583 Add (missing) AccessibleImage_getExtents () API.
1585 * docs/reference/cspi/at-spi-cspi-sections.txt:
1586 Added AccessibleImage_getImageExtents () to docs.
1588 2001-12-03 Bill Haneman <bill.haneman@sun.com>
1590 * idl/Component.idl:
1591 Added two methods, getLayer () and getMDIZOrder (), to reflect
1592 the new ATK methods atk_object_get_layer and
1593 atk_object_get_mdi_z_order. (Which arguably should be part of the
1594 AtkComponent API and AtkObject). Also added an enum,
1595 ComponentLayer, for the first method's return value.
1597 * libspi/component.c:
1598 Added implementations for these methods.
1600 * cspi/spi_component.c:
1602 Added cspi binding methods for above,
1603 AccessibleComponent_getLayer() and
1604 AccessibleComponent_getMDIZOrder().
1605 Added cspi enum 'AccessibleComponentLayer'.
1607 * docs/reference/cspi/at-spi-cspi-sections.txt:
1608 Added above methods to docs.
1612 Changed typedef for 'boolean' type (and all references to it) to
1613 SPIBoolean, to avoid keyword clashes with C++.
1616 Changed usages of 'boolean' to SPIBoolean.
1618 * test/keysynth-demo.c:
1619 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
1620 app), except where SPIBoolean is required by the callbacks API.
1622 2001-12-02 Bill Haneman <bill.haneman@sun.com>
1624 * cspi/spi_registry.c:
1625 Removed obsolete X event loop for passive keygrabs (which now
1628 * registryd/registryd.c:
1629 Removed unnecessary call to gdk_init() [cruft]. This also allows
1630 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
1633 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1635 * docs/reference/cspi:
1636 Included docs for SPI_freeString in generated documentation.
1639 Renamed spi_freeString to SPI_freeString, for consistency. Added
1640 documentation for this function.
1643 Renamed spi_freeString to SPI_freeString, for consistency.
1644 Removed obsolete method declaration string_from_corba_string.
1646 * test/keysynth-demo.c:
1647 Small tweak to comments.
1650 Stopped leaking the strings returned from CSPI.
1652 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1654 Merged Michael's branch (see his ChangeLog entries below).
1656 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
1657 bridge is alive, release on exit.
1659 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
1660 Fix type check macro.
1663 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
1666 Added is_gnome_app static, and method cspi_is_gnome_app(),
1667 so we can call the appropriate shutdown routine at exit in SPI_exit.
1669 * cspi/spi_main.c (cspi_object_ref):
1670 Duplicate the corba object passed in, since we're keeping it around.
1672 * cspi/SPI_exit.c, cspi_cleanup:
1673 Moved the releasing of the live refs to its own function, so we
1674 can put it in g_atexit (). Call the appropriate shutdown API
1675 depending on whethe calling client is a gnome app or not
1676 (bonobo_main_quit or CORBA_ORB_shutdown).
1678 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
1679 Unref the listener when this method is called, after
1680 deregistration. Updated the API docs to note this behavior.
1682 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
1683 Bugfixes: Ref the bonobo object when returning a parent or child
1684 reference, or an AccessibleRelation. Generally made sure
1685 BonoboObject refcount is incremented whenever we return an
1688 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
1689 Fixed typo/bug in signal declaration.
1691 * libspi/accessibleeventlistener.h:
1694 * libspi/application.c (spi_application_new):
1695 Fixed leak in initialization.
1698 Remembered to increment bonobo-object refcount when returning
1699 children (applications) from desktop object.
1700 Added (empty) finalize method.
1702 * libspi/deviceeventcontroller.c:
1703 Hold a ref to listeners inside DEControllerKeyListeners.
1704 Added dec_key_listener_free() method. Use prepend instead of
1705 append in key_listener list. Fixed some refcount madness and
1706 leaks in the listener registration/deregistration - deregistration
1707 now calls dec_key_listener_free() on listeners, and on the
1708 temporarily constructed dec_key_listener() used to perform the search/match.
1710 * libspi/hypertext.c (spi_hypertest_finalize):
1711 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
1712 class. Also fixed spi_hypertext_interface_new() and
1713 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
1715 * libspi/hypertext.h:
1716 Removed pointless and duplicate AtkObject pointer from
1719 * libspi/keystrokelistener.c:
1720 Fixed incorrect type of keystroke_listener_parent_class,
1721 renamed keystroke_listener_object_finalize to
1722 spi_keystroke_listener_object_finalize.
1723 Fixed typo in signal declaration
1724 (spi_keystroke_listener_class_init).
1726 * libspi/registry.c:
1727 Added funcsions spi_listener_struct_new() and
1728 spi_listener_struct_free() to help with memory management issues.
1729 We also now use these methods instead of gnew + poking stuff into
1730 the struct, and to decrement listener counts/free the listeners
1731 when deregistering them.
1732 Fix more refcount bugs in getDesktop() and
1733 getDeviceEventController().
1736 De-ref the desktop after enumerating the applications. Explicitly
1737 decrement the refcounts on the created listeners on exit (using
1738 _unref for keystroke listeners, and via the
1739 deregisterGlobalEventListenerAll command for other event
1742 2001-11-27 Michael Meeks <michael@ximian.com>
1744 * cspi/spi-listener.h: fixup enum.
1746 2001-11-27 Michael Meeks <michael@ximian.com>
1748 * cspi/spi-listener-impl.c (cspi_event_listener_new),
1749 (cspi_keystroke_listener_new): Use the cspi variants.
1751 2001-11-26 Michael Meeks <michael@ximian.com>
1753 * test/keysynth-demo.c: fix 2 compile warnings, missing
1756 * test/simple-at.c (report_focussed_accessible),
1757 (report_focus_event, report_button_press),
1758 (check_property_change, is_command_key),
1759 (report_ordinary_key_event, report_command_key_event): upd.
1761 * util/mag_client.h: include pre-requisites.
1763 * libspi/accessibleeventlistener.c
1764 (spi_event_listener_object_finalize): free any lingering
1767 * libspi/keystrokelistener.c
1768 (keystroke_listener_object_finalize): ditto.
1770 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
1771 callbacks, with cspi types.
1773 * cspi/spi_event.c (createAccessibleEventListener): chain to
1774 (AccessibleEventListener_addCallback): here.
1775 (createAccessibleKeystrokeListener): chain to
1776 (AccessibleKeystrokeListener_addCallback): here.
1778 * libspi/keystrokelistener.c
1779 (spi_keystroke_listener_class_init): add signal.
1780 (impl_key_event): emit the event.
1781 (boolean_handled_accumulator): impl.
1782 (marshal_BOOLEAN__POINTER): add, gack.
1784 * libspi/accessibleeventlistener.c
1785 (spi_event_listener_class_init): add signal.
1786 (impl_accessible_event_notify_event): emit the signal &
1787 make the loop efficient.
1788 (spi_event_listener_add_callback): prepend the callback.
1790 * libspi/accessibleeventlistener.h: add an 'event' signal,
1791 decl type on callback.
1793 * libspi/keystrokelistener.h: ditto.
1795 * cspi/spi-listener.h: make methods typesafe and
1796 make them use the new event typedefs.
1798 * test/simple-at.c (report_focussed_accessible):
1799 include mag_client.h
1800 Use *(void *)text_interface not the other thing.
1802 * configure.in: add gtk to registryd bits - since we use
1805 * util/magnifier.c: include libbonobo.h
1807 2001-11-25 Bill Haneman <bill.haneman@sun.com>
1809 * test/keysynth-demo.c:
1810 Turned this into a simple scanning keyboard, to demonstrate the
1811 use of g_timeout_add () as a means of creating timers for
1812 scanning, and the use of GtkStyle for visually indicating when
1813 virtual keyboard elements are selected.
1815 keysynth-demo now listens to any keyboard keys with zero-valued
1816 keycodes (i.e. 'unused' keys) and interprets them as
1819 Reworked the shiftlatch code so that shift-down state isn't held
1820 for long periods (it's only synthesized immediately prior to
1821 the keysynth event it's modifying). Note that shiftlatch in this
1822 demo is a convenience, not intended to take the place of AccessX
1823 which is the better choice for getting 'sticky' modifier keys.
1825 * libspi/deviceeventcontroller.c:
1826 * at-bridge/bridge.c:
1827 * cspi/spi_registry.c:
1828 Removed some debug print stuff, and put other verbosity in #ifdef
1833 Implemented some more of the magnifier IDL for the simple
1834 magnifier: namely, getZoomRegionParams.
1835 Added mag_x and mag_y members to MagnifierData struct, aid of this
1837 Added GtkWindow::realize signal handler to magnifier, to keep it
1838 from receiving keyboard focus from the WM.
1840 2001-11-23 Mark McLoughlin <mark@skynet.ie>
1842 * cspi/spi-private.h: my guess at what michael forgot
1843 before he ran off to NZ :-)
1845 2001-11-23 Michael Meeks <michael@ximian.com>
1847 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
1848 comment out non existant method invoke so we link.
1850 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
1851 use bonobo_exception_get_text for more friendly warnings.
1853 * cspi/spi.c (Obj_Add): move into spi_main & rename
1854 spi_object_add; kill spi.c
1856 * cspi/spi_registry.c
1857 (deregisterGlobalEventListener),
1858 (deregisterGlobalEventListenerAll),
1859 (registerGlobalEventListener): fix exception leaks.
1861 * cspi/spi_main.c (spi_exception): impl. helper, so we
1862 don't leak exceptions.
1864 * cspi/spi_selection.c
1865 (AccessibleSelection_deselectSelectedChild): return the
1868 * cspi/spi_main.c (spi_ev): impl; hack - gack.
1869 (spi_registry): ditto.
1870 (SPI_init): guard against double inits.
1872 * cspi/*.c: use spi_ev (), and spi_registry () where
1873 appropriate - a temporary hack until we have something
1874 better. Use spi_object_add
1876 2001-11-22 Michael Meeks <michael@ximian.com>
1878 * cspi/Makefile.am: re organise, install the headers.
1880 * cspi/*.h: add G_BEGIN/END_DECLS
1882 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1885 Added non-preemptive keylistener for key events with no modifiers
1886 and shift-only modifier.
1888 * libspi/keystrokelistener.c:
1889 Removed some verbose diagnostics printout.
1891 * cspi/spi_registry.c:
1892 Fixed a bug that caused all key listeners to be registered as
1895 * libspi/deviceeventcontroller.c:
1896 Fixed bug that caused XGrabKey (preemptive key grab) to be called
1897 for non-preemptive key masks.
1900 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1902 * docs/reference/idl/at-spi-idl-docs.sgml:
1903 * docs/reference/idl/at-spi-idl-sections.txt:
1904 * docs/reference/idl/at-spi-idl-overrides.txt:
1905 Added missing files.
1907 * docs/reference/Makefile.am:
1908 removed idl from SUBDIRS until we can figure a way to get gtk-doc
1909 to scan the IDL files :-(
1914 Added .cvsignore files.
1916 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1918 * libspi/deviceeventcontroller.c:
1919 * libspi/keystrokelistener.c:
1921 * cspi/spi_registry.c:
1922 Added filters for KeySets, KeyEventSeq, and event types to key
1923 event dispatching, so listeners should only receive those events
1924 that they requested :-)
1926 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1931 * docs/reference:Makefile.am:
1932 * docs/reference/cspi:
1933 * docs/reference/cspi:Makefile.am:
1934 * docs/reference/cspi:tmpl:
1935 * docs/reference/cspi:tmpl:*.sgml:
1936 * docs/reference/idl:
1937 * docs/reference/idl:Makefile.am:
1938 * docs/reference/idl:at-spi-idl-sections.txt:
1939 * docs/reference/idl:at-spi-idl-docs.sgml:
1940 * docs/reference/idl:tmpl:
1941 * docs/reference/idl:tmpl:*.sgml:
1943 Restructured docs directory to allow separate 'reference' docs
1944 section, and forked idl and cspi docs. Added the sgml template
1945 files to CVS. Added the first sections/structural sgml for the
1948 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
1950 * configure.in, libspi/Makefile.am: find libXtst.
1952 2001-11-21 Michael Meeks <michael@ximian.com>
1954 * test/accessx-gui.c: s/spi_value/value/ - doh.
1956 * libspi/base.[ch]: add.
1958 2001-18-11 Bill Haneman <bill.haneman@sun.com>
1960 * idl/Accessible.idl:
1961 * idl/Application.idl:
1964 Started gtk-doc cleanup on IDL.
1966 * libspi/deviceeventcontroller.c:
1967 Added and connected non-preemptive key notification from the
1968 toolkits (in addition to the pre-emptive support from XServer
1969 which we had before, but which causes 'focus flashing'). Filters
1970 are presently limited to key modifiers and global/non-global,
1971 KeySets are presently ignored, as are KeyEvent masks.
1973 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
1974 structs into the persistant structure rather than just storing
1975 pointers to things that might not persist across servant
1978 The XGrabKey call now does async keygrabs, because synchronous
1979 ones were deadlocking with GDK_event code in a very nasty way.
1981 Added boolean to internal method notify_keylisteners, to indicate
1982 whether the event came from the 'toolkit source' or the 'global
1983 (XServer) source' - this is used in the notification process to
1984 determine which listeners to send the event to.
1986 deviceeventcontroller.c is now warning-free.
1988 * libspi/registry.c:
1989 Fixed regression in application de-registration.
1990 Also fixed some really brain-dead weirdness having to do with
1991 event dispatching - event structs are now duplicated before being
1992 re-marshalled in the dispatch to listeners. This also fixes a
1993 Solaris build problem.
1996 2001-20-11 Michael Meeks <michael@ximian.com>
1999 (impl_accessibility_registry_deregister_global_event_listener):
2002 * libspi/deviceeventcontroller.c
2003 (spi_device_event_controller_check_key_event): return
2004 FALSE on no virtual method.
2006 * libspi/*..h: make includes work on a correctly pathed install.
2008 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
2010 * libspi/application.h: kill unused ( and whacked out )
2011 gboolean *spi_application_set_id (AtkObject *app, long id);
2013 2001-20-11 Michael Meeks <michael@ximian.com>
2015 * libspi/*.[ch]: further convert to bonobo's type func
2016 macros, remove redundnant casts etc.
2018 * libspi/text.c s/accessibility_text/spi_text/g,
2019 re-order to de-cruft.
2021 * libspi/hypertext.c: re-order to kill a huge slew
2022 of redundant forward decls.
2024 * libspi/relation.c: ditto.
2026 * libspi/image.c: ditto.
2028 * */.cvsignore: update
2030 2001-20-11 Michael Meeks <michael@ximian.com>
2032 * libspi/deviceeventcontroller.c
2033 (_controller_register_with_devices): use g_getenv,
2034 kill stdlib.h include.
2036 * libspi/keystrokelistener.c
2037 (spi_keystroke_listener_get_type): kill
2038 (spi_keystroke_listener_class_init),
2039 (spi_keystroke_listener_init): rename to this.
2041 * libspi/text.c (impl_getAttributes): fix warning / bug.
2043 * libspi/*.[ch]: more headers, includes and over commenting.
2045 2001-20-11 Michael Meeks <michael@ximian.com>
2047 * libspi/*.[ch]: fixup headers, includes and over commenting.
2049 * libspi/image.c (impl__get_imageDescription): const
2050 correctness warning fix. remove redundant casting.
2052 * libspi/table.c (impl_getRowDescription): ditto.
2053 (impl_getColumnDescription): ditto.
2055 * libspi/libspi.h: add.
2057 2001-19-11 Michael Meeks <michael@ximian.com>
2059 * libspi/editabletext.c (impl_setAttributes): fix warnings.
2061 * libspi/component.c (accessibility_component_get_type):
2062 rename to (spi_component_get_type): and macroify.
2063 (accessibility_component_init): rename to
2064 (spi_component_init): this
2065 (accessibility_component_class_init): rename to
2066 (spi_component_class_init): this
2068 * libspi/action.c (spi_action_get_type): kill, use the macro.
2070 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
2073 * libspi/application.c (spi_application_object_event_listener),
2074 (impl_accessibility_application_register_object_event_listener):
2075 warning fixes / const understanding updates.
2077 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
2080 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2082 * libspi/spi_accessible.c: Added docs and C bindings for
2083 AccessibleStateSet. (No implementations yet). Documentation
2084 coverage for C bindings now 100%. Made docs for event listeners
2089 boolean notifyListenersSync (in DeviceEventListener listener,
2090 in DeviceEvent event);
2092 oneway void notifyListenersAsync (in DeviceEventListener listener,
2093 in DeviceEvent event);
2095 Added DeviceEventListener and DeviceEvent structs (may deprecate
2096 KeyStroke and KeystrokeListener in favor of this generic
2097 event/listener framework for devices).
2099 * libspi/deviceeventcontroller.c:
2101 Changed some key listener code to take masks, etc., and paved the
2102 way for integration of toolkit/non-preemptive key events. Changed
2103 signatures of some internal methods.
2105 * at-bridge/bridge.c:
2106 Fixed regression connecting to interface signals, apparently
2107 caused by GTK+ changes.
2109 Added an internal bridge_state_listener to deal with
2110 property-change:accessible-state signals.
2112 Changed the key_listeners GList to store structs (including masks,
2113 etc.) instead of just CORBA_Objects (required for full
2114 implementation of key listener API).
2116 Connected the bridge to all currently supported Atk signals.
2117 Events now supported:
2118 object:property-change
2119 object:property-change:accessible-name
2120 object:property-change:accessible-state
2121 object:property-change:accessible-description
2122 object:property-change:accessible-parent
2123 object:property-change:accessible-value
2124 object:property-change:accessible-role
2125 object:property-change:accessible-table-caption
2126 object:property-change:accessible-table-column-description
2127 object:property-change:accessible-table-column-header
2128 object:property-change:accessible-table-row-description
2129 object:property-change:accessible-table-row-header
2130 object:property-change:accessible-table-summary
2131 object:children-changed
2132 object:visible-data-changed
2133 object:selection-changed
2134 object:text-selection-changed
2136 object:text-caret-moved
2138 object:row-reordered
2140 object:column-inserted
2141 object:column-reordered
2142 object:column-deleted
2143 object:model-changed
2145 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2147 * libspi/hyperlink.c,h:
2148 Fixed some broken stuff in hyperlink.
2150 * libspi/relation.h:
2151 * libspi/relation.c:
2152 * cspi/spi_accessible.c:
2153 Initial implementations of AccessibleRelation methods, and docs.
2155 * libspi/accessible.c:
2156 Fixed a bug that caused SEGV if an accessible
2157 object's description is NULL, and a client
2158 requests it. An empty string is now returned.
2160 * cspi/spi_editabletext.c:
2161 * cspi/spi_hypertext.c:
2163 * cspi/spi_hyperlink.c:
2167 Doc coverage now 95%.
2169 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2171 One last namespacing revision:
2172 * libspi/accessibleeventlistener.[ch]:
2173 Renamed SpiAccessibleEventListener to SpiEventListener,
2174 (no need for two namespaces ;-)
2176 And lots of documentation fixes:
2178 * docs/at-spi-docs.sgml:
2179 Fixed 'underscore vs. hyphen' bug that was preventing
2180 the gtk-doc API docs from being automatically generated.
2183 * cspi/spi-listener.h
2185 * cspi/spi_accessible.c
2187 * cspi/spi_application.c
2188 * cspi/spi_component.c
2189 * cspi/spi_editabletext.c
2191 * cspi/spi_hypertext.c
2193 * cspi/spi_registry.c
2194 * cspi/spi_selection.c
2198 * docs/at-spi-docs.sgml
2199 * docs/at-spi-sections.txt
2201 Added and fixed up gtk-doc documentation in cspi.
2203 Interfaces now (fully) documented (subject to revision and enhancement):
2205 Event Listener Support
2207 AccessibleApplication
2211 AccessibleEditableText
2218 AccessibleRelationSet
2223 2001-14-11 Bill Haneman <bill.haneman@sun.com>
2225 * at-bridge/bridge.c:
2226 Initial work for toolkit-level key snooper connection by bridge.
2231 New typedefs and fixes to support new namespacing, and cleaner
2232 separation of cspi bindings from libspi bonobo implementation.
2233 Removed inconsistent and extraneous Spi* namespace prefix that
2234 had crept into cspi headers.
2235 Lots of comment fixes that sed had missed.
2237 * cspi/spi-roletypes.h:
2238 * cspi/spi-statetypes.h:
2239 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
2240 to AccessibleRoleType.
2242 * libspi/accessibleeventlistener.h:
2243 Fixed minor namespacing weirdness.
2245 * libspi/deviceeventcontroller.c:
2246 Reordered some internal API for device listeners.
2247 Changed the key registry final boolean to 'is_system_global'
2248 rather than 'is_synchronous', which is more descriptive of its
2250 Added spi_device_event_controller_new().
2251 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
2253 * libspi/keystrokelistener.[ch]:
2254 Namespaced KeystrokeListener to SpiKeystrokeListener.
2255 Changed uses of keymasks to use SPI_ prefix, and did other
2258 * libspi/keymasks.h:
2259 Namespaced keymask constants with SPI_ prefix.
2261 * libspi/registry.c:
2262 Some warning fixes, and knock-on fixes from namespace changes.
2265 Added rules for accessx-gui test program.
2267 * test/accessx-gui.c:
2268 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
2269 utility. It doesn't actually use at-spi, but it's still cool and
2272 * test/keysynth-demo.c:
2276 Fixes so that these test clients work properly with the namespaced
2277 libraries. (Incompletely tested for technical reasons, fixes may follow)
2280 2001-13-11 Michael Meeks <michael@ximian.com>
2282 * libspi/application.c
2283 (impl_accessibility_application_get_version),
2284 (impl_accessibility_application_get_toolkit_name):
2286 (impl_accessibility_application_set_id),
2287 (impl_accessibility_application_get_id): remove
2288 redundant casting code.
2290 * libspi/action.c (impl_getDescription): fix warnings.
2292 * libspi/accessible.c
2293 (impl_accessibility_accessible_get_parent),
2294 (impl_accessibility_accessible_get_child_at_index),
2295 (impl_accessibility_accessible_get_state),
2296 (impl_accessibility_accessible_get_relation_set):
2297 warning fixes & include action.h
2299 2001-13-11 Michael Meeks <michael@ximian.com>
2301 * *.[ch] fix bits I screwed up:
2303 s/([^ \tb(\*\&\?\",])spi_/\1/g;
2304 s/([^ \tb(\*\&\?\",])Spi/\1/g;
2306 2001-13-11 Michael Meeks <michael@ximian.com>
2308 * *.[ch] Namespace libspi into spi_ and Spi.
2310 2001-13-11 Michael Meeks <michael@ximian.com>
2312 * Makefile.am: dist & install at-spi-1.0.pc
2314 * libspi/Makefile.am: install into at-spi-1.0
2316 * idl/Makefile.am (idldir): install into at-spi-1.0
2318 * at-spi-1.0.pc.in: add.
2320 * configure.in: build it.
2322 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2324 * test/keysynth-demo.c:
2325 Use a 'realize' signal-handler to set the WM properties for
2326 the virtual keyboard, rather than making it a "POPUP" type
2327 override-redirect window (thanks to anders carlsson for that
2330 2001-11-11 Bill Haneman <bill.haneman@sun.com>
2333 * test/keysynth-demo.c:
2334 Added new test of key synthesis, which creates a simple
2335 (mouse-operated) onscreen keyboard. It inserts key events into
2336 the currently-focused window, thus it does not grab keyboard focus
2339 * cspi/spi_registry.c:
2340 Added C binding for AT-SPI generateKeyEvent.
2342 * libspi/deviceeventcontroller.c:
2343 Added call to XFilterEvent so that key listener works with XIM (we
2344 hope). Added event_synth_type to generateKeyEvent, so that we can
2345 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
2346 synthesize a press/release pair for KeySyms.
2348 2001-11-09 Bill Haneman <bill.haneman@sun.com>
2350 * libspi/Makefile.am:
2351 * registryd/Makefile.am:
2352 (temporary) hack to include libXtst in libspi and registryd.
2353 (Needed for keystroke synthesis, see below).
2356 Improved API for registerKeystrokeListener, in accordance with
2357 discussions with Gnopernicus team and X server research.
2359 * libspi/registry.c:
2360 * libspi/deviceeventcontroller.c:
2361 * libspi/accessible.c:
2362 * libspi/keystrokelistener.c:
2363 Changes and fixes to support keylisteners for potentially
2364 consumed key events (that is, 'passive grabs').
2365 Added implementation for generateKeyEvent() [untested].
2368 Changes to registerKeystrokeListener() API, as above.
2369 Added deregisterGlobalEventListenerAll(), and
2370 deregisterKeystrokeListener(), which are needed for clean exit of
2372 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
2373 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
2375 * cspi/spi_registry.c:
2376 Added implementations of function prototypes mentioned above.
2378 * registryd/registryd.c:
2379 Added the key listener event source as a g_timeout(), to allow
2380 receipt of key events that are not caught by GDK (since GDK
2381 doesn't support passive keygrabs, this was necessary).
2384 Changed to attach a keylistener to 'Alt' keys, and
2385 respond to the following keycommands: Alt-M (toggle magnifier);
2386 Alt-F (toggle speech); Alt-Q (quit).
2387 Added an exit routine to deregister the listeners, and a key
2388 listener that prints some key info to the console when a key
2389 matches the listener mask (and is thus received by the listener).
2391 * util/idl/Magnifier.idl:
2392 Changes to magnifier API to support multiple zoom regions,
2393 non-uniform scaling in x and y, markDirty, and a host of other
2394 features that would be useful to magnification.
2397 * util/mag_client.c:
2398 * util/mag_client.h:
2399 * util/mag_control.c:
2401 Source code changes to support the above IDL changes.
2404 As above, and also changes to use a (slower) generic conversion
2405 path for colormap conversions, since the fast RGB conversions have been
2406 reported to fail for 16-bit displays.
2408 2001-10-26 Michael Meeks <michael@ximian.com>
2410 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
2412 <2001-10-26 Laszlo Peter <laca@ireland.sun.com>
2414 * at-bridge/Makefile.am: fix LDFLAGS.
2416 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2418 * at-bridge/bridge.c:
2419 Re-worked listeners for toolkit events, now we have signal
2420 and property listeners. Added a private method
2421 register_atk_event_listeners(), which registers with the
2422 various atk and gtk signals we need to monitor in order to emit
2424 Added emission hook for AtkObject:property-change events, to
2425 support the 'property listeners'.
2426 Fixed some alloc()s of Accessibility_Event structs to use CORBA
2429 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
2430 which emit warnings and exit, respectively, if CORBA errors occur
2431 during remote calls, and we now use these methods to check most of
2432 our CORBA calls in the C bindings.
2434 * cspi/spi_accessible.c:
2435 Changed AccessibleSelection_refSelectedChild() to
2436 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
2437 now increment refcounts.
2439 * cspi/spi_component.c:
2440 Fixed some long pointer casts (dangerous!) to pass pointers to
2441 CORBA_longs of the proper type to the CORBA stubs, and copy the
2442 data into the longs that were passed into the C bindings code.
2444 * at-bridge/bridge.c:
2446 * libspi/accessible.c:
2447 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
2448 hyperlinks, AtkHyperlink is an object type.
2450 * libspi/application.c:
2451 Added various conversions to and from "generic" event types and
2452 atk-specific types; this is really part of the 'bridge'
2453 implementation but is valid for all AtkObject-based accessibility
2456 * libspi/editabletext.c:
2457 Fixed nasty bug wherein editable text's finalize method was
2458 unref'ing tha AtkObject reference that the text parent class was
2459 about to unref _again_. There was also a nasty inheritance bug
2460 that meant that the AccessibleEditableText class was corrupt.
2462 * libspi/selection.c:
2463 Provided implementations for some selection API that was broken.
2465 * idl/Application.idl:
2466 Added registerObjectEventListener () method.
2469 Fixed a number of return values that were Bonobo_Unknowns from
2470 bonobo_object_corba_objref(), which I
2471 forgot to dup before returning. Changed instances of
2472 bonobo_object_corba_objref (bonobo_object(o)) to
2473 BONOBO_OBJREF(o), for concision and clarity.
2475 <2001-10-13 Louise Miller <louise.miller@sun.com>
2477 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
2478 idl/Event.idl, idl/Registry.idl
2479 Changed these files to include Bonobo_Unknown.idl instead
2482 <2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
2484 * libspi/component.c libspi/component.h:
2485 Fixed typo. Added assertions for object checks in
2486 AccessibleComponent code.
2488 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2490 * idl/Accessible.idl:
2491 Added 'isEqual (Accessible *object)'
2492 method for Accessible. (Not Yet Implemented).
2495 Changed signature of registerKeystrokeListener() to
2496 take a KeySet and KeyEventSeq so that specific keys and event
2497 types could be requested for monitoring, and added a flag
2498 is_synchronous so that either synchronous or asynchronous
2499 notification could be requested. (However this is not all
2500 implemented yet). This also meant adding two new typedefs,
2501 KeyEventSeq and KeySet.
2504 Added two new relations, RELATION_TOOLTIP_FOR and
2505 RELATION_LEAFNODE_OF.
2508 Added new state, STATE_HAS_TOOLTIP.
2510 * libspi/text.c, editabletext.c:
2511 Added new assertions to all casts of bonobo-objects from
2512 CORBA servants, to prevent Text API calls on non-text objects.
2513 Changed suspect casts of int-pointer types, so that we
2514 always send a valid CORBA_long pointer to the CORBA APIs that use
2515 in/out long parameters. We then have to copy from the CORBA_long
2516 into the regular long or int for return to the C bindings, or
2517 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
2520 * libspi/deviceeventcontroller.c:
2521 Cleaned these sources up.
2523 Changed return type for getCharacterAtOffset to
2524 CORBA_unsigned_long, to allow for 32-bit characters.
2527 <2001-10-08 Bill Haneman <bill.haneman@sun.com>
2531 Fixed 'make dist' so that distro compiles...
2532 * libspi/keymasks.h:
2534 * cspi/spi-listener.c:
2535 KeystrokeListenerCB now returns a boolean.
2537 Added KeyEventType struct, and KeyStroke.
2538 Also added createKeystrokeListener(),
2539 KeystrokeListener_addCallback(),
2540 KeystrokeListener_removeCallback(), and added a keymask to
2541 registerKeystrokeListener().
2542 * cspi/spi_accessible.c:
2543 Changed numerous return types for interfaces from
2544 AccessibleComponent to Accessible<InterfaceName>; this was
2545 probably a cut-and-paste error.
2547 Implementations of new KeystrokeListener api (from spi.h,
2550 Changes to key modifier mapping.
2551 Created ControllerEventMask struct.
2552 Made DeviceEventController derive from Bonobo::Unknown.
2554 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
2555 * libspi/deviceeventcontroller.c:
2556 Added a number of new internal (private) methods.
2557 * libspi/editabletext.c:
2558 * libspi/editabletext.h:
2559 Fixed a number of bugs related to the fact that
2560 editabletext inherits from text. Fixed the EditableText struct,
2561 the init() call, and use correct casts when calling Text methods
2562 from an EditableText object. Removed (duplicate) atko from the
2563 EditableText structure, we use the one in the parent Text
2564 structure via the casts mentioned above.
2565 * libspi/keystrokelistener.[ch]:
2566 * libspi/registry.c:
2567 Changes in support of keyboard handling (above).
2569 Keyboard handling, though partly functional, is still not
2570 recommended for at-spi client use as there is considerable
2571 work yet to be done.
2574 Changed some places where pointers to various int types
2575 are cast to be pointers to CORBA_long types and vice-versa:
2576 pointer casting is not safe so we pass pointers of the correct
2577 types and then cast the result before putting it into the target
2580 * libspi/text.h: minor typos corrected.
2582 We now speak not only the name of a Text element, but the
2583 first sentence of its content, when it receives focus.
2584 I also changed the text compression to 75% from 50%.
2585 * util/Accessibility_Util.server.in:
2586 Changed the default magnifier type to be a 3x vertical
2587 splitscreen magnifier (was previously a 2x horizontal one).
2589 <2001-10-03 Bill Haneman <bill.haneman@sun.com>
2591 * libspi/keystrokelistener.h:
2592 * libspi/keystrokelistener.c:
2593 Initial functional implementations of KeystrokeListener.
2596 <2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
2598 Fixed string handling for NULL strings in libspi.
2599 Added spi_freeString to free strings returned by C bindings.
2601 <2001-09-30 Bill Haneman <bill.haneman@sun.com>
2603 * libspi/keystrokelistener.h:
2604 * libspi/keystrokelistener.c:
2605 Began (no-op) implementations of KeystrokeListener
2607 * libspi/deviceeventcontroller.c:
2608 * libspi/deviceeventcontroller.h:
2609 Began creating implementations of DeviceEventController,
2610 to handle keystroke and mouse event listening and
2612 * libspi/accessible.c:
2613 Stubbed-in the implementations for
2614 Accessibility_Accessible_getState and
2615 Accessibility_Accessible_getRelationSet.
2616 * libspi/registry.c:
2617 Improved de-registration process and fixed some bugs,
2618 deregistration now works correctly.
2620 Added initialization of applications list (to NULL).
2622 Reduced speech compression from 0.5 to 0.7, for demo.
2623 Changed call to gdk_window_set_decorations()
2624 to gtk_window_set_decorated().
2625 * at-bridge/bridge.c:
2626 Bridge now deregisters when app exits, via
2627 registration of a cleanup function
2628 with the g_atexit() call.
2629 Required making 'app' static, renamed 'this_app'.
2630 Fixed broken use of bonobo_init, passing argv wrongly.
2632 <2001-09-27 Bill Haneman <bill.haneman@sun.com>
2636 Created a new directory for
2637 accessibility-related utilities, primarily for
2638 testing and demo purposes, but with possible
2645 Onscreen magnifier utility that
2646 is implemented as a bonobo service.
2648 * util/mag_client.c:
2649 * util/mag_client.h:
2650 Client-side support (simple C bindings)
2651 for Magnification service
2653 * util/mag_control.c:
2654 Client program example for
2655 Magnification service
2657 * util/Accessibility_Magnifier.server.in:
2658 Bonobo-activation file for the
2659 Magnification service.
2662 * util/idl/Magnifier.idl:
2663 IDL defining the bonobo Magnification
2667 Modifications to use the bonobo-activated magnifier
2668 above, in place of trying to connect to an existing
2669 magnifier that uses socket-listening IPC.
2671 If env variable MAGNIFIER is set, a magnifier service
2672 will be started if one does not exist.
2674 <2001-09-25 Bill Haneman <bill.haneman@sun.com>
2675 * at-bridge/bridge.c:
2676 applied patch from Marc to build and run
2677 against new glib and gtk+ (seemed like a change
2678 to bonobo_init signature was made ?)
2680 made festival-server support turned off by default.
2681 Added support for a simple magnifier (off by default)
2682 which will be added to a 'util' directory later.
2683 * at-bridge/Makefile.am:
2684 Changed "application.h" header from a 'source'
2685 to a 'dependency' of libat-bridge.
2687 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2695 Added interface implementation c files to list of
2696 includes so they are included in libcspi.
2699 Changed prototype of AccessibleAction_doAction to return a
2701 Changed prototype of AccessibleTable_getCaption to
2702 return an Accessible.
2703 Changed prototype of AccessibleTable_getSelectedRows
2704 and AccessibleTable_getSelectedColumns to
2705 return a long (returns the number of selected rows
2706 or columns respectively).
2707 Changed name of AccessibleText_refRunAttributes to
2708 AccessibleText_getAttributes.
2709 Changed prototype of AccessibleText_getCharacterExtents to
2710 return a void rather than a boolean.
2711 Added support for a AccessibleCoordType parameter
2712 specifying what type of coordinates are desired.
2713 Added an AccessibleCordType parameter to
2714 AccessibleText_getPointAtOffset.
2716 * cspi/spi_accessible.c:
2717 Added code to return the outstanding interfaces from
2718 Accessible_queryInterface.
2720 * cspi/spi_action.c:
2722 Corrected call to getNActions to call the c binding
2725 * cspi/spi_editabletext.c:
2727 Changed name from setRunAttributes to setAttributes.
2729 * cspi/spi_hyperlink.c:
2731 Changed call to getNAnchors to correctly call the c
2732 binding for an attribute.
2734 * cspi/spi_hypertext.c:
2736 Changed getImageDescription to correctly call the
2737 binding for an attribute.
2739 * cspi/spi_selection.c:
2740 Changed getNSelectedChildren to correctly call the c
2741 binding for the attribute.
2742 Changed refSelectedChild to getSelectedChild.
2746 Changed getCaption to return an Accessible.
2747 Fixed calls which retrieve attributes.
2748 Changed refAt to getAccessibleAt.
2749 Changed getNSelectedRows and getNSelectedColumns to
2753 Changed getCharacterExtents and getPointAtOffset to accept an
2754 AccessibleCoordType.
2756 Changed calls which retrieve attributes.
2757 Changed refRunAttributes to getAttributes.
2762 * idl/Hyperlink.idl:
2763 Changed n_anchors attribute to nAnchors to keep naming
2764 convention consistent.
2767 Made Table inherit from Bonobo::Unknown.
2768 Added nSelectedColumns and nSelectedRows attributes.
2771 Made Value inherit from Bonobo::Unknown.
2773 * libspi/hyperlink.c:
2774 Change for nAnchors attributte name change.
2776 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2784 Added interface implementation c files to list of
2785 includes so they are included in libcspi.
2788 Changed prototype of AccessibleAction_doAction to return a
2790 Changed prototype of AccessibleTable_getCaption to
2791 return an Accessible.
2792 Changed prototype of AccessibleTable_getSelectedRows
2793 and AccessibleTable_getSelectedColumns to
2794 return a long (returns the number of selected rows
2795 or columns respectively).
2796 Changed name of AccessibleText_refRunAttributes to
2797 AccessibleText_getAttributes.
2798 Changed prototype of AccessibleText_getCharacterExtents to
2799 return a void rather than a boolean.
2800 Added support for a AccessibleCoordType parameter
2801 specifying what type of coordinates are desired.
2802 Added an AccessibleCordType parameter to
2803 AccessibleText_getPointAtOffset.
2805 * cspi/spi_accessible.c:
2806 Added code to return the outstanding interfaces from
2807 Accessible_queryInterface.
2809 * cspi/spi_action.c:
2811 Corrected call to getNActions to call the c binding
2814 * cspi/spi_editabletext.c:
2816 Changed name from setRunAttributes to setAttributes.
2818 * cspi/spi_hyperlink.c:
2820 Changed call to getNAnchors to correctly call the c
2821 binding for an attribute.
2823 * cspi/spi_hypertext.c:
2825 Changed getImageDescription to correctly call the
2826 binding for an attribute.
2828 * cspi/spi_selection.c:
2829 Changed getNSelectedChildren to correctly call the c
2830 binding for the attribute.
2831 Changed refSelectedChild to getSelectedChild.
2835 Changed getCaption to return an Accessible.
2836 Fixed calls which retrieve attributes.
2837 Changed refAt to getAccessibleAt.
2838 Changed getNSelectedRows and getNSelectedColumns to
2842 Changed getCharacterExtents and getPointAtOffset to accept an
2843 AccessibleCoordType.
2845 Changed calls which retrieve attributes.
2846 Changed refRunAttributes to getAttributes.
2851 * idl/Hyperlink.idl:
2852 Changed n_anchors attribute to nAnchors to keep naming
2853 convention consistent.
2856 Made Table inherit from Bonobo::Unknown.
2857 Added nSelectedColumns and nSelectedRows attributes.
2860 Made Value inherit from Bonobo::Unknown.
2862 * libspi/hyperlink.c:
2863 Change for nAnchors attributte name change.
2866 <2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
2868 implementations-- made server implementations own AtkObject pointers
2869 rather than their respective AtkInterrface pointers to fix
2870 refcounting. AtkHyperlink is still broken.
2872 <2001-09-04 Bill Haneman <bill.haneman@sun.com>
2873 * cspi/spi_accessible.c:
2874 Added method Accessible_Role_getName(),
2875 and requisite string array (role_names).
2876 Added conversion string_from_corba_strin() call
2877 to Accessible_getName and _getDescription.
2878 * libspi/accessible.c:
2879 Added implementation for Accessible_getRole()
2881 Added festival support, used if environment variable
2884 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2886 * at-bridge/bridge.c:
2887 Now allocate Accessibility_Event using
2888 Accessibility_Event__alloc() instead of g_new0().
2889 * libspi/accessibleeventlistener.c:
2890 Initialize AccessibleEventListener->callbacks to NULL.
2891 Fixed accessible__event_listener_init() param, changed to
2892 "AccessibleEventListener *" type.
2893 Changed a bonobo_object_release_unref() call to
2894 Accessibility_Accessible_unref().
2895 * libspi/listener.c:
2896 Changed Bonobo_Unknown_unref to (equivalent)
2897 Accessibility_Accessible_unref.
2898 * libspi/registry.c:
2899 Changed bonobo_object_release_unref to
2900 Accessibility_Accessible_unref.
2902 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2905 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
2906 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
2907 spi-util.c spi-util.h
2908 Implementations for C bindings to remaining accessibility
2911 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2914 changed return value of Action from void to boolean to
2915 bring in line with ATK.
2918 Changed getText funcions to return "out" start and end offsets.
2919 Changed getAttributes to take and offset and return the start
2920 and end offset of the attribute run.
2921 Changed getOffsetAtPoint and getCharacterExtents to take an
2922 enum describing whether coordinates are window or screen.
2925 libspi/action.c libspi/action.h libspi/editabletext.c
2926 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
2927 libspi/hypertext.c libspi/hypertext.h libspi/image.c
2928 libspi/image.h libspi/selection.c libspi/selection.h
2929 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
2930 libspi/value.c libspi/value.h
2931 Added server implementations for outstanding ATK interfaces
2932 not yet implemented.
2934 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2937 Added (missing) getName() method.
2938 Made nActions an attribute.
2939 * idl/EditableText.idl:
2940 Changed order of params in setAttributes.
2941 * idl/Hyperlink.idl:
2942 Removed getAnchor, added getURI.
2944 Changed attributes to methods, for efficiency
2945 (so that getting extents can be done in one call)
2946 * idl/Selection.idl:
2947 Changed nSelectedChildren to attribute, and re-indented.
2948 * idl/Table.idl: changed nrows, ncolumns, caption, summary
2950 * idl/Text.idl: reformatted to match our coding style.
2951 (temporarily?) removed getRowColumnAtOffset().
2952 Changed text selection API to support multi-select and
2953 non-contiguous selections, as in ATK.
2954 * idl/Value.idl: changed some methods to attributes.
2956 2001-08-24 Mark McLoughlin <mark@skynet.ie>
2958 * libspi/listener.c(impl_notify_event):
2959 BonoboUnkown_unref the source instead
2960 of bonobo_object_release_unref - the ORB
2961 handles the releasing.
2963 * configure.in: require ORBit-2.3.94 for
2966 2001-08-21 Bill Haneman <bill.haneman@sun.com>
2968 Tagged CVS repository 'EA_1_0'.
2969 * README.EARLY_ACCESS:
2970 Alphabetized acknowledgements list, and
2972 Listed some known dependencies of at-spi.
2974 2001-08-20 Bill Haneman <bill.haneman@sun.com>
2976 * docs/at-spi-docs.sgml:
2977 * docs/at-spi-sections.txt:
2978 * docs/at-spi-overrides.txt: (Added zero-length file)
2979 Documentation improvements - gtk-doc should build
2980 docs for all implemented C bindings now.
2983 * cspi/spi.c: (New file)
2984 * cspi/spi_event.c: (New file)
2985 * cspi/spi_registry.c: (New file)
2986 * cspi/spi_accessible.c: (New file)
2987 * cspi/spi_application.c: (New file)
2988 * cspi/spi_component.c: (New file)
2989 Split spi_main.c into six parts, and included them from
2990 "spi.c". This is a bit of a hack, probably temporary,
2991 but required by gtk-doc, apparently.
2993 2001-08-20 Bill Haneman <bill.haneman@sun.com>
2996 * docs/at-spi-docs.sgml:
2997 * docs/at-spi-sections.txt:
2999 Initial checkins/modifications for gtk-doc generation.
3002 Added (missing) interface query methods to Accessible's C binding.
3004 Added GenericInterface type definition.
3006 Added query for AccessibleComponent interface to focus event handler.
3007 Added printout of bounding box for focussed component.
3008 * libspi/component.c:
3009 Added partial implementation for AccessibleComponent to C binding.
3010 * idl/Application.idl:
3011 * libspi/registry.c:
3012 * libspi/listener.c:
3013 * libspi/application.c:
3014 * libspi/application.h:
3015 Changed "ID" attribute type from string to long.
3017 2001-08-19 Bill Haneman <bill.haneman@sun.com>
3021 Made method naming consistent: methods taking object args
3022 start with uppercase, other methods (except those using
3023 acronyms) start with lowercase. Underscores delimit between
3024 object names and method names:
3025 SPI_init() - uppercase since it starts with an acronym.
3026 getDesktopCount () - lowercase start since no object param0.
3027 Accessible_getName() - uppercase object type name, studlyCaps method
3031 Added gtk-doc documentation for all currently implemented
3032 methods in the C bindings API.
3034 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3036 * Makefile.am : changed build order to build test last.
3039 Changed "createEventListener" to "CreateEventListener".
3040 * libspi/accessibleeventlistener.c :
3041 Bugfix for addition of callbacks.
3042 * test/Makefile.am :
3043 * test/simple-at.c :
3044 Added new test that uses the C bindings API.
3046 * libspi/listener.c :
3047 * libspi/registry.c :
3048 * libspi/accessibleeventlistener.c :
3049 * at-bridge/bridge.c :
3050 Renamed member "target" of Accessibility_Event to "source",
3051 which is more descriptive.
3054 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3058 * cspi/Makefile.am :
3059 Added makefile support for at-spi/cspi directory.
3062 * cspi/spi-listener.h : (NEW FILE)
3063 Added support for/use of spi-listener.h.
3065 C bindings now build successfully, with no warnings.
3066 * libspi/accessibleeventlistener.h : (NEW FILE)
3067 * libspi/accessibleeventlistener.c : (NEW FILE)
3068 * libspi/Makefile.am :
3069 Added new object type "AccessibleEventListener"
3070 which inherits from Listener, and allows attachment
3071 of in-process callbacks (so that a client with a listening
3072 object instance can add functionality to the local
3073 implementation, dynamically).
3075 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3077 * libspi/accessible.c:
3078 Add implementation for get_index_in_parent().
3080 Added #include of "spi-roletypes.h", and
3081 added enumerated type AccessibleCoordType.
3082 Added definition for KeystrokeListener (function type).
3085 * cspi/spi-statetypes.h :
3086 * cspi/spi-roletypes.h :
3088 Added these headers, used by spi.h.
3090 Added code (NOTE: not yet built by make).
3092 2001-08-18 Mark McLoughlin <mark@skynet.ie>
3094 * libspi/Makefile.am: generate imodule
3095 at the same time as other idl compiler
3098 2001-08-17 Bill Haneman <bill.haneman@sun.com>
3099 * libspi/registry.c :
3100 * libspi/application.c :
3101 * idl/Application.idl :
3102 Made registration with toolkit an application method,
3103 which is required since each app has its own toolkit static
3104 environment. Thus the bridge must register for
3105 notification of toolkit events from each application in turn.
3106 Toolkit notifications are now successfully registered for, and
3107 sent to the listening at client.
3109 Changed toolkit event string to use hyphens rather than underscores.
3110 * libspi/listener.c :
3111 listner now gives more info in debug mode - it reports the
3112 name of the event received, as well as the name of the source.
3115 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3117 * libspi/registry.c :
3118 added more implementation for toolkit events.
3119 Fixed bug such that toolkit event registrations
3120 (via atk) use the whole event name string, not
3122 Removed a useless call to an ORBit_ method.
3123 * at-bridge/bridge.c :
3124 Removed unused local sbuf[] variable.
3126 We now register for Gtk:GtkWidget:button_press_event
3127 events as well as "focus:" events.
3129 Add some more API from Registry.idl that was missing,
3130 for keystroke listening, keystroke and mouse event
3131 synthesis, and enumeration of accessible desktops.
3133 2001-08-16 Michael Meeks <michael@ximian.com>
3135 * configure.in: use AM_GLIB_GNU_GETTEXT.
3137 * Makefile.am (SUBDIRS): kill intl.
3139 2001-08-15 Michael Meeks <michael@ximian.com>
3141 * registryd/Makefile.am: s/oaf/server/ relocate info file.
3143 * configure.in: upd.
3145 * configure.in: depend on a recent bonobo-activation that
3146 will find our server files ...
3148 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3150 * libspi/accessible.c : accessible_new() :
3151 Now we add the Component interface via bonobo_object_add_interface,
3152 if the contained AtkObject implements AtkComponent.
3153 * libspi/accessible.h : now include "component.h"
3154 * libspi/component.h :
3155 * libspi/component.c : added files - implementation of
3156 bonobo wrapper object for Accessibility/Component
3157 * libspi/listener.c :
3158 Added test code to check for Accessibility/Component:1.0
3159 interface and report whether it is implemented by the
3161 * libspi/registry.c :
3162 Now we check for not only the hash of the whole event
3163 string before relaying the event, we also check the
3164 "minor" event string (without the detail string).
3165 This allows event listeners to be registered against
3166 all events of a certain major+minor type, or just
3167 against a specific major+minor+detail type.
3168 * libspi/accessible.c :
3169 Added implementations for Accessible:get_parent(),
3170 Accessible:getChildCount(), and Accessible:getChildAtIndex().
3171 * libspi/registry.c :
3172 * libspi/listener.c :
3173 Replaced calls to Accessibility_Accessible_ref() and
3174 Accessibility_Accessible_unref() with
3175 calls to bonobo_object_dup_ref() and
3176 bonobo_object_release_unref(), so that the CORBA object
3177 is dup-ed and released when relayed, as well as the bonobo object.
3179 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3181 * libspi/Makefile.am,
3182 registryd/Makefile.am,
3183 at-bridge/Makefile.am.
3184 test/Makefile.am, configure.in:
3185 reverse previous changes.
3187 * /idl/Image.idl: fix typo.
3189 * test/Makefile.am: put DEBUG_FLAGS
3192 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3194 * test/app.c: use argv[0] instead of
3197 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3199 * libspi/Makefile.am,
3200 registryd/Makefile.am,
3201 at-bridge/Makefile.am.
3202 test/Makefile.am, configure.in:
3203 cleanup, replace individual LIBS/CFLAGS with
3204 AT_COMMON_{LIBS|CFLAGS}.
3208 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3210 * configure.in, libspi/Makefile.am:
3211 Change IDL path checking for bonobo-activation
3214 2001-08-15 Bill Haneman <bill.haneman@sun.com>
3216 * registryd/registry.c : separated event listeners to use
3217 3 separate lists (focus, window, toolkit). Began testing
3218 event names against hashes before relaying events.
3219 * test/at.c : now register for events of type "focus:"
3220 * test/app.c : now generate events of type "focus:"
3221 * at-bridge/bridge.c : register with ATK for focus events,
3222 and we now relay those focus events to any "focus:" listeners.
3223 This now works with the bridge as a GTK_MODULE when running test/at.
3224 * libspi/registry.c :
3225 * libspi/listener.c :
3226 now we ref event sources before propagating, and unref on receipt.
3227 * libspi/registry.c :
3228 some changes to internal structs, to support event typestring hashes.
3229 * text/app.c : changed the way the appname is generated.
3230 * cspi : added directory that will hold the C bindings library for
3231 non-CORBA/bonobo-savvy clients.
3232 * cspi/spi.h : header file that contains the function prototypes for the C binding.
3233 * idl/Component.idl : added in parameter to indicate coord system for
3234 geometry-related calls.
3235 * idl/Hyperlink.idl : added readonly n_links attribute
3236 * idl/Image.idl : changed methods to attributes.
3238 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3240 * at-bridge/Makefile.am: link against
3241 ../libspi/libspi.la instead of -lspi.
3243 * at-spi/test/app.c: include
3244 bonobo-activation.h. Use a default appname
3245 if one is not provided.
3247 2001-08-14 Bill Haneman <bill.haneman@sun.com>
3249 * idl/Registry.idl : temporarily changed register_Application
3250 to oneway, to work around issue with initial registration
3252 * idl/Application.idl : changed attribute "id" from readonly
3253 to read-write, since it needs to be assigned by Registry.
3254 * registryd/registryd.c : added call to set application id
3256 * registryd/registry.c : changed de-registration procedure to
3257 use CORBA_Object_hash() to find matching object ref in application
3258 lists and listener lists.
3259 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
3260 began distinguishing between event types (work in progress).
3262 2001-08-13 Bill Haneman <bill.haneman@sun.com>
3265 * libspi/application.c:
3266 Added implementations for get/set id, get_toolkitName,
3268 * registryd/registryd.c :
3272 Converted from use of OAF to bonobo-activation.
3273 * libspi/desktop.h :
3274 * libspi/desktop.c :
3276 Removed references to atksimpleobject, since base atkobject
3277 implementation now provides functionality we need.
3278 * libspi/atksimpleobject.c :
3279 * libspi/atksimpleobject.h :
3284 * at-bridge/Makefile.am
3285 * at-bridge/bridge.c
3288 Added directory "bridge" and contents, and added dependencies
3289 in Makefile.am/configure.in.
3290 Initial checkin of "at-bridge".
3291 This code is a GTK_MODULE which automatically registers
3292 GTK+ apps with the accessibility registry, using an object
3293 reference to the root ATK object.
3295 2001-08-10 Mark McLoughlin <mark@skynet.ie>
3297 * po/Makefile.in.in: Remove. Again. If this
3298 doesn't get autogenerated - you need to update
3301 2001-08-07 Mark McLoughlin <mark@skynet.ie>
3303 * po/Makefile.in.in: Add. Again.
3305 2001-07-31 Bill Haneman <bill.haneman@sun.com>
3307 * libspi/accessible.c : added support for 'description' property.
3308 * libspi/accessible.c
3310 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
3311 (since the two are now equivalent in libbonobo)
3319 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
3320 Bonobo::Unknown as does Accessibility::Accessible.
3321 * idl/StreamableContent.idl : as above, and replaced internal InputStream
3322 interface with Bonobo::Stream, since it was redundant with it.
3323 (The Stream returned by a StreamableContext object is expected to
3324 implement only a subset of Bonobo::Stream)
3326 2001-07-28 Anders Carlsson <andersca@gnome.org>
3328 * libspi/accessible.c (accessible_object_finalize): Change
3329 g_free to g_object_unref since the AtkObject is a GObject.
3331 2001-07-30 Bill Haneman <bill.haneman@sun.com>
3333 * idl/Accessibility.idl: add new IDL files
3336 * idl/Action.idl: Definitions of actionable UI object
3337 * idl/Component.idl: Definitions of UI component geometry, etc.
3338 * idl/Hyperlink.idl: Defs of hyperlink behavior
3339 * idl/Image.idl: Def of accessible image
3340 * idl/Selection.idl: Definition of UI object with selectable children
3341 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
3342 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
3343 * idl/Text.idl: Interface defs for UI elements with complex textual content
3344 * idl/Value.idl: Definition of UI element that is a value controller or display
3346 2001-07-27 Michael Meeks <michael@ximian.com>
3348 * po/Makefile.in.in: remove autogenerated file from CVS.
3350 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
3353 * idl/Registry.idl: include guard.
3355 * idl/Accessibility.idl: Add, and include all the other IDL
3358 * idl/*.idl: remove mass of pragmas etc.
3360 2001-07-26 Michael Meeks <michael@ximian.com>
3362 * registryd/Makefile.am (registryd_SOURCES): remove
3365 2001-07-27 Mark McLoughlin <mark@skynet.ie>
3367 * libspi/.cvsignore, registryd/.cvsignore,
3368 test/.cvsignore: updated.
3370 * po/Makefile.in.in: gettext update.
3372 2001-07-25 Bill Haneman <bill.haneman@sun.com>
3374 * initial CVS checkin
3376 2001-06-29 Michael Meeks <michael@ximian.com>
3378 * configure.in: add AM_CONFIG_HEADER to gen config.h