summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
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
}