1 2001-12-12 Bill Haneman <bill.haneman@sun.com>
3 * registryd/registry.c:
4 Changed use of strings and string hashes in listener event
5 matching and parse_event_string to use GQuark, which is guaranteed
8 * registryd/registry.h:
9 Squashed annoying warning.
11 2001-12-12 Bill Haneman <bill.haneman@sun.com>
13 * idl/Accessibility_Value.idl:
14 Revert use of union back to CORBA_double, since the double type is
15 more efficient and can contain the other types without loss of
18 * idl/Accessibility_Accessible.idl:
19 Added method Accessibility:Accessible:getRoleName, to complement
20 Accessibility:Accessible:getRole.
22 * cspi/spi_accessible.c:
24 Added C binding for above, Accessible_getRoleName (), and changed
25 signature of Accessible_getRole () to return an AccessibleRole.
27 * cspi/spi-roletypes.h:
28 Changed AccessibleRole_getName to return a char * instead of a
29 const char *. This method is now at least temporarily deprecated
30 in favor of asking Accessibles for their RoleNames directly.
33 Revert to match Accessibility_Value.idl;
37 Change signature of AccessibleValue methods to use double rather
41 * cspi/spi_accessible.c:
42 Changed Accessible_getRole to return an AccessibleRole enum rather
43 than a UTF-8 string. The UTF-8 string can still be obtained via
44 AccessibleRole_getName ().
47 Add test_action. Small fixup to match API change to Accessible_getRole.
50 Bugfix for get_action_from_servant ().
52 2001-12-11 Michael Meeks <michael@ximian.com>
54 * libspi/libspi.h: remove registry.h and
55 desktop.h, deviceeventcontroller.h
57 * libspi/Makefile.am: remove registry.[ch],
58 desktop.[ch], deviceeventcontroller.[ch]
60 * registryd/Makefile.am: add registry.[ch],
61 desktop.[ch], rename registryd.c to registry-main.c.
62 add deviceeventcontroller.[ch]
64 2001-12-11 Bill Haneman <bill.haneman@sun.com>
67 Replace setenv() call with putenv ().
70 Bugfix in AccessibleComponent_getExtents (),
73 2001-12-11 Michael Meeks <michael@ximian.com>
75 * libspi/image.c (impl_getImageExtents): impl.
76 (spi_image_class_init): upd.
79 (AccessibleImage_getImageDescription): fix daft bug
82 * test/test-simple.c (global_listener_cb): update
83 to only quit if not --poke
85 (validate_accessible): upd. dumping, call test_image
88 * libspi/Makefile.am (IDL_DEPS): fixup the IDL
91 * idl/Accessibility.idl: update all IDL includes.
93 * idl/*.idl - rename to namespace - this sucks, blame
94 mjs' bad decision for oafd.
96 * test/test-simple.c (create_test_window): add more tests.
97 (create_tree): split this out.
98 (validate_accessible): bugfix.
100 2001-12-11 Michael Meeks <michael@ximian.com>
102 * cspi/bonobo/cspi-bonobo-listener.c:
103 (cspi_kestroke_listener_unref),
104 (cspi_event_listener_unref): impl. undoing previous
105 homenous environment - for Bill.
107 * cspi/spi_table.c (long_seq_to_array): use
110 * cspi/spi_main.c: split out all bonoboish bits into
113 * cspi/spi-impl.h: upd. typedefs.
115 * cspi/spi_registry.c: update to lowlevel API,
116 return booleans to indicate success in some places.
118 * cspi/spi_event.c: update to lowlevel API.
120 * cspi/bonobo/Makefile.am: add.
122 * cspi/bonobo/cspi-lowlevel.h: add
124 * cspi/bonobo/cspi-bonobo.c: add
126 * cspi/bonobo/cspi-bonobo-listener.[ch]: impl.
128 * cspi/Makefile.am: remove spi-listener-impl.[ch],
129 (SUBDIRS): add bonobo, link in the libs.
131 * cspi/spi-util.c: kill this file.
133 * TODO: merge in my bits.
135 2001-12-11 Michael Meeks <michael@ximian.com>
137 * test/test-simple.c (test_value, test_table, main):
138 remove unused variables causing warnings.
140 * configure.in: cleanup checks - require gail.
142 2001-12-11 Bill Haneman <bill.haneman@sun.com>
145 Changed Value interface to use SValue (scalars) rather than
146 assuming all values are floats. This allows floats, doubles,
147 longs, shorts, and unsigned values to be manipulated.
148 Introduced Accessibility:SValue union.
151 Updated to use new API above, and to work correctly with GValues
152 of different types in AtkValue.
155 Updated to use new API above. cspi's API is as yet unchanged.
158 Updated the Value revision action item.
160 2001-12-10 Bill Haneman <bill.haneman@sun.com>
162 * test/test-simple.c:
163 Added test_table (GtkTreeView widget in test window to follow).
164 Un-commented test_value, added GtkRange widget.
165 Added GtkTreeView widget with GtkListStore. It passes regression
166 test but leaks one SPI object for some reason.
169 Fixed bug in impl__set_currentValue.
171 2001-12-10 Michael Meeks <michael@ximian.com>
173 * cspi/spi_text.c: audit for exception handling,
174 tolerating NULL object references safely etc.
176 * cspi/spi_value.c: ditto.
178 * cspi/spi_table.c (AccessibleTable_getSummary),
179 (AccessibleTable_getAccessibleAt),
180 (AccessibleTable_getRowHeader),
181 (AccessibleTable_getColumnHeader),
182 (AccessibleTable_getCaption): fix bugs hidden by
184 (long_seq_to_array): impl.
185 (AccessibleTable_getSelectedRows),
186 (AccessibleTable_getSelectedColumns): use it.
188 2001-12-10 Bill Haneman <bill.haneman@sun.com>
191 Added a TODO list (rough and short for now).
193 * cspi/spi_hyperlink.c:
194 * cspi/spi_hypertext.c:
195 Fixed macro name typos, and remove use of obsolete macro in
196 AccessibleHyperlink_getLink.
199 * cspi/spi_accessible.c:
200 * cspi/spi_application.c:
201 * cspi/spi_component.c:
202 * cspi/spi_selection.c:
205 Documentation fixes (removed return values from ref/unref methods).
207 2001-12-10 Michael Meeks <michael@ximian.com>
209 * cspi/spi_action.c: audit for exception handling,
210 tolerating NULL object references safely etc.
212 * cspi/spi_accessible.c: ditto.
214 * cspi/spi_component.c: ditto.
216 * cspi/spi_editabletext.c: ditto.
218 * cspi/spi_hyperlink.c: ditto.
220 * cspi/spi_hypertext.c: ditto.
222 * cspi/spi_image.c: ditto.
224 * cspi/spi_selection.c: ditto.
226 2001-12-10 Michael Meeks <michael@ximian.com>
228 * configure.in: use cspi/libspi.pc.in instead.
230 * Makefile.am (pkgconfig_DATA): upd. to match.
232 * test/simple-at.c (report_focus_event): kill hacks around
233 bad return values, use putenv not setenv
235 * libspi/desktop.c (impl_desktop_get_child_at_index): don't
236 fire ChildGone - I killed it.
239 (impl_accessibility_component_get_extents): remove
242 * idl/Accessible.idl: kill ChildGone exception.
244 * cspi/*.[ch]: kill int return from ref / unref.
246 * cspi/spi_main.c (cspi_object_add_check): fold into
247 (cspi_object_add): here.
249 * cspi/spi_component.c (AccessibleComponent_getExtents):
250 handle exceptions elegantly.
252 * cspi/spi-private.h (cspi_check_ev_return),
253 (cspi_return_if_fail): impl.
255 * cspi/spi_accessible.c: use extensively.
256 (AccessibleStateSet_equals): add direct compare check.
258 * cspi/spi_selection.c: tolerate NULL objs, and check
259 exceptions before return.
261 * cspi/spi-util.c (cspi_warn_ev): rename to
262 (cspi_check_ev): this & don't pass ev in; no point.
264 2001-12-10 Michael Meeks <michael@ximian.com>
266 * test/test-simple.c: use putenv not setenv
267 (get_environment_vars): more chatty if you're not using
270 * test/simple-at.c: do the setenv so more people see the
273 2001-12-10 Bill Haneman <bill.haneman@sun.com>
276 Changed check of CORBA_environment on notification to be a warning
277 instead of an error for the moment, since we can recover from this
278 error when caused by a queued notification from a dead app.
281 Fixes for spi_value, use G_TYPE_DOUBLE for atk_value values (as
282 used by all current implementors of AtkValue), and coerce to
283 CORBA_float. (Proper general case fix may require change to Value.idl).
285 2001-12-09 Bill Haneman <bill.haneman@sun.com>
289 * cspi/spi_accessible.c:
290 Documentation fixes: added user_data params to documentation for
291 listeners and callbacks.
293 * cspi/spi_accessible.c:
294 Changed AccessibleStateSet_compare to return a
295 StateSet rather than return the difference set into a third parameter.
298 2001-12-09 Bill Haneman <bill.haneman@sun.com>
301 Replace use of AM_PROG_XML_I18N_TOOLS macro with AC_PROG_INTLTOOL.
302 remove 'dnl' comment line from AC_OUTPUT (autoconf doesn't like
306 Remove subdirectory po from SUBDIRS for now.
308 * at-bridge/bridge.c:
309 Beefed up a couple of debug printouts.
310 One-line fix for signal notification name formatting.
312 * libspi/accessible.c:
313 Added assertion to spi_accessible_new ().
315 * libspi/application.c:
316 Put #ifdef qualifiers around a printf.
319 Fixed derivation (from BONOBO_OBJECT to SPI_BASE).
321 * registryd/Makefile.am:
323 Replaces use of XML_I18N_MERGE_SERVER_RULE with
324 INTLTOOL_SERVER_RULE macro.
327 Added an event listener for several ATK signals, for
328 testing and debugging. Removed a few g_warnings.
329 Added test output if focussed item implements the Value interface.
331 * test/test-simple.c:
332 Added test_value () function (known not to pass at the moment, so
333 not actually called yet.
335 2001-12-08 Michael Meeks <michael@ximian.com>
337 * at-bridge/bridge.c (bridge_focus_tracker),
338 (emit_eventv): fix the same ref. leak.
339 (register_atk_event_listeners): don't leak.
341 * cspi/spi-listener-impl.c (cspi_event): more
342 protection from client code.
344 * test/test-simple.c (test_desktop): unref the app.
346 * test/Makefile.am: upd. TESTS.
348 * at-bridge/bridge.c (bridge_exit_func): release the registry.
350 * test/keysynth-demo.c (keysynth_exit): unref the listeners.
352 * cspi/spi_accessible.c (Accessible_queryInterface): constify.
354 * cspi/spi_registry.c: constify in strings.
355 (deregisterGlobalEventListenerAll): don't release the ref.
357 * cspi/spi.h: start removing redundant / conflicting
358 gtkdoc comments, making the API readable at a glance :-)
360 * cspi/spi_event.c (AccessibleEventListener_unref): impl.
362 * test/keysynth-demo.c (keysynth_exit, main): upd.
364 * test/simple-at.c (main, simple_at_exit): upd.
366 * test/test-simple.c (unutterable_horror): kill.
367 (utterable_normal_derefs): kill.
368 (main): upd & do a setenv before gtk_init, so that we
369 can use memprof - and to save the pain of remembering
370 this, if we're running under memprof - don't exit.
372 * cspi/spi_main.c (SPI_exit): return exit status
374 (SPI_event_quit): impl.
375 (SPI_event_main): simplify.
376 (cspi_is_gnome_app): kill.
377 (SPI_init): kill isGNOMEapp arg.
379 * at-bridge/bridge.c (register_atk_event_listeners):
380 re-instate the unref.
381 (bridge_exit_func): don't re-activate the registry,
382 protect vs. theoretical re-entry, use the
383 AT_BRIDGE_SHUTDOWN env. var to determine whether to
384 assert a clean shutdown - for regression tests.
386 2001-12-08 Abel Cheung <maddog@linux.org.hk>
388 * configure.in: Comment out dummy i18n support for now,
389 otherwise it fails to build.
390 * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
391 EXTRA_DIST. They are missing in tarball.
393 2001-12-07 Michael Meeks <michael@ximian.com>
395 * util/magnifier.c: kill bonobo activation reg. race.
398 (impl_accessibility_component_get_extents): make it match
401 * libspi/registry.c (_registry_notify_listeners):
402 re-remove X headers & reconcile conflicts.
403 (spi_listener_struct_free): bad conflict resolve.
404 (impl_accessibility_registry_register_application):
405 more bad merging fixed.
406 (impl_accessibility_registry_deregister_application): ditto.
407 (spi_registry_new): ditto.
408 (spi_registry_init): don't have an applications field.
410 [ merge fixups2 branch to here ]
411 2001-12-07 Michael Meeks <michael@ximian.com>
413 * test/simple-at.c (report_focus_event),
414 (report_focussed_accessible): remove g_warning debug.
416 2001-12-07 Michael Meeks <michael@ximian.com>
418 * test/test-simple.c (validate_tree): comment out some checks.
419 (test_desktop): app now not registered idly - horay.
421 2001-12-07 Michael Meeks <michael@ximian.com>
423 * cspi/spi_registry.c
424 (registerAccessibleKeystrokeListener): clean, stop it leaking
425 great swathes of memory, and device event controller references.
426 ensure we always pass valid sequences.
427 (deregisterAccessibleKeystrokeListener): ditto.
428 (generateKeyEvent): upd.
430 * at-bridge/bridge.c (bridge_key_listener): handle
431 registry dead exception gracefully.
432 (bridge_focus_tracker, emit_eventv): free ev.
434 * test/simple-at.c (report_focus_event): fix polarity.
436 * libspi/application.c (notify_listeners): kill the ev
437 argument, and make sure we init the ev we use.
438 (spi_application_object_event_listener): split out a chunk
439 (get_atk_object_ref): here & fixup.
440 (reverse_lookup_name_for_toolkit_event): make const.
441 (spi_application_toolkit_event_listener): fixup, kill leaks
444 * at-bridge/bridge.c (register_atk_event_listeners):
445 don't unref the noop object - causes grief.
447 * libspi/registry.c: remove the X headers.
448 turn off the debug churn.
450 * libspi/accessible.c (spi_accessible_new_return): only
451 release the ref if we are supposed to [doh]
453 * test/simple-at.c (report_button_press, report_focus_event):
454 guard vs. unexpected exit.
456 * at-bridge/bridge.c (gtk_module_init): prune printf.
457 (bridge_exit_func): fix app unref.
459 * libspi/Makefile.am: don't install registry or desktop.h
461 * libspi/*.h: update includes.
463 * libspi/application.h: don't include ourself, or
464 other redundant headers.
466 2001-12-06 Michael Meeks <michael@ximian.com>
468 * libspi/accessible.c
469 (get_accessible_from_servant): impl.
470 Upd. all CORBA impl.s to use it killing cut and paste.
472 * cspi/spi_main.c (cspi_cleanup): guard vs. double
474 (SPI_init): register atexit cleanup handler here.
476 2001-12-06 Michael Meeks <michael@ximian.com>
478 * at-bridge/bridge.c (gtk_module_init): g_error on
481 2001-12-06 Michael Meeks <michael@ximian.com>
483 * at-bridge/bridge.c (gtk_module_init): some sort of
484 confusing merge clash - reverted.
485 (bridge_idle_init): ditto.
487 * test/test-simple.c (main, utterable_normal_derefs):
488 merge from Bill - somehow not committed.
490 2001-12-06 Michael Meeks <michael@ximian.com>
492 * libspi/value.c (spi_value_class_init): upd.
493 (spi_value_finalize): kill.
495 * libspi/table.c (spi_table_finalize): kill.
496 (spi_table_interface_new): upd.
497 (spi_table_class_init): upd.
498 (get_table_from_servant): impl.
499 Upd. all CORBA impl.s to use it killing yet more cut and paste.
501 * libspi/selection.c (spi_selection_finalize): kill.
502 (spi_selection_interface_new): upd.
503 (spi_selection_class_init): upd.
504 (get_selection_from_servant): impl.
505 Upd. all CORBA impl.s to use it killing yet more cut and paste.
507 * libspi/relation.c (spi_relation_finalize): kill.
508 (spi_relation_class_init, spi_relation_new): upd
510 * libspi/image.c (spi_image_finalize): kill.
511 (spi_image_class_init): upd.
512 (spi_image_interface_new): upd.
513 (get_image_from_servant): impl.
514 Upd. all CORBA impl.s to use it killing yet more cut and paste.
516 * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
517 (spi_hyperlink_finalize): kill.
518 (spi_hyperlink_new): upd.
519 (get_hyperlink_from_servant): impl.
520 Upd. all CORBA impl.s to use it killing yet more cut and paste.
522 * libspi/hypertext.c (spi_hypertext_interface_new): upd.
523 (spi_hypertext_finalize): kill.
524 (spi_hypertext_class_init): upd.
525 (get_hypertext_from_servant): impl.
526 Upd. all CORBA impl.s to use it killing yet more cut and paste.
528 * libspi/editabletext.c (spi_editable_text_finalize): kill.
529 (spi_editable_text_interface_new): upd.
530 (get_editable_text_from_servant): impl.
531 Upd. all CORBA impl.s to use it killing yet more cut and paste.
533 * libspi/text.c (get_text_from_servant): impl.
534 All impls - update to use it killing more cut and paste,
535 also fix bad string returns on duff args ( a somewhat
536 impossible case to handle - but hey ).
537 (spi_text_construct): impl.
538 (spi_text_interface_new): upd.
539 (spi_text_object_finalize): kill.
542 (accessibility_component_object_finalize): kill.
543 (spi_component_class_init): upd.
544 (get_component_from_servant): impl. helper to kill cut & paste.
545 (impl_accessibility_component_contains):
546 (impl_accessibility_component_get_accessible_at_point):
547 (impl_accessibility_component_get_position):
548 (impl_accessibility_component_get_extents):
549 (impl_accessibility_component_get_mdi_z_order):
550 (impl_accessibility_component_get_layer):
551 (spi_component_interface_new): upd.
553 * libspi/action.c (spi_action_finalize): kill.
554 (spi_action_class_init): upd. inherit from SpiObject.
555 (spi_action_interface_new): upd.
556 (get_action_from_servant): impl. helper to reduce cut & paste.
557 (impl_getKeyBinding, impl_getName, impl_doAction),
558 (impl_getDescription): Use it everywhere.
560 * cspi/spi_main.c (get_live_refs): a pointer hash.
561 (spi_object_hash, spi_object_equal): comment out.
562 There are issues with CORBA object hashing that need
565 * libspi/application.c (spi_application_init),
566 (spi_application_new): upd.
568 * libspi/accessible.c (spi_accessible_object_finalize): kill.
569 (spi_accessible_class_init): upd.
570 s/accessible/object/ in epv methods.
572 2001-12-05 Bill Haneman <bill.haneman@sun.com>
574 * at-bridge/bridge.c:
575 Reorder the bridge initialization into the bridge gtk_module_init,
576 an immediate call to bridge_register_app, and an idle_add for
577 register_atk_event_listeners (the only code that *must* wait until
578 GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
579 the activation, creates the application's Accessible object, and
580 queues the bridge_idle_init function. Restored call to
581 Accessibility_Registry_deregisterApplication().
582 Prior to making this call we obtain a new reference to the
583 registry, which is a temporary hack that helps us handle apps that
584 shut down the bonobo mainloop before we get there.
587 Fix string leakage in debug block, and don't segv if a an app
588 dies before its event notifications have been propagated.
591 Modify cspi_check_ev() to call g_warning() rather than g_error(),
592 as stopgap measure until we get proper exception handling when
593 objects die during or before interrogation.
597 Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
598 Also changed default value of is_gnome_app to TRUE.
601 * test/keysynth-demo.c:
602 Changed use of SPI_init and SPI_event_main to reflect API change above.
605 Made report_focus_event check the warning value from getName
606 before reporting on focussed accessible; simplifies handling of
607 notifications from dead objects.
609 * test/test-simple.c: (Changes not in this patch since source is
612 2001-12-05 Michael Meeks <michael@ximian.com>
614 * registryd/registryd.c (main): protect against
615 bonobo-activation startup race condition.
617 * cspi/spi_main.c (cspi_object_add_check): cope
618 with the exception elegantly.
620 * idl/Accessible.idl: decl. ChildGone
622 * libspi/desktop.c (spi_desktop_dispose): impl.
623 (spi_desktop_class_init): upd.
624 (spi_desktop_add_application),
625 (spi_desktop_remove_application),
626 (abnormal_application_termination): impl.
627 (impl_desktop_get_child_at_index): re-impl.
630 (impl_accessibility_registry_deregister_application),
631 (impl_accessibility_registry_register_application):
632 kill excessive debug clutter.
634 * test/test-simple.c (test_misc): test some NULL
635 tolerance. (main): upd.
637 * cspi/spi_main.c (cspi_accessible_is_a): a NULL
638 implements no interfaces - so let's not crash.
640 * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
642 * libspi/accessible.c (spi_accessible_new_return): impl.
643 helper to calm the cut and paste, to cope with
644 NULL AtkObjects effectively and efficiently, and to kill
645 the referencing bugs.
647 * libspi/table.c (impl_getAccessibleAt),
648 (impl_getRowHeader, impl_getColumnHeader): upd.
650 * libspi/hyperlink.c (impl_getObject): upd.
652 * libspi/accessible.c
653 (impl_accessibility_accessible_get_child_at_index): upd.
656 (impl_accessibility_component_get_accessible_at_point): upd.
658 * test/test-simple.c (test_editable_text, test_text): impl.
661 * cspi/spi_editabletext.c
662 (AccessibleEditableText_insertText): constify.
664 * test/test-simple.c (focus_me): make more robust.
666 * libspi/accessible.c: remove some printfs in methods that
667 we test and work fine, so we can get a clean tree dump.
669 * test/test-simple.c (validate_accessible),
670 (validate_tree): make tree dumping pretty too.
672 * at-bridge/bridge.c (bridge_signal_listener): upd. so
673 it builds without debug on.
675 * test/test-simple.c (validate_accessible): fix the most
678 * cspi/spi_main.c (spi_object_release): leave the nicely
679 blanked memory around if in debug mode.
681 * cspi/spi-listener-impl.c (cspi_event): use add_check.
683 [committed to fixups2]
684 2001-12-05 Michael Meeks <michael@ximian.com>
686 * libspi/editabletext.c
687 (spi_editable_text_class_init): g_type_class_peek_parent,
688 not interface peek - so we finalize cleanly.
690 * libspi/accessible.c (spi_accessible_new): kill debug.
692 * test/test-simple.c (validate_accessible): fix ref.
693 leak, print strings before freeing them; sigh, comment a
694 chunk out due to strangeness.
695 (validate_tree): unref the child after use.
697 * cspi/spi_component.c (AccessibleComponent_getLayer):
698 add missing break statement, switch on zlayer not the
699 uninitialized retval.
701 * cspi/spi_main.c (cspi_object_add): add assert, local ref
702 before (possibly re-entering) remote unref.
704 * test/simple-at.c (main): unref the desktop.
706 * cspi/spi_accessible.c (cspi_accessible_is_a): move
709 * cspi/spi_main.c (cspi_accessible_is_a): here to
710 isolate bonobo API usage more.
712 * libspi/registry.c (impl_accessibility_registry_register_application):
715 2001-12-04 Michael Meeks <michael@ximian.com>
717 * test/test-simple.c (validate_tree): upd.
718 IndexInParent check to make it more lucid.
719 (validate_accessible): dump the tree.
721 * libspi/accessible.c (de_register_public_ref),
722 (get_public_refs): impl.
723 (spi_accessible_new): make more efficient & intuitive.
724 Now IndexInParent check works.
726 2001-12-04 Michael Meeks <michael@ximian.com>
728 * cspi/spi-util.h: remove.
730 * cspi/spi.h: move SPI_freeString here
732 * libspi/component.c (impl_accessibility_component_get_layer):
734 (impl_accessibility_component_get_mdi_z_order): ditto,
735 return -1 on error - is this ok ?
737 * test/test-simple.c (test_application): impl.
739 * cspi/spi_accessible.c (Accessible_getApplication),
740 (Accessible_isApplication): impl.
742 * libspi/registry.c (spi_listener_struct_free): release
743 the CORBA reference too.
745 * libspi/accessible.c
746 (impl_accessibility_accessible_get_parent): fix ref leak.
748 * libspi/registry.c (spi_registry_new): make the registry
749 immortal - we don't want it to go away ever.
751 * libspi/application.c
752 (spi_accessible_application_finalize): impl. cleanup.
754 * cspi/spi_registry.c
755 (deregisterGlobalEventListenerAll),
756 (deregisterGlobalEventListener),
757 (deregisterAccessibleKeystrokeListener): fix ref leak.
759 * cspi/spi_main.c (SPI_init): remove redundant ref.
761 * test/test-simple.c (unutterable_horror): impl. to force a
766 (impl_accessibility_registry_deregister_application): release
767 the application when we de-register it.
769 * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
770 until we have the infastructure to get it right.
772 2001-12-03 Michael Meeks <michael@ximian.com>
774 * libspi/Makefile.am: only build eventlistener.[ch]
776 * libspi/accessible.c
777 (impl_accessibility_accessible_get_child_at_index): don't leak.
779 * at-bridge/bridge.c (bridge_exit_func): cope with an exit
780 before we hit the idle handler.
782 * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
785 * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
787 * libspi/listener.c (impl_notify_event): check source
788 not NIL before unref.
790 * libspi/registry.c (impl_registry_notify_event): ditto.
792 * libspi/eventlistener.c
793 (impl_accessible_event_notify_event): unref the source.
795 * libspi/accessibleeventlistener.c
796 (impl_accessible_event_notify_event): unref the source.
798 * idl/Event.idl: remove 'hash_id' attribute - of no
801 * libspi/application.c (notify_listeners): upd list
803 (spi_application_object_event_listener),
804 (spi_application_toolkit_event_listener): upd to do correct
808 (_registry_notify_listeners): update.
809 (parse_event_type): this method also leaks like a sieve.
810 (impl_accessibility_registry_deregister_global_event_listener):
811 fix ETYPE_WINDOW case.
813 * libspi/application.c
814 (impl_accessibility_application_register_object_event_listener):
817 * libspi/hyperlink.c (impl_getObject): fix ref mistake.
819 * libspi/hypertext.c (impl_getLink): ditto.
821 * cspi/spi_main.c (cspi_object_add): remove
822 bogus CORBA_Object_duplicate.
824 * cspi/spi-listener-impl.c (cspi_event): dup/ref
827 * cspi/spi_accessible.c
828 (Accessible_getRelationSet): fix leak / referencing issue.
830 * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
831 (cspi_object_add, cspi_object_unref): upd.
832 (spi_object_release, get_live_refs): impl.
833 (cspi_cleanup): simplify.
835 * *.[ch]: s/boolean/SpiBoolean/
837 * cspi/spi_accessible.c (role_names): actualy order so it
838 corresponds with the enum !
840 * test/test-simple.c (test_roles): check some role strings
841 vs. enums to detect offset errors.
843 2001-12-01 Michael Meeks <michael@ximian.com>
845 * cspi/spi_main.c (cspi_object_add_check): impl. helper.
847 * cspi/spi_accessible.c (Accessible_getChildAtIndex):
849 (Accessible_getChildAtIndex): use cspi_add_check so we
850 check the ev before using a (possibly) invalid value.
852 * libspi/accessible.c
853 (impl_accessibility_accessible_get_parent): don't segv
856 * at-bridge/bridge.c (gtk_module_init): upd.
857 (bridge_property_event_listener): don't leak strings
859 (bridge_state_event_listener),
860 (bridge_property_event_listener): don't use a static
861 buffer in case of recursive event emission &
862 re-enterancy - split out the swathe of cut and paste
864 (emit_eventv): and fix 2 ref leaks here & comply to the
866 (bridge_register_app): rename to
867 (bridge_idle_init): this and kill arg parsing, split
868 various inits & bonobo-activation registration to module
869 init time, kill referencing error.
870 (bridge_exit_func): fix the same leak.
871 (bridge_focus_tracker): don't leak event structures
873 (bridge_signal_listener): more leakage and cut & paste
875 (bridge_key_listener): return the result - FIXME is
876 this polarity correct ?
877 (accessibility_keystroke_from_atk_key_event): rename
878 (accessibility_init_keystroke_from_atk_key_event): and stop
880 (gtk_module_init): return a value - not that it is checked by
882 (bridge_key_listener): register my horror at casting between
884 (bridge_get_registry): kill - not used.
886 * cspi/spi_accessible.c (Accessible_getRole): make return const.
888 * test/test-simple.c (test_roles): impl.
889 (test_desktop, validate_accessible, validate_tree): impl.
891 * cspi/spi_accessible.c (role_names): fixup bogus
892 MAX_ROLES setup, make constants const for efficient linkage
893 (AccessibleRole_getName): conform to coding style, make
896 2001-11-30 Michael Meeks <michael@ximian.com>
898 * cspi/spi.h: add missing prototype.
900 * libspi/registry.c (spi_listener_struct_new): fix sig.
902 * test/Makefile.am: add test-simple
904 * test/test-simple.c: add
908 * cspi/spi_main.c (SPI_init): make SPI_inited module global,
910 * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
911 do it straight - since otherwise we often get an activation race.
913 [ work before Bill duplicated a chunk of it ... ]
914 2001-11-30 Michael Meeks <michael@ximian.com>
916 * libspi/keystrokelistener.c
917 (spi_keystroke_listener_class_init): fixup arg
920 * libspi/eventlistener.c
921 (spi_event_listener_class_init): ditto.
923 * tests/test.sh: add.
925 * cspi/spi-listener-impl.h: update macros.
927 * cspi/spi-listener-impl.c
928 (cspi_event_listener_remove_callback): add
929 correct pre-conditions.
931 * cspi/spi_main.c (SPI_exit): guard vs. double
932 exits, exit the mainloop nicely.
933 (SPI_event_main): make more sense.
934 (SPI_init): move the atexit evilness here so we
936 (SPI_event_main): upd.
938 * test/simple-at.c: update for listener changes.
940 * registryd/registryd.c (main): prune kruft.
942 * libspi/libspi.h: upd.
944 * libspi/eventlistener.[ch]: rename broken macros.
946 * libspi/accessibleeventlistener.[ch]: remove.
948 * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
950 * test/test-simple.c: Add - automated tests.
952 * cspi/spi-listener-impl.c (cspi_event),
953 (cspi_key_event): add user_data to invoke.
954 (cspi_keystroke_listener_finalize): impl.
955 (cspi_keystroke_listener_class_init): upd.
958 (createAccessibleEventListener),
959 (AccessibleEventListener_addCallback),
960 (createAccessibleKeystrokeListener),
961 (AccessibleKeystrokeListener_addCallback): upd.
963 * libspi/deviceeventcontroller.c
964 (spi_device_event_controller_check_key_event): add public proto.
967 (impl_accessibility_registry_deregister_global_event_listener):
968 always init listeners.
969 (_registry_notify_listeners): yes it is.
971 * cspi/spi-listener-impl.c (cspi_key_event):
973 (cspi_event_listener_finalize): impl.
974 (cspi_event_listener_class_init): hook up.
975 (event_handler_new, event_handler_free),
976 (event_list_remove_by_callback): impl.
977 (cspi_event_listener_remove_callback),
978 (cspi_keystroke_listener_remove_callback),
979 (cspi_keystroke_listener_add_callback),
980 (cspi_event_listener_add_callback): upd.
982 * libspi/keystrokelistener.c
983 (keystroke_listener_object_finalize): kill
984 (spi_keystroke_listener_class_init): upd.
985 (spi_keystroke_listener_add_callback),
986 (spi_keystroke_listener_remove_callback): kill,
988 (impl_key_event): prune drasticaly.
990 * libspi/eventlistener.c
991 (spi_event_listener_add_callback),
992 (spi_event_listener_remove_callback): kill, use
994 (impl_accessible_event_notify_event): upd.
995 (spi_event_listener_object_finalize): remove.
997 * libspi/Makefile.am: use eventlistener.[ch]
999 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1001 * libspi/registry.c (_registry_notify_listeners):
1002 Changed listener loop iteration to use preferred convention.
1003 Got rid of string memory leaks caused be calling g_strconcat
1004 inside function calls.
1006 * libspi/registry.c (parse_event_type):
1007 Stopped g_strconcat memory leaks, free the g_strsplit return,
1008 g_strdup the split pieces when used, etc.
1010 2001-12-04 Bill Haneman <bill.haneman@sun.com>
1013 Change method 'compare' to return a 'difference set' rather than
1014 taking a StateSet as an out parameter (more Java-friendly).
1016 * idl/Accessible.idl:
1017 Added CORBA struct 'BoundingBox', to faciliate API changes below:
1019 * idl/Component.idl:
1021 Changed methods 'getExtents' and 'getImageExtents' in these
1022 interfaces to return a BoundingBox structure.
1023 (getPosition and getSize are redundant and possibly should be
1024 removed, rather than creating a corresponding Point struct.)
1026 * cspi/spi_component.c:
1027 Modify implementation of getExtents to reflect the above IDL
1032 Add (missing) AccessibleImage_getExtents () API.
1034 * docs/reference/cspi/at-spi-cspi-sections.txt:
1035 Added AccessibleImage_getImageExtents () to docs.
1037 2001-12-03 Bill Haneman <bill.haneman@sun.com>
1039 * idl/Component.idl:
1040 Added two methods, getLayer () and getMDIZOrder (), to reflect
1041 the new ATK methods atk_object_get_layer and
1042 atk_object_get_mdi_z_order. (Which arguably should be part of the
1043 AtkComponent API and AtkObject). Also added an enum,
1044 ComponentLayer, for the first method's return value.
1046 * libspi/component.c:
1047 Added implementations for these methods.
1049 * cspi/spi_component.c:
1051 Added cspi binding methods for above,
1052 AccessibleComponent_getLayer() and
1053 AccessibleComponent_getMDIZOrder().
1054 Added cspi enum 'AccessibleComponentLayer'.
1056 * docs/reference/cspi/at-spi-cspi-sections.txt:
1057 Added above methods to docs.
1061 Changed typedef for 'boolean' type (and all references to it) to
1062 SPIBoolean, to avoid keyword clashes with C++.
1065 Changed usages of 'boolean' to SPIBoolean.
1067 * test/keysynth-demo.c:
1068 Changed usages of 'boolean' to 'gboolean' (since this is a gnome
1069 app), except where SPIBoolean is required by the callbacks API.
1071 2001-12-02 Bill Haneman <bill.haneman@sun.com>
1073 * cspi/spi_registry.c:
1074 Removed obsolete X event loop for passive keygrabs (which now
1077 * registryd/registryd.c:
1078 Removed unnecessary call to gdk_init() [cruft]. This also allows
1079 removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
1082 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1084 * docs/reference/cspi:
1085 Included docs for SPI_freeString in generated documentation.
1088 Renamed spi_freeString to SPI_freeString, for consistency. Added
1089 documentation for this function.
1092 Renamed spi_freeString to SPI_freeString, for consistency.
1093 Removed obsolete method declaration string_from_corba_string.
1095 * test/keysynth-demo.c:
1096 Small tweak to comments.
1099 Stopped leaking the strings returned from CSPI.
1101 2001-11-28 Bill Haneman <bill.haneman@sun.com>
1103 Merged Michael's branch (see his ChangeLog entries below).
1105 * at-bridge/bridge.c: Explicitly hold a ref to the registry while
1106 bridge is alive, release on exit.
1108 * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
1109 Fix type check macro.
1112 Added AccessibleKeystrokeListener_unref() method to reduce leakage.
1115 Added is_gnome_app static, and method cspi_is_gnome_app(),
1116 so we can call the appropriate shutdown routine at exit in SPI_exit.
1118 * cspi/spi_main.c (cspi_object_ref):
1119 Duplicate the corba object passed in, since we're keeping it around.
1121 * cspi/SPI_exit.c, cspi_cleanup:
1122 Moved the releasing of the live refs to its own function, so we
1123 can put it in g_atexit (). Call the appropriate shutdown API
1124 depending on whethe calling client is a gnome app or not
1125 (bonobo_main_quit or CORBA_ORB_shutdown).
1127 * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
1128 Unref the listener when this method is called, after
1129 deregistration. Updated the API docs to note this behavior.
1131 * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
1132 Bugfixes: Ref the bonobo object when returning a parent or child
1133 reference, or an AccessibleRelation. Generally made sure
1134 BonoboObject refcount is incremented whenever we return an
1137 * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
1138 Fixed typo/bug in signal declaration.
1140 * libspi/accessibleeventlistener.h:
1143 * libspi/application.c (spi_application_new):
1144 Fixed leak in initialization.
1147 Remembered to increment bonobo-object refcount when returning
1148 children (applications) from desktop object.
1149 Added (empty) finalize method.
1151 * libspi/deviceeventcontroller.c:
1152 Hold a ref to listeners inside DEControllerKeyListeners.
1153 Added dec_key_listener_free() method. Use prepend instead of
1154 append in key_listener list. Fixed some refcount madness and
1155 leaks in the listener registration/deregistration - deregistration
1156 now calls dec_key_listener_free() on listeners, and on the
1157 temporarily constructed dec_key_listener() used to perform the search/match.
1159 * libspi/hypertext.c (spi_hypertest_finalize):
1160 Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
1161 class. Also fixed spi_hypertext_interface_new() and
1162 SpiHypertextClass. Fixed a couple of paren-whitespace formatting bugs.
1164 * libspi/hypertext.h:
1165 Removed pointless and duplicate AtkObject pointer from
1168 * libspi/keystrokelistener.c:
1169 Fixed incorrect type of keystroke_listener_parent_class,
1170 renamed keystroke_listener_object_finalize to
1171 spi_keystroke_listener_object_finalize.
1172 Fixed typo in signal declaration
1173 (spi_keystroke_listener_class_init).
1175 * libspi/registry.c:
1176 Added funcsions spi_listener_struct_new() and
1177 spi_listener_struct_free() to help with memory management issues.
1178 We also now use these methods instead of gnew + poking stuff into
1179 the struct, and to decrement listener counts/free the listeners
1180 when deregistering them.
1181 Fix more refcount bugs in getDesktop() and
1182 getDeviceEventController().
1185 De-ref the desktop after enumerating the applications. Explicitly
1186 decrement the refcounts on the created listeners on exit (using
1187 _unref for keystroke listeners, and via the
1188 deregisterGlobalEventListenerAll command for other event
1191 2001-11-27 Michael Meeks <michael@ximian.com>
1193 * cspi/spi-listener.h: fixup enum.
1195 2001-11-27 Michael Meeks <michael@ximian.com>
1197 * cspi/spi-listener-impl.c (cspi_event_listener_new),
1198 (cspi_keystroke_listener_new): Use the cspi variants.
1200 2001-11-26 Michael Meeks <michael@ximian.com>
1202 * test/keysynth-demo.c: fix 2 compile warnings, missing
1205 * test/simple-at.c (report_focussed_accessible),
1206 (report_focus_event, report_button_press),
1207 (check_property_change, is_command_key),
1208 (report_ordinary_key_event, report_command_key_event): upd.
1210 * util/mag_client.h: include pre-requisites.
1212 * libspi/accessibleeventlistener.c
1213 (spi_event_listener_object_finalize): free any lingering
1216 * libspi/keystrokelistener.c
1217 (keystroke_listener_object_finalize): ditto.
1219 * cspi/spi-listener-impl.[ch]: Add to implement cspi style
1220 callbacks, with cspi types.
1222 * cspi/spi_event.c (createAccessibleEventListener): chain to
1223 (AccessibleEventListener_addCallback): here.
1224 (createAccessibleKeystrokeListener): chain to
1225 (AccessibleKeystrokeListener_addCallback): here.
1227 * libspi/keystrokelistener.c
1228 (spi_keystroke_listener_class_init): add signal.
1229 (impl_key_event): emit the event.
1230 (boolean_handled_accumulator): impl.
1231 (marshal_BOOLEAN__POINTER): add, gack.
1233 * libspi/accessibleeventlistener.c
1234 (spi_event_listener_class_init): add signal.
1235 (impl_accessible_event_notify_event): emit the signal &
1236 make the loop efficient.
1237 (spi_event_listener_add_callback): prepend the callback.
1239 * libspi/accessibleeventlistener.h: add an 'event' signal,
1240 decl type on callback.
1242 * libspi/keystrokelistener.h: ditto.
1244 * cspi/spi-listener.h: make methods typesafe and
1245 make them use the new event typedefs.
1247 * test/simple-at.c (report_focussed_accessible):
1248 include mag_client.h
1249 Use *(void *)text_interface not the other thing.
1251 * configure.in: add gtk to registryd bits - since we use
1254 * util/magnifier.c: include libbonobo.h
1256 2001-11-25 Bill Haneman <bill.haneman@sun.com>
1258 * test/keysynth-demo.c:
1259 Turned this into a simple scanning keyboard, to demonstrate the
1260 use of g_timeout_add () as a means of creating timers for
1261 scanning, and the use of GtkStyle for visually indicating when
1262 virtual keyboard elements are selected.
1264 keysynth-demo now listens to any keyboard keys with zero-valued
1265 keycodes (i.e. 'unused' keys) and interprets them as
1268 Reworked the shiftlatch code so that shift-down state isn't held
1269 for long periods (it's only synthesized immediately prior to
1270 the keysynth event it's modifying). Note that shiftlatch in this
1271 demo is a convenience, not intended to take the place of AccessX
1272 which is the better choice for getting 'sticky' modifier keys.
1274 * libspi/deviceeventcontroller.c:
1275 * at-bridge/bridge.c:
1276 * cspi/spi_registry.c:
1277 Removed some debug print stuff, and put other verbosity in #ifdef
1282 Implemented some more of the magnifier IDL for the simple
1283 magnifier: namely, getZoomRegionParams.
1284 Added mag_x and mag_y members to MagnifierData struct, aid of this
1286 Added GtkWindow::realize signal handler to magnifier, to keep it
1287 from receiving keyboard focus from the WM.
1289 2001-11-23 Mark McLoughlin <mark@skynet.ie>
1291 * cspi/spi-private.h: my guess at what michael forgot
1292 before he ran off to NZ :-)
1294 2001-11-23 Michael Meeks <michael@ximian.com>
1296 * cspi/spi_event.c (AccessibleEventListener_removeCallback):
1297 comment out non existant method invoke so we link.
1299 * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
1300 use bonobo_exception_get_text for more friendly warnings.
1302 * cspi/spi.c (Obj_Add): move into spi_main & rename
1303 spi_object_add; kill spi.c
1305 * cspi/spi_registry.c
1306 (deregisterGlobalEventListener),
1307 (deregisterGlobalEventListenerAll),
1308 (registerGlobalEventListener): fix exception leaks.
1310 * cspi/spi_main.c (spi_exception): impl. helper, so we
1311 don't leak exceptions.
1313 * cspi/spi_selection.c
1314 (AccessibleSelection_deselectSelectedChild): return the
1317 * cspi/spi_main.c (spi_ev): impl; hack - gack.
1318 (spi_registry): ditto.
1319 (SPI_init): guard against double inits.
1321 * cspi/*.c: use spi_ev (), and spi_registry () where
1322 appropriate - a temporary hack until we have something
1323 better. Use spi_object_add
1325 2001-11-22 Michael Meeks <michael@ximian.com>
1327 * cspi/Makefile.am: re organise, install the headers.
1329 * cspi/*.h: add G_BEGIN/END_DECLS
1331 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1334 Added non-preemptive keylistener for key events with no modifiers
1335 and shift-only modifier.
1337 * libspi/keystrokelistener.c:
1338 Removed some verbose diagnostics printout.
1340 * cspi/spi_registry.c:
1341 Fixed a bug that caused all key listeners to be registered as
1344 * libspi/deviceeventcontroller.c:
1345 Fixed bug that caused XGrabKey (preemptive key grab) to be called
1346 for non-preemptive key masks.
1349 2001-22-11 Bill Haneman <bill.haneman@sun.com>
1351 * docs/reference/idl/at-spi-idl-docs.sgml:
1352 * docs/reference/idl/at-spi-idl-sections.txt:
1353 * docs/reference/idl/at-spi-idl-overrides.txt:
1354 Added missing files.
1356 * docs/reference/Makefile.am:
1357 removed idl from SUBDIRS until we can figure a way to get gtk-doc
1358 to scan the IDL files :-(
1363 Added .cvsignore files.
1365 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1367 * libspi/deviceeventcontroller.c:
1368 * libspi/keystrokelistener.c:
1370 * cspi/spi_registry.c:
1371 Added filters for KeySets, KeyEventSeq, and event types to key
1372 event dispatching, so listeners should only receive those events
1373 that they requested :-)
1375 2001-21-11 Bill Haneman <bill.haneman@sun.com>
1380 * docs/reference:Makefile.am:
1381 * docs/reference/cspi:
1382 * docs/reference/cspi:Makefile.am:
1383 * docs/reference/cspi:tmpl:
1384 * docs/reference/cspi:tmpl:*.sgml:
1385 * docs/reference/idl:
1386 * docs/reference/idl:Makefile.am:
1387 * docs/reference/idl:at-spi-idl-sections.txt:
1388 * docs/reference/idl:at-spi-idl-docs.sgml:
1389 * docs/reference/idl:tmpl:
1390 * docs/reference/idl:tmpl:*.sgml:
1392 Restructured docs directory to allow separate 'reference' docs
1393 section, and forked idl and cspi docs. Added the sgml template
1394 files to CVS. Added the first sections/structural sgml for the
1397 2001-11-21 Laszlo Peter <laca@ireland.sun.com>
1399 * configure.in, libspi/Makefile.am: find libXtst.
1401 2001-11-21 Michael Meeks <michael@ximian.com>
1403 * test/accessx-gui.c: s/spi_value/value/ - doh.
1405 * libspi/base.[ch]: add.
1407 2001-18-11 Bill Haneman <bill.haneman@sun.com>
1409 * idl/Accessible.idl:
1410 * idl/Application.idl:
1413 Started gtk-doc cleanup on IDL.
1415 * libspi/deviceeventcontroller.c:
1416 Added and connected non-preemptive key notification from the
1417 toolkits (in addition to the pre-emptive support from XServer
1418 which we had before, but which causes 'focus flashing'). Filters
1419 are presently limited to key modifiers and global/non-global,
1420 KeySets are presently ignored, as are KeyEvent masks.
1422 Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
1423 structs into the persistant structure rather than just storing
1424 pointers to things that might not persist across servant
1427 The XGrabKey call now does async keygrabs, because synchronous
1428 ones were deadlocking with GDK_event code in a very nasty way.
1430 Added boolean to internal method notify_keylisteners, to indicate
1431 whether the event came from the 'toolkit source' or the 'global
1432 (XServer) source' - this is used in the notification process to
1433 determine which listeners to send the event to.
1435 deviceeventcontroller.c is now warning-free.
1437 * libspi/registry.c:
1438 Fixed regression in application de-registration.
1439 Also fixed some really brain-dead weirdness having to do with
1440 event dispatching - event structs are now duplicated before being
1441 re-marshalled in the dispatch to listeners. This also fixes a
1442 Solaris build problem.
1445 2001-20-11 Michael Meeks <michael@ximian.com>
1448 (impl_accessibility_registry_deregister_global_event_listener):
1451 * libspi/deviceeventcontroller.c
1452 (spi_device_event_controller_check_key_event): return
1453 FALSE on no virtual method.
1455 * libspi/*..h: make includes work on a correctly pathed install.
1457 * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
1459 * libspi/application.h: kill unused ( and whacked out )
1460 gboolean *spi_application_set_id (AtkObject *app, long id);
1462 2001-20-11 Michael Meeks <michael@ximian.com>
1464 * libspi/*.[ch]: further convert to bonobo's type func
1465 macros, remove redundnant casts etc.
1467 * libspi/text.c s/accessibility_text/spi_text/g,
1468 re-order to de-cruft.
1470 * libspi/hypertext.c: re-order to kill a huge slew
1471 of redundant forward decls.
1473 * libspi/relation.c: ditto.
1475 * libspi/image.c: ditto.
1477 * */.cvsignore: update
1479 2001-20-11 Michael Meeks <michael@ximian.com>
1481 * libspi/deviceeventcontroller.c
1482 (_controller_register_with_devices): use g_getenv,
1483 kill stdlib.h include.
1485 * libspi/keystrokelistener.c
1486 (spi_keystroke_listener_get_type): kill
1487 (spi_keystroke_listener_class_init),
1488 (spi_keystroke_listener_init): rename to this.
1490 * libspi/text.c (impl_getAttributes): fix warning / bug.
1492 * libspi/*.[ch]: more headers, includes and over commenting.
1494 2001-20-11 Michael Meeks <michael@ximian.com>
1496 * libspi/*.[ch]: fixup headers, includes and over commenting.
1498 * libspi/image.c (impl__get_imageDescription): const
1499 correctness warning fix. remove redundant casting.
1501 * libspi/table.c (impl_getRowDescription): ditto.
1502 (impl_getColumnDescription): ditto.
1504 * libspi/libspi.h: add.
1506 2001-19-11 Michael Meeks <michael@ximian.com>
1508 * libspi/editabletext.c (impl_setAttributes): fix warnings.
1510 * libspi/component.c (accessibility_component_get_type):
1511 rename to (spi_component_get_type): and macroify.
1512 (accessibility_component_init): rename to
1513 (spi_component_init): this
1514 (accessibility_component_class_init): rename to
1515 (spi_component_class_init): this
1517 * libspi/action.c (spi_action_get_type): kill, use the macro.
1519 * libspi/deviceeventcontroller.c (_compare_listeners): re-order
1522 * libspi/application.c (spi_application_object_event_listener),
1523 (impl_accessibility_application_register_object_event_listener):
1524 warning fixes / const understanding updates.
1526 * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
1529 2001-18-11 Bill Haneman <bill.haneman@sun.com>
1531 * libspi/spi_accessible.c: Added docs and C bindings for
1532 AccessibleStateSet. (No implementations yet). Documentation
1533 coverage for C bindings now 100%. Made docs for event listeners
1538 boolean notifyListenersSync (in DeviceEventListener listener,
1539 in DeviceEvent event);
1541 oneway void notifyListenersAsync (in DeviceEventListener listener,
1542 in DeviceEvent event);
1544 Added DeviceEventListener and DeviceEvent structs (may deprecate
1545 KeyStroke and KeystrokeListener in favor of this generic
1546 event/listener framework for devices).
1548 * libspi/deviceeventcontroller.c:
1550 Changed some key listener code to take masks, etc., and paved the
1551 way for integration of toolkit/non-preemptive key events. Changed
1552 signatures of some internal methods.
1554 * at-bridge/bridge.c:
1555 Fixed regression connecting to interface signals, apparently
1556 caused by GTK+ changes.
1558 Added an internal bridge_state_listener to deal with
1559 property-change:accessible-state signals.
1561 Changed the key_listeners GList to store structs (including masks,
1562 etc.) instead of just CORBA_Objects (required for full
1563 implementation of key listener API).
1565 Connected the bridge to all currently supported Atk signals.
1566 Events now supported:
1567 object:property-change
1568 object:property-change:accessible-name
1569 object:property-change:accessible-state
1570 object:property-change:accessible-description
1571 object:property-change:accessible-parent
1572 object:property-change:accessible-value
1573 object:property-change:accessible-role
1574 object:property-change:accessible-table-caption
1575 object:property-change:accessible-table-column-description
1576 object:property-change:accessible-table-column-header
1577 object:property-change:accessible-table-row-description
1578 object:property-change:accessible-table-row-header
1579 object:property-change:accessible-table-summary
1580 object:children-changed
1581 object:visible-data-changed
1582 object:selection-changed
1583 object:text-selection-changed
1585 object:text-caret-moved
1587 object:row-reordered
1589 object:column-inserted
1590 object:column-reordered
1591 object:column-deleted
1592 object:model-changed
1594 2001-16-11 Bill Haneman <bill.haneman@sun.com>
1596 * libspi/hyperlink.c,h:
1597 Fixed some broken stuff in hyperlink.
1599 * libspi/relation.h:
1600 * libspi/relation.c:
1601 * cspi/spi_accessible.c:
1602 Initial implementations of AccessibleRelation methods, and docs.
1604 * libspi/accessible.c:
1605 Fixed a bug that caused SEGV if an accessible
1606 object's description is NULL, and a client
1607 requests it. An empty string is now returned.
1609 * cspi/spi_editabletext.c:
1610 * cspi/spi_hypertext.c:
1612 * cspi/spi_hyperlink.c:
1616 Doc coverage now 95%.
1618 2001-16-11 Bill Haneman <bill.haneman@sun.com>
1620 One last namespacing revision:
1621 * libspi/accessibleeventlistener.[ch]:
1622 Renamed SpiAccessibleEventListener to SpiEventListener,
1623 (no need for two namespaces ;-)
1625 And lots of documentation fixes:
1627 * docs/at-spi-docs.sgml:
1628 Fixed 'underscore vs. hyphen' bug that was preventing
1629 the gtk-doc API docs from being automatically generated.
1632 * cspi/spi-listener.h
1634 * cspi/spi_accessible.c
1636 * cspi/spi_application.c
1637 * cspi/spi_component.c
1638 * cspi/spi_editabletext.c
1640 * cspi/spi_hypertext.c
1642 * cspi/spi_registry.c
1643 * cspi/spi_selection.c
1647 * docs/at-spi-docs.sgml
1648 * docs/at-spi-sections.txt
1650 Added and fixed up gtk-doc documentation in cspi.
1652 Interfaces now (fully) documented (subject to revision and enhancement):
1654 Event Listener Support
1656 AccessibleApplication
1660 AccessibleEditableText
1667 AccessibleRelationSet
1672 2001-14-11 Bill Haneman <bill.haneman@sun.com>
1674 * at-bridge/bridge.c:
1675 Initial work for toolkit-level key snooper connection by bridge.
1680 New typedefs and fixes to support new namespacing, and cleaner
1681 separation of cspi bindings from libspi bonobo implementation.
1682 Removed inconsistent and extraneous Spi* namespace prefix that
1683 had crept into cspi headers.
1684 Lots of comment fixes that sed had missed.
1686 * cspi/spi-roletypes.h:
1687 * cspi/spi-statetypes.h:
1688 Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
1689 to AccessibleRoleType.
1691 * libspi/accessibleeventlistener.h:
1692 Fixed minor namespacing weirdness.
1694 * libspi/deviceeventcontroller.c:
1695 Reordered some internal API for device listeners.
1696 Changed the key registry final boolean to 'is_system_global'
1697 rather than 'is_synchronous', which is more descriptive of its
1699 Added spi_device_event_controller_new().
1700 Added SpiRegistry backpointer to SpiDeviceEventControllerClass.
1702 * libspi/keystrokelistener.[ch]:
1703 Namespaced KeystrokeListener to SpiKeystrokeListener.
1704 Changed uses of keymasks to use SPI_ prefix, and did other
1707 * libspi/keymasks.h:
1708 Namespaced keymask constants with SPI_ prefix.
1710 * libspi/registry.c:
1711 Some warning fixes, and knock-on fixes from namespace changes.
1714 Added rules for accessx-gui test program.
1716 * test/accessx-gui.c:
1717 Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
1718 utility. It doesn't actually use at-spi, but it's still cool and
1721 * test/keysynth-demo.c:
1725 Fixes so that these test clients work properly with the namespaced
1726 libraries. (Incompletely tested for technical reasons, fixes may follow)
1729 2001-13-11 Michael Meeks <michael@ximian.com>
1731 * libspi/application.c
1732 (impl_accessibility_application_get_version),
1733 (impl_accessibility_application_get_toolkit_name):
1735 (impl_accessibility_application_set_id),
1736 (impl_accessibility_application_get_id): remove
1737 redundant casting code.
1739 * libspi/action.c (impl_getDescription): fix warnings.
1741 * libspi/accessible.c
1742 (impl_accessibility_accessible_get_parent),
1743 (impl_accessibility_accessible_get_child_at_index),
1744 (impl_accessibility_accessible_get_state),
1745 (impl_accessibility_accessible_get_relation_set):
1746 warning fixes & include action.h
1748 2001-13-11 Michael Meeks <michael@ximian.com>
1750 * *.[ch] fix bits I screwed up:
1752 s/([^ \tb(\*\&\?\",])spi_/\1/g;
1753 s/([^ \tb(\*\&\?\",])Spi/\1/g;
1755 2001-13-11 Michael Meeks <michael@ximian.com>
1757 * *.[ch] Namespace libspi into spi_ and Spi.
1759 2001-13-11 Michael Meeks <michael@ximian.com>
1761 * Makefile.am: dist & install at-spi-1.0.pc
1763 * libspi/Makefile.am: install into at-spi-1.0
1765 * idl/Makefile.am (idldir): install into at-spi-1.0
1767 * at-spi-1.0.pc.in: add.
1769 * configure.in: build it.
1771 2001-12-11 Bill Haneman <bill.haneman@sun.com>
1773 * test/keysynth-demo.c:
1774 Use a 'realize' signal-handler to set the WM properties for
1775 the virtual keyboard, rather than making it a "POPUP" type
1776 override-redirect window (thanks to anders carlsson for that
1779 2001-11-11 Bill Haneman <bill.haneman@sun.com>
1782 * test/keysynth-demo.c:
1783 Added new test of key synthesis, which creates a simple
1784 (mouse-operated) onscreen keyboard. It inserts key events into
1785 the currently-focused window, thus it does not grab keyboard focus
1788 * cspi/spi_registry.c:
1789 Added C binding for AT-SPI generateKeyEvent.
1791 * libspi/deviceeventcontroller.c:
1792 Added call to XFilterEvent so that key listener works with XIM (we
1793 hope). Added event_synth_type to generateKeyEvent, so that we can
1794 produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
1795 synthesize a press/release pair for KeySyms.
1797 2001-11-09 Bill Haneman <bill.haneman@sun.com>
1799 * libspi/Makefile.am:
1800 * registryd/Makefile.am:
1801 (temporary) hack to include libXtst in libspi and registryd.
1802 (Needed for keystroke synthesis, see below).
1805 Improved API for registerKeystrokeListener, in accordance with
1806 discussions with Gnopernicus team and X server research.
1808 * libspi/registry.c:
1809 * libspi/deviceeventcontroller.c:
1810 * libspi/accessible.c:
1811 * libspi/keystrokelistener.c:
1812 Changes and fixes to support keylisteners for potentially
1813 consumed key events (that is, 'passive grabs').
1814 Added implementation for generateKeyEvent() [untested].
1817 Changes to registerKeystrokeListener() API, as above.
1818 Added deregisterGlobalEventListenerAll(), and
1819 deregisterKeystrokeListener(), which are needed for clean exit of
1821 Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
1822 and a macro ALL_KEYS which may be used in place of a KeySet pointer.
1824 * cspi/spi_registry.c:
1825 Added implementations of function prototypes mentioned above.
1827 * registryd/registryd.c:
1828 Added the key listener event source as a g_timeout(), to allow
1829 receipt of key events that are not caught by GDK (since GDK
1830 doesn't support passive keygrabs, this was necessary).
1833 Changed to attach a keylistener to 'Alt' keys, and
1834 respond to the following keycommands: Alt-M (toggle magnifier);
1835 Alt-F (toggle speech); Alt-Q (quit).
1836 Added an exit routine to deregister the listeners, and a key
1837 listener that prints some key info to the console when a key
1838 matches the listener mask (and is thus received by the listener).
1840 * util/idl/Magnifier.idl:
1841 Changes to magnifier API to support multiple zoom regions,
1842 non-uniform scaling in x and y, markDirty, and a host of other
1843 features that would be useful to magnification.
1846 * util/mag_client.c:
1847 * util/mag_client.h:
1848 * util/mag_control.c:
1850 Source code changes to support the above IDL changes.
1853 As above, and also changes to use a (slower) generic conversion
1854 path for colormap conversions, since the fast RGB conversions have been
1855 reported to fail for 16-bit displays.
1857 2001-10-26 Michael Meeks <michael@ximian.com>
1859 * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
1861 <2001-10-26 Laszlo Peter <laca@ireland.sun.com>
1863 * at-bridge/Makefile.am: fix LDFLAGS.
1865 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
1867 * at-bridge/bridge.c:
1868 Re-worked listeners for toolkit events, now we have signal
1869 and property listeners. Added a private method
1870 register_atk_event_listeners(), which registers with the
1871 various atk and gtk signals we need to monitor in order to emit
1873 Added emission hook for AtkObject:property-change events, to
1874 support the 'property listeners'.
1875 Fixed some alloc()s of Accessibility_Event structs to use CORBA
1878 * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
1879 which emit warnings and exit, respectively, if CORBA errors occur
1880 during remote calls, and we now use these methods to check most of
1881 our CORBA calls in the C bindings.
1883 * cspi/spi_accessible.c:
1884 Changed AccessibleSelection_refSelectedChild() to
1885 AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
1886 now increment refcounts.
1888 * cspi/spi_component.c:
1889 Fixed some long pointer casts (dangerous!) to pass pointers to
1890 CORBA_longs of the proper type to the CORBA stubs, and copy the
1891 data into the longs that were passed into the C bindings code.
1893 * at-bridge/bridge.c:
1895 * libspi/accessible.c:
1896 Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
1897 hyperlinks, AtkHyperlink is an object type.
1899 * libspi/application.c:
1900 Added various conversions to and from "generic" event types and
1901 atk-specific types; this is really part of the 'bridge'
1902 implementation but is valid for all AtkObject-based accessibility
1905 * libspi/editabletext.c:
1906 Fixed nasty bug wherein editable text's finalize method was
1907 unref'ing tha AtkObject reference that the text parent class was
1908 about to unref _again_. There was also a nasty inheritance bug
1909 that meant that the AccessibleEditableText class was corrupt.
1911 * libspi/selection.c:
1912 Provided implementations for some selection API that was broken.
1914 * idl/Application.idl:
1915 Added registerObjectEventListener () method.
1918 Fixed a number of return values that were Bonobo_Unknowns from
1919 bonobo_object_corba_objref(), which I
1920 forgot to dup before returning. Changed instances of
1921 bonobo_object_corba_objref (bonobo_object(o)) to
1922 BONOBO_OBJREF(o), for concision and clarity.
1924 <2001-10-13 Louise Miller <louise.miller@sun.com>
1926 * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
1927 idl/Event.idl, idl/Registry.idl
1928 Changed these files to include Bonobo_Unknown.idl instead
1931 <2001-09-10 Marc Mulcahy <marc.mulcahy@sun.com
1933 * libspi/component.c libspi/component.h:
1934 Fixed typo. Added assertions for object checks in
1935 AccessibleComponent code.
1937 <2001-10-09 Bill Haneman <bill.haneman@sun.com>
1939 * idl/Accessible.idl:
1940 Added 'isEqual (Accessible *object)'
1941 method for Accessible. (Not Yet Implemented).
1944 Changed signature of registerKeystrokeListener() to
1945 take a KeySet and KeyEventSeq so that specific keys and event
1946 types could be requested for monitoring, and added a flag
1947 is_synchronous so that either synchronous or asynchronous
1948 notification could be requested. (However this is not all
1949 implemented yet). This also meant adding two new typedefs,
1950 KeyEventSeq and KeySet.
1953 Added two new relations, RELATION_TOOLTIP_FOR and
1954 RELATION_LEAFNODE_OF.
1957 Added new state, STATE_HAS_TOOLTIP.
1959 * libspi/text.c, editabletext.c:
1960 Added new assertions to all casts of bonobo-objects from
1961 CORBA servants, to prevent Text API calls on non-text objects.
1962 Changed suspect casts of int-pointer types, so that we
1963 always send a valid CORBA_long pointer to the CORBA APIs that use
1964 in/out long parameters. We then have to copy from the CORBA_long
1965 into the regular long or int for return to the C bindings, or
1966 vice-versa when returning parameters from ATK calls to the bonobo wrappers.
1969 * libspi/deviceeventcontroller.c:
1970 Cleaned these sources up.
1972 Changed return type for getCharacterAtOffset to
1973 CORBA_unsigned_long, to allow for 32-bit characters.
1976 <2001-10-08 Bill Haneman <bill.haneman@sun.com>
1980 Fixed 'make dist' so that distro compiles...
1981 * libspi/keymasks.h:
1983 * cspi/spi-listener.c:
1984 KeystrokeListenerCB now returns a boolean.
1986 Added KeyEventType struct, and KeyStroke.
1987 Also added createKeystrokeListener(),
1988 KeystrokeListener_addCallback(),
1989 KeystrokeListener_removeCallback(), and added a keymask to
1990 registerKeystrokeListener().
1991 * cspi/spi_accessible.c:
1992 Changed numerous return types for interfaces from
1993 AccessibleComponent to Accessible<InterfaceName>; this was
1994 probably a cut-and-paste error.
1996 Implementations of new KeystrokeListener api (from spi.h,
1999 Changes to key modifier mapping.
2000 Created ControllerEventMask struct.
2001 Made DeviceEventController derive from Bonobo::Unknown.
2003 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
2004 * libspi/deviceeventcontroller.c:
2005 Added a number of new internal (private) methods.
2006 * libspi/editabletext.c:
2007 * libspi/editabletext.h:
2008 Fixed a number of bugs related to the fact that
2009 editabletext inherits from text. Fixed the EditableText struct,
2010 the init() call, and use correct casts when calling Text methods
2011 from an EditableText object. Removed (duplicate) atko from the
2012 EditableText structure, we use the one in the parent Text
2013 structure via the casts mentioned above.
2014 * libspi/keystrokelistener.[ch]:
2015 * libspi/registry.c:
2016 Changes in support of keyboard handling (above).
2018 Keyboard handling, though partly functional, is still not
2019 recommended for at-spi client use as there is considerable
2020 work yet to be done.
2023 Changed some places where pointers to various int types
2024 are cast to be pointers to CORBA_long types and vice-versa:
2025 pointer casting is not safe so we pass pointers of the correct
2026 types and then cast the result before putting it into the target
2029 * libspi/text.h: minor typos corrected.
2031 We now speak not only the name of a Text element, but the
2032 first sentence of its content, when it receives focus.
2033 I also changed the text compression to 75% from 50%.
2034 * util/Accessibility_Util.server.in:
2035 Changed the default magnifier type to be a 3x vertical
2036 splitscreen magnifier (was previously a 2x horizontal one).
2038 <2001-10-03 Bill Haneman <bill.haneman@sun.com>
2040 * libspi/keystrokelistener.h:
2041 * libspi/keystrokelistener.c:
2042 Initial functional implementations of KeystrokeListener.
2045 <2001-10-05 Marc Mulcahy <marc.mulcahy@sun.com>
2047 Fixed string handling for NULL strings in libspi.
2048 Added spi_freeString to free strings returned by C bindings.
2050 <2001-09-30 Bill Haneman <bill.haneman@sun.com>
2052 * libspi/keystrokelistener.h:
2053 * libspi/keystrokelistener.c:
2054 Began (no-op) implementations of KeystrokeListener
2056 * libspi/deviceeventcontroller.c:
2057 * libspi/deviceeventcontroller.h:
2058 Began creating implementations of DeviceEventController,
2059 to handle keystroke and mouse event listening and
2061 * libspi/accessible.c:
2062 Stubbed-in the implementations for
2063 Accessibility_Accessible_getState and
2064 Accessibility_Accessible_getRelationSet.
2065 * libspi/registry.c:
2066 Improved de-registration process and fixed some bugs,
2067 deregistration now works correctly.
2069 Added initialization of applications list (to NULL).
2071 Reduced speech compression from 0.5 to 0.7, for demo.
2072 Changed call to gdk_window_set_decorations()
2073 to gtk_window_set_decorated().
2074 * at-bridge/bridge.c:
2075 Bridge now deregisters when app exits, via
2076 registration of a cleanup function
2077 with the g_atexit() call.
2078 Required making 'app' static, renamed 'this_app'.
2079 Fixed broken use of bonobo_init, passing argv wrongly.
2081 <2001-09-27 Bill Haneman <bill.haneman@sun.com>
2085 Created a new directory for
2086 accessibility-related utilities, primarily for
2087 testing and demo purposes, but with possible
2094 Onscreen magnifier utility that
2095 is implemented as a bonobo service.
2097 * util/mag_client.c:
2098 * util/mag_client.h:
2099 Client-side support (simple C bindings)
2100 for Magnification service
2102 * util/mag_control.c:
2103 Client program example for
2104 Magnification service
2106 * util/Accessibility_Magnifier.server.in:
2107 Bonobo-activation file for the
2108 Magnification service.
2111 * util/idl/Magnifier.idl:
2112 IDL defining the bonobo Magnification
2116 Modifications to use the bonobo-activated magnifier
2117 above, in place of trying to connect to an existing
2118 magnifier that uses socket-listening IPC.
2120 If env variable MAGNIFIER is set, a magnifier service
2121 will be started if one does not exist.
2123 <2001-09-25 Bill Haneman <bill.haneman@sun.com>
2124 * at-bridge/bridge.c:
2125 applied patch from Marc to build and run
2126 against new glib and gtk+ (seemed like a change
2127 to bonobo_init signature was made ?)
2129 made festival-server support turned off by default.
2130 Added support for a simple magnifier (off by default)
2131 which will be added to a 'util' directory later.
2132 * at-bridge/Makefile.am:
2133 Changed "application.h" header from a 'source'
2134 to a 'dependency' of libat-bridge.
2136 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2144 Added interface implementation c files to list of
2145 includes so they are included in libcspi.
2148 Changed prototype of AccessibleAction_doAction to return a
2150 Changed prototype of AccessibleTable_getCaption to
2151 return an Accessible.
2152 Changed prototype of AccessibleTable_getSelectedRows
2153 and AccessibleTable_getSelectedColumns to
2154 return a long (returns the number of selected rows
2155 or columns respectively).
2156 Changed name of AccessibleText_refRunAttributes to
2157 AccessibleText_getAttributes.
2158 Changed prototype of AccessibleText_getCharacterExtents to
2159 return a void rather than a boolean.
2160 Added support for a AccessibleCoordType parameter
2161 specifying what type of coordinates are desired.
2162 Added an AccessibleCordType parameter to
2163 AccessibleText_getPointAtOffset.
2165 * cspi/spi_accessible.c:
2166 Added code to return the outstanding interfaces from
2167 Accessible_queryInterface.
2169 * cspi/spi_action.c:
2171 Corrected call to getNActions to call the c binding
2174 * cspi/spi_editabletext.c:
2176 Changed name from setRunAttributes to setAttributes.
2178 * cspi/spi_hyperlink.c:
2180 Changed call to getNAnchors to correctly call the c
2181 binding for an attribute.
2183 * cspi/spi_hypertext.c:
2185 Changed getImageDescription to correctly call the
2186 binding for an attribute.
2188 * cspi/spi_selection.c:
2189 Changed getNSelectedChildren to correctly call the c
2190 binding for the attribute.
2191 Changed refSelectedChild to getSelectedChild.
2195 Changed getCaption to return an Accessible.
2196 Fixed calls which retrieve attributes.
2197 Changed refAt to getAccessibleAt.
2198 Changed getNSelectedRows and getNSelectedColumns to
2202 Changed getCharacterExtents and getPointAtOffset to accept an
2203 AccessibleCoordType.
2205 Changed calls which retrieve attributes.
2206 Changed refRunAttributes to getAttributes.
2211 * idl/Hyperlink.idl:
2212 Changed n_anchors attribute to nAnchors to keep naming
2213 convention consistent.
2216 Made Table inherit from Bonobo::Unknown.
2217 Added nSelectedColumns and nSelectedRows attributes.
2220 Made Value inherit from Bonobo::Unknown.
2222 * libspi/hyperlink.c:
2223 Change for nAnchors attributte name change.
2225 <2001-09-12 Marc Mulcahy <marc.mulcahy@sun.com>
2233 Added interface implementation c files to list of
2234 includes so they are included in libcspi.
2237 Changed prototype of AccessibleAction_doAction to return a
2239 Changed prototype of AccessibleTable_getCaption to
2240 return an Accessible.
2241 Changed prototype of AccessibleTable_getSelectedRows
2242 and AccessibleTable_getSelectedColumns to
2243 return a long (returns the number of selected rows
2244 or columns respectively).
2245 Changed name of AccessibleText_refRunAttributes to
2246 AccessibleText_getAttributes.
2247 Changed prototype of AccessibleText_getCharacterExtents to
2248 return a void rather than a boolean.
2249 Added support for a AccessibleCoordType parameter
2250 specifying what type of coordinates are desired.
2251 Added an AccessibleCordType parameter to
2252 AccessibleText_getPointAtOffset.
2254 * cspi/spi_accessible.c:
2255 Added code to return the outstanding interfaces from
2256 Accessible_queryInterface.
2258 * cspi/spi_action.c:
2260 Corrected call to getNActions to call the c binding
2263 * cspi/spi_editabletext.c:
2265 Changed name from setRunAttributes to setAttributes.
2267 * cspi/spi_hyperlink.c:
2269 Changed call to getNAnchors to correctly call the c
2270 binding for an attribute.
2272 * cspi/spi_hypertext.c:
2274 Changed getImageDescription to correctly call the
2275 binding for an attribute.
2277 * cspi/spi_selection.c:
2278 Changed getNSelectedChildren to correctly call the c
2279 binding for the attribute.
2280 Changed refSelectedChild to getSelectedChild.
2284 Changed getCaption to return an Accessible.
2285 Fixed calls which retrieve attributes.
2286 Changed refAt to getAccessibleAt.
2287 Changed getNSelectedRows and getNSelectedColumns to
2291 Changed getCharacterExtents and getPointAtOffset to accept an
2292 AccessibleCoordType.
2294 Changed calls which retrieve attributes.
2295 Changed refRunAttributes to getAttributes.
2300 * idl/Hyperlink.idl:
2301 Changed n_anchors attribute to nAnchors to keep naming
2302 convention consistent.
2305 Made Table inherit from Bonobo::Unknown.
2306 Added nSelectedColumns and nSelectedRows attributes.
2309 Made Value inherit from Bonobo::Unknown.
2311 * libspi/hyperlink.c:
2312 Change for nAnchors attributte name change.
2315 <2001-09-05 Marc Mulcahy <marc.mulcahy@sun.com>
2317 implementations-- made server implementations own AtkObject pointers
2318 rather than their respective AtkInterrface pointers to fix
2319 refcounting. AtkHyperlink is still broken.
2321 <2001-09-04 Bill Haneman <bill.haneman@sun.com>
2322 * cspi/spi_accessible.c:
2323 Added method Accessible_Role_getName(),
2324 and requisite string array (role_names).
2325 Added conversion string_from_corba_strin() call
2326 to Accessible_getName and _getDescription.
2327 * libspi/accessible.c:
2328 Added implementation for Accessible_getRole()
2330 Added festival support, used if environment variable
2333 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2335 * at-bridge/bridge.c:
2336 Now allocate Accessibility_Event using
2337 Accessibility_Event__alloc() instead of g_new0().
2338 * libspi/accessibleeventlistener.c:
2339 Initialize AccessibleEventListener->callbacks to NULL.
2340 Fixed accessible__event_listener_init() param, changed to
2341 "AccessibleEventListener *" type.
2342 Changed a bonobo_object_release_unref() call to
2343 Accessibility_Accessible_unref().
2344 * libspi/listener.c:
2345 Changed Bonobo_Unknown_unref to (equivalent)
2346 Accessibility_Accessible_unref.
2347 * libspi/registry.c:
2348 Changed bonobo_object_release_unref to
2349 Accessibility_Accessible_unref.
2351 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2354 spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
2355 spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
2356 spi-util.c spi-util.h
2357 Implementations for C bindings to remaining accessibility
2360 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2363 changed return value of Action from void to boolean to
2364 bring in line with ATK.
2367 Changed getText funcions to return "out" start and end offsets.
2368 Changed getAttributes to take and offset and return the start
2369 and end offset of the attribute run.
2370 Changed getOffsetAtPoint and getCharacterExtents to take an
2371 enum describing whether coordinates are window or screen.
2374 libspi/action.c libspi/action.h libspi/editabletext.c
2375 libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
2376 libspi/hypertext.c libspi/hypertext.h libspi/image.c
2377 libspi/image.h libspi/selection.c libspi/selection.h
2378 libspi/table.c libspi/table.h libspi/text.c libspi/text.h
2379 libspi/value.c libspi/value.h
2380 Added server implementations for outstanding ATK interfaces
2381 not yet implemented.
2383 2001-09-04 Bill Haneman <bill.haneman@sun.com>
2386 Added (missing) getName() method.
2387 Made nActions an attribute.
2388 * idl/EditableText.idl:
2389 Changed order of params in setAttributes.
2390 * idl/Hyperlink.idl:
2391 Removed getAnchor, added getURI.
2393 Changed attributes to methods, for efficiency
2394 (so that getting extents can be done in one call)
2395 * idl/Selection.idl:
2396 Changed nSelectedChildren to attribute, and re-indented.
2397 * idl/Table.idl: changed nrows, ncolumns, caption, summary
2399 * idl/Text.idl: reformatted to match our coding style.
2400 (temporarily?) removed getRowColumnAtOffset().
2401 Changed text selection API to support multi-select and
2402 non-contiguous selections, as in ATK.
2403 * idl/Value.idl: changed some methods to attributes.
2405 2001-08-24 Mark McLoughlin <mark@skynet.ie>
2407 * libspi/listener.c(impl_notify_event):
2408 BonoboUnkown_unref the source instead
2409 of bonobo_object_release_unref - the ORB
2410 handles the releasing.
2412 * configure.in: require ORBit-2.3.94 for
2415 2001-08-21 Bill Haneman <bill.haneman@sun.com>
2417 Tagged CVS repository 'EA_1_0'.
2418 * README.EARLY_ACCESS:
2419 Alphabetized acknowledgements list, and
2421 Listed some known dependencies of at-spi.
2423 2001-08-20 Bill Haneman <bill.haneman@sun.com>
2425 * docs/at-spi-docs.sgml:
2426 * docs/at-spi-sections.txt:
2427 * docs/at-spi-overrides.txt: (Added zero-length file)
2428 Documentation improvements - gtk-doc should build
2429 docs for all implemented C bindings now.
2432 * cspi/spi.c: (New file)
2433 * cspi/spi_event.c: (New file)
2434 * cspi/spi_registry.c: (New file)
2435 * cspi/spi_accessible.c: (New file)
2436 * cspi/spi_application.c: (New file)
2437 * cspi/spi_component.c: (New file)
2438 Split spi_main.c into six parts, and included them from
2439 "spi.c". This is a bit of a hack, probably temporary,
2440 but required by gtk-doc, apparently.
2442 2001-08-20 Bill Haneman <bill.haneman@sun.com>
2445 * docs/at-spi-docs.sgml:
2446 * docs/at-spi-sections.txt:
2448 Initial checkins/modifications for gtk-doc generation.
2451 Added (missing) interface query methods to Accessible's C binding.
2453 Added GenericInterface type definition.
2455 Added query for AccessibleComponent interface to focus event handler.
2456 Added printout of bounding box for focussed component.
2457 * libspi/component.c:
2458 Added partial implementation for AccessibleComponent to C binding.
2459 * idl/Application.idl:
2460 * libspi/registry.c:
2461 * libspi/listener.c:
2462 * libspi/application.c:
2463 * libspi/application.h:
2464 Changed "ID" attribute type from string to long.
2466 2001-08-19 Bill Haneman <bill.haneman@sun.com>
2470 Made method naming consistent: methods taking object args
2471 start with uppercase, other methods (except those using
2472 acronyms) start with lowercase. Underscores delimit between
2473 object names and method names:
2474 SPI_init() - uppercase since it starts with an acronym.
2475 getDesktopCount () - lowercase start since no object param0.
2476 Accessible_getName() - uppercase object type name, studlyCaps method
2480 Added gtk-doc documentation for all currently implemented
2481 methods in the C bindings API.
2483 2001-08-18 Bill Haneman <bill.haneman@sun.com>
2485 * Makefile.am : changed build order to build test last.
2488 Changed "createEventListener" to "CreateEventListener".
2489 * libspi/accessibleeventlistener.c :
2490 Bugfix for addition of callbacks.
2491 * test/Makefile.am :
2492 * test/simple-at.c :
2493 Added new test that uses the C bindings API.
2495 * libspi/listener.c :
2496 * libspi/registry.c :
2497 * libspi/accessibleeventlistener.c :
2498 * at-bridge/bridge.c :
2499 Renamed member "target" of Accessibility_Event to "source",
2500 which is more descriptive.
2503 2001-08-18 Bill Haneman <bill.haneman@sun.com>
2507 * cspi/Makefile.am :
2508 Added makefile support for at-spi/cspi directory.
2511 * cspi/spi-listener.h : (NEW FILE)
2512 Added support for/use of spi-listener.h.
2514 C bindings now build successfully, with no warnings.
2515 * libspi/accessibleeventlistener.h : (NEW FILE)
2516 * libspi/accessibleeventlistener.c : (NEW FILE)
2517 * libspi/Makefile.am :
2518 Added new object type "AccessibleEventListener"
2519 which inherits from Listener, and allows attachment
2520 of in-process callbacks (so that a client with a listening
2521 object instance can add functionality to the local
2522 implementation, dynamically).
2524 2001-08-18 Bill Haneman <bill.haneman@sun.com>
2526 * libspi/accessible.c:
2527 Add implementation for get_index_in_parent().
2529 Added #include of "spi-roletypes.h", and
2530 added enumerated type AccessibleCoordType.
2531 Added definition for KeystrokeListener (function type).
2534 * cspi/spi-statetypes.h :
2535 * cspi/spi-roletypes.h :
2537 Added these headers, used by spi.h.
2539 Added code (NOTE: not yet built by make).
2541 2001-08-18 Mark McLoughlin <mark@skynet.ie>
2543 * libspi/Makefile.am: generate imodule
2544 at the same time as other idl compiler
2547 2001-08-17 Bill Haneman <bill.haneman@sun.com>
2548 * libspi/registry.c :
2549 * libspi/application.c :
2550 * idl/Application.idl :
2551 Made registration with toolkit an application method,
2552 which is required since each app has its own toolkit static
2553 environment. Thus the bridge must register for
2554 notification of toolkit events from each application in turn.
2555 Toolkit notifications are now successfully registered for, and
2556 sent to the listening at client.
2558 Changed toolkit event string to use hyphens rather than underscores.
2559 * libspi/listener.c :
2560 listner now gives more info in debug mode - it reports the
2561 name of the event received, as well as the name of the source.
2564 2001-08-16 Bill Haneman <bill.haneman@sun.com>
2566 * libspi/registry.c :
2567 added more implementation for toolkit events.
2568 Fixed bug such that toolkit event registrations
2569 (via atk) use the whole event name string, not
2571 Removed a useless call to an ORBit_ method.
2572 * at-bridge/bridge.c :
2573 Removed unused local sbuf[] variable.
2575 We now register for Gtk:GtkWidget:button_press_event
2576 events as well as "focus:" events.
2578 Add some more API from Registry.idl that was missing,
2579 for keystroke listening, keystroke and mouse event
2580 synthesis, and enumeration of accessible desktops.
2582 2001-08-16 Michael Meeks <michael@ximian.com>
2584 * configure.in: use AM_GLIB_GNU_GETTEXT.
2586 * Makefile.am (SUBDIRS): kill intl.
2588 2001-08-15 Michael Meeks <michael@ximian.com>
2590 * registryd/Makefile.am: s/oaf/server/ relocate info file.
2592 * configure.in: upd.
2594 * configure.in: depend on a recent bonobo-activation that
2595 will find our server files ...
2597 2001-08-16 Bill Haneman <bill.haneman@sun.com>
2599 * libspi/accessible.c : accessible_new() :
2600 Now we add the Component interface via bonobo_object_add_interface,
2601 if the contained AtkObject implements AtkComponent.
2602 * libspi/accessible.h : now include "component.h"
2603 * libspi/component.h :
2604 * libspi/component.c : added files - implementation of
2605 bonobo wrapper object for Accessibility/Component
2606 * libspi/listener.c :
2607 Added test code to check for Accessibility/Component:1.0
2608 interface and report whether it is implemented by the
2610 * libspi/registry.c :
2611 Now we check for not only the hash of the whole event
2612 string before relaying the event, we also check the
2613 "minor" event string (without the detail string).
2614 This allows event listeners to be registered against
2615 all events of a certain major+minor type, or just
2616 against a specific major+minor+detail type.
2617 * libspi/accessible.c :
2618 Added implementations for Accessible:get_parent(),
2619 Accessible:getChildCount(), and Accessible:getChildAtIndex().
2620 * libspi/registry.c :
2621 * libspi/listener.c :
2622 Replaced calls to Accessibility_Accessible_ref() and
2623 Accessibility_Accessible_unref() with
2624 calls to bonobo_object_dup_ref() and
2625 bonobo_object_release_unref(), so that the CORBA object
2626 is dup-ed and released when relayed, as well as the bonobo object.
2628 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2630 * libspi/Makefile.am,
2631 registryd/Makefile.am,
2632 at-bridge/Makefile.am.
2633 test/Makefile.am, configure.in:
2634 reverse previous changes.
2636 * /idl/Image.idl: fix typo.
2638 * test/Makefile.am: put DEBUG_FLAGS
2641 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2643 * test/app.c: use argv[0] instead of
2646 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2648 * libspi/Makefile.am,
2649 registryd/Makefile.am,
2650 at-bridge/Makefile.am.
2651 test/Makefile.am, configure.in:
2652 cleanup, replace individual LIBS/CFLAGS with
2653 AT_COMMON_{LIBS|CFLAGS}.
2657 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2659 * configure.in, libspi/Makefile.am:
2660 Change IDL path checking for bonobo-activation
2663 2001-08-15 Bill Haneman <bill.haneman@sun.com>
2665 * registryd/registry.c : separated event listeners to use
2666 3 separate lists (focus, window, toolkit). Began testing
2667 event names against hashes before relaying events.
2668 * test/at.c : now register for events of type "focus:"
2669 * test/app.c : now generate events of type "focus:"
2670 * at-bridge/bridge.c : register with ATK for focus events,
2671 and we now relay those focus events to any "focus:" listeners.
2672 This now works with the bridge as a GTK_MODULE when running test/at.
2673 * libspi/registry.c :
2674 * libspi/listener.c :
2675 now we ref event sources before propagating, and unref on receipt.
2676 * libspi/registry.c :
2677 some changes to internal structs, to support event typestring hashes.
2678 * text/app.c : changed the way the appname is generated.
2679 * cspi : added directory that will hold the C bindings library for
2680 non-CORBA/bonobo-savvy clients.
2681 * cspi/spi.h : header file that contains the function prototypes for the C binding.
2682 * idl/Component.idl : added in parameter to indicate coord system for
2683 geometry-related calls.
2684 * idl/Hyperlink.idl : added readonly n_links attribute
2685 * idl/Image.idl : changed methods to attributes.
2687 2001-08-15 Mark McLoughlin <mark@skynet.ie>
2689 * at-bridge/Makefile.am: link against
2690 ../libspi/libspi.la instead of -lspi.
2692 * at-spi/test/app.c: include
2693 bonobo-activation.h. Use a default appname
2694 if one is not provided.
2696 2001-08-14 Bill Haneman <bill.haneman@sun.com>
2698 * idl/Registry.idl : temporarily changed register_Application
2699 to oneway, to work around issue with initial registration
2701 * idl/Application.idl : changed attribute "id" from readonly
2702 to read-write, since it needs to be assigned by Registry.
2703 * registryd/registryd.c : added call to set application id
2705 * registryd/registry.c : changed de-registration procedure to
2706 use CORBA_Object_hash() to find matching object ref in application
2707 lists and listener lists.
2708 * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
2709 began distinguishing between event types (work in progress).
2711 2001-08-13 Bill Haneman <bill.haneman@sun.com>
2714 * libspi/application.c:
2715 Added implementations for get/set id, get_toolkitName,
2717 * registryd/registryd.c :
2721 Converted from use of OAF to bonobo-activation.
2722 * libspi/desktop.h :
2723 * libspi/desktop.c :
2725 Removed references to atksimpleobject, since base atkobject
2726 implementation now provides functionality we need.
2727 * libspi/atksimpleobject.c :
2728 * libspi/atksimpleobject.h :
2733 * at-bridge/Makefile.am
2734 * at-bridge/bridge.c
2737 Added directory "bridge" and contents, and added dependencies
2738 in Makefile.am/configure.in.
2739 Initial checkin of "at-bridge".
2740 This code is a GTK_MODULE which automatically registers
2741 GTK+ apps with the accessibility registry, using an object
2742 reference to the root ATK object.
2744 2001-08-10 Mark McLoughlin <mark@skynet.ie>
2746 * po/Makefile.in.in: Remove. Again. If this
2747 doesn't get autogenerated - you need to update
2750 2001-08-07 Mark McLoughlin <mark@skynet.ie>
2752 * po/Makefile.in.in: Add. Again.
2754 2001-07-31 Bill Haneman <bill.haneman@sun.com>
2756 * libspi/accessible.c : added support for 'description' property.
2757 * libspi/accessible.c
2759 * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
2760 (since the two are now equivalent in libbonobo)
2768 * idl/Value.idl : changed these 'secondary' interfaces to inherit from
2769 Bonobo::Unknown as does Accessibility::Accessible.
2770 * idl/StreamableContent.idl : as above, and replaced internal InputStream
2771 interface with Bonobo::Stream, since it was redundant with it.
2772 (The Stream returned by a StreamableContext object is expected to
2773 implement only a subset of Bonobo::Stream)
2775 2001-07-28 Anders Carlsson <andersca@gnome.org>
2777 * libspi/accessible.c (accessible_object_finalize): Change
2778 g_free to g_object_unref since the AtkObject is a GObject.
2780 2001-07-30 Bill Haneman <bill.haneman@sun.com>
2782 * idl/Accessibility.idl: add new IDL files
2785 * idl/Action.idl: Definitions of actionable UI object
2786 * idl/Component.idl: Definitions of UI component geometry, etc.
2787 * idl/Hyperlink.idl: Defs of hyperlink behavior
2788 * idl/Image.idl: Def of accessible image
2789 * idl/Selection.idl: Definition of UI object with selectable children
2790 * idl/StreamableContent.idl: Definition of UI object with streamable backing data
2791 * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
2792 * idl/Text.idl: Interface defs for UI elements with complex textual content
2793 * idl/Value.idl: Definition of UI element that is a value controller or display
2795 2001-07-27 Michael Meeks <michael@ximian.com>
2797 * po/Makefile.in.in: remove autogenerated file from CVS.
2799 * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
2802 * idl/Registry.idl: include guard.
2804 * idl/Accessibility.idl: Add, and include all the other IDL
2807 * idl/*.idl: remove mass of pragmas etc.
2809 2001-07-26 Michael Meeks <michael@ximian.com>
2811 * registryd/Makefile.am (registryd_SOURCES): remove
2814 2001-07-27 Mark McLoughlin <mark@skynet.ie>
2816 * libspi/.cvsignore, registryd/.cvsignore,
2817 test/.cvsignore: updated.
2819 * po/Makefile.in.in: gettext update.
2821 2001-07-25 Bill Haneman <bill.haneman@sun.com>
2823 * initial CVS checkin
2825 2001-06-29 Michael Meeks <michael@ximian.com>
2827 * configure.in: add AM_CONFIG_HEADER to gen config.h