[glib] gsettings: Try harder to describe keys
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gsettings: Try harder to describe keys
- Date: Fri, 7 Jul 2017 23:12:43 +0000 (UTC)
commit 28cc6aeb19dd2b5ff6e01362dbee833636930eeb
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 7 19:11:51 2017 -0400
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsettings-tool.c b/gio/gsettings-tool.c
index 63c5a44..d74b6dd 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]