diff options
| author | Jeff Carr <[email protected]> | 2019-05-30 11:41:23 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-30 11:41:23 -0700 |
| commit | c15c731e7f7746dc5cd85cde4650a4e44a4837c7 (patch) | |
| tree | 00e2d9e481ac38afba46633614d608772e657a34 /splash.go | |
| parent | 570cba0b613fd9e91bee7bc3162178dddfb1a5c3 (diff) | |
change CreateButton to rerturn *GuiButton
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
| -rw-r--r-- | splash.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -57,9 +57,12 @@ func ShowSplashBox(wm *GuiWindow, newText *ui.AttributedString) *ui.Box { } log.Println("ShowSplashBox() START wm =", wm) + okButton := CreateButton(wm, nil, nil, "OK", "AREA", nil) - newbox.Append(okButton, false) - newbox.Append(CreateButton(wm, nil, nil, "NEWTEXT", "NEWTEXT", nil), false) + newbox.Append(okButton.B, false) + + okButton = CreateButton(wm, nil, nil, "NEWTEXT", "NEWTEXT", nil) + newbox.Append(okButton.B, false) // os.Exit(0) return newbox |
