1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2024-12-25 15:26:30 +00:00

can't get these buttons to display

This commit is contained in:
Vincent Batts 2013-05-10 15:52:40 -04:00
parent cdd487f86a
commit 68622c5144

View file

@ -25,18 +25,21 @@ func main() {
w.SetBorderWidth(10)
w.Show()
vb := gtk.NewVBox(false, 0)
f := gtk.NewFileChooserButton("Select File", gtk.FILE_CHOOSER_ACTION_OPEN)
w.Add(f.AsWidget())
vb.PackEnd(f.AsWidget(), false, false, 0)
f.Show()
a := Action{"Hello World!\n"}
b := gtk.NewButtonWithLabel("Quit")
b.Connect("clicked", (*Action).Quit, &a)
b.ConnectNoi("clicked", (*gtk.Widget).Destroy, w.AsWidget())
w.Add(b.AsWidget())
vb.PackEnd(b.AsWidget(), false, false, 0)
b.Show()
w.Add(vb.AsWidget())
gtk.Main()
}