mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
GSettingsSchemaSource: fix parameter name in header
list_schemas() had the parameters called 'recursive' and 'non-recursive' in the header instead of 'relocatable'. Fix that.
This commit is contained in:
parent
abb9a746f4
commit
b227528f32
@ -727,10 +727,9 @@ g_settings_schema_source_get_text_tables (GSettingsSchemaSource *source)
|
|||||||
* g_settings_schema_source_list_schemas:
|
* g_settings_schema_source_list_schemas:
|
||||||
* @source: a #GSettingsSchemaSource
|
* @source: a #GSettingsSchemaSource
|
||||||
* @recursive: if we should recurse
|
* @recursive: if we should recurse
|
||||||
* @non_relocatable_schemas: (out) (transfer full): the list of
|
* @non_relocatable: (out) (transfer full): the list of non-relocatable
|
||||||
* non-relocatable schemas
|
|
||||||
* @relocatable_schemas: (out) (transfer full): the list of relocatable
|
|
||||||
* schemas
|
* schemas
|
||||||
|
* @relocatable: (out) (transfer full): the list of relocatable schemas
|
||||||
*
|
*
|
||||||
* Lists the schemas in a given source.
|
* Lists the schemas in a given source.
|
||||||
*
|
*
|
||||||
@ -750,8 +749,8 @@ g_settings_schema_source_get_text_tables (GSettingsSchemaSource *source)
|
|||||||
void
|
void
|
||||||
g_settings_schema_source_list_schemas (GSettingsSchemaSource *source,
|
g_settings_schema_source_list_schemas (GSettingsSchemaSource *source,
|
||||||
gboolean recursive,
|
gboolean recursive,
|
||||||
gchar ***non_relocatable_schemas,
|
gchar ***non_relocatable,
|
||||||
gchar ***relocatable_schemas)
|
gchar ***relocatable)
|
||||||
{
|
{
|
||||||
GHashTable *single, *reloc;
|
GHashTable *single, *reloc;
|
||||||
GSettingsSchemaSource *s;
|
GSettingsSchemaSource *s;
|
||||||
@ -799,15 +798,15 @@ g_settings_schema_source_list_schemas (GSettingsSchemaSource *source,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (non_relocatable_schemas)
|
if (non_relocatable)
|
||||||
{
|
{
|
||||||
*non_relocatable_schemas = (gchar **) g_hash_table_get_keys_as_array (single, NULL);
|
*non_relocatable = (gchar **) g_hash_table_get_keys_as_array (single, NULL);
|
||||||
g_hash_table_steal_all (single);
|
g_hash_table_steal_all (single);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (relocatable_schemas)
|
if (relocatable)
|
||||||
{
|
{
|
||||||
*relocatable_schemas = (gchar **) g_hash_table_get_keys_as_array (reloc, NULL);
|
*relocatable = (gchar **) g_hash_table_get_keys_as_array (reloc, NULL);
|
||||||
g_hash_table_steal_all (reloc);
|
g_hash_table_steal_all (reloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,8 +54,8 @@ GSettingsSchema * g_settings_schema_source_lookup (GSettin
|
|||||||
GLIB_AVAILABLE_IN_2_40
|
GLIB_AVAILABLE_IN_2_40
|
||||||
void g_settings_schema_source_list_schemas (GSettingsSchemaSource *source,
|
void g_settings_schema_source_list_schemas (GSettingsSchemaSource *source,
|
||||||
gboolean recursive,
|
gboolean recursive,
|
||||||
gchar ***non_recursive_schemas,
|
gchar ***non_relocatable,
|
||||||
gchar ***recursive_schemas);
|
gchar ***relocatable);
|
||||||
|
|
||||||
#define G_TYPE_SETTINGS_SCHEMA (g_settings_schema_get_type ())
|
#define G_TYPE_SETTINGS_SCHEMA (g_settings_schema_get_type ())
|
||||||
GLIB_AVAILABLE_IN_2_32
|
GLIB_AVAILABLE_IN_2_32
|
||||||
|
Loading…
Reference in New Issue
Block a user