1 2002-05-10 Bill Haneman <bill.haneman@sun.com>
3 * registryd/deviceeventcontroller.c:
4 Fixed bug in grab key conversion which was causing keycode grabs
5 to be converted to AnyKey grabs.
8 updated NEWS file to reflect recent spin-off of gnome-mag.
10 2002-05-09 Bill Haneman <bill.haneman@sun.com>
12 * cspi/spi_registry.c:
13 Fixed nasty bug in SPI_registerAccessibleKeystrokeListener
14 which was uncovered by the recent key changes.
16 2002-05-09 Bill Haneman <bill.haneman@sun.com>
18 * test/event-listener-test.c:
20 Added new test, "event-listener-test";
21 this code does two things; it benchmarks traversal time
22 for the accessible hierarchy for the first running accessible
23 app, and it connects listeners for all supported event types.
24 It is thus useful as an example event listener and for
25 diagnostics/debugging of event generation.
27 2002-05-08 Bill Haneman <bill.haneman@sun.com>
30 Removed unnecessary dependency on libutil.
33 Revved micro version: 0.13.1
35 2002-05-08 Bill Haneman <bill.haneman@sun.com>
38 Removed util/Makefile from targets.
41 Removed util subdir from SUBDIRS (temporarily,
42 pending removal of magnifier-only code
46 #ifdef-ed out magnifier dependencies, since
47 magnifier IDL, headers, and binary now live in
48 module gnome-mag and we don't want at-spi to depend
49 on gnome-mag. A magnifier demo which can run alongside
50 simple-at is forthcoming in the gnome-mag module.
52 NOTE: Split magnifier binary, IDL, and magnification
53 activation code from at-spi into module gnome-mag.
55 2002-05-03 Bill Haneman <bill.haneman@sun.com>
58 Revved to version 0.13.0
60 * idl/Accessibility_Registry.idl:
61 Changed definition of KeySet from sequence of longs to sequence of
62 KeyDefinitions, and added KeyDefinition struct.
63 Required for fix to bug 80616.
65 * cspi/spi_registry.c: SPI_registerAccessibleKeystrokeListener():
66 Changed AccessibleKeySet to Accessibility_KeySet marshalling code
67 to use new definition (see above).
69 * registryd/deviceeventcontroller.c: handle_keygrab(),
70 spi_keyset_contains_key():
71 Changed to make use of new struct; this allows matching based on
72 string key-name, for instance "Tab". This also allows matching of
73 composed characters, non-alphanumeric characters in a way that
74 doesn't involve dependencies on X keysym codes directly, etc.
76 * test/key-listener-test.c:
77 Added test for Alt-Tab key using "string" specification of keyset,
78 and modified one of the tests to use a keycode-based keyset.
79 Thus this test both tests and demonstrates the creation and use of
80 keysets of three forms: specified via keycode array,
81 keysym array, and string array. (The string case only contains a
82 single string, i.e. a string array of length 1).
85 Turned on PRINT_TREE option by default. Also fixed a
86 string-freeing bug in the PRINT_TREE code.
87 Added a listener to window:minimize events.
89 2002-05-08 Padraig O'Briain <padraig.obriain@sun.com>
91 * atk-bridge/bridge.c:
92 (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
93 for window:activate and window:deactiveate
94 (atk_bridge_property_event_listener atk_bridge_signal_listener
95 atk_bridge_window_event_listener) Tidy debug code
97 2002-05-02 Marc Mulcahy <marc.mulcahy@sun.com>
99 * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
100 Fixed handling for NULL return value from ATK.
102 * libspi/action.c libspi/component.c libspi/editabletext.
103 libspi/hyperlink.c libspi/hypertext.c image.c libspi/selection.c
104 libspi/stateset.c libspi/table.c libspi/text.c libspi/value.c:
105 Removed redundant casts.
107 * libspi/table.c (impl_getSelectedRows, impl_getSelectedColumns):
108 Fixed off by one bug.
110 *libspi/text.c: removed impl_getRowColAtOffset (unimplemented
111 function not present in idl)
113 2002-05-02 jacob berkman <jacob@ximian.com>
115 * atk-bridge/Makefile.am: make atk-bridge a real module
117 2002-04-26 Radek Doulik <rodo@ximian.com>
119 * libspi/stateset.c (spi_init_state_type_tables): fix size of
120 atk_state_types table
122 2002-04-22 jacob berkman <jacob@ximian.com>
125 * libspi/Makefile.am: add deps on the built files to help
126 automake, and don't version the ORBit typelib
128 2002-04-19 Padraig O'Briain <padraig.obriain@sun.com>
130 * cspi/cspi-lowlevel.h cspi/spi-impl.h cspi/spi-listener.h
131 cspi/spi-private.h cspi/spi-roletypes.h cspi/spi-statetype.h
132 cspi/spi.h cspi/spi_accessible.c cspi/spi_action.c
133 cspi/spi_application.c cspi/spi_component.c cspi/spi_editabletext.c
134 cspi/spi_hyperlink.c cspi/spi_hypertext.c cspi/spi_image.c
135 cspi/spimain.c cspi/spi_selection.c cspi/spi_streamablecontent.c
136 cspi/spi_table.c cspi/spi_text.c cspi/spi_value.c
137 libspi/accessible.h libspi/accessible.h libspi/base.h
138 libspi/component.h libspi/editabletext.h libspi/hyperlink.h
139 libspi/hypertext.h libspi/image.h libspi/keymasks.h libspi/libspi.h
140 libspi/relation.h libspi/remoteobject.h libspi/selection.h
141 libspi/spi-private.h libspi/statetset.h libspi/table.h
142 libspi/text.h libspi/util.h libspi/value.h util/mag_client.c
143 util/mag_client.h util/mag_control.c util/mag_image.c
144 util/mag_image.h util/magnifier.c util/magnifier.h:
145 Add missing file headers; standardize existing ones
147 2002-04-18 Marc Mulcahy <marc.mulcahy@sun.com>
149 * atk-bridge/bridge.c: Added window event support.
151 2002-04-18 Michael Meeks <michael@ximian.com>
153 * libspi/relation.c (impl_getNTargets): impl.
154 (impl_getTarget): impl.
156 * libspi/Makefile.am: fix stateset install.
158 2002-04-17 Bill Haneman <bill.haneman@sun.com>
161 Started putting useful info in this file.
163 2002-04-17 Marc Mulcahy <marc.mulcahy@sun.com>
165 * atk-bridge/bridge.c:
166 Propagate state-changed notifications to ATs
168 * cspi/spi_registry.c: update docs to reflect actual behavior of
171 2002-04-17 Bill Haneman <bill.haneman@sun.com>
174 Incremented version to 0.12.1
177 Add missing declaration for magnifier_exit,
178 used by mag_control.c - Forte compiler didn't like
179 the implicit redeclaration of the function :-(
182 2002-04-16 Bill Haneman <bill.haneman@sun.com>
185 Revved version to 0.12 due to API change (see below).
187 * cspi/spi-roletypes.h:
188 removed (obsolete) SPI_ROLE_FOCUS_TRAVERSABLE
189 definition from the inline docs, and added docs
190 for SPI_ROLE_LAST_DEFINED.
193 * cspi/spi_streamablecontent.c:
194 Added missing seek_type parameter to
195 (so far unused) method,
196 AccessibleStreamableContent_seek().
197 [ RT approval JodyG. ]
200 Fixed docs for SPI_createAccessibleKeystrokeListener.
202 * cspi/spi_registry.c:
203 Fixed docs for SPI_KEYSET_ALL_KEYS.
205 * docs/reference/cspi/at-spi-cspi-sections.txt:
206 Added a number of missing APIs to SECTIONS.
208 2002-04-16 Bill Haneman <bill.haneman@sun.com>
210 * registryd/Makefile.am:
212 * cspi/bonobo/Makefile.am:
213 Add $(X_LIBS) to makefiles.
215 2002-04-15 Bill Haneman <bill.haneman@sun.com>
218 Revved version to 0.11.
220 * libspi/component.c:
221 Added implementation for grabFocus.
223 * idl/Accessibility_Component.idl
224 (Accessibility_Component_grabFocus):
225 Made this method return boolean to indicate success or failure, to
226 be consistent with cspi and the corresponding ATK method.
228 * idl/Accessibility_Selection.idl
229 (Accessibility_Selection_selectAll) :
230 Made these methods return boolean to indicate success or
231 failure, to be consistent with cspi and the corresponding ATK methods.
233 * idl/Accessibility_EditableText.idl
234 (Accessibility_EditableText_setTextContents,
235 Accessibility_EditableText_insertText,
236 Accessibility_EditableText_cutText,
237 Accessibility_EditableText_deleteText,
238 Accessibility_EditableText_pasteText):
239 Made these methods return boolean to indicate
242 * cspi/spi_editabletext.c:
243 Made these methods return booleans.
245 * libspi/selection.c:
246 * libspi/component.c:
247 * libspi/editabletext.c:
248 Connected the boolean returns from ATK
249 to the server-side code referenced above.
251 2002-04-14 Bill Haneman <bill.haneman@sun.com>
253 * idl/Accessibility_Table.idl: Added missing methods,
254 Accessibility_Table_addRowSelection,
255 Accessibility_Table_addColumnSelection,
256 Accessibility_Table_removeRowSelection,
257 Accessibility_Table_removeColumnSelection.
260 Added C wrappers for above IDL:
261 AccessibleTable_addRowSelection,
262 AccessibleTable_addColumnSelection,
263 AccessibleTable_removeRowSelection,
264 AccessibleTable_removeColumnSelection.
267 Added server-side implementation code for IDL above, connecting
268 to pre-existing ATK api.
270 2002-04-13 Marc Mulcahy <marc.mulcahy@sun.com>
272 * idl/Accessibility_State.idl: Made StateSet inherit from BonoboUnknown.
274 * libspi/accessible.c: Added implementation fo
275 Accessibility_Accessible_get_state.
277 * libspi/libspi.h: Added stateset.h to the list of includes.
279 * libspi/stateset.c: Fixed broken implementation.
281 2002-04-13 Bill Haneman <bill.haneman@sun.com>
284 Added implementation code for Accessibility_Magnifier_exit ().
286 * util/mag_control.c:
287 Added test code for above method; you can
288 now kill an existing magnifier via
289 ./mag_control q, from the util directory.
291 * test/key-listener-test.c:
293 Added a new test, for our key listener API.
295 2002-04-11 Bill Haneman <bill.haneman@sun.com>
297 * test/app.c, test/keysynth-demo.c:
299 Replace use of snprintf with g_snprintf.
300 (fix for bugzilla 78249)
302 2002-03-27 Michael Meeks <michael@ximian.com>
306 * util/Makefile.am (INCLUDES): fix.
307 (DONT_DIST_SOURCE): don't distribute the
310 * libspi/Makefile.am (dist-hook): ditto.
312 2002-03-27 Padraig O'Briain <padraig.obriain@sun.com>
314 * libspi/hypertext.c:
315 Fix warnings when yelp is used with atk-bridge
317 2002-03-21 Michael Meeks <michael@ximian.com>
319 * libspi/application.c (spi_application_new):
320 use spi_accessible_construct so we use the AtkObject
323 2002-03-19 Michael Meeks <michael@ximian.com>
325 * registryd/registry.c (desktop_remove_application),
326 (desktop_add_application): clean coding style.
328 * registryd/desktop.c (spi_desktop_remove_application),
329 (spi_desktop_add_application): kill re-enterency hazards.
330 (spi_desktop_dispose): remove bogus redundant cast
331 obscuring bug; fix bug too.
332 (spi_desktop_init): make the desktop object immortal.
334 2002-03-16 Bill Haneman <bill.haneman@sun.com>
337 Added a #define-guarded tree-traversal step
338 when enumerating the apps (diagnostic tool).
340 2002-03-15 Bill Haneman <bill.haneman@sun.com>
342 * idl/Accessibility_Role.idl:
343 Added ROLE_DRAWING_AREA which seemed to be missing from the
346 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
348 * cspi/spi-roletypes.h cspi/spi_accessible.c
349 idl/Accessibility_Role.idl libspi/accessible.c: synched up role
352 * registryd/desktop.c registryd/desktop.h registryd/registry.c:
353 Added signals to SpiDesktop and callbacks in SpiRegistry to notify
354 AT when applications are added and removed from the desktop. This
355 reverts the previous broken implementation using the backing
356 AtkObject for the SpiDesktop.
358 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
360 * registryd/desktop.c: emit the "children-changed::add" and
361 "children-changed::remove" signals on the backing ATK object for
362 the desktop so AT can tell when applications are started and shut
365 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
367 * cspi/spi_accessible.c: Made role names freeable with SPI_freeString ()
369 2002-03-14 Marc Mulcahy <marc.mulcahy@sun.com>
371 * libspi/stateset.c: implemented Accessibility_StateSet_compare ()
373 * cspi/spi_accessible.c: Implemented c bindings for stateset support
375 * cspi/state-types.h: synched with IDL and ATK
377 2002-03-13 Bill Haneman <bill.haneman@sun.com>
379 * libspi/accessible.c
380 (impl_accessibility_accessible_get_child_at_index):
381 Change return value for g_return_if_fail ()
382 to CORBA_OBJECT_NIL instead of "0" (!)
384 * registryd/Makefile.am:
385 * registryd/Accessibility_Register.server.in:
386 Changed name of executable, "registryd",
387 to something more informative:
390 2002-03-13 Michael Meeks <michael@ximian.com>
392 * atk-bridge/bridge.c (atk_bridge_init): don't register
393 if we're in a bonobo-component, rather than a bonobo app.
395 2002-03-13 Michael Meeks <michael@ximian.com>
397 * atk-bridge/bridge.c (gtk_module_init): split
398 out body to (atk_bridge_init): here, since otherwise
399 we get symbol conflicts and oddness when invoked
400 from (gnome_accessibility_module_init): here (upd.)
402 2002-03-11 Bill Haneman <bill.haneman@sun.com>
405 New file. Explicitly allow "build sheriff" putbacks provided
406 they are tested on Solaris.
408 * docs/reference/cspi/Makefile.am:
409 Added '-' to the "cp" command for index.sgml.
410 ("patch by thomasvs, soon coming to a GUADEC near you")
413 Incremented version number (0.9.0) for new release.
414 Changed macro that checks for popt, to better detect
415 obsolete versions of popt.
418 Added X_LIBS to AC_SUBST, for applications
419 that call Xlib API directly.
422 2002-03-07 Bill Haneman <bill.haneman@sun.com>
425 Include gdk_pixbuf_x11-2.0 in UTILS_LIBS.
428 Fix regression caused by hard-coding major
429 version of gdk_pixbuf_x11; now use $(UTILS_LIBS)
432 * test/test-simple.c (test_editable_text),
433 (test_test): revert previous change (error was
434 a regression in gail which is now fixed).
436 2002-03-04 Michael Meeks <michael@ximian.com>
438 * test/test-simple.c (test_editable_text),
439 (test_text): pass G_MAXINT instead of '-1' for
440 whole string - is this a good thing !?
442 * cspi/spi_accessible.c
443 (Accessible_getRelationSet): fix crasher bug
444 overwriting the end of the array.
446 * test/test-simple.c (validate_accessible): free,
447 not g_free returned relation set.
449 2002-02-26 Marc Mulcahy <marc.mulcahy@sun.com>
451 * libspi/stateset.c libspi/stateset.h libspi/Makefile.am:
452 implemented stateset support
454 * idl/Accessibility_State.idl: Made necessary changes to
455 the IDL to support state sets.
457 2002-02-12 Bill Haneman <bill.haneman@sun.com>
459 * registryd/deviceeventcontroller.c:
460 Added implementation for generateMouseEvent.
462 * cspi/spi_registry.c:
463 Connected new implementation for generateMouseEvent
466 2002-02-12 Bill Haneman <bill.haneman@sun.com>
469 Incremented revision (but no change in public API
470 outside of 'utils', which are not installed public yet.)
472 * libspi/component.c:
473 Changed to use atk_component API for layers and
474 mdi_zorder, instead of deprecated atk_object API.
476 Magnification Utility Enhancements:
479 Added implementation of createZoomRegion, clearAllZoomRegions,
480 resizeZoomRegion. Added new commandline argument
481 "--no-initial-region". Note that clearAllZoomRegions doesn't
482 unmap the old '0' region as it should (yet), and the other
483 methods only work when creating/resizing a single region,
485 (Code for multiple region support will be added later.)
488 Now we raise the magnifier window each time it's refreshed;
489 this will help keep it on top.
492 Added simple wrappers for above, used by mag_control.
493 For general use, it's recommended to use the bonobo magnifier
494 control API directly instead of using these wrappers.
497 Moved ZoomRegionData from magnifier.c to this file.
499 * util/mag_control.c:
500 Added some code to exercise new IDL implementations.
502 2002-02-06 Marc Mulcahy <marc.mulcahy@sun.com>
504 * libspi/text.c: Provide implementation for getAttributes.
506 2002-02-04 Bill Haneman <bill.haneman@sun.com>
509 Incremented revision.
511 * test/test-simple.c:
512 Replaced use of deprecated g_main_iteration with
513 g_main_context_iteration.
515 2002-01-28 Padraig O'Briain <padraig.obriain@sun.com>
518 Incremented revision for desktop alpha 2.
520 2002-01-28 Mark McLoughlin <mark@skynet.ie>
522 * libspi/remoteobject.[ch]: make RemoteObject and interface rather
525 * test/simple-at.c: include netinet/in.h.
527 2002-01-24 Mark McLoughlin <mark@skynet.ie>
529 * cspi/spi_accessible.c: (Accessible_getRelationSet):
530 use NULL, not CORBA_OBJECT_NIL.
532 * libspi/accessible.c:
533 (impl_accessibility_accessible_get_relation_set):
534 allocate the sequence correctly.
536 * libspi/remoteobject.h: kill spi_remote_object_new.
538 * test/test-simple.c: (validate_accessible): add code
539 to test relation sets, now all we need is to figure
540 out how to excercise this code path :/
542 2002-01-18 Michael Meeks <michael@ximian.com>
545 (key_listener_cb): consume the key.
546 (test_keylisteners): update.
547 (main): wait for any pending unrefs on events.
549 * registryd/deviceeventcontroller.c
550 (spi_controller_update_key_grabs): only re-issue the
551 grab on a key release.
552 (spi_device_event_controller_forward_key_event):
553 refresh the keygrabs before we notify the listeners,
554 to reduce the X ungrab / re-grab race.
555 (spi_controller_register_with_devices): remove
556 XSelectInput - we do that with the gdk_window_ call.
557 (_spi_controller_device_error_handler): return a value.
558 s/GDK_DISPLAY/spi_get_display/
560 2002-01-17 Michael Meeks <michael@ximian.com>
562 * registryd/deviceeventcontroller.c
563 (_deregister_keygrab): don't blow out the later
566 * test/test-simple.c (test_keylisteners): do a
567 more intelligent validation.
569 2002-01-14 Michael Meeks <michael@ximian.com>
571 * atk-bridge/bridge.c
572 (gnome_accessibility_module_init),
573 (gnome_accessibility_module_shutdown): impl.
574 (gtk_module_init): protect vs. double inits.
575 (add_signal_listener): impl.
576 (spi_atk_bridge_state_event_listener): kill
577 (deregister_application): split out of
578 (spi_atk_bridge_exit_func): here.
580 2002-01-18 Bill Haneman <bill.haneman@sun.com>
583 Added caret tracking when using magnifier, and
584 now use text bounds for focus tracking of text elements, rather than
585 the component bounds - this is helpful for short text fields in long
586 table cells, at high magnification.
588 2002-01-16 Bill Haneman <bill.haneman@sun.com>
590 * registryd/deviceeventcontroller.c:
591 Regression fix for keylistener de-registration; global keygrabs
592 were not being released when deregisterKeystrokeListener was
593 called in cspi, since
594 Accessibility_DeviceEventController_deregisterKeystrokeListener
595 was called with a zero-length keyset. That is because the cspi
596 method, SPI_deregisterKeystrokeListener, does not take a keyset
597 parameter but instead should remove all the key grabs held be a
599 The code in impl_deregister_keystroke_listener was changed to copy
600 the keylist from the listener instance previously registered with
601 the DeviceEventController before releasing the grabs.
603 * registryd/registry.c:
604 * registryd/deviceeventcontroller.c:
605 * libspi/spi-private.h:
607 Changed spelling of "re-enterant" to "re-entrant" globally.
609 2002-01-16 Bill Haneman <bill.haneman@sun.com>
611 * test/test-simple.c:
612 Changed key listeners test - the test was slightly mis-using the
613 (admittedly poorly documented) SPI_generateKeyboardEvent API.
614 It now uses '=' as the key event listened to and generated,
615 relying on a keysym match rather than assuming that keycode 33
616 is always equal to keysym '!'.
618 2002-01-15 Bill Haneman <bill.haneman@sun.com>
621 Changed simple-at to use a specific keyset, rather than
622 SPI_KEYSET_ALL_KEYS - this helps minimize clashes with the window
623 manager, desktop, etc.
625 2002-01-11 Bill Haneman <bill.haneman@sun.com>
627 * registryd/deviceeventcontroller.c:
628 Replaced standard X error handler with a special handler that
629 is non-fatal for failed keygrabs. This works around
630 problems with keygrab clashes sometimes observed on
632 Re-instated SPI_DEVICE_TYPE_MOUSE in enum (didn't reinstate
633 mouse handling code as yet).
635 2002-01-11 Bill Haneman <bill.haneman@sun.com>
638 Incremented revision for desktop alpha release.
641 Fixed a couple of the more glaring errors (still not
644 2002-01-11 Michael Meeks <michael@ximian.com>
646 * registryd/deviceeventcontroller.c
647 (spi_device_event_controller_forward_key_event): kill
648 XUngrabKey / XKeyGrab race.
649 (spi_controller_grab_keyboard): rename to
650 (spi_controller_update_key_grabs): this, and deal
651 with incremental adding / removing grabs more
653 (_register_keygrab): ensure we're not pending a remove.
654 (spi_grab_mask_free): impl.
655 (spi_controller_register_global_keygrabs): split out
657 (handle_keygrab): impl.
658 (_deregister_keygrab): impl.
659 (spi_controller_deregister_global_keygrabs): impl.
660 (spi_controller_update_key_grabs): re-issue the grab if
661 we just recieved a notification.
663 * test/test-simple.c (key_listener_cb): remove debug.
665 * registryd/deviceeventcontroller.c
666 (spi_controller_register_device_listener): after
667 registering a global keygrab, actualy register it !
668 don't wait for a timeout; doh !
670 * registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
671 to make it more readable / manipulable.
672 s/grabmask/grab_mask/ s/refcount/ref_count/
673 s/keyval/key_val/ s/modmask/mod_mask
675 2002-01-08 Michael Meeks <michael@ximian.com>
677 * registryd/deviceeventcontroller.c
678 (spi_controller_register_with_devices): use gdk calls to
680 (global_filter_fn): implement the filter.
681 (spi_device_event_controller_check_key_event): rename to
682 (spi_device_event_controller_forward_key_event): this & upd.
683 (spi_get_display): replace with GDK_DISPLAY.
685 * registryd/deviceeventcontroller.c
686 (spi_controller_deregister_device_listener): unroll into
687 (impl_deregister_keystroke_listener): here to simplify.
688 (spi_controller_register_global_keygrabs): split cut and
689 paste (!) out into (_register_keygrab): here, shorter & sweeter.
690 (spi_controller_deregister_device_listener): remove.
691 (impl_register_mouse_listener): remove, no mouse listener
692 support in at-spi-1.0
694 * registryd/registry.c
695 (_device_event_controller_hook): kill.
696 (spi_registry_init): upd.
698 * registryd/deviceeventcontroller.c
699 (spi_device_event_controller_class_init): upd.
700 (spi_check_key_event): merge into.
701 (spi_device_event_controller_check_key_event):
702 here and kill strange static ev init, don't leak
703 the x_event - nor dynamicaly allocate it.
705 * registryd/registry-main.c (main): re-direct
706 timeout to remove strange vtable mess.
708 * registryd/deviceeventcontroller.c
709 (remove_listener_cb): impl.
710 (spi_controller_deregister_device_listener):
711 fix re-enterancy hazard.
713 2002-01-07 Michael Meeks <michael@ximian.com>
715 * registryd/deviceeventcontroller.c
716 (spi_device_event_controller_new): upd.
717 (impl_notify_listeners_sync): upd. debug.
718 (spi_notify_keylisteners): fix re-enterancy hazards,
719 prettify, remove O(n*n) iteration.
720 (spi_controller_grab_keyboard): fix iteration.
721 (spi_check_key_event): re-format to suit coding style.
722 Clean all the warnings - we're warning free.
724 * registryd/deviceeventcontroller.h:
725 * registryd/registry.h: make mutualy referential with
726 typesafe forward references instead of (!) void pointer
729 2002-01-11 Michael Meeks <michael@ximian.com>
731 * cspi/spi_accessible.c (role_names): add a role name
732 to sync this array with the enum; and make the regression
735 2002-01-10 Michael Meeks <michael@ximian.com>
737 * cspi/spi_registry.c (SPI_generateKeyboardEvent):
738 allow expansion of enumeration & kill warning.
740 * test/test-simple.c (key_listener_cb): impl.
741 (test_keylisteners): impl.
743 * cspi/spi-listener.h: make listener signatures const
744 on the provided (const) events.
746 * test/keysynth-demo.c: upd. to const events.
748 * test/simple-at.c: ditto.
750 2002-01-11 Bill Haneman <bill.haneman@sun.com>
753 Rev the version to 0.5 (the previous tarball was named 0.4,
754 even though the micro number was 3), so we need to rev upwards
755 again for beta2/"desktop-alpha"
758 Checked in a demo script, which requires editing before use!
759 Proceed with caution.
762 Fixed typo in header which was redefining SPI_ACTION_CLASS.
764 * cspi/spi_accessible.c:
765 Add a couple of missing enum initializations, and fix some enum
768 * cspi/spi_registry.c:
769 Add comment describing keystring parameter to SPI_generateKeyboardEvent.
771 * docs/reference/cspi/at-spi-cspi-sections.txt:
772 Remove/fix a couple of broken document references.
775 Minor tweaks to the demo. We now (sigh) use Alt-SHIFTLOCK as well
776 as Alt-Control to listen for commands, since on some systems
777 Control-Alt may already be grabbed.
779 2002-01-10 Bill Haneman <bill.haneman@sun.com>
782 Update version number to 0.4 for Beta2.
784 * libspi/accessible.c, libspi/accessible.h:
785 Expose spi_accessible_construct, to enable libgail-gnome
786 construction from spi_accessible subtype.
789 Workaround for bug in some non-gnome-compliant window managers
790 which made magnifier resize improperly.
792 2002-01-09 Bill Haneman <bill.haneman@sun.com>
794 * libspi/accessible.c: (spi_accessible_new) :
795 Move the test for SPI_IS_REMOTE_OBJECT to
796 spi_accessible_new_return, fixing a bug and compile time warning.
798 2002-01-08 Michael Meeks <michael@ximian.com>
800 * registryd/registry.c (parse_event_type): remove strndup.
802 * libspi/Makefile.am (libspi_la_SOURCES): remove
803 sources already included in the headers section.
805 * libspi/util.c: add.
807 * libspi/spi-private.h: add.
809 * registryd/registry.c: update to moved list iterators.
811 2002-01-05 Michael Meeks <michael@ximian.com>
813 * test/simple-at.c (main): upd. auto-module set to atk-bridge
815 * test/test-simple.c (main): ditto.
817 2002-01-04 Michael Meeks <michael@ximian.com>
819 * libspi/accessible.c (spi_accessible_new): remove 2nd,
822 * registryd/registry.c
823 (get_listener_list): impl.
824 (impl_accessibility_registry_register_global_event_listener):
825 re-impl. to simplify using ~, remove dodgy const cast off.
826 (parse_event_type): constify.
827 (impl_accessibility_registry_deregister_global_event_listener_all):
828 re-write, more efficiency and simplicity, kill re-enterancy
830 (compare_listener_corbaref, compare_corba_objects),
831 (compare_listener_quarks): define out.
832 (impl_accessibility_registry_deregister_global_event_listener):
833 re-write for effiency, and nail re-enterancy hazard.
834 (impl_accessibility_registry_get_desktop_list): impl.
835 (re_enterant_list_delete_link): impl.
836 (re_enterant_list_foreach): impl.
837 (remove_listener_cb): impl.
838 (_registry_notify_listeners): kill.
839 (notify_listeners_cb): impl.
841 * cspi/spi_registry.c (SPI_freeDesktopList): impl.
842 (SPI_getDesktopList): impl.
844 * test/test-simple.c (test_desktop): test the methods.
846 2002-01-03 Michael Meeks <michael@ximian.com>
848 * cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
849 keystrings since we free them
850 (SPI_freeAccessibleKeySet): in here.
852 * libspi/accessible.c (spi_accessible_new): kill warning,
853 wonder what is going on with the constructor here.
855 2002-03-01 Bill Haneman <bill.haneman@sun.com>
857 * libspi/accessible.c (spi_accessible_new ()) :
858 Added check to see if AtkObject is an SpiRemoteObject before
859 creating an SpiAccessible.
861 2002-05-01 Bill Haneman <bill.haneman@sun.com>
863 * registryd/deviceeventcontroller.c (spi_controller_grab_keyboard):
864 Enable keygrabs using the Control modifier, now that they are
865 working properly (they were previously disabled).
868 Change the command keygrab for this demo to "Control+Alt", so as
869 to conflict with fewer other key commands on the system; this
870 means that the quit command for "simple-at" is now "Ctrl-Alt-q".
872 Removed a pointlessly-chatty keylistener for unshifted keys
873 (shifted keys are still reported).
875 2002-02-01 Bill Haneman <bill.haneman@sun.com>
877 * libspi/remoteobject.h:
878 * libspi/remoteobject.c:
879 Added definitions for special AtkObject subtype, required for
880 support of remote components (specifically, used by BonoboControl
881 accessibility implementation).
883 2002-01-02 Marc Mulcahy <marc.mulcahy@sun.com>
885 * cspi/spi.h: synched relation types with ATK
887 * cspi/spi_accessible.c: Added implementations of
888 AcccessibleRelation_* methods
890 * idl/Accessibility_Relation.idl: added getRelationTypeName
891 method. Synched known relation types with ATK. Allowed for
892 relation type extension with the RELATION_EXTENDED type.
894 * libspi/relation.c: Provided implementations for
895 AccessibleRelation methods.
897 2002-01-01 Bill Haneman <bill.haneman@sun.com>
899 API tweaks for today's API 'freeze'.
902 Added placeholder functions to allow future compatible expansion
903 of the IDL interfaces.
905 * idl/Accessibility_Registry.idl:
906 Changed generateKeyEvent to generateKeyboardEvent. Changed
907 signature of this method to accept an optional keystring in
908 parameter (for complex text input synthesis) and changed use of
909 simple 'boolean' parameter in registerKeystrokeListener to a
910 struct, EventListenerMode.
912 * cspi/spi_accessible.c:
914 * cspi/spi_streamablecontent.c:
915 Added references to AccessibleStreamableContent interface, and
916 definition and implementation of AccessibleStreamableContent
919 * cspi/spi_registry.c:
921 Changed generateKeyEvent API to generateKeyboardEvent,
922 taking a new (optional) keystring parameter to support complex
927 Renamed directory (to better reflect its actual purpose, bridging
928 from at-spi to ATK). The .so module is also now named
931 * idl/Accessibility_Hypertext.idl:
932 * libspi/accessible.c:
933 * libspi/hypertext.h:
934 * libspi/hypertext.c:
935 Changed Accessibility_Hypertext to *not* derive from
938 * cspi/spi_registry.c:
939 Added list of legal event type names for 'window' events, which
940 completes the registry event API.
942 2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
944 * at-bridge/bridge.c: Added registration for separate
945 "Atktext:text-changed::insert" and "AtkText:text-changed::delete"
946 signals. If either of the first two parameters to the generic
947 bridge signal handler are ints, they are passed on as event
948 details. This allows an AT to determine what text was inserted.
950 2001-12-21 Bill Haneman <bill.haneman@sun.com>
952 * registryd/deviceeventcontroller.c:
953 Fixed regressions in generateKeyEvent caused by the removal of
954 gdk_init from registryd; we now use pure X calls to connect to the
955 display, which makes sense because deviceeventcontroller already
956 uses a fair bit of X API (should eventually be migrated to a
957 'portability layer').
959 * registryd/desktop.c:
960 Fixed minor regression in spi_desktop_init, changed the way the
961 desktop name is being set to work with new spi_base API
962 (gobject-based, rather than AtkObject-based).
964 * registryd/Makefile.am:
965 Minor revision of makefile to use XTST_LIBS variable rather than
966 hard-wiring the Xtst LD_ADD element.
968 * test/keysynth-demo.c:
969 Tweaked an output message; added initialization of the
970 'keystrings' member of the "switch listener" key_set.
973 Squashed compile-time warning.
975 * libspi/accessible.c:
976 Cosmetic and formatting fixes, renamed a static method.
978 2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
980 * libspi/accessible.c
982 * libspi/application.c
986 * libspi/editabletext.c
994 * registryd/desktop.c:
995 Changed SpiBase to contain a GObject pointer rather than an AtkObject
997 2001-12-17 Bill Haneman <bill.haneman@sun.com>
999 * idl/Accessibility_Registry.idl:
1000 Added boolean member 'is_text' to DeviceEvent. This is for the
1001 use of key events, and helps prevent ambiguity between composed
1002 key strings and keysym names, since both may potentially be
1003 returned in the 'event_string' member.
1005 * at-bridge/bridge.c:
1006 * registryd/deviceeventcontroller.c:
1007 Use the 'is_text' member when notifying device event listeners.
1008 Knon issue: composed characters are not dealt with correctly by
1009 the global key listener implementation yet.
1011 2001-12-17 Bill Haneman <bill.haneman@sun.com>
1013 * at-bridge/bridge.c:
1014 Namespaced local static methods to spi_atk_bridge_* where
1015 previously named bridge_*, and spi_* elsewhere.
1017 * at-bridge/bridge.c:
1018 * cspi/bonobo/cspi-bonobo-listener.c:
1019 Added demarshalling/conversion for string member of
1020 Accessibility_DeviceEvent to AccessibleKeystroke.
1022 * registryd/deviceeventcontroller.c:
1023 Added code to fill the Accessibility_DeviceEvent key string value
1024 member for global key events (i.e. from XGrabKey), to match
1025 behavior of Accessibility_DeviceEvent from the toolkit key events
1026 from the bridge. Fixed timestamp in global key event notifications.
1029 Added printout of key event's string value to
1030 report_ordinary_key_event, for demo/debugging purposes.
1032 2001-12-15 Bill Haneman <bill.haneman@sun.com>
1034 * idl/Accessibility_Registry.idl:
1035 Removed Accessibility_KeyStroke structure in favor of generic
1036 Accessibility_DeviceEvent structure.
1037 Changed Accessibility_ControllerEventMask from a struct to an
1040 * at-bridge/bridge.c:
1041 Changed APIs to use DeviceEvent structure as above, and removed
1042 bogus casting between these event structures.
1044 * cspi/spi-listener.h:
1045 Added keystring member of AccessibleKeystroke structure, to enable
1046 matching on event "names" rather than only hardware codes and
1050 Added keystrings member of AccessibleKeySet struct, to allow
1051 matching on event names (as above).
1052 Added declarations for SPI_createAccessibleKeySet and
1053 SPI_freeAccessibleKeySet. Due to changes in libspi, we now pass
1054 event modmasks directly as unsigned ints rather than structs with
1055 refcounts, in the DeviceEventController methods.
1057 * cspi/spi_registry.c:
1058 Add SPI_createAccessibleKeySet and SPI_freeAccessibleKeySet methods.
1060 * cspi/spi-roletypes.h:
1061 Added documentation of newly added SPI Roles.
1063 * cspi/bonobo/cspi-bonobo-listener.c:
1064 Changes in support of API changes above.
1066 * libspi/accessible.c:
1067 Converted APIs to use DeviceEvent structure (see IDL changes
1070 * registryd/deviceeventcontroller.c:
1071 Added DEControllerGrabMask structure to track keygrabs not only by
1072 modmask but by keyset as well; this allows us to do "global"
1073 (i.e. X) keygrabs on a per-key or keyset basis rather than always
1074 grabbing on AnyKey and then filtering after-the-fact.
1075 Bugfixes for event filtration mean that we don't get false matches
1076 on SPI_KEY_RELEASED, when only SPI_KEY_PRESSED was requested.
1078 * registryd/deviceeventcontroller.c:
1079 Namespaced a number of static methods to use spi_ prefix. Major
1080 revision to internals of global (i.e. X) key grabs.
1082 * registryd/deviceeventcontroller.h:
1083 Removed keymask_list and added keygrabs_list to
1084 SpiDeviceEventController struct.
1087 Added use of SPI_createAccessibleKeySet API when creating a
1088 listener for only one key. Attach a listener to "shift spacebar
1089 SPI_KEY_RELEASE" as a demonstration. Changed (incorrect) usage of
1090 X key event names to SPI key event names, so that listeners are
1091 registered for (SPI_KEY_PRESSED | SPI_KEY_RELEASED), for instance.
1093 * test/keysynth-demo.c:
1094 Changed (incorrect) use of X key event names (KeyPressed,
1095 KeyReleased) to SPI enums SPI_KEY_PRESSED and SPI_KEY_RELEASED.
1098 2001-12-12 Bill Haneman <bill.haneman@sun.com>
1100 * libspi/accessible.c:
1101 Convert all AtkRole enumerations to Accessibility_Role enums when
1102 getting a role from an AtkObject.
1104 * cspi/spi_accessible.c:
1105 Complete the conversion of Accessibility_Role enums at runtime to
1106 AccessibleRole (SPI_ROLE_*) roles in Accessible_getRole, so that
1107 role enums correctly match those given in spi-roletypes.h.
1108 Re-synchronize the local names list for AccessibleRole_getName ().
1109 AccessibleRole_getName is now deprecated, since it duplicates the
1110 more reliable Accessible_getRoleName.
1111 Added some role types from Accessibility_Role.idl.
1113 * idl/Accessibility_Role.idl:
1114 Added some role types used by AtkRole.
1116 2001-12-12 Bill Haneman <bill.haneman@sun.com>
1119 * cspi/spi_registry.c:
1121 * cspi/cspi-bonobo-listener.c:
1122 Namespaced all methods that did not begin with an "SPI_" or
1123 "Accessible" prefix to "SPI_".
1126 Homogenized internal function namespace to "cspi_" for statics.
1129 Patched tests to use the new CSPI API.
1131 * docs/reference/cspi/at-spi-cspi-sections.txt:
1132 Updated docs to reflect namespace changes, and added a number of
1133 methods to the documentation.
1135 * registryd/registry.c:
1136 Changed use of strings and string hashes in listener event
1137 matching and parse_event_string to use GQuark, which is guaranteed
1140 * registryd/registry.h:
1141 Squashed annoying warning.
1143 * idl/Accessibility_Role.idl:
1144 Extended range of available Accessibility_Role values.
1146 * cspi/spi_accessible.c:
1147 Re-ordered role names.
1149 2001-12-12 Bill Haneman <bill.haneman@sun.com>
1151 * idl/Accessibility_Value.idl:
1152 Revert use of union back to CORBA_double, since the double type is
1153 more efficient and can contain the other types without loss of
1156 * idl/Accessibility_Accessible.idl:
1157 Added method Accessibility:Accessible:getRoleName, to complement
1158 Accessibility:Accessible:getRole.
1160 * cspi/spi_accessible.c:
1162 Added C binding for above, Accessible_getRoleName (), and changed
1163 signature of Accessible_getRole () to return an AccessibleRole.
1165 * cspi/spi-roletypes.h:
1166 Changed AccessibleRole_getName to return a char * instead of a
1167 const char *. This method is now at least temporarily deprecated
1168 in favor of asking Accessibles for their RoleNames directly.
1171 Revert to match Accessibility_Value.idl;
1175 Change signature of AccessibleValue methods to use double rather
1179 * cspi/spi_accessible.c:
1180 Changed Accessible_getRole to return an AccessibleRole enum rather
1181 than a UTF-8 string. The UTF-8 string can still be obtained via
1182 AccessibleRole_getName ().
1184 * test/test-simple.c:
1185 Add test_action. Small fixup to match API change to Accessible_getRole.
1188 Bugfix for get_action_from_servant ().
1190 2001-12-11 Michael Meeks <michael@ximian.com>
1192 * libspi/libspi.h: remove registry.h and
1193 desktop.h, deviceeventcontroller.h
1195 * libspi/Makefile.am: remove registry.[ch],
1196 desktop.[ch], deviceeventcontroller.[ch]
1198 * registryd/Makefile.am: add registry.[ch],
1199 desktop.[ch], rename registryd.c to registry-main.c.
1200 add deviceeventcontroller.[ch]
1202 2001-12-11 Bill Haneman <bill.haneman@sun.com>
1205 Replace setenv() call with putenv ().
1207 * libspi/component.c:
1208 Bugfix in AccessibleComponent_getExtents (),
1211 2001-12-11 Michael Meeks <michael@ximian.com>
1213 * libspi/image.c (impl_getImageExtents): impl.
1214 (spi_image_class_init): upd.
1217 (AccessibleImage_getImageDescription): fix daft bug
1220 * test/test-simple.c (global_listener_cb): update
1221 to only quit if not --poke
1222 (main): catch --poke.
1223 (validate_accessible): upd. dumping, call test_image
1226 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
1229 * idl/Accessibility.idl: update all IDL includes.
1231 * idl/*.idl - rename to namespace - this sucks, blame
1232 mjs' bad decision for oafd.
1234 * test/test-simple.c (create_test_window): add more tests.
1235 (create_tree): split this out.
1236 (validate_accessible): bugfix.
1238 2001-12-11 Michael Meeks <michael@ximian.com>
1240 * cspi/bonobo/cspi-bonobo-listener.c:
1241 (cspi_kestroke_listener_unref),
1242 (cspi_event_listener_unref): impl. undoing previous
1243 homenous environment - for Bill.
1245 * cspi/spi_table.c (long_seq_to_array): use
1248 * cspi/spi_main.c: split out all bonoboish bits into
1251 * cspi/spi-impl.h: upd. typedefs.
1253 * cspi/spi_registry.c: update to lowlevel API,
1254 return booleans to indicate success in some places.
1256 * cspi/spi_event.c: update to lowlevel API.
1258 * cspi/bonobo/Makefile.am: add.
1260 * cspi/bonobo/cspi-lowlevel.h: add
1262 * cspi/bonobo/cspi-bonobo.c: add
1264 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
1266 * cspi/Makefile.am: remove spi-listener-impl.[ch],
1267 (SUBDIRS): add bonobo, link in the libs.
1269 * cspi/spi-util.c: kill this file.
1271 * TODO: merge in my bits.
1273 2001-12-11 Michael Meeks <michael@ximian.com>
1275 * test/test-simple.c (test_value, test_table, main):
1276 remove unused variables causing warnings.
1278 * configure.in: cleanup checks - require gail.
1280 2001-12-11 Bill Haneman <bill.haneman@sun.com>
1283 Changed Value interface to use SValue (scalars) rather than
1284 assuming all values are floats. This allows floats, doubles,
1285 longs, shorts, and unsigned values to be manipulated.
1286 Introduced Accessibility:SValue union.
1289 Updated to use new API above, and to work correctly with GValues
1290 of different types in AtkValue.
1293 Updated to use new API above. cspi's API is as yet unchanged.
1296 Updated the Value revision action item.
1298 2001-12-10 Bill Haneman <bill.haneman@sun.com>
1300 * test/test-simple.c:
1301 Added test_table (GtkTreeView widget in test window to follow).
1302 Un-commented test_value, added GtkRange widget.
1303 Added GtkTreeView widget with GtkListStore. It passes regression
1304 test but leaks one SPI object for some reason.
1307 Fixed bug in impl__set_currentValue.
1309 2001-12-10 Michael Meeks <michael@ximian.com>
1311 * cspi/spi_text.c: audit for exception handling,
1312 tolerating NULL object references safely etc.
1314 * cspi/spi_value.c: ditto.
1316 * cspi/spi_table.c (AccessibleTable_getSummary),
1317 (AccessibleTable_getAccessibleAt),
1318 (AccessibleTable_getRowHeader),
1319 (AccessibleTable_getColumnHeader),
1320 (AccessibleTable_getCaption): fix bugs hidden by
1322 (long_seq_to_array): impl.
1323 (AccessibleTable_getSelectedRows),
1324 (AccessibleTable_getSelectedColumns): use it.
1326 2001-12-10 Bill Haneman <bill.haneman@sun.com>
1329 Added a TODO list (rough and short for now).
1331 * cspi/spi_hyperlink.c:
1332 * cspi/spi_hypertext.c:
1333 Fixed macro name typos, and remove use of obsolete macro in
1334 AccessibleHyperlink_getLink.
1336 * cspi/spi_action.c:
1337 * cspi/spi_accessible.c:
1338 * cspi/spi_application.c:
1339 * cspi/spi_component.c:
1340 * cspi/spi_selection.c:
1343 Documentation fixes (removed return values from ref/unref methods).
1345 2001-12-10 Michael Meeks <michael@ximian.com>
1347 * cspi/spi_action.c: audit for exception handling,
1348 tolerating NULL object references safely etc.
1350 * cspi/spi_accessible.c: ditto.
1352 * cspi/spi_component.c: ditto.
1354 * cspi/spi_editabletext.c: ditto.
1356 * cspi/spi_hyperlink.c: ditto.
1358 * cspi/spi_hypertext.c: ditto.
1360 * cspi/spi_image.c: ditto.
1362 * cspi/spi_selection.c: ditto.
1364 2001-12-10 Michael Meeks <michael@ximian.com>
1366 * configure.in: use cspi/libspi.pc.in instead.
1368 * Makefile.am (pkgconfig_DATA): upd. to match.
1370 * test/simple-at.c (report_focus_event): kill hacks around
1371 bad return values, use putenv not setenv
1373 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
1374 fire ChildGone - I killed it.
1376 * libspi/component.c
1377 (impl_accessibility_component_get_extents): remove
1380 * idl/Accessible.idl: kill ChildGone exception.
1382 * cspi/*.[ch]: kill int return from ref / unref.
1384 * cspi/spi_main.c (cspi_object_add_check): fold into
1385 (cspi_object_add): here.
1387 * cspi/spi_component.c (AccessibleComponent_getExtents):
1388 handle exceptions elegantly.
1390 * cspi/spi-private.h (cspi_check_ev_return),
1391 (cspi_return_if_fail): impl.
1393 * cspi/spi_accessible.c: use extensively.
1394 (AccessibleStateSet_equals): add direct compare check.
1396 * cspi/spi_selection.c: tolerate NULL objs, and check
1397 exceptions before return.
1399 * cspi/spi-util.c (cspi_warn_ev): rename to
1400 (cspi_check_ev): this & don't pass ev in; no point.
1402 2001-12-10 Michael Meeks <michael@ximian.com>
1404 * test/test-simple.c: use putenv not setenv
1405 (get_environment_vars): more chatty if you're not using
1408 * test/simple-at.c: do the setenv so more people see the
1411 2001-12-10 Bill Haneman <bill.haneman@sun.com>
1413 * libspi/registry.c:
1414 Changed check of CORBA_environment on notification to be a warning
1415 instead of an error for the moment, since we can recover from this
1416 error when caused by a queued notification from a dead app.
1419 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
1420 used by all current implementors of AtkValue), and coerce to
1421 CORBA_float. (Proper general case fix may require change to Value.idl).
1423 2001-12-09 Bill Haneman <bill.haneman@sun.com>
1427 * cspi/spi_accessible.c:
1428 Documentation fixes: added user_data params to documentation for
1429 listeners and callbacks.
1431 * cspi/spi_accessible.c:
1432 Changed AccessibleStateSet_compare to return a
1433 StateSet rather than return the difference set into a third parameter.
1436 2001-12-09 Bill Haneman <bill.haneman@sun.com>
1439 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
1440 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
1444 Remove subdirectory po from SUBDIRS for now.
1446 * at-bridge/bridge.c:
1447 Beefed up a couple of debug printouts.
1448 One-line fix for signal notification name formatting.
1450 * libspi/accessible.c:
1451 Added assertion to spi_accessible_new ().
1453 * libspi/application.c:
1454 Put #ifdef qualifiers around a printf.
1457 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
1459 * registryd/Makefile.am:
1461 Replaces use of XML_I18N_MERGE_SERVER_RULE with
1462 INTLTOOL_SERVER_RULE macro.
1465 Added an event listener for several ATK signals, for
1466 testing and debugging. Removed a few g_warnings.
1467 Added test output if focussed item implements the Value interface.
1469 * test/test-simple.c:
1470 Added test_value () function (known not to pass at the moment, so
1471 not actually called yet.
1473 2001-12-08 Michael Meeks <michael@ximian.com>
1475 * at-bridge/bridge.c (bridge_focus_tracker),
1476 (emit_eventv): fix the same ref. leak.
1477 (register_atk_event_listeners): don't leak.
1479 * cspi/spi-listener-impl.c (cspi_event): more
1480 protection from client code.
1482 * test/test-simple.c (test_desktop): unref the app.
1484 * test/Makefile.am: upd. TESTS.
1486 * at-bridge/bridge.c (bridge_exit_func): release the registry.
1488 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
1490 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
1492 * cspi/spi_registry.c: constify in strings.
1493 (deregisterGlobalEventListenerAll): don't release the ref.
1495 * cspi/spi.h: start removing redundant / conflicting
1496 gtkdoc comments, making the API readable at a glance :-)
1498 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
1500 * test/keysynth-demo.c (keysynth_exit, main): upd.
1502 * test/simple-at.c (main, simple_at_exit): upd.
1504 * test/test-simple.c (unutterable_horror): kill.
1505 (utterable_normal_derefs): kill.
1506 (main): upd & do a setenv before gtk_init, so that we
1507 can use memprof - and to save the pain of remembering
1508 this, if we're running under memprof - don't exit.
1510 * cspi/spi_main.c (SPI_exit): return exit status
1512 (SPI_event_quit): impl.
1513 (SPI_event_main): simplify.
1514 (cspi_is_gnome_app): kill.
1515 (SPI_init): kill isGNOMEapp arg.
1517 * at-bridge/bridge.c (register_atk_event_listeners):
1518 re-instate the unref.
1519 (bridge_exit_func): don't re-activate the registry,
1520 protect vs. theoretical re-entry, use the
1521 AT_BRIDGE_SHUTDOWN env. var to determine whether to
1522 assert a clean shutdown - for regression tests.
1524 2001-12-08 Abel Cheung <maddog@linux.org.hk>
1526 * configure.in: Comment out dummy i18n support for now,
1527 otherwise it fails to build.
1528 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
1529 EXTRA_DIST. They are missing in tarball.
1531 2001-12-07 Michael Meeks <michael@ximian.com>
1533 * util/magnifier.c: kill bonobo activation reg. race.
1535 * libspi/component.c
1536 (impl_accessibility_component_get_extents): make it match
1539 * libspi/registry.c (_registry_notify_listeners):
1540 re-remove X headers & reconcile conflicts.
1541 (spi_listener_struct_free): bad conflict resolve.
1542 (impl_accessibility_registry_register_application):
1543 more bad merging fixed.
1544 (impl_accessibility_registry_deregister_application): ditto.
1545 (spi_registry_new): ditto.
1546 (spi_registry_init): don't have an applications field.
1548 [ merge fixups2 branch to here ]
1549 2001-12-07 Michael Meeks <michael@ximian.com>
1551 * test/simple-at.c (report_focus_event),
1552 (report_focussed_accessible): remove g_warning debug.
1554 2001-12-07 Michael Meeks <michael@ximian.com>
1556 * test/test-simple.c (validate_tree): comment out some checks.
1557 (test_desktop): app now not registered idly - horay.
1559 2001-12-07 Michael Meeks <michael@ximian.com>
1561 * cspi/spi_registry.c
1562 (registerAccessibleKeystrokeListener): clean, stop it leaking
1563 great swathes of memory, and device event controller references.
1564 ensure we always pass valid sequences.
1565 (deregisterAccessibleKeystrokeListener): ditto.
1566 (generateKeyEvent): upd.
1568 * at-bridge/bridge.c (bridge_key_listener): handle
1569 registry dead exception gracefully.
1570 (bridge_focus_tracker, emit_eventv): free ev.
1572 * test/simple-at.c (report_focus_event): fix polarity.
1574 * libspi/application.c (notify_listeners): kill the ev
1575 argument, and make sure we init the ev we use.
1576 (spi_application_object_event_listener): split out a chunk
1577 (get_atk_object_ref): here & fixup.
1578 (reverse_lookup_name_for_toolkit_event): make const.
1579 (spi_application_toolkit_event_listener): fixup, kill leaks
1582 * at-bridge/bridge.c (register_atk_event_listeners):
1583 don't unref the noop object - causes grief.
1585 * libspi/registry.c: remove the X headers.
1586 turn off the debug churn.
1588 * libspi/accessible.c (spi_accessible_new_return): only
1589 release the ref if we are supposed to [doh]
1591 * test/simple-at.c (report_button_press, report_focus_event):
1592 guard vs. unexpected exit.
1594 * at-bridge/bridge.c (gtk_module_init): prune printf.
1595 (bridge_exit_func): fix app unref.
1597 * libspi/Makefile.am: don't install registry or desktop.h
1599 * libspi/*.h: update includes.
1601 * libspi/application.h: don't include ourself, or
1602 other redundant headers.
1604 2001-12-06 Michael Meeks <michael@ximian.com>
1606 * libspi/accessible.c
1607 (get_accessible_from_servant): impl.
1608 Upd. all CORBA impl.s to use it killing cut and paste.
1610 * cspi/spi_main.c (cspi_cleanup): guard vs. double
1612 (SPI_init): register atexit cleanup handler here.
1614 2001-12-06 Michael Meeks <michael@ximian.com>
1616 * at-bridge/bridge.c (gtk_module_init): g_error on
1617 activation exception
1619 2001-12-06 Michael Meeks <michael@ximian.com>
1621 * at-bridge/bridge.c (gtk_module_init): some sort of
1622 confusing merge clash - reverted.
1623 (bridge_idle_init): ditto.
1625 * test/test-simple.c (main, utterable_normal_derefs):
1626 merge from Bill - somehow not committed.
1628 2001-12-06 Michael Meeks <michael@ximian.com>
1630 * libspi/value.c (spi_value_class_init): upd.
1631 (spi_value_finalize): kill.
1633 * libspi/table.c (spi_table_finalize): kill.
1634 (spi_table_interface_new): upd.
1635 (spi_table_class_init): upd.
1636 (get_table_from_servant): impl.
1637 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1639 * libspi/selection.c (spi_selection_finalize): kill.
1640 (spi_selection_interface_new): upd.
1641 (spi_selection_class_init): upd.
1642 (get_selection_from_servant): impl.
1643 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1645 * libspi/relation.c (spi_relation_finalize): kill.
1646 (spi_relation_class_init, spi_relation_new): upd
1648 * libspi/image.c (spi_image_finalize): kill.
1649 (spi_image_class_init): upd.
1650 (spi_image_interface_new): upd.
1651 (get_image_from_servant): impl.
1652 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1654 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
1655 (spi_hyperlink_finalize): kill.
1656 (spi_hyperlink_new): upd.
1657 (get_hyperlink_from_servant): impl.
1658 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1660 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
1661 (spi_hypertext_finalize): kill.
1662 (spi_hypertext_class_init): upd.
1663 (get_hypertext_from_servant): impl.
1664 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1666 * libspi/editabletext.c (spi_editable_text_finalize): kill.
1667 (spi_editable_text_interface_new): upd.
1668 (get_editable_text_from_servant): impl.
1669 Upd. all CORBA impl.s to use it killing yet more cut and paste.
1671 * libspi/text.c (get_text_from_servant): impl.
1672 All impls - update to use it killing more cut and paste,
1673 also fix bad string returns on duff args ( a somewhat
1674 impossible case to handle - but hey ).
1675 (spi_text_construct): impl.
1676 (spi_text_interface_new): upd.
1677 (spi_text_object_finalize): kill.
1679 * libspi/component.c
1680 (accessibility_component_object_finalize): kill.
1681 (spi_component_class_init): upd.
1682 (get_component_from_servant): impl. helper to kill cut & paste.
1683 (impl_accessibility_component_contains):
1684 (impl_accessibility_component_get_accessible_at_point):
1685 (impl_accessibility_component_get_position):
1686 (impl_accessibility_component_get_extents):
1687 (impl_accessibility_component_get_mdi_z_order):
1688 (impl_accessibility_component_get_layer):
1689 (spi_component_interface_new): upd.
1691 * libspi/action.c (spi_action_finalize): kill.
1692 (spi_action_class_init): upd. inherit from SpiObject.
1693 (spi_action_interface_new): upd.
1694 (get_action_from_servant): impl. helper to reduce cut & paste.
1695 (impl_getKeyBinding, impl_getName, impl_doAction),
1696 (impl_getDescription): Use it everywhere.
1698 * cspi/spi_main.c (get_live_refs): a pointer hash.
1699 (spi_object_hash, spi_object_equal): comment out.
1700 There are issues with CORBA object hashing that need
1703 * libspi/application.c (spi_application_init),
1704 (spi_application_new): upd.
1706 * libspi/accessible.c (spi_accessible_object_finalize): kill.
1707 (spi_accessible_class_init): upd.
1708 s/accessible/object/ in epv methods.
1710 2001-12-05 Bill Haneman <bill.haneman@sun.com>
1712 * at-bridge/bridge.c:
1713 Reorder the bridge initialization into the bridge gtk_module_init,
1714 an immediate call to bridge_register_app, and an idle_add for
1715 register_atk_event_listeners (the only code that *must* wait until
1716 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
1717 the activation, creates the application's Accessible object, and
1718 queues the bridge_idle_init function. Restored call to
1719 Accessibility_Registry_deregisterApplication().
1720 Prior to making this call we obtain a new reference to the
1721 registry, which is a temporary hack that helps us handle apps that
1722 shut down the bonobo mainloop before we get there.
1724 * libspi/registry.c:
1725 Fix string leakage in debug block, and don't segv if a an app
1726 dies before its event notifications have been propagated.
1729 Modify cspi_check_ev() to call g_warning() rather than g_error(),
1730 as stopgap measure until we get proper exception handling when
1731 objects die during or before interrogation.
1735 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
1736 Also changed default value of is_gnome_app to TRUE.
1739 * test/keysynth-demo.c:
1740 Changed use of SPI_init and SPI_event_main to reflect API change above.
1743 Made report_focus_event check the warning value from getName
1744 before reporting on focussed accessible; simplifies handling of
1745 notifications from dead objects.
1747 * test/test-simple.c: (Changes not in this patch since source is
1750 2001-12-05 Michael Meeks <michael@ximian.com>
1752 * registryd/registryd.c (main): protect against
1753 bonobo-activation startup race condition.
1755 * cspi/spi_main.c (cspi_object_add_check): cope
1756 with the exception elegantly.
1758 * idl/Accessible.idl: decl. ChildGone
1760 * libspi/desktop.c (spi_desktop_dispose): impl.
1761 (spi_desktop_class_init): upd.
1762 (spi_desktop_add_application),
1763 (spi_desktop_remove_application),
1764 (abnormal_application_termination): impl.
1765 (impl_desktop_get_child_at_index): re-impl.
1768 (impl_accessibility_registry_deregister_application),
1769 (impl_accessibility_registry_register_application):
1770 kill excessive debug clutter.
1772 * test/test-simple.c (test_misc): test some NULL
1773 tolerance. (main): upd.
1775 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
1776 implements no interfaces - so let's not crash.
1778 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
1780 * libspi/accessible.c (spi_accessible_new_return): impl.
1781 helper to calm the cut and paste, to cope with
1782 NULL AtkObjects effectively and efficiently, and to kill
1783 the referencing bugs.
1785 * libspi/table.c (impl_getAccessibleAt),
1786 (impl_getRowHeader, impl_getColumnHeader): upd.
1788 * libspi/hyperlink.c (impl_getObject): upd.
1790 * libspi/accessible.c
1791 (impl_accessibility_accessible_get_child_at_index): upd.
1793 * libspi/component.c
1794 (impl_accessibility_component_get_accessible_at_point): upd.
1796 * test/test-simple.c (test_editable_text, test_text): impl.
1799 * cspi/spi_editabletext.c
1800 (AccessibleEditableText_insertText): constify.
1802 * test/test-simple.c (focus_me): make more robust.
1804 * libspi/accessible.c: remove some printfs in methods that
1805 we test and work fine, so we can get a clean tree dump.
1807 * test/test-simple.c (validate_accessible),
1808 (validate_tree): make tree dumping pretty too.
1810 * at-bridge/bridge.c (bridge_signal_listener): upd. so
1811 it builds without debug on.
1813 * test/test-simple.c (validate_accessible): fix the most
1816 * cspi/spi_main.c (spi_object_release): leave the nicely
1817 blanked memory around if in debug mode.
1819 * cspi/spi-listener-impl.c (cspi_event): use add_check.
1821 [committed to fixups2]
1822 2001-12-05 Michael Meeks <michael@ximian.com>
1824 * libspi/editabletext.c
1825 (spi_editable_text_class_init): g_type_class_peek_parent,
1826 not interface peek - so we finalize cleanly.
1828 * libspi/accessible.c (spi_accessible_new): kill debug.
1830 * test/test-simple.c (validate_accessible): fix ref.
1831 leak, print strings before freeing them; sigh, comment a
1832 chunk out due to strangeness.
1833 (validate_tree): unref the child after use.
1835 * cspi/spi_component.c (AccessibleComponent_getLayer):
1836 add missing break statement, switch on zlayer not the
1837 uninitialized retval.
1839 * cspi/spi_main.c (cspi_object_add): add assert, local ref
1840 before (possibly re-entering) remote unref.
1842 * test/simple-at.c (main): unref the desktop.
1844 * cspi/spi_accessible.c (cspi_accessible_is_a): move
1847 * cspi/spi_main.c (cspi_accessible_is_a): here to
1848 isolate bonobo API usage more.
1850 * libspi/registry.c (impl_accessibility_registry_register_application):
1851 prune bogus comment.
1853 2001-12-04 Michael Meeks <michael@ximian.com>
1855 * test/test-simple.c (validate_tree): upd.
1856 IndexInParent check to make it more lucid.
1857 (validate_accessible): dump the tree.
1859 * libspi/accessible.c (de_register_public_ref),
1860 (get_public_refs): impl.
1861 (spi_accessible_new): make more efficient & intuitive.
1862 Now IndexInParent check works.
1864 2001-12-04 Michael Meeks <michael@ximian.com>
1866 * cspi/spi-util.h: remove.
1868 * cspi/spi.h: move SPI_freeString here
1870 * libspi/component.c (impl_accessibility_component_get_layer):
1872 (impl_accessibility_component_get_mdi_z_order): ditto,
1873 return -1 on error - is this ok ?
1875 * test/test-simple.c (test_application): impl.
1877 * cspi/spi_accessible.c (Accessible_getApplication),
1878 (Accessible_isApplication): impl.
1880 * libspi/registry.c (spi_listener_struct_free): release
1881 the CORBA reference too.
1883 * libspi/accessible.c
1884 (impl_accessibility_accessible_get_parent): fix ref leak.
1886 * libspi/registry.c (spi_registry_new): make the registry
1887 immortal - we don't want it to go away ever.
1889 * libspi/application.c
1890 (spi_accessible_application_finalize): impl. cleanup.
1892 * cspi/spi_registry.c
1893 (deregisterGlobalEventListenerAll),
1894 (deregisterGlobalEventListener),
1895 (deregisterAccessibleKeystrokeListener): fix ref leak.
1897 * cspi/spi_main.c (SPI_init): remove redundant ref.
1899 * test/test-simple.c (unutterable_horror): impl. to force a
1904 (impl_accessibility_registry_deregister_application): release
1905 the application when we de-register it.
1907 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
1908 until we have the infastructure to get it right.
1910 2001-12-03 Michael Meeks <michael@ximian.com>
1912 * libspi/Makefile.am: only build eventlistener.[ch]
1914 * libspi/accessible.c
1915 (impl_accessibility_accessible_get_child_at_index): don't leak.
1917 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
1918 before we hit the idle handler.
1920 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
1921 debugging than exit.
1923 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
1925 * libspi/listener.c (impl_notify_event): check source
1926 not NIL before unref.
1928 * libspi/registry.c (impl_registry_notify_event): ditto.
1930 * libspi/eventlistener.c
1931 (impl_accessible_event_notify_event): unref the source.
1933 * libspi/accessibleeventlistener.c
1934 (impl_accessible_event_notify_event): unref the source.
1936 * idl/Event.idl: remove 'hash_id' attribute - of no
1939 * libspi/application.c (notify_listeners): upd list
1941 (spi_application_object_event_listener),
1942 (spi_application_toolkit_event_listener): upd to do correct
1946 (_registry_notify_listeners): update.
1947 (parse_event_type): this method also leaks like a sieve.
1948 (impl_accessibility_registry_deregister_global_event_listener):
1949 fix ETYPE_WINDOW case.
1951 * libspi/application.c
1952 (impl_accessibility_application_register_object_event_listener):
1955 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
1957 * libspi/hypertext.c (impl_getLink): ditto.
1959 * cspi/spi_main.c (cspi_object_add): remove
1960 bogus CORBA_Object_duplicate.
1962 * cspi/spi-listener-impl.c (cspi_event): dup/ref
1965 * cspi/spi_accessible.c
1966 (Accessible_getRelationSet): fix leak / referencing issue.
1968 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
1969 (cspi_object_add, cspi_object_unref): upd.
1970 (spi_object_release, get_live_refs): impl.
1971 (cspi_cleanup): simplify.
1973 * *.[ch]: s/boolean/SpiBoolean/
1975 * cspi/spi_accessible.c (role_names): actualy order so it
1976 corresponds with the enum !
1978 * test/test-simple.c (test_roles): check some role strings
1979 vs. enums to detect offset errors.
1981 2001-12-01 Michael Meeks <michael@ximian.com>
1983 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
1985 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
1987 (Accessible_getChildAtIndex): use cspi_add_check so we
1988 check the ev before using a (possibly) invalid value.
1990 * libspi/accessible.c
1991 (impl_accessibility_accessible_get_parent): don't segv
1994 * at-bridge/bridge.c (gtk_module_init): upd.
1995 (bridge_property_event_listener): don't leak strings
1997 (bridge_state_event_listener),
1998 (bridge_property_event_listener): don't use a static
1999 buffer in case of recursive event emission &
2000 re-enterancy - split out the swathe of cut and paste
2002 (emit_eventv): and fix 2 ref leaks here & comply to the
2004 (bridge_register_app): rename to
2005 (bridge_idle_init): this and kill arg parsing, split
2006 various inits & bonobo-activation registration to module
2007 init time, kill referencing error.
2008 (bridge_exit_func): fix the same leak.
2009 (bridge_focus_tracker): don't leak event structures
2011 (bridge_signal_listener): more leakage and cut & paste
2013 (bridge_key_listener): return the result - FIXME is
2014 this polarity correct ?
2015 (accessibility_keystroke_from_atk_key_event): rename
2016 (accessibility_init_keystroke_from_atk_key_event): and stop
2018 (gtk_module_init): return a value - not that it is checked by
2020 (bridge_key_listener): register my horror at casting between
2021 IDL defined structs.
2022 (bridge_get_registry): kill - not used.
2024 * cspi/spi_accessible.c (Accessible_getRole): make return const.
2026 * test/test-simple.c (test_roles): impl.
2027 (test_desktop, validate_accessible, validate_tree): impl.
2029 * cspi/spi_accessible.c (role_names): fixup bogus
2030 MAX_ROLES setup, make constants const for efficient linkage
2031 (AccessibleRole_getName): conform to coding style, make
2034 2001-11-30 Michael Meeks <michael@ximian.com>
2036 * cspi/spi.h: add missing prototype.
2038 * libspi/registry.c (spi_listener_struct_new): fix sig.
2040 * test/Makefile.am: add test-simple
2042 * test/test-simple.c: add
2044 * test/test.sh: add.
2046 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
2048 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
2049 do it straight - since otherwise we often get an activation race.
2051 [ work before Bill duplicated a chunk of it ... ]
2052 2001-11-30 Michael Meeks <michael@ximian.com>
2054 * libspi/keystrokelistener.c
2055 (spi_keystroke_listener_class_init): fixup arg
2058 * libspi/eventlistener.c
2059 (spi_event_listener_class_init): ditto.
2061 * tests/test.sh: add.
2063 * cspi/spi-listener-impl.h: update macros.
2065 * cspi/spi-listener-impl.c
2066 (cspi_event_listener_remove_callback): add
2067 correct pre-conditions.
2069 * cspi/spi_main.c (SPI_exit): guard vs. double
2070 exits, exit the mainloop nicely.
2071 (SPI_event_main): make more sense.
2072 (SPI_init): move the atexit evilness here so we
2073 always do it (yuck).
2074 (SPI_event_main): upd.
2076 * test/simple-at.c: update for listener changes.
2078 * registryd/registryd.c (main): prune kruft.
2080 * libspi/libspi.h: upd.
2082 * libspi/eventlistener.[ch]: rename broken macros.
2084 * libspi/accessibleeventlistener.[ch]: remove.
2086 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
2088 * test/test-simple.c: Add - automated tests.
2090 * cspi/spi-listener-impl.c (cspi_event),
2091 (cspi_key_event): add user_data to invoke.
2092 (cspi_keystroke_listener_finalize): impl.
2093 (cspi_keystroke_listener_class_init): upd.
2096 (createAccessibleEventListener),
2097 (AccessibleEventListener_addCallback),
2098 (createAccessibleKeystrokeListener),
2099 (AccessibleKeystrokeListener_addCallback): upd.
2101 * libspi/deviceeventcontroller.c
2102 (spi_device_event_controller_check_key_event): add public proto.
2105 (impl_accessibility_registry_deregister_global_event_listener):
2106 always init listeners.
2107 (_registry_notify_listeners): yes it is.
2109 * cspi/spi-listener-impl.c (cspi_key_event):
2111 (cspi_event_listener_finalize): impl.
2112 (cspi_event_listener_class_init): hook up.
2113 (event_handler_new, event_handler_free),
2114 (event_list_remove_by_callback): impl.
2115 (cspi_event_listener_remove_callback),
2116 (cspi_keystroke_listener_remove_callback),
2117 (cspi_keystroke_listener_add_callback),
2118 (cspi_event_listener_add_callback): upd.
2120 * libspi/keystrokelistener.c
2121 (keystroke_listener_object_finalize): kill
2122 (spi_keystroke_listener_class_init): upd.
2123 (spi_keystroke_listener_add_callback),
2124 (spi_keystroke_listener_remove_callback): kill,
2126 (impl_key_event): prune drasticaly.
2128 * libspi/eventlistener.c
2129 (spi_event_listener_add_callback),
2130 (spi_event_listener_remove_callback): kill, use
2132 (impl_accessible_event_notify_event): upd.
2133 (spi_event_listener_object_finalize): remove.
2135 * libspi/Makefile.am: use eventlistener.[ch]
2137 2001-12-04 Bill Haneman <bill.haneman@sun.com>
2139 * libspi/registry.c (_registry_notify_listeners):
2140 Changed listener loop iteration to use preferred convention.
2141 Got rid of string memory leaks caused be calling g_strconcat
2142 inside function calls.
2144 * libspi/registry.c (parse_event_type):
2145 Stopped g_strconcat memory leaks, free the g_strsplit return,
2146 g_strdup the split pieces when used, etc.
2148 2001-12-04 Bill Haneman <bill.haneman@sun.com>
2151 Change method 'compare' to return a 'difference set' rather than
2152 taking a StateSet as an out parameter (more Java-friendly).
2154 * idl/Accessible.idl:
2155 Added CORBA struct 'BoundingBox', to faciliate API changes below:
2157 * idl/Component.idl:
2159 Changed methods 'getExtents' and 'getImageExtents' in these
2160 interfaces to return a BoundingBox structure.
2161 (getPosition and getSize are redundant and possibly should be
2162 removed, rather than creating a corresponding Point struct.)
2164 * cspi/spi_component.c:
2165 Modify implementation of getExtents to reflect the above IDL
2170 Add (missing) AccessibleImage_getExtents () API.
2172 * docs/reference/cspi/at-spi-cspi-sections.txt:
2173 Added AccessibleImage_getImageExtents () to docs.
2175 2001-12-03 Bill Haneman <bill.haneman@sun.com>
2177 * idl/Component.idl:
2178 Added two methods, getLayer () and getMDIZOrder (), to reflect
2179 the new ATK methods atk_object_get_layer and
2180 atk_object_get_mdi_z_order. (Which arguably should be part of the
2181 AtkComponent API and AtkObject). Also added an enum,
2182 ComponentLayer, for the first method's return value.
2184 * libspi/component.c:
2185 Added implementations for these methods.
2187 * cspi/spi_component.c:
2189 Added cspi binding methods for above,
2190 AccessibleComponent_getLayer() and
2191 AccessibleComponent_getMDIZOrder().
2192 Added cspi enum 'AccessibleComponentLayer'.
2194 * docs/reference/cspi/at-spi-cspi-sections.txt:
2195 Added above methods to docs.
2199 Changed typedef for 'boolean' type (and all references to it) to
2200 SPIBoolean, to avoid keyword clashes with C++.
2203 Changed usages of 'boolean' to SPIBoolean.
2205 * test/keysynth-demo.c:
2206 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
2207 app), except where SPIBoolean is required by the callbacks API.
2209 2001-12-02 Bill Haneman <bill.haneman@sun.com>
2211 * cspi/spi_registry.c:
2212 Removed obsolete X event loop for passive keygrabs (which now
2215 * registryd/registryd.c:
2216 Removed unnecessary call to gdk_init() [cruft]. This also allows
2217 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
2220 2001-11-28 Bill Haneman <bill.haneman@sun.com>
2222 * docs/reference/cspi:
2223 Included docs for SPI_freeString in generated documentation.
2226 Renamed spi_freeString to SPI_freeString, for consistency. Added
2227 documentation for this function.
2230 Renamed spi_freeString to SPI_freeString, for consistency.
2231 Removed obsolete method declaration string_from_corba_string.
2233 * test/keysynth-demo.c:
2234 Small tweak to comments.
2237 Stopped leaking the strings returned from CSPI.
2239 2001-11-28 Bill Haneman <bill.haneman@sun.com>
2241 Merged Michael's branch (see his ChangeLog entries below).
2243 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
2244 bridge is alive, release on exit.
2246 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
2247 Fix type check macro.
2250 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
2253 Added is_gnome_app static, and method cspi_is_gnome_app(),
2254 so we can call the appropriate shutdown routine at exit in SPI_exit.
2256 * cspi/spi_main.c (cspi_object_ref):
2257 Duplicate the corba object passed in, since we're keeping it around.
2259 * cspi/SPI_exit.c, cspi_cleanup:
2260 Moved the releasing of the live refs to its own function, so we
2261 can put it in g_atexit (). Call the appropriate shutdown API
2262 depending on whethe calling client is a gnome app or not
2263 (bonobo_main_quit or CORBA_ORB_shutdown).
2265 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
2266 Unref the listener when this method is called, after
2267 deregistration. Updated the API docs to note this behavior.
2269 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
2270 Bugfixes: Ref the bonobo object when returning a parent or child
2271 reference, or an AccessibleRelation. Generally made sure
2272 BonoboObject refcount is incremented whenever we return an
2275 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
2276 Fixed typo/bug in signal declaration.
2278 * libspi/accessibleeventlistener.h:
2281 * libspi/application.c (spi_application_new):
2282 Fixed leak in initialization.
2285 Remembered to increment bonobo-object refcount when returning
2286 children (applications) from desktop object.
2287 Added (empty) finalize method.
2289 * libspi/deviceeventcontroller.c:
2290 Hold a ref to listeners inside DEControllerKeyListeners.
2291 Added dec_key_listener_free() method. Use prepend instead of
2292 append in key_listener list. Fixed some refcount madness and
2293 leaks in the listener registration/deregistration - deregistration
2294 now calls dec_key_listener_free() on listeners, and on the
2295 temporarily constructed dec_key_listener() used to perform the search/match.
2297 * libspi/hypertext.c (spi_hypertest_finalize):
2298 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
2299 class. Also fixed spi_hypertext_interface_new() and
2300 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
2302 * libspi/hypertext.h:
2303 Removed pointless and duplicate AtkObject pointer from
2306 * libspi/keystrokelistener.c:
2307 Fixed incorrect type of keystroke_listener_parent_class,
2308 renamed keystroke_listener_object_finalize to
2309 spi_keystroke_listener_object_finalize.
2310 Fixed typo in signal declaration
2311 (spi_keystroke_listener_class_init).
2313 * libspi/registry.c:
2314 Added funcsions spi_listener_struct_new() and
2315 spi_listener_struct_free() to help with memory management issues.
2316 We also now use these methods instead of gnew + poking stuff into
2317 the struct, and to decrement listener counts/free the listeners
2318 when deregistering them.
2319 Fix more refcount bugs in getDesktop() and
2320 getDeviceEventController().
2323 De-ref the desktop after enumerating the applications. Explicitly
2324 decrement the refcounts on the created listeners on exit (using
2325 _unref for keystroke listeners, and via the
2326 deregisterGlobalEventListenerAll command for other event
2329 2001-11-27 Michael Meeks <michael@ximian.com>
2331 * cspi/spi-listener.h: fixup enum.
2333 2001-11-27 Michael Meeks <michael@ximian.com>
2335 * cspi/spi-listener-impl.c (cspi_event_listener_new),
2336 (cspi_keystroke_listener_new): Use the cspi variants.
2338 2001-11-26 Michael Meeks <michael@ximian.com>
2340 * test/keysynth-demo.c: fix 2 compile warnings, missing
2343 * test/simple-at.c (report_focussed_accessible),
2344 (report_focus_event, report_button_press),
2345 (check_property_change, is_command_key),
2346 (report_ordinary_key_event, report_command_key_event): upd.
2348 * util/mag_client.h: include pre-requisites.
2350 * libspi/accessibleeventlistener.c
2351 (spi_event_listener_object_finalize): free any lingering
2354 * libspi/keystrokelistener.c
2355 (keystroke_listener_object_finalize): ditto.
2357 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
2358 callbacks, with cspi types.
2360 * cspi/spi_event.c (createAccessibleEventListener): chain to
2361 (AccessibleEventListener_addCallback): here.
2362 (createAccessibleKeystrokeListener): chain to
2363 (AccessibleKeystrokeListener_addCallback): here.
2365 * libspi/keystrokelistener.c
2366 (spi_keystroke_listener_class_init): add signal.
2367 (impl_key_event): emit the event.
2368 (boolean_handled_accumulator): impl.
2369 (marshal_BOOLEAN__POINTER): add, gack.
2371 * libspi/accessibleeventlistener.c
2372 (spi_event_listener_class_init): add signal.
2373 (impl_accessible_event_notify_event): emit the signal &
2374 make the loop efficient.
2375 (spi_event_listener_add_callback): prepend the callback.
2377 * libspi/accessibleeventlistener.h: add an 'event' signal,
2378 decl type on callback.
2380 * libspi/keystrokelistener.h: ditto.
2382 * cspi/spi-listener.h: make methods typesafe and
2383 make them use the new event typedefs.
2385 * test/simple-at.c (report_focussed_accessible):
2386 include mag_client.h
2387 Use *(void *)text_interface not the other thing.
2389 * configure.in: add gtk to registryd bits - since we use
2392 * util/magnifier.c: include libbonobo.h
2394 2001-11-25 Bill Haneman <bill.haneman@sun.com>
2396 * test/keysynth-demo.c:
2397 Turned this into a simple scanning keyboard, to demonstrate the
2398 use of g_timeout_add () as a means of creating timers for
2399 scanning, and the use of GtkStyle for visually indicating when
2400 virtual keyboard elements are selected.
2402 keysynth-demo now listens to any keyboard keys with zero-valued
2403 keycodes (i.e. 'unused' keys) and interprets them as
2406 Reworked the shiftlatch code so that shift-down state isn't held
2407 for long periods (it's only synthesized immediately prior to
2408 the keysynth event it's modifying). Note that shiftlatch in this
2409 demo is a convenience, not intended to take the place of AccessX
2410 which is the better choice for getting 'sticky' modifier keys.
2412 * libspi/deviceeventcontroller.c:
2413 * at-bridge/bridge.c:
2414 * cspi/spi_registry.c:
2415 Removed some debug print stuff, and put other verbosity in #ifdef
2420 Implemented some more of the magnifier IDL for the simple
2421 magnifier: namely, getZoomRegionParams.
2422 Added mag_x and mag_y members to MagnifierData struct, aid of this
2424 Added GtkWindow::realize signal handler to magnifier, to keep it
2425 from receiving keyboard focus from the WM.
2427 2001-11-23 Mark McLoughlin <mark@skynet.ie>
2429 * cspi/spi-private.h: my guess at what michael forgot
2430 before he ran off to NZ :-)
2432 2001-11-23 Michael Meeks <michael@ximian.com>
2434 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
2435 comment out non existant method invoke so we link.
2437 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
2438 use bonobo_exception_get_text for more friendly warnings.
2440 * cspi/spi.c (Obj_Add): move into spi_main & rename
2441 spi_object_add; kill spi.c
2443 * cspi/spi_registry.c
2444 (deregisterGlobalEventListener),
2445 (deregisterGlobalEventListenerAll),
2446 (registerGlobalEventListener): fix exception leaks.
2448 * cspi/spi_main.c (spi_exception): impl. helper, so we
2449 don't leak exceptions.
2451 * cspi/spi_selection.c
2452 (AccessibleSelection_deselectSelectedChild): return the
2455 * cspi/spi_main.c (spi_ev): impl; hack - gack.
2456 (spi_registry): ditto.
2457 (SPI_init): guard against double inits.
2459 * cspi/*.c: use spi_ev (), and spi_registry () where
2460 appropriate - a temporary hack until we have something
2461 better. Use spi_object_add
2463 2001-11-22 Michael Meeks <michael@ximian.com>
2465 * cspi/Makefile.am: re organise, install the headers.
2467 * cspi/*.h: add G_BEGIN/END_DECLS
2469 2001-22-11 Bill Haneman <bill.haneman@sun.com>
2472 Added non-preemptive keylistener for key events with no modifiers
2473 and shift-only modifier.
2475 * libspi/keystrokelistener.c:
2476 Removed some verbose diagnostics printout.
2478 * cspi/spi_registry.c:
2479 Fixed a bug that caused all key listeners to be registered as
2482 * libspi/deviceeventcontroller.c:
2483 Fixed bug that caused XGrabKey (preemptive key grab) to be called
2484 for non-preemptive key masks.
2487 2001-22-11 Bill Haneman <bill.haneman@sun.com>
2489 * docs/reference/idl/at-spi-idl-docs.sgml:
2490 * docs/reference/idl/at-spi-idl-sections.txt:
2491 * docs/reference/idl/at-spi-idl-overrides.txt:
2492 Added missing files.
2494 * docs/reference/Makefile.am:
2495 removed idl from SUBDIRS until we can figure a way to get gtk-doc
2496 to scan the IDL files :-(
2501 Added .cvsignore files.
2503 2001-21-11 Bill Haneman <bill.haneman@sun.com>
2505 * libspi/deviceeventcontroller.c:
2506 * libspi/keystrokelistener.c:
2508 * cspi/spi_registry.c:
2509 Added filters for KeySets, KeyEventSeq, and event types to key
2510 event dispatching, so listeners should only receive those events
2511 that they requested :-)
2513 2001-21-11 Bill Haneman <bill.haneman@sun.com>
2518 * docs/reference:Makefile.am:
2519 * docs/reference/cspi:
2520 * docs/reference/cspi:Makefile.am:
2521 * docs/reference/cspi:tmpl:
2522 * docs/reference/cspi:tmpl:*.sgml:
2523 * docs/reference/idl:
2524 * docs/reference/idl:Makefile.am:
2525 * docs/reference/idl:at-spi-idl-sections.txt:
2526 * docs/reference/idl:at-spi-idl-docs.sgml:
2527 * docs/reference/idl:tmpl:
2528 * docs/reference/idl:tmpl:*.sgml:
2530 Restructured docs directory to allow separate 'reference' docs
2531 section, and forked idl and cspi docs. Added the sgml template
2532 files to CVS. Added the first sections/structural sgml for the
2535 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
2537 * configure.in, libspi/Makefile.am: find libXtst.
2539 2001-11-21 Michael Meeks <michael@ximian.com>
2541 * test/accessx-gui.c: s/spi_value/value/ - doh.
2543 * libspi/base.[ch]: add.
2545 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2547 * idl/Accessible.idl:
2548 * idl/Application.idl:
2551 Started gtk-doc cleanup on IDL.
2553 * libspi/deviceeventcontroller.c:
2554 Added and connected non-preemptive key notification from the
2555 toolkits (in addition to the pre-emptive support from XServer
2556 which we had before, but which causes 'focus flashing'). Filters
2557 are presently limited to key modifiers and global/non-global,
2558 KeySets are presently ignored, as are KeyEvent masks.
2560 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
2561 structs into the persistant structure rather than just storing
2562 pointers to things that might not persist across servant
2565 The XGrabKey call now does async keygrabs, because synchronous
2566 ones were deadlocking with GDK_event code in a very nasty way.
2568 Added boolean to internal method notify_keylisteners, to indicate
2569 whether the event came from the 'toolkit source' or the 'global
2570 (XServer) source' - this is used in the notification process to
2571 determine which listeners to send the event to.
2573 deviceeventcontroller.c is now warning-free.
2575 * libspi/registry.c:
2576 Fixed regression in application de-registration.
2577 Also fixed some really brain-dead weirdness having to do with
2578 event dispatching - event structs are now duplicated before being
2579 re-marshalled in the dispatch to listeners. This also fixes a
2580 Solaris build problem.
2583 2001-20-11 Michael Meeks <michael@ximian.com>
2586 (impl_accessibility_registry_deregister_global_event_listener):
2589 * libspi/deviceeventcontroller.c
2590 (spi_device_event_controller_check_key_event): return
2591 FALSE on no virtual method.
2593 * libspi/*..h: make includes work on a correctly pathed install.
2595 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
2597 * libspi/application.h: kill unused ( and whacked out )
2598 gboolean *spi_application_set_id (AtkObject *app, long id);
2600 2001-20-11 Michael Meeks <michael@ximian.com>
2602 * libspi/*.[ch]: further convert to bonobo's type func
2603 macros, remove redundnant casts etc.
2605 * libspi/text.c s/accessibility_text/spi_text/g,
2606 re-order to de-cruft.
2608 * libspi/hypertext.c: re-order to kill a huge slew
2609 of redundant forward decls.
2611 * libspi/relation.c: ditto.
2613 * libspi/image.c: ditto.
2615 * */.cvsignore: update
2617 2001-20-11 Michael Meeks <michael@ximian.com>
2619 * libspi/deviceeventcontroller.c
2620 (_controller_register_with_devices): use g_getenv,
2621 kill stdlib.h include.
2623 * libspi/keystrokelistener.c
2624 (spi_keystroke_listener_get_type): kill
2625 (spi_keystroke_listener_class_init),
2626 (spi_keystroke_listener_init): rename to this.
2628 * libspi/text.c (impl_getAttributes): fix warning / bug.
2630 * libspi/*.[ch]: more headers, includes and over commenting.
2632 2001-20-11 Michael Meeks <michael@ximian.com>
2634 * libspi/*.[ch]: fixup headers, includes and over commenting.
2636 * libspi/image.c (impl__get_imageDescription): const
2637 correctness warning fix. remove redundant casting.
2639 * libspi/table.c (impl_getRowDescription): ditto.
2640 (impl_getColumnDescription): ditto.
2642 * libspi/libspi.h: add.
2644 2001-19-11 Michael Meeks <michael@ximian.com>
2646 * libspi/editabletext.c (impl_setAttributes): fix warnings.
2648 * libspi/component.c (accessibility_component_get_type):
2649 rename to (spi_component_get_type): and macroify.
2650 (accessibility_component_init): rename to
2651 (spi_component_init): this
2652 (accessibility_component_class_init): rename to
2653 (spi_component_class_init): this
2655 * libspi/action.c (spi_action_get_type): kill, use the macro.
2657 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
2660 * libspi/application.c (spi_application_object_event_listener),
2661 (impl_accessibility_application_register_object_event_listener):
2662 warning fixes / const understanding updates.
2664 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
2667 2001-18-11 Bill Haneman <bill.haneman@sun.com>
2669 * libspi/spi_accessible.c: Added docs and C bindings for
2670 AccessibleStateSet. (No implementations yet). Documentation
2671 coverage for C bindings now 100%. Made docs for event listeners
2676 boolean notifyListenersSync (in DeviceEventListener listener,
2677 in DeviceEvent event);
2679 oneway void notifyListenersAsync (in DeviceEventListener listener,
2680 in DeviceEvent event);
2682 Added DeviceEventListener and DeviceEvent structs (may deprecate
2683 KeyStroke and KeystrokeListener in favor of this generic
2684 event/listener framework for devices).
2686 * libspi/deviceeventcontroller.c:
2688 Changed some key listener code to take masks, etc., and paved the
2689 way for integration of toolkit/non-preemptive key events. Changed
2690 signatures of some internal methods.
2692 * at-bridge/bridge.c:
2693 Fixed regression connecting to interface signals, apparently
2694 caused by GTK+ changes.
2696 Added an internal bridge_state_listener to deal with
2697 property-change:accessible-state signals.
2699 Changed the key_listeners GList to store structs (including masks,
2700 etc.) instead of just CORBA_Objects (required for full
2701 implementation of key listener API).
2703 Connected the bridge to all currently supported Atk signals.
2704 Events now supported:
2705 object:property-change
2706 object:property-change:accessible-name
2707 object:property-change:accessible-state
2708 object:property-change:accessible-description
2709 object:property-change:accessible-parent
2710 object:property-change:accessible-value
2711 object:property-change:accessible-role
2712 object:property-change:accessible-table-caption
2713 object:property-change:accessible-table-column-description
2714 object:property-change:accessible-table-column-header
2715 object:property-change:accessible-table-row-description
2716 object:property-change:accessible-table-row-header
2717 object:property-change:accessible-table-summary
2718 object:children-changed
2719 object:visible-data-changed
2720 object:selection-changed
2721 object:text-selection-changed
2723 object:text-caret-moved
2725 object:row-reordered
2727 object:column-inserted
2728 object:column-reordered
2729 object:column-deleted
2730 object:model-changed
2732 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2734 * libspi/hyperlink.c,h:
2735 Fixed some broken stuff in hyperlink.
2737 * libspi/relation.h:
2738 * libspi/relation.c:
2739 * cspi/spi_accessible.c:
2740 Initial implementations of AccessibleRelation methods, and docs.
2742 * libspi/accessible.c:
2743 Fixed a bug that caused SEGV if an accessible
2744 object's description is NULL, and a client
2745 requests it. An empty string is now returned.
2747 * cspi/spi_editabletext.c:
2748 * cspi/spi_hypertext.c:
2750 * cspi/spi_hyperlink.c:
2754 Doc coverage now 95%.
2756 2001-16-11 Bill Haneman <bill.haneman@sun.com>
2758 One last namespacing revision:
2759 * libspi/accessibleeventlistener.[ch]:
2760 Renamed SpiAccessibleEventListener to SpiEventListener,
2761 (no need for two namespaces ;-)
2763 And lots of documentation fixes:
2765 * docs/at-spi-docs.sgml:
2766 Fixed 'underscore vs. hyphen' bug that was preventing
2767 the gtk-doc API docs from being automatically generated.
2770 * cspi/spi-listener.h
2772 * cspi/spi_accessible.c
2774 * cspi/spi_application.c
2775 * cspi/spi_component.c
2776 * cspi/spi_editabletext.c
2778 * cspi/spi_hypertext.c
2780 * cspi/spi_registry.c
2781 * cspi/spi_selection.c
2785 * docs/at-spi-docs.sgml
2786 * docs/at-spi-sections.txt
2788 Added and fixed up gtk-doc documentation in cspi.
2790 Interfaces now (fully) documented (subject to revision and enhancement):
2792 Event Listener Support
2794 AccessibleApplication
2798 AccessibleEditableText
2805 AccessibleRelationSet
2810 2001-14-11 Bill Haneman <bill.haneman@sun.com>
2812 * at-bridge/bridge.c:
2813 Initial work for toolkit-level key snooper connection by bridge.
2818 New typedefs and fixes to support new namespacing, and cleaner
2819 separation of cspi bindings from libspi bonobo implementation.
2820 Removed inconsistent and extraneous Spi* namespace prefix that
2821 had crept into cspi headers.
2822 Lots of comment fixes that sed had missed.
2824 * cspi/spi-roletypes.h:
2825 * cspi/spi-statetypes.h:
2826 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
2827 to AccessibleRoleType.
2829 * libspi/accessibleeventlistener.h:
2830 Fixed minor namespacing weirdness.
2832 * libspi/deviceeventcontroller.c:
2833 Reordered some internal API for device listeners.
2834 Changed the key registry final boolean to 'is_system_global'
2835 rather than 'is_synchronous', which is more descriptive of its
2837 Added spi_device_event_controller_new().
2838 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
2840 * libspi/keystrokelistener.[ch]:
2841 Namespaced KeystrokeListener to SpiKeystrokeListener.
2842 Changed uses of keymasks to use SPI_ prefix, and did other
2845 * libspi/keymasks.h:
2846 Namespaced keymask constants with SPI_ prefix.
2848 * libspi/registry.c:
2849 Some warning fixes, and knock-on fixes from namespace changes.
2852 Added rules for accessx-gui test program.
2854 * test/accessx-gui.c:
2855 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
2856 utility. It doesn't actually use at-spi, but it's still cool and
2859 * test/keysynth-demo.c:
2863 Fixes so that these test clients work properly with the namespaced
2864 libraries. (Incompletely tested for technical reasons, fixes may follow)
2867 2001-13-11 Michael Meeks <michael@ximian.com>
2869 * libspi/application.c
2870 (impl_accessibility_application_get_version),
2871 (impl_accessibility_application_get_toolkit_name):
2873 (impl_accessibility_application_set_id),
2874 (impl_accessibility_application_get_id): remove
2875 redundant casting code.
2877 * libspi/action.c (impl_getDescription): fix warnings.
2879 * libspi/accessible.c
2880 (impl_accessibility_accessible_get_parent),
2881 (impl_accessibility_accessible_get_child_at_index),
2882 (impl_accessibility_accessible_get_state),
2883 (impl_accessibility_accessible_get_relation_set):
2884 warning fixes & include action.h
2886 2001-13-11 Michael Meeks <michael@ximian.com>
2888 * *.[ch] fix bits I screwed up:
2890 s/([^ \tb(\*\&\?\",])spi_/\1/g;
2891 s/([^ \tb(\*\&\?\",])Spi/\1/g;
2893 2001-13-11 Michael Meeks <michael@ximian.com>
2895 * *.[ch] Namespace libspi into spi_ and Spi.
2897 2001-13-11 Michael Meeks <michael@ximian.com>
2899 * Makefile.am: dist & install at-spi-1.0.pc
2901 * libspi/Makefile.am: install into at-spi-1.0
2903 * idl/Makefile.am (idldir): install into at-spi-1.0
2905 * at-spi-1.0.pc.in: add.
2907 * configure.in: build it.
2909 2001-12-11 Bill Haneman <bill.haneman@sun.com>
2911 * test/keysynth-demo.c:
2912 Use a 'realize' signal-handler to set the WM properties for
2913 the virtual keyboard, rather than making it a "POPUP" type
2914 override-redirect window (thanks to anders carlsson for that
2917 2001-11-11 Bill Haneman <bill.haneman@sun.com>
2920 * test/keysynth-demo.c:
2921 Added new test of key synthesis, which creates a simple
2922 (mouse-operated) onscreen keyboard. It inserts key events into
2923 the currently-focused window, thus it does not grab keyboard focus
2926 * cspi/spi_registry.c:
2927 Added C binding for AT-SPI generateKeyEvent.
2929 * libspi/deviceeventcontroller.c:
2930 Added call to XFilterEvent so that key listener works with XIM (we
2931 hope). Added event_synth_type to generateKeyEvent, so that we can
2932 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
2933 synthesize a press/release pair for KeySyms.
2935 2001-11-09 Bill Haneman <bill.haneman@sun.com>
2937 * libspi/Makefile.am:
2938 * registryd/Makefile.am:
2939 (temporary) hack to include libXtst in libspi and registryd.
2940 (Needed for keystroke synthesis, see below).
2943 Improved API for registerKeystrokeListener, in accordance with
2944 discussions with Gnopernicus team and X server research.
2946 * libspi/registry.c:
2947 * libspi/deviceeventcontroller.c:
2948 * libspi/accessible.c:
2949 * libspi/keystrokelistener.c:
2950 Changes and fixes to support keylisteners for potentially
2951 consumed key events (that is, 'passive grabs').
2952 Added implementation for generateKeyEvent() [untested].
2955 Changes to registerKeystrokeListener() API, as above.
2956 Added deregisterGlobalEventListenerAll(), and
2957 deregisterKeystrokeListener(), which are needed for clean exit of
2959 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
2960 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
2962 * cspi/spi_registry.c:
2963 Added implementations of function prototypes mentioned above.
2965 * registryd/registryd.c:
2966 Added the key listener event source as a g_timeout(), to allow
2967 receipt of key events that are not caught by GDK (since GDK
2968 doesn't support passive keygrabs, this was necessary).
2971 Changed to attach a keylistener to 'Alt' keys, and
2972 respond to the following keycommands: Alt-M (toggle magnifier);
2973 Alt-F (toggle speech); Alt-Q (quit).
2974 Added an exit routine to deregister the listeners, and a key
2975 listener that prints some key info to the console when a key
2976 matches the listener mask (and is thus received by the listener).
2978 * util/idl/Magnifier.idl:
2979 Changes to magnifier API to support multiple zoom regions,
2980 non-uniform scaling in x and y, markDirty, and a host of other
2981 features that would be useful to magnification.
2984 * util/mag_client.c:
2985 * util/mag_client.h:
2986 * util/mag_control.c:
2988 Source code changes to support the above IDL changes.
2991 As above, and also changes to use a (slower) generic conversion
2992 path for colormap conversions, since the fast RGB conversions have been
2993 reported to fail for 16-bit displays.
2995 2001-10-26 Michael Meeks <michael@ximian.com>
2997 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
2999 <2001-10-26 Laszlo Peter <laca@ireland.sun.com>
3001 * at-bridge/Makefile.am: fix LDFLAGS.
3003 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
3005 * at-bridge/bridge.c:
3006 Re-worked listeners for toolkit events, now we have signal
3007 and property listeners. Added a private method
3008 register_atk_event_listeners(), which registers with the
3009 various atk and gtk signals we need to monitor in order to emit
3011 Added emission hook for AtkObject:property-change events, to
3012 support the 'property listeners'.
3013 Fixed some alloc()s of Accessibility_Event structs to use CORBA
3016 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
3017 which emit warnings and exit, respectively, if CORBA errors occur
3018 during remote calls, and we now use these methods to check most of
3019 our CORBA calls in the C bindings.
3021 * cspi/spi_accessible.c:
3022 Changed AccessibleSelection_refSelectedChild() to
3023 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
3024 now increment refcounts.
3026 * cspi/spi_component.c:
3027 Fixed some long pointer casts (dangerous!) to pass pointers to
3028 CORBA_longs of the proper type to the CORBA stubs, and copy the
3029 data into the longs that were passed into the C bindings code.
3031 * at-bridge/bridge.c:
3033 * libspi/accessible.c:
3034 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
3035 hyperlinks, AtkHyperlink is an object type.
3037 * libspi/application.c:
3038 Added various conversions to and from "generic" event types and
3039 atk-specific types; this is really part of the 'bridge'
3040 implementation but is valid for all AtkObject-based accessibility
3043 * libspi/editabletext.c:
3044 Fixed nasty bug wherein editable text's finalize method was
3045 unref'ing tha AtkObject reference that the text parent class was
3046 about to unref _again_. There was also a nasty inheritance bug
3047 that meant that the AccessibleEditableText class was corrupt.
3049 * libspi/selection.c:
3050 Provided implementations for some selection API that was broken.
3052 * idl/Application.idl:
3053 Added registerObjectEventListener () method.
3056 Fixed a number of return values that were Bonobo_Unknowns from
3057 bonobo_object_corba_objref(), which I
3058 forgot to dup before returning. Changed instances of
3059 bonobo_object_corba_objref (bonobo_object(o)) to
3060 BONOBO_OBJREF(o), for concision and clarity.
3062 <2001-10-13 Louise Miller <louise.miller@sun.com>
3064 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
3065 idl/Event.idl, idl/Registry.idl
3066 Changed these files to include Bonobo_Unknown.idl instead
3069 <2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
3071 * libspi/component.c libspi/component.h:
3072 Fixed typo. Added assertions for object checks in
3073 AccessibleComponent code.
3075 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
3077 * idl/Accessible.idl:
3078 Added 'isEqual (Accessible *object)'
3079 method for Accessible. (Not Yet Implemented).
3082 Changed signature of registerKeystrokeListener() to
3083 take a KeySet and KeyEventSeq so that specific keys and event
3084 types could be requested for monitoring, and added a flag
3085 is_synchronous so that either synchronous or asynchronous
3086 notification could be requested. (However this is not all
3087 implemented yet). This also meant adding two new typedefs,
3088 KeyEventSeq and KeySet.
3091 Added two new relations, RELATION_TOOLTIP_FOR and
3092 RELATION_LEAFNODE_OF.
3095 Added new state, STATE_HAS_TOOLTIP.
3097 * libspi/text.c, editabletext.c:
3098 Added new assertions to all casts of bonobo-objects from
3099 CORBA servants, to prevent Text API calls on non-text objects.
3100 Changed suspect casts of int-pointer types, so that we
3101 always send a valid CORBA_long pointer to the CORBA APIs that use
3102 in/out long parameters. We then have to copy from the CORBA_long
3103 into the regular long or int for return to the C bindings, or
3104 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
3107 * libspi/deviceeventcontroller.c:
3108 Cleaned these sources up.
3110 Changed return type for getCharacterAtOffset to
3111 CORBA_unsigned_long, to allow for 32-bit characters.
3114 <2001-10-08 Bill Haneman <bill.haneman@sun.com>
3118 Fixed 'make dist' so that distro compiles...
3119 * libspi/keymasks.h:
3121 * cspi/spi-listener.c:
3122 KeystrokeListenerCB now returns a boolean.
3124 Added KeyEventType struct, and KeyStroke.
3125 Also added createKeystrokeListener(),
3126 KeystrokeListener_addCallback(),
3127 KeystrokeListener_removeCallback(), and added a keymask to
3128 registerKeystrokeListener().
3129 * cspi/spi_accessible.c:
3130 Changed numerous return types for interfaces from
3131 AccessibleComponent to Accessible<InterfaceName>; this was
3132 probably a cut-and-paste error.
3134 Implementations of new KeystrokeListener api (from spi.h,
3137 Changes to key modifier mapping.
3138 Created ControllerEventMask struct.
3139 Made DeviceEventController derive from Bonobo::Unknown.
3141 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
3142 * libspi/deviceeventcontroller.c:
3143 Added a number of new internal (private) methods.
3144 * libspi/editabletext.c:
3145 * libspi/editabletext.h:
3146 Fixed a number of bugs related to the fact that
3147 editabletext inherits from text. Fixed the EditableText struct,
3148 the init() call, and use correct casts when calling Text methods
3149 from an EditableText object. Removed (duplicate) atko from the
3150 EditableText structure, we use the one in the parent Text
3151 structure via the casts mentioned above.
3152 * libspi/keystrokelistener.[ch]:
3153 * libspi/registry.c:
3154 Changes in support of keyboard handling (above).
3156 Keyboard handling, though partly functional, is still not
3157 recommended for at-spi client use as there is considerable
3158 work yet to be done.
3161 Changed some places where pointers to various int types
3162 are cast to be pointers to CORBA_long types and vice-versa:
3163 pointer casting is not safe so we pass pointers of the correct
3164 types and then cast the result before putting it into the target
3167 * libspi/text.h: minor typos corrected.
3169 We now speak not only the name of a Text element, but the
3170 first sentence of its content, when it receives focus.
3171 I also changed the text compression to 75% from 50%.
3172 * util/Accessibility_Util.server.in:
3173 Changed the default magnifier type to be a 3x vertical
3174 splitscreen magnifier (was previously a 2x horizontal one).
3176 <2001-10-03 Bill Haneman <bill.haneman@sun.com>
3178 * libspi/keystrokelistener.h:
3179 * libspi/keystrokelistener.c:
3180 Initial functional implementations of KeystrokeListener.
3183 <2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
3185 Fixed string handling for NULL strings in libspi.
3186 Added spi_freeString to free strings returned by C bindings.
3188 <2001-09-30 Bill Haneman <bill.haneman@sun.com>
3190 * libspi/keystrokelistener.h:
3191 * libspi/keystrokelistener.c:
3192 Began (no-op) implementations of KeystrokeListener
3194 * libspi/deviceeventcontroller.c:
3195 * libspi/deviceeventcontroller.h:
3196 Began creating implementations of DeviceEventController,
3197 to handle keystroke and mouse event listening and
3199 * libspi/accessible.c:
3200 Stubbed-in the implementations for
3201 Accessibility_Accessible_getState and
3202 Accessibility_Accessible_getRelationSet.
3203 * libspi/registry.c:
3204 Improved de-registration process and fixed some bugs,
3205 deregistration now works correctly.
3207 Added initialization of applications list (to NULL).
3209 Reduced speech compression from 0.5 to 0.7, for demo.
3210 Changed call to gdk_window_set_decorations()
3211 to gtk_window_set_decorated().
3212 * at-bridge/bridge.c:
3213 Bridge now deregisters when app exits, via
3214 registration of a cleanup function
3215 with the g_atexit() call.
3216 Required making 'app' static, renamed 'this_app'.
3217 Fixed broken use of bonobo_init, passing argv wrongly.
3219 <2001-09-27 Bill Haneman <bill.haneman@sun.com>
3223 Created a new directory for
3224 accessibility-related utilities, primarily for
3225 testing and demo purposes, but with possible
3232 Onscreen magnifier utility that
3233 is implemented as a bonobo service.
3235 * util/mag_client.c:
3236 * util/mag_client.h:
3237 Client-side support (simple C bindings)
3238 for Magnification service
3240 * util/mag_control.c:
3241 Client program example for
3242 Magnification service
3244 * util/Accessibility_Magnifier.server.in:
3245 Bonobo-activation file for the
3246 Magnification service.
3249 * util/idl/Magnifier.idl:
3250 IDL defining the bonobo Magnification
3254 Modifications to use the bonobo-activated magnifier
3255 above, in place of trying to connect to an existing
3256 magnifier that uses socket-listening IPC.
3258 If env variable MAGNIFIER is set, a magnifier service
3259 will be started if one does not exist.
3261 <2001-09-25 Bill Haneman <bill.haneman@sun.com>
3262 * at-bridge/bridge.c:
3263 applied patch from Marc to build and run
3264 against new glib and gtk+ (seemed like a change
3265 to bonobo_init signature was made ?)
3267 made festival-server support turned off by default.
3268 Added support for a simple magnifier (off by default)
3269 which will be added to a 'util' directory later.
3270 * at-bridge/Makefile.am:
3271 Changed "application.h" header from a 'source'
3272 to a 'dependency' of libat-bridge.
3274 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
3282 Added interface implementation c files to list of
3283 includes so they are included in libcspi.
3286 Changed prototype of AccessibleAction_doAction to return a
3288 Changed prototype of AccessibleTable_getCaption to
3289 return an Accessible.
3290 Changed prototype of AccessibleTable_getSelectedRows
3291 and AccessibleTable_getSelectedColumns to
3292 return a long (returns the number of selected rows
3293 or columns respectively).
3294 Changed name of AccessibleText_refRunAttributes to
3295 AccessibleText_getAttributes.
3296 Changed prototype of AccessibleText_getCharacterExtents to
3297 return a void rather than a boolean.
3298 Added support for a AccessibleCoordType parameter
3299 specifying what type of coordinates are desired.
3300 Added an AccessibleCordType parameter to
3301 AccessibleText_getPointAtOffset.
3303 * cspi/spi_accessible.c:
3304 Added code to return the outstanding interfaces from
3305 Accessible_queryInterface.
3307 * cspi/spi_action.c:
3309 Corrected call to getNActions to call the c binding
3312 * cspi/spi_editabletext.c:
3314 Changed name from setRunAttributes to setAttributes.
3316 * cspi/spi_hyperlink.c:
3318 Changed call to getNAnchors to correctly call the c
3319 binding for an attribute.
3321 * cspi/spi_hypertext.c:
3323 Changed getImageDescription to correctly call the
3324 binding for an attribute.
3326 * cspi/spi_selection.c:
3327 Changed getNSelectedChildren to correctly call the c
3328 binding for the attribute.
3329 Changed refSelectedChild to getSelectedChild.
3333 Changed getCaption to return an Accessible.
3334 Fixed calls which retrieve attributes.
3335 Changed refAt to getAccessibleAt.
3336 Changed getNSelectedRows and getNSelectedColumns to
3340 Changed getCharacterExtents and getPointAtOffset to accept an
3341 AccessibleCoordType.
3343 Changed calls which retrieve attributes.
3344 Changed refRunAttributes to getAttributes.
3349 * idl/Hyperlink.idl:
3350 Changed n_anchors attribute to nAnchors to keep naming
3351 convention consistent.
3354 Made Table inherit from Bonobo::Unknown.
3355 Added nSelectedColumns and nSelectedRows attributes.
3358 Made Value inherit from Bonobo::Unknown.
3360 * libspi/hyperlink.c:
3361 Change for nAnchors attributte name change.
3363 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
3371 Added interface implementation c files to list of
3372 includes so they are included in libcspi.
3375 Changed prototype of AccessibleAction_doAction to return a
3377 Changed prototype of AccessibleTable_getCaption to
3378 return an Accessible.
3379 Changed prototype of AccessibleTable_getSelectedRows
3380 and AccessibleTable_getSelectedColumns to
3381 return a long (returns the number of selected rows
3382 or columns respectively).
3383 Changed name of AccessibleText_refRunAttributes to
3384 AccessibleText_getAttributes.
3385 Changed prototype of AccessibleText_getCharacterExtents to
3386 return a void rather than a boolean.
3387 Added support for a AccessibleCoordType parameter
3388 specifying what type of coordinates are desired.
3389 Added an AccessibleCordType parameter to
3390 AccessibleText_getPointAtOffset.
3392 * cspi/spi_accessible.c:
3393 Added code to return the outstanding interfaces from
3394 Accessible_queryInterface.
3396 * cspi/spi_action.c:
3398 Corrected call to getNActions to call the c binding
3401 * cspi/spi_editabletext.c:
3403 Changed name from setRunAttributes to setAttributes.
3405 * cspi/spi_hyperlink.c:
3407 Changed call to getNAnchors to correctly call the c
3408 binding for an attribute.
3410 * cspi/spi_hypertext.c:
3412 Changed getImageDescription to correctly call the
3413 binding for an attribute.
3415 * cspi/spi_selection.c:
3416 Changed getNSelectedChildren to correctly call the c
3417 binding for the attribute.
3418 Changed refSelectedChild to getSelectedChild.
3422 Changed getCaption to return an Accessible.
3423 Fixed calls which retrieve attributes.
3424 Changed refAt to getAccessibleAt.
3425 Changed getNSelectedRows and getNSelectedColumns to
3429 Changed getCharacterExtents and getPointAtOffset to accept an
3430 AccessibleCoordType.
3432 Changed calls which retrieve attributes.
3433 Changed refRunAttributes to getAttributes.
3438 * idl/Hyperlink.idl:
3439 Changed n_anchors attribute to nAnchors to keep naming
3440 convention consistent.
3443 Made Table inherit from Bonobo::Unknown.
3444 Added nSelectedColumns and nSelectedRows attributes.
3447 Made Value inherit from Bonobo::Unknown.
3449 * libspi/hyperlink.c:
3450 Change for nAnchors attributte name change.
3453 <2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
3455 implementations-- made server implementations own AtkObject pointers
3456 rather than their respective AtkInterrface pointers to fix
3457 refcounting. AtkHyperlink is still broken.
3459 <2001-09-04 Bill Haneman <bill.haneman@sun.com>
3460 * cspi/spi_accessible.c:
3461 Added method Accessible_Role_getName(),
3462 and requisite string array (role_names).
3463 Added conversion string_from_corba_strin() call
3464 to Accessible_getName and _getDescription.
3465 * libspi/accessible.c:
3466 Added implementation for Accessible_getRole()
3468 Added festival support, used if environment variable
3471 2001-09-04 Bill Haneman <bill.haneman@sun.com>
3473 * at-bridge/bridge.c:
3474 Now allocate Accessibility_Event using
3475 Accessibility_Event__alloc() instead of g_new0().
3476 * libspi/accessibleeventlistener.c:
3477 Initialize AccessibleEventListener->callbacks to NULL.
3478 Fixed accessible__event_listener_init() param, changed to
3479 "AccessibleEventListener *" type.
3480 Changed a bonobo_object_release_unref() call to
3481 Accessibility_Accessible_unref().
3482 * libspi/listener.c:
3483 Changed Bonobo_Unknown_unref to (equivalent)
3484 Accessibility_Accessible_unref.
3485 * libspi/registry.c:
3486 Changed bonobo_object_release_unref to
3487 Accessibility_Accessible_unref.
3489 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
3492 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
3493 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
3494 spi-util.c spi-util.h
3495 Implementations for C bindings to remaining accessibility
3498 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
3501 changed return value of Action from void to boolean to
3502 bring in line with ATK.
3505 Changed getText funcions to return "out" start and end offsets.
3506 Changed getAttributes to take and offset and return the start
3507 and end offset of the attribute run.
3508 Changed getOffsetAtPoint and getCharacterExtents to take an
3509 enum describing whether coordinates are window or screen.
3512 libspi/action.c libspi/action.h libspi/editabletext.c
3513 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
3514 libspi/hypertext.c libspi/hypertext.h libspi/image.c
3515 libspi/image.h libspi/selection.c libspi/selection.h
3516 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
3517 libspi/value.c libspi/value.h
3518 Added server implementations for outstanding ATK interfaces
3519 not yet implemented.
3521 2001-09-04 Bill Haneman <bill.haneman@sun.com>
3524 Added (missing) getName() method.
3525 Made nActions an attribute.
3526 * idl/EditableText.idl:
3527 Changed order of params in setAttributes.
3528 * idl/Hyperlink.idl:
3529 Removed getAnchor, added getURI.
3531 Changed attributes to methods, for efficiency
3532 (so that getting extents can be done in one call)
3533 * idl/Selection.idl:
3534 Changed nSelectedChildren to attribute, and re-indented.
3535 * idl/Table.idl: changed nrows, ncolumns, caption, summary
3537 * idl/Text.idl: reformatted to match our coding style.
3538 (temporarily?) removed getRowColumnAtOffset().
3539 Changed text selection API to support multi-select and
3540 non-contiguous selections, as in ATK.
3541 * idl/Value.idl: changed some methods to attributes.
3543 2001-08-24 Mark McLoughlin <mark@skynet.ie>
3545 * libspi/listener.c(impl_notify_event):
3546 BonoboUnkown_unref the source instead
3547 of bonobo_object_release_unref - the ORB
3548 handles the releasing.
3550 * configure.in: require ORBit-2.3.94 for
3553 2001-08-21 Bill Haneman <bill.haneman@sun.com>
3555 Tagged CVS repository 'EA_1_0'.
3556 * README.EARLY_ACCESS:
3557 Alphabetized acknowledgements list, and
3559 Listed some known dependencies of at-spi.
3561 2001-08-20 Bill Haneman <bill.haneman@sun.com>
3563 * docs/at-spi-docs.sgml:
3564 * docs/at-spi-sections.txt:
3565 * docs/at-spi-overrides.txt: (Added zero-length file)
3566 Documentation improvements - gtk-doc should build
3567 docs for all implemented C bindings now.
3570 * cspi/spi.c: (New file)
3571 * cspi/spi_event.c: (New file)
3572 * cspi/spi_registry.c: (New file)
3573 * cspi/spi_accessible.c: (New file)
3574 * cspi/spi_application.c: (New file)
3575 * cspi/spi_component.c: (New file)
3576 Split spi_main.c into six parts, and included them from
3577 "spi.c". This is a bit of a hack, probably temporary,
3578 but required by gtk-doc, apparently.
3580 2001-08-20 Bill Haneman <bill.haneman@sun.com>
3583 * docs/at-spi-docs.sgml:
3584 * docs/at-spi-sections.txt:
3586 Initial checkins/modifications for gtk-doc generation.
3589 Added (missing) interface query methods to Accessible's C binding.
3591 Added GenericInterface type definition.
3593 Added query for AccessibleComponent interface to focus event handler.
3594 Added printout of bounding box for focussed component.
3595 * libspi/component.c:
3596 Added partial implementation for AccessibleComponent to C binding.
3597 * idl/Application.idl:
3598 * libspi/registry.c:
3599 * libspi/listener.c:
3600 * libspi/application.c:
3601 * libspi/application.h:
3602 Changed "ID" attribute type from string to long.
3604 2001-08-19 Bill Haneman <bill.haneman@sun.com>
3608 Made method naming consistent: methods taking object args
3609 start with uppercase, other methods (except those using
3610 acronyms) start with lowercase. Underscores delimit between
3611 object names and method names:
3612 SPI_init() - uppercase since it starts with an acronym.
3613 getDesktopCount () - lowercase start since no object param0.
3614 Accessible_getName() - uppercase object type name, studlyCaps method
3618 Added gtk-doc documentation for all currently implemented
3619 methods in the C bindings API.
3621 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3623 * Makefile.am : changed build order to build test last.
3626 Changed "createEventListener" to "CreateEventListener".
3627 * libspi/accessibleeventlistener.c :
3628 Bugfix for addition of callbacks.
3629 * test/Makefile.am :
3630 * test/simple-at.c :
3631 Added new test that uses the C bindings API.
3633 * libspi/listener.c :
3634 * libspi/registry.c :
3635 * libspi/accessibleeventlistener.c :
3636 * at-bridge/bridge.c :
3637 Renamed member "target" of Accessibility_Event to "source",
3638 which is more descriptive.
3641 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3645 * cspi/Makefile.am :
3646 Added makefile support for at-spi/cspi directory.
3649 * cspi/spi-listener.h : (NEW FILE)
3650 Added support for/use of spi-listener.h.
3652 C bindings now build successfully, with no warnings.
3653 * libspi/accessibleeventlistener.h : (NEW FILE)
3654 * libspi/accessibleeventlistener.c : (NEW FILE)
3655 * libspi/Makefile.am :
3656 Added new object type "AccessibleEventListener"
3657 which inherits from Listener, and allows attachment
3658 of in-process callbacks (so that a client with a listening
3659 object instance can add functionality to the local
3660 implementation, dynamically).
3662 2001-08-18 Bill Haneman <bill.haneman@sun.com>
3664 * libspi/accessible.c:
3665 Add implementation for get_index_in_parent().
3667 Added #include of "spi-roletypes.h", and
3668 added enumerated type AccessibleCoordType.
3669 Added definition for KeystrokeListener (function type).
3672 * cspi/spi-statetypes.h :
3673 * cspi/spi-roletypes.h :
3675 Added these headers, used by spi.h.
3677 Added code (NOTE: not yet built by make).
3679 2001-08-18 Mark McLoughlin <mark@skynet.ie>
3681 * libspi/Makefile.am: generate imodule
3682 at the same time as other idl compiler
3685 2001-08-17 Bill Haneman <bill.haneman@sun.com>
3686 * libspi/registry.c :
3687 * libspi/application.c :
3688 * idl/Application.idl :
3689 Made registration with toolkit an application method,
3690 which is required since each app has its own toolkit static
3691 environment. Thus the bridge must register for
3692 notification of toolkit events from each application in turn.
3693 Toolkit notifications are now successfully registered for, and
3694 sent to the listening at client.
3696 Changed toolkit event string to use hyphens rather than underscores.
3697 * libspi/listener.c :
3698 listner now gives more info in debug mode - it reports the
3699 name of the event received, as well as the name of the source.
3702 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3704 * libspi/registry.c :
3705 added more implementation for toolkit events.
3706 Fixed bug such that toolkit event registrations
3707 (via atk) use the whole event name string, not
3709 Removed a useless call to an ORBit_ method.
3710 * at-bridge/bridge.c :
3711 Removed unused local sbuf[] variable.
3713 We now register for Gtk:GtkWidget:button_press_event
3714 events as well as "focus:" events.
3716 Add some more API from Registry.idl that was missing,
3717 for keystroke listening, keystroke and mouse event
3718 synthesis, and enumeration of accessible desktops.
3720 2001-08-16 Michael Meeks <michael@ximian.com>
3722 * configure.in: use AM_GLIB_GNU_GETTEXT.
3724 * Makefile.am (SUBDIRS): kill intl.
3726 2001-08-15 Michael Meeks <michael@ximian.com>
3728 * registryd/Makefile.am: s/oaf/server/ relocate info file.
3730 * configure.in: upd.
3732 * configure.in: depend on a recent bonobo-activation that
3733 will find our server files ...
3735 2001-08-16 Bill Haneman <bill.haneman@sun.com>
3737 * libspi/accessible.c : accessible_new() :
3738 Now we add the Component interface via bonobo_object_add_interface,
3739 if the contained AtkObject implements AtkComponent.
3740 * libspi/accessible.h : now include "component.h"
3741 * libspi/component.h :
3742 * libspi/component.c : added files - implementation of
3743 bonobo wrapper object for Accessibility/Component
3744 * libspi/listener.c :
3745 Added test code to check for Accessibility/Component:1.0
3746 interface and report whether it is implemented by the
3748 * libspi/registry.c :
3749 Now we check for not only the hash of the whole event
3750 string before relaying the event, we also check the
3751 "minor" event string (without the detail string).
3752 This allows event listeners to be registered against
3753 all events of a certain major+minor type, or just
3754 against a specific major+minor+detail type.
3755 * libspi/accessible.c :
3756 Added implementations for Accessible:get_parent(),
3757 Accessible:getChildCount(), and Accessible:getChildAtIndex().
3758 * libspi/registry.c :
3759 * libspi/listener.c :
3760 Replaced calls to Accessibility_Accessible_ref() and
3761 Accessibility_Accessible_unref() with
3762 calls to bonobo_object_dup_ref() and
3763 bonobo_object_release_unref(), so that the CORBA object
3764 is dup-ed and released when relayed, as well as the bonobo object.
3766 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3768 * libspi/Makefile.am,
3769 registryd/Makefile.am,
3770 at-bridge/Makefile.am.
3771 test/Makefile.am, configure.in:
3772 reverse previous changes.
3774 * /idl/Image.idl: fix typo.
3776 * test/Makefile.am: put DEBUG_FLAGS
3779 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3781 * test/app.c: use argv[0] instead of
3784 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3786 * libspi/Makefile.am,
3787 registryd/Makefile.am,
3788 at-bridge/Makefile.am.
3789 test/Makefile.am, configure.in:
3790 cleanup, replace individual LIBS/CFLAGS with
3791 AT_COMMON_{LIBS|CFLAGS}.
3795 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3797 * configure.in, libspi/Makefile.am:
3798 Change IDL path checking for bonobo-activation
3801 2001-08-15 Bill Haneman <bill.haneman@sun.com>
3803 * registryd/registry.c : separated event listeners to use
3804 3 separate lists (focus, window, toolkit). Began testing
3805 event names against hashes before relaying events.
3806 * test/at.c : now register for events of type "focus:"
3807 * test/app.c : now generate events of type "focus:"
3808 * at-bridge/bridge.c : register with ATK for focus events,
3809 and we now relay those focus events to any "focus:" listeners.
3810 This now works with the bridge as a GTK_MODULE when running test/at.
3811 * libspi/registry.c :
3812 * libspi/listener.c :
3813 now we ref event sources before propagating, and unref on receipt.
3814 * libspi/registry.c :
3815 some changes to internal structs, to support event typestring hashes.
3816 * text/app.c : changed the way the appname is generated.
3817 * cspi : added directory that will hold the C bindings library for
3818 non-CORBA/bonobo-savvy clients.
3819 * cspi/spi.h : header file that contains the function prototypes for the C binding.
3820 * idl/Component.idl : added in parameter to indicate coord system for
3821 geometry-related calls.
3822 * idl/Hyperlink.idl : added readonly n_links attribute
3823 * idl/Image.idl : changed methods to attributes.
3825 2001-08-15 Mark McLoughlin <mark@skynet.ie>
3827 * at-bridge/Makefile.am: link against
3828 ../libspi/libspi.la instead of -lspi.
3830 * at-spi/test/app.c: include
3831 bonobo-activation.h. Use a default appname
3832 if one is not provided.
3834 2001-08-14 Bill Haneman <bill.haneman@sun.com>
3836 * idl/Registry.idl : temporarily changed register_Application
3837 to oneway, to work around issue with initial registration
3839 * idl/Application.idl : changed attribute "id" from readonly
3840 to read-write, since it needs to be assigned by Registry.
3841 * registryd/registryd.c : added call to set application id
3843 * registryd/registry.c : changed de-registration procedure to
3844 use CORBA_Object_hash() to find matching object ref in application
3845 lists and listener lists.
3846 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
3847 began distinguishing between event types (work in progress).
3849 2001-08-13 Bill Haneman <bill.haneman@sun.com>
3852 * libspi/application.c:
3853 Added implementations for get/set id, get_toolkitName,
3855 * registryd/registryd.c :
3859 Converted from use of OAF to bonobo-activation.
3860 * libspi/desktop.h :
3861 * libspi/desktop.c :
3863 Removed references to atksimpleobject, since base atkobject
3864 implementation now provides functionality we need.
3865 * libspi/atksimpleobject.c :
3866 * libspi/atksimpleobject.h :
3871 * at-bridge/Makefile.am
3872 * at-bridge/bridge.c
3875 Added directory "bridge" and contents, and added dependencies
3876 in Makefile.am/configure.in.
3877 Initial checkin of "at-bridge".
3878 This code is a GTK_MODULE which automatically registers
3879 GTK+ apps with the accessibility registry, using an object
3880 reference to the root ATK object.
3882 2001-08-10 Mark McLoughlin <mark@skynet.ie>
3884 * po/Makefile.in.in: Remove. Again. If this
3885 doesn't get autogenerated - you need to update
3888 2001-08-07 Mark McLoughlin <mark@skynet.ie>
3890 * po/Makefile.in.in: Add. Again.
3892 2001-07-31 Bill Haneman <bill.haneman@sun.com>
3894 * libspi/accessible.c : added support for 'description' property.
3895 * libspi/accessible.c
3897 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
3898 (since the two are now equivalent in libbonobo)
3906 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
3907 Bonobo::Unknown as does Accessibility::Accessible.
3908 * idl/StreamableContent.idl : as above, and replaced internal InputStream
3909 interface with Bonobo::Stream, since it was redundant with it.
3910 (The Stream returned by a StreamableContext object is expected to
3911 implement only a subset of Bonobo::Stream)
3913 2001-07-28 Anders Carlsson <andersca@gnome.org>
3915 * libspi/accessible.c (accessible_object_finalize): Change
3916 g_free to g_object_unref since the AtkObject is a GObject.
3918 2001-07-30 Bill Haneman <bill.haneman@sun.com>
3920 * idl/Accessibility.idl: add new IDL files
3923 * idl/Action.idl: Definitions of actionable UI object
3924 * idl/Component.idl: Definitions of UI component geometry, etc.
3925 * idl/Hyperlink.idl: Defs of hyperlink behavior
3926 * idl/Image.idl: Def of accessible image
3927 * idl/Selection.idl: Definition of UI object with selectable children
3928 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
3929 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
3930 * idl/Text.idl: Interface defs for UI elements with complex textual content
3931 * idl/Value.idl: Definition of UI element that is a value controller or display
3933 2001-07-27 Michael Meeks <michael@ximian.com>
3935 * po/Makefile.in.in: remove autogenerated file from CVS.
3937 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
3940 * idl/Registry.idl: include guard.
3942 * idl/Accessibility.idl: Add, and include all the other IDL
3945 * idl/*.idl: remove mass of pragmas etc.
3947 2001-07-26 Michael Meeks <michael@ximian.com>
3949 * registryd/Makefile.am (registryd_SOURCES): remove
3952 2001-07-27 Mark McLoughlin <mark@skynet.ie>
3954 * libspi/.cvsignore, registryd/.cvsignore,
3955 test/.cvsignore: updated.
3957 * po/Makefile.in.in: gettext update.
3959 2001-07-25 Bill Haneman <bill.haneman@sun.com>
3961 * initial CVS checkin
3963 2001-06-29 Michael Meeks <michael@ximian.com>
3965 * configure.in: add AM_CONFIG_HEADER to gen config.h