platform/upstream/at-spi2-core.git
22 years ago2002-01-28 Mark McLoughlin <mark@skynet.ie>
mmclouglin [Mon, 28 Jan 2002 16:03:16 +0000 (16:03 +0000)]
2002-01-28  Mark McLoughlin  <mark@skynet.ie>

        * libspi/remoteobject.[ch]: make RemoteObject and interface rather
        than an atk object.

        * test/simple-at.c: include netinet/in.h.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@230 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2002-01-24 Mark McLoughlin <mark@skynet.ie>
mmclouglin [Thu, 24 Jan 2002 12:41:09 +0000 (12:41 +0000)]
2002-01-24  Mark McLoughlin  <mark@skynet.ie>

        * cspi/spi_accessible.c: (Accessible_getRelationSet):
        use NULL, not CORBA_OBJECT_NIL.

        * libspi/accessible.c:
        (impl_accessibility_accessible_get_relation_set):
        allocate the sequence correctly.

        * libspi/remoteobject.h: kill spi_remote_object_new.

        * test/test-simple.c: (validate_accessible): add code
        to test relation sets, now all we need is to figure
        out how to excercise this code path :/

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@229 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2002-01-18 Michael Meeks <michael@ximian.com>
michael [Mon, 21 Jan 2002 18:07:48 +0000 (18:07 +0000)]
2002-01-18  Michael Meeks  <michael@ximian.com>

* test/test-simple.c
(key_listener_cb): consume the key.
(test_keylisteners): update.
(main): wait for any pending unrefs on events.

* registryd/deviceeventcontroller.c
(spi_controller_update_key_grabs): only re-issue the
grab on a key release.
(spi_device_event_controller_forward_key_event):
refresh the keygrabs before we notify the listeners,
to reduce the X ungrab / re-grab race.
(spi_controller_register_with_devices): remove
XSelectInput - we do that with the gdk_window_ call.
(_spi_controller_device_error_handler): return a value.
s/GDK_DISPLAY/spi_get_display/

2002-01-17  Michael Meeks  <michael@ximian.com>

* registryd/deviceeventcontroller.c
(_deregister_keygrab): don't blow out the later
assertion.

* test/test-simple.c (test_keylisteners): do a
more intelligent validation.

2002-01-14  Michael Meeks  <michael@ximian.com>

* atk-bridge/bridge.c
(gnome_accessibility_module_init),
(gnome_accessibility_module_shutdown): impl.
(gtk_module_init): protect vs. double inits.
(add_signal_listener): impl.
(spi_atk_bridge_state_event_listener): kill
(deregister_application): split out of
(spi_atk_bridge_exit_func): here.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@228 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded text caret tracking to simple-at's magnification, and
billh [Fri, 18 Jan 2002 20:16:24 +0000 (20:16 +0000)]
Added text caret tracking to simple-at's magnification, and
tweaked the focus tracking bounds.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@227 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoBugfix for keygrab regression (registryd was holding keygrabs after they should have...
billh [Thu, 17 Jan 2002 12:17:40 +0000 (12:17 +0000)]
Bugfix for keygrab regression (registryd was holding keygrabs after they should have been de-registered/released).

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@226 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoBugfix for simple-at, and fix for test-simple.
billh [Wed, 16 Jan 2002 18:57:14 +0000 (18:57 +0000)]
Bugfix for simple-at, and fix for test-simple.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@225 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoChanges to simple-at demo, to reduce clashes with WM and other existing
billh [Wed, 16 Jan 2002 12:12:34 +0000 (12:12 +0000)]
Changes to simple-at demo, to reduce clashes with WM and other existing
keygrabs.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@223 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoWorkaround/error trapping for failed keygrabs in device event controller;
billh [Mon, 14 Jan 2002 17:48:47 +0000 (17:48 +0000)]
Workaround/error trapping for failed keygrabs in device event controller;
helpful when running on Solaris in particular.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@222 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoIncremented version number for desktop-alpha release.
billh [Fri, 11 Jan 2002 21:06:22 +0000 (21:06 +0000)]
Incremented version number for desktop-alpha release.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@221 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2002-01-11 Michael Meeks <michael@ximian.com>
michael [Fri, 11 Jan 2002 17:00:10 +0000 (17:00 +0000)]
2002-01-11  Michael Meeks  <michael@ximian.com>

* registryd/deviceeventcontroller.c
(spi_device_event_controller_forward_key_event): kill
XUngrabKey / XKeyGrab race.
(spi_controller_grab_keyboard): rename to
(spi_controller_update_key_grabs): this, and deal
with incremental adding / removing grabs more
sensibly.
(_register_keygrab): ensure we're not pending a remove.
(spi_grab_mask_free): impl.
(spi_controller_register_global_keygrabs): split out
common code into:
(handle_keygrab): impl.
(_deregister_keygrab): impl.
(spi_controller_deregister_global_keygrabs): impl.
(spi_controller_update_key_grabs): re-issue the grab if
we just recieved a notification.

* test/test-simple.c (key_listener_cb): remove debug.

* registryd/deviceeventcontroller.c
(spi_controller_register_device_listener): after
registering a global keygrab, actualy register it !
don't wait for a timeout; doh !

* registryd/deviceeventcontroller.[ch]: s/DeviceEvent/DE/
to make it more readable / manipulable.
s/grabmask/grab_mask/ s/refcount/ref_count/
s/keyval/key_val/ s/modmask/mod_mask

2002-01-08  Michael Meeks  <michael@ximian.com>

* registryd/deviceeventcontroller.c
(spi_controller_register_with_devices): use gdk calls to
setup a filter.
(global_filter_fn): implement the filter.
(spi_device_event_controller_check_key_event): rename to
(spi_device_event_controller_forward_key_event): this & upd.
(spi_get_display): replace with GDK_DISPLAY.

* registryd/deviceeventcontroller.c
(spi_controller_deregister_device_listener): unroll into
(impl_deregister_keystroke_listener): here to simplify.
(spi_controller_register_global_keygrabs): split cut and
paste (!) out into (_register_keygrab): here, shorter & sweeter.
(spi_controller_deregister_device_listener): remove.
(impl_register_mouse_listener): remove, no mouse listener
support in at-spi-1.0

* registryd/registry.c
(_device_event_controller_hook): kill.
(spi_registry_init): upd.

* registryd/deviceeventcontroller.c
(spi_device_event_controller_class_init): upd.
(spi_check_key_event): merge into.
(spi_device_event_controller_check_key_event):
here and kill strange static ev init, don't leak
the x_event - nor dynamicaly allocate it.

* registryd/registry-main.c (main): re-direct
timeout to remove strange vtable mess.

* registryd/deviceeventcontroller.c
(remove_listener_cb): impl.
(spi_controller_deregister_device_listener):
fix re-enterancy hazard.

2002-01-07  Michael Meeks  <michael@ximian.com>

* registryd/deviceeventcontroller.c
(spi_device_event_controller_new): upd.
(impl_notify_listeners_sync): upd. debug.
(spi_notify_keylisteners): fix re-enterancy hazards,
prettify, remove O(n*n) iteration.
(spi_controller_grab_keyboard): fix iteration.
(spi_check_key_event): re-format to suit coding style.
Clean all the warnings - we're warning free.

* registryd/deviceeventcontroller.h:
* registryd/registry.h: make mutualy referential with
typesafe forward references instead of (!) void pointer
hacks.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@219 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFix typo in ChangeLog
billh [Fri, 11 Jan 2002 12:10:00 +0000 (12:10 +0000)]
Fix typo in ChangeLog

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@217 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2002-01-11 Michael Meeks <michael@ximian.com>
michael [Fri, 11 Jan 2002 12:00:47 +0000 (12:00 +0000)]
2002-01-11  Michael Meeks  <michael@ximian.com>

* cspi/spi_accessible.c (role_names): add a role name
to sync this array with the enum; and make the regression
tests pass, sigh.

2002-01-10  Michael Meeks  <michael@ximian.com>

* cspi/spi_registry.c (SPI_generateKeyboardEvent):
allow expansion of enumeration & kill warning.

* test/test-simple.c (key_listener_cb): impl.
(test_keylisteners): impl.

* cspi/spi-listener.h: make listener signatures const
on the provided (const) events.

* test/keysynth-demo.c: upd. to const events.

* test/simple-at.c: ditto.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@216 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoscript fix
billh [Fri, 11 Jan 2002 11:59:05 +0000 (11:59 +0000)]
script fix

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@215 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agodemo script bugfix.
billh [Fri, 11 Jan 2002 11:54:31 +0000 (11:54 +0000)]
demo script bugfix.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@214 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded demo script in test dir. Don't use without reading it!
billh [Fri, 11 Jan 2002 11:52:11 +0000 (11:52 +0000)]
Added demo script in test dir.  Don't use without reading it!

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@213 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded some (lost?) ChangeLog comments from yesterday.
billh [Fri, 11 Jan 2002 11:45:40 +0000 (11:45 +0000)]
Added some (lost?) ChangeLog comments from yesterday.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@212 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoUpdated ChangeLog for last fix.
billh [Fri, 11 Jan 2002 11:42:29 +0000 (11:42 +0000)]
Updated ChangeLog for last fix.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@211 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFixed type on value.h header in libspi.
billh [Fri, 11 Jan 2002 11:40:23 +0000 (11:40 +0000)]
Fixed type on value.h header in libspi.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@210 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoDocumentation fixes, and a small tweak to simple-at.
billh [Fri, 11 Jan 2002 00:39:39 +0000 (00:39 +0000)]
Documentation fixes, and a small tweak to simple-at.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@209 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFurther 'make dist' fixage.
billh [Thu, 10 Jan 2002 15:18:32 +0000 (15:18 +0000)]
Further 'make dist' fixage.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@208 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoBuild tweaks, and updated version number for Beta2.
billh [Thu, 10 Jan 2002 15:16:48 +0000 (15:16 +0000)]
Build tweaks, and updated version number for Beta2.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@207 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoWorkaround for window manager bug using some non-gnome WMs, for magnifier.
billh [Thu, 10 Jan 2002 15:13:20 +0000 (15:13 +0000)]
Workaround for window manager bug using some non-gnome WMs, for magnifier.
(magnifier failed to resize properly).

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@206 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFixed bug in spi_accessible_new, codepath for bonobo-accessible objects.
billh [Thu, 10 Jan 2002 09:59:00 +0000 (09:59 +0000)]
Fixed bug in spi_accessible_new, codepath for bonobo-accessible objects.
Fix required exposure of spi_accessible_construct method to
libgail-gnome, no API impact on normal at-spi clients.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@205 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoBugfix for remote spi_accessible objects, in accessible.c.
billh [Wed, 9 Jan 2002 18:37:47 +0000 (18:37 +0000)]
Bugfix for remote spi_accessible objects, in accessible.c.
Added a diagnostic message to magnifier.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@204 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2002-01-08 Michael Meeks <michael@ximian.com>
michael [Tue, 8 Jan 2002 09:11:47 +0000 (09:11 +0000)]
2002-01-08  Michael Meeks  <michael@ximian.com>

* registryd/registry.c (parse_event_type): remove strndup.

* libspi/Makefile.am (libspi_la_SOURCES): remove
sources already included in the headers section.

* libspi/util.c: add.

* libspi/spi-private.h: add.

* registryd/registry.c: update to moved list iterators.

2002-01-05  Michael Meeks  <michael@ximian.com>

* test/simple-at.c (main): upd. auto-module set to atk-bridge

* test/test-simple.c (main): ditto.

2002-01-04  Michael Meeks  <michael@ximian.com>

* libspi/accessible.c (spi_accessible_new): remove 2nd,
redundant construct.

* registryd/registry.c
(get_listener_list): impl.
(impl_accessibility_registry_register_global_event_listener):
re-impl. to simplify using ~, remove dodgy const cast off.
(parse_event_type): constify.
(impl_accessibility_registry_deregister_global_event_listener_all):
re-write, more efficiency and simplicity, kill re-enterancy
hazard.
(compare_listener_corbaref, compare_corba_objects),
(compare_listener_quarks): define out.
(impl_accessibility_registry_deregister_global_event_listener):
re-write for effiency, and nail re-enterancy hazard.
(impl_accessibility_registry_get_desktop_list): impl.
(re_enterant_list_delete_link): impl.
(re_enterant_list_foreach): impl.
(remove_listener_cb): impl.
(_registry_notify_listeners): kill.
(notify_listeners_cb): impl.

* cspi/spi_registry.c (SPI_freeDesktopList): impl.
(SPI_getDesktopList): impl.

* test/test-simple.c (test_desktop): test the methods.

2002-01-03  Michael Meeks  <michael@ximian.com>

* cspi/spi_event.c (SPI_createAccessibleKeySet): dup the
keystrings since we free them
(SPI_freeAccessibleKeySet): in here.

* libspi/accessible.c (spi_accessible_new): kill warning,
wonder what is going on with the constructor here.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@203 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoEnabled keygrabs of the Control key, and changed the command key modifier
billh [Sat, 5 Jan 2002 17:23:32 +0000 (17:23 +0000)]
Enabled keygrabs of the Control key, and changed the command key modifier
set for the simple-at demo to "Ctrl-Alt" from the previous "Alt", to
reduce clashes with window manager commands, etc.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@199 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded test for SpiRemoteObject to spi_accessible_new() constructor,
billh [Thu, 3 Jan 2002 20:23:00 +0000 (20:23 +0000)]
Added test for SpiRemoteObject to spi_accessible_new() constructor,
which allows support for remote atk objects.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@198 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agochangelog update.
billh [Wed, 2 Jan 2002 21:14:04 +0000 (21:14 +0000)]
changelog update.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@197 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded definitions for SpiRemoteObject, a derivative of AtkObject used to
billh [Wed, 2 Jan 2002 21:11:12 +0000 (21:11 +0000)]
Added definitions for SpiRemoteObject, a derivative of AtkObject used to
support remote components.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@196 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
marcm [Wed, 2 Jan 2002 19:53:20 +0000 (19:53 +0000)]
2001-12-22  Marc Mulcahy  <marc.mulcahy@sun.com>

* at-bridge/bridge.c: Added registration for separate
"Atktext:text-changed::insert" and "AtkText:text-changed::delete"
signals.  If either of the first two parameters to the generic
bridge signal handler are ints, they are passed on as event
details.  This allows an AT to determine what text was inserted.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@195 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAPI revisions: tweaks to key event API, added some reserved slots for
billh [Tue, 1 Jan 2002 22:35:33 +0000 (22:35 +0000)]
API revisions: tweaks to key event API, added some reserved slots for
upwards binary compat to IDL.
Changed at-bridge to atk-bridge (renaming);
Added definitions of window manager event type names;
Hypertext no longer inherits from Accessibility::Text.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@194 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFixed what seems to have been a botched checking from Dec 21, some fixes
billh [Tue, 1 Jan 2002 22:16:04 +0000 (22:16 +0000)]
Fixed what seems to have been a botched checking from Dec 21, some fixes
failed to make it in.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@193 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-22 Marc Mulcahy <marc.mulcahy@sun.com>
marcm [Sun, 23 Dec 2001 02:14:37 +0000 (02:14 +0000)]
2001-12-22  Marc Mulcahy  <marc.mulcahy@sun.com>

* at-bridge/bridge.c: Added registration for separate
"Atktext:text-changed::insert" and "AtkText:text-changed::delete"
signals.  If either of the first two parameters to the generic
bridge signal handler are ints, they are passed on as event
details.  This allows an AT to determine what text was inserted.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@192 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFixed regressions in keysynth-demo, cosmetic and warning fixes also.
billh [Fri, 21 Dec 2001 13:36:43 +0000 (13:36 +0000)]
Fixed regressions in keysynth-demo, cosmetic and warning fixes also.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@191 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>
marcm [Tue, 18 Dec 2001 13:38:45 +0000 (13:38 +0000)]
2001-12-18 Marc Mulcahy <marc.mulcahy@sun.com>

* at-spi/libspi/accessible.c at-spi/libspi/action.c
at-spi/libspi/application.c at-spi/libspi/base.c at-spi/libspi/base.h
at-spi/libspi/component.c at-spi/libspi/editabletext.c
at-spi/libspi/hyperlink.c at-spi/libspi/hypertext.c
at-spi/libspi/image.c at-spi/libspi/selection.c at-spi/libspi/table.c
at-spi/libspi/text.c at-spi/libspi/value.c at-spi/registryd/desktop.c:
Changed SpiBase to contain a GObject pointer rather than an AtkObject

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@190 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded is_text member to Accessibility_DeviceEvent and AccessibleKeystroke,
billh [Tue, 18 Dec 2001 11:24:57 +0000 (11:24 +0000)]
Added is_text member to Accessibility_DeviceEvent and AccessibleKeystroke,
to indicate whether the event's 'event_string' or 'keystring' member is
the name of a keysym, or a composed string.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@189 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded support for key event strings, and renamespaced some of the at-bridge.
billh [Mon, 17 Dec 2001 17:58:13 +0000 (17:58 +0000)]
Added support for key event strings, and renamespaced some of the at-bridge.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@188 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoRevised key event support to remove some invalid casts, fix bugs relating
billh [Sat, 15 Dec 2001 22:54:01 +0000 (22:54 +0000)]
Revised key event support to remove some invalid casts, fix bugs relating
to key event filtration, and enable "global" key listeners based on
key sets.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@187 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoMake the role conversions from AtkRole to Accessibility_Role and AccessibleRole
billh [Wed, 12 Dec 2001 21:44:15 +0000 (21:44 +0000)]
Make the role conversions from AtkRole to Accessibility_Role and AccessibleRole
(from ATK, libspi-IDL, and CSPI) robust.  Added some roles used by ATK
to the at-spi role list.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@186 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoA little more namespacing, of internal methods.
billh [Wed, 12 Dec 2001 18:32:32 +0000 (18:32 +0000)]
A little more namespacing, of internal methods.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@185 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdd namespacing to un-namespaced methods in cspi.
billh [Wed, 12 Dec 2001 18:23:02 +0000 (18:23 +0000)]
Add namespacing to un-namespaced methods in cspi.
Add documentation and revise to reflect the API change.
Expand the enumerations for AccessibleRole.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@184 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoUpdated role enumeration in Accessibility_Role.idl.
billh [Wed, 12 Dec 2001 16:46:17 +0000 (16:46 +0000)]
Updated role enumeration in Accessibility_Role.idl.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@183 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoChanged event matching to use GQuark instead of string hashes.
billh [Wed, 12 Dec 2001 16:08:46 +0000 (16:08 +0000)]
Changed event matching to use GQuark instead of string hashes.
Fixed compile-time warning.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@182 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoReverted Value interface since the new union was more complicated than necessary.
billh [Wed, 12 Dec 2001 00:28:53 +0000 (00:28 +0000)]
Reverted Value interface since the new union was more complicated than necessary.
Changed API for roles, notably change Accessible_getRole to return an enum, and
Accessible_getRoleName to return a (reliable) string.
Changed signatures of AccessibleValue to use doubles in place of floats.
PLEASE NOTE these modification represent API changes to to at-spi/cspi.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@181 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded test for action in test-simple.c.
billh [Tue, 11 Dec 2001 19:06:17 +0000 (19:06 +0000)]
Added test for action in test-simple.c.
Fixed bug in get_action_from_servant.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@180 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-11 Michael Meeks <michael@ximian.com>
michael [Tue, 11 Dec 2001 17:58:28 +0000 (17:58 +0000)]
2001-12-11  Michael Meeks  <michael@ximian.com>

* libspi/libspi.h: remove registry.h and
desktop.h, deviceeventcontroller.h

* libspi/Makefile.am: remove registry.[ch],
desktop.[ch], deviceeventcontroller.[ch]

* registryd/Makefile.am: add registry.[ch],
desktop.[ch], rename registryd.c to registry-main.c.
add deviceeventcontroller.[ch]

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@179 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoBugfix in AccessibleComponent_getExtents ().
billh [Tue, 11 Dec 2001 17:45:25 +0000 (17:45 +0000)]
Bugfix in AccessibleComponent_getExtents ().

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@178 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFixed use of setenv () which broke Solaris build.
billh [Tue, 11 Dec 2001 17:41:00 +0000 (17:41 +0000)]
Fixed use of setenv () which broke Solaris build.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@177 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-11 Michael Meeks <michael@ximian.com>
michael [Tue, 11 Dec 2001 16:56:17 +0000 (16:56 +0000)]
2001-12-11  Michael Meeks  <michael@ximian.com>

* libspi/image.c (impl_getImageExtents): impl.
(spi_image_class_init): upd.

* cspi/spi_image.c
(AccessibleImage_getImageDescription): fix daft bug
of mine (doh).

* test/test-simple.c (global_listener_cb): update
to only quit if not --poke
(main): catch --poke.
(validate_accessible): upd. dumping, call test_image
(test_image): impl.

* libspi/Makefile.am (IDL_DEPS): fixup the IDL
dependencies.

* idl/Accessibility.idl: update all IDL includes.

* idl/*.idl - rename to namespace - this sucks, blame
mjs' bad decision for oafd.

* test/test-simple.c (create_test_window): add more tests.
(create_tree): split this out.
(validate_accessible): bugfix.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@176 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-11 Michael Meeks <michael@ximian.com>
michael [Tue, 11 Dec 2001 14:55:37 +0000 (14:55 +0000)]
2001-12-11  Michael Meeks  <michael@ximian.com>

* cspi/bonobo/cspi-bonobo-listener.c:
(cspi_kestroke_listener_unref),
(cspi_event_listener_unref): impl. undoing previous
homenous environment - for Bill.

* cspi/spi_table.c (long_seq_to_array): use
malloc instead.

* cspi/spi_main.c: split out all bonoboish bits into
bonobo/

* cspi/spi-impl.h: upd. typedefs.

* cspi/spi_registry.c: update to lowlevel API,
return booleans to indicate success in some places.

* cspi/spi_event.c: update to lowlevel API.

* cspi/bonobo/Makefile.am: add.

* cspi/bonobo/cspi-lowlevel.h: add

* cspi/bonobo/cspi-bonobo.c: add

* cspi/bonobo/cspi-bonobo-listener.[ch]: impl.

* cspi/Makefile.am: remove spi-listener-impl.[ch],
(SUBDIRS): add bonobo, link in the libs.

* cspi/spi-util.c: kill this file.

* TODO: merge in my bits.

2001-12-11  Michael Meeks  <michael@ximian.com>

* test/test-simple.c (test_value, test_table, main):
remove unused variables causing warnings.

* configure.in: cleanup checks - require gail.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@175 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoModified Value.idl interface to use unions, removes the assumption that
billh [Tue, 11 Dec 2001 13:58:46 +0000 (13:58 +0000)]
Modified Value.idl interface to use unions, removes the assumption that
values are always floats or transferable to and from floats.
Introduced SValue union.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@174 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agolowlevel header.
michael [Tue, 11 Dec 2001 12:38:06 +0000 (12:38 +0000)]
lowlevel header.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@173 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoRe-work the bonobo code.
michael [Tue, 11 Dec 2001 12:37:44 +0000 (12:37 +0000)]
Re-work the bonobo code.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@172 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agofirst bits.
michael [Tue, 11 Dec 2001 11:16:54 +0000 (11:16 +0000)]
first bits.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@171 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agostop the directory vanishing with -Pd.
michael [Tue, 11 Dec 2001 11:02:09 +0000 (11:02 +0000)]
stop the directory vanishing with -Pd.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@170 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded GtkTreeView to test-simple.c, and uncommented regression test.
billh [Mon, 10 Dec 2001 23:15:48 +0000 (23:15 +0000)]
Added GtkTreeView to test-simple.c, and uncommented regression test.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@169 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoImproved ChangeLog entry. Added GtkTreeView to test-simple.c.
billh [Mon, 10 Dec 2001 22:32:03 +0000 (22:32 +0000)]
Improved ChangeLog entry.  Added GtkTreeView to test-simple.c.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@168 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFixed bug in Value->setCurrentValue, and added GtkRange to regression test
billh [Mon, 10 Dec 2001 22:31:00 +0000 (22:31 +0000)]
Fixed bug in Value->setCurrentValue, and added GtkRange to regression test
test-simple.c.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@167 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoBugfix for typo.
billh [Mon, 10 Dec 2001 20:49:02 +0000 (20:49 +0000)]
Bugfix for typo.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@166 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agohush.
michael [Mon, 10 Dec 2001 20:47:43 +0000 (20:47 +0000)]
hush.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@165 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded some tests for Table interface to test-simple.
billh [Mon, 10 Dec 2001 20:41:14 +0000 (20:41 +0000)]
Added some tests for Table interface to test-simple.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@164 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-10 Michael Meeks <michael@ximian.com>
michael [Mon, 10 Dec 2001 20:29:41 +0000 (20:29 +0000)]
2001-12-10  Michael Meeks  <michael@ximian.com>

* cspi/spi_text.c: audit for exception handling,
tolerating NULL object references safely etc.

* cspi/spi_value.c: ditto.

* cspi/spi_table.c (AccessibleTable_getSummary),
(AccessibleTable_getAccessibleAt),
(AccessibleTable_getRowHeader),
(AccessibleTable_getColumnHeader),
(AccessibleTable_getCaption): fix bugs hidden by
incorrect casts.
(long_seq_to_array): impl.
(AccessibleTable_getSelectedRows),
(AccessibleTable_getSelectedColumns): use it.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@163 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded TODO list.
billh [Mon, 10 Dec 2001 19:37:02 +0000 (19:37 +0000)]
Added TODO list.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@162 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFixed macro-name typos.
billh [Mon, 10 Dec 2001 19:22:59 +0000 (19:22 +0000)]
Fixed macro-name typos.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@161 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoDocumentation fixes for ref/unref methods that no longer return ints.
billh [Mon, 10 Dec 2001 19:05:58 +0000 (19:05 +0000)]
Documentation fixes for ref/unref methods that no longer return ints.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@160 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-10 Michael Meeks <michael@ximian.com>
michael [Mon, 10 Dec 2001 18:32:05 +0000 (18:32 +0000)]
2001-12-10  Michael Meeks  <michael@ximian.com>

* cspi/spi_action.c: audit for exception handling,
tolerating NULL object references safely etc.

* cspi/spi_accessible.c: ditto.

* cspi/spi_component.c: ditto.

* cspi/spi_editabletext.c: ditto.

* cspi/spi_hyperlink.c: ditto.

* cspi/spi_hypertext.c: ditto.

* cspi/spi_image.c: ditto.

* cspi/spi_selection.c: ditto.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@159 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-10 Michael Meeks <michael@ximian.com>
michael [Mon, 10 Dec 2001 17:16:01 +0000 (17:16 +0000)]
2001-12-10  Michael Meeks  <michael@ximian.com>

* configure.in: use cspi/libspi.pc.in instead.

* Makefile.am (pkgconfig_DATA): upd. to match.

* test/simple-at.c (report_focus_event): kill hacks around
bad return values, use putenv not setenv

* libspi/desktop.c (impl_desktop_get_child_at_index): don't
fire ChildGone - I killed it.

* libspi/component.c
(impl_accessibility_component_get_extents): remove
bogus return.

* idl/Accessible.idl: kill ChildGone exception.

* cspi/*.[ch]: kill int return from ref / unref.

* cspi/spi_main.c (cspi_object_add_check): fold into
(cspi_object_add): here.

* cspi/spi_component.c (AccessibleComponent_getExtents):
handle exceptions elegantly.

* cspi/spi-private.h (cspi_check_ev_return),
(cspi_return_if_fail): impl.

* cspi/spi_accessible.c: use extensively.
(AccessibleStateSet_equals): add direct compare check.

* cspi/spi_selection.c: tolerate NULL objs, and check
exceptions before return.

* cspi/spi-util.c (cspi_warn_ev): rename to
(cspi_check_ev): this & don't pass ev in; no point.

2001-12-10  Michael Meeks  <michael@ximian.com>

* test/test-simple.c: use putenv not setenv
(get_environment_vars): more chatty if you're not using
the fun bits.

* test/simple-at.c: do the setenv so more people see the
nice demo easily.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@158 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoOne-line change of a g_error to g_warning when notification fails.
billh [Mon, 10 Dec 2001 14:39:32 +0000 (14:39 +0000)]
One-line change of a g_error to g_warning when notification fails.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@157 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoFix for spi_value, AccessibleValue interface should work correctly for known
billh [Mon, 10 Dec 2001 13:42:39 +0000 (13:42 +0000)]
Fix for spi_value, AccessibleValue interface should work correctly for known
implementors of AtkValue.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@156 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoDocumentation fixes for event listener APIs which now include user_data
billh [Mon, 10 Dec 2001 00:29:54 +0000 (00:29 +0000)]
Documentation fixes for event listener APIs which now include user_data
parameters to callbacks.
Changed stateset compare API to return a difference set rather that
return the difference values into a StateSet pointer.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@155 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoRemoved po directory from Makefile.am for now.
billh [Mon, 10 Dec 2001 00:12:04 +0000 (00:12 +0000)]
Removed po directory from Makefile.am for now.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@154 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoSmall fix for configure.in, removed AC_OUTPUT of po/Makefile.
billh [Mon, 10 Dec 2001 00:10:48 +0000 (00:10 +0000)]
Small fix for configure.in, removed AC_OUTPUT of po/Makefile.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@153 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded tests for Value interface, and upgraded i18n macro.
billh [Sun, 9 Dec 2001 23:30:27 +0000 (23:30 +0000)]
Added tests for Value interface, and upgraded i18n macro.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@152 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoUpgraded a few autoconf macro usage lines in configure.in and Makefile.am's.
billh [Sun, 9 Dec 2001 23:08:14 +0000 (23:08 +0000)]
Upgraded a few autoconf macro usage lines in configure.in and Makefile.am's.
Added some tests for Value interface.  Partial fix for failure to relay
some events to global listeners.  Fixed inheritance error in SpiValue.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@151 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-08 Michael Meeks <michael@ximian.com>
michael [Sat, 8 Dec 2001 19:17:17 +0000 (19:17 +0000)]
2001-12-08  Michael Meeks  <michael@ximian.com>

* at-bridge/bridge.c (bridge_focus_tracker),
(emit_eventv): fix the same ref. leak.
(register_atk_event_listeners): don't leak.

* cspi/spi-listener-impl.c (cspi_event): more
protection from client code.

* test/test-simple.c (test_desktop): unref the app.

* test/Makefile.am: upd. TESTS.

* at-bridge/bridge.c (bridge_exit_func): release the registry.

* test/keysynth-demo.c (keysynth_exit): unref the listeners.

* cspi/spi_accessible.c (Accessible_queryInterface): constify.

* cspi/spi_registry.c: constify in strings.
(deregisterGlobalEventListenerAll): don't release the ref.

* cspi/spi.h: start removing redundant / conflicting
gtkdoc comments, making the API readable at a glance :-)

* cspi/spi_event.c (AccessibleEventListener_unref): impl.

* test/keysynth-demo.c (keysynth_exit, main): upd.

* test/simple-at.c (main, simple_at_exit): upd.

* test/test-simple.c (unutterable_horror): kill.
(utterable_normal_derefs): kill.
(main): upd & do a setenv before gtk_init, so that we
can use memprof - and to save the pain of remembering
this, if we're running under memprof - don't exit.

* cspi/spi_main.c (SPI_exit): return exit status
for cspi.
(SPI_event_quit): impl.
(SPI_event_main): simplify.
(cspi_is_gnome_app): kill.
(SPI_init): kill isGNOMEapp arg.

* at-bridge/bridge.c (register_atk_event_listeners):
re-instate the unref.
(bridge_exit_func): don't re-activate the registry,
protect vs. theoretical re-entry, use the
AT_BRIDGE_SHUTDOWN env. var to determine whether to
assert a clean shutdown - for regression tests.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@150 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdd missing idl files to dist
baddog [Fri, 7 Dec 2001 19:02:51 +0000 (19:02 +0000)]
Add missing idl files to dist

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@149 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoComment out extraneous i18n support temporarily
baddog [Fri, 7 Dec 2001 18:44:57 +0000 (18:44 +0000)]
Comment out extraneous i18n support temporarily

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@148 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agokill stale files.
michael [Fri, 7 Dec 2001 16:51:07 +0000 (16:51 +0000)]
kill stale files.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@147 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-07 Michael Meeks <michael@ximian.com>
michael [Fri, 7 Dec 2001 16:43:33 +0000 (16:43 +0000)]
2001-12-07  Michael Meeks  <michael@ximian.com>

* libspi/component.c
(impl_accessibility_component_get_extents): make it match
it's sig.

* libspi/registry.c (_registry_notify_listeners):
re-remove X headers & reconcile conflicts.
(spi_listener_struct_free): bad conflict resolve.
(impl_accessibility_registry_register_application):
more bad merging fixed.
(impl_accessibility_registry_deregister_application): ditto.
(spi_registry_new): ditto.
(spi_registry_init): don't have an applications field.

[ merge fixups2 branch to here ]

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@146 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-12-07 Michael Meeks <michael@ximian.com>
michael [Fri, 7 Dec 2001 16:42:23 +0000 (16:42 +0000)]
2001-12-07  Michael Meeks  <michael@ximian.com>

* libspi/component.c
(impl_accessibility_component_get_extents): make it match
it's sig.

* libspi/registry.c (_registry_notify_listeners):
re-remove X headers & reconcile conflicts.
(spi_listener_struct_free): bad conflict resolve.
(impl_accessibility_registry_register_application):
more bad merging fixed.
(impl_accessibility_registry_deregister_application): ditto.
(spi_registry_new): ditto.
(spi_registry_init): don't have an applications field.

[ merge fixups2 branch to here ]
2001-12-07  Michael Meeks  <michael@ximian.com>

* test/simple-at.c (report_focus_event),
(report_focussed_accessible): remove g_warning debug.

2001-12-07  Michael Meeks  <michael@ximian.com>

* test/test-simple.c (validate_tree): comment out some checks.
(test_desktop): app now not registered idly - horay.

2001-12-07  Michael Meeks  <michael@ximian.com>

* cspi/spi_registry.c
(registerAccessibleKeystrokeListener): clean, stop it leaking
great swathes of memory, and device event controller references.
ensure we always pass valid sequences.
(deregisterAccessibleKeystrokeListener): ditto.
(generateKeyEvent): upd.

* at-bridge/bridge.c (bridge_key_listener): handle
registry dead exception gracefully.
(bridge_focus_tracker, emit_eventv): free ev.

* test/simple-at.c (report_focus_event): fix polarity.

* libspi/application.c (notify_listeners): kill the ev
argument, and make sure we init the ev we use.
(spi_application_object_event_listener): split out a chunk
(get_atk_object_ref): here & fixup.
(reverse_lookup_name_for_toolkit_event): make const.
(spi_application_toolkit_event_listener): fixup, kill leaks
ref problems etc.

* at-bridge/bridge.c (register_atk_event_listeners):
don't unref the noop object - causes grief.

* libspi/registry.c: remove the X headers.
turn off the debug churn.

* libspi/accessible.c (spi_accessible_new_return): only
release the ref if we are supposed to [doh]

* test/simple-at.c (report_button_press, report_focus_event):
guard vs. unexpected exit.

* at-bridge/bridge.c (gtk_module_init): prune printf.
(bridge_exit_func): fix app unref.

* libspi/Makefile.am: don't install registry or desktop.h

* libspi/*.h: update includes.

* libspi/application.h: don't include ourself, or
other redundant headers.

2001-12-06  Michael Meeks  <michael@ximian.com>

* libspi/accessible.c
(get_accessible_from_servant): impl.
Upd. all CORBA impl.s to use it killing cut and paste.

* cspi/spi_main.c (cspi_cleanup): guard vs. double
invokes.
(SPI_init): register atexit cleanup handler here.

2001-12-06  Michael Meeks  <michael@ximian.com>

* at-bridge/bridge.c (gtk_module_init): g_error on
activation exception

2001-12-06  Michael Meeks  <michael@ximian.com>

* at-bridge/bridge.c (gtk_module_init): some sort of
confusing merge clash - reverted.
(bridge_idle_init): ditto.

* test/test-simple.c (main, utterable_normal_derefs):
merge from Bill - somehow not committed.

2001-12-06  Michael Meeks  <michael@ximian.com>

* libspi/value.c (spi_value_class_init): upd.
(spi_value_finalize): kill.

* libspi/table.c (spi_table_finalize): kill.
(spi_table_interface_new): upd.
(spi_table_class_init): upd.
(get_table_from_servant): impl.
Upd. all CORBA impl.s to use it killing yet more cut and paste.

* libspi/selection.c (spi_selection_finalize): kill.
(spi_selection_interface_new): upd.
(spi_selection_class_init): upd.
(get_selection_from_servant): impl.
Upd. all CORBA impl.s to use it killing yet more cut and paste.

* libspi/relation.c (spi_relation_finalize): kill.
(spi_relation_class_init, spi_relation_new): upd

* libspi/image.c (spi_image_finalize): kill.
(spi_image_class_init): upd.
(spi_image_interface_new): upd.
(get_image_from_servant): impl.
Upd. all CORBA impl.s to use it killing yet more cut and paste.

* libspi/hyperlink.c (spi_hyperlink_class_init): upd.
(spi_hyperlink_finalize): kill.
(spi_hyperlink_new): upd.
(get_hyperlink_from_servant): impl.
Upd. all CORBA impl.s to use it killing yet more cut and paste.

* libspi/hypertext.c (spi_hypertext_interface_new): upd.
(spi_hypertext_finalize): kill.
(spi_hypertext_class_init): upd.
(get_hypertext_from_servant): impl.
Upd. all CORBA impl.s to use it killing yet more cut and paste.

* libspi/editabletext.c (spi_editable_text_finalize): kill.
(spi_editable_text_interface_new): upd.
(get_editable_text_from_servant): impl.
Upd. all CORBA impl.s to use it killing yet more cut and paste.

* libspi/text.c (get_text_from_servant): impl.
All impls - update to use it killing more cut and paste,
also fix bad string returns on duff args ( a somewhat
impossible case to handle - but hey ).
(spi_text_construct): impl.
(spi_text_interface_new): upd.
(spi_text_object_finalize): kill.

* libspi/component.c
(accessibility_component_object_finalize): kill.
(spi_component_class_init): upd.
(get_component_from_servant): impl. helper to kill cut & paste.
(impl_accessibility_component_contains):
(impl_accessibility_component_get_accessible_at_point):
(impl_accessibility_component_get_position):
(impl_accessibility_component_get_extents):
(impl_accessibility_component_get_mdi_z_order):
(impl_accessibility_component_get_layer):
(spi_component_interface_new): upd.

* libspi/action.c (spi_action_finalize): kill.
(spi_action_class_init): upd. inherit from SpiObject.
(spi_action_interface_new): upd.
(get_action_from_servant): impl. helper to reduce cut & paste.
(impl_getKeyBinding, impl_getName, impl_doAction),
(impl_getDescription): Use it everywhere.

* cspi/spi_main.c (get_live_refs): a pointer hash.
(spi_object_hash, spi_object_equal): comment out.
There are issues with CORBA object hashing that need
solving.

* libspi/application.c (spi_application_init),
(spi_application_new): upd.

* libspi/accessible.c (spi_accessible_object_finalize): kill.
(spi_accessible_class_init): upd.
s/accessible/object/ in epv methods.

2001-12-05  Bill Haneman <bill.haneman@sun.com>

* at-bridge/bridge.c:
Reorder the bridge initialization into the bridge gtk_module_init,
an immediate call to bridge_register_app, and an idle_add for
register_atk_event_listeners (the only code that *must* wait until
GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
the activation, creates the application's Accessible object, and
queues the bridge_idle_init function.  Restored call to
Accessibility_Registry_deregisterApplication().
Prior to making this call we obtain a new reference to the
registry, which is a temporary hack that helps us handle apps that
shut down the bonobo mainloop before we get there.

* libspi/registry.c:
Fix string leakage in debug block, and don't segv if a an app
dies before its event notifications have been propagated.

* cpi/spi_util.c:
Modify cspi_check_ev() to call g_warning() rather than g_error(),
as stopgap measure until we get proper exception handling when
objects die during or before interrogation.

* cspi/spi_main.c:
* cspi/spi.h:
Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
Also changed default value of is_gnome_app to TRUE.

* test/simple-at.c:
* test/keysynth-demo.c:
Changed use of SPI_init and SPI_event_main to reflect API change above.

* test/simple-at.c:
Made report_focus_event check the warning value from getName
before reporting on focussed accessible; simplifies handling of
notifications from dead objects.

* test/test-simple.c: (Changes not in this patch since source is
not in CVS ?)

2001-12-05  Michael Meeks  <michael@ximian.com>

* registryd/registryd.c (main): protect against
bonobo-activation startup race condition.

* cspi/spi_main.c (cspi_object_add_check): cope
with the exception elegantly.

* idl/Accessible.idl: decl. ChildGone

* libspi/desktop.c (spi_desktop_dispose): impl.
(spi_desktop_class_init): upd.
(spi_desktop_add_application),
(spi_desktop_remove_application),
(abnormal_application_termination): impl.
(impl_desktop_get_child_at_index): re-impl.

* libspi/registry.c
(impl_accessibility_registry_deregister_application),
(impl_accessibility_registry_register_application):
kill excessive debug clutter.

* test/test-simple.c (test_misc): test some NULL
tolerance. (main): upd.

* cspi/spi_main.c (cspi_accessible_is_a): a NULL
implements no interfaces - so let's not crash.

* cspi/spi_accessible.c (Accessible_queryInterface): ditto.

* libspi/accessible.c (spi_accessible_new_return): impl.
helper to calm the cut and paste, to cope with
NULL AtkObjects effectively and efficiently, and to kill
the referencing bugs.

* libspi/table.c (impl_getAccessibleAt),
(impl_getRowHeader, impl_getColumnHeader): upd.

* libspi/hyperlink.c (impl_getObject): upd.

* libspi/accessible.c
(impl_accessibility_accessible_get_child_at_index): upd.

* libspi/component.c
(impl_accessibility_component_get_accessible_at_point): upd.

* test/test-simple.c (test_editable_text, test_text): impl.
some simple tests.

* cspi/spi_editabletext.c
(AccessibleEditableText_insertText): constify.

* test/test-simple.c (focus_me): make more robust.

* libspi/accessible.c: remove some printfs in methods that
we test and work fine, so we can get a clean tree dump.

* test/test-simple.c (validate_accessible),
(validate_tree): make tree dumping pretty too.

* at-bridge/bridge.c (bridge_signal_listener): upd. so
it builds without debug on.

* test/test-simple.c (validate_accessible): fix the most
ludicrous bug.

* cspi/spi_main.c (spi_object_release): leave the nicely
blanked memory around if in debug mode.

* cspi/spi-listener-impl.c (cspi_event): use add_check.

[committed to fixups2]
2001-12-05  Michael Meeks  <michael@ximian.com>

* libspi/editabletext.c
(spi_editable_text_class_init): g_type_class_peek_parent,
not interface peek - so we finalize cleanly.

* libspi/accessible.c (spi_accessible_new): kill debug.

* test/test-simple.c (validate_accessible): fix ref.
leak, print strings before freeing them; sigh, comment a
chunk out due to strangeness.
(validate_tree): unref the child after use.

* cspi/spi_component.c (AccessibleComponent_getLayer):
add missing break statement, switch on zlayer not the
uninitialized retval.

* cspi/spi_main.c (cspi_object_add): add assert, local ref
before (possibly re-entering) remote unref.

* test/simple-at.c (main): unref the desktop.

* cspi/spi_accessible.c (cspi_accessible_is_a): move
into:

* cspi/spi_main.c (cspi_accessible_is_a): here to
isolate bonobo API usage more.

* libspi/registry.c (impl_accessibility_registry_register_application):
prune bogus comment.

2001-12-04  Michael Meeks  <michael@ximian.com>

* test/test-simple.c (validate_tree): upd.
IndexInParent check to make it more lucid.
(validate_accessible): dump the tree.

* libspi/accessible.c (de_register_public_ref),
(get_public_refs): impl.
(spi_accessible_new): make more efficient & intuitive.
Now IndexInParent check works.

2001-12-04  Michael Meeks  <michael@ximian.com>

* cspi/spi-util.h: remove.

* cspi/spi.h: move SPI_freeString here

* libspi/component.c (impl_accessibility_component_get_layer):
warning fixage.
(impl_accessibility_component_get_mdi_z_order): ditto,
return -1 on error - is this ok ?

* test/test-simple.c (test_application): impl.

* cspi/spi_accessible.c (Accessible_getApplication),
(Accessible_isApplication): impl.

* libspi/registry.c (spi_listener_struct_free): release
the CORBA reference too.

* libspi/accessible.c
(impl_accessibility_accessible_get_parent): fix ref leak.

* libspi/registry.c (spi_registry_new): make the registry
immortal - we don't want it to go away ever.

* libspi/application.c
(spi_accessible_application_finalize): impl. cleanup.

* cspi/spi_registry.c
(deregisterGlobalEventListenerAll),
(deregisterGlobalEventListener),
(deregisterAccessibleKeystrokeListener): fix ref leak.

* cspi/spi_main.c (SPI_init): remove redundant ref.

* test/test-simple.c (unutterable_horror): impl. to force a
clean shutdown.
(main): use it.

* libspi/registry.c
(impl_accessibility_registry_deregister_application): release
the application when we de-register it.

* at-bridge/bridge.c (bridge_exit_func): comment out shutdown
until we have the infastructure to get it right.

2001-12-03  Michael Meeks  <michael@ximian.com>

* libspi/Makefile.am: only build eventlistener.[ch]

* libspi/accessible.c
(impl_accessibility_accessible_get_child_at_index): don't leak.

* at-bridge/bridge.c (bridge_exit_func): cope with an exit
before we hit the idle handler.

* cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
debugging than exit.

* at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.

* libspi/listener.c (impl_notify_event): check source
not NIL before unref.

* libspi/registry.c (impl_registry_notify_event): ditto.

* libspi/eventlistener.c
(impl_accessible_event_notify_event): unref the source.

* libspi/accessibleeventlistener.c
(impl_accessible_event_notify_event): unref the source.

* idl/Event.idl: remove 'hash_id' attribute - of no
concievable use.

* libspi/application.c (notify_listeners): upd list
iteration & sig.
(spi_application_object_event_listener),
(spi_application_toolkit_event_listener): upd to do correct
CORBA ref counting.

* libspi/registry.c
(_registry_notify_listeners): update.
(parse_event_type): this method also leaks like a sieve.
(impl_accessibility_registry_deregister_global_event_listener):
fix ETYPE_WINDOW case.

* libspi/application.c
(impl_accessibility_application_register_object_event_listener):
kill leak.

* libspi/hyperlink.c (impl_getObject): fix ref mistake.

* libspi/hypertext.c (impl_getLink): ditto.

* cspi/spi_main.c (cspi_object_add): remove
bogus CORBA_Object_duplicate.

* cspi/spi-listener-impl.c (cspi_event): dup/ref
on the object_add.

* cspi/spi_accessible.c
(Accessible_getRelationSet): fix leak / referencing issue.

* cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
(cspi_object_add, cspi_object_unref): upd.
(spi_object_release, get_live_refs): impl.
(cspi_cleanup): simplify.

* *.[ch]: s/boolean/SpiBoolean/

* cspi/spi_accessible.c (role_names): actualy order so it
corresponds with the enum !

* test/test-simple.c (test_roles): check some role strings
vs. enums to detect offset errors.

2001-12-01  Michael Meeks  <michael@ximian.com>

* cspi/spi_main.c (cspi_object_add_check): impl. helper.

* cspi/spi_accessible.c (Accessible_getChildAtIndex):
check ev before
(Accessible_getChildAtIndex): use cspi_add_check so we
check the ev before using a (possibly) invalid value.

* libspi/accessible.c
(impl_accessibility_accessible_get_parent): don't segv
on a NULL parent.

* at-bridge/bridge.c (gtk_module_init): upd.
(bridge_property_event_listener): don't leak strings
and events !
(bridge_state_event_listener),
(bridge_property_event_listener): don't use a static
buffer in case of recursive event emission &
re-enterancy - split out the swathe of cut and paste
into:
(emit_eventv): and fix 2 ref leaks here & comply to the
coding style.
(bridge_register_app): rename to
(bridge_idle_init): this and kill arg parsing, split
various inits & bonobo-activation registration to module
init time, kill referencing error.
(bridge_exit_func): fix the same leak.
(bridge_focus_tracker): don't leak event structures
and strings.
(bridge_signal_listener): more leakage and cut & paste
fixage.
(bridge_key_listener): return the result - FIXME is
this polarity correct ?
(accessibility_keystroke_from_atk_key_event): rename
(accessibility_init_keystroke_from_atk_key_event): and stop
leakage.
(gtk_module_init): return a value - not that it is checked by
Gtk - but hey.
(bridge_key_listener): register my horror at casting between
IDL defined structs.
(bridge_get_registry): kill - not used.

* cspi/spi_accessible.c (Accessible_getRole): make return const.

* test/test-simple.c (test_roles): impl.
(test_desktop, validate_accessible, validate_tree): impl.

* cspi/spi_accessible.c (role_names): fixup bogus
MAX_ROLES setup, make constants const for efficient linkage
(AccessibleRole_getName): conform to coding style, make
return 'const'

2001-11-30  Michael Meeks  <michael@ximian.com>

* cspi/spi.h: add missing prototype.

* libspi/registry.c (spi_listener_struct_new): fix sig.

* test/Makefile.am: add test-simple

* test/test-simple.c: add

* test/test.sh: add.

* cspi/spi_main.c (SPI_init): make SPI_inited module global,

* at-bridge/bridge.c (gtk_module_init): don't do an idle init,
do it straight - since otherwise we often get an activation race.

[ work before Bill duplicated a chunk of it ... ]
2001-11-30  Michael Meeks  <michael@ximian.com>

* libspi/keystrokelistener.c
(spi_keystroke_listener_class_init): fixup arg
count (doh).

* libspi/eventlistener.c
(spi_event_listener_class_init): ditto.

* tests/test.sh: add.

* cspi/spi-listener-impl.h: update macros.

* cspi/spi-listener-impl.c
(cspi_event_listener_remove_callback): add
correct pre-conditions.

* cspi/spi_main.c (SPI_exit): guard vs. double
exits, exit the mainloop nicely.
(SPI_event_main): make more sense.
(SPI_init): move the atexit evilness here so we
always do it (yuck).
(SPI_event_main): upd.

* test/simple-at.c: update for listener changes.

* registryd/registryd.c (main): prune kruft.

* libspi/libspi.h: upd.

* libspi/eventlistener.[ch]: rename broken macros.

* libspi/accessibleeventlistener.[ch]: remove.

* libspi/*.[ch]: IS_SPI_... -> SPI_IS_...

* test/test-simple.c: Add - automated tests.

* cspi/spi-listener-impl.c (cspi_event),
(cspi_key_event): add user_data to invoke.
(cspi_keystroke_listener_finalize): impl.
(cspi_keystroke_listener_class_init): upd.

* cspi/spi_event.c
(createAccessibleEventListener),
(AccessibleEventListener_addCallback),
(createAccessibleKeystrokeListener),
(AccessibleKeystrokeListener_addCallback): upd.

* libspi/deviceeventcontroller.c
(spi_device_event_controller_check_key_event): add public proto.

* libspi/registry.c
(impl_accessibility_registry_deregister_global_event_listener):
always init listeners.
(_registry_notify_listeners): yes it is.

* cspi/spi-listener-impl.c (cspi_key_event):
move debug to here.
(cspi_event_listener_finalize): impl.
(cspi_event_listener_class_init): hook up.
(event_handler_new, event_handler_free),
(event_list_remove_by_callback): impl.
(cspi_event_listener_remove_callback),
(cspi_keystroke_listener_remove_callback),
(cspi_keystroke_listener_add_callback),
(cspi_event_listener_add_callback): upd.

* libspi/keystrokelistener.c
(keystroke_listener_object_finalize): kill
(spi_keystroke_listener_class_init): upd.
(spi_keystroke_listener_add_callback),
(spi_keystroke_listener_remove_callback): kill,
use signals.
(impl_key_event): prune drasticaly.

* libspi/eventlistener.c
(spi_event_listener_add_callback),
(spi_event_listener_remove_callback): kill, use
signals.
(impl_accessible_event_notify_event): upd.
(spi_event_listener_object_finalize): remove.

* libspi/Makefile.am: use eventlistener.[ch]

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@145 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoBugfix for ZLayer API, and added missing declarations for Value interface
billh [Thu, 6 Dec 2001 19:10:21 +0000 (19:10 +0000)]
Bugfix for ZLayer API, and added missing declarations for Value interface
in spi.h

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@141 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoChanged IDL for State, Component, and Image to reduce use of out params.
billh [Tue, 4 Dec 2001 22:51:38 +0000 (22:51 +0000)]
Changed IDL for State, Component, and Image to reduce use of out params.
Fixed string memory leaks in registry.c.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@135 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded implementations for Accessibility_Component_getLayer and
billh [Tue, 4 Dec 2001 00:38:48 +0000 (00:38 +0000)]
Added implementations for Accessibility_Component_getLayer and
Accessibility_Component_getMDIZOrder.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@131 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded methods for Component Layer and MDI Z-Order information (see
billh [Tue, 4 Dec 2001 00:25:41 +0000 (00:25 +0000)]
Added methods for Component Layer and MDI Z-Order information (see
recent additions to ATK).
Changed typedef 'boolean' to 'SPIBoolean', to avoid C++ clash.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@130 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded API to IDL and cspi (but not libspi, yet) for AccessibleComponent
billh [Tue, 4 Dec 2001 00:24:35 +0000 (00:24 +0000)]
Added API to IDL and cspi (but not libspi, yet) for AccessibleComponent
Layer and MDI Z-Order (see recent additions to ATK).
Changed typedef 'boolean' to 'SPIBoolean', to avoid C++ keyword clashes,
in cspi.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@129 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoRemoved unnecessary gdk dependency from registryd.
billh [Sun, 2 Dec 2001 14:25:52 +0000 (14:25 +0000)]
Removed unnecessary gdk dependency from registryd.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@128 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoRemoved obsolete (and unused) code from spi_registry.c (X event loop for passive...
billh [Sun, 2 Dec 2001 12:32:03 +0000 (12:32 +0000)]
Removed obsolete (and unused) code from spi_registry.c (X event loop for passive key grabs).

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@127 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded docs for SPI_freeString, and used it to stop memory leak of strings
billh [Fri, 30 Nov 2001 14:48:23 +0000 (14:48 +0000)]
Added docs for SPI_freeString, and used it to stop memory leak of strings
in simple-at.c.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@126 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoMerged Michael's branch back into HEAD, and fixed a number of reference counting...
billh [Wed, 28 Nov 2001 21:48:07 +0000 (21:48 +0000)]
Merged Michael's branch back into HEAD, and fixed a number of reference counting issues.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@123 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoadd so I can tag.
michael [Mon, 26 Nov 2001 04:38:16 +0000 (04:38 +0000)]
add so I can tag.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@117 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded a TODO comment to mag_image.c.
billh [Sun, 25 Nov 2001 14:50:39 +0000 (14:50 +0000)]
Added a TODO comment to mag_image.c.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@116 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded simple scanning to the virtual keyboard demo, to show one way to
billh [Sun, 25 Nov 2001 14:47:03 +0000 (14:47 +0000)]
Added simple scanning to the virtual keyboard demo, to show one way to
do it with glib APIs.
Added an implementation of the Magnifier:getZoomRegionParams IDL to the
simple magnifier.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@115 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-11-23 Mark McLoughlin <mark@skynet.ie>
mmclouglin [Fri, 23 Nov 2001 18:51:15 +0000 (18:51 +0000)]
2001-11-23  Mark McLoughlin  <mark@skynet.ie>

        * cspi/spi-private.h: my guess at what michael forgot
        before he ran off to NZ :-)

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@114 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years ago2001-11-23 Michael Meeks <michael@ximian.com>
michael [Fri, 23 Nov 2001 00:30:43 +0000 (00:30 +0000)]
2001-11-23  Michael Meeks  <michael@ximian.com>

* cspi/spi_event.c (AccessibleEventListener_removeCallback):
comment out non existant method invoke so we link.

* cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
use bonobo_exception_get_text for more friendly warnings.

* cspi/spi.c (Obj_Add): move into spi_main & rename
spi_object_add; kill spi.c

* cspi/spi_registry.c
(deregisterGlobalEventListener),
(deregisterGlobalEventListenerAll),
(registerGlobalEventListener): fix exception leaks.

* cspi/spi_main.c (spi_exception): impl. helper, so we
don't leak exceptions.

* cspi/spi_selection.c
(AccessibleSelection_deselectSelectedChild): return the
success state.

* cspi/spi_main.c (spi_ev): impl; hack - gack.
(spi_registry): ditto.
(SPI_init): guard against double inits.

* cspi/*.c: use spi_ev (), and spi_registry () where
appropriate - a temporary hack until we have something
better. Use spi_object_add

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@113 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoadded use of non-preemptive keylistener to simple-at test.
billh [Thu, 22 Nov 2001 14:55:54 +0000 (14:55 +0000)]
added use of non-preemptive keylistener to simple-at test.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@112 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded demo of both preemptive and non-preemptive key listeners to test/simple-at...
billh [Thu, 22 Nov 2001 14:11:02 +0000 (14:11 +0000)]
Added demo of both preemptive and non-preemptive key listeners to test/simple-at, and committed bugfixes to make it work.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@111 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoCHanges to fix broken docs build (sorry!). Disabled build of IDL docs since
billh [Thu, 22 Nov 2001 11:55:47 +0000 (11:55 +0000)]
CHanges to fix broken docs build (sorry!).  Disabled build of IDL docs since
gtk-doc may not be able to scan the IDL correctly.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@110 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded filters for key events, so now basic key event support
billh [Wed, 21 Nov 2001 23:55:52 +0000 (23:55 +0000)]
Added filters for key events, so now basic key event support
should be complete (initial implementation).

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@109 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoAdded makefile.
billh [Wed, 21 Nov 2001 18:48:20 +0000 (18:48 +0000)]
Added makefile.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@108 e2bd861d-eb25-0410-b326-f6ed22b6b98c

22 years agoRestructured docs directory, added docs/reference/idl and docs/reference/cspi.
billh [Wed, 21 Nov 2001 17:16:57 +0000 (17:16 +0000)]
Restructured docs directory, added docs/reference/idl and docs/reference/cspi.
Fixed docs build problem, should build from a cold start now, including idl docs.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@107 e2bd861d-eb25-0410-b326-f6ed22b6b98c