mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02: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:
@@ -275,6 +275,8 @@ gsettings_description (void)
|
|||||||
{
|
{
|
||||||
const gchar *description;
|
const gchar *description;
|
||||||
description = g_settings_schema_key_get_description (global_schema_key);
|
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);
|
g_print ("%s\n", description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user