summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-11 15:57:08 -0600
committerJeff Carr <[email protected]>2024-01-11 15:57:08 -0600
commitfbaeaacb0a9f3ed3901815e0fa33445b6ba8bc8e (patch)
tree5f9b50a2e21173bf7a51923bc853e0b75ab04abf /main.go
parent0d23f7271a7ebb4dc251cbf23df32c2ab738d9b6 (diff)
fixed after gui change
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go23
1 files changed, 5 insertions, 18 deletions
diff --git a/main.go b/main.go
index 6813a45..a93d951 100644
--- a/main.go
+++ b/main.go
@@ -68,14 +68,15 @@ func addRepo(grid *gui.Node, path string) *repo {
newRepo.scan()
if newRepo.status == nil {
newRepo.status = repostatus.New(myGui, newRepo.path)
- newRepo.status.InitWindow()
+ newRepo.status.Vertical()
+ newRepo.status.Horizontal()
newRepo.status.Make()
newRepo.status.Draw()
newRepo.status.Draw2()
}
newRepo.status.Toggle()
})
- newRepo.pButton = grid.NewButton("push", func () {
+ newRepo.pButton = grid.NewButton("rescan", func () {
newRepo.scan()
})
if path == "" {
@@ -92,7 +93,7 @@ func repoworld() {
win := gadgets.NewBasicWindow(myGui, "git autotypist. it types faster than you can.")
box := win.Box().NewBox("bw vbox", false)
- box2 := win.Box().NewBox("bw vbox", false)
+ // box2 := win.Box().NewBox("bw vbox", false)
group := box.NewGroup("go repositories (read from ~/.config/myrepolist)")
grid := group.NewGrid("test", 11, 1)
@@ -114,21 +115,7 @@ func repoworld() {
addRepo(grid, repo)
}
- var mystatus *repostatus.RepoStatus
- box2.NewButton("repostatus()", func () {
- if mystatus == nil {
- mystatus = repostatus.New(myGui, "go.wit.com/gui/gui")
- mystatus.InitWindow()
- mystatus.Make()
- mystatus.Draw()
- mystatus.Draw2()
- }
- mystatus.Toggle()
- })
- box2.NewButton("hello", func () {
- log.Println("world")
- hellosmart()
- })
+ win.Draw()
}
// This creates a window