Ejemplo n.º 1
0
func NewSourceBufferWithLanguage(lang *SourceLanguage) *SourceBuffer {
	v := C.gtk_source_buffer_new_with_language(lang.GSourceLanguage)
	return &SourceBuffer{v, gtk.NewTextBufferFromPointer(unsafe.Pointer(v))}
}
Ejemplo n.º 2
0
func NewSourceBuffer() *SourceBuffer {
	v := C.gtk_source_buffer_new(nil)
	return &SourceBuffer{v, gtk.NewTextBufferFromPointer(unsafe.Pointer(v))}
}