summaryrefslogtreecommitdiff
path: root/gtk/a11y/gtkatspiroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/a11y/gtkatspiroot.c')
-rw-r--r--gtk/a11y/gtkatspiroot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c
index a3b3a4f9fb..9d93de27f9 100644
--- a/gtk/a11y/gtkatspiroot.c
+++ b/gtk/a11y/gtkatspiroot.c
@@ -346,9 +346,9 @@ handle_accessible_get_property (GDBusConnection *connection,
GVariant *res = NULL;
if (g_strcmp0 (property_name, "Name") == 0)
- res = g_variant_new_string (g_get_prgname ());
+ res = g_variant_new_string (g_get_prgname () ? g_get_prgname () : "Unnamed");
else if (g_strcmp0 (property_name, "Description") == 0)
- res = g_variant_new_string (g_get_application_name ());
+ res = g_variant_new_string (g_get_application_name () ? g_get_application_name () : "No description");
else if (g_strcmp0 (property_name, "Locale") == 0)
res = g_variant_new_string (setlocale (LC_MESSAGES, NULL));
else if (g_strcmp0 (property_name, "AccessibleId") == 0)