summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-01 12:43:40 -0700
committerJeff Carr <[email protected]>2019-06-01 12:43:40 -0700
commitc5f9c6d96f1ce960fa08ab2c77b348a5bcdf03ea (patch)
treec0b1e42a90b42cbc2f8a5f23cf5ef3392817c114 /gui.go
parent1e51d3252b032fd60566834e17973c134e4ad18c (diff)
rename fields
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go21
1 files changed, 10 insertions, 11 deletions
diff --git a/gui.go b/gui.go
index d939294..42b9297 100644
--- a/gui.go
+++ b/gui.go
@@ -90,7 +90,7 @@ func AddTableTab(gw *GuiWindow, name string, rowcount int, parts []TableColumnDa
vbox := ui.NewVerticalBox()
vbox.SetPadded(true)
gb.UiBox = vbox
- gb.W = gw
+ gb.Window = gw
gw.BoxMap[name] = gb
mh.Box = gb
@@ -176,18 +176,17 @@ func CreateButton(box *GuiBox, a *pb.Account, vm *pb.Event_VM, name string, acti
var newB *GuiButton
newB = new(GuiButton)
newB.B = newUiB
- if (box.W == nil) {
- log.Println("CreateButton() box.W == nil")
+ if (box.Window == nil) {
+ log.Println("CreateButton() box.Window == nil")
panic("crap")
}
- newB.GW = box.W
+ newB.GW = box.Window
newB.Account = a
newB.VM = vm
newB.Box = box
newB.Action = action
newB.custom = custom
Data.AllButtons = append(Data.AllButtons, newB)
-
return newB
}
@@ -303,7 +302,7 @@ func AddEntry(box *GuiBox, name string) *GuiEntry {
func HardHorizontalBreak(box *GuiBox) {
log.Println("HardHorizontalBreak START")
- gw := box.W
+ gw := box.Window
mainbox := gw.mainbox
tmp := ui.NewHorizontalSeparator()
@@ -318,7 +317,7 @@ func HardHorizontalBreak(box *GuiBox) {
func HardVerticalBreak(box *GuiBox) {
log.Println("HardVerticalBreak START")
- gw := box.W
+ gw := box.Window
mainbox := gw.mainbox
tmp := ui.NewVerticalSeparator()
@@ -352,7 +351,7 @@ func AddGenericBox(gw *GuiWindow) *GuiBox {
vbox.SetPadded(true)
// gw.Box1 = vbox
gb.UiBox = vbox
- gb.W = gw
+ gb.Window = gw
hbox := ui.NewHorizontalBox()
hbox.SetPadded(true)
@@ -370,7 +369,7 @@ func CreateGenericBox(gw *GuiWindow, b *GuiButton, name string) *GuiBox{
vbox := ui.NewVerticalBox()
vbox.SetPadded(true)
box.UiBox = vbox
- box.W = gw
+ box.Window = gw
gw.BoxMap["ADD VM" + name] = box
hbox := ui.NewHorizontalBox()
@@ -395,8 +394,8 @@ func CreateBox(gw *GuiWindow, name string) *GuiBox {
log.Println("CreateVmBox() vbox =", vbox)
log.Println("CreateVmBox() box.UiBox =", box.UiBox)
box.UiBox = vbox
- log.Println("CreateVmBox() box.W =", box.W)
- box.W = gw
+ log.Println("CreateVmBox() box.Window =", box.Window)
+ box.Window = gw
log.Println("CreateVmBox() gw.BoxMap =", gw.BoxMap)
gw.BoxMap[name] = box