summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-29 09:54:46 -0700
committerJeff Carr <[email protected]>2019-05-29 09:54:46 -0700
commit8574f8109dde05aadcbdf0423b8347d2d17a4bce (patch)
tree8ec2d3ea32227b9d92d6968c3a9c9426a8ba3ac1 /gui.go
parent8049b087e9148e331208d2dd1e1af4f7d47e5edb (diff)
crashes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/gui.go b/gui.go
index 5c20a9a..1bf40cf 100644
--- a/gui.go
+++ b/gui.go
@@ -225,17 +225,17 @@ func CreateButton(a *pb.Account, vm *pb.Event_VM,
return newB
}
-func CreateFontButton(action string, note string) *ui.FontButton {
+func CreateFontButton(action string) *ButtonMap {
newB := ui.NewFontButton()
// create a 'fake' button entry for the mouse clicks
- var newButtonMap ButtonMap
- newButtonMap.Action = action
- newButtonMap.FB = newB
- Data.AllButtons = append(Data.AllButtons, newButtonMap)
+ var newBM ButtonMap
+ newBM.Action = action
+ newBM.FB = newB
+ Data.AllButtons = append(Data.AllButtons, newBM)
newB.OnChanged(func (*ui.FontButton) {
- mouseClick(&newButtonMap)
+ mouseClick(&newBM)
})
- return newB
+ return &newBM
}