diff options
Diffstat (limited to 'windowReposFix.go')
| -rw-r--r-- | windowReposFix.go | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/windowReposFix.go b/windowReposFix.go index 22c00ef..d7cb964 100644 --- a/windowReposFix.go +++ b/windowReposFix.go @@ -18,13 +18,14 @@ import ( func makeReposWin() *stdReposTableWin { rwin := new(stdReposTableWin) - win := gadgets.NewGenericWindow("git repos", "All about git repos") + win := gadgets.NewGenericWindow("find errors and try to fix them", "types of errors of some sort or another") rwin.win = win grid := win.Group.RawGrid() - win.Top.NewGroup("misc (works in progress)") + // win.Top.NewGroup("misc (works in progress)") - grid = win.Top.RawGrid() + // grid = win.Top.RawGrid() + grid = win.Group.RawGrid() var found *gitpb.Repos var txt string @@ -394,32 +395,3 @@ func makeWritableWindow(pb *gitpb.Repos) (*gadgets.GenericWindow, *gitpb.ReposTa t.ShowTable() return win, t } - -func addWindowPB(win *gadgets.GenericWindow, pb *gitpb.Repos) *gitpb.ReposTable { - t := pb.NewTable("testForgeRepos") - t.NewUuid() - tbox := win.Bottom.Box().SetProgName("TBOX") - t.SetParent(tbox) - - sf := t.AddStringFunc("repo", func(r *gitpb.Repo) string { - return r.GetGoPath() - }) - sf.Custom = func(r *gitpb.Repo) { - log.Info("do button click on", r.GetGoPath()) - } - t.AddTimeFunc("age", func(repo *gitpb.Repo) time.Time { - return repo.NewestTime() - }) - t.AddMasterVersion() - t.AddDevelVersion() - t.AddUserVersion() - t.AddCurrentBranchName() - t.AddState() - f := func(repo *gitpb.Repo) string { - log.Info("repo =", repo.GetGoPath(), repo.GetCurrentVersion()) - return repo.GetGoPath() - } - t.AddButtonFunc("cur version", f) - t.ShowTable() - return t -} |
