summaryrefslogtreecommitdiff
path: root/droute
Commit message (Collapse)AuthorAgeFilesLines
* Remove some unneeded conditionalsMike Gorse2022-04-121-12/+0
| | | | | DBUS_ERROR_UNKNOWN_OBJECT, etc. have been defined for more than a decade now. No need to check for them.
* Fix some compiler warningsMike Gorse2022-04-121-2/+2
|
* droute: handle unimplemented interfaces for GetAll and introspectionMike Gorse2022-04-082-7/+23
| | | | | | | | | The iterator for retrieving all properties doesn't handle a getter failing, which happens if the AtkObject doesn't implement the atk interface corresponding to the dbus interface. This leads to the application aborting on account of a malformed DBusMessage. Helps #20
* Relicense as LGPL 2.1Mike Gorse2019-08-286-24/+24
| | | | Fixes https://gitlab.gnome.org/GNOME/at-spi2-atk/issues/2
* Fix old FSF addressMike Gorse2019-08-276-12/+12
|
* Add missing return on errorEmmanuele Bassi2018-05-171-0/+1
| | | | | The leak fix in commit c45b5870 removed a return in an error path. Let's put it back.
* Remove an unused labelEmmanuele Bassi2018-05-171-1/+0
| | | | Avoid the compiler warning us that `out` is defined but unused.
* Drop autotools supportMike Gorse2017-10-301-32/+0
|
* Add meson build files to Makefile.amMike Gorse2017-06-191-0/+2
|
* Add Meson build systemwip/mesonEmmanuele Bassi2017-05-231-0/+18
| | | | | | | Meson is a fast, portable, easy to understand meta-build system. It is currently being adopted in various projects inside GNOME alongside Autotools, in the hope of making it the default build system for future releases.
* More DBusError leak fixesMike Gorse2013-05-021-4/+18
|
* droute: Fix another memory few memory leaksJasper St. Pierre2012-12-081-0/+2
| | | | | | We need to free the pointer array here, along with the path. https://bugzilla.gnome.org/show_bug.cgi?id=689887
* droute: Fix memory leak in path cleanupAndrew Potter2012-11-191-2/+2
| | | | | | | | Frees all allocated memory. g_ptr_array_free(..., FALSE) was probably being called to avoid a destructor being called on the elements of the array that point to static data. But that method returns an array that must still be g_free()d. https://bugzilla.gnome.org/show_bug.cgi?id=688363
* Fix droute test, and remove dbind dependencyMike Gorse2012-11-122-21/+53
| | | | | | | | The droute test was broken (it had not been updated for recent API changes and also did not return a non-zero exit code on failure). Also, it is the only thing in at-spi2-atk that uses dbind, so re-worked it to call libdbus directly, so that we can remove dbind / avoid having it both here and in at-spi2-core.
* droute: Fix compile-time warningsBastien Nocera2012-10-111-2/+1
| | | | | | Unused variables and discarding 'const' qualifier. https://bugzilla.gnome.org/show_bug.cgi?id=678045
* Have DoAction send the reply message *before* invoking atkMike Gorse2012-03-051-8/+7
| | | | | | | | | | | | | | | | | In the past, a gtk button's do_action handler added an idle to invoke the button and then returned, but now the idle has been removed, and the do_action call activates the button directly, meaning that, if the button invokes a dialogue, then atk_action_do_action will not return until the dialog closes. So, to be safe, we need to send a reply before invoking atk. This means that atk's return value gets ignored, although it was somewhat meaningless in gtk's case anyhow. This required that droute's behavior be changed so that, if a handler does not return a message, droute will now assume that the handler already sent a reply, rather than synthesizing a default empty reply. Thus, handlers are now required to return a value DBusMessage. Perhaps the API should really be asynchronous, with a callback to be invoked when the action finishes.
* Fixed some problems when shutting down and restarting the moduleMike Gorse2011-08-152-0/+36
| | | | | | | If gnome_accessibility_module_shutdown was called and followed by a call to gnome_accessibility_module_init, then things would go awry because of various resources not being freed. Fixed several of these issues, although some issues might remain.
* Build fixesMike Gorse2011-07-042-1/+2
|
* Build fixes.Patrick Welche2011-05-201-2/+1
| | | | | | | - cache-adaptor.c makes use of AtkStateSet* . - atk-bridge uses X. - -Werror-implicit-function-declaration doesn't contain an equal sign in my copy of gcc, and is gcc specific.
* BGO#650286: Ensure valid UTF-8 from ATKMike Gorse2011-05-161-0/+7
| | | | | | When we receive strings from atk, we should ensure that they are valid UTF-8 before sending them over D-Bus, since bad UTF-8 will cause dbus-daemon to kill the connection.
* Release v1.91.92 and fix a build errorAT_SPI2_ATK_1_91_92Mike Gorse2011-03-211-0/+2
|
* Use new dbus errors if they are availableMike Gorse2011-03-211-0/+16
| | | | | | If a new version of libdbus is available, use DBUS_ERROR_UNKNOWN_OBJECT, DBUS_ERROR_UNKNOWN_PROPERTY, and DBUS_ERROR_PROPERTY_READ_ONLY when appropriate.
* Use libatspi to get the accessibility bus and handle main loop integrationMike Gorse2011-03-212-5/+7
| | | | | | | | | | Remove function to get the accessibility bus, since it was duplicating code in at-spi2-core and should be modified for BGO#644851. Also, use atspi_dbus_*_setup_with_g_main instead of depending on dbus-glib, so that FDO#35115 doesn't show up and we don't need to disable p2p if an old version of dbus-glib is installed. Note that at-spi2-atk now depends on libatspi where previously it did not.
* Fix some missing prototypesMike Gorse2011-02-231-1/+2
|
* Fix some memory leaks, initialize a variable, and add a NULL checkMario Lang2011-02-211-4/+7
|
* Add missing standard header / fix prototypeFrederic Crozat2011-02-211-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=637398
* Disable for dbus-glib prior to 0.9.0p2pMike Gorse2010-12-031-4/+2
| | | | | | The main loop switching code will result in a hang in dbus-glib 0.88 and earlier because of FDO#30574, so added a configure check to warn and disable p2p for older dbus-glib versions.
* Peer-to-peer fixes; work in progressMike Gorse2010-08-302-25/+72
|
* Fix droute_add_one / caching (0.3.6 regression)Mike Gorse2010-08-151-1/+1
|
* Define -DG_DISABLE_DEPRECATED, and remove deprecated glib symbolMike Gorse2010-08-022-3/+5
| | | | FDO#29365
* Improve introspectionMike Gorse2010-07-202-5/+29
|
* Fix org.freedesktop.DBus.Properties.GetAllMike Gorse2010-04-092-2/+2
|
* Avoid calling g_error and aborting the application on some errorsMike Gorse2010-03-141-1/+4
|
* Modify the droute tests to use the new introspection scheme.AT_SPI2_ATK_0_1_7Mark Doffman2010-02-114-38/+38
|
* Convert droute introspection to use string literals created fromMark Doffman2010-02-112-39/+13
| | | | the introspection XML in at-spi2-core.
* Enhance droute so that unhandled messages are better debugged.Mark Doffman2010-02-031-13/+43
|
* Fix object lifecycle errors.Mark Doffman2010-01-051-3/+14
| | | | Add an application reference to the event structure.
* Integrate leasing scheme in-to atk-bridge.Mark Doffman2010-01-051-0/+2
| | | | | | | | | | | | This involved: Separating the 'cache' and registration of accessible objects. This is because the leased objects need to be available over D-Bus but are not cached. Separating the cache updating from the 'events'. This is because we should still recieve updates on leased accessibles, but they are not cached.
* Use datarootdir for finding the introspection XML files. They are now inMark Doffman2009-12-211-0/+1
| | | | a shared directory under 'at-spi2'.
* Add the droute and dbind libraries as static libraries within this repository.Mark Doffman2009-11-0710-0/+1275
| | | | Previously these were shared libraries in at-spi2-core.
* 2009-07-06 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2009-07-0610-1274/+0
| | | | | Re-organize the build configuration to use an external registryd, dbind and droute libraries from at-spi2-core.
* 2009-04-15 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2009-04-211-4/+9
| | | | | | | | | * droute/droute.c Despite what people may believe all D-Bus method calls must have a reply, whether the client side is waiting for one or not. This fixes droute so that it always sends a reply to method calls.
* 2009-04-15 Mike Gorse <mgorse@novell.com>Mike Gorse2009-04-211-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * atk-adaptor/accessible-marshaller.c: Return SPI_DBUS_PATH_NULL for a NULL object. Fix call to dbus_message_iter_append_basic. * atk-adaptor/accessible-register.c: * atk-adaptor/editabletext-adaptor.c: Have copyText return a value. * atk-adaptor/editabletext-adaptor.c: Fix uninitialized variable in getAttributeValue. Fix parameter type in getBoundedRanges, and open the appropriate container when returning a value. * value-adaptor.c: Return variants to conform with Properties iface. * droute/droute.c: Throw exception if get fails. When setting a property, correctly initialize the iter before reading. * registry/deviceeventcontroller.c: deviceListener -> deviceEventListener. * spi-common/spi-dbus.h: Set SPI_DBUS_PATH_NULL to /org/freedesktop/atspi/accessible/null.
* 2009-02-10 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2009-02-105-20/+19
| | | | | | Fix some warnings when -Wall used. These included non-void functions with no return values that caused make distcheck to fail.
* 2009-02-8 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2009-02-082-1/+43
| | | | | | | | | | | * droute/droute.c droute/droute.h Add two new convinience functions for out of memory and bad arguments D-Bus errors. * pyatspi/__init__.py Add a top level module 'Accessibility' to remain compatible with the CORBA pyatspi.
* 2008-12-17 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2008-12-187-33/+393
| | | | | | | | | | | | | | | | | Mega commit that changes droute, adding an interface for creating a droute context and registering single, or multiple objects with the droute context. Modifies atk-adaptor and registryd to use the new interface. * droute/ New interface * atk-adaptor Use new droute interface * registryd Use new droute interface * pyatspi Bug fix, methods were using "null" interface.
* 2008-12-07 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2008-12-078-401/+721
| | | | | | | | | * dbind/* droute/* Complete refactoring droute to add api for creating single objects and object classes. Minor refactor of dbind, adding interface for marshalling signals.
* 2008-05-16 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2008-05-161-1/+1
| | | | | | | | | | | | | | | | | | | Assorted changed to get the reorganized source tree working. *atk-adaptor/ Move the object registry functionality from spi-dbus here as it was not used by the registryd. *spi-common/ Move object registry funtionality out to adaptor. *configure.ac droute/Makefile.am xml/Makefile.am Provide a matching install path and default search path for the introspection files. *xml/introspection/org.freedesktop.atspi.Tree Remove as this file is not autogenerated.
* 2008-05-16 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2008-05-165-0/+544
Re-organize the directories. The main purpose of this change is to remove CORBA code and references that are no longer used. * atk-adaptor/ Code here used to live in libspi and atk-bridge. * droute/ The droute module has been moved from libspi to its own directory. * spi-common Code and definitions common to registryd and the atk-adaptor. Mostly moved from libspi/dbus.c and accessible.h. * cspi/ Removed for the moment. Will have to be mostly rewritten for D-Bus.