summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/main.go b/main.go
index 9fd672d..4510363 100644
--- a/main.go
+++ b/main.go
@@ -10,6 +10,7 @@ import (
"go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
"go.wit.com/lib/fhelp"
+ "go.wit.com/lib/gadgets"
"go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
@@ -65,14 +66,17 @@ func main() {
me.myGui.Default()
// our main window
- me.mainWindow = me.myGui.NewWindow("GUI release manager " + VERSION)
+ me.mainWindow = gadgets.RawBasicWindow("GUI release manager " + VERSION)
me.mainWindow.Custom = func() {
log.Warn("Window closed. forge configsave")
// sets the hidden flag to false so Toggle() works
me.forge.ConfigSave()
okExit("")
}
- me.mainBox = me.mainWindow.NewBox("bw hbox", true)
+ me.mainWindow.Make()
+ me.mainWindow.Show()
+
+ me.mainBox = me.mainWindow.Box()
// sanity check of things that might be around that mess
// up things later
@@ -88,7 +92,7 @@ func main() {
// initialize the repo list window
// which should be all the git repositories in ~/go/src & the .config file
- me.repos = makeRepoView()
+ // me.repos = makeRepoView()
// the left side of the window options
globalDisplayOptions(me.mainBox)
@@ -102,7 +106,7 @@ func main() {
// scan in the State of all the repos
// TODO: should not really be necessary directly after init()
- me.repos.View.ScanRepositoriesOld()
+ // me.repos.View.ScanRepositoriesOld()
// todo: add this to forgepb
me.startRepo = me.forge.FindWorkingDirRepo()