[glib/glib-2-52] gsettings: Try harder to describe keys
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-52] gsettings: Try harder to describe keys
- Date: Mon, 10 Jul 2017 12:59:08 +0000 (UTC)
commit d0f51e8d10d72ec3b519049d4c6c284fa76bfe06
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 544af84..deec5e9 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]