summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2023-01-08 19:51:38 +0100
committerBarnabás Pőcze <pobrn@protonmail.com>2023-01-08 19:58:54 +0100
commitf2593dec4b2bedf5f2d65ce02c22bbd4ffed6cf7 (patch)
tree50688b2e3b39a3334244a7cdb4d48a3135667697
parentab5a6ed0f17d925c8e93729620ed7516093081a5 (diff)
downloadgtk+-f2593dec4b2bedf5f2d65ce02c22bbd4ffed6cf7.tar.gz
a11y: Use fallback logic when GApplication has no DBus object path
Use the fallback logic to generate the base path for the GtkAtSpiRoot if the GApplication has no DBus object path to guarantee that the base path will not stay NULL.
-rw-r--r--gtk/a11y/gtkatspiroot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c
index b39d0938d4..78c4d7c0de 100644
--- a/gtk/a11y/gtkatspiroot.c
+++ b/gtk/a11y/gtkatspiroot.c
@@ -690,7 +690,8 @@ gtk_at_spi_root_constructed (GObject *gobject)
/* No need to validate the path */
self->base_path = g_strconcat (app_path, "/a11y", NULL);
}
- else
+
+ if (self->base_path == NULL)
{
const char *program_name = g_get_prgname ();