package main import ( "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/repolist" "go.wit.com/log" ) func makeTempView() *repoWindow { r := new(repoWindow) r.win = gadgets.RawBasicWindow("unmerged repositories") r.win.Make() r.box = r.win.Box().NewBox("bw vbox", false) r.win.Custom = func() { log.Warn("GOT HERE: makeTempView() close") log.Warn("GOT HERE: makeTempView() close") log.Warn("Should I do something special here?") } // reposbox.SetExpand(false) group1 := r.box.NewGroup("Run on all repos:") hbox := group1.Box() // hbox.Horizontal() hbox.Vertical() box2 := hbox.Box().Vertical() box2.NewButton("merge user to devel", func() { log.Warn("todo") }) box2.NewButton("merge devel to master", func() { log.Warn("todo") }) box2.NewButton("rescan values", func() { log.Warn("figure this out") r.View.ListRows() // for _, repo := range r.View.AllRepos() { // log.Warn("repo:", repo.Name()) // } }) r.View = repolist.TempWindowView(r.box) r.Show() return r }