示例#1
0
func SourceBufferWithLanguage(lang *GtkSourceLanguage) *GtkSourceBuffer {
	v := C.gtk_source_buffer_new_with_language(lang.SourceLanguage)
	return &GtkSourceBuffer{v, gtk.TextBufferFromPointer(unsafe.Pointer(v))}
}
示例#2
0
func SourceBuffer() *GtkSourceBuffer {
	v := C.gtk_source_buffer_new(nil)
	return &GtkSourceBuffer{v, gtk.TextBufferFromPointer(unsafe.Pointer(v))}
}