summaryrefslogtreecommitdiff
path: root/droute/droute.c
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-081-6/+20
| | | | | | | | | 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-281-4/+4
| | | | Fixes https://gitlab.gnome.org/GNOME/at-spi2-atk/issues/2
* Fix old FSF addressMike Gorse2019-08-271-2/+2
|
* 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.
* 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
* 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-151-0/+27
| | | | | | | 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.
* 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.
* 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
* Peer-to-peer fixes; work in progressMike Gorse2010-08-301-22/+64
|
* Fix droute_add_one / caching (0.3.6 regression)Mike Gorse2010-08-151-1/+1
|
* Improve introspectionMike Gorse2010-07-201-5/+26
|
* Fix org.freedesktop.DBus.Properties.GetAllMike Gorse2010-04-091-1/+1
|
* Avoid calling g_error and aborting the application on some errorsMike Gorse2010-03-141-1/+4
|
* Convert droute introspection to use string literals created fromMark Doffman2010-02-111-37/+10
| | | | 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-071-0/+598
| | | | Previously these were shared libraries in at-spi2-core.
* 2009-07-06 Mark Doffman <mark.doffman@codethink.co.uk>Mark Doffman2009-07-061-593/+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-101-2/+6
| | | | | | 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-081-0/+36
| | | | | | | | | | | * 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-181-33/+89
| | | | | | | | | | | | | | | | | 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-071-264/+418
| | | | | | | | | * 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-0/+334
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.