update for the new protobuf

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-25 02:50:43 -07:00
parent 3b096d8145
commit 7b601a8e68
3 changed files with 6 additions and 6 deletions

4
gui.go
View File

@ -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)

View File

@ -99,7 +99,7 @@ func makeCloudInfoBox(custom func(*ButtonMap)) *ui.Box {
// which could be anything since TEXTCOLOR, TEXT, BG, etc
// fields use between 1 and 3 values internally
//
func AddVmsTab(name string, count int, a *pb.Config_Account) *TableData {
func AddVmsTab(name string, count int, a *pb.Account) *TableData {
var parts []TableColumnData
human := 0

View File

@ -58,7 +58,7 @@ type GuiDataStructure struct {
// account entry textboxes
Config *pb.Config
Current *pb.Config_Account
Current *pb.Account
// A map of all buttons everywhere on all
// windows, all tabs, across all goroutines
@ -102,7 +102,7 @@ type TableColumnData struct {
type ButtonMap struct {
B *ui.Button
FB *ui.FontButton
Account *pb.Config_Account
Account *pb.Account
VM *pb.Event_VM
Action string // what type of button
aTab *GuiTabStructure
@ -177,7 +177,7 @@ type TableData struct {
Cells [20]CellData
Human [20]HumanMap
Account *pb.Config_Account // what account this table is for
Account *pb.Account // what account this table is for
lastRow int
lastColumn int