mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-12-24 23:06:31 +00:00
can't get these buttons to display
This commit is contained in:
parent
cdd487f86a
commit
68622c5144
1 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue