mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
Don't pass NULL to g_variant_new_string
That does not work.
This commit is contained in:
parent
edfc55ae89
commit
9d43e5bd59
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user