Permalink
Browse files

implement ListSchemas for SettingsSchemaSource

  • Loading branch information...
jmoiron committed Jun 24, 2016
1 parent f90e9b4 commit dfd43817c8c166e1cc2725d3727d3767a3e6504a
Showing with 6 additions and 1 deletion.
  1. +6 −1 glib/settings_schema_source.go
@@ -62,4 +62,9 @@ func (v *SettingsSchemaSource) Lookup(schema string, recursive bool) *SettingsSc
return wrapSettingsSchema(C.g_settings_schema_source_lookup(v.native(), cstr, gbool(recursive)))
}
// void g_settings_schema_source_list_schemas ()
// ListSchemas is a wrapper around g_settings_schema_source_list_schemas().
func (v *SettingsSchemaSource) ListSchemas(recursive bool) (nonReolcatable, relocatable []string) {
var nonRel, rel **C.gchar
C.g_settings_schema_source_list_schemas(v.native(), gbool(recursive), &nonRel, &rel)
return toGoStringArray(nonRel), toGoStringArray(rel)
}

0 comments on commit dfd4381

Please sign in to comment.