mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 17:00:19 +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;
|
GVariant *res = NULL;
|
||||||
|
|
||||||
if (g_strcmp0 (property_name, "Name") == 0)
|
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)
|
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)
|
else if (g_strcmp0 (property_name, "Locale") == 0)
|
||||||
res = g_variant_new_string (setlocale (LC_MESSAGES, NULL));
|
res = g_variant_new_string (setlocale (LC_MESSAGES, NULL));
|
||||||
else if (g_strcmp0 (property_name, "AccessibleId") == 0)
|
else if (g_strcmp0 (property_name, "AccessibleId") == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user