Beispiel #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))}
}
Beispiel #2
0
func NewSourceBuffer() *SourceBuffer {
	v := C.gtk_source_buffer_new(nil)
	return &SourceBuffer{v, gtk.NewTextBufferFromPointer(unsafe.Pointer(v))}
}