1 2002-01-16 Bill Haneman <bill.haneman@sun.com>
4 Changed key listeners test - the test was slightly mis-using the
5 (admittedly poorly documented) SPI_generateKeyboardEvent API.
6 It now uses '=' as the key event listened to and generated,
7 relying on a keysym match rather than assuming that keycode 33
8 is always equal to keysym '!'.
10 2002-01-15 Bill Haneman <bill.haneman@sun.com>
13 Changed simple-at to use a specific keyset, rather than
14 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
15 manager, desktop, etc.
17 2002-01-11 Bill Haneman <bill.haneman@sun.com>
19 * registryd/deviceeventcontroller.c:
20 Replaced standard X error handler with a special handler that
21 is non-fatal for failed keygrabs. This works around
22 problems with keygrab clashes sometimes observed on
24 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
25 mouse handling code as yet).
27 2002-01-11 Bill Haneman <bill.haneman@sun.com>
30 Incremented revision for desktop alpha release.
33 Fixed a couple of the more glaring errors (still not
36 2002-01-11 Michael Meeks <michael@ximian.com>
38 * registryd/deviceeventcontroller.c
39 (spi_device_event_controller_forward_key_event): kill
40 XUngrabKey / XKeyGrab race.
41 (spi_controller_grab_keyboard): rename to
42 (spi_controller_update_key_grabs): this, and deal
43 with incremental adding / removing grabs more
45 (_register_keygrab): ensure we're not pending a remove.
46 (spi_grab_mask_free): impl.
47 (spi_controller_register_global_keygrabs): split out
49 (handle_keygrab): impl.
50 (_deregister_keygrab): impl.
51 (spi_controller_deregister_global_keygrabs): impl.
52 (spi_controller_update_key_grabs): re-issue the grab if
53 we just recieved a notification.
55 * test/test-simple.c (key_listener_cb): remove debug.
57 * registryd/deviceeventcontroller.c
58 (spi_controller_register_device_listener): after
59 registering a global keygrab, actualy register it !
60 don't wait for a timeout; doh !
62 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
63 to make it more readable / manipulable.
64 s/grabmask/grab_mask/ s/refcount/ref_count/
65 s/keyval/key_val/ s/modmask/mod_mask
67 2002-01-08 Michael Meeks <michael@ximian.com>
69 * registryd/deviceeventcontroller.c
70 (spi_controller_register_with_devices): use gdk calls to
72 (global_filter_fn): implement the filter.
73 (spi_device_event_controller_check_key_event): rename to
74 (spi_device_event_controller_forward_key_event): this & upd.
75 (spi_get_display): replace with GDK_DISPLAY.
77 * registryd/deviceeventcontroller.c
78 (spi_controller_deregister_device_listener): unroll into
79 (impl_deregister_keystroke_listener): here to simplify.
80 (spi_controller_register_global_keygrabs): split cut and
81 paste (!) out into (_register_keygrab): here, shorter & sweeter.
82 (spi_controller_deregister_device_listener): remove.
83 (impl_register_mouse_listener): remove, no mouse listener
86 * registryd/registry.c
87 (_device_event_controller_hook): kill.
88 (spi_registry_init): upd.
90 * registryd/deviceeventcontroller.c
91 (spi_device_event_controller_class_init): upd.
92 (spi_check_key_event): merge into.
93 (spi_device_event_controller_check_key_event):
94 here and kill strange static ev init, don't leak
95 the x_event - nor dynamicaly allocate it.
97 * registryd/registry-main.c (main): re-direct
98 timeout to remove strange vtable mess.
100 * registryd/deviceeventcontroller.c
101 (remove_listener_cb): impl.
102 (spi_controller_deregister_device_listener):
103 fix re-enterancy hazard.
105 2002-01-07 Michael Meeks <michael@ximian.com>
107 * registryd/deviceeventcontroller.c
108 (spi_device_event_controller_new): upd.
109 (impl_notify_listeners_sync): upd. debug.
110 (spi_notify_keylisteners): fix re-enterancy hazards,
111 prettify, remove O(n*n) iteration.
112 (spi_controller_grab_keyboard): fix iteration.
113 (spi_check_key_event): re-format to suit coding style.
114 Clean all the warnings - we're warning free.
116 * registryd/deviceeventcontroller.h:
117 * registryd/registry.h: make mutualy referential with
118 typesafe forward references instead of (!) void pointer
121 2002-01-11 Michael Meeks <michael@ximian.com>
123 * cspi/spi_accessible.c (role_names): add a role name
124 to sync this array with the enum; and make the regression
127 2002-01-10 Michael Meeks <michael@ximian.com>
129 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
130 allow expansion of enumeration & kill warning.
132 * test/test-simple.c (key_listener_cb): impl.
133 (test_keylisteners): impl.
135 * cspi/spi-listener.h: make listener signatures const
136 on the provided (const) events.
138 * test/keysynth-demo.c: upd. to const events.
140 * test/simple-at.c: ditto.
142 2002-01-11 Bill Haneman <bill.haneman@sun.com>
145 Rev the version to 0.5 (the previous tarball was named 0.4,
146 even though the micro number was 3), so we need to rev upwards
147 again for beta2/"desktop-alpha"
150 Checked in a demo script, which requires editing before use!
151 Proceed with caution.
154 Fixed typo in header which was redefining SPI_ACTION_CLASS.
156 * cspi/spi_accessible.c:
157 Add a couple of missing enum initializations, and fix some enum
160 * cspi/spi_registry.c:
161 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
163 * docs/reference/cspi/at-spi-cspi-sections.txt:
164 Remove/fix a couple of broken document references.
167 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
168 as Alt-Control to listen for commands, since on some systems
169 Control-Alt may already be grabbed.
171 2002-01-10 Bill Haneman <bill.haneman@sun.com>
174 Update version number to 0.4 for Beta2.
176 * libspi/accessible.c, libspi/accessible.h:
177 Expose spi_accessible_construct, to enable libgail-gnome
178 construction from spi_accessible subtype.
181 Workaround for bug in some non-gnome-compliant window managers
182 which made magnifier resize improperly.
184 2002-01-09 Bill Haneman <bill.haneman@sun.com>
186 * libspi/accessible.c: (spi_accessible_new) :
187 Move the test for SPI_IS_REMOTE_OBJECT to
188 spi_accessible_new_return, fixing a bug and compile time warning.
190 2002-01-08 Michael Meeks <michael@ximian.com>
192 * registryd/registry.c (parse_event_type): remove strndup.
194 * libspi/Makefile.am (libspi_la_SOURCES): remove
195 sources already included in the headers section.
197 * libspi/util.c: add.
199 * libspi/spi-private.h: add.
201 * registryd/registry.c: update to moved list iterators.
203 2002-01-05 Michael Meeks <michael@ximian.com>
205 * test/simple-at.c (main): upd. auto-module set to atk-bridge
207 * test/test-simple.c (main): ditto.
209 2002-01-04 Michael Meeks <michael@ximian.com>
211 * libspi/accessible.c (spi_accessible_new): remove 2nd,
214 * registryd/registry.c
215 (get_listener_list): impl.
216 (impl_accessibility_registry_register_global_event_listener):
217 re-impl. to simplify using ~, remove dodgy const cast off.
218 (parse_event_type): constify.
219 (impl_accessibility_registry_deregister_global_event_listener_all):
220 re-write, more efficiency and simplicity, kill re-enterancy
222 (compare_listener_corbaref, compare_corba_objects),
223 (compare_listener_quarks): define out.
224 (impl_accessibility_registry_deregister_global_event_listener):
225 re-write for effiency, and nail re-enterancy hazard.
226 (impl_accessibility_registry_get_desktop_list): impl.
227 (re_enterant_list_delete_link): impl.
228 (re_enterant_list_foreach): impl.
229 (remove_listener_cb): impl.
230 (_registry_notify_listeners): kill.
231 (notify_listeners_cb): impl.
233 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
234 (SPI_getDesktopList): impl.
236 * test/test-simple.c (test_desktop): test the methods.
238 2002-01-03 Michael Meeks <michael@ximian.com>
240 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
241 keystrings since we free them
242 (SPI_freeAccessibleKeySet): in here.
244 * libspi/accessible.c (spi_accessible_new): kill warning,
245 wonder what is going on with the constructor here.
247 2002-03-01 Bill Haneman <bill.haneman@sun.com>
249 * libspi/accessible.c (spi_accessible_new ()) :
250 Added check to see if AtkObject is an SpiRemoteObject before
251 creating an SpiAccessible.
253 2002-05-01 Bill Haneman <bill.haneman@sun.com>
255 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
256 Enable keygrabs using the Control modifier, now that they are
257 working properly (they were previously disabled).
260 Change the command keygrab for this demo to "Control+Alt", so as
261 to conflict with fewer other key commands on the system; this
262 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
264 Removed a pointlessly-chatty keylistener for unshifted keys
265 (shifted keys are still reported).
267 2002-02-01 Bill Haneman <bill.haneman@sun.com>
269 * libspi/remoteobject.h:
270 * libspi/remoteobject.c:
271 Added definitions for special AtkObject subtype, required for
272 support of remote components (specifically, used by BonoboControl
273 accessibility implementation).
275 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
277 * cspi/spi.h: synched relation types with ATK
279 * cspi/spi_accessible.c: Added implementations of
280 AcccessibleRelation_* methods
282 * idl/Accessibility_Relation.idl: added getRelationTypeName
283 method. Synched known relation types with ATK. Allowed for
284 relation type extension with the RELATION_EXTENDED type.
286 * libspi/relation.c: Provided implementations for
287 AccessibleRelation methods.
289 2002-01-01 Bill Haneman <bill.haneman@sun.com>
291 API tweaks for today's API 'freeze'.
294 Added placeholder functions to allow future compatible expansion
295 of the IDL interfaces.
297 * idl/Accessibility_Registry.idl:
298 Changed generateKeyEvent to generateKeyboardEvent. Changed
299 signature of this method to accept an optional keystring in
300 parameter (for complex text input synthesis) and changed use of
301 simple 'boolean' parameter in registerKeystrokeListener to a
302 struct, EventListenerMode.
304 * cspi/spi_accessible.c:
306 * cspi/spi_streamablecontent.c:
307 Added references to AccessibleStreamableContent interface, and
308 definition and implementation of AccessibleStreamableContent
311 * cspi/spi_registry.c:
313 Changed generateKeyEvent API to generateKeyboardEvent,
314 taking a new (optional) keystring parameter to support complex
319 Renamed directory (to better reflect its actual purpose, bridging
320 from at-spi to ATK). The .so module is also now named
323 * idl/Accessibility_Hypertext.idl:
324 * libspi/accessible.c:
325 * libspi/hypertext.h:
326 * libspi/hypertext.c:
327 Changed Accessibility_Hypertext to *not* derive from
330 * cspi/spi_registry.c:
331 Added list of legal event type names for 'window' events, which
332 completes the registry event API.
334 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
336 * at-bridge/bridge.c: Added registration for separate
337 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
338 signals. If either of the first two parameters to the generic
339 bridge signal handler are ints, they are passed on as event
340 details. This allows an AT to determine what text was inserted.
342 2001-12-21 Bill Haneman <bill.haneman@sun.com>
344 * registryd/deviceeventcontroller.c:
345 Fixed regressions in generateKeyEvent caused by the removal of
346 gdk_init from registryd; we now use pure X calls to connect to the
347 display, which makes sense because deviceeventcontroller already
348 uses a fair bit of X API (should eventually be migrated to a
349 'portability layer').
351 * registryd/desktop.c:
352 Fixed minor regression in spi_desktop_init, changed the way the
353 desktop name is being set to work with new spi_base API
354 (gobject-based, rather than AtkObject-based).
356 * registryd/Makefile.am:
357 Minor revision of makefile to use XTST_LIBS variable rather than
358 hard-wiring the Xtst LD_ADD element.
360 * test/keysynth-demo.c:
361 Tweaked an output message; added initialization of the
362 'keystrings' member of the "switch listener" key_set.
365 Squashed compile-time warning.
367 * libspi/accessible.c:
368 Cosmetic and formatting fixes, renamed a static method.
370 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
372 * libspi/accessible.c
374 * libspi/application.c
378 * libspi/editabletext.c
386 * registryd/desktop.c:
387 Changed SpiBase to contain a GObject pointer rather than an AtkObject
389 2001-12-17 Bill Haneman <bill.haneman@sun.com>
391 * idl/Accessibility_Registry.idl:
392 Added boolean member 'is_text' to DeviceEvent. This is for the
393 use of key events, and helps prevent ambiguity between composed
394 key strings and keysym names, since both may potentially be
395 returned in the 'event_string' member.
397 * at-bridge/bridge.c:
398 * registryd/deviceeventcontroller.c:
399 Use the 'is_text' member when notifying device event listeners.
400 Knon issue: composed characters are not dealt with correctly by
401 the global key listener implementation yet.
403 2001-12-17 Bill Haneman <bill.haneman@sun.com>
405 * at-bridge/bridge.c:
406 Namespaced local static methods to spi_atk_bridge_* where
407 previously named bridge_*, and spi_* elsewhere.
409 * at-bridge/bridge.c:
410 * cspi/bonobo/cspi-bonobo-listener.c:
411 Added demarshalling/conversion for string member of
412 Accessibility_DeviceEvent to AccessibleKeystroke.
414 * registryd/deviceeventcontroller.c:
415 Added code to fill the Accessibility_DeviceEvent key string value
416 member for global key events (i.e. from XGrabKey), to match
417 behavior of Accessibility_DeviceEvent from the toolkit key events
418 from the bridge. Fixed timestamp in global key event notifications.
421 Added printout of key event's string value to
422 report_ordinary_key_event, for demo/debugging purposes.
424 2001-12-15 Bill Haneman <bill.haneman@sun.com>
426 * idl/Accessibility_Registry.idl:
427 Removed Accessibility_KeyStroke structure in favor of generic
428 Accessibility_DeviceEvent structure.
429 Changed Accessibility_ControllerEventMask from a struct to an
432 * at-bridge/bridge.c:
433 Changed APIs to use DeviceEvent structure as above, and removed
434 bogus casting between these event structures.
436 * cspi/spi-listener.h:
437 Added keystring member of AccessibleKeystroke structure, to enable
438 matching on event "names" rather than only hardware codes and
442 Added keystrings member of AccessibleKeySet struct, to allow
443 matching on event names (as above).
444 Added declarations for SPI_createAccessibleKeySet and
445 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
446 event modmasks directly as unsigned ints rather than structs with
447 refcounts, in the DeviceEventController methods.
449 * cspi/spi_registry.c:
450 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
452 * cspi/spi-roletypes.h:
453 Added documentation of newly added SPI Roles.
455 * cspi/bonobo/cspi-bonobo-listener.c:
456 Changes in support of API changes above.
458 * libspi/accessible.c:
459 Converted APIs to use DeviceEvent structure (see IDL changes
462 * registryd/deviceeventcontroller.c:
463 Added DEControllerGrabMask structure to track keygrabs not only by
464 modmask but by keyset as well; this allows us to do "global"
465 (i.e. X) keygrabs on a per-key or keyset basis rather than always
466 grabbing on AnyKey and then filtering after-the-fact.
467 Bugfixes for event filtration mean that we don't get false matches
468 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
470 * registryd/deviceeventcontroller.c:
471 Namespaced a number of static methods to use spi_ prefix. Major
472 revision to internals of global (i.e. X) key grabs.
474 * registryd/deviceeventcontroller.h:
475 Removed keymask_list and added keygrabs_list to
476 SpiDeviceEventController struct.
479 Added use of SPI_createAccessibleKeySet API when creating a
480 listener for only one key. Attach a listener to "shift spacebar
481 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
482 X key event names to SPI key event names, so that listeners are
483 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
485 * test/keysynth-demo.c:
486 Changed (incorrect) use of X key event names (KeyPressed,
487 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
490 2001-12-12 Bill Haneman <bill.haneman@sun.com>
492 * libspi/accessible.c:
493 Convert all AtkRole enumerations to Accessibility_Role enums when
494 getting a role from an AtkObject.
496 * cspi/spi_accessible.c:
497 Complete the conversion of Accessibility_Role enums at runtime to
498 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
499 role enums correctly match those given in spi-roletypes.h.
500 Re-synchronize the local names list for AccessibleRole_getName ().
501 AccessibleRole_getName is now deprecated, since it duplicates the
502 more reliable Accessible_getRoleName.
503 Added some role types from Accessibility_Role.idl.
505 * idl/Accessibility_Role.idl:
506 Added some role types used by AtkRole.
508 2001-12-12 Bill Haneman <bill.haneman@sun.com>
511 * cspi/spi_registry.c:
513 * cspi/cspi-bonobo-listener.c:
514 Namespaced all methods that did not begin with an "SPI_" or
515 "Accessible" prefix to "SPI_".
518 Homogenized internal function namespace to "cspi_" for statics.
521 Patched tests to use the new CSPI API.
523 * docs/reference/cspi/at-spi-cspi-sections.txt:
524 Updated docs to reflect namespace changes, and added a number of
525 methods to the documentation.
527 * registryd/registry.c:
528 Changed use of strings and string hashes in listener event
529 matching and parse_event_string to use GQuark, which is guaranteed
532 * registryd/registry.h:
533 Squashed annoying warning.
535 * idl/Accessibility_Role.idl:
536 Extended range of available Accessibility_Role values.
538 * cspi/spi_accessible.c:
539 Re-ordered role names.
541 2001-12-12 Bill Haneman <bill.haneman@sun.com>
543 * idl/Accessibility_Value.idl:
544 Revert use of union back to CORBA_double, since the double type is
545 more efficient and can contain the other types without loss of
548 * idl/Accessibility_Accessible.idl:
549 Added method Accessibility:Accessible:getRoleName, to complement
550 Accessibility:Accessible:getRole.
552 * cspi/spi_accessible.c:
554 Added C binding for above, Accessible_getRoleName (), and changed
555 signature of Accessible_getRole () to return an AccessibleRole.
557 * cspi/spi-roletypes.h:
558 Changed AccessibleRole_getName to return a char * instead of a
559 const char *. This method is now at least temporarily deprecated
560 in favor of asking Accessibles for their RoleNames directly.
563 Revert to match Accessibility_Value.idl;
567 Change signature of AccessibleValue methods to use double rather
571 * cspi/spi_accessible.c:
572 Changed Accessible_getRole to return an AccessibleRole enum rather
573 than a UTF-8 string. The UTF-8 string can still be obtained via
574 AccessibleRole_getName ().
576 * test/test-simple.c:
577 Add test_action. Small fixup to match API change to Accessible_getRole.
580 Bugfix for get_action_from_servant ().
582 2001-12-11 Michael Meeks <michael@ximian.com>
584 * libspi/libspi.h: remove registry.h and
585 desktop.h, deviceeventcontroller.h
587 * libspi/Makefile.am: remove registry.[ch],
588 desktop.[ch], deviceeventcontroller.[ch]
590 * registryd/Makefile.am: add registry.[ch],
591 desktop.[ch], rename registryd.c to registry-main.c.
592 add deviceeventcontroller.[ch]
594 2001-12-11 Bill Haneman <bill.haneman@sun.com>
597 Replace setenv() call with putenv ().
599 * libspi/component.c:
600 Bugfix in AccessibleComponent_getExtents (),
603 2001-12-11 Michael Meeks <michael@ximian.com>
605 * libspi/image.c (impl_getImageExtents): impl.
606 (spi_image_class_init): upd.
609 (AccessibleImage_getImageDescription): fix daft bug
612 * test/test-simple.c (global_listener_cb): update
613 to only quit if not --poke
614 (main): catch --poke.
615 (validate_accessible): upd. dumping, call test_image
618 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
621 * idl/Accessibility.idl: update all IDL includes.
623 * idl/*.idl - rename to namespace - this sucks, blame
624 mjs' bad decision for oafd.
626 * test/test-simple.c (create_test_window): add more tests.
627 (create_tree): split this out.
628 (validate_accessible): bugfix.
630 2001-12-11 Michael Meeks <michael@ximian.com>
632 * cspi/bonobo/cspi-bonobo-listener.c:
633 (cspi_kestroke_listener_unref),
634 (cspi_event_listener_unref): impl. undoing previous
635 homenous environment - for Bill.
637 * cspi/spi_table.c (long_seq_to_array): use
640 * cspi/spi_main.c: split out all bonoboish bits into
643 * cspi/spi-impl.h: upd. typedefs.
645 * cspi/spi_registry.c: update to lowlevel API,
646 return booleans to indicate success in some places.
648 * cspi/spi_event.c: update to lowlevel API.
650 * cspi/bonobo/Makefile.am: add.
652 * cspi/bonobo/cspi-lowlevel.h: add
654 * cspi/bonobo/cspi-bonobo.c: add
656 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
658 * cspi/Makefile.am: remove spi-listener-impl.[ch],
659 (SUBDIRS): add bonobo, link in the libs.
661 * cspi/spi-util.c: kill this file.
663 * TODO: merge in my bits.
665 2001-12-11 Michael Meeks <michael@ximian.com>
667 * test/test-simple.c (test_value, test_table, main):
668 remove unused variables causing warnings.
670 * configure.in: cleanup checks - require gail.
672 2001-12-11 Bill Haneman <bill.haneman@sun.com>
675 Changed Value interface to use SValue (scalars) rather than
676 assuming all values are floats. This allows floats, doubles,
677 longs, shorts, and unsigned values to be manipulated.
678 Introduced Accessibility:SValue union.
681 Updated to use new API above, and to work correctly with GValues
682 of different types in AtkValue.
685 Updated to use new API above. cspi's API is as yet unchanged.
688 Updated the Value revision action item.
690 2001-12-10 Bill Haneman <bill.haneman@sun.com>
692 * test/test-simple.c:
693 Added test_table (GtkTreeView widget in test window to follow).
694 Un-commented test_value, added GtkRange widget.
695 Added GtkTreeView widget with GtkListStore. It passes regression
696 test but leaks one SPI object for some reason.
699 Fixed bug in impl__set_currentValue.
701 2001-12-10 Michael Meeks <michael@ximian.com>
703 * cspi/spi_text.c: audit for exception handling,
704 tolerating NULL object references safely etc.
706 * cspi/spi_value.c: ditto.
708 * cspi/spi_table.c (AccessibleTable_getSummary),
709 (AccessibleTable_getAccessibleAt),
710 (AccessibleTable_getRowHeader),
711 (AccessibleTable_getColumnHeader),
712 (AccessibleTable_getCaption): fix bugs hidden by
714 (long_seq_to_array): impl.
715 (AccessibleTable_getSelectedRows),
716 (AccessibleTable_getSelectedColumns): use it.
718 2001-12-10 Bill Haneman <bill.haneman@sun.com>
721 Added a TODO list (rough and short for now).
723 * cspi/spi_hyperlink.c:
724 * cspi/spi_hypertext.c:
725 Fixed macro name typos, and remove use of obsolete macro in
726 AccessibleHyperlink_getLink.
729 * cspi/spi_accessible.c:
730 * cspi/spi_application.c:
731 * cspi/spi_component.c:
732 * cspi/spi_selection.c:
735 Documentation fixes (removed return values from ref/unref methods).
737 2001-12-10 Michael Meeks <michael@ximian.com>
739 * cspi/spi_action.c: audit for exception handling,
740 tolerating NULL object references safely etc.
742 * cspi/spi_accessible.c: ditto.
744 * cspi/spi_component.c: ditto.
746 * cspi/spi_editabletext.c: ditto.
748 * cspi/spi_hyperlink.c: ditto.
750 * cspi/spi_hypertext.c: ditto.
752 * cspi/spi_image.c: ditto.
754 * cspi/spi_selection.c: ditto.
756 2001-12-10 Michael Meeks <michael@ximian.com>
758 * configure.in: use cspi/libspi.pc.in instead.
760 * Makefile.am (pkgconfig_DATA): upd. to match.
762 * test/simple-at.c (report_focus_event): kill hacks around
763 bad return values, use putenv not setenv
765 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
766 fire ChildGone - I killed it.
769 (impl_accessibility_component_get_extents): remove
772 * idl/Accessible.idl: kill ChildGone exception.
774 * cspi/*.[ch]: kill int return from ref / unref.
776 * cspi/spi_main.c (cspi_object_add_check): fold into
777 (cspi_object_add): here.
779 * cspi/spi_component.c (AccessibleComponent_getExtents):
780 handle exceptions elegantly.
782 * cspi/spi-private.h (cspi_check_ev_return),
783 (cspi_return_if_fail): impl.
785 * cspi/spi_accessible.c: use extensively.
786 (AccessibleStateSet_equals): add direct compare check.
788 * cspi/spi_selection.c: tolerate NULL objs, and check
789 exceptions before return.
791 * cspi/spi-util.c (cspi_warn_ev): rename to
792 (cspi_check_ev): this & don't pass ev in; no point.
794 2001-12-10 Michael Meeks <michael@ximian.com>
796 * test/test-simple.c: use putenv not setenv
797 (get_environment_vars): more chatty if you're not using
800 * test/simple-at.c: do the setenv so more people see the
803 2001-12-10 Bill Haneman <bill.haneman@sun.com>
806 Changed check of CORBA_environment on notification to be a warning
807 instead of an error for the moment, since we can recover from this
808 error when caused by a queued notification from a dead app.
811 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
812 used by all current implementors of AtkValue), and coerce to
813 CORBA_float. (Proper general case fix may require change to Value.idl).
815 2001-12-09 Bill Haneman <bill.haneman@sun.com>
819 * cspi/spi_accessible.c:
820 Documentation fixes: added user_data params to documentation for
821 listeners and callbacks.
823 * cspi/spi_accessible.c:
824 Changed AccessibleStateSet_compare to return a
825 StateSet rather than return the difference set into a third parameter.
828 2001-12-09 Bill Haneman <bill.haneman@sun.com>
831 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
832 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
836 Remove subdirectory po from SUBDIRS for now.
838 * at-bridge/bridge.c:
839 Beefed up a couple of debug printouts.
840 One-line fix for signal notification name formatting.
842 * libspi/accessible.c:
843 Added assertion to spi_accessible_new ().
845 * libspi/application.c:
846 Put #ifdef qualifiers around a printf.
849 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
851 * registryd/Makefile.am:
853 Replaces use of XML_I18N_MERGE_SERVER_RULE with
854 INTLTOOL_SERVER_RULE macro.
857 Added an event listener for several ATK signals, for
858 testing and debugging. Removed a few g_warnings.
859 Added test output if focussed item implements the Value interface.
861 * test/test-simple.c:
862 Added test_value () function (known not to pass at the moment, so
863 not actually called yet.
865 2001-12-08 Michael Meeks <michael@ximian.com>
867 * at-bridge/bridge.c (bridge_focus_tracker),
868 (emit_eventv): fix the same ref. leak.
869 (register_atk_event_listeners): don't leak.
871 * cspi/spi-listener-impl.c (cspi_event): more
872 protection from client code.
874 * test/test-simple.c (test_desktop): unref the app.
876 * test/Makefile.am: upd. TESTS.
878 * at-bridge/bridge.c (bridge_exit_func): release the registry.
880 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
882 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
884 * cspi/spi_registry.c: constify in strings.
885 (deregisterGlobalEventListenerAll): don't release the ref.
887 * cspi/spi.h: start removing redundant / conflicting
888 gtkdoc comments, making the API readable at a glance :-)
890 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
892 * test/keysynth-demo.c (keysynth_exit, main): upd.
894 * test/simple-at.c (main, simple_at_exit): upd.
896 * test/test-simple.c (unutterable_horror): kill.
897 (utterable_normal_derefs): kill.
898 (main): upd & do a setenv before gtk_init, so that we
899 can use memprof - and to save the pain of remembering
900 this, if we're running under memprof - don't exit.
902 * cspi/spi_main.c (SPI_exit): return exit status
904 (SPI_event_quit): impl.
905 (SPI_event_main): simplify.
906 (cspi_is_gnome_app): kill.
907 (SPI_init): kill isGNOMEapp arg.
909 * at-bridge/bridge.c (register_atk_event_listeners):
910 re-instate the unref.
911 (bridge_exit_func): don't re-activate the registry,
912 protect vs. theoretical re-entry, use the
913 AT_BRIDGE_SHUTDOWN env. var to determine whether to
914 assert a clean shutdown - for regression tests.
916 2001-12-08 Abel Cheung <maddog@linux.org.hk>
918 * configure.in: Comment out dummy i18n support for now,
919 otherwise it fails to build.
920 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
921 EXTRA_DIST. They are missing in tarball.
923 2001-12-07 Michael Meeks <michael@ximian.com>
925 * util/magnifier.c: kill bonobo activation reg. race.
928 (impl_accessibility_component_get_extents): make it match
931 * libspi/registry.c (_registry_notify_listeners):
932 re-remove X headers & reconcile conflicts.
933 (spi_listener_struct_free): bad conflict resolve.
934 (impl_accessibility_registry_register_application):
935 more bad merging fixed.
936 (impl_accessibility_registry_deregister_application): ditto.
937 (spi_registry_new): ditto.
938 (spi_registry_init): don't have an applications field.
940 [ merge fixups2 branch to here ]
941 2001-12-07 Michael Meeks <michael@ximian.com>
943 * test/simple-at.c (report_focus_event),
944 (report_focussed_accessible): remove g_warning debug.
946 2001-12-07 Michael Meeks <michael@ximian.com>
948 * test/test-simple.c (validate_tree): comment out some checks.
949 (test_desktop): app now not registered idly - horay.
951 2001-12-07 Michael Meeks <michael@ximian.com>
953 * cspi/spi_registry.c
954 (registerAccessibleKeystrokeListener): clean, stop it leaking
955 great swathes of memory, and device event controller references.
956 ensure we always pass valid sequences.
957 (deregisterAccessibleKeystrokeListener): ditto.
958 (generateKeyEvent): upd.
960 * at-bridge/bridge.c (bridge_key_listener): handle
961 registry dead exception gracefully.
962 (bridge_focus_tracker, emit_eventv): free ev.
964 * test/simple-at.c (report_focus_event): fix polarity.
966 * libspi/application.c (notify_listeners): kill the ev
967 argument, and make sure we init the ev we use.
968 (spi_application_object_event_listener): split out a chunk
969 (get_atk_object_ref): here & fixup.
970 (reverse_lookup_name_for_toolkit_event): make const.
971 (spi_application_toolkit_event_listener): fixup, kill leaks
974 * at-bridge/bridge.c (register_atk_event_listeners):
975 don't unref the noop object - causes grief.
977 * libspi/registry.c: remove the X headers.
978 turn off the debug churn.
980 * libspi/accessible.c (spi_accessible_new_return): only
981 release the ref if we are supposed to [doh]
983 * test/simple-at.c (report_button_press, report_focus_event):
984 guard vs. unexpected exit.
986 * at-bridge/bridge.c (gtk_module_init): prune printf.
987 (bridge_exit_func): fix app unref.
989 * libspi/Makefile.am: don't install registry or desktop.h
991 * libspi/*.h: update includes.
993 * libspi/application.h: don't include ourself, or
994 other redundant headers.
996 2001-12-06 Michael Meeks <michael@ximian.com>
998 * libspi/accessible.c
999 (get_accessible_from_servant): impl.
1000 Upd. all CORBA impl.s to use it killing cut and paste.
1002 * cspi/spi_main.c (cspi_cleanup): guard vs. double
1004 (SPI_init): register atexit cleanup handler here.
1006 2001-12-06 Michael Meeks <michael@ximian.com>
1008 * at-bridge/bridge.c (gtk_module_init): g_error on
1009 activation exception
1011 2001-12-06 Michael Meeks <michael@ximian.com>
1013 * at-bridge/bridge.c (gtk_module_init): some sort of
1014 confusing merge clash - reverted.
1015 (bridge_idle_init): ditto.
1017 * test/test-simple.c (main, utterable_normal_derefs):
1018 merge from Bill - somehow not committed.
1020 2001-12-06 Michael Meeks <michael@ximian.com>
1022 * libspi/value.c (spi_value_class_init): upd.
1023 (spi_value_finalize): kill.
1025 * libspi/table.c (spi_table_finalize): kill.
1026 (spi_table_interface_new): upd.
1027 (spi_table_class_init): upd.
1028 (get_table_from_servant): impl.
1029 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1031 * libspi/selection.c (spi_selection_finalize): kill.
1032 (spi_selection_interface_new): upd.
1033 (spi_selection_class_init): upd.
1034 (get_selection_from_servant): impl.
1035 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1037 * libspi/relation.c (spi_relation_finalize): kill.
1038 (spi_relation_class_init, spi_relation_new): upd
1040 * libspi/image.c (spi_image_finalize): kill.
1041 (spi_image_class_init): upd.
1042 (spi_image_interface_new): upd.
1043 (get_image_from_servant): impl.
1044 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1046 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
1047 (spi_hyperlink_finalize): kill.
1048 (spi_hyperlink_new): upd.
1049 (get_hyperlink_from_servant): impl.
1050 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1052 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
1053 (spi_hypertext_finalize): kill.
1054 (spi_hypertext_class_init): upd.
1055 (get_hypertext_from_servant): impl.
1056 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1058 * libspi/editabletext.c (spi_editable_text_finalize): kill.
1059 (spi_editable_text_interface_new): upd.
1060 (get_editable_text_from_servant): impl.
1061 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1063 * libspi/text.c (get_text_from_servant): impl.
1064 All impls - update to use it killing more cut and paste,
1065 also fix bad string returns on duff args ( a somewhat
1066 impossible case to handle - but hey ).
1067 (spi_text_construct): impl.
1068 (spi_text_interface_new): upd.
1069 (spi_text_object_finalize): kill.
1071 * libspi/component.c
1072 (accessibility_component_object_finalize): kill.
1073 (spi_component_class_init): upd.
1074 (get_component_from_servant): impl. helper to kill cut & paste.
1075 (impl_accessibility_component_contains):
1076 (impl_accessibility_component_get_accessible_at_point):
1077 (impl_accessibility_component_get_position):
1078 (impl_accessibility_component_get_extents):
1079 (impl_accessibility_component_get_mdi_z_order):
1080 (impl_accessibility_component_get_layer):
1081 (spi_component_interface_new): upd.
1083 * libspi/action.c (spi_action_finalize): kill.
1084 (spi_action_class_init): upd. inherit from SpiObject.
1085 (spi_action_interface_new): upd.
1086 (get_action_from_servant): impl. helper to reduce cut & paste.
1087 (impl_getKeyBinding, impl_getName, impl_doAction),
1088 (impl_getDescription): Use it everywhere.
1090 * cspi/spi_main.c (get_live_refs): a pointer hash.
1091 (spi_object_hash, spi_object_equal): comment out.
1092 There are issues with CORBA object hashing that need
1095 * libspi/application.c (spi_application_init),
1096 (spi_application_new): upd.
1098 * libspi/accessible.c (spi_accessible_object_finalize): kill.
1099 (spi_accessible_class_init): upd.
1100 s/accessible/object/ in epv methods.
1102 2001-12-05 Bill Haneman <bill.haneman@sun.com>
1104 * at-bridge/bridge.c:
1105 Reorder the bridge initialization into the bridge gtk_module_init,
1106 an immediate call to bridge_register_app, and an idle_add for
1107 register_atk_event_listeners (the only code that *must* wait until
1108 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
1109 the activation, creates the application's Accessible object, and
1110 queues the bridge_idle_init function. Restored call to
1111 Accessibility_Registry_deregisterApplication().
1112 Prior to making this call we obtain a new reference to the
1113 registry, which is a temporary hack that helps us handle apps that
1114 shut down the bonobo mainloop before we get there.
1116 * libspi/registry.c:
1117 Fix string leakage in debug block, and don't segv if a an app
1118 dies before its event notifications have been propagated.
1121 Modify cspi_check_ev() to call g_warning() rather than g_error(),
1122 as stopgap measure until we get proper exception handling when
1123 objects die during or before interrogation.
1127 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
1128 Also changed default value of is_gnome_app to TRUE.
1131 * test/keysynth-demo.c:
1132 Changed use of SPI_init and SPI_event_main to reflect API change above.
1135 Made report_focus_event check the warning value from getName
1136 before reporting on focussed accessible; simplifies handling of
1137 notifications from dead objects.
1139 * test/test-simple.c: (Changes not in this patch since source is
1142 2001-12-05 Michael Meeks <michael@ximian.com>
1144 * registryd/registryd.c (main): protect against
1145 bonobo-activation startup race condition.
1147 * cspi/spi_main.c (cspi_object_add_check): cope
1148 with the exception elegantly.
1150 * idl/Accessible.idl: decl. ChildGone
1152 * libspi/desktop.c (spi_desktop_dispose): impl.
1153 (spi_desktop_class_init): upd.
1154 (spi_desktop_add_application),
1155 (spi_desktop_remove_application),
1156 (abnormal_application_termination): impl.
1157 (impl_desktop_get_child_at_index): re-impl.
1160 (impl_accessibility_registry_deregister_application),
1161 (impl_accessibility_registry_register_application):
1162 kill excessive debug clutter.
1164 * test/test-simple.c (test_misc): test some NULL
1165 tolerance. (main): upd.
1167 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
1168 implements no interfaces - so let's not crash.
1170 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
1172 * libspi/accessible.c (spi_accessible_new_return): impl.
1173 helper to calm the cut and paste, to cope with
1174 NULL AtkObjects effectively and efficiently, and to kill
1175 the referencing bugs.
1177 * libspi/table.c (impl_getAccessibleAt),
1178 (impl_getRowHeader, impl_getColumnHeader): upd.
1180 * libspi/hyperlink.c (impl_getObject): upd.
1182 * libspi/accessible.c
1183 (impl_accessibility_accessible_get_child_at_index): upd.
1185 * libspi/component.c
1186 (impl_accessibility_component_get_accessible_at_point): upd.
1188 * test/test-simple.c (test_editable_text, test_text): impl.
1191 * cspi/spi_editabletext.c
1192 (AccessibleEditableText_insertText): constify.
1194 * test/test-simple.c (focus_me): make more robust.
1196 * libspi/accessible.c: remove some printfs in methods that
1197 we test and work fine, so we can get a clean tree dump.
1199 * test/test-simple.c (validate_accessible),
1200 (validate_tree): make tree dumping pretty too.
1202 * at-bridge/bridge.c (bridge_signal_listener): upd. so
1203 it builds without debug on.
1205 * test/test-simple.c (validate_accessible): fix the most
1208 * cspi/spi_main.c (spi_object_release): leave the nicely
1209 blanked memory around if in debug mode.
1211 * cspi/spi-listener-impl.c (cspi_event): use add_check.
1213 [committed to fixups2]
1214 2001-12-05 Michael Meeks <michael@ximian.com>
1216 * libspi/editabletext.c
1217 (spi_editable_text_class_init): g_type_class_peek_parent,
1218 not interface peek - so we finalize cleanly.
1220 * libspi/accessible.c (spi_accessible_new): kill debug.
1222 * test/test-simple.c (validate_accessible): fix ref.
1223 leak, print strings before freeing them; sigh, comment a
1224 chunk out due to strangeness.
1225 (validate_tree): unref the child after use.
1227 * cspi/spi_component.c (AccessibleComponent_getLayer):
1228 add missing break statement, switch on zlayer not the
1229 uninitialized retval.
1231 * cspi/spi_main.c (cspi_object_add): add assert, local ref
1232 before (possibly re-entering) remote unref.
1234 * test/simple-at.c (main): unref the desktop.
1236 * cspi/spi_accessible.c (cspi_accessible_is_a): move
1239 * cspi/spi_main.c (cspi_accessible_is_a): here to
1240 isolate bonobo API usage more.
1242 * libspi/registry.c (impl_accessibility_registry_register_application):
1243 prune bogus comment.
1245 2001-12-04 Michael Meeks <michael@ximian.com>
1247 * test/test-simple.c (validate_tree): upd.
1248 IndexInParent check to make it more lucid.
1249 (validate_accessible): dump the tree.
1251 * libspi/accessible.c (de_register_public_ref),
1252 (get_public_refs): impl.
1253 (spi_accessible_new): make more efficient & intuitive.
1254 Now IndexInParent check works.
1256 2001-12-04 Michael Meeks <michael@ximian.com>
1258 * cspi/spi-util.h: remove.
1260 * cspi/spi.h: move SPI_freeString here
1262 * libspi/component.c (impl_accessibility_component_get_layer):
1264 (impl_accessibility_component_get_mdi_z_order): ditto,
1265 return -1 on error - is this ok ?
1267 * test/test-simple.c (test_application): impl.
1269 * cspi/spi_accessible.c (Accessible_getApplication),
1270 (Accessible_isApplication): impl.
1272 * libspi/registry.c (spi_listener_struct_free): release
1273 the CORBA reference too.
1275 * libspi/accessible.c
1276 (impl_accessibility_accessible_get_parent): fix ref leak.
1278 * libspi/registry.c (spi_registry_new): make the registry
1279 immortal - we don't want it to go away ever.
1281 * libspi/application.c
1282 (spi_accessible_application_finalize): impl. cleanup.
1284 * cspi/spi_registry.c
1285 (deregisterGlobalEventListenerAll),
1286 (deregisterGlobalEventListener),
1287 (deregisterAccessibleKeystrokeListener): fix ref leak.
1289 * cspi/spi_main.c (SPI_init): remove redundant ref.
1291 * test/test-simple.c (unutterable_horror): impl. to force a
1296 (impl_accessibility_registry_deregister_application): release
1297 the application when we de-register it.
1299 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
1300 until we have the infastructure to get it right.
1302 2001-12-03 Michael Meeks <michael@ximian.com>
1304 * libspi/Makefile.am: only build eventlistener.[ch]
1306 * libspi/accessible.c
1307 (impl_accessibility_accessible_get_child_at_index): don't leak.
1309 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
1310 before we hit the idle handler.
1312 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
1313 debugging than exit.
1315 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
1317 * libspi/listener.c (impl_notify_event): check source
1318 not NIL before unref.
1320 * libspi/registry.c (impl_registry_notify_event): ditto.
1322 * libspi/eventlistener.c
1323 (impl_accessible_event_notify_event): unref the source.
1325 * libspi/accessibleeventlistener.c
1326 (impl_accessible_event_notify_event): unref the source.
1328 * idl/Event.idl: remove 'hash_id' attribute - of no
1331 * libspi/application.c (notify_listeners): upd list
1333 (spi_application_object_event_listener),
1334 (spi_application_toolkit_event_listener): upd to do correct
1338 (_registry_notify_listeners): update.
1339 (parse_event_type): this method also leaks like a sieve.
1340 (impl_accessibility_registry_deregister_global_event_listener):
1341 fix ETYPE_WINDOW case.
1343 * libspi/application.c
1344 (impl_accessibility_application_register_object_event_listener):
1347 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
1349 * libspi/hypertext.c (impl_getLink): ditto.
1351 * cspi/spi_main.c (cspi_object_add): remove
1352 bogus CORBA_Object_duplicate.
1354 * cspi/spi-listener-impl.c (cspi_event): dup/ref
1357 * cspi/spi_accessible.c
1358 (Accessible_getRelationSet): fix leak / referencing issue.
1360 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
1361 (cspi_object_add, cspi_object_unref): upd.
1362 (spi_object_release, get_live_refs): impl.
1363 (cspi_cleanup): simplify.
1365 * *.[ch]: s/boolean/SpiBoolean/
1367 * cspi/spi_accessible.c (role_names): actualy order so it
1368 corresponds with the enum !
1370 * test/test-simple.c (test_roles): check some role strings
1371 vs. enums to detect offset errors.
1373 2001-12-01 Michael Meeks <michael@ximian.com>
1375 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
1377 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
1379 (Accessible_getChildAtIndex): use cspi_add_check so we
1380 check the ev before using a (possibly) invalid value.
1382 * libspi/accessible.c
1383 (impl_accessibility_accessible_get_parent): don't segv
1386 * at-bridge/bridge.c (gtk_module_init): upd.
1387 (bridge_property_event_listener): don't leak strings
1389 (bridge_state_event_listener),
1390 (bridge_property_event_listener): don't use a static
1391 buffer in case of recursive event emission &
1392 re-enterancy - split out the swathe of cut and paste
1394 (emit_eventv): and fix 2 ref leaks here & comply to the
1396 (bridge_register_app): rename to
1397 (bridge_idle_init): this and kill arg parsing, split
1398 various inits & bonobo-activation registration to module
1399 init time, kill referencing error.
1400 (bridge_exit_func): fix the same leak.
1401 (bridge_focus_tracker): don't leak event structures
1403 (bridge_signal_listener): more leakage and cut & paste
1405 (bridge_key_listener): return the result - FIXME is
1406 this polarity correct ?
1407 (accessibility_keystroke_from_atk_key_event): rename
1408 (accessibility_init_keystroke_from_atk_key_event): and stop
1410 (gtk_module_init): return a value - not that it is checked by
1412 (bridge_key_listener): register my horror at casting between
1413 IDL defined structs.
1414 (bridge_get_registry): kill - not used.
1416 * cspi/spi_accessible.c (Accessible_getRole): make return const.
1418 * test/test-simple.c (test_roles): impl.
1419 (test_desktop, validate_accessible, validate_tree): impl.
1421 * cspi/spi_accessible.c (role_names): fixup bogus
1422 MAX_ROLES setup, make constants const for efficient linkage
1423 (AccessibleRole_getName): conform to coding style, make
1426 2001-11-30 Michael Meeks <michael@ximian.com>
1428 * cspi/spi.h: add missing prototype.
1430 * libspi/registry.c (spi_listener_struct_new): fix sig.
1432 * test/Makefile.am: add test-simple
1434 * test/test-simple.c: add
1436 * test/test.sh: add.
1438 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
1440 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
1441 do it straight - since otherwise we often get an activation race.
1443 [ work before Bill duplicated a chunk of it ... ]
1444 2001-11-30 Michael Meeks <michael@ximian.com>
1446 * libspi/keystrokelistener.c
1447 (spi_keystroke_listener_class_init): fixup arg
1450 * libspi/eventlistener.c
1451 (spi_event_listener_class_init): ditto.
1453 * tests/test.sh: add.
1455 * cspi/spi-listener-impl.h: update macros.
1457 * cspi/spi-listener-impl.c
1458 (cspi_event_listener_remove_callback): add
1459 correct pre-conditions.
1461 * cspi/spi_main.c (SPI_exit): guard vs. double
1462 exits, exit the mainloop nicely.
1463 (SPI_event_main): make more sense.
1464 (SPI_init): move the atexit evilness here so we
1465 always do it (yuck).
1466 (SPI_event_main): upd.
1468 * test/simple-at.c: update for listener changes.
1470 * registryd/registryd.c (main): prune kruft.
1472 * libspi/libspi.h: upd.
1474 * libspi/eventlistener.[ch]: rename broken macros.
1476 * libspi/accessibleeventlistener.[ch]: remove.
1478 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
1480 * test/test-simple.c: Add - automated tests.
1482 * cspi/spi-listener-impl.c (cspi_event),
1483 (cspi_key_event): add user_data to invoke.
1484 (cspi_keystroke_listener_finalize): impl.
1485 (cspi_keystroke_listener_class_init): upd.
1488 (createAccessibleEventListener),
1489 (AccessibleEventListener_addCallback),
1490 (createAccessibleKeystrokeListener),
1491 (AccessibleKeystrokeListener_addCallback): upd.
1493 * libspi/deviceeventcontroller.c
1494 (spi_device_event_controller_check_key_event): add public proto.
1497 (impl_accessibility_registry_deregister_global_event_listener):
1498 always init listeners.
1499 (_registry_notify_listeners): yes it is.
1501 * cspi/spi-listener-impl.c (cspi_key_event):
1503 (cspi_event_listener_finalize): impl.
1504 (cspi_event_listener_class_init): hook up.
1505 (event_handler_new, event_handler_free),
1506 (event_list_remove_by_callback): impl.
1507 (cspi_event_listener_remove_callback),
1508 (cspi_keystroke_listener_remove_callback),
1509 (cspi_keystroke_listener_add_callback),
1510 (cspi_event_listener_add_callback): upd.
1512 * libspi/keystrokelistener.c
1513 (keystroke_listener_object_finalize): kill
1514 (spi_keystroke_listener_class_init): upd.
1515 (spi_keystroke_listener_add_callback),
1516 (spi_keystroke_listener_remove_callback): kill,
1518 (impl_key_event): prune drasticaly.
1520 * libspi/eventlistener.c
1521 (spi_event_listener_add_callback),
1522 (spi_event_listener_remove_callback): kill, use
1524 (impl_accessible_event_notify_event): upd.
1525 (spi_event_listener_object_finalize): remove.
1527 * libspi/Makefile.am: use eventlistener.[ch]
1529 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1531 * libspi/registry.c (_registry_notify_listeners):
1532 Changed listener loop iteration to use preferred convention.
1533 Got rid of string memory leaks caused be calling g_strconcat
1534 inside function calls.
1536 * libspi/registry.c (parse_event_type):
1537 Stopped g_strconcat memory leaks, free the g_strsplit return,
1538 g_strdup the split pieces when used, etc.
1540 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1543 Change method 'compare' to return a 'difference set' rather than
1544 taking a StateSet as an out parameter (more Java-friendly).
1546 * idl/Accessible.idl:
1547 Added CORBA struct 'BoundingBox', to faciliate API changes below:
1549 * idl/Component.idl:
1551 Changed methods 'getExtents' and 'getImageExtents' in these
1552 interfaces to return a BoundingBox structure.
1553 (getPosition and getSize are redundant and possibly should be
1554 removed, rather than creating a corresponding Point struct.)
1556 * cspi/spi_component.c:
1557 Modify implementation of getExtents to reflect the above IDL
1562 Add (missing) AccessibleImage_getExtents () API.
1564 * docs/reference/cspi/at-spi-cspi-sections.txt:
1565 Added AccessibleImage_getImageExtents () to docs.
1567 2001-12-03 Bill Haneman <bill.haneman@sun.com>
1569 * idl/Component.idl:
1570 Added two methods, getLayer () and getMDIZOrder (), to reflect
1571 the new ATK methods atk_object_get_layer and
1572 atk_object_get_mdi_z_order. (Which arguably should be part of the
1573 AtkComponent API and AtkObject). Also added an enum,
1574 ComponentLayer, for the first method's return value.
1576 * libspi/component.c:
1577 Added implementations for these methods.
1579 * cspi/spi_component.c:
1581 Added cspi binding methods for above,
1582 AccessibleComponent_getLayer() and
1583 AccessibleComponent_getMDIZOrder().
1584 Added cspi enum 'AccessibleComponentLayer'.
1586 * docs/reference/cspi/at-spi-cspi-sections.txt:
1587 Added above methods to docs.
1591 Changed typedef for 'boolean' type (and all references to it) to
1592 SPIBoolean, to avoid keyword clashes with C++.
1595 Changed usages of 'boolean' to SPIBoolean.
1597 * test/keysynth-demo.c:
1598 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
1599 app), except where SPIBoolean is required by the callbacks API.
1601 2001-12-02 Bill Haneman <bill.haneman@sun.com>
1603 * cspi/spi_registry.c:
1604 Removed obsolete X event loop for passive keygrabs (which now
1607 * registryd/registryd.c:
1608 Removed unnecessary call to gdk_init() [cruft]. This also allows
1609 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
1612 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1614 * docs/reference/cspi:
1615 Included docs for SPI_freeString in generated documentation.
1618 Renamed spi_freeString to SPI_freeString, for consistency. Added
1619 documentation for this function.
1622 Renamed spi_freeString to SPI_freeString, for consistency.
1623 Removed obsolete method declaration string_from_corba_string.
1625 * test/keysynth-demo.c:
1626 Small tweak to comments.
1629 Stopped leaking the strings returned from CSPI.
1631 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1633 Merged Michael's branch (see his ChangeLog entries below).
1635 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
1636 bridge is alive, release on exit.
1638 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
1639 Fix type check macro.
1642 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
1645 Added is_gnome_app static, and method cspi_is_gnome_app(),
1646 so we can call the appropriate shutdown routine at exit in SPI_exit.
1648 * cspi/spi_main.c (cspi_object_ref):
1649 Duplicate the corba object passed in, since we're keeping it around.
1651 * cspi/SPI_exit.c, cspi_cleanup:
1652 Moved the releasing of the live refs to its own function, so we
1653 can put it in g_atexit (). Call the appropriate shutdown API
1654 depending on whethe calling client is a gnome app or not
1655 (bonobo_main_quit or CORBA_ORB_shutdown).
1657 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
1658 Unref the listener when this method is called, after
1659 deregistration. Updated the API docs to note this behavior.
1661 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
1662 Bugfixes: Ref the bonobo object when returning a parent or child
1663 reference, or an AccessibleRelation. Generally made sure
1664 BonoboObject refcount is incremented whenever we return an
1667 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
1668 Fixed typo/bug in signal declaration.
1670 * libspi/accessibleeventlistener.h:
1673 * libspi/application.c (spi_application_new):
1674 Fixed leak in initialization.
1677 Remembered to increment bonobo-object refcount when returning
1678 children (applications) from desktop object.
1679 Added (empty) finalize method.
1681 * libspi/deviceeventcontroller.c:
1682 Hold a ref to listeners inside DEControllerKeyListeners.
1683 Added dec_key_listener_free() method. Use prepend instead of
1684 append in key_listener list. Fixed some refcount madness and
1685 leaks in the listener registration/deregistration - deregistration
1686 now calls dec_key_listener_free() on listeners, and on the
1687 temporarily constructed dec_key_listener() used to perform the search/match.
1689 * libspi/hypertext.c (spi_hypertest_finalize):
1690 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
1691 class. Also fixed spi_hypertext_interface_new() and
1692 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
1694 * libspi/hypertext.h:
1695 Removed pointless and duplicate AtkObject pointer from
1698 * libspi/keystrokelistener.c:
1699 Fixed incorrect type of keystroke_listener_parent_class,
1700 renamed keystroke_listener_object_finalize to
1701 spi_keystroke_listener_object_finalize.
1702 Fixed typo in signal declaration
1703 (spi_keystroke_listener_class_init).
1705 * libspi/registry.c:
1706 Added funcsions spi_listener_struct_new() and
1707 spi_listener_struct_free() to help with memory management issues.
1708 We also now use these methods instead of gnew + poking stuff into
1709 the struct, and to decrement listener counts/free the listeners
1710 when deregistering them.
1711 Fix more refcount bugs in getDesktop() and
1712 getDeviceEventController().
1715 De-ref the desktop after enumerating the applications. Explicitly
1716 decrement the refcounts on the created listeners on exit (using
1717 _unref for keystroke listeners, and via the
1718 deregisterGlobalEventListenerAll command for other event
1721 2001-11-27 Michael Meeks <michael@ximian.com>
1723 * cspi/spi-listener.h: fixup enum.
1725 2001-11-27 Michael Meeks <michael@ximian.com>
1727 * cspi/spi-listener-impl.c (cspi_event_listener_new),
1728 (cspi_keystroke_listener_new): Use the cspi variants.
1730 2001-11-26 Michael Meeks <michael@ximian.com>
1732 * test/keysynth-demo.c: fix 2 compile warnings, missing
1735 * test/simple-at.c (report_focussed_accessible),
1736 (report_focus_event, report_button_press),
1737 (check_property_change, is_command_key),
1738 (report_ordinary_key_event, report_command_key_event): upd.
1740 * util/mag_client.h: include pre-requisites.
1742 * libspi/accessibleeventlistener.c
1743 (spi_event_listener_object_finalize): free any lingering
1746 * libspi/keystrokelistener.c
1747 (keystroke_listener_object_finalize): ditto.
1749 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
1750 callbacks, with cspi types.
1752 * cspi/spi_event.c (createAccessibleEventListener): chain to
1753 (AccessibleEventListener_addCallback): here.
1754 (createAccessibleKeystrokeListener): chain to
1755 (AccessibleKeystrokeListener_addCallback): here.
1757 * libspi/keystrokelistener.c
1758 (spi_keystroke_listener_class_init): add signal.
1759 (impl_key_event): emit the event.
1760 (boolean_handled_accumulator): impl.
1761 (marshal_BOOLEAN__POINTER): add, gack.
1763 * libspi/accessibleeventlistener.c
1764 (spi_event_listener_class_init): add signal.
1765 (impl_accessible_event_notify_event): emit the signal &
1766 make the loop efficient.
1767 (spi_event_listener_add_callback): prepend the callback.
1769 * libspi/accessibleeventlistener.h: add an 'event' signal,
1770 decl type on callback.
1772 * libspi/keystrokelistener.h: ditto.
1774 * cspi/spi-listener.h: make methods typesafe and
1775 make them use the new event typedefs.
1777 * test/simple-at.c (report_focussed_accessible):
1778 include mag_client.h
1779 Use *(void *)text_interface not the other thing.
1781 * configure.in: add gtk to registryd bits - since we use
1784 * util/magnifier.c: include libbonobo.h
1786 2001-11-25 Bill Haneman <bill.haneman@sun.com>
1788 * test/keysynth-demo.c:
1789 Turned this into a simple scanning keyboard, to demonstrate the
1790 use of g_timeout_add () as a means of creating timers for
1791 scanning, and the use of GtkStyle for visually indicating when
1792 virtual keyboard elements are selected.
1794 keysynth-demo now listens to any keyboard keys with zero-valued
1795 keycodes (i.e. 'unused' keys) and interprets them as
1798 Reworked the shiftlatch code so that shift-down state isn't held
1799 for long periods (it's only synthesized immediately prior to
1800 the keysynth event it's modifying). Note that shiftlatch in this
1801 demo is a convenience, not intended to take the place of AccessX
1802 which is the better choice for getting 'sticky' modifier keys.
1804 * libspi/deviceeventcontroller.c:
1805 * at-bridge/bridge.c:
1806 * cspi/spi_registry.c:
1807 Removed some debug print stuff, and put other verbosity in #ifdef
1812 Implemented some more of the magnifier IDL for the simple
1813 magnifier: namely, getZoomRegionParams.
1814 Added mag_x and mag_y members to MagnifierData struct, aid of this
1816 Added GtkWindow::realize signal handler to magnifier, to keep it
1817 from receiving keyboard focus from the WM.
1819 2001-11-23 Mark McLoughlin <mark@skynet.ie>
1821 * cspi/spi-private.h: my guess at what michael forgot
1822 before he ran off to NZ :-)
1824 2001-11-23 Michael Meeks <michael@ximian.com>
1826 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
1827 comment out non existant method invoke so we link.
1829 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
1830 use bonobo_exception_get_text for more friendly warnings.
1832 * cspi/spi.c (Obj_Add): move into spi_main & rename
1833 spi_object_add; kill spi.c
1835 * cspi/spi_registry.c
1836 (deregisterGlobalEventListener),
1837 (deregisterGlobalEventListenerAll),
1838 (registerGlobalEventListener): fix exception leaks.
1840 * cspi/spi_main.c (spi_exception): impl. helper, so we
1841 don't leak exceptions.
1843 * cspi/spi_selection.c
1844 (AccessibleSelection_deselectSelectedChild): return the
1847 * cspi/spi_main.c (spi_ev): impl; hack - gack.
1848 (spi_registry): ditto.
1849 (SPI_init): guard against double inits.
1851 * cspi/*.c: use spi_ev (), and spi_registry () where
1852 appropriate - a temporary hack until we have something
1853 better. Use spi_object_add
1855 2001-11-22 Michael Meeks <michael@ximian.com>
1857 * cspi/Makefile.am: re organise, install the headers.
1859 * cspi/*.h: add G_BEGIN/END_DECLS
1861 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1864 Added non-preemptive keylistener for key events with no modifiers
1865 and shift-only modifier.
1867 * libspi/keystrokelistener.c:
1868 Removed some verbose diagnostics printout.
1870 * cspi/spi_registry.c:
1871 Fixed a bug that caused all key listeners to be registered as
1874 * libspi/deviceeventcontroller.c:
1875 Fixed bug that caused XGrabKey (preemptive key grab) to be called
1876 for non-preemptive key masks.
1879 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1881 * docs/reference/idl/at-spi-idl-docs.sgml:
1882 * docs/reference/idl/at-spi-idl-sections.txt:
1883 * docs/reference/idl/at-spi-idl-overrides.txt:
1884 Added missing files.
1886 * docs/reference/Makefile.am:
1887 removed idl from SUBDIRS until we can figure a way to get gtk-doc
1888 to scan the IDL files :-(
1893 Added .cvsignore files.
1895 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1897 * libspi/deviceeventcontroller.c:
1898 * libspi/keystrokelistener.c:
1900 * cspi/spi_registry.c:
1901 Added filters for KeySets, KeyEventSeq, and event types to key
1902 event dispatching, so listeners should only receive those events
1903 that they requested :-)
1905 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1910 * docs/reference:Makefile.am:
1911 * docs/reference/cspi:
1912 * docs/reference/cspi:Makefile.am:
1913 * docs/reference/cspi:tmpl:
1914 * docs/reference/cspi:tmpl:*.sgml:
1915 * docs/reference/idl:
1916 * docs/reference/idl:Makefile.am:
1917 * docs/reference/idl:at-spi-idl-sections.txt:
1918 * docs/reference/idl:at-spi-idl-docs.sgml:
1919 * docs/reference/idl:tmpl:
1920 * docs/reference/idl:tmpl:*.sgml:
1922 Restructured docs directory to allow separate 'reference' docs
1923 section, and forked idl and cspi docs. Added the sgml template
1924 files to CVS. Added the first sections/structural sgml for the
1927 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
1929 * configure.in, libspi/Makefile.am: find libXtst.
1931 2001-11-21 Michael Meeks <michael@ximian.com>
1933 * test/accessx-gui.c: s/spi_value/value/ - doh.
1935 * libspi/base.[ch]: add.
1937 2001-18-11 Bill Haneman <bill.haneman@sun.com>
1939 * idl/Accessible.idl:
1940 * idl/Application.idl:
1943 Started gtk-doc cleanup on IDL.
1945 * libspi/deviceeventcontroller.c:
1946 Added and connected non-preemptive key notification from the
1947 toolkits (in addition to the pre-emptive support from XServer
1948 which we had before, but which causes 'focus flashing'). Filters
1949 are presently limited to key modifiers and global/non-global,
1950 KeySets are presently ignored, as are KeyEvent masks.
1952 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
1953 structs into the persistant structure rather than just storing
1954 pointers to things that might not persist across servant
1957 The XGrabKey call now does async keygrabs, because synchronous
1958 ones were deadlocking with GDK_event code in a very nasty way.
1960 Added boolean to internal method notify_keylisteners, to indicate
1961 whether the event came from the 'toolkit source' or the 'global
1962 (XServer) source' - this is used in the notification process to
1963 determine which listeners to send the event to.
1965 deviceeventcontroller.c is now warning-free.
1967 * libspi/registry.c:
1968 Fixed regression in application de-registration.
1969 Also fixed some really brain-dead weirdness having to do with
1970 event dispatching - event structs are now duplicated before being
1971 re-marshalled in the dispatch to listeners. This also fixes a
1972 Solaris build problem.
1975 2001-20-11 Michael Meeks <michael@ximian.com>
1978 (impl_accessibility_registry_deregister_global_event_listener):
1981 * libspi/deviceeventcontroller.c
1982 (spi_device_event_controller_check_key_event): return
1983 FALSE on no virtual method.
1985 * libspi/*..h: make includes work on a correctly pathed install.
1987 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
1989 * libspi/application.h: kill unused ( and whacked out )
1990 gboolean *spi_application_set_id (AtkObject *app, long id);
1992 2001-20-11 Michael Meeks <michael@ximian.com>
1994 * libspi/*.[ch]: further convert to bonobo's type func
1995 macros, remove redundnant casts etc.
1997 * libspi/text.c s/accessibility_text/spi_text/g,
1998 re-order to de-cruft.
2000 * libspi/hypertext.c: re-order to kill a huge slew
2001 of redundant forward decls.
2003 * libspi/relation.c: ditto.
2005 * libspi/image.c: ditto.
2007 * */.cvsignore: update
2009 2001-20-11 Michael Meeks <michael@ximian.com>
2011 * libspi/deviceeventcontroller.c
2012 (_controller_register_with_devices): use g_getenv,
2013 kill stdlib.h include.
2015 * libspi/keystrokelistener.c
2016 (spi_keystroke_listener_get_type): kill
2017 (spi_keystroke_listener_class_init),
2018 (spi_keystroke_listener_init): rename to this.
2020 * libspi/text.c (impl_getAttributes): fix warning / bug.
2022 * libspi/*.[ch]: more headers, includes and over commenting.
2024 2001-20-11 Michael Meeks <michael@ximian.com>
2026 * libspi/*.[ch]: fixup headers, includes and over commenting.
2028 * libspi/image.c (impl__get_imageDescription): const
2029 correctness warning fix. remove redundant casting.
2031 * libspi/table.c (impl_getRowDescription): ditto.
2032 (impl_getColumnDescription): ditto.
2034 * libspi/libspi.h: add.
2036 2001-19-11 Michael Meeks <michael@ximian.com>
2038 * libspi/editabletext.c (impl_setAttributes): fix warnings.
2040 * libspi/component.c (accessibility_component_get_type):
2041 rename to (spi_component_get_type): and macroify.
2042 (accessibility_component_init): rename to
2043 (spi_component_init): this
2044 (accessibility_component_class_init): rename to
2045 (spi_component_class_init): this
2047 * libspi/action.c (spi_action_get_type): kill, use the macro.
2049 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
2052 * libspi/application.c (spi_application_object_event_listener),
2053 (impl_accessibility_application_register_object_event_listener):
2054 warning fixes / const understanding updates.
2056 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
2059 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2061 * libspi/spi_accessible.c: Added docs and C bindings for
2062 AccessibleStateSet. (No implementations yet). Documentation
2063 coverage for C bindings now 100%. Made docs for event listeners
2068 boolean notifyListenersSync (in DeviceEventListener listener,
2069 in DeviceEvent event);
2071 oneway void notifyListenersAsync (in DeviceEventListener listener,
2072 in DeviceEvent event);
2074 Added DeviceEventListener and DeviceEvent structs (may deprecate
2075 KeyStroke and KeystrokeListener in favor of this generic
2076 event/listener framework for devices).
2078 * libspi/deviceeventcontroller.c:
2080 Changed some key listener code to take masks, etc., and paved the
2081 way for integration of toolkit/non-preemptive key events. Changed
2082 signatures of some internal methods.
2084 * at-bridge/bridge.c:
2085 Fixed regression connecting to interface signals, apparently
2086 caused by GTK+ changes.
2088 Added an internal bridge_state_listener to deal with
2089 property-change:accessible-state signals.
2091 Changed the key_listeners GList to store structs (including masks,
2092 etc.) instead of just CORBA_Objects (required for full
2093 implementation of key listener API).
2095 Connected the bridge to all currently supported Atk signals.
2096 Events now supported:
2097 object:property-change
2098 object:property-change:accessible-name
2099 object:property-change:accessible-state
2100 object:property-change:accessible-description
2101 object:property-change:accessible-parent
2102 object:property-change:accessible-value
2103 object:property-change:accessible-role
2104 object:property-change:accessible-table-caption
2105 object:property-change:accessible-table-column-description
2106 object:property-change:accessible-table-column-header
2107 object:property-change:accessible-table-row-description
2108 object:property-change:accessible-table-row-header
2109 object:property-change:accessible-table-summary
2110 object:children-changed
2111 object:visible-data-changed
2112 object:selection-changed
2113 object:text-selection-changed
2115 object:text-caret-moved
2117 object:row-reordered
2119 object:column-inserted
2120 object:column-reordered
2121 object:column-deleted
2122 object:model-changed
2124 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2126 * libspi/hyperlink.c,h:
2127 Fixed some broken stuff in hyperlink.
2129 * libspi/relation.h:
2130 * libspi/relation.c:
2131 * cspi/spi_accessible.c:
2132 Initial implementations of AccessibleRelation methods, and docs.
2134 * libspi/accessible.c:
2135 Fixed a bug that caused SEGV if an accessible
2136 object's description is NULL, and a client
2137 requests it. An empty string is now returned.
2139 * cspi/spi_editabletext.c:
2140 * cspi/spi_hypertext.c:
2142 * cspi/spi_hyperlink.c:
2146 Doc coverage now 95%.
2148 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2150 One last namespacing revision:
2151 * libspi/accessibleeventlistener.[ch]:
2152 Renamed SpiAccessibleEventListener to SpiEventListener,
2153 (no need for two namespaces ;-)
2155 And lots of documentation fixes:
2157 * docs/at-spi-docs.sgml:
2158 Fixed 'underscore vs. hyphen' bug that was preventing
2159 the gtk-doc API docs from being automatically generated.
2162 * cspi/spi-listener.h
2164 * cspi/spi_accessible.c
2166 * cspi/spi_application.c
2167 * cspi/spi_component.c
2168 * cspi/spi_editabletext.c
2170 * cspi/spi_hypertext.c
2172 * cspi/spi_registry.c
2173 * cspi/spi_selection.c
2177 * docs/at-spi-docs.sgml
2178 * docs/at-spi-sections.txt
2180 Added and fixed up gtk-doc documentation in cspi.
2182 Interfaces now (fully) documented (subject to revision and enhancement):
2184 Event Listener Support
2186 AccessibleApplication
2190 AccessibleEditableText
2197 AccessibleRelationSet
2202 2001-14-11 Bill Haneman <bill.haneman@sun.com>
2204 * at-bridge/bridge.c:
2205 Initial work for toolkit-level key snooper connection by bridge.
2210 New typedefs and fixes to support new namespacing, and cleaner
2211 separation of cspi bindings from libspi bonobo implementation.
2212 Removed inconsistent and extraneous Spi* namespace prefix that
2213 had crept into cspi headers.
2214 Lots of comment fixes that sed had missed.
2216 * cspi/spi-roletypes.h:
2217 * cspi/spi-statetypes.h:
2218 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
2219 to AccessibleRoleType.
2221 * libspi/accessibleeventlistener.h:
2222 Fixed minor namespacing weirdness.
2224 * libspi/deviceeventcontroller.c:
2225 Reordered some internal API for device listeners.
2226 Changed the key registry final boolean to 'is_system_global'
2227 rather than 'is_synchronous', which is more descriptive of its
2229 Added spi_device_event_controller_new().
2230 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
2232 * libspi/keystrokelistener.[ch]:
2233 Namespaced KeystrokeListener to SpiKeystrokeListener.
2234 Changed uses of keymasks to use SPI_ prefix, and did other
2237 * libspi/keymasks.h:
2238 Namespaced keymask constants with SPI_ prefix.
2240 * libspi/registry.c:
2241 Some warning fixes, and knock-on fixes from namespace changes.
2244 Added rules for accessx-gui test program.
2246 * test/accessx-gui.c:
2247 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
2248 utility. It doesn't actually use at-spi, but it's still cool and
2251 * test/keysynth-demo.c:
2255 Fixes so that these test clients work properly with the namespaced
2256 libraries. (Incompletely tested for technical reasons, fixes may follow)
2259 2001-13-11 Michael Meeks <michael@ximian.com>
2261 * libspi/application.c
2262 (impl_accessibility_application_get_version),
2263 (impl_accessibility_application_get_toolkit_name):
2265 (impl_accessibility_application_set_id),
2266 (impl_accessibility_application_get_id): remove
2267 redundant casting code.
2269 * libspi/action.c (impl_getDescription): fix warnings.
2271 * libspi/accessible.c
2272 (impl_accessibility_accessible_get_parent),
2273 (impl_accessibility_accessible_get_child_at_index),
2274 (impl_accessibility_accessible_get_state),
2275 (impl_accessibility_accessible_get_relation_set):
2276 warning fixes & include action.h
2278 2001-13-11 Michael Meeks <michael@ximian.com>
2280 * *.[ch] fix bits I screwed up:
2282 s/([^ \tb(\*\&\?\",])spi_/\1/g;
2283 s/([^ \tb(\*\&\?\",])Spi/\1/g;
2285 2001-13-11 Michael Meeks <michael@ximian.com>
2287 * *.[ch] Namespace libspi into spi_ and Spi.
2289 2001-13-11 Michael Meeks <michael@ximian.com>
2291 * Makefile.am: dist & install at-spi-1.0.pc
2293 * libspi/Makefile.am: install into at-spi-1.0
2295 * idl/Makefile.am (idldir): install into at-spi-1.0
2297 * at-spi-1.0.pc.in: add.
2299 * configure.in: build it.
2301 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2303 * test/keysynth-demo.c:
2304 Use a 'realize' signal-handler to set the WM properties for
2305 the virtual keyboard, rather than making it a "POPUP" type
2306 override-redirect window (thanks to anders carlsson for that
2309 2001-11-11 Bill Haneman <bill.haneman@sun.com>
2312 * test/keysynth-demo.c:
2313 Added new test of key synthesis, which creates a simple
2314 (mouse-operated) onscreen keyboard. It inserts key events into
2315 the currently-focused window, thus it does not grab keyboard focus
2318 * cspi/spi_registry.c:
2319 Added C binding for AT-SPI generateKeyEvent.
2321 * libspi/deviceeventcontroller.c:
2322 Added call to XFilterEvent so that key listener works with XIM (we
2323 hope). Added event_synth_type to generateKeyEvent, so that we can
2324 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
2325 synthesize a press/release pair for KeySyms.
2327 2001-11-09 Bill Haneman <bill.haneman@sun.com>
2329 * libspi/Makefile.am:
2330 * registryd/Makefile.am:
2331 (temporary) hack to include libXtst in libspi and registryd.
2332 (Needed for keystroke synthesis, see below).
2335 Improved API for registerKeystrokeListener, in accordance with
2336 discussions with Gnopernicus team and X server research.
2338 * libspi/registry.c:
2339 * libspi/deviceeventcontroller.c:
2340 * libspi/accessible.c:
2341 * libspi/keystrokelistener.c:
2342 Changes and fixes to support keylisteners for potentially
2343 consumed key events (that is, 'passive grabs').
2344 Added implementation for generateKeyEvent() [untested].
2347 Changes to registerKeystrokeListener() API, as above.
2348 Added deregisterGlobalEventListenerAll(), and
2349 deregisterKeystrokeListener(), which are needed for clean exit of
2351 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
2352 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
2354 * cspi/spi_registry.c:
2355 Added implementations of function prototypes mentioned above.
2357 * registryd/registryd.c:
2358 Added the key listener event source as a g_timeout(), to allow
2359 receipt of key events that are not caught by GDK (since GDK
2360 doesn't support passive keygrabs, this was necessary).
2363 Changed to attach a keylistener to 'Alt' keys, and
2364 respond to the following keycommands: Alt-M (toggle magnifier);
2365 Alt-F (toggle speech); Alt-Q (quit).
2366 Added an exit routine to deregister the listeners, and a key
2367 listener that prints some key info to the console when a key
2368 matches the listener mask (and is thus received by the listener).
2370 * util/idl/Magnifier.idl:
2371 Changes to magnifier API to support multiple zoom regions,
2372 non-uniform scaling in x and y, markDirty, and a host of other
2373 features that would be useful to magnification.
2376 * util/mag_client.c:
2377 * util/mag_client.h:
2378 * util/mag_control.c:
2380 Source code changes to support the above IDL changes.
2383 As above, and also changes to use a (slower) generic conversion
2384 path for colormap conversions, since the fast RGB conversions have been
2385 reported to fail for 16-bit displays.
2387 2001-10-26 Michael Meeks <michael@ximian.com>
2389 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
2391 <2001-10-26 Laszlo Peter <laca@ireland.sun.com>
2393 * at-bridge/Makefile.am: fix LDFLAGS.
2395 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2397 * at-bridge/bridge.c:
2398 Re-worked listeners for toolkit events, now we have signal
2399 and property listeners. Added a private method
2400 register_atk_event_listeners(), which registers with the
2401 various atk and gtk signals we need to monitor in order to emit
2403 Added emission hook for AtkObject:property-change events, to
2404 support the 'property listeners'.
2405 Fixed some alloc()s of Accessibility_Event structs to use CORBA
2408 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
2409 which emit warnings and exit, respectively, if CORBA errors occur
2410 during remote calls, and we now use these methods to check most of
2411 our CORBA calls in the C bindings.
2413 * cspi/spi_accessible.c:
2414 Changed AccessibleSelection_refSelectedChild() to
2415 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
2416 now increment refcounts.
2418 * cspi/spi_component.c:
2419 Fixed some long pointer casts (dangerous!) to pass pointers to
2420 CORBA_longs of the proper type to the CORBA stubs, and copy the
2421 data into the longs that were passed into the C bindings code.
2423 * at-bridge/bridge.c:
2425 * libspi/accessible.c:
2426 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
2427 hyperlinks, AtkHyperlink is an object type.
2429 * libspi/application.c:
2430 Added various conversions to and from "generic" event types and
2431 atk-specific types; this is really part of the 'bridge'
2432 implementation but is valid for all AtkObject-based accessibility
2435 * libspi/editabletext.c:
2436 Fixed nasty bug wherein editable text's finalize method was
2437 unref'ing tha AtkObject reference that the text parent class was
2438 about to unref _again_. There was also a nasty inheritance bug
2439 that meant that the AccessibleEditableText class was corrupt.
2441 * libspi/selection.c:
2442 Provided implementations for some selection API that was broken.
2444 * idl/Application.idl:
2445 Added registerObjectEventListener () method.
2448 Fixed a number of return values that were Bonobo_Unknowns from
2449 bonobo_object_corba_objref(), which I
2450 forgot to dup before returning. Changed instances of
2451 bonobo_object_corba_objref (bonobo_object(o)) to
2452 BONOBO_OBJREF(o), for concision and clarity.
2454 <2001-10-13 Louise Miller <louise.miller@sun.com>
2456 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
2457 idl/Event.idl, idl/Registry.idl
2458 Changed these files to include Bonobo_Unknown.idl instead
2461 <2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
2463 * libspi/component.c libspi/component.h:
2464 Fixed typo. Added assertions for object checks in
2465 AccessibleComponent code.
2467 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
2469 * idl/Accessible.idl:
2470 Added 'isEqual (Accessible *object)'
2471 method for Accessible. (Not Yet Implemented).
2474 Changed signature of registerKeystrokeListener() to
2475 take a KeySet and KeyEventSeq so that specific keys and event
2476 types could be requested for monitoring, and added a flag
2477 is_synchronous so that either synchronous or asynchronous
2478 notification could be requested. (However this is not all
2479 implemented yet). This also meant adding two new typedefs,
2480 KeyEventSeq and KeySet.
2483 Added two new relations, RELATION_TOOLTIP_FOR and
2484 RELATION_LEAFNODE_OF.
2487 Added new state, STATE_HAS_TOOLTIP.
2489 * libspi/text.c, editabletext.c:
2490 Added new assertions to all casts of bonobo-objects from
2491 CORBA servants, to prevent Text API calls on non-text objects.
2492 Changed suspect casts of int-pointer types, so that we
2493 always send a valid CORBA_long pointer to the CORBA APIs that use
2494 in/out long parameters. We then have to copy from the CORBA_long
2495 into the regular long or int for return to the C bindings, or
2496 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
2499 * libspi/deviceeventcontroller.c:
2500 Cleaned these sources up.
2502 Changed return type for getCharacterAtOffset to
2503 CORBA_unsigned_long, to allow for 32-bit characters.
2506 <2001-10-08 Bill Haneman <bill.haneman@sun.com>
2510 Fixed 'make dist' so that distro compiles...
2511 * libspi/keymasks.h:
2513 * cspi/spi-listener.c:
2514 KeystrokeListenerCB now returns a boolean.
2516 Added KeyEventType struct, and KeyStroke.
2517 Also added createKeystrokeListener(),
2518 KeystrokeListener_addCallback(),
2519 KeystrokeListener_removeCallback(), and added a keymask to
2520 registerKeystrokeListener().
2521 * cspi/spi_accessible.c:
2522 Changed numerous return types for interfaces from
2523 AccessibleComponent to Accessible<InterfaceName>; this was
2524 probably a cut-and-paste error.
2526 Implementations of new KeystrokeListener api (from spi.h,
2529 Changes to key modifier mapping.
2530 Created ControllerEventMask struct.
2531 Made DeviceEventController derive from Bonobo::Unknown.
2533 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
2534 * libspi/deviceeventcontroller.c:
2535 Added a number of new internal (private) methods.
2536 * libspi/editabletext.c:
2537 * libspi/editabletext.h:
2538 Fixed a number of bugs related to the fact that
2539 editabletext inherits from text. Fixed the EditableText struct,
2540 the init() call, and use correct casts when calling Text methods
2541 from an EditableText object. Removed (duplicate) atko from the
2542 EditableText structure, we use the one in the parent Text
2543 structure via the casts mentioned above.
2544 * libspi/keystrokelistener.[ch]:
2545 * libspi/registry.c:
2546 Changes in support of keyboard handling (above).
2548 Keyboard handling, though partly functional, is still not
2549 recommended for at-spi client use as there is considerable
2550 work yet to be done.
2553 Changed some places where pointers to various int types
2554 are cast to be pointers to CORBA_long types and vice-versa:
2555 pointer casting is not safe so we pass pointers of the correct
2556 types and then cast the result before putting it into the target
2559 * libspi/text.h: minor typos corrected.
2561 We now speak not only the name of a Text element, but the
2562 first sentence of its content, when it receives focus.
2563 I also changed the text compression to 75% from 50%.
2564 * util/Accessibility_Util.server.in:
2565 Changed the default magnifier type to be a 3x vertical
2566 splitscreen magnifier (was previously a 2x horizontal one).
2568 <2001-10-03 Bill Haneman <bill.haneman@sun.com>
2570 * libspi/keystrokelistener.h:
2571 * libspi/keystrokelistener.c:
2572 Initial functional implementations of KeystrokeListener.
2575 <2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
2577 Fixed string handling for NULL strings in libspi.
2578 Added spi_freeString to free strings returned by C bindings.
2580 <2001-09-30 Bill Haneman <bill.haneman@sun.com>
2582 * libspi/keystrokelistener.h:
2583 * libspi/keystrokelistener.c:
2584 Began (no-op) implementations of KeystrokeListener
2586 * libspi/deviceeventcontroller.c:
2587 * libspi/deviceeventcontroller.h:
2588 Began creating implementations of DeviceEventController,
2589 to handle keystroke and mouse event listening and
2591 * libspi/accessible.c:
2592 Stubbed-in the implementations for
2593 Accessibility_Accessible_getState and
2594 Accessibility_Accessible_getRelationSet.
2595 * libspi/registry.c:
2596 Improved de-registration process and fixed some bugs,
2597 deregistration now works correctly.
2599 Added initialization of applications list (to NULL).
2601 Reduced speech compression from 0.5 to 0.7, for demo.
2602 Changed call to gdk_window_set_decorations()
2603 to gtk_window_set_decorated().
2604 * at-bridge/bridge.c:
2605 Bridge now deregisters when app exits, via
2606 registration of a cleanup function
2607 with the g_atexit() call.
2608 Required making 'app' static, renamed 'this_app'.
2609 Fixed broken use of bonobo_init, passing argv wrongly.
2611 <2001-09-27 Bill Haneman <bill.haneman@sun.com>
2615 Created a new directory for
2616 accessibility-related utilities, primarily for
2617 testing and demo purposes, but with possible
2624 Onscreen magnifier utility that
2625 is implemented as a bonobo service.
2627 * util/mag_client.c:
2628 * util/mag_client.h:
2629 Client-side support (simple C bindings)
2630 for Magnification service
2632 * util/mag_control.c:
2633 Client program example for
2634 Magnification service
2636 * util/Accessibility_Magnifier.server.in:
2637 Bonobo-activation file for the
2638 Magnification service.
2641 * util/idl/Magnifier.idl:
2642 IDL defining the bonobo Magnification
2646 Modifications to use the bonobo-activated magnifier
2647 above, in place of trying to connect to an existing
2648 magnifier that uses socket-listening IPC.
2650 If env variable MAGNIFIER is set, a magnifier service
2651 will be started if one does not exist.
2653 <2001-09-25 Bill Haneman <bill.haneman@sun.com>
2654 * at-bridge/bridge.c:
2655 applied patch from Marc to build and run
2656 against new glib and gtk+ (seemed like a change
2657 to bonobo_init signature was made ?)
2659 made festival-server support turned off by default.
2660 Added support for a simple magnifier (off by default)
2661 which will be added to a 'util' directory later.
2662 * at-bridge/Makefile.am:
2663 Changed "application.h" header from a 'source'
2664 to a 'dependency' of libat-bridge.
2666 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2674 Added interface implementation c files to list of
2675 includes so they are included in libcspi.
2678 Changed prototype of AccessibleAction_doAction to return a
2680 Changed prototype of AccessibleTable_getCaption to
2681 return an Accessible.
2682 Changed prototype of AccessibleTable_getSelectedRows
2683 and AccessibleTable_getSelectedColumns to
2684 return a long (returns the number of selected rows
2685 or columns respectively).
2686 Changed name of AccessibleText_refRunAttributes to
2687 AccessibleText_getAttributes.
2688 Changed prototype of AccessibleText_getCharacterExtents to
2689 return a void rather than a boolean.
2690 Added support for a AccessibleCoordType parameter
2691 specifying what type of coordinates are desired.
2692 Added an AccessibleCordType parameter to
2693 AccessibleText_getPointAtOffset.
2695 * cspi/spi_accessible.c:
2696 Added code to return the outstanding interfaces from
2697 Accessible_queryInterface.
2699 * cspi/spi_action.c:
2701 Corrected call to getNActions to call the c binding
2704 * cspi/spi_editabletext.c:
2706 Changed name from setRunAttributes to setAttributes.
2708 * cspi/spi_hyperlink.c:
2710 Changed call to getNAnchors to correctly call the c
2711 binding for an attribute.
2713 * cspi/spi_hypertext.c:
2715 Changed getImageDescription to correctly call the
2716 binding for an attribute.
2718 * cspi/spi_selection.c:
2719 Changed getNSelectedChildren to correctly call the c
2720 binding for the attribute.
2721 Changed refSelectedChild to getSelectedChild.
2725 Changed getCaption to return an Accessible.
2726 Fixed calls which retrieve attributes.
2727 Changed refAt to getAccessibleAt.
2728 Changed getNSelectedRows and getNSelectedColumns to
2732 Changed getCharacterExtents and getPointAtOffset to accept an
2733 AccessibleCoordType.
2735 Changed calls which retrieve attributes.
2736 Changed refRunAttributes to getAttributes.
2741 * idl/Hyperlink.idl:
2742 Changed n_anchors attribute to nAnchors to keep naming
2743 convention consistent.
2746 Made Table inherit from Bonobo::Unknown.
2747 Added nSelectedColumns and nSelectedRows attributes.
2750 Made Value inherit from Bonobo::Unknown.
2752 * libspi/hyperlink.c:
2753 Change for nAnchors attributte name change.
2755 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2763 Added interface implementation c files to list of
2764 includes so they are included in libcspi.
2767 Changed prototype of AccessibleAction_doAction to return a
2769 Changed prototype of AccessibleTable_getCaption to
2770 return an Accessible.
2771 Changed prototype of AccessibleTable_getSelectedRows
2772 and AccessibleTable_getSelectedColumns to
2773 return a long (returns the number of selected rows
2774 or columns respectively).
2775 Changed name of AccessibleText_refRunAttributes to
2776 AccessibleText_getAttributes.
2777 Changed prototype of AccessibleText_getCharacterExtents to
2778 return a void rather than a boolean.
2779 Added support for a AccessibleCoordType parameter
2780 specifying what type of coordinates are desired.
2781 Added an AccessibleCordType parameter to
2782 AccessibleText_getPointAtOffset.
2784 * cspi/spi_accessible.c:
2785 Added code to return the outstanding interfaces from
2786 Accessible_queryInterface.
2788 * cspi/spi_action.c:
2790 Corrected call to getNActions to call the c binding
2793 * cspi/spi_editabletext.c:
2795 Changed name from setRunAttributes to setAttributes.
2797 * cspi/spi_hyperlink.c:
2799 Changed call to getNAnchors to correctly call the c
2800 binding for an attribute.
2802 * cspi/spi_hypertext.c:
2804 Changed getImageDescription to correctly call the
2805 binding for an attribute.
2807 * cspi/spi_selection.c:
2808 Changed getNSelectedChildren to correctly call the c
2809 binding for the attribute.
2810 Changed refSelectedChild to getSelectedChild.
2814 Changed getCaption to return an Accessible.
2815 Fixed calls which retrieve attributes.
2816 Changed refAt to getAccessibleAt.
2817 Changed getNSelectedRows and getNSelectedColumns to
2821 Changed getCharacterExtents and getPointAtOffset to accept an
2822 AccessibleCoordType.
2824 Changed calls which retrieve attributes.
2825 Changed refRunAttributes to getAttributes.
2830 * idl/Hyperlink.idl:
2831 Changed n_anchors attribute to nAnchors to keep naming
2832 convention consistent.
2835 Made Table inherit from Bonobo::Unknown.
2836 Added nSelectedColumns and nSelectedRows attributes.
2839 Made Value inherit from Bonobo::Unknown.
2841 * libspi/hyperlink.c:
2842 Change for nAnchors attributte name change.
2845 <2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
2847 implementations-- made server implementations own AtkObject pointers
2848 rather than their respective AtkInterrface pointers to fix
2849 refcounting. AtkHyperlink is still broken.
2851 <2001-09-04 Bill Haneman <bill.haneman@sun.com>
2852 * cspi/spi_accessible.c:
2853 Added method Accessible_Role_getName(),
2854 and requisite string array (role_names).
2855 Added conversion string_from_corba_strin() call
2856 to Accessible_getName and _getDescription.
2857 * libspi/accessible.c:
2858 Added implementation for Accessible_getRole()
2860 Added festival support, used if environment variable
2863 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2865 * at-bridge/bridge.c:
2866 Now allocate Accessibility_Event using
2867 Accessibility_Event__alloc() instead of g_new0().
2868 * libspi/accessibleeventlistener.c:
2869 Initialize AccessibleEventListener->callbacks to NULL.
2870 Fixed accessible__event_listener_init() param, changed to
2871 "AccessibleEventListener *" type.
2872 Changed a bonobo_object_release_unref() call to
2873 Accessibility_Accessible_unref().
2874 * libspi/listener.c:
2875 Changed Bonobo_Unknown_unref to (equivalent)
2876 Accessibility_Accessible_unref.
2877 * libspi/registry.c:
2878 Changed bonobo_object_release_unref to
2879 Accessibility_Accessible_unref.
2881 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2884 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
2885 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
2886 spi-util.c spi-util.h
2887 Implementations for C bindings to remaining accessibility
2890 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2893 changed return value of Action from void to boolean to
2894 bring in line with ATK.
2897 Changed getText funcions to return "out" start and end offsets.
2898 Changed getAttributes to take and offset and return the start
2899 and end offset of the attribute run.
2900 Changed getOffsetAtPoint and getCharacterExtents to take an
2901 enum describing whether coordinates are window or screen.
2904 libspi/action.c libspi/action.h libspi/editabletext.c
2905 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
2906 libspi/hypertext.c libspi/hypertext.h libspi/image.c
2907 libspi/image.h libspi/selection.c libspi/selection.h
2908 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
2909 libspi/value.c libspi/value.h
2910 Added server implementations for outstanding ATK interfaces
2911 not yet implemented.
2913 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2916 Added (missing) getName() method.
2917 Made nActions an attribute.
2918 * idl/EditableText.idl:
2919 Changed order of params in setAttributes.
2920 * idl/Hyperlink.idl:
2921 Removed getAnchor, added getURI.
2923 Changed attributes to methods, for efficiency
2924 (so that getting extents can be done in one call)
2925 * idl/Selection.idl:
2926 Changed nSelectedChildren to attribute, and re-indented.
2927 * idl/Table.idl: changed nrows, ncolumns, caption, summary
2929 * idl/Text.idl: reformatted to match our coding style.
2930 (temporarily?) removed getRowColumnAtOffset().
2931 Changed text selection API to support multi-select and
2932 non-contiguous selections, as in ATK.
2933 * idl/Value.idl: changed some methods to attributes.
2935 2001-08-24 Mark McLoughlin <mark@skynet.ie>
2937 * libspi/listener.c(impl_notify_event):
2938 BonoboUnkown_unref the source instead
2939 of bonobo_object_release_unref - the ORB
2940 handles the releasing.
2942 * configure.in: require ORBit-2.3.94 for
2945 2001-08-21 Bill Haneman <bill.haneman@sun.com>
2947 Tagged CVS repository 'EA_1_0'.
2948 * README.EARLY_ACCESS:
2949 Alphabetized acknowledgements list, and
2951 Listed some known dependencies of at-spi.
2953 2001-08-20 Bill Haneman <bill.haneman@sun.com>
2955 * docs/at-spi-docs.sgml:
2956 * docs/at-spi-sections.txt:
2957 * docs/at-spi-overrides.txt: (Added zero-length file)
2958 Documentation improvements - gtk-doc should build
2959 docs for all implemented C bindings now.
2962 * cspi/spi.c: (New file)
2963 * cspi/spi_event.c: (New file)
2964 * cspi/spi_registry.c: (New file)
2965 * cspi/spi_accessible.c: (New file)
2966 * cspi/spi_application.c: (New file)
2967 * cspi/spi_component.c: (New file)
2968 Split spi_main.c into six parts, and included them from
2969 "spi.c". This is a bit of a hack, probably temporary,
2970 but required by gtk-doc, apparently.
2972 2001-08-20 Bill Haneman <bill.haneman@sun.com>
2975 * docs/at-spi-docs.sgml:
2976 * docs/at-spi-sections.txt:
2978 Initial checkins/modifications for gtk-doc generation.
2981 Added (missing) interface query methods to Accessible's C binding.
2983 Added GenericInterface type definition.
2985 Added query for AccessibleComponent interface to focus event handler.
2986 Added printout of bounding box for focussed component.
2987 * libspi/component.c:
2988 Added partial implementation for AccessibleComponent to C binding.
2989 * idl/Application.idl:
2990 * libspi/registry.c:
2991 * libspi/listener.c:
2992 * libspi/application.c:
2993 * libspi/application.h:
2994 Changed "ID" attribute type from string to long.
2996 2001-08-19 Bill Haneman <bill.haneman@sun.com>
3000 Made method naming consistent: methods taking object args
3001 start with uppercase, other methods (except those using
3002 acronyms) start with lowercase. Underscores delimit between
3003 object names and method names:
3004 SPI_init() - uppercase since it starts with an acronym.
3005 getDesktopCount () - lowercase start since no object param0.
3006 Accessible_getName() - uppercase object type name, studlyCaps method
3010 Added gtk-doc documentation for all currently implemented
3011 methods in the C bindings API.
3013 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3015 * Makefile.am : changed build order to build test last.
3018 Changed "createEventListener" to "CreateEventListener".
3019 * libspi/accessibleeventlistener.c :
3020 Bugfix for addition of callbacks.
3021 * test/Makefile.am :
3022 * test/simple-at.c :
3023 Added new test that uses the C bindings API.
3025 * libspi/listener.c :
3026 * libspi/registry.c :
3027 * libspi/accessibleeventlistener.c :
3028 * at-bridge/bridge.c :
3029 Renamed member "target" of Accessibility_Event to "source",
3030 which is more descriptive.
3033 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3037 * cspi/Makefile.am :
3038 Added makefile support for at-spi/cspi directory.
3041 * cspi/spi-listener.h : (NEW FILE)
3042 Added support for/use of spi-listener.h.
3044 C bindings now build successfully, with no warnings.
3045 * libspi/accessibleeventlistener.h : (NEW FILE)
3046 * libspi/accessibleeventlistener.c : (NEW FILE)
3047 * libspi/Makefile.am :
3048 Added new object type "AccessibleEventListener"
3049 which inherits from Listener, and allows attachment
3050 of in-process callbacks (so that a client with a listening
3051 object instance can add functionality to the local
3052 implementation, dynamically).
3054 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3056 * libspi/accessible.c:
3057 Add implementation for get_index_in_parent().
3059 Added #include of "spi-roletypes.h", and
3060 added enumerated type AccessibleCoordType.
3061 Added definition for KeystrokeListener (function type).
3064 * cspi/spi-statetypes.h :
3065 * cspi/spi-roletypes.h :
3067 Added these headers, used by spi.h.
3069 Added code (NOTE: not yet built by make).
3071 2001-08-18 Mark McLoughlin <mark@skynet.ie>
3073 * libspi/Makefile.am: generate imodule
3074 at the same time as other idl compiler
3077 2001-08-17 Bill Haneman <bill.haneman@sun.com>
3078 * libspi/registry.c :
3079 * libspi/application.c :
3080 * idl/Application.idl :
3081 Made registration with toolkit an application method,
3082 which is required since each app has its own toolkit static
3083 environment. Thus the bridge must register for
3084 notification of toolkit events from each application in turn.
3085 Toolkit notifications are now successfully registered for, and
3086 sent to the listening at client.
3088 Changed toolkit event string to use hyphens rather than underscores.
3089 * libspi/listener.c :
3090 listner now gives more info in debug mode - it reports the
3091 name of the event received, as well as the name of the source.
3094 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3096 * libspi/registry.c :
3097 added more implementation for toolkit events.
3098 Fixed bug such that toolkit event registrations
3099 (via atk) use the whole event name string, not
3101 Removed a useless call to an ORBit_ method.
3102 * at-bridge/bridge.c :
3103 Removed unused local sbuf[] variable.
3105 We now register for Gtk:GtkWidget:button_press_event
3106 events as well as "focus:" events.
3108 Add some more API from Registry.idl that was missing,
3109 for keystroke listening, keystroke and mouse event
3110 synthesis, and enumeration of accessible desktops.
3112 2001-08-16 Michael Meeks <michael@ximian.com>
3114 * configure.in: use AM_GLIB_GNU_GETTEXT.
3116 * Makefile.am (SUBDIRS): kill intl.
3118 2001-08-15 Michael Meeks <michael@ximian.com>
3120 * registryd/Makefile.am: s/oaf/server/ relocate info file.
3122 * configure.in: upd.
3124 * configure.in: depend on a recent bonobo-activation that
3125 will find our server files ...
3127 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3129 * libspi/accessible.c : accessible_new() :
3130 Now we add the Component interface via bonobo_object_add_interface,
3131 if the contained AtkObject implements AtkComponent.
3132 * libspi/accessible.h : now include "component.h"
3133 * libspi/component.h :
3134 * libspi/component.c : added files - implementation of
3135 bonobo wrapper object for Accessibility/Component
3136 * libspi/listener.c :
3137 Added test code to check for Accessibility/Component:1.0
3138 interface and report whether it is implemented by the
3140 * libspi/registry.c :
3141 Now we check for not only the hash of the whole event
3142 string before relaying the event, we also check the
3143 "minor" event string (without the detail string).
3144 This allows event listeners to be registered against
3145 all events of a certain major+minor type, or just
3146 against a specific major+minor+detail type.
3147 * libspi/accessible.c :
3148 Added implementations for Accessible:get_parent(),
3149 Accessible:getChildCount(), and Accessible:getChildAtIndex().
3150 * libspi/registry.c :
3151 * libspi/listener.c :
3152 Replaced calls to Accessibility_Accessible_ref() and
3153 Accessibility_Accessible_unref() with
3154 calls to bonobo_object_dup_ref() and
3155 bonobo_object_release_unref(), so that the CORBA object
3156 is dup-ed and released when relayed, as well as the bonobo object.
3158 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3160 * libspi/Makefile.am,
3161 registryd/Makefile.am,
3162 at-bridge/Makefile.am.
3163 test/Makefile.am, configure.in:
3164 reverse previous changes.
3166 * /idl/Image.idl: fix typo.
3168 * test/Makefile.am: put DEBUG_FLAGS
3171 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3173 * test/app.c: use argv[0] instead of
3176 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3178 * libspi/Makefile.am,
3179 registryd/Makefile.am,
3180 at-bridge/Makefile.am.
3181 test/Makefile.am, configure.in:
3182 cleanup, replace individual LIBS/CFLAGS with
3183 AT_COMMON_{LIBS|CFLAGS}.
3187 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3189 * configure.in, libspi/Makefile.am:
3190 Change IDL path checking for bonobo-activation
3193 2001-08-15 Bill Haneman <bill.haneman@sun.com>
3195 * registryd/registry.c : separated event listeners to use
3196 3 separate lists (focus, window, toolkit). Began testing
3197 event names against hashes before relaying events.
3198 * test/at.c : now register for events of type "focus:"
3199 * test/app.c : now generate events of type "focus:"
3200 * at-bridge/bridge.c : register with ATK for focus events,
3201 and we now relay those focus events to any "focus:" listeners.
3202 This now works with the bridge as a GTK_MODULE when running test/at.
3203 * libspi/registry.c :
3204 * libspi/listener.c :
3205 now we ref event sources before propagating, and unref on receipt.
3206 * libspi/registry.c :
3207 some changes to internal structs, to support event typestring hashes.
3208 * text/app.c : changed the way the appname is generated.
3209 * cspi : added directory that will hold the C bindings library for
3210 non-CORBA/bonobo-savvy clients.
3211 * cspi/spi.h : header file that contains the function prototypes for the C binding.
3212 * idl/Component.idl : added in parameter to indicate coord system for
3213 geometry-related calls.
3214 * idl/Hyperlink.idl : added readonly n_links attribute
3215 * idl/Image.idl : changed methods to attributes.
3217 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3219 * at-bridge/Makefile.am: link against
3220 ../libspi/libspi.la instead of -lspi.
3222 * at-spi/test/app.c: include
3223 bonobo-activation.h. Use a default appname
3224 if one is not provided.
3226 2001-08-14 Bill Haneman <bill.haneman@sun.com>
3228 * idl/Registry.idl : temporarily changed register_Application
3229 to oneway, to work around issue with initial registration
3231 * idl/Application.idl : changed attribute "id" from readonly
3232 to read-write, since it needs to be assigned by Registry.
3233 * registryd/registryd.c : added call to set application id
3235 * registryd/registry.c : changed de-registration procedure to
3236 use CORBA_Object_hash() to find matching object ref in application
3237 lists and listener lists.
3238 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
3239 began distinguishing between event types (work in progress).
3241 2001-08-13 Bill Haneman <bill.haneman@sun.com>
3244 * libspi/application.c:
3245 Added implementations for get/set id, get_toolkitName,
3247 * registryd/registryd.c :
3251 Converted from use of OAF to bonobo-activation.
3252 * libspi/desktop.h :
3253 * libspi/desktop.c :
3255 Removed references to atksimpleobject, since base atkobject
3256 implementation now provides functionality we need.
3257 * libspi/atksimpleobject.c :
3258 * libspi/atksimpleobject.h :
3263 * at-bridge/Makefile.am
3264 * at-bridge/bridge.c
3267 Added directory "bridge" and contents, and added dependencies
3268 in Makefile.am/configure.in.
3269 Initial checkin of "at-bridge".
3270 This code is a GTK_MODULE which automatically registers
3271 GTK+ apps with the accessibility registry, using an object
3272 reference to the root ATK object.
3274 2001-08-10 Mark McLoughlin <mark@skynet.ie>
3276 * po/Makefile.in.in: Remove. Again. If this
3277 doesn't get autogenerated - you need to update
3280 2001-08-07 Mark McLoughlin <mark@skynet.ie>
3282 * po/Makefile.in.in: Add. Again.
3284 2001-07-31 Bill Haneman <bill.haneman@sun.com>
3286 * libspi/accessible.c : added support for 'description' property.
3287 * libspi/accessible.c
3289 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
3290 (since the two are now equivalent in libbonobo)
3298 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
3299 Bonobo::Unknown as does Accessibility::Accessible.
3300 * idl/StreamableContent.idl : as above, and replaced internal InputStream
3301 interface with Bonobo::Stream, since it was redundant with it.
3302 (The Stream returned by a StreamableContext object is expected to
3303 implement only a subset of Bonobo::Stream)
3305 2001-07-28 Anders Carlsson <andersca@gnome.org>
3307 * libspi/accessible.c (accessible_object_finalize): Change
3308 g_free to g_object_unref since the AtkObject is a GObject.
3310 2001-07-30 Bill Haneman <bill.haneman@sun.com>
3312 * idl/Accessibility.idl: add new IDL files
3315 * idl/Action.idl: Definitions of actionable UI object
3316 * idl/Component.idl: Definitions of UI component geometry, etc.
3317 * idl/Hyperlink.idl: Defs of hyperlink behavior
3318 * idl/Image.idl: Def of accessible image
3319 * idl/Selection.idl: Definition of UI object with selectable children
3320 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
3321 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
3322 * idl/Text.idl: Interface defs for UI elements with complex textual content
3323 * idl/Value.idl: Definition of UI element that is a value controller or display
3325 2001-07-27 Michael Meeks <michael@ximian.com>
3327 * po/Makefile.in.in: remove autogenerated file from CVS.
3329 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
3332 * idl/Registry.idl: include guard.
3334 * idl/Accessibility.idl: Add, and include all the other IDL
3337 * idl/*.idl: remove mass of pragmas etc.
3339 2001-07-26 Michael Meeks <michael@ximian.com>
3341 * registryd/Makefile.am (registryd_SOURCES): remove
3344 2001-07-27 Mark McLoughlin <mark@skynet.ie>
3346 * libspi/.cvsignore, registryd/.cvsignore,
3347 test/.cvsignore: updated.
3349 * po/Makefile.in.in: gettext update.
3351 2001-07-25 Bill Haneman <bill.haneman@sun.com>
3353 * initial CVS checkin
3355 2001-06-29 Michael Meeks <michael@ximian.com>
3357 * configure.in: add AM_CONFIG_HEADER to gen config.h