Exemplo n.º 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))}
}
Exemplo n.º 2
0
func SourceBuffer() *GtkSourceBuffer {
	v := C.gtk_source_buffer_new(nil)
	return &GtkSourceBuffer{v, gtk.TextBufferFromPointer(unsafe.Pointer(v))}
}