summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-14 10:25:21 -0600
committerJeff Carr <[email protected]>2024-01-14 10:25:21 -0600
commit85d74dd70d06d8abf66256a1f1d9a6f2f1b57638 (patch)
treea185a89b54f0ab9e171432530b3d2145191b753f /main.go
parentc22d0f48664d9ea5d89a64a32dcac1db956efc67 (diff)
compiles and runs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.go b/main.go
index 5811d8b..38280fa 100644
--- a/main.go
+++ b/main.go
@@ -52,13 +52,13 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
log.Warn("status window exists. trying Show() here")
newRepo.status.Show()
})
- grid.NewButton("TestDraw()", func () {
+ grid.NewButton("Show()", func () {
if newRepo.status == nil {
log.Warn("status window doesn't exist")
return
}
log.Warn("status window exists. trying TestDraw() here")
- newRepo.status.TestDraw()
+ newRepo.status.Show()
})
if path == "" {
newRepo.cButton.Hide()
@@ -76,6 +76,7 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
// This creates a window
func repoworld() {
win := gadgets.NewBasicWindow(myGui, "git autotypist. it types faster than you can.")
+ win.Make()
box := win.Box().NewBox("bw vbox", false)
// box2 := win.Box().NewBox("bw vbox", false)
@@ -108,8 +109,9 @@ func repoworld() {
}
box2 := win.Box().NewBox("bw vbox", false)
- box2.NewButton("grid.Pad()", func () {
+ box2.NewButton("grid.Margin()", func () {
grid.Margin()
+ grid.Pad()
})
box2.NewButton("status.Update() all", func () {