1 2001-12-12 Bill Haneman <bill.haneman@sun.com>
6 * cspi/cspi-bonobo-listener.c:
7 Namespaced all methods that did not begin with an "SPI_" or
8 "Accessible" prefix to "SPI_".
11 Homogenized internal function namespace to "cspi_" for statics.
14 Patched tests to use the new CSPI API.
16 * docs/reference/cspi/at-spi-cspi-sections.txt:
17 Updated docs to reflect namespace changes, and added a number of
18 methods to the documentation.
20 * registryd/registry.c:
21 Changed use of strings and string hashes in listener event
22 matching and parse_event_string to use GQuark, which is guaranteed
25 * registryd/registry.h:
26 Squashed annoying warning.
28 * idl/Accessibility_Role.idl:
29 Extended range of available Accessibility_Role values.
31 * cspi/spi_accessible.c:
32 Re-ordered role names.
34 2001-12-12 Bill Haneman <bill.haneman@sun.com>
36 * idl/Accessibility_Value.idl:
37 Revert use of union back to CORBA_double, since the double type is
38 more efficient and can contain the other types without loss of
41 * idl/Accessibility_Accessible.idl:
42 Added method Accessibility:Accessible:getRoleName, to complement
43 Accessibility:Accessible:getRole.
45 * cspi/spi_accessible.c:
47 Added C binding for above, Accessible_getRoleName (), and changed
48 signature of Accessible_getRole () to return an AccessibleRole.
50 * cspi/spi-roletypes.h:
51 Changed AccessibleRole_getName to return a char * instead of a
52 const char *. This method is now at least temporarily deprecated
53 in favor of asking Accessibles for their RoleNames directly.
56 Revert to match Accessibility_Value.idl;
60 Change signature of AccessibleValue methods to use double rather
64 * cspi/spi_accessible.c:
65 Changed Accessible_getRole to return an AccessibleRole enum rather
66 than a UTF-8 string. The UTF-8 string can still be obtained via
67 AccessibleRole_getName ().
70 Add test_action. Small fixup to match API change to Accessible_getRole.
73 Bugfix for get_action_from_servant ().
75 2001-12-11 Michael Meeks <michael@ximian.com>
77 * libspi/libspi.h: remove registry.h and
78 desktop.h, deviceeventcontroller.h
80 * libspi/Makefile.am: remove registry.[ch],
81 desktop.[ch], deviceeventcontroller.[ch]
83 * registryd/Makefile.am: add registry.[ch],
84 desktop.[ch], rename registryd.c to registry-main.c.
85 add deviceeventcontroller.[ch]
87 2001-12-11 Bill Haneman <bill.haneman@sun.com>
90 Replace setenv() call with putenv ().
93 Bugfix in AccessibleComponent_getExtents (),
96 2001-12-11 Michael Meeks <michael@ximian.com>
98 * libspi/image.c (impl_getImageExtents): impl.
99 (spi_image_class_init): upd.
102 (AccessibleImage_getImageDescription): fix daft bug
105 * test/test-simple.c (global_listener_cb): update
106 to only quit if not --poke
107 (main): catch --poke.
108 (validate_accessible): upd. dumping, call test_image
111 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
114 * idl/Accessibility.idl: update all IDL includes.
116 * idl/*.idl - rename to namespace - this sucks, blame
117 mjs' bad decision for oafd.
119 * test/test-simple.c (create_test_window): add more tests.
120 (create_tree): split this out.
121 (validate_accessible): bugfix.
123 2001-12-11 Michael Meeks <michael@ximian.com>
125 * cspi/bonobo/cspi-bonobo-listener.c:
126 (cspi_kestroke_listener_unref),
127 (cspi_event_listener_unref): impl. undoing previous
128 homenous environment - for Bill.
130 * cspi/spi_table.c (long_seq_to_array): use
133 * cspi/spi_main.c: split out all bonoboish bits into
136 * cspi/spi-impl.h: upd. typedefs.
138 * cspi/spi_registry.c: update to lowlevel API,
139 return booleans to indicate success in some places.
141 * cspi/spi_event.c: update to lowlevel API.
143 * cspi/bonobo/Makefile.am: add.
145 * cspi/bonobo/cspi-lowlevel.h: add
147 * cspi/bonobo/cspi-bonobo.c: add
149 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
151 * cspi/Makefile.am: remove spi-listener-impl.[ch],
152 (SUBDIRS): add bonobo, link in the libs.
154 * cspi/spi-util.c: kill this file.
156 * TODO: merge in my bits.
158 2001-12-11 Michael Meeks <michael@ximian.com>
160 * test/test-simple.c (test_value, test_table, main):
161 remove unused variables causing warnings.
163 * configure.in: cleanup checks - require gail.
165 2001-12-11 Bill Haneman <bill.haneman@sun.com>
168 Changed Value interface to use SValue (scalars) rather than
169 assuming all values are floats. This allows floats, doubles,
170 longs, shorts, and unsigned values to be manipulated.
171 Introduced Accessibility:SValue union.
174 Updated to use new API above, and to work correctly with GValues
175 of different types in AtkValue.
178 Updated to use new API above. cspi's API is as yet unchanged.
181 Updated the Value revision action item.
183 2001-12-10 Bill Haneman <bill.haneman@sun.com>
185 * test/test-simple.c:
186 Added test_table (GtkTreeView widget in test window to follow).
187 Un-commented test_value, added GtkRange widget.
188 Added GtkTreeView widget with GtkListStore. It passes regression
189 test but leaks one SPI object for some reason.
192 Fixed bug in impl__set_currentValue.
194 2001-12-10 Michael Meeks <michael@ximian.com>
196 * cspi/spi_text.c: audit for exception handling,
197 tolerating NULL object references safely etc.
199 * cspi/spi_value.c: ditto.
201 * cspi/spi_table.c (AccessibleTable_getSummary),
202 (AccessibleTable_getAccessibleAt),
203 (AccessibleTable_getRowHeader),
204 (AccessibleTable_getColumnHeader),
205 (AccessibleTable_getCaption): fix bugs hidden by
207 (long_seq_to_array): impl.
208 (AccessibleTable_getSelectedRows),
209 (AccessibleTable_getSelectedColumns): use it.
211 2001-12-10 Bill Haneman <bill.haneman@sun.com>
214 Added a TODO list (rough and short for now).
216 * cspi/spi_hyperlink.c:
217 * cspi/spi_hypertext.c:
218 Fixed macro name typos, and remove use of obsolete macro in
219 AccessibleHyperlink_getLink.
222 * cspi/spi_accessible.c:
223 * cspi/spi_application.c:
224 * cspi/spi_component.c:
225 * cspi/spi_selection.c:
228 Documentation fixes (removed return values from ref/unref methods).
230 2001-12-10 Michael Meeks <michael@ximian.com>
232 * cspi/spi_action.c: audit for exception handling,
233 tolerating NULL object references safely etc.
235 * cspi/spi_accessible.c: ditto.
237 * cspi/spi_component.c: ditto.
239 * cspi/spi_editabletext.c: ditto.
241 * cspi/spi_hyperlink.c: ditto.
243 * cspi/spi_hypertext.c: ditto.
245 * cspi/spi_image.c: ditto.
247 * cspi/spi_selection.c: ditto.
249 2001-12-10 Michael Meeks <michael@ximian.com>
251 * configure.in: use cspi/libspi.pc.in instead.
253 * Makefile.am (pkgconfig_DATA): upd. to match.
255 * test/simple-at.c (report_focus_event): kill hacks around
256 bad return values, use putenv not setenv
258 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
259 fire ChildGone - I killed it.
262 (impl_accessibility_component_get_extents): remove
265 * idl/Accessible.idl: kill ChildGone exception.
267 * cspi/*.[ch]: kill int return from ref / unref.
269 * cspi/spi_main.c (cspi_object_add_check): fold into
270 (cspi_object_add): here.
272 * cspi/spi_component.c (AccessibleComponent_getExtents):
273 handle exceptions elegantly.
275 * cspi/spi-private.h (cspi_check_ev_return),
276 (cspi_return_if_fail): impl.
278 * cspi/spi_accessible.c: use extensively.
279 (AccessibleStateSet_equals): add direct compare check.
281 * cspi/spi_selection.c: tolerate NULL objs, and check
282 exceptions before return.
284 * cspi/spi-util.c (cspi_warn_ev): rename to
285 (cspi_check_ev): this & don't pass ev in; no point.
287 2001-12-10 Michael Meeks <michael@ximian.com>
289 * test/test-simple.c: use putenv not setenv
290 (get_environment_vars): more chatty if you're not using
293 * test/simple-at.c: do the setenv so more people see the
296 2001-12-10 Bill Haneman <bill.haneman@sun.com>
299 Changed check of CORBA_environment on notification to be a warning
300 instead of an error for the moment, since we can recover from this
301 error when caused by a queued notification from a dead app.
304 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
305 used by all current implementors of AtkValue), and coerce to
306 CORBA_float. (Proper general case fix may require change to Value.idl).
308 2001-12-09 Bill Haneman <bill.haneman@sun.com>
312 * cspi/spi_accessible.c:
313 Documentation fixes: added user_data params to documentation for
314 listeners and callbacks.
316 * cspi/spi_accessible.c:
317 Changed AccessibleStateSet_compare to return a
318 StateSet rather than return the difference set into a third parameter.
321 2001-12-09 Bill Haneman <bill.haneman@sun.com>
324 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
325 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
329 Remove subdirectory po from SUBDIRS for now.
331 * at-bridge/bridge.c:
332 Beefed up a couple of debug printouts.
333 One-line fix for signal notification name formatting.
335 * libspi/accessible.c:
336 Added assertion to spi_accessible_new ().
338 * libspi/application.c:
339 Put #ifdef qualifiers around a printf.
342 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
344 * registryd/Makefile.am:
346 Replaces use of XML_I18N_MERGE_SERVER_RULE with
347 INTLTOOL_SERVER_RULE macro.
350 Added an event listener for several ATK signals, for
351 testing and debugging. Removed a few g_warnings.
352 Added test output if focussed item implements the Value interface.
354 * test/test-simple.c:
355 Added test_value () function (known not to pass at the moment, so
356 not actually called yet.
358 2001-12-08 Michael Meeks <michael@ximian.com>
360 * at-bridge/bridge.c (bridge_focus_tracker),
361 (emit_eventv): fix the same ref. leak.
362 (register_atk_event_listeners): don't leak.
364 * cspi/spi-listener-impl.c (cspi_event): more
365 protection from client code.
367 * test/test-simple.c (test_desktop): unref the app.
369 * test/Makefile.am: upd. TESTS.
371 * at-bridge/bridge.c (bridge_exit_func): release the registry.
373 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
375 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
377 * cspi/spi_registry.c: constify in strings.
378 (deregisterGlobalEventListenerAll): don't release the ref.
380 * cspi/spi.h: start removing redundant / conflicting
381 gtkdoc comments, making the API readable at a glance :-)
383 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
385 * test/keysynth-demo.c (keysynth_exit, main): upd.
387 * test/simple-at.c (main, simple_at_exit): upd.
389 * test/test-simple.c (unutterable_horror): kill.
390 (utterable_normal_derefs): kill.
391 (main): upd & do a setenv before gtk_init, so that we
392 can use memprof - and to save the pain of remembering
393 this, if we're running under memprof - don't exit.
395 * cspi/spi_main.c (SPI_exit): return exit status
397 (SPI_event_quit): impl.
398 (SPI_event_main): simplify.
399 (cspi_is_gnome_app): kill.
400 (SPI_init): kill isGNOMEapp arg.
402 * at-bridge/bridge.c (register_atk_event_listeners):
403 re-instate the unref.
404 (bridge_exit_func): don't re-activate the registry,
405 protect vs. theoretical re-entry, use the
406 AT_BRIDGE_SHUTDOWN env. var to determine whether to
407 assert a clean shutdown - for regression tests.
409 2001-12-08 Abel Cheung <maddog@linux.org.hk>
411 * configure.in: Comment out dummy i18n support for now,
412 otherwise it fails to build.
413 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
414 EXTRA_DIST. They are missing in tarball.
416 2001-12-07 Michael Meeks <michael@ximian.com>
418 * util/magnifier.c: kill bonobo activation reg. race.
421 (impl_accessibility_component_get_extents): make it match
424 * libspi/registry.c (_registry_notify_listeners):
425 re-remove X headers & reconcile conflicts.
426 (spi_listener_struct_free): bad conflict resolve.
427 (impl_accessibility_registry_register_application):
428 more bad merging fixed.
429 (impl_accessibility_registry_deregister_application): ditto.
430 (spi_registry_new): ditto.
431 (spi_registry_init): don't have an applications field.
433 [ merge fixups2 branch to here ]
434 2001-12-07 Michael Meeks <michael@ximian.com>
436 * test/simple-at.c (report_focus_event),
437 (report_focussed_accessible): remove g_warning debug.
439 2001-12-07 Michael Meeks <michael@ximian.com>
441 * test/test-simple.c (validate_tree): comment out some checks.
442 (test_desktop): app now not registered idly - horay.
444 2001-12-07 Michael Meeks <michael@ximian.com>
446 * cspi/spi_registry.c
447 (registerAccessibleKeystrokeListener): clean, stop it leaking
448 great swathes of memory, and device event controller references.
449 ensure we always pass valid sequences.
450 (deregisterAccessibleKeystrokeListener): ditto.
451 (generateKeyEvent): upd.
453 * at-bridge/bridge.c (bridge_key_listener): handle
454 registry dead exception gracefully.
455 (bridge_focus_tracker, emit_eventv): free ev.
457 * test/simple-at.c (report_focus_event): fix polarity.
459 * libspi/application.c (notify_listeners): kill the ev
460 argument, and make sure we init the ev we use.
461 (spi_application_object_event_listener): split out a chunk
462 (get_atk_object_ref): here & fixup.
463 (reverse_lookup_name_for_toolkit_event): make const.
464 (spi_application_toolkit_event_listener): fixup, kill leaks
467 * at-bridge/bridge.c (register_atk_event_listeners):
468 don't unref the noop object - causes grief.
470 * libspi/registry.c: remove the X headers.
471 turn off the debug churn.
473 * libspi/accessible.c (spi_accessible_new_return): only
474 release the ref if we are supposed to [doh]
476 * test/simple-at.c (report_button_press, report_focus_event):
477 guard vs. unexpected exit.
479 * at-bridge/bridge.c (gtk_module_init): prune printf.
480 (bridge_exit_func): fix app unref.
482 * libspi/Makefile.am: don't install registry or desktop.h
484 * libspi/*.h: update includes.
486 * libspi/application.h: don't include ourself, or
487 other redundant headers.
489 2001-12-06 Michael Meeks <michael@ximian.com>
491 * libspi/accessible.c
492 (get_accessible_from_servant): impl.
493 Upd. all CORBA impl.s to use it killing cut and paste.
495 * cspi/spi_main.c (cspi_cleanup): guard vs. double
497 (SPI_init): register atexit cleanup handler here.
499 2001-12-06 Michael Meeks <michael@ximian.com>
501 * at-bridge/bridge.c (gtk_module_init): g_error on
504 2001-12-06 Michael Meeks <michael@ximian.com>
506 * at-bridge/bridge.c (gtk_module_init): some sort of
507 confusing merge clash - reverted.
508 (bridge_idle_init): ditto.
510 * test/test-simple.c (main, utterable_normal_derefs):
511 merge from Bill - somehow not committed.
513 2001-12-06 Michael Meeks <michael@ximian.com>
515 * libspi/value.c (spi_value_class_init): upd.
516 (spi_value_finalize): kill.
518 * libspi/table.c (spi_table_finalize): kill.
519 (spi_table_interface_new): upd.
520 (spi_table_class_init): upd.
521 (get_table_from_servant): impl.
522 Upd. all CORBA impl.s to use it killing yet more cut and paste.
524 * libspi/selection.c (spi_selection_finalize): kill.
525 (spi_selection_interface_new): upd.
526 (spi_selection_class_init): upd.
527 (get_selection_from_servant): impl.
528 Upd. all CORBA impl.s to use it killing yet more cut and paste.
530 * libspi/relation.c (spi_relation_finalize): kill.
531 (spi_relation_class_init, spi_relation_new): upd
533 * libspi/image.c (spi_image_finalize): kill.
534 (spi_image_class_init): upd.
535 (spi_image_interface_new): upd.
536 (get_image_from_servant): impl.
537 Upd. all CORBA impl.s to use it killing yet more cut and paste.
539 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
540 (spi_hyperlink_finalize): kill.
541 (spi_hyperlink_new): upd.
542 (get_hyperlink_from_servant): impl.
543 Upd. all CORBA impl.s to use it killing yet more cut and paste.
545 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
546 (spi_hypertext_finalize): kill.
547 (spi_hypertext_class_init): upd.
548 (get_hypertext_from_servant): impl.
549 Upd. all CORBA impl.s to use it killing yet more cut and paste.
551 * libspi/editabletext.c (spi_editable_text_finalize): kill.
552 (spi_editable_text_interface_new): upd.
553 (get_editable_text_from_servant): impl.
554 Upd. all CORBA impl.s to use it killing yet more cut and paste.
556 * libspi/text.c (get_text_from_servant): impl.
557 All impls - update to use it killing more cut and paste,
558 also fix bad string returns on duff args ( a somewhat
559 impossible case to handle - but hey ).
560 (spi_text_construct): impl.
561 (spi_text_interface_new): upd.
562 (spi_text_object_finalize): kill.
565 (accessibility_component_object_finalize): kill.
566 (spi_component_class_init): upd.
567 (get_component_from_servant): impl. helper to kill cut & paste.
568 (impl_accessibility_component_contains):
569 (impl_accessibility_component_get_accessible_at_point):
570 (impl_accessibility_component_get_position):
571 (impl_accessibility_component_get_extents):
572 (impl_accessibility_component_get_mdi_z_order):
573 (impl_accessibility_component_get_layer):
574 (spi_component_interface_new): upd.
576 * libspi/action.c (spi_action_finalize): kill.
577 (spi_action_class_init): upd. inherit from SpiObject.
578 (spi_action_interface_new): upd.
579 (get_action_from_servant): impl. helper to reduce cut & paste.
580 (impl_getKeyBinding, impl_getName, impl_doAction),
581 (impl_getDescription): Use it everywhere.
583 * cspi/spi_main.c (get_live_refs): a pointer hash.
584 (spi_object_hash, spi_object_equal): comment out.
585 There are issues with CORBA object hashing that need
588 * libspi/application.c (spi_application_init),
589 (spi_application_new): upd.
591 * libspi/accessible.c (spi_accessible_object_finalize): kill.
592 (spi_accessible_class_init): upd.
593 s/accessible/object/ in epv methods.
595 2001-12-05 Bill Haneman <bill.haneman@sun.com>
597 * at-bridge/bridge.c:
598 Reorder the bridge initialization into the bridge gtk_module_init,
599 an immediate call to bridge_register_app, and an idle_add for
600 register_atk_event_listeners (the only code that *must* wait until
601 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
602 the activation, creates the application's Accessible object, and
603 queues the bridge_idle_init function. Restored call to
604 Accessibility_Registry_deregisterApplication().
605 Prior to making this call we obtain a new reference to the
606 registry, which is a temporary hack that helps us handle apps that
607 shut down the bonobo mainloop before we get there.
610 Fix string leakage in debug block, and don't segv if a an app
611 dies before its event notifications have been propagated.
614 Modify cspi_check_ev() to call g_warning() rather than g_error(),
615 as stopgap measure until we get proper exception handling when
616 objects die during or before interrogation.
620 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
621 Also changed default value of is_gnome_app to TRUE.
624 * test/keysynth-demo.c:
625 Changed use of SPI_init and SPI_event_main to reflect API change above.
628 Made report_focus_event check the warning value from getName
629 before reporting on focussed accessible; simplifies handling of
630 notifications from dead objects.
632 * test/test-simple.c: (Changes not in this patch since source is
635 2001-12-05 Michael Meeks <michael@ximian.com>
637 * registryd/registryd.c (main): protect against
638 bonobo-activation startup race condition.
640 * cspi/spi_main.c (cspi_object_add_check): cope
641 with the exception elegantly.
643 * idl/Accessible.idl: decl. ChildGone
645 * libspi/desktop.c (spi_desktop_dispose): impl.
646 (spi_desktop_class_init): upd.
647 (spi_desktop_add_application),
648 (spi_desktop_remove_application),
649 (abnormal_application_termination): impl.
650 (impl_desktop_get_child_at_index): re-impl.
653 (impl_accessibility_registry_deregister_application),
654 (impl_accessibility_registry_register_application):
655 kill excessive debug clutter.
657 * test/test-simple.c (test_misc): test some NULL
658 tolerance. (main): upd.
660 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
661 implements no interfaces - so let's not crash.
663 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
665 * libspi/accessible.c (spi_accessible_new_return): impl.
666 helper to calm the cut and paste, to cope with
667 NULL AtkObjects effectively and efficiently, and to kill
668 the referencing bugs.
670 * libspi/table.c (impl_getAccessibleAt),
671 (impl_getRowHeader, impl_getColumnHeader): upd.
673 * libspi/hyperlink.c (impl_getObject): upd.
675 * libspi/accessible.c
676 (impl_accessibility_accessible_get_child_at_index): upd.
679 (impl_accessibility_component_get_accessible_at_point): upd.
681 * test/test-simple.c (test_editable_text, test_text): impl.
684 * cspi/spi_editabletext.c
685 (AccessibleEditableText_insertText): constify.
687 * test/test-simple.c (focus_me): make more robust.
689 * libspi/accessible.c: remove some printfs in methods that
690 we test and work fine, so we can get a clean tree dump.
692 * test/test-simple.c (validate_accessible),
693 (validate_tree): make tree dumping pretty too.
695 * at-bridge/bridge.c (bridge_signal_listener): upd. so
696 it builds without debug on.
698 * test/test-simple.c (validate_accessible): fix the most
701 * cspi/spi_main.c (spi_object_release): leave the nicely
702 blanked memory around if in debug mode.
704 * cspi/spi-listener-impl.c (cspi_event): use add_check.
706 [committed to fixups2]
707 2001-12-05 Michael Meeks <michael@ximian.com>
709 * libspi/editabletext.c
710 (spi_editable_text_class_init): g_type_class_peek_parent,
711 not interface peek - so we finalize cleanly.
713 * libspi/accessible.c (spi_accessible_new): kill debug.
715 * test/test-simple.c (validate_accessible): fix ref.
716 leak, print strings before freeing them; sigh, comment a
717 chunk out due to strangeness.
718 (validate_tree): unref the child after use.
720 * cspi/spi_component.c (AccessibleComponent_getLayer):
721 add missing break statement, switch on zlayer not the
722 uninitialized retval.
724 * cspi/spi_main.c (cspi_object_add): add assert, local ref
725 before (possibly re-entering) remote unref.
727 * test/simple-at.c (main): unref the desktop.
729 * cspi/spi_accessible.c (cspi_accessible_is_a): move
732 * cspi/spi_main.c (cspi_accessible_is_a): here to
733 isolate bonobo API usage more.
735 * libspi/registry.c (impl_accessibility_registry_register_application):
738 2001-12-04 Michael Meeks <michael@ximian.com>
740 * test/test-simple.c (validate_tree): upd.
741 IndexInParent check to make it more lucid.
742 (validate_accessible): dump the tree.
744 * libspi/accessible.c (de_register_public_ref),
745 (get_public_refs): impl.
746 (spi_accessible_new): make more efficient & intuitive.
747 Now IndexInParent check works.
749 2001-12-04 Michael Meeks <michael@ximian.com>
751 * cspi/spi-util.h: remove.
753 * cspi/spi.h: move SPI_freeString here
755 * libspi/component.c (impl_accessibility_component_get_layer):
757 (impl_accessibility_component_get_mdi_z_order): ditto,
758 return -1 on error - is this ok ?
760 * test/test-simple.c (test_application): impl.
762 * cspi/spi_accessible.c (Accessible_getApplication),
763 (Accessible_isApplication): impl.
765 * libspi/registry.c (spi_listener_struct_free): release
766 the CORBA reference too.
768 * libspi/accessible.c
769 (impl_accessibility_accessible_get_parent): fix ref leak.
771 * libspi/registry.c (spi_registry_new): make the registry
772 immortal - we don't want it to go away ever.
774 * libspi/application.c
775 (spi_accessible_application_finalize): impl. cleanup.
777 * cspi/spi_registry.c
778 (deregisterGlobalEventListenerAll),
779 (deregisterGlobalEventListener),
780 (deregisterAccessibleKeystrokeListener): fix ref leak.
782 * cspi/spi_main.c (SPI_init): remove redundant ref.
784 * test/test-simple.c (unutterable_horror): impl. to force a
789 (impl_accessibility_registry_deregister_application): release
790 the application when we de-register it.
792 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
793 until we have the infastructure to get it right.
795 2001-12-03 Michael Meeks <michael@ximian.com>
797 * libspi/Makefile.am: only build eventlistener.[ch]
799 * libspi/accessible.c
800 (impl_accessibility_accessible_get_child_at_index): don't leak.
802 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
803 before we hit the idle handler.
805 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
808 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
810 * libspi/listener.c (impl_notify_event): check source
811 not NIL before unref.
813 * libspi/registry.c (impl_registry_notify_event): ditto.
815 * libspi/eventlistener.c
816 (impl_accessible_event_notify_event): unref the source.
818 * libspi/accessibleeventlistener.c
819 (impl_accessible_event_notify_event): unref the source.
821 * idl/Event.idl: remove 'hash_id' attribute - of no
824 * libspi/application.c (notify_listeners): upd list
826 (spi_application_object_event_listener),
827 (spi_application_toolkit_event_listener): upd to do correct
831 (_registry_notify_listeners): update.
832 (parse_event_type): this method also leaks like a sieve.
833 (impl_accessibility_registry_deregister_global_event_listener):
834 fix ETYPE_WINDOW case.
836 * libspi/application.c
837 (impl_accessibility_application_register_object_event_listener):
840 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
842 * libspi/hypertext.c (impl_getLink): ditto.
844 * cspi/spi_main.c (cspi_object_add): remove
845 bogus CORBA_Object_duplicate.
847 * cspi/spi-listener-impl.c (cspi_event): dup/ref
850 * cspi/spi_accessible.c
851 (Accessible_getRelationSet): fix leak / referencing issue.
853 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
854 (cspi_object_add, cspi_object_unref): upd.
855 (spi_object_release, get_live_refs): impl.
856 (cspi_cleanup): simplify.
858 * *.[ch]: s/boolean/SpiBoolean/
860 * cspi/spi_accessible.c (role_names): actualy order so it
861 corresponds with the enum !
863 * test/test-simple.c (test_roles): check some role strings
864 vs. enums to detect offset errors.
866 2001-12-01 Michael Meeks <michael@ximian.com>
868 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
870 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
872 (Accessible_getChildAtIndex): use cspi_add_check so we
873 check the ev before using a (possibly) invalid value.
875 * libspi/accessible.c
876 (impl_accessibility_accessible_get_parent): don't segv
879 * at-bridge/bridge.c (gtk_module_init): upd.
880 (bridge_property_event_listener): don't leak strings
882 (bridge_state_event_listener),
883 (bridge_property_event_listener): don't use a static
884 buffer in case of recursive event emission &
885 re-enterancy - split out the swathe of cut and paste
887 (emit_eventv): and fix 2 ref leaks here & comply to the
889 (bridge_register_app): rename to
890 (bridge_idle_init): this and kill arg parsing, split
891 various inits & bonobo-activation registration to module
892 init time, kill referencing error.
893 (bridge_exit_func): fix the same leak.
894 (bridge_focus_tracker): don't leak event structures
896 (bridge_signal_listener): more leakage and cut & paste
898 (bridge_key_listener): return the result - FIXME is
899 this polarity correct ?
900 (accessibility_keystroke_from_atk_key_event): rename
901 (accessibility_init_keystroke_from_atk_key_event): and stop
903 (gtk_module_init): return a value - not that it is checked by
905 (bridge_key_listener): register my horror at casting between
907 (bridge_get_registry): kill - not used.
909 * cspi/spi_accessible.c (Accessible_getRole): make return const.
911 * test/test-simple.c (test_roles): impl.
912 (test_desktop, validate_accessible, validate_tree): impl.
914 * cspi/spi_accessible.c (role_names): fixup bogus
915 MAX_ROLES setup, make constants const for efficient linkage
916 (AccessibleRole_getName): conform to coding style, make
919 2001-11-30 Michael Meeks <michael@ximian.com>
921 * cspi/spi.h: add missing prototype.
923 * libspi/registry.c (spi_listener_struct_new): fix sig.
925 * test/Makefile.am: add test-simple
927 * test/test-simple.c: add
931 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
933 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
934 do it straight - since otherwise we often get an activation race.
936 [ work before Bill duplicated a chunk of it ... ]
937 2001-11-30 Michael Meeks <michael@ximian.com>
939 * libspi/keystrokelistener.c
940 (spi_keystroke_listener_class_init): fixup arg
943 * libspi/eventlistener.c
944 (spi_event_listener_class_init): ditto.
946 * tests/test.sh: add.
948 * cspi/spi-listener-impl.h: update macros.
950 * cspi/spi-listener-impl.c
951 (cspi_event_listener_remove_callback): add
952 correct pre-conditions.
954 * cspi/spi_main.c (SPI_exit): guard vs. double
955 exits, exit the mainloop nicely.
956 (SPI_event_main): make more sense.
957 (SPI_init): move the atexit evilness here so we
959 (SPI_event_main): upd.
961 * test/simple-at.c: update for listener changes.
963 * registryd/registryd.c (main): prune kruft.
965 * libspi/libspi.h: upd.
967 * libspi/eventlistener.[ch]: rename broken macros.
969 * libspi/accessibleeventlistener.[ch]: remove.
971 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
973 * test/test-simple.c: Add - automated tests.
975 * cspi/spi-listener-impl.c (cspi_event),
976 (cspi_key_event): add user_data to invoke.
977 (cspi_keystroke_listener_finalize): impl.
978 (cspi_keystroke_listener_class_init): upd.
981 (createAccessibleEventListener),
982 (AccessibleEventListener_addCallback),
983 (createAccessibleKeystrokeListener),
984 (AccessibleKeystrokeListener_addCallback): upd.
986 * libspi/deviceeventcontroller.c
987 (spi_device_event_controller_check_key_event): add public proto.
990 (impl_accessibility_registry_deregister_global_event_listener):
991 always init listeners.
992 (_registry_notify_listeners): yes it is.
994 * cspi/spi-listener-impl.c (cspi_key_event):
996 (cspi_event_listener_finalize): impl.
997 (cspi_event_listener_class_init): hook up.
998 (event_handler_new, event_handler_free),
999 (event_list_remove_by_callback): impl.
1000 (cspi_event_listener_remove_callback),
1001 (cspi_keystroke_listener_remove_callback),
1002 (cspi_keystroke_listener_add_callback),
1003 (cspi_event_listener_add_callback): upd.
1005 * libspi/keystrokelistener.c
1006 (keystroke_listener_object_finalize): kill
1007 (spi_keystroke_listener_class_init): upd.
1008 (spi_keystroke_listener_add_callback),
1009 (spi_keystroke_listener_remove_callback): kill,
1011 (impl_key_event): prune drasticaly.
1013 * libspi/eventlistener.c
1014 (spi_event_listener_add_callback),
1015 (spi_event_listener_remove_callback): kill, use
1017 (impl_accessible_event_notify_event): upd.
1018 (spi_event_listener_object_finalize): remove.
1020 * libspi/Makefile.am: use eventlistener.[ch]
1022 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1024 * libspi/registry.c (_registry_notify_listeners):
1025 Changed listener loop iteration to use preferred convention.
1026 Got rid of string memory leaks caused be calling g_strconcat
1027 inside function calls.
1029 * libspi/registry.c (parse_event_type):
1030 Stopped g_strconcat memory leaks, free the g_strsplit return,
1031 g_strdup the split pieces when used, etc.
1033 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1036 Change method 'compare' to return a 'difference set' rather than
1037 taking a StateSet as an out parameter (more Java-friendly).
1039 * idl/Accessible.idl:
1040 Added CORBA struct 'BoundingBox', to faciliate API changes below:
1042 * idl/Component.idl:
1044 Changed methods 'getExtents' and 'getImageExtents' in these
1045 interfaces to return a BoundingBox structure.
1046 (getPosition and getSize are redundant and possibly should be
1047 removed, rather than creating a corresponding Point struct.)
1049 * cspi/spi_component.c:
1050 Modify implementation of getExtents to reflect the above IDL
1055 Add (missing) AccessibleImage_getExtents () API.
1057 * docs/reference/cspi/at-spi-cspi-sections.txt:
1058 Added AccessibleImage_getImageExtents () to docs.
1060 2001-12-03 Bill Haneman <bill.haneman@sun.com>
1062 * idl/Component.idl:
1063 Added two methods, getLayer () and getMDIZOrder (), to reflect
1064 the new ATK methods atk_object_get_layer and
1065 atk_object_get_mdi_z_order. (Which arguably should be part of the
1066 AtkComponent API and AtkObject). Also added an enum,
1067 ComponentLayer, for the first method's return value.
1069 * libspi/component.c:
1070 Added implementations for these methods.
1072 * cspi/spi_component.c:
1074 Added cspi binding methods for above,
1075 AccessibleComponent_getLayer() and
1076 AccessibleComponent_getMDIZOrder().
1077 Added cspi enum 'AccessibleComponentLayer'.
1079 * docs/reference/cspi/at-spi-cspi-sections.txt:
1080 Added above methods to docs.
1084 Changed typedef for 'boolean' type (and all references to it) to
1085 SPIBoolean, to avoid keyword clashes with C++.
1088 Changed usages of 'boolean' to SPIBoolean.
1090 * test/keysynth-demo.c:
1091 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
1092 app), except where SPIBoolean is required by the callbacks API.
1094 2001-12-02 Bill Haneman <bill.haneman@sun.com>
1096 * cspi/spi_registry.c:
1097 Removed obsolete X event loop for passive keygrabs (which now
1100 * registryd/registryd.c:
1101 Removed unnecessary call to gdk_init() [cruft]. This also allows
1102 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
1105 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1107 * docs/reference/cspi:
1108 Included docs for SPI_freeString in generated documentation.
1111 Renamed spi_freeString to SPI_freeString, for consistency. Added
1112 documentation for this function.
1115 Renamed spi_freeString to SPI_freeString, for consistency.
1116 Removed obsolete method declaration string_from_corba_string.
1118 * test/keysynth-demo.c:
1119 Small tweak to comments.
1122 Stopped leaking the strings returned from CSPI.
1124 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1126 Merged Michael's branch (see his ChangeLog entries below).
1128 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
1129 bridge is alive, release on exit.
1131 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
1132 Fix type check macro.
1135 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
1138 Added is_gnome_app static, and method cspi_is_gnome_app(),
1139 so we can call the appropriate shutdown routine at exit in SPI_exit.
1141 * cspi/spi_main.c (cspi_object_ref):
1142 Duplicate the corba object passed in, since we're keeping it around.
1144 * cspi/SPI_exit.c, cspi_cleanup:
1145 Moved the releasing of the live refs to its own function, so we
1146 can put it in g_atexit (). Call the appropriate shutdown API
1147 depending on whethe calling client is a gnome app or not
1148 (bonobo_main_quit or CORBA_ORB_shutdown).
1150 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
1151 Unref the listener when this method is called, after
1152 deregistration. Updated the API docs to note this behavior.
1154 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
1155 Bugfixes: Ref the bonobo object when returning a parent or child
1156 reference, or an AccessibleRelation. Generally made sure
1157 BonoboObject refcount is incremented whenever we return an
1160 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
1161 Fixed typo/bug in signal declaration.
1163 * libspi/accessibleeventlistener.h:
1166 * libspi/application.c (spi_application_new):
1167 Fixed leak in initialization.
1170 Remembered to increment bonobo-object refcount when returning
1171 children (applications) from desktop object.
1172 Added (empty) finalize method.
1174 * libspi/deviceeventcontroller.c:
1175 Hold a ref to listeners inside DEControllerKeyListeners.
1176 Added dec_key_listener_free() method. Use prepend instead of
1177 append in key_listener list. Fixed some refcount madness and
1178 leaks in the listener registration/deregistration - deregistration
1179 now calls dec_key_listener_free() on listeners, and on the
1180 temporarily constructed dec_key_listener() used to perform the search/match.
1182 * libspi/hypertext.c (spi_hypertest_finalize):
1183 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
1184 class. Also fixed spi_hypertext_interface_new() and
1185 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
1187 * libspi/hypertext.h:
1188 Removed pointless and duplicate AtkObject pointer from
1191 * libspi/keystrokelistener.c:
1192 Fixed incorrect type of keystroke_listener_parent_class,
1193 renamed keystroke_listener_object_finalize to
1194 spi_keystroke_listener_object_finalize.
1195 Fixed typo in signal declaration
1196 (spi_keystroke_listener_class_init).
1198 * libspi/registry.c:
1199 Added funcsions spi_listener_struct_new() and
1200 spi_listener_struct_free() to help with memory management issues.
1201 We also now use these methods instead of gnew + poking stuff into
1202 the struct, and to decrement listener counts/free the listeners
1203 when deregistering them.
1204 Fix more refcount bugs in getDesktop() and
1205 getDeviceEventController().
1208 De-ref the desktop after enumerating the applications. Explicitly
1209 decrement the refcounts on the created listeners on exit (using
1210 _unref for keystroke listeners, and via the
1211 deregisterGlobalEventListenerAll command for other event
1214 2001-11-27 Michael Meeks <michael@ximian.com>
1216 * cspi/spi-listener.h: fixup enum.
1218 2001-11-27 Michael Meeks <michael@ximian.com>
1220 * cspi/spi-listener-impl.c (cspi_event_listener_new),
1221 (cspi_keystroke_listener_new): Use the cspi variants.
1223 2001-11-26 Michael Meeks <michael@ximian.com>
1225 * test/keysynth-demo.c: fix 2 compile warnings, missing
1228 * test/simple-at.c (report_focussed_accessible),
1229 (report_focus_event, report_button_press),
1230 (check_property_change, is_command_key),
1231 (report_ordinary_key_event, report_command_key_event): upd.
1233 * util/mag_client.h: include pre-requisites.
1235 * libspi/accessibleeventlistener.c
1236 (spi_event_listener_object_finalize): free any lingering
1239 * libspi/keystrokelistener.c
1240 (keystroke_listener_object_finalize): ditto.
1242 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
1243 callbacks, with cspi types.
1245 * cspi/spi_event.c (createAccessibleEventListener): chain to
1246 (AccessibleEventListener_addCallback): here.
1247 (createAccessibleKeystrokeListener): chain to
1248 (AccessibleKeystrokeListener_addCallback): here.
1250 * libspi/keystrokelistener.c
1251 (spi_keystroke_listener_class_init): add signal.
1252 (impl_key_event): emit the event.
1253 (boolean_handled_accumulator): impl.
1254 (marshal_BOOLEAN__POINTER): add, gack.
1256 * libspi/accessibleeventlistener.c
1257 (spi_event_listener_class_init): add signal.
1258 (impl_accessible_event_notify_event): emit the signal &
1259 make the loop efficient.
1260 (spi_event_listener_add_callback): prepend the callback.
1262 * libspi/accessibleeventlistener.h: add an 'event' signal,
1263 decl type on callback.
1265 * libspi/keystrokelistener.h: ditto.
1267 * cspi/spi-listener.h: make methods typesafe and
1268 make them use the new event typedefs.
1270 * test/simple-at.c (report_focussed_accessible):
1271 include mag_client.h
1272 Use *(void *)text_interface not the other thing.
1274 * configure.in: add gtk to registryd bits - since we use
1277 * util/magnifier.c: include libbonobo.h
1279 2001-11-25 Bill Haneman <bill.haneman@sun.com>
1281 * test/keysynth-demo.c:
1282 Turned this into a simple scanning keyboard, to demonstrate the
1283 use of g_timeout_add () as a means of creating timers for
1284 scanning, and the use of GtkStyle for visually indicating when
1285 virtual keyboard elements are selected.
1287 keysynth-demo now listens to any keyboard keys with zero-valued
1288 keycodes (i.e. 'unused' keys) and interprets them as
1291 Reworked the shiftlatch code so that shift-down state isn't held
1292 for long periods (it's only synthesized immediately prior to
1293 the keysynth event it's modifying). Note that shiftlatch in this
1294 demo is a convenience, not intended to take the place of AccessX
1295 which is the better choice for getting 'sticky' modifier keys.
1297 * libspi/deviceeventcontroller.c:
1298 * at-bridge/bridge.c:
1299 * cspi/spi_registry.c:
1300 Removed some debug print stuff, and put other verbosity in #ifdef
1305 Implemented some more of the magnifier IDL for the simple
1306 magnifier: namely, getZoomRegionParams.
1307 Added mag_x and mag_y members to MagnifierData struct, aid of this
1309 Added GtkWindow::realize signal handler to magnifier, to keep it
1310 from receiving keyboard focus from the WM.
1312 2001-11-23 Mark McLoughlin <mark@skynet.ie>
1314 * cspi/spi-private.h: my guess at what michael forgot
1315 before he ran off to NZ :-)
1317 2001-11-23 Michael Meeks <michael@ximian.com>
1319 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
1320 comment out non existant method invoke so we link.
1322 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
1323 use bonobo_exception_get_text for more friendly warnings.
1325 * cspi/spi.c (Obj_Add): move into spi_main & rename
1326 spi_object_add; kill spi.c
1328 * cspi/spi_registry.c
1329 (deregisterGlobalEventListener),
1330 (deregisterGlobalEventListenerAll),
1331 (registerGlobalEventListener): fix exception leaks.
1333 * cspi/spi_main.c (spi_exception): impl. helper, so we
1334 don't leak exceptions.
1336 * cspi/spi_selection.c
1337 (AccessibleSelection_deselectSelectedChild): return the
1340 * cspi/spi_main.c (spi_ev): impl; hack - gack.
1341 (spi_registry): ditto.
1342 (SPI_init): guard against double inits.
1344 * cspi/*.c: use spi_ev (), and spi_registry () where
1345 appropriate - a temporary hack until we have something
1346 better. Use spi_object_add
1348 2001-11-22 Michael Meeks <michael@ximian.com>
1350 * cspi/Makefile.am: re organise, install the headers.
1352 * cspi/*.h: add G_BEGIN/END_DECLS
1354 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1357 Added non-preemptive keylistener for key events with no modifiers
1358 and shift-only modifier.
1360 * libspi/keystrokelistener.c:
1361 Removed some verbose diagnostics printout.
1363 * cspi/spi_registry.c:
1364 Fixed a bug that caused all key listeners to be registered as
1367 * libspi/deviceeventcontroller.c:
1368 Fixed bug that caused XGrabKey (preemptive key grab) to be called
1369 for non-preemptive key masks.
1372 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1374 * docs/reference/idl/at-spi-idl-docs.sgml:
1375 * docs/reference/idl/at-spi-idl-sections.txt:
1376 * docs/reference/idl/at-spi-idl-overrides.txt:
1377 Added missing files.
1379 * docs/reference/Makefile.am:
1380 removed idl from SUBDIRS until we can figure a way to get gtk-doc
1381 to scan the IDL files :-(
1386 Added .cvsignore files.
1388 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1390 * libspi/deviceeventcontroller.c:
1391 * libspi/keystrokelistener.c:
1393 * cspi/spi_registry.c:
1394 Added filters for KeySets, KeyEventSeq, and event types to key
1395 event dispatching, so listeners should only receive those events
1396 that they requested :-)
1398 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1403 * docs/reference:Makefile.am:
1404 * docs/reference/cspi:
1405 * docs/reference/cspi:Makefile.am:
1406 * docs/reference/cspi:tmpl:
1407 * docs/reference/cspi:tmpl:*.sgml:
1408 * docs/reference/idl:
1409 * docs/reference/idl:Makefile.am:
1410 * docs/reference/idl:at-spi-idl-sections.txt:
1411 * docs/reference/idl:at-spi-idl-docs.sgml:
1412 * docs/reference/idl:tmpl:
1413 * docs/reference/idl:tmpl:*.sgml:
1415 Restructured docs directory to allow separate 'reference' docs
1416 section, and forked idl and cspi docs. Added the sgml template
1417 files to CVS. Added the first sections/structural sgml for the
1420 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
1422 * configure.in, libspi/Makefile.am: find libXtst.
1424 2001-11-21 Michael Meeks <michael@ximian.com>
1426 * test/accessx-gui.c: s/spi_value/value/ - doh.
1428 * libspi/base.[ch]: add.
1430 2001-18-11 Bill Haneman <bill.haneman@sun.com>
1432 * idl/Accessible.idl:
1433 * idl/Application.idl:
1436 Started gtk-doc cleanup on IDL.
1438 * libspi/deviceeventcontroller.c:
1439 Added and connected non-preemptive key notification from the
1440 toolkits (in addition to the pre-emptive support from XServer
1441 which we had before, but which causes 'focus flashing'). Filters
1442 are presently limited to key modifiers and global/non-global,
1443 KeySets are presently ignored, as are KeyEvent masks.
1445 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
1446 structs into the persistant structure rather than just storing
1447 pointers to things that might not persist across servant
1450 The XGrabKey call now does async keygrabs, because synchronous
1451 ones were deadlocking with GDK_event code in a very nasty way.
1453 Added boolean to internal method notify_keylisteners, to indicate
1454 whether the event came from the 'toolkit source' or the 'global
1455 (XServer) source' - this is used in the notification process to
1456 determine which listeners to send the event to.
1458 deviceeventcontroller.c is now warning-free.
1460 * libspi/registry.c:
1461 Fixed regression in application de-registration.
1462 Also fixed some really brain-dead weirdness having to do with
1463 event dispatching - event structs are now duplicated before being
1464 re-marshalled in the dispatch to listeners. This also fixes a
1465 Solaris build problem.
1468 2001-20-11 Michael Meeks <michael@ximian.com>
1471 (impl_accessibility_registry_deregister_global_event_listener):
1474 * libspi/deviceeventcontroller.c
1475 (spi_device_event_controller_check_key_event): return
1476 FALSE on no virtual method.
1478 * libspi/*..h: make includes work on a correctly pathed install.
1480 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
1482 * libspi/application.h: kill unused ( and whacked out )
1483 gboolean *spi_application_set_id (AtkObject *app, long id);
1485 2001-20-11 Michael Meeks <michael@ximian.com>
1487 * libspi/*.[ch]: further convert to bonobo's type func
1488 macros, remove redundnant casts etc.
1490 * libspi/text.c s/accessibility_text/spi_text/g,
1491 re-order to de-cruft.
1493 * libspi/hypertext.c: re-order to kill a huge slew
1494 of redundant forward decls.
1496 * libspi/relation.c: ditto.
1498 * libspi/image.c: ditto.
1500 * */.cvsignore: update
1502 2001-20-11 Michael Meeks <michael@ximian.com>
1504 * libspi/deviceeventcontroller.c
1505 (_controller_register_with_devices): use g_getenv,
1506 kill stdlib.h include.
1508 * libspi/keystrokelistener.c
1509 (spi_keystroke_listener_get_type): kill
1510 (spi_keystroke_listener_class_init),
1511 (spi_keystroke_listener_init): rename to this.
1513 * libspi/text.c (impl_getAttributes): fix warning / bug.
1515 * libspi/*.[ch]: more headers, includes and over commenting.
1517 2001-20-11 Michael Meeks <michael@ximian.com>
1519 * libspi/*.[ch]: fixup headers, includes and over commenting.
1521 * libspi/image.c (impl__get_imageDescription): const
1522 correctness warning fix. remove redundant casting.
1524 * libspi/table.c (impl_getRowDescription): ditto.
1525 (impl_getColumnDescription): ditto.
1527 * libspi/libspi.h: add.
1529 2001-19-11 Michael Meeks <michael@ximian.com>
1531 * libspi/editabletext.c (impl_setAttributes): fix warnings.
1533 * libspi/component.c (accessibility_component_get_type):
1534 rename to (spi_component_get_type): and macroify.
1535 (accessibility_component_init): rename to
1536 (spi_component_init): this
1537 (accessibility_component_class_init): rename to
1538 (spi_component_class_init): this
1540 * libspi/action.c (spi_action_get_type): kill, use the macro.
1542 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
1545 * libspi/application.c (spi_application_object_event_listener),
1546 (impl_accessibility_application_register_object_event_listener):
1547 warning fixes / const understanding updates.
1549 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
1552 2001-18-11 Bill Haneman <bill.haneman@sun.com>
1554 * libspi/spi_accessible.c: Added docs and C bindings for
1555 AccessibleStateSet. (No implementations yet). Documentation
1556 coverage for C bindings now 100%. Made docs for event listeners
1561 boolean notifyListenersSync (in DeviceEventListener listener,
1562 in DeviceEvent event);
1564 oneway void notifyListenersAsync (in DeviceEventListener listener,
1565 in DeviceEvent event);
1567 Added DeviceEventListener and DeviceEvent structs (may deprecate
1568 KeyStroke and KeystrokeListener in favor of this generic
1569 event/listener framework for devices).
1571 * libspi/deviceeventcontroller.c:
1573 Changed some key listener code to take masks, etc., and paved the
1574 way for integration of toolkit/non-preemptive key events. Changed
1575 signatures of some internal methods.
1577 * at-bridge/bridge.c:
1578 Fixed regression connecting to interface signals, apparently
1579 caused by GTK+ changes.
1581 Added an internal bridge_state_listener to deal with
1582 property-change:accessible-state signals.
1584 Changed the key_listeners GList to store structs (including masks,
1585 etc.) instead of just CORBA_Objects (required for full
1586 implementation of key listener API).
1588 Connected the bridge to all currently supported Atk signals.
1589 Events now supported:
1590 object:property-change
1591 object:property-change:accessible-name
1592 object:property-change:accessible-state
1593 object:property-change:accessible-description
1594 object:property-change:accessible-parent
1595 object:property-change:accessible-value
1596 object:property-change:accessible-role
1597 object:property-change:accessible-table-caption
1598 object:property-change:accessible-table-column-description
1599 object:property-change:accessible-table-column-header
1600 object:property-change:accessible-table-row-description
1601 object:property-change:accessible-table-row-header
1602 object:property-change:accessible-table-summary
1603 object:children-changed
1604 object:visible-data-changed
1605 object:selection-changed
1606 object:text-selection-changed
1608 object:text-caret-moved
1610 object:row-reordered
1612 object:column-inserted
1613 object:column-reordered
1614 object:column-deleted
1615 object:model-changed
1617 2001-16-11 Bill Haneman <bill.haneman@sun.com>
1619 * libspi/hyperlink.c,h:
1620 Fixed some broken stuff in hyperlink.
1622 * libspi/relation.h:
1623 * libspi/relation.c:
1624 * cspi/spi_accessible.c:
1625 Initial implementations of AccessibleRelation methods, and docs.
1627 * libspi/accessible.c:
1628 Fixed a bug that caused SEGV if an accessible
1629 object's description is NULL, and a client
1630 requests it. An empty string is now returned.
1632 * cspi/spi_editabletext.c:
1633 * cspi/spi_hypertext.c:
1635 * cspi/spi_hyperlink.c:
1639 Doc coverage now 95%.
1641 2001-16-11 Bill Haneman <bill.haneman@sun.com>
1643 One last namespacing revision:
1644 * libspi/accessibleeventlistener.[ch]:
1645 Renamed SpiAccessibleEventListener to SpiEventListener,
1646 (no need for two namespaces ;-)
1648 And lots of documentation fixes:
1650 * docs/at-spi-docs.sgml:
1651 Fixed 'underscore vs. hyphen' bug that was preventing
1652 the gtk-doc API docs from being automatically generated.
1655 * cspi/spi-listener.h
1657 * cspi/spi_accessible.c
1659 * cspi/spi_application.c
1660 * cspi/spi_component.c
1661 * cspi/spi_editabletext.c
1663 * cspi/spi_hypertext.c
1665 * cspi/spi_registry.c
1666 * cspi/spi_selection.c
1670 * docs/at-spi-docs.sgml
1671 * docs/at-spi-sections.txt
1673 Added and fixed up gtk-doc documentation in cspi.
1675 Interfaces now (fully) documented (subject to revision and enhancement):
1677 Event Listener Support
1679 AccessibleApplication
1683 AccessibleEditableText
1690 AccessibleRelationSet
1695 2001-14-11 Bill Haneman <bill.haneman@sun.com>
1697 * at-bridge/bridge.c:
1698 Initial work for toolkit-level key snooper connection by bridge.
1703 New typedefs and fixes to support new namespacing, and cleaner
1704 separation of cspi bindings from libspi bonobo implementation.
1705 Removed inconsistent and extraneous Spi* namespace prefix that
1706 had crept into cspi headers.
1707 Lots of comment fixes that sed had missed.
1709 * cspi/spi-roletypes.h:
1710 * cspi/spi-statetypes.h:
1711 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
1712 to AccessibleRoleType.
1714 * libspi/accessibleeventlistener.h:
1715 Fixed minor namespacing weirdness.
1717 * libspi/deviceeventcontroller.c:
1718 Reordered some internal API for device listeners.
1719 Changed the key registry final boolean to 'is_system_global'
1720 rather than 'is_synchronous', which is more descriptive of its
1722 Added spi_device_event_controller_new().
1723 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
1725 * libspi/keystrokelistener.[ch]:
1726 Namespaced KeystrokeListener to SpiKeystrokeListener.
1727 Changed uses of keymasks to use SPI_ prefix, and did other
1730 * libspi/keymasks.h:
1731 Namespaced keymask constants with SPI_ prefix.
1733 * libspi/registry.c:
1734 Some warning fixes, and knock-on fixes from namespace changes.
1737 Added rules for accessx-gui test program.
1739 * test/accessx-gui.c:
1740 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
1741 utility. It doesn't actually use at-spi, but it's still cool and
1744 * test/keysynth-demo.c:
1748 Fixes so that these test clients work properly with the namespaced
1749 libraries. (Incompletely tested for technical reasons, fixes may follow)
1752 2001-13-11 Michael Meeks <michael@ximian.com>
1754 * libspi/application.c
1755 (impl_accessibility_application_get_version),
1756 (impl_accessibility_application_get_toolkit_name):
1758 (impl_accessibility_application_set_id),
1759 (impl_accessibility_application_get_id): remove
1760 redundant casting code.
1762 * libspi/action.c (impl_getDescription): fix warnings.
1764 * libspi/accessible.c
1765 (impl_accessibility_accessible_get_parent),
1766 (impl_accessibility_accessible_get_child_at_index),
1767 (impl_accessibility_accessible_get_state),
1768 (impl_accessibility_accessible_get_relation_set):
1769 warning fixes & include action.h
1771 2001-13-11 Michael Meeks <michael@ximian.com>
1773 * *.[ch] fix bits I screwed up:
1775 s/([^ \tb(\*\&\?\",])spi_/\1/g;
1776 s/([^ \tb(\*\&\?\",])Spi/\1/g;
1778 2001-13-11 Michael Meeks <michael@ximian.com>
1780 * *.[ch] Namespace libspi into spi_ and Spi.
1782 2001-13-11 Michael Meeks <michael@ximian.com>
1784 * Makefile.am: dist & install at-spi-1.0.pc
1786 * libspi/Makefile.am: install into at-spi-1.0
1788 * idl/Makefile.am (idldir): install into at-spi-1.0
1790 * at-spi-1.0.pc.in: add.
1792 * configure.in: build it.
1794 2001-12-11 Bill Haneman <bill.haneman@sun.com>
1796 * test/keysynth-demo.c:
1797 Use a 'realize' signal-handler to set the WM properties for
1798 the virtual keyboard, rather than making it a "POPUP" type
1799 override-redirect window (thanks to anders carlsson for that
1802 2001-11-11 Bill Haneman <bill.haneman@sun.com>
1805 * test/keysynth-demo.c:
1806 Added new test of key synthesis, which creates a simple
1807 (mouse-operated) onscreen keyboard. It inserts key events into
1808 the currently-focused window, thus it does not grab keyboard focus
1811 * cspi/spi_registry.c:
1812 Added C binding for AT-SPI generateKeyEvent.
1814 * libspi/deviceeventcontroller.c:
1815 Added call to XFilterEvent so that key listener works with XIM (we
1816 hope). Added event_synth_type to generateKeyEvent, so that we can
1817 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
1818 synthesize a press/release pair for KeySyms.
1820 2001-11-09 Bill Haneman <bill.haneman@sun.com>
1822 * libspi/Makefile.am:
1823 * registryd/Makefile.am:
1824 (temporary) hack to include libXtst in libspi and registryd.
1825 (Needed for keystroke synthesis, see below).
1828 Improved API for registerKeystrokeListener, in accordance with
1829 discussions with Gnopernicus team and X server research.
1831 * libspi/registry.c:
1832 * libspi/deviceeventcontroller.c:
1833 * libspi/accessible.c:
1834 * libspi/keystrokelistener.c:
1835 Changes and fixes to support keylisteners for potentially
1836 consumed key events (that is, 'passive grabs').
1837 Added implementation for generateKeyEvent() [untested].
1840 Changes to registerKeystrokeListener() API, as above.
1841 Added deregisterGlobalEventListenerAll(), and
1842 deregisterKeystrokeListener(), which are needed for clean exit of
1844 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
1845 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
1847 * cspi/spi_registry.c:
1848 Added implementations of function prototypes mentioned above.
1850 * registryd/registryd.c:
1851 Added the key listener event source as a g_timeout(), to allow
1852 receipt of key events that are not caught by GDK (since GDK
1853 doesn't support passive keygrabs, this was necessary).
1856 Changed to attach a keylistener to 'Alt' keys, and
1857 respond to the following keycommands: Alt-M (toggle magnifier);
1858 Alt-F (toggle speech); Alt-Q (quit).
1859 Added an exit routine to deregister the listeners, and a key
1860 listener that prints some key info to the console when a key
1861 matches the listener mask (and is thus received by the listener).
1863 * util/idl/Magnifier.idl:
1864 Changes to magnifier API to support multiple zoom regions,
1865 non-uniform scaling in x and y, markDirty, and a host of other
1866 features that would be useful to magnification.
1869 * util/mag_client.c:
1870 * util/mag_client.h:
1871 * util/mag_control.c:
1873 Source code changes to support the above IDL changes.
1876 As above, and also changes to use a (slower) generic conversion
1877 path for colormap conversions, since the fast RGB conversions have been
1878 reported to fail for 16-bit displays.
1880 2001-10-26 Michael Meeks <michael@ximian.com>
1882 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
1884 <2001-10-26 Laszlo Peter <laca@ireland.sun.com>
1886 * at-bridge/Makefile.am: fix LDFLAGS.
1888 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
1890 * at-bridge/bridge.c:
1891 Re-worked listeners for toolkit events, now we have signal
1892 and property listeners. Added a private method
1893 register_atk_event_listeners(), which registers with the
1894 various atk and gtk signals we need to monitor in order to emit
1896 Added emission hook for AtkObject:property-change events, to
1897 support the 'property listeners'.
1898 Fixed some alloc()s of Accessibility_Event structs to use CORBA
1901 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
1902 which emit warnings and exit, respectively, if CORBA errors occur
1903 during remote calls, and we now use these methods to check most of
1904 our CORBA calls in the C bindings.
1906 * cspi/spi_accessible.c:
1907 Changed AccessibleSelection_refSelectedChild() to
1908 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
1909 now increment refcounts.
1911 * cspi/spi_component.c:
1912 Fixed some long pointer casts (dangerous!) to pass pointers to
1913 CORBA_longs of the proper type to the CORBA stubs, and copy the
1914 data into the longs that were passed into the C bindings code.
1916 * at-bridge/bridge.c:
1918 * libspi/accessible.c:
1919 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
1920 hyperlinks, AtkHyperlink is an object type.
1922 * libspi/application.c:
1923 Added various conversions to and from "generic" event types and
1924 atk-specific types; this is really part of the 'bridge'
1925 implementation but is valid for all AtkObject-based accessibility
1928 * libspi/editabletext.c:
1929 Fixed nasty bug wherein editable text's finalize method was
1930 unref'ing tha AtkObject reference that the text parent class was
1931 about to unref _again_. There was also a nasty inheritance bug
1932 that meant that the AccessibleEditableText class was corrupt.
1934 * libspi/selection.c:
1935 Provided implementations for some selection API that was broken.
1937 * idl/Application.idl:
1938 Added registerObjectEventListener () method.
1941 Fixed a number of return values that were Bonobo_Unknowns from
1942 bonobo_object_corba_objref(), which I
1943 forgot to dup before returning. Changed instances of
1944 bonobo_object_corba_objref (bonobo_object(o)) to
1945 BONOBO_OBJREF(o), for concision and clarity.
1947 <2001-10-13 Louise Miller <louise.miller@sun.com>
1949 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
1950 idl/Event.idl, idl/Registry.idl
1951 Changed these files to include Bonobo_Unknown.idl instead
1954 <2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
1956 * libspi/component.c libspi/component.h:
1957 Fixed typo. Added assertions for object checks in
1958 AccessibleComponent code.
1960 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
1962 * idl/Accessible.idl:
1963 Added 'isEqual (Accessible *object)'
1964 method for Accessible. (Not Yet Implemented).
1967 Changed signature of registerKeystrokeListener() to
1968 take a KeySet and KeyEventSeq so that specific keys and event
1969 types could be requested for monitoring, and added a flag
1970 is_synchronous so that either synchronous or asynchronous
1971 notification could be requested. (However this is not all
1972 implemented yet). This also meant adding two new typedefs,
1973 KeyEventSeq and KeySet.
1976 Added two new relations, RELATION_TOOLTIP_FOR and
1977 RELATION_LEAFNODE_OF.
1980 Added new state, STATE_HAS_TOOLTIP.
1982 * libspi/text.c, editabletext.c:
1983 Added new assertions to all casts of bonobo-objects from
1984 CORBA servants, to prevent Text API calls on non-text objects.
1985 Changed suspect casts of int-pointer types, so that we
1986 always send a valid CORBA_long pointer to the CORBA APIs that use
1987 in/out long parameters. We then have to copy from the CORBA_long
1988 into the regular long or int for return to the C bindings, or
1989 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
1992 * libspi/deviceeventcontroller.c:
1993 Cleaned these sources up.
1995 Changed return type for getCharacterAtOffset to
1996 CORBA_unsigned_long, to allow for 32-bit characters.
1999 <2001-10-08 Bill Haneman <bill.haneman@sun.com>
2003 Fixed 'make dist' so that distro compiles...
2004 * libspi/keymasks.h:
2006 * cspi/spi-listener.c:
2007 KeystrokeListenerCB now returns a boolean.
2009 Added KeyEventType struct, and KeyStroke.
2010 Also added createKeystrokeListener(),
2011 KeystrokeListener_addCallback(),
2012 KeystrokeListener_removeCallback(), and added a keymask to
2013 registerKeystrokeListener().
2014 * cspi/spi_accessible.c:
2015 Changed numerous return types for interfaces from
2016 AccessibleComponent to Accessible<InterfaceName>; this was
2017 probably a cut-and-paste error.
2019 Implementations of new KeystrokeListener api (from spi.h,
2022 Changes to key modifier mapping.
2023 Created ControllerEventMask struct.
2024 Made DeviceEventController derive from Bonobo::Unknown.
2026 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
2027 * libspi/deviceeventcontroller.c:
2028 Added a number of new internal (private) methods.
2029 * libspi/editabletext.c:
2030 * libspi/editabletext.h:
2031 Fixed a number of bugs related to the fact that
2032 editabletext inherits from text. Fixed the EditableText struct,
2033 the init() call, and use correct casts when calling Text methods
2034 from an EditableText object. Removed (duplicate) atko from the
2035 EditableText structure, we use the one in the parent Text
2036 structure via the casts mentioned above.
2037 * libspi/keystrokelistener.[ch]:
2038 * libspi/registry.c:
2039 Changes in support of keyboard handling (above).
2041 Keyboard handling, though partly functional, is still not
2042 recommended for at-spi client use as there is considerable
2043 work yet to be done.
2046 Changed some places where pointers to various int types
2047 are cast to be pointers to CORBA_long types and vice-versa:
2048 pointer casting is not safe so we pass pointers of the correct
2049 types and then cast the result before putting it into the target
2052 * libspi/text.h: minor typos corrected.
2054 We now speak not only the name of a Text element, but the
2055 first sentence of its content, when it receives focus.
2056 I also changed the text compression to 75% from 50%.
2057 * util/Accessibility_Util.server.in:
2058 Changed the default magnifier type to be a 3x vertical
2059 splitscreen magnifier (was previously a 2x horizontal one).
2061 <2001-10-03 Bill Haneman <bill.haneman@sun.com>
2063 * libspi/keystrokelistener.h:
2064 * libspi/keystrokelistener.c:
2065 Initial functional implementations of KeystrokeListener.
2068 <2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
2070 Fixed string handling for NULL strings in libspi.
2071 Added spi_freeString to free strings returned by C bindings.
2073 <2001-09-30 Bill Haneman <bill.haneman@sun.com>
2075 * libspi/keystrokelistener.h:
2076 * libspi/keystrokelistener.c:
2077 Began (no-op) implementations of KeystrokeListener
2079 * libspi/deviceeventcontroller.c:
2080 * libspi/deviceeventcontroller.h:
2081 Began creating implementations of DeviceEventController,
2082 to handle keystroke and mouse event listening and
2084 * libspi/accessible.c:
2085 Stubbed-in the implementations for
2086 Accessibility_Accessible_getState and
2087 Accessibility_Accessible_getRelationSet.
2088 * libspi/registry.c:
2089 Improved de-registration process and fixed some bugs,
2090 deregistration now works correctly.
2092 Added initialization of applications list (to NULL).
2094 Reduced speech compression from 0.5 to 0.7, for demo.
2095 Changed call to gdk_window_set_decorations()
2096 to gtk_window_set_decorated().
2097 * at-bridge/bridge.c:
2098 Bridge now deregisters when app exits, via
2099 registration of a cleanup function
2100 with the g_atexit() call.
2101 Required making 'app' static, renamed 'this_app'.
2102 Fixed broken use of bonobo_init, passing argv wrongly.
2104 <2001-09-27 Bill Haneman <bill.haneman@sun.com>
2108 Created a new directory for
2109 accessibility-related utilities, primarily for
2110 testing and demo purposes, but with possible
2117 Onscreen magnifier utility that
2118 is implemented as a bonobo service.
2120 * util/mag_client.c:
2121 * util/mag_client.h:
2122 Client-side support (simple C bindings)
2123 for Magnification service
2125 * util/mag_control.c:
2126 Client program example for
2127 Magnification service
2129 * util/Accessibility_Magnifier.server.in:
2130 Bonobo-activation file for the
2131 Magnification service.
2134 * util/idl/Magnifier.idl:
2135 IDL defining the bonobo Magnification
2139 Modifications to use the bonobo-activated magnifier
2140 above, in place of trying to connect to an existing
2141 magnifier that uses socket-listening IPC.
2143 If env variable MAGNIFIER is set, a magnifier service
2144 will be started if one does not exist.
2146 <2001-09-25 Bill Haneman <bill.haneman@sun.com>
2147 * at-bridge/bridge.c:
2148 applied patch from Marc to build and run
2149 against new glib and gtk+ (seemed like a change
2150 to bonobo_init signature was made ?)
2152 made festival-server support turned off by default.
2153 Added support for a simple magnifier (off by default)
2154 which will be added to a 'util' directory later.
2155 * at-bridge/Makefile.am:
2156 Changed "application.h" header from a 'source'
2157 to a 'dependency' of libat-bridge.
2159 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2167 Added interface implementation c files to list of
2168 includes so they are included in libcspi.
2171 Changed prototype of AccessibleAction_doAction to return a
2173 Changed prototype of AccessibleTable_getCaption to
2174 return an Accessible.
2175 Changed prototype of AccessibleTable_getSelectedRows
2176 and AccessibleTable_getSelectedColumns to
2177 return a long (returns the number of selected rows
2178 or columns respectively).
2179 Changed name of AccessibleText_refRunAttributes to
2180 AccessibleText_getAttributes.
2181 Changed prototype of AccessibleText_getCharacterExtents to
2182 return a void rather than a boolean.
2183 Added support for a AccessibleCoordType parameter
2184 specifying what type of coordinates are desired.
2185 Added an AccessibleCordType parameter to
2186 AccessibleText_getPointAtOffset.
2188 * cspi/spi_accessible.c:
2189 Added code to return the outstanding interfaces from
2190 Accessible_queryInterface.
2192 * cspi/spi_action.c:
2194 Corrected call to getNActions to call the c binding
2197 * cspi/spi_editabletext.c:
2199 Changed name from setRunAttributes to setAttributes.
2201 * cspi/spi_hyperlink.c:
2203 Changed call to getNAnchors to correctly call the c
2204 binding for an attribute.
2206 * cspi/spi_hypertext.c:
2208 Changed getImageDescription to correctly call the
2209 binding for an attribute.
2211 * cspi/spi_selection.c:
2212 Changed getNSelectedChildren to correctly call the c
2213 binding for the attribute.
2214 Changed refSelectedChild to getSelectedChild.
2218 Changed getCaption to return an Accessible.
2219 Fixed calls which retrieve attributes.
2220 Changed refAt to getAccessibleAt.
2221 Changed getNSelectedRows and getNSelectedColumns to
2225 Changed getCharacterExtents and getPointAtOffset to accept an
2226 AccessibleCoordType.
2228 Changed calls which retrieve attributes.
2229 Changed refRunAttributes to getAttributes.
2234 * idl/Hyperlink.idl:
2235 Changed n_anchors attribute to nAnchors to keep naming
2236 convention consistent.
2239 Made Table inherit from Bonobo::Unknown.
2240 Added nSelectedColumns and nSelectedRows attributes.
2243 Made Value inherit from Bonobo::Unknown.
2245 * libspi/hyperlink.c:
2246 Change for nAnchors attributte name change.
2248 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2256 Added interface implementation c files to list of
2257 includes so they are included in libcspi.
2260 Changed prototype of AccessibleAction_doAction to return a
2262 Changed prototype of AccessibleTable_getCaption to
2263 return an Accessible.
2264 Changed prototype of AccessibleTable_getSelectedRows
2265 and AccessibleTable_getSelectedColumns to
2266 return a long (returns the number of selected rows
2267 or columns respectively).
2268 Changed name of AccessibleText_refRunAttributes to
2269 AccessibleText_getAttributes.
2270 Changed prototype of AccessibleText_getCharacterExtents to
2271 return a void rather than a boolean.
2272 Added support for a AccessibleCoordType parameter
2273 specifying what type of coordinates are desired.
2274 Added an AccessibleCordType parameter to
2275 AccessibleText_getPointAtOffset.
2277 * cspi/spi_accessible.c:
2278 Added code to return the outstanding interfaces from
2279 Accessible_queryInterface.
2281 * cspi/spi_action.c:
2283 Corrected call to getNActions to call the c binding
2286 * cspi/spi_editabletext.c:
2288 Changed name from setRunAttributes to setAttributes.
2290 * cspi/spi_hyperlink.c:
2292 Changed call to getNAnchors to correctly call the c
2293 binding for an attribute.
2295 * cspi/spi_hypertext.c:
2297 Changed getImageDescription to correctly call the
2298 binding for an attribute.
2300 * cspi/spi_selection.c:
2301 Changed getNSelectedChildren to correctly call the c
2302 binding for the attribute.
2303 Changed refSelectedChild to getSelectedChild.
2307 Changed getCaption to return an Accessible.
2308 Fixed calls which retrieve attributes.
2309 Changed refAt to getAccessibleAt.
2310 Changed getNSelectedRows and getNSelectedColumns to
2314 Changed getCharacterExtents and getPointAtOffset to accept an
2315 AccessibleCoordType.
2317 Changed calls which retrieve attributes.
2318 Changed refRunAttributes to getAttributes.
2323 * idl/Hyperlink.idl:
2324 Changed n_anchors attribute to nAnchors to keep naming
2325 convention consistent.
2328 Made Table inherit from Bonobo::Unknown.
2329 Added nSelectedColumns and nSelectedRows attributes.
2332 Made Value inherit from Bonobo::Unknown.
2334 * libspi/hyperlink.c:
2335 Change for nAnchors attributte name change.
2338 <2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
2340 implementations-- made server implementations own AtkObject pointers
2341 rather than their respective AtkInterrface pointers to fix
2342 refcounting. AtkHyperlink is still broken.
2344 <2001-09-04 Bill Haneman <bill.haneman@sun.com>
2345 * cspi/spi_accessible.c:
2346 Added method Accessible_Role_getName(),
2347 and requisite string array (role_names).
2348 Added conversion string_from_corba_strin() call
2349 to Accessible_getName and _getDescription.
2350 * libspi/accessible.c:
2351 Added implementation for Accessible_getRole()
2353 Added festival support, used if environment variable
2356 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2358 * at-bridge/bridge.c:
2359 Now allocate Accessibility_Event using
2360 Accessibility_Event__alloc() instead of g_new0().
2361 * libspi/accessibleeventlistener.c:
2362 Initialize AccessibleEventListener->callbacks to NULL.
2363 Fixed accessible__event_listener_init() param, changed to
2364 "AccessibleEventListener *" type.
2365 Changed a bonobo_object_release_unref() call to
2366 Accessibility_Accessible_unref().
2367 * libspi/listener.c:
2368 Changed Bonobo_Unknown_unref to (equivalent)
2369 Accessibility_Accessible_unref.
2370 * libspi/registry.c:
2371 Changed bonobo_object_release_unref to
2372 Accessibility_Accessible_unref.
2374 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2377 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
2378 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
2379 spi-util.c spi-util.h
2380 Implementations for C bindings to remaining accessibility
2383 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2386 changed return value of Action from void to boolean to
2387 bring in line with ATK.
2390 Changed getText funcions to return "out" start and end offsets.
2391 Changed getAttributes to take and offset and return the start
2392 and end offset of the attribute run.
2393 Changed getOffsetAtPoint and getCharacterExtents to take an
2394 enum describing whether coordinates are window or screen.
2397 libspi/action.c libspi/action.h libspi/editabletext.c
2398 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
2399 libspi/hypertext.c libspi/hypertext.h libspi/image.c
2400 libspi/image.h libspi/selection.c libspi/selection.h
2401 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
2402 libspi/value.c libspi/value.h
2403 Added server implementations for outstanding ATK interfaces
2404 not yet implemented.
2406 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2409 Added (missing) getName() method.
2410 Made nActions an attribute.
2411 * idl/EditableText.idl:
2412 Changed order of params in setAttributes.
2413 * idl/Hyperlink.idl:
2414 Removed getAnchor, added getURI.
2416 Changed attributes to methods, for efficiency
2417 (so that getting extents can be done in one call)
2418 * idl/Selection.idl:
2419 Changed nSelectedChildren to attribute, and re-indented.
2420 * idl/Table.idl: changed nrows, ncolumns, caption, summary
2422 * idl/Text.idl: reformatted to match our coding style.
2423 (temporarily?) removed getRowColumnAtOffset().
2424 Changed text selection API to support multi-select and
2425 non-contiguous selections, as in ATK.
2426 * idl/Value.idl: changed some methods to attributes.
2428 2001-08-24 Mark McLoughlin <mark@skynet.ie>
2430 * libspi/listener.c(impl_notify_event):
2431 BonoboUnkown_unref the source instead
2432 of bonobo_object_release_unref - the ORB
2433 handles the releasing.
2435 * configure.in: require ORBit-2.3.94 for
2438 2001-08-21 Bill Haneman <bill.haneman@sun.com>
2440 Tagged CVS repository 'EA_1_0'.
2441 * README.EARLY_ACCESS:
2442 Alphabetized acknowledgements list, and
2444 Listed some known dependencies of at-spi.
2446 2001-08-20 Bill Haneman <bill.haneman@sun.com>
2448 * docs/at-spi-docs.sgml:
2449 * docs/at-spi-sections.txt:
2450 * docs/at-spi-overrides.txt: (Added zero-length file)
2451 Documentation improvements - gtk-doc should build
2452 docs for all implemented C bindings now.
2455 * cspi/spi.c: (New file)
2456 * cspi/spi_event.c: (New file)
2457 * cspi/spi_registry.c: (New file)
2458 * cspi/spi_accessible.c: (New file)
2459 * cspi/spi_application.c: (New file)
2460 * cspi/spi_component.c: (New file)
2461 Split spi_main.c into six parts, and included them from
2462 "spi.c". This is a bit of a hack, probably temporary,
2463 but required by gtk-doc, apparently.
2465 2001-08-20 Bill Haneman <bill.haneman@sun.com>
2468 * docs/at-spi-docs.sgml:
2469 * docs/at-spi-sections.txt:
2471 Initial checkins/modifications for gtk-doc generation.
2474 Added (missing) interface query methods to Accessible's C binding.
2476 Added GenericInterface type definition.
2478 Added query for AccessibleComponent interface to focus event handler.
2479 Added printout of bounding box for focussed component.
2480 * libspi/component.c:
2481 Added partial implementation for AccessibleComponent to C binding.
2482 * idl/Application.idl:
2483 * libspi/registry.c:
2484 * libspi/listener.c:
2485 * libspi/application.c:
2486 * libspi/application.h:
2487 Changed "ID" attribute type from string to long.
2489 2001-08-19 Bill Haneman <bill.haneman@sun.com>
2493 Made method naming consistent: methods taking object args
2494 start with uppercase, other methods (except those using
2495 acronyms) start with lowercase. Underscores delimit between
2496 object names and method names:
2497 SPI_init() - uppercase since it starts with an acronym.
2498 getDesktopCount () - lowercase start since no object param0.
2499 Accessible_getName() - uppercase object type name, studlyCaps method
2503 Added gtk-doc documentation for all currently implemented
2504 methods in the C bindings API.
2506 2001-08-18 Bill Haneman <bill.haneman@sun.com>
2508 * Makefile.am : changed build order to build test last.
2511 Changed "createEventListener" to "CreateEventListener".
2512 * libspi/accessibleeventlistener.c :
2513 Bugfix for addition of callbacks.
2514 * test/Makefile.am :
2515 * test/simple-at.c :
2516 Added new test that uses the C bindings API.
2518 * libspi/listener.c :
2519 * libspi/registry.c :
2520 * libspi/accessibleeventlistener.c :
2521 * at-bridge/bridge.c :
2522 Renamed member "target" of Accessibility_Event to "source",
2523 which is more descriptive.
2526 2001-08-18 Bill Haneman <bill.haneman@sun.com>
2530 * cspi/Makefile.am :
2531 Added makefile support for at-spi/cspi directory.
2534 * cspi/spi-listener.h : (NEW FILE)
2535 Added support for/use of spi-listener.h.
2537 C bindings now build successfully, with no warnings.
2538 * libspi/accessibleeventlistener.h : (NEW FILE)
2539 * libspi/accessibleeventlistener.c : (NEW FILE)
2540 * libspi/Makefile.am :
2541 Added new object type "AccessibleEventListener"
2542 which inherits from Listener, and allows attachment
2543 of in-process callbacks (so that a client with a listening
2544 object instance can add functionality to the local
2545 implementation, dynamically).
2547 2001-08-18 Bill Haneman <bill.haneman@sun.com>
2549 * libspi/accessible.c:
2550 Add implementation for get_index_in_parent().
2552 Added #include of "spi-roletypes.h", and
2553 added enumerated type AccessibleCoordType.
2554 Added definition for KeystrokeListener (function type).
2557 * cspi/spi-statetypes.h :
2558 * cspi/spi-roletypes.h :
2560 Added these headers, used by spi.h.
2562 Added code (NOTE: not yet built by make).
2564 2001-08-18 Mark McLoughlin <mark@skynet.ie>
2566 * libspi/Makefile.am: generate imodule
2567 at the same time as other idl compiler
2570 2001-08-17 Bill Haneman <bill.haneman@sun.com>
2571 * libspi/registry.c :
2572 * libspi/application.c :
2573 * idl/Application.idl :
2574 Made registration with toolkit an application method,
2575 which is required since each app has its own toolkit static
2576 environment. Thus the bridge must register for
2577 notification of toolkit events from each application in turn.
2578 Toolkit notifications are now successfully registered for, and
2579 sent to the listening at client.
2581 Changed toolkit event string to use hyphens rather than underscores.
2582 * libspi/listener.c :
2583 listner now gives more info in debug mode - it reports the
2584 name of the event received, as well as the name of the source.
2587 2001-08-16 Bill Haneman <bill.haneman@sun.com>
2589 * libspi/registry.c :
2590 added more implementation for toolkit events.
2591 Fixed bug such that toolkit event registrations
2592 (via atk) use the whole event name string, not
2594 Removed a useless call to an ORBit_ method.
2595 * at-bridge/bridge.c :
2596 Removed unused local sbuf[] variable.
2598 We now register for Gtk:GtkWidget:button_press_event
2599 events as well as "focus:" events.
2601 Add some more API from Registry.idl that was missing,
2602 for keystroke listening, keystroke and mouse event
2603 synthesis, and enumeration of accessible desktops.
2605 2001-08-16 Michael Meeks <michael@ximian.com>
2607 * configure.in: use AM_GLIB_GNU_GETTEXT.
2609 * Makefile.am (SUBDIRS): kill intl.
2611 2001-08-15 Michael Meeks <michael@ximian.com>
2613 * registryd/Makefile.am: s/oaf/server/ relocate info file.
2615 * configure.in: upd.
2617 * configure.in: depend on a recent bonobo-activation that
2618 will find our server files ...
2620 2001-08-16 Bill Haneman <bill.haneman@sun.com>
2622 * libspi/accessible.c : accessible_new() :
2623 Now we add the Component interface via bonobo_object_add_interface,
2624 if the contained AtkObject implements AtkComponent.
2625 * libspi/accessible.h : now include "component.h"
2626 * libspi/component.h :
2627 * libspi/component.c : added files - implementation of
2628 bonobo wrapper object for Accessibility/Component
2629 * libspi/listener.c :
2630 Added test code to check for Accessibility/Component:1.0
2631 interface and report whether it is implemented by the
2633 * libspi/registry.c :
2634 Now we check for not only the hash of the whole event
2635 string before relaying the event, we also check the
2636 "minor" event string (without the detail string).
2637 This allows event listeners to be registered against
2638 all events of a certain major+minor type, or just
2639 against a specific major+minor+detail type.
2640 * libspi/accessible.c :
2641 Added implementations for Accessible:get_parent(),
2642 Accessible:getChildCount(), and Accessible:getChildAtIndex().
2643 * libspi/registry.c :
2644 * libspi/listener.c :
2645 Replaced calls to Accessibility_Accessible_ref() and
2646 Accessibility_Accessible_unref() with
2647 calls to bonobo_object_dup_ref() and
2648 bonobo_object_release_unref(), so that the CORBA object
2649 is dup-ed and released when relayed, as well as the bonobo object.
2651 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2653 * libspi/Makefile.am,
2654 registryd/Makefile.am,
2655 at-bridge/Makefile.am.
2656 test/Makefile.am, configure.in:
2657 reverse previous changes.
2659 * /idl/Image.idl: fix typo.
2661 * test/Makefile.am: put DEBUG_FLAGS
2664 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2666 * test/app.c: use argv[0] instead of
2669 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2671 * libspi/Makefile.am,
2672 registryd/Makefile.am,
2673 at-bridge/Makefile.am.
2674 test/Makefile.am, configure.in:
2675 cleanup, replace individual LIBS/CFLAGS with
2676 AT_COMMON_{LIBS|CFLAGS}.
2680 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2682 * configure.in, libspi/Makefile.am:
2683 Change IDL path checking for bonobo-activation
2686 2001-08-15 Bill Haneman <bill.haneman@sun.com>
2688 * registryd/registry.c : separated event listeners to use
2689 3 separate lists (focus, window, toolkit). Began testing
2690 event names against hashes before relaying events.
2691 * test/at.c : now register for events of type "focus:"
2692 * test/app.c : now generate events of type "focus:"
2693 * at-bridge/bridge.c : register with ATK for focus events,
2694 and we now relay those focus events to any "focus:" listeners.
2695 This now works with the bridge as a GTK_MODULE when running test/at.
2696 * libspi/registry.c :
2697 * libspi/listener.c :
2698 now we ref event sources before propagating, and unref on receipt.
2699 * libspi/registry.c :
2700 some changes to internal structs, to support event typestring hashes.
2701 * text/app.c : changed the way the appname is generated.
2702 * cspi : added directory that will hold the C bindings library for
2703 non-CORBA/bonobo-savvy clients.
2704 * cspi/spi.h : header file that contains the function prototypes for the C binding.
2705 * idl/Component.idl : added in parameter to indicate coord system for
2706 geometry-related calls.
2707 * idl/Hyperlink.idl : added readonly n_links attribute
2708 * idl/Image.idl : changed methods to attributes.
2710 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2712 * at-bridge/Makefile.am: link against
2713 ../libspi/libspi.la instead of -lspi.
2715 * at-spi/test/app.c: include
2716 bonobo-activation.h. Use a default appname
2717 if one is not provided.
2719 2001-08-14 Bill Haneman <bill.haneman@sun.com>
2721 * idl/Registry.idl : temporarily changed register_Application
2722 to oneway, to work around issue with initial registration
2724 * idl/Application.idl : changed attribute "id" from readonly
2725 to read-write, since it needs to be assigned by Registry.
2726 * registryd/registryd.c : added call to set application id
2728 * registryd/registry.c : changed de-registration procedure to
2729 use CORBA_Object_hash() to find matching object ref in application
2730 lists and listener lists.
2731 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
2732 began distinguishing between event types (work in progress).
2734 2001-08-13 Bill Haneman <bill.haneman@sun.com>
2737 * libspi/application.c:
2738 Added implementations for get/set id, get_toolkitName,
2740 * registryd/registryd.c :
2744 Converted from use of OAF to bonobo-activation.
2745 * libspi/desktop.h :
2746 * libspi/desktop.c :
2748 Removed references to atksimpleobject, since base atkobject
2749 implementation now provides functionality we need.
2750 * libspi/atksimpleobject.c :
2751 * libspi/atksimpleobject.h :
2756 * at-bridge/Makefile.am
2757 * at-bridge/bridge.c
2760 Added directory "bridge" and contents, and added dependencies
2761 in Makefile.am/configure.in.
2762 Initial checkin of "at-bridge".
2763 This code is a GTK_MODULE which automatically registers
2764 GTK+ apps with the accessibility registry, using an object
2765 reference to the root ATK object.
2767 2001-08-10 Mark McLoughlin <mark@skynet.ie>
2769 * po/Makefile.in.in: Remove. Again. If this
2770 doesn't get autogenerated - you need to update
2773 2001-08-07 Mark McLoughlin <mark@skynet.ie>
2775 * po/Makefile.in.in: Add. Again.
2777 2001-07-31 Bill Haneman <bill.haneman@sun.com>
2779 * libspi/accessible.c : added support for 'description' property.
2780 * libspi/accessible.c
2782 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
2783 (since the two are now equivalent in libbonobo)
2791 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
2792 Bonobo::Unknown as does Accessibility::Accessible.
2793 * idl/StreamableContent.idl : as above, and replaced internal InputStream
2794 interface with Bonobo::Stream, since it was redundant with it.
2795 (The Stream returned by a StreamableContext object is expected to
2796 implement only a subset of Bonobo::Stream)
2798 2001-07-28 Anders Carlsson <andersca@gnome.org>
2800 * libspi/accessible.c (accessible_object_finalize): Change
2801 g_free to g_object_unref since the AtkObject is a GObject.
2803 2001-07-30 Bill Haneman <bill.haneman@sun.com>
2805 * idl/Accessibility.idl: add new IDL files
2808 * idl/Action.idl: Definitions of actionable UI object
2809 * idl/Component.idl: Definitions of UI component geometry, etc.
2810 * idl/Hyperlink.idl: Defs of hyperlink behavior
2811 * idl/Image.idl: Def of accessible image
2812 * idl/Selection.idl: Definition of UI object with selectable children
2813 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
2814 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
2815 * idl/Text.idl: Interface defs for UI elements with complex textual content
2816 * idl/Value.idl: Definition of UI element that is a value controller or display
2818 2001-07-27 Michael Meeks <michael@ximian.com>
2820 * po/Makefile.in.in: remove autogenerated file from CVS.
2822 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
2825 * idl/Registry.idl: include guard.
2827 * idl/Accessibility.idl: Add, and include all the other IDL
2830 * idl/*.idl: remove mass of pragmas etc.
2832 2001-07-26 Michael Meeks <michael@ximian.com>
2834 * registryd/Makefile.am (registryd_SOURCES): remove
2837 2001-07-27 Mark McLoughlin <mark@skynet.ie>
2839 * libspi/.cvsignore, registryd/.cvsignore,
2840 test/.cvsignore: updated.
2842 * po/Makefile.in.in: gettext update.
2844 2001-07-25 Bill Haneman <bill.haneman@sun.com>
2846 * initial CVS checkin
2848 2001-06-29 Michael Meeks <michael@ximian.com>
2850 * configure.in: add AM_CONFIG_HEADER to gen config.h