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