summaryrefslogtreecommitdiff
path: root/windowReposFix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-05-31 16:03:00 -0500
committerJeff Carr <[email protected]>2025-05-31 16:03:00 -0500
commit1282c17e8119a2debdfce0448b6c4b909b53f447 (patch)
tree56ee8a87049a951c34eadaf920bc2c6258b8b437 /windowReposFix.go
parent9f367cb39b6f6275b0f88fc4fc038cdec33334fa (diff)
rearrange main window
Diffstat (limited to 'windowReposFix.go')
-rw-r--r--windowReposFix.go36
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
-}