예제 #1
0
func NewSourceBuffer() *SourceBuffer {
	v := C.gtk_source_buffer_new(nil)
	return &SourceBuffer{v, gtk.NewTextBufferFromPointer(unsafe.Pointer(v))}
}
예제 #2
0
func SourceBuffer() *GtkSourceBuffer {
	v := C.gtk_source_buffer_new(nil)
	return &GtkSourceBuffer{v, gtk.GtkTextBuffer{unsafe.Pointer(v)}}
}