summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--action.go8
-rw-r--r--args.go4
-rw-r--r--main.go2
3 files changed, 7 insertions, 7 deletions
diff --git a/action.go b/action.go
index 8f73c03..ca8b089 100644
--- a/action.go
+++ b/action.go
@@ -45,13 +45,13 @@ func doAction(a widget.Action) {
switch a.ActionType {
case widget.Show:
- n.State.Visable = true
+ n.State.Hidden = true
case widget.Hide:
- n.State.Visable = false
+ n.State.Hidden = false
case widget.Enable:
- n.State.Visable = true
+ n.State.Enable = true
case widget.Disable:
- n.State.Visable = false
+ n.State.Enable = false
case widget.Get:
log.Warn("value =", n.State.Value)
case widget.GetText:
diff --git a/args.go b/args.go
index c00c0e3..88fcf53 100644
--- a/args.go
+++ b/args.go
@@ -21,10 +21,10 @@ func init() {
short := "nocui"
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
- INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
+ INFO = log.NewFlag("INFO", true, full, short, "normal debugging stuff")
WARN = log.NewFlag("WARN", true, full, short, "bad things")
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
- ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors")
+ ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors")
}
diff --git a/main.go b/main.go
index b595ecb..8c0c787 100644
--- a/main.go
+++ b/main.go
@@ -21,7 +21,7 @@ func init() {
log.Log(INFO, "Init() END")
- simpleStdin()
+ go simpleStdin()
}
// this must be defined for plugin's, but is never run