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:
Matthias Clasen 2017-07-07 19:11:51 -04:00
parent 85e4a25912
commit 28cc6aeb19

View File

@ -275,6 +275,8 @@ gsettings_description (void)
{
const gchar *description;
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);
}