summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Hold a reference to the AtspiDevice while processing eventsHEADmainMike Gorse2023-05-172-0/+5
| | | | | If this is not done, then the device might be finalized from under us during a callback, leading to a crash.
* Fix the build when dbus-broker is not foundMike Gorse2023-05-111-2/+2
|
* More build fixesMike Gorse2023-05-112-11/+36
| | | | | | | | | | | | | My last commit broke the build where dbus-daemon was set to be used by default. Added a use_systemd option that can be set to false to disable systemd. This cannot be used in combination with dbus-broker and results in dbus-broker support being disabled. If this option is left set to true, then dbus-broker support will be enabled if dbus-broker-launch is found on the system, although dbus-daemon will still be used when available unless default_bus is set to dbus-broker. Fixes #116
* Scan for dbus-daemon even if dbus-broker should be used by defaultMike Gorse2023-05-111-24/+29
| | | | | | | !134 broke the fallback to use dbus-daemon when dbus-broker was configured at build time but is not installed on the system. Fixes #115
* Update Bulgarian translationAlexander Shopov2023-05-111-2/+2
|
* Guard against recursion in atspi_accessible_clear_cacheMike Gorse2023-05-102-8/+18
| | | | | | | | | Add a stamp to AtspiAccessiblePrivate for use when iterating through a tree, and don't touch accessibles that have already been touched. This should further protect against buggy or malicious applications causing infinite recursion. Fixes #113
* Merge branch 'fix_114' into 'main'Mike Gorse2023-05-101-3/+6
|\ | | | | | | | | | | | | Don't crash on an empty, but non-null cached children array Closes #114 See merge request GNOME/at-spi2-core!139
| * Don't crash when an invalid index, for the array length, is requestedLukáš Tyrychtr2023-05-101-3/+6
|/ | | | | | for the cached children array Fixes #114.
* Merge branch 'debug-89' into 'main'Federico Mena Quintero2023-05-0925-830/+870
|\ | | | | | | | | | | | | Re-do the activation of the helper test-application for at-spi2-atk's tests Closes #89 See merge request GNOME/at-spi2-core!138
| * Assert that an interface object is not nullFederico Mena Quintero2023-05-091-0/+1
| |
| * atspi-misc.c: Remove debug g_printFederico Mena Quintero2023-05-091-2/+0
| |
| * CI: disable p2p for the test run for now, otherwise it errors outFederico Mena Quintero2023-05-091-2/+4
| | | | | | | | | | | | | | | | With the changes to use an AtspiEventListener in tests/at-spi2-atk, at some point atspi-misc.c tries to connect to a socket from one of the test-application processes that is already dead. With -Ddisable_p2p=true, the tests work fine.
| * Make at-spi2-atk test names more legible by not using concatenation with macrosFederico Mena Quintero2023-05-0916-178/+162
| |
| * Fix misnamed test pathFederico Mena Quintero2023-05-091-4/+4
| |
| * Wait for the test-application startup using an atspi listenerFederico Mena Quintero2023-05-097-60/+191
| | | | | | | | | | | | | | | | This should be more robust than just waiting and sleeping. * test-application now claims a different DBus name for each run, to disambiguate. * atk_bridge_adaptor_cleanup() - release the dbus name if there was one
| * Don't use a global variable for child_pidFederico Mena Quintero2023-05-091-11/+20
| | | | | | | | Keep it in the TestAppFixture at all times.
| * Don't use a Unix signal handler to kill the test-application if the parent ↵Federico Mena Quintero2023-05-092-14/+0
| | | | | | | | | | | | | | test program aborts This is super sketchy; moreover, we can rely on the test runner to kill child processes.
| * Switch all at-spi2-atk tests to g_test_add() with a TestAppFixtureFederico Mena Quintero2023-05-0918-651/+670
| |
| * Make get_root_obj() staticFederico Mena Quintero2023-05-092-3/+3
| | | | | | | | All the tests use the TestAppFixture instead.
| * Make child_pid static to atk_test_util.cFederico Mena Quintero2023-05-093-4/+2
| | | | | | | | The one test that used that value can now use fixture->child_pid instead.
| * Replace all the teardown functions with a single oneFederico Mena Quintero2023-05-0917-262/+172
| | | | | | | | | | | | | | | | | | | | For the at-spi2-atk tests, we'll move to having a test fixture that consists of a launched test app with its claimed dbus name. The teardown step will terminate the test app. In this commit, terminate_app() is renamed to fixture_teardown(). It does not use its arguments yet, because it only uses global variables from atk_test_util.c, but it will soon.
| * test-application.c: Claim a dbus name passed by the callerFederico Mena Quintero2023-05-092-1/+4
| | | | | | | | | | | | | | | | We pass argc/argv on to atk_bridge_adaptor_init() so it can pick up the --atspi-dbus-name option. We will use this from the calling program to wait reliably for the test app to be ready. The name org.a11y.Atspi2Atk.TestApplication is just arbitrary.
| * atk_test_util.c: make run_app() a private functionFederico Mena Quintero2023-05-092-2/+1
| |
| * ci/run-tests.sh: use --print-errorlogs for meson, hopefully to make build ↵Federico Mena Quintero2023-05-091-1/+1
| | | | | | | | | | | | logs easier to read ... without downloading the artifacts for the error logs.
* | Add missing includeMike Gorse2023-05-081-0/+1
| |
* | When parsing GetItems, guard against adding an object as its own childMike Gorse2023-05-051-1/+8
| | | | | | | | | | | | | | | | This can happen if a buggy application returns an accessible with itself as its parent. This can cause problems later if something recurses through an object's descendants (atspi_accessible_clear_cache for instance). Helps #113
* | Use internal names when possible for localized role namesMike Gorse2023-05-035-125/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | This matches the behavior of atspi_accessible_get_role_name. We already hav translations from atk, so we can use those. Also, move the table for role name translations into atspi, since it seems that atk is increasingly becoming a legacy tool. Add a note to the xml indicating that it is optional to implement GetRoleName and GetLocalizedRoleName. Fixes #110
* | Replace ATK_LOCALEDIR with ATSPI_LOCALEDIRMike Gorse2023-05-033-6/+7
|/ | | | This will allow the locale directory to be available outside of atk.
* Merge branch 'const-gchar-api' into 'main'Mike Gorse2023-04-254-9/+9
|\ | | | | | | | | Use const attribute name input in atspi_*_get*_attribute_value() See merge request GNOME/at-spi2-core!135
| * Use const attribute name input in atspi_*_get*_attribute_value()Colomban Wendling2023-04-254-9/+9
|/ | | | | There is no point in having them mutable, and makes the API look more awkward and harder to use than it actually is.
* Merge branch 'meson-dbus-systemd' into 'main'Mike Gorse2023-04-241-27/+26
|\ | | | | | | | | meson: Avoid requiring libsystemd when configured to use dbus-daemon See merge request GNOME/at-spi2-core!134
| * meson: Avoid requiring libsystemd when configured to use dbus-daemonAdrian Perez de Castro2023-04-241-27/+26
| | | | | | | | | | | | | | | | | | | | Checks for dbus-daemon and dbus-broker only when they are chosen with default_bus. This avoids requiring the systemd libraries if one wants the built at-spi2-core to use dbus-daemon, but dbus-worker is somehow available in the $PATH. A typical scenario is cross compilation, where the build host may have a dbus-broker program available, but the target system may not have it (or may not have nor want to use the systemd libraries).
* | Merge branch ↵Mike Gorse2023-04-241-0/+19
|\ \ | |/ |/| | | | | | | | | 'michaelweghorn/tablecell_xml_add_get_column_row_headercells_methods' into 'main' TableCell.xml: Add Get{Column,Row}HeaderCells methods See merge request GNOME/at-spi2-core!133
| * TableCell.xml: Add Get{Column,Row}HeaderCells methodsMichael Weghorn2023-04-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are in active use but were not contained in the XML description yet. I ran into this because the Orca screen reader switched to using these methods in Orca commit ac2c4470ff4401b53b6de48e12ea5a0a6347897c ("Prefer table cell interface for getting row and column headers") [1], but Qt does not implement them yet for the TableCell interface, since the commit that added support for the AT-SPI TableCell interface [2] only implemented the methods documented in the XML description. [1] https://gitlab.gnome.org/GNOME/orca/-/commit/ac2c4470ff4401b53b6de48e12ea5a0a6347897c [2] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=5145d3899d338fbb82a2d314c58eb60a4a5205f8
* | Update Belarusian (Latin) translationVasil Pupkin2023-04-221-138/+416
|/
* Update Abkhazian translationNart Tlisha2023-04-051-173/+4273
|
* Fix a variable nameMike Gorse2023-04-021-4/+4
|
* Add some notes for possible future API-breaking changesMike Gorse2023-03-281-1/+9
|
* xml: document that GetIndexInParent can return -1Mike Gorse2023-03-281-1/+2
| | | | | | | GetIndexInParent might return -1 for a top-level object or where an index is not available. For instance, atk defaults to returning -1 if the object's class does not provide a get_index_in_parent function. This puts the xml documentation in line with the atk and libatspi documentation.
* Merge branch 'windows-fixes' into 'main'Mike Gorse2023-03-271-7/+9
|\ | | | | | | | | meson: some Windows fixes for atk only builds See merge request GNOME/at-spi2-core!132
| * meson: don't require dlopen for atk only buildsChristoph Reiter2023-03-251-6/+8
| | | | | | | | | | | | atk doesn't need it. This allows building atk alone on Windows
| * meson: fix a typo in a variable nameChristoph Reiter2023-03-251-1/+1
|/ | | | this made meson fail on Windows
* 2.48.0AT_SPI2_CORE_2_48_0Mike Gorse2023-03-192-1/+8
|
* Merge branch 'main' into 'main'Mike Gorse2023-03-152-16/+28
|\ | | | | | | | | Add atk_only option to enable building a stub atk library See merge request GNOME/at-spi2-core!131
| * Add atk_only option to enable building a stub atk libraryCorey Halpin2023-03-082-16/+28
|/ | | | | When built with atk_only, a stub library will be produced that can be used to satisfy package dependencies but provides no functionality.
* Merge branch 'work/sitter/typos' into 'main'Mike Gorse2023-03-088-11/+11
|\ | | | | | | | | typos-- See merge request GNOME/at-spi2-core!130
| * typos--Harald Sitter2023-03-068-11/+11
|/
* 2.47.90AT_SPI2_CORE_2_47_90Mike Gorse2023-03-042-1/+9
|
* Fix possible crash in screen_reader_signal_watcherMike Gorse2023-02-151-0/+1
|
* Merge branch 'master' into 'main'Mike Gorse2023-02-031-0/+1
|\ | | | | | | | | Update INSTALL See merge request GNOME/at-spi2-core!128