diff options
| author | Jeff Carr <[email protected]> | 2019-05-29 09:54:46 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-29 09:54:46 -0700 |
| commit | 8574f8109dde05aadcbdf0423b8347d2d17a4bce (patch) | |
| tree | 8ec2d3ea32227b9d92d6968c3a9c9426a8ba3ac1 /gui.go | |
| parent | 8049b087e9148e331208d2dd1e1af4f7d47e5edb (diff) | |
crashes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 } |
