summaryrefslogtreecommitdiff
path: root/splash.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-30 11:41:23 -0700
committerJeff Carr <[email protected]>2019-05-30 11:41:23 -0700
commitc15c731e7f7746dc5cd85cde4650a4e44a4837c7 (patch)
tree00e2d9e481ac38afba46633614d608772e657a34 /splash.go
parent570cba0b613fd9e91bee7bc3162178dddfb1a5c3 (diff)
change CreateButton to rerturn *GuiButton
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
-rw-r--r--splash.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/splash.go b/splash.go
index da2f8f4..92f154d 100644
--- a/splash.go
+++ b/splash.go
@@ -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