summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-08 23:53:53 -0600
committerJeff Carr <[email protected]>2024-01-08 23:53:53 -0600
commit7ac6f3e85bc7dad9f37575f2e024966d720dc819 (patch)
tree5a8b0424c06bf8b4bcfe03243576bbec4e77ee89
parent894f77b3ce9572b81e7f2c657feeee3bc901ae0c (diff)
go.wit.com/log change
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--args.go4
-rw-r--r--logsettings/draw.go2
2 files changed, 4 insertions, 2 deletions
diff --git a/args.go b/args.go
index 7a4a106..75b4e20 100644
--- a/args.go
+++ b/args.go
@@ -6,11 +6,11 @@ import (
"go.wit.com/log"
)
-var INFO log.LogFlag
+var INFO *log.LogFlag
func init() {
full := "go.wit.com/gui/gadget"
short := "gadgets"
- INFO.NewFlag("INFO", false, full, short, "General Info")
+ INFO = log.NewFlag("INFO", false, full, short, "General Info")
}
diff --git a/logsettings/draw.go b/logsettings/draw.go
index 9354ab9..d0d194a 100644
--- a/logsettings/draw.go
+++ b/logsettings/draw.go
@@ -29,6 +29,7 @@ func (d *LogSettings) draw() {
d.win = gadgets.NewBasicWindow(d.parent, "Debug Flags")
g = d.win.Box().NewGroup("Show").Pad()
+ g = g.NewBox("bw vbox", false)
d.buttonG = g
g.NewButton("Redirect STDOUT to /tmp/", func () {
@@ -71,6 +72,7 @@ func (d *LogSettings) draw() {
})
d.flagG = d.win.Box().NewGroup("Subsystem (aka package)")
+ d.flagG = d.flagG.NewBox("bw vbox", false)
g.NewButton("Add all Flags", func () {
flags := log.ShowFlags()