diff options
| author | Jeff Carr <[email protected]> | 2024-11-28 19:57:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-28 19:57:03 -0600 |
| commit | 931e345895e99e9cb058029763e12562cc6d5fba (patch) | |
| tree | 1fe4213dbc8fa186c30f6d9b2e4831fa723a2c1c /init.go | |
| parent | cc7a1b0bdc69335132a022111c759931db6d1566 (diff) | |
testGui example is starting to work
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -6,17 +6,15 @@ import ( "go.wit.com/log" ) -func (rl *RepoList) Init(f *forgepb.Forge) { - if rl == nil { - rl = new(RepoList) - } - me = rl +func Init(f *forgepb.Forge, g *gui.Node) *RepoList { + me = new(RepoList) + // todo: this code sucks. fix it soon - me.mainWindow = gui.NewWindow("builds and uploads all the packages") + me.mainWindow = g.NewWindow("builds and uploads all the packages") me.mainbox = me.mainWindow.NewBox("bw hbox", true) // make a window with a table of all the repos - me = AutotypistView(me.mainbox) + me.AutotypistView(me.mainbox) me.Enable() me.forge = f @@ -29,4 +27,5 @@ func (rl *RepoList) Init(f *forgepb.Forge) { } me.Enable() + return me } |
