summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--globalDisplayOptions.go3
-rw-r--r--main.go11
2 files changed, 11 insertions, 3 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go
index 48808e1..8f4cf52 100644
--- a/globalDisplayOptions.go
+++ b/globalDisplayOptions.go
@@ -60,6 +60,9 @@ func globalDisplayOptions(box *gui.Node) {
repo.newScan()
}
})
+ groupvbox.NewButton("repoworld()", func () {
+ repoworld()
+ })
}
func hidePerfect() {
diff --git a/main.go b/main.go
index ba69003..bdc67c2 100644
--- a/main.go
+++ b/main.go
@@ -18,12 +18,13 @@ var resToolkit embed.FS
func main() {
myGui = gui.New()
myGui.InitEmbed(resToolkit)
+ myGui.LoadToolkit("nocui")
myGui.Default()
autotypistWindow()
// repoworld()
log.Sleep(.3)
- hidePerfect()
+ // hidePerfect()
gui.Watchdog()
}
@@ -74,12 +75,16 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
}
func autotypistWindow() {
+ /*
me.autotypistWindow = gadgets.NewBasicWindow(myGui, "autotypist for GO & git. it types faster than you can.")
me.autotypistWindow.Make()
me.autotypistWindow.StandardExit()
- me.autotypistWindow.Draw()
box := me.autotypistWindow.Box()
+ me.autotypistWindow.Draw()
+ */
+ win := myGui.NewWindow("autotypist for GO & git. it types faster than you can.")
+ box := win.NewBox("bw hbox", true)
globalDisplayOptions(box)
globalBuildOptions(box)
globalResetOptions(box)
@@ -90,7 +95,6 @@ func autotypistWindow() {
func repoworld() {
reposwin = gadgets.NewBasicWindow(myGui, "All git repositories in ~/go/src/")
reposwin.Make()
- // reposwin.StandardExit()
reposbox = reposwin.Box().NewBox("bw vbox", false)
reposgroup = reposbox.NewGroup("go repositories (read from ~/.config/myrepolist)")
@@ -118,4 +122,5 @@ func repoworld() {
if ubranch == "" { ubranch = usr.Username }
addRepo(reposgrid, path, mbranch, dbranch, ubranch)
}
+ reposwin.Draw()
}