From 68622c514408f5948f02472746bf0a7fe19b77dd Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 10 May 2013 15:52:40 -0400 Subject: [PATCH] can't get these buttons to display --- gimgsrv/main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gimgsrv/main.go b/gimgsrv/main.go index d811482..0ea9817 100644 --- a/gimgsrv/main.go +++ b/gimgsrv/main.go @@ -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() }