From 28cc6aeb19dd2b5ff6e01362dbee833636930eeb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 7 Jul 2017 19:11:51 -0400 Subject: [PATCH] gsettings: Try harder to describe keys If a key has no description, show the summary, rather than "(null)". Since thats not helpful at all. --- gio/gsettings-tool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gsettings-tool.c b/gio/gsettings-tool.c index 63c5a4477..d74b6dd9e 100644 --- a/gio/gsettings-tool.c +++ b/gio/gsettings-tool.c @@ -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); }