mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +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;
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user