...
 
Commits (172)
......@@ -2,7 +2,7 @@
Authors of AT-SPI D-Bus implementation
--------------------------------------
Mike Gorse <mgorse@novell.com>
Mike Gorse <mgorse@suse.com>
Mark Doffman <mark.doffman@codethink.co.uk>
......
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
......@@ -16,97 +17,109 @@ freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
......@@ -145,7 +158,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
......@@ -254,8 +267,8 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
......@@ -282,23 +295,31 @@ of these things:
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
......@@ -308,7 +329,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
......@@ -347,9 +368,9 @@ Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
......@@ -390,7 +411,7 @@ excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
......@@ -401,7 +422,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
......@@ -435,7 +456,7 @@ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
......@@ -453,19 +474,18 @@ convey the exclusion of warranty; and each file should have at least the
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
Lesser General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307 USA.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
......
Install procedure
-----------------
% gzip -cd at-spi-core-2.0.0.tar.gz | tar xvf - # unpack the sources
% cd at-spi-core-2.0.0 # change to the toplevel directory
% ./configure # run the `configure' script
% make # build at-spi-core
tar -xJf at-spi2-core-2.34.0.tar.xz # unpack the sources
% cd at-spi2-core-2.34.0 # change to the toplevel directory
mkdir build # create a build directory
meson .. # configure
ninja # build at-spi2-core
[ Become root if necessary ]
% make install # install at-spi-core
ninja install # install at-spi2-core
Requirements
------------
GNU make
GNU autotools
pkg-config
Packages with local machine architecture:
meson
ninja
pkg-config
gobject-introspection
gtk-doc (for generation of documentation)
Packages with target architecture:
glib
dbus
dbus-glib
X
XEVIE (Reccomended)
libX11, libXtst, libXi (for X11 support)
Mike Gorse <mgorse@novell.com>
Li Yuan <lee.yuan@oracle.com>
Mark Doffman <mark.doffman@codethink.co.uk>
Mike Gorse <mgorse@suse.com>
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection --enable-gtk-doc
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
SUBDIRS=po dbind xml atspi bus registryd doc test
ACLOCAL_AMFLAGS=-I m4 ${ACLOCAL_FLAGS}
EXTRA_DIST = \
atspi-2-uninstalled.pc.in \
atspi-2.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = atspi-2.pc
DISTCLEANFILES = \
atspi-2-uninstalled.pc \
atspi-2.pc
MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
gtk-doc.make \
m4/gtk-doc.m4 \
m4/intltool.m4
-include $(top_srcdir)/git.mk
What's new in at-spi2-core 2.34.0:
* Fix a use after free when freeing an event.
* Clean up handling of the X11 property specifying the bus address (#18).
* Update doap.
What's new in at-spi2-core 2.33.92:
* Now requires meson 0.50.0.
* License is now LGPL-2.1+.
* Meson: only link to libdl when it is necessary.
* Update installation instructions.
* Clarify atspi_editable_text_insert_text documentation.
* Do not warn on no reply from pending get_items call.
* Eliminate some superfluous runtime warnings.
What's new in at-spi2-core 2.33.90:
* Refactor the API for the screen reader to notify listeners of its status.
* Add a sender to the AtspiEvent struct.
* Add missing atspi_application_get_type prototype.
* Support mutter remote desktop interface for synthesizing keyboard/mouse
events (likely still needs work).
What's new in at-spi2-core 2.33.2:
* Check WAYLAND_DISPLAY, rather than XDG_SESSION_TYPE, to avoid X
connections. Fixes breakage if X is started with startx and
XDG_SESSION_TYPE is unset.
* X11: also try mod4 and mod5 to generate keysyms.
* Add ATSPI_ROLE_CONTENT_DELETION and ATSPI_ROLE_CONTENT_INSERTION.
* Check for dbus-daemon in /usr/lib (for Solaris).
What's new in at-spi2-core 2.33.1:
* Fix meson build for meson 0.50.0.
* Add atspi_accessible_get_accessible_id.
* Add atspi_text_notify_reading_position.
* Check for an actual X11 session before calling X. This will be needed
for Mutter in the future because checking $DISPLAY is not sufficient,
and xwyland could be automatically started when it isn't wanted.
What's new in at-spi2-core 2.31.92:
* Fix atspi_table_cell_get_(row_column)_header_cells.
* Update documentation to indicate that extents are only meaningful
when an object has both STATE_VISIBLE and STATE_SHOWING.
* Use a consistent style for the meson options.
* Fix a compiler warning on BSD.
* Add ScrollSubstringTo and ScrollSubstringToPoint text interfaces.
What's new in at-spi2-core 2.31.1:
* Bus launcher: fix an issue where the error wasn't cleared on failure.
* Add support for locking/unlocking modifiers.
* Update error log text for consistency.
* Documentation clean-ups.
What's new in at-spi2-core 2.29.1:
* Add dbus-broker support to bus launcher.
* Add ScrollTo and ScrollToPoint component interfaces.
* Do not use deprecated GSettings API
* Fix various compiler warnings and documentation annotations.
What's new in at-spi2-core 2.27.92:
* Support building a static library (bgo#793652).
\
* Fix build on FreeBSD (bgo#791608).
What's new in at-spi2-core 2.27.1:
* Dropped autotools support.
* documentation: Remove list association from
ATSPI_ROLE_DESCRIPTION_{TERM,VALUE} (bgo#791021).
* Fix a potential buffer overflow in at-spi-bus-launcher (bgo#791124).
* Make the build reproducible (bgo#791167).
What's new in at-spi2-core 2.26.1:
* Remove unused dependency on libxkbcommon.
* Various meson build fixes.
* Updated Dutch and Catalan translations.
What's new in at-spi2-core 2.25.92:
* configure.ac: make xkb optional, as intended.
* Optionally read the bus address from the ATSPI_BUS_ADDRESS environment
variable (bgo#787126).
What's new in at-spi2-core 2.25.91:
* Meson builds should now be usable.
What's new in at-spi2-core 2.25.90:
* Fix a couple of introspection issues (bgo#784481).
* atspi_get_a11_bus: don't leak the DBusConnection.
* Meson fixes.
What's new in at-spi2-core 2.25.4:
* Fix gir generation with autotools (bgo#783994).
What's new in at-spi2-core 2.25.3:
* Fix -Wmisleading-indentation warnings.
* Fix memory leak of at-spi-bus-launcher.
* Add error-message, error-for, details, and details-for relation types.
* Poll direct dbus connections in the main loop--fixes processes
being marked hung and the hung flag never being removed.
* Add Meson build system (thanks to Emmanuele Bassi).
* Various build fixes (thanks to Emmanuele Bassi).
What's new in at-spi2-core 2.25.2:
* attempt to fix an occasional crash when an application disappears
(bgo#767074).
* Add some missing roles to correspond with atk (description list,
description term, description value, and footnote).
What's new in at-spi2-core 2.25.1:
* atspi_table_cell_get_position: don't crash on error.
What's new in at-spi2-core 2.23.92:
* Table cell API fixes (bgo#779835).
What's new in at-spi2-core 2.23.90:
* Fix an occasional crash when an application is closed (bgo#767074).
What's new in at-spi2-core 2.23.4:
* Don't pull in X headers if x11 is disabled (bgo#773710).
* at-spi-bus-launcher: session management fixes (bgo#774441).
* events: add recently added page changed event (bgo#719898).
* roles: EXTENDED roles are deprecated (bgo#W720123).
What's new in at-spi2-core 2.2.0:
* at-spi-bus-launcher: fix uninitialized variable.
......
......@@ -5,19 +5,23 @@
xmlns="http://usefulinc.com/ns/doap#">
<name xml:lang="en">at-spi2-core</name>
<shortdesc xml:lang="en">D-Bus accessibility specifications and registration daemon</shortdesc>
<shortdesc xml:lang="en">D-Bus accessibility specifications, library, and registration daemon</shortdesc>
<description xml:lang="en">The Access Technology Service Provider Interface
(AT-SPI) is a set of interfaces that allow access technologies such as screen
readers to programmatically determine what is being displayed on the screen and
simulate keyboard and mouse events. It can also be used for automated testing.
The at-spi2-core module contains the D-Bus specification, the registry daemon,
and a C library for use by access technologies that provides a convenient
wrapper around the DBus interfaces.</description>
<homepage rdf:resource="http://www.linuxfoundation.org/en/Accessibility/ATK/AT-SPI/AT-SPI_on_D-Bus"/>
<license rdf:resource="http://usefulinc.com/doap/licenses/lgpl" />
<bug-database rdf:resource="https://gitlab.gnome.org/GNOME/at-spi2-core/issues/" />
<download-page rdf:resource="http://download.gnome.org/sources/at-spi2-core/" />
<mailing-list rdf:resource="https://lists.linux-foundation.org/mailman/listinfo/accessibility-atspi"/>
<category rdf:resource="http://api.gnome.org/doap-extensions#core" />
<programming-language>C</programming-language>
<maintainer>
<foaf:Person>
<foaf:name>Mark Doffman</foaf:name>
<foaf:mbox rdf:resource="mailto:mark.doffman@codethink.co.uk" />
<gnome:userid>markdoffman</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Mike Gorse</foaf:name>
......@@ -25,11 +29,4 @@
<gnome:userid>mgorse</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Li Yuan</foaf:name>
<foaf:mbox rdf:resource="mailto:lee.yuan@oracle.com" />
<gnome:userid>liyuan</gnome:userid>
</foaf:Person>
</maintainer>
</Project>
Name: atspi
Description: Accessibility Technology software library
Requires: dbus-1
Version: @VERSION@
Libs: ${pc_top_builddir}/${pcfiledir}/atspi/libatspi.la
Cflags: -I${pc_top_builddir}/${pcfiledir}
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: atspi
Description: Accessibility Technology software library
Requires: dbus-1 glib-2.0
Version: @VERSION@
Libs: -L${libdir} -latspi
Cflags: -I${includedir}/at-spi-2.0
lib_LTLIBRARIES = libatspi.la
libatspi_la_LDFLAGS = @LDFLAGS@ @LT_VERSION_INFO@ @LIBTOOL_EXPORT_OPTIONS@ -no-undefined
libatspi_la_CFLAGS = $(DBUS_CFLAGS) \
$(DBIND_CFLAGS) \
$(GLIB_CFLAGS) \
-I$(top_srcdir)/registryd \
-I$(top_builddir)/registryd \
-I$(top_builddir) \
-I$(top_srcdir)
libatspi_la_LIBADD = $(DBUS_LIBS) \
$(GOBJ_LIBS) \
$(X_LIBS) \
$(top_builddir)/dbind/libdbind.la
libatspiincludedir = $(includedir)/at-spi-2.0/atspi
libatspiinclude_HEADERS = \
atspi.h \
atspi-accessible.h \
atspi-action.h \
atspi-application.h \
atspi-collection.h \
atspi-component.h \
atspi-constants.h \
atspi-device-listener.h \
atspi-device-listener-private.h \
atspi-document.h \
atspi-editabletext.h \
atspi-enum-types.h \
atspi-event-listener.h \
atspi-event-listener-private.h \
atspi-gmain.c \
atspi-gmain.h \
atspi-hyperlink.h \
atspi-hypertext.h \
atspi-image.h \
atspi-matchrule.h \
atspi-misc.h \
atspi-object.h \
atspi-private.h \
atspi-registry.h \
atspi-relation.h \
atspi-selection.h \
atspi-stateset.h \
atspi-table.h \
atspi-table-cell.h \
atspi-text.h \
atspi-types.h \
atspi-value.h
libatspi_la_SOURCES = \
$(BUILT_SOURCES) \
$(libatspiinclude_HEADERS) \
atspi.h \
atspi-accessible.c \
atspi-accessible.h \
atspi-accessible-private.h \
atspi-action.c \
atspi-action.h \
atspi-application.c \
atspi-application.h \
atspi-collection.c \
atspi-collection.h \
atspi-component.c \
atspi-component.h \
atspi-constants.h \
atspi-device-listener.c \
atspi-device-listener.h \
atspi-device-listener-private.h \
atspi-document.c \
atspi-document.h \
atspi-editabletext.c \
atspi-editabletext.h \
atspi-event-listener.c \
atspi-event-listener.h \
atspi-event-listener-private.h \
atspi-hyperlink.c \
atspi-hyperlink.h \
atspi-hypertext.c \
atspi-hypertext.h \
atspi-image.c \
atspi-image.h \
atspi-matchrule.c \
atspi-matchrule.h \
atspi-matchrule-private.h \
atspi-misc.c \
atspi-misc.h \
atspi-misc-private.h \
atspi-object.c \
atspi-object.h \
atspi-private.h \
atspi-registry.c \
atspi-registry.h \
atspi-relation.c \
atspi-relation.h \
atspi-selection.c \
atspi-selection.h \
atspi-stateset.c \
atspi-stateset.h \
atspi-table.c \
atspi-table-cell.c \
atspi-table.h \
atspi-text.c \
atspi-text.h \
atspi-types.h \
atspi-value.c \
atspi-value.h
BUILT_SOURCES = \
atspi-enum-types.c \
atspi-enum-types.h
#CLEANFILES = atspi-constants.h
#atspi-constants.h: $(top_srcdir)/xml/spec.xml $(top_srcdir)/tools/c-constants-gen.py
# python $(top_srcdir)/tools/c-constants-gen.py Atspi $(top_srcdir)/xml/spec.xml atspi-constants
ENUM_TYPES = \
atspi-constants.h \
atspi-types.h
atspi-enum-types.h: atspi-enum-types.h.template $(ENUM_TYPES) $(GLIB_MKENUMS)
$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template atspi-enum-types.h.template $(ENUM_TYPES)) > $@
atspi-enum-types.c: atspi-enum-types.c.template $(ENUM_TYPES) $(GLIB_MKENUMS)
$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template atspi-enum-types.c.template $(ENUM_TYPES)) > $@
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
EXTRA_DIST = \
atspi-enum-types.c.template \
atspi-enum-types.h.template
if HAVE_INTROSPECTION
Atspi-2.0.gir: libatspi.la
Atspi_2_0_gir_INCLUDES = GLib-2.0 GObject-2.0
Atspi_2_0_gir_PACKAGES = dbus-1
Atspi_2_0_gir_EXPORT_PACKAGES = atspi-2
Atspi_2_0_gir_CFLAGS = -I$(top_builddir) -I$(top_srcdir)
Atspi_2_0_gir_LIBS = libatspi.la $(top_builddir)/dbind/libdbind.la
Atspi_2_0_gir_FILES = $(libatspi_la_SOURCES)
Atspi_2_0_gir_SCANNERFLAGS = --namespace Atspi --nsversion=2.0
INTROSPECTION_SCANNER_ARGS += --c-include='atspi/atspi.h'
INTROSPECTION_GIRS += Atspi-2.0.gir
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES = \
$(gir_DATA) \
$(typelib_DATA)
endif
-include $(top_srcdir)/git.mk
......@@ -8,19 +8,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_ACCESSIBLE_PRIVATE_H_
......@@ -29,6 +29,7 @@
G_BEGIN_DECLS
#include "atspi-accessible.h"
#include "atspimarshal.h"
struct _AtspiAccessiblePrivate
{
......
......@@ -7,28 +7,82 @@
* Copyright 2010, 2011 Novell, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "atspi-private.h"
#include "atspi-accessible-private.h"
#include <string.h>
enum {
REGION_CHANGED,
LAST_SIGNAL
};
static gboolean enable_caching = FALSE;
static guint quark_locale;
static guint atspi_accessible_signals[LAST_SIGNAL] = { 0, };
static gboolean
screen_reader_signal_watcher (GSignalInvocationHint *signal_hint,
guint n_param_values,
const GValue *param_values,
gpointer data)
{
GObject *object;
AtspiAccessible *accessible;
GSignalQuery signal_query;
const char *name;
DBusMessage *signal;
DBusMessageIter iter, iter_struct, iter_variant, iter_array;
dbus_int32_t detail1, detail2;
const char *detail = "";
object = g_value_get_object (param_values + 0);
g_return_val_if_fail (ATSPI_IS_ACCESSIBLE(object), FALSE);
g_signal_query (signal_hint->signal_id, &signal_query);
name = signal_query.signal_name;
detail1 = g_value_get_int (param_values + 1);
detail2 = g_value_get_int (param_values + 2);
accessible = ATSPI_ACCESSIBLE (object);
signal = dbus_message_new_signal (ATSPI_DBUS_PATH_SCREEN_READER,
ATSPI_DBUS_INTERFACE_EVENT_SCREEN_READER,
"RegionChanged");
dbus_message_iter_init_append (signal, &iter);
dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &detail);
dbus_message_iter_append_basic (&iter, DBUS_TYPE_INT32, &detail1);
dbus_message_iter_append_basic (&iter, DBUS_TYPE_INT32, &detail2);
dbus_message_iter_open_container (&iter, DBUS_TYPE_VARIANT, "(so)",
&iter_variant);
dbus_message_iter_open_container (&iter_variant, DBUS_TYPE_STRUCT, NULL,
&iter_struct);
dbus_message_iter_append_basic (&iter_struct, DBUS_TYPE_STRING, &accessible->parent.app->bus_name);
dbus_message_iter_append_basic (&iter_struct, DBUS_TYPE_OBJECT_PATH, &accessible->parent.path);
dbus_message_iter_close_container (&iter_variant, &iter_struct);
dbus_message_iter_close_container (&iter, &iter_variant);
dbus_message_iter_open_container (&iter, DBUS_TYPE_ARRAY, "{sv}",
&iter_array);
dbus_message_iter_close_container (&iter, &iter_array);
dbus_connection_send (_atspi_bus (), signal, NULL);
dbus_message_unref (signal);
return TRUE;
}
static void
atspi_action_interface_init (AtspiAction *action)
{
......@@ -108,6 +162,13 @@ G_DEFINE_TYPE_WITH_CODE (AtspiAccessible, atspi_accessible, ATSPI_TYPE_OBJECT,
static gint accessible_count = 0;
#endif
static void
atspi_accessible_unref (GObject *accessible)
{
if (accessible != NULL)
g_object_unref(accessible);
}
static void
atspi_accessible_init (AtspiAccessible *accessible)
{
......@@ -119,7 +180,7 @@ atspi_accessible_init (AtspiAccessible *accessible)
accessible->priv = atspi_accessible_get_instance_private (accessible);
accessible->children = g_ptr_array_new_with_free_func (g_object_unref);
accessible->children = g_ptr_array_new_with_free_func (atspi_accessible_unref);
}
static void
......@@ -173,13 +234,14 @@ atspi_accessible_finalize (GObject *object)
{
AtspiAccessible *accessible = ATSPI_ACCESSIBLE (object);
g_free (accessible->description);
g_free (accessible->name);
g_free (accessible->description);
g_free (accessible->name);
if (accessible->attributes)
g_hash_table_unref (accessible->attributes);
if (accessible->priv->cache)
g_hash_table_destroy (accessible->priv->cache);
if (accessible->priv->cache)
g_hash_table_destroy (accessible->priv->cache);
#ifdef DEBUG_REF_COUNTS
accessible_count--;
......@@ -188,6 +250,8 @@ atspi_accessible_finalize (GObject *object)
#endif
G_OBJECT_CLASS (atspi_accessible_parent_class)->finalize (object);
/* TODO: remove emission hook */
}
static void
......@@ -199,6 +263,33 @@ atspi_accessible_class_init (AtspiAccessibleClass *klass)
object_class->finalize = atspi_accessible_finalize;
quark_locale = g_quark_from_string ("accessible-locale");
/**
* AtspiAccessible::region-changed:
* @atspiaccessible: the object which received the signal
* @arg1: an integer specifying the current offset of the text being read,
* if the object is textual.
* @arg2: an integer specifying the ending offset of the text being read,
* if the object is textual.
*
* The signal "region-changed" is emitted by a screen reader to indicate
* that it is now reading or tracking a new object, or, a new piece of
* text within an object. This allows a magnifier to gain the information
* needed to highlight the object that the screen reader is reading.
*/
atspi_accessible_signals[REGION_CHANGED] =
g_signal_new ("region_changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (AtspiAccessibleClass, region_changed),
NULL, NULL,
atspi_marshal_VOID__INT_INT,
G_TYPE_NONE,
2, G_TYPE_INT, G_TYPE_INT);
g_signal_add_emission_hook (atspi_accessible_signals[REGION_CHANGED], 0,
screen_reader_signal_watcher, NULL,
(GDestroyNotify) NULL);
}
/**
......@@ -268,11 +359,12 @@ atspi_accessible_get_parent (AtspiAccessible *obj, GError **error)
{
g_return_val_if_fail (obj != NULL, NULL);
if (obj->parent.app &&
!_atspi_accessible_test_cache (obj, ATSPI_CACHE_PARENT))
if (!_atspi_accessible_test_cache (obj, ATSPI_CACHE_PARENT))
{
DBusMessage *message, *reply;
DBusMessageIter iter, iter_variant;
if (!obj->parent.app)
return NULL;
message = dbus_message_new_method_call (obj->parent.app->bus_name,
obj->parent.path,
DBUS_INTERFACE_PROPERTIES, "Get");
......@@ -1765,6 +1857,33 @@ atspi_accessible_get_object_locale (AtspiAccessible *accessible, GError **error)
return locale;
}
/**
* atspi_accessible_get_accessible_id:
* @obj: an #AtspiAccessible
*
* Gets the accessible id of the accessible. This is not meant to be presented
* to the user, but to be an id which is stable over application development.
* Typically, this is the gtkbuilder id.
*
* Since: 2.34
*
* Returns: a character string representing the accessible id of the
* #AtspiAccessible object or NULL on exception.
**/
gchar*
atspi_accessible_get_accessible_id (AtspiAccessible *obj, GError **error)
{
gchar *accessible_id;
g_return_val_if_fail (obj != NULL, NULL);
if (!_atspi_dbus_get_property (obj, atspi_interface_accessible,
"AccessibleId", error, "s", &accessible_id))
return NULL;
return accessible_id;
}
void
free_value (gpointer data)
{
......
......@@ -8,19 +8,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_ACCESSIBLE_H_
......@@ -64,6 +64,8 @@ typedef struct _AtspiAccessibleClass AtspiAccessibleClass;
struct _AtspiAccessibleClass
{
AtspiObjectClass parent_class;
void (*region_changed) (AtspiAccessible *accessible, gint current_offset, gint last_offset);
};
GType atspi_accessible_get_type (void);
......@@ -167,6 +169,8 @@ void atspi_accessible_clear_cache (AtspiAccessible *obj);
guint atspi_accessible_get_process_id (AtspiAccessible *accessible, GError **error);
gchar * atspi_accessible_get_accessible_id (AtspiAccessible *obj, GError **error);
/* private */
void _atspi_accessible_add_cache (AtspiAccessible *accessible, AtspiCache flag);
AtspiCache _atspi_accessible_get_cache_mask (AtspiAccessible *accessible);
......
......@@ -6,19 +6,19 @@
* Copyright 2001, 2002 Ximian, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "atspi-private.h"
......
......@@ -7,19 +7,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_ACTION_H_
......
......@@ -6,19 +6,19 @@
* Copyright 2001, 2002 Ximian, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "atspi-private.h"
......@@ -58,6 +58,7 @@ atspi_application_dispose (GObject *object)
if (application->root)
{
g_clear_object (&application->root->parent.app);
g_object_unref (application->root);
application->root = NULL;
}
......
......@@ -7,19 +7,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_APPLICATION_H_
......@@ -27,6 +27,7 @@
#include <dbus/dbus.h>
#include "atspi-types.h"
#include "atspi-accessible.h"
#include <sys/time.h>
......@@ -63,6 +64,8 @@ struct _AtspiApplicationClass
AtspiApplication *
_atspi_application_new (const char *bus_name);
GType atspi_application_get_type (void);
G_END_DECLS
#endif /* _ATSPI_APPLICATION_H_ */
......@@ -6,19 +6,19 @@
* Copyright 2010, 2011 Novell, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "atspi-private.h"
......@@ -36,7 +36,7 @@ atspi_collection_is_ancestor_of (AtspiCollection *collection,
AtspiAccessible *test,
GError **error)
{
g_warning ("Atspi: TODO: Implement is_ancestor_of");
g_warning ("AT-SPI: TODO: Implement is_ancestor_of");
return FALSE;
}
......@@ -267,7 +267,7 @@ atspi_collection_get_matches_from (AtspiCollection *collection,
AtspiAccessible *
atspi_collection_get_active_descendant (AtspiCollection *collection, GError **error)
{
g_warning ("atspi: TODO: Implement get_active_descendants");
g_warning ("AT-SPI: TODO: Implement get_active_descendants");
return NULL;
}
......
......@@ -8,19 +8,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_COLLECTION_H_
......
......@@ -6,19 +6,19 @@
* Copyright 2001, 2002 Ximian, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/*
......@@ -129,6 +129,8 @@ atspi_component_get_accessible_at_point (AtspiComponent *obj,
* (e.g. ATSPI_COORD_TYPE_WINDOW, ATSPI_COORD_TYPE_SCREEN).
*
* Gets the bounding box of the specified #AtspiComponent.
* The returned values are meaningful only if the Component has both
* STATE_VISIBLE and STATE_SHOWING.
*
* Returns: An #AtspiRect giving the accessible's extents.
**/
......@@ -164,6 +166,8 @@ atspi_component_get_extents (AtspiComponent *obj,
* (e.g. ATSPI_COORD_TYPE_WINDOW, ATSPI_COORD_TYPE_SCREEN).
*
* Gets the minimum x and y coordinates of the specified #AtspiComponent.
* The returned values are meaningful only if the Component has both
* STATE_VISIBLE and STATE_SHOWING.
*
* returns: An #AtspiPoint giving the @obj's position.
**/
......@@ -192,6 +196,8 @@ atspi_component_get_position (AtspiComponent *obj,
* @obj: a pointer to the #AtspiComponent to query.
*
* Gets the size of the specified #AtspiComponent.
* The returned values are meaningful only if the Component has both
* STATE_VISIBLE and STATE_SHOWING.
*
* returns: An #AtspiPoint giving the @obj's size.
**/
......@@ -412,6 +418,63 @@ atspi_component_set_size (AtspiComponent *obj,
return ret;
}
/**
* atspi_component_scroll_to:
* @obj: a pointer to the #AtspiComponent object on which to operate.
* @type: a #AtspiScrollType indicating where the object should be placed on the
* screen.
*
* Scrolls whatever container of the #AtspiComponent object so it becomes
* visible on the screen.
*
* Returns: #TRUE if successful, #FALSE otherwise.
**/
gboolean
atspi_component_scroll_to (AtspiComponent *obj,
AtspiScrollType type,
GError **error)
{
dbus_bool_t retval = FALSE;
g_return_val_if_fail (obj != NULL, FALSE);
_atspi_dbus_call (obj, atspi_interface_component,
"ScrollTo", error, "u=>b", type, &retval);
return retval;
}
/**
* atspi_component_scroll_to_point:
* @obj: a pointer to the #AtspiComponent object on which to operate.
* @coords: a #AtspiCoordType indicating whether the coordinates are relative to
* the screen, to the window, or to the parent object.
* @x: the x coordinate of the point to reach
* @y: the y coordinate of the point to reach
* @error: return location for a #GError
*
* Scrolls whatever container of the #AtspiComponent object so it becomes
* visible on the screen at a given position.
*
* Returns: #TRUE if successful, #FALSE otherwise.
**/
gboolean
atspi_component_scroll_to_point (AtspiComponent *obj,
AtspiCoordType coords,
gint x,
gint y,
GError **error)
{
dbus_bool_t retval = FALSE;
g_return_val_if_fail (obj != NULL, FALSE);
_atspi_dbus_call (obj, atspi_interface_component,
"ScrollToPoint", error, "uii=>b", coords, x, y, &retval);
return retval;
}
static void
atspi_component_base_init (AtspiComponent *klass)
{
......
......@@ -7,19 +7,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _ATSPI_COMPONENT_H_
......@@ -107,6 +107,10 @@ gboolean atspi_component_set_position (AtspiComponent *obj, gint x, gint y, Atsp
gboolean atspi_component_set_size (AtspiComponent *obj, gint width, gint height, GError **error);
gboolean atspi_component_scroll_to (AtspiComponent *obj, AtspiScrollType type, GError **error);
gboolean atspi_component_scroll_to_point (AtspiComponent *obj, AtspiCoordType coords, gint x, gint y, GError **error);
G_END_DECLS
#endif /* _ATSPI_COMPONENT_H_ */
This diff is collapsed.
......@@ -7,19 +7,19 @@
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later versio