Exemplo n.º 1
0
func (v *SourceLanguage) GetStyleName(styleId string) string {
	cstyleId := C.CString(styleId)
	defer cfree(cstyleId)
	return gostring(C.gtk_source_language_get_metadata(v.GSourceLanguage, gstring(cstyleId)))
}
Exemplo n.º 2
0
func (v *GtkSourceLanguage) GetStyleName(styleId string) string {
	cstyleId := C.CString(styleId)
	defer C.free_string(cstyleId)
	return C.GoString(C.to_charptr(C.gtk_source_language_get_metadata(v.SourceLanguage, C.to_gcharptr(cstyleId))))
}
Exemplo n.º 3
0
func (v *SourceLanguage) GetMetadata(name string) string {
	cname := C.CString(name)
	defer cfree(cname)
	return gostring(C.gtk_source_language_get_metadata(v.GSourceLanguage, gstring(cname)))
}
Exemplo n.º 4
0
func (v *GtkSourceLanguage) GetMetadata(name string) string {
	cname := C.CString(name)
	defer C.free_string(cname)
	return C.GoString(C.to_charptr(C.gtk_source_language_get_metadata(v.SourceLanguage, C.to_gcharptr(cname))))
}