Пример #1
0
func (commit *GVariant) CommitGetMetadataKeyString(key string) (string, error) {
	cmeta := GVariantNew(unsafe.Pointer(C.g_variant_get_child_value(commit.native(), 0)))
	return cmeta.LookupString(key)
}
Пример #2
0
func (v *GVariant) GetChildValue(i int) *GVariant {
	cchild := C.g_variant_get_child_value(v.native(), C.gsize(i))
	return GVariantNew(unsafe.Pointer(cchild))
}