summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-31 20:14:15 -0700
committerJeff Carr <[email protected]>2019-05-31 20:14:15 -0700
commitc6a217811a30d69512bd34f9f12c8990048ab20c (patch)
tree205143ed3fe2e4e8724317b14ec4259c9bb1c74b /gui.go
parent63d561351b27e675c4159c2bc36e76ffb4376247 (diff)
trying to fix 'SHOW VM'
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go15
1 files changed, 3 insertions, 12 deletions
diff --git a/gui.go b/gui.go
index 01aeeb3..22f4d3b 100644
--- a/gui.go
+++ b/gui.go
@@ -42,7 +42,7 @@ func InitColumns(mh *TableData, parts []TableColumnData) {
}
}
-func AddTableTab(gw *GuiWindow, junk int, name string, rowcount int, parts []TableColumnData, account *pb.Account) *TableData {
+func AddTableTab(gw *GuiWindow, name string, rowcount int, parts []TableColumnData, account *pb.Account) *TableData {
mh := new(TableData)
mh.RowCount = rowcount
@@ -90,6 +90,7 @@ func AddTableTab(gw *GuiWindow, junk int, name string, rowcount int, parts []Tab
gb.UiBox = vbox
gb.W = gw
gw.BoxMap[name] = gb
+ mh.Box = gb
vbox.Append(table, true)
gw.UiTab.Append(name, vbox)
@@ -141,19 +142,9 @@ func mouseClick(b *GuiButton) {
log.Println("\tgui.mouseClick() START b.Action =", b.Action)
if (b.Action == "createAddVmBox") {
log.Println("\tgui.mouseClick() createAddVmBox for b =", b)
- createAddVmBox(b.GW, b.T, "Create New Virtual Machine", b)
+ createAddVmBox(b.GW, b)
return
}
- /*
- if (b.Action == "SHOW VM") {
- Data.CurrentVM = b.VM
- if (Data.Debug) {
- go ui.Main(ShowVM)
- } else {
- CreateVmBox(Data.Window1.T, b.VM)
- }
- }
- */
if (b.Action == "WINDOW CLOSE") {
b.W.Hide()
// TODO: fix this (seems to crash? maybe because we are in the button here?)