mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
gsettings-tool: make list-recursively really recurse
https://bugzilla.gnome.org/show_bug.cgi?id=682586
This commit is contained in:
parent
a552989410
commit
030ebfb93b
@ -218,7 +218,7 @@ enumerate (GSettings *settings)
|
|||||||
gchar *schema;
|
gchar *schema;
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
g_object_get (settings, "schema", &schema, NULL);
|
g_object_get (settings, "schema-id", &schema, NULL);
|
||||||
|
|
||||||
keys = g_settings_list_keys (settings);
|
keys = g_settings_list_keys (settings);
|
||||||
for (i = 0; keys[i]; i++)
|
for (i = 0; keys[i]; i++)
|
||||||
@ -252,15 +252,10 @@ gsettings_list_recursively (GSettings *settings,
|
|||||||
for (i = 0; children[i]; i++)
|
for (i = 0; children[i]; i++)
|
||||||
{
|
{
|
||||||
GSettings *child;
|
GSettings *child;
|
||||||
GSettingsSchema *schema;
|
|
||||||
|
|
||||||
child = g_settings_get_child (settings, children[i]);
|
child = g_settings_get_child (settings, children[i]);
|
||||||
g_object_get (child, "settings-schema", &schema, NULL);
|
gsettings_list_recursively (child, NULL, NULL);
|
||||||
|
|
||||||
enumerate (child);
|
|
||||||
|
|
||||||
g_object_unref (child);
|
g_object_unref (child);
|
||||||
g_settings_schema_unref (schema);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev (children);
|
g_strfreev (children);
|
||||||
@ -275,7 +270,7 @@ gsettings_list_recursively (GSettings *settings,
|
|||||||
for (i = 0; schemas[i]; i++)
|
for (i = 0; schemas[i]; i++)
|
||||||
{
|
{
|
||||||
settings = g_settings_new (schemas[i]);
|
settings = g_settings_new (schemas[i]);
|
||||||
enumerate (settings);
|
gsettings_list_recursively (settings, NULL, NULL);
|
||||||
g_object_unref (settings);
|
g_object_unref (settings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user