summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-24 20:54:09 -0700
committerJeff Carr <[email protected]>2019-05-24 20:54:09 -0700
commitfdd473b23b562bb247375f47a12988118802cd9b (patch)
tree0a09ad7fa9354645771b0db0cce5d3a38246ee14 /debug.go
parentda315467cc0311bf436306274b2434656276bf81 (diff)
single CreateButton function
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/debug.go b/debug.go
index 0b4efe6..5d8f0aa 100644
--- a/debug.go
+++ b/debug.go
@@ -51,15 +51,15 @@ func addTableTab() {
log.Println("Sleep for 2 seconds, then try to add new tabs")
time.Sleep(1 * 1000 * 1000 * 1000)
- AddTableTab(Data.cloudTab, 1, "test seven", 7, parts)
+ AddTableTab(Data.cloudTab, 1, "test seven", 7, parts, nil)
}
func addDebuggingButtons(vbox *ui.Box, custom func(*ButtonMap)) {
vbox.Append(ui.NewLabel("Debugging:"), false)
vbox.Append(ui.NewColorButton(), false)
- vbox.Append(CreateButton("Add Account", "ADD", custom), false)
- vbox.Append(CreateButton("Quit", "QUIT", custom), false)
+ vbox.Append(CreateButton(nil, nil, "Add Account", "ADD", custom), false)
+ vbox.Append(CreateButton(nil, nil, "Quit", "QUIT", custom), false)
// ATTEMPT TO ADD THE TABLE HERE
add2button := ui.NewButton("Add a Test Table")
@@ -70,11 +70,11 @@ func addDebuggingButtons(vbox *ui.Box, custom func(*ButtonMap)) {
vbox.Append(add2button, false)
// ATTEMPT TO ADD THE TABLE HERE END
- vbox.Append(CreateButton("Close GUI", "QUIT", custom), false)
- vbox.Append(CreateButton("DEBUG goroutines", "DEBUG", custom), false)
+ vbox.Append(CreateButton(nil, nil, "Close GUI", "QUIT", custom), false)
+ vbox.Append(CreateButton(nil, nil, "DEBUG goroutines", "DEBUG", custom), false)
// vbox.Append(CreateButton("ping", "PING", runPingClick), false)
- vbox.Append(CreateButton("xterm", "XTERM", runTestExecClick), false)
- vbox.Append(CreateButton("Load test.json config file", "CONFIG", custom), false)
+ vbox.Append(CreateButton(nil, nil, "xterm", "XTERM", runTestExecClick), false)
+ vbox.Append(CreateButton(nil, nil, "Load test.json config file", "CONFIG", custom), false)
}
func runPingClick(b *ButtonMap) {