From 7b601a8e689ab4bc657f730f23c2c785b2fe7846 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 25 May 2019 02:50:43 -0700 Subject: update for the new protobuf Signed-off-by: Jeff Carr --- gui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui.go') diff --git a/gui.go b/gui.go index 45a9d6c..c811bd9 100644 --- a/gui.go +++ b/gui.go @@ -41,7 +41,7 @@ func InitColumns(mh *TableData, parts []TableColumnData) { } } -func AddTableTab(mytab *ui.Tab, mytabcount int, name string, rowcount int, parts []TableColumnData, account *pb.Config_Account) *TableData { +func AddTableTab(mytab *ui.Tab, mytabcount int, name string, rowcount int, parts []TableColumnData, account *pb.Account) *TableData { mh := new(TableData) mh.RowCount = rowcount @@ -193,7 +193,7 @@ func defaultFontButtonClick(button *ui.FontButton) { } } -func CreateButton(a *pb.Config_Account, vm *pb.Event_VM, +func CreateButton(a *pb.Account, vm *pb.Event_VM, name string, note string, custom func(*ButtonMap)) *ui.Button { newB := ui.NewButton(name) newB.OnClicked(defaultButtonClick) -- cgit v1.2.3