summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-26 12:05:23 -0700
committerJeff Carr <[email protected]>2019-05-26 12:05:23 -0700
commit1fbb0cd227987b1b7758c19452ce97338041c302 (patch)
treed63ce02697c5d8975a3140532a7796d924baf318 /area.go
parent4f08c8f1cea5103c9713d2374d3e266025208893 (diff)
more standard button handling
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'area.go')
-rw-r--r--area.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/area.go b/area.go
index d3273d6..87261c0 100644
--- a/area.go
+++ b/area.go
@@ -7,10 +7,10 @@ import _ "github.com/andlabs/ui/winmanifest"
import "github.com/davecgh/go-spew/spew"
-func makeSplashArea(custom func(*ButtonMap)) *ui.Area {
+func makeSplashArea() *ui.Area {
// make this button just to get the default font (but don't display the button)
// There should be another way to do this (?)
- Data.fontButton = CreateFontButton("SplashFont", "DONE", custom)
+ Data.fontButton = CreateFontButton("SplashFont", "DONE", mouseClick)
makeAttributedString()
splashArea := ui.NewArea(myAH)
@@ -19,7 +19,6 @@ func makeSplashArea(custom func(*ButtonMap)) *ui.Area {
var newmap ButtonMap
newmap.Action = "AREA"
newmap.A = splashArea
- newmap.custom = custom
myAH.button = &newmap
Data.AllButtons = append(Data.AllButtons, newmap)