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