コード例 #1
0
ファイル: gtksourceview.go プロジェクト: hauke96/go-gtk
func NewSourceView() *SourceView {
	return &SourceView{gtk.TextView{gtk.Container{
		*gtk.WidgetFromNative(unsafe.Pointer(C.gtk_source_view_new()))}}}
}
コード例 #2
0
ファイル: gtksourceview.go プロジェクト: caengcjd/go-gtk
func SourceView() *GtkSourceView {
	return &GtkSourceView{gtk.GtkTextView{gtk.GtkContainer{
		*gtk.WidgetFromUnsafe(unsafe.Pointer(C.gtk_source_view_new()))}}}
}