mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gsettings: Try harder to describe keys
If a key has no description, show the summary, rather than "(null)". Since thats not helpful at all.
This commit is contained in:
parent
85e4a25912
commit
28cc6aeb19
@ -275,6 +275,8 @@ gsettings_description (void)
|
|||||||
{
|
{
|
||||||
const gchar *description;
|
const gchar *description;
|
||||||
description = g_settings_schema_key_get_description (global_schema_key);
|
description = g_settings_schema_key_get_description (global_schema_key);
|
||||||
|
if (description == NULL)
|
||||||
|
description = g_settings_schema_key_get_summary (global_schema_key);
|
||||||
g_print ("%s\n", description);
|
g_print ("%s\n", description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user