Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -4,11 +4,11 @@ import "github.com/mattn/go-gtk/gtk"
|
|||
|
||||
func main() {
|
||||
gtk.Init(nil)
|
||||
win := gtk.Window(gtk.GTK_WINDOW_TOPLEVEL)
|
||||
win := gtk.NewWindow(gtk.WINDOW_TOPLEVEL)
|
||||
win.SetTitle("Goodbye, World!")
|
||||
win.SetSizeRequest(300, 200)
|
||||
win.Connect("destroy", gtk.MainQuit)
|
||||
button := gtk.ButtonWithLabel("Goodbye, World!")
|
||||
button := gtk.NewButtonWithLabel("Goodbye, World!")
|
||||
win.Add(button)
|
||||
button.Connect("clicked", gtk.MainQuit)
|
||||
win.ShowAll()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue