Exemple #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)))
}
Exemple #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))))
}
Exemple #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)))
}
Exemple #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))))
}